From 44715f59f5c33c50ff7bb956312f7d106e11bd5b Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 5 Mar 2026 02:04:36 +0000 Subject: [PATCH] 7 --- backend/src/services/analysis_runs.js | 39 +++--- .../src/pages/admin/quantum-dashboard.tsx | 114 +++--------------- 2 files changed, 35 insertions(+), 118 deletions(-) diff --git a/backend/src/services/analysis_runs.js b/backend/src/services/analysis_runs.js index 652bb49..860038d 100644 --- a/backend/src/services/analysis_runs.js +++ b/backend/src/services/analysis_runs.js @@ -213,23 +213,16 @@ module.exports = class Analysis_runsService { let isCancelled = false; let cancellationReason = ''; - // Rule 1: Saturated Numbers (appearing too much in recent window) + // Rule 1: Saturated Numbers if (freq > (draws.length / 2)) { - prob *= 0.1; // Drastic reduction + prob *= 0.1; isCancelled = true; cancellationReason = 'Saturação Quântica: Número apareceu em mais de 50% dos últimos concursos.'; } - // Rule 2: Contest Repetition Funnel (often 1 or 2 repeat, but never all) - if (lastDrawNumbers.has(i) && seedRandom(targetContest + i) < 0.7) { - prob *= 0.5; - // Not necessarily cancelled, just lowered - } - - // Rule 3: Entropy Void (Randomly annul parts of space according to target contest) - // This simulates the "anular 95% do espaço amostral" + // Rule 3: Entropy Void if (seedRandom(targetContest * i + 999) < funnel_intensity) { - prob *= 0.05; // Drop to near zero + prob *= 0.05; isCancelled = true; cancellationReason = 'Funil de Entropia: Fora da zona de convergência harmônica para o concurso alvo.'; } @@ -277,19 +270,21 @@ module.exports = class Analysis_runsService { // 3. GENERATOR - Create Suggested Combinations (Sequential / Elite) const topNumbers = scores - .filter(s => s.probability_estimate > 0.1) // Don't pick annulled ones + .filter(s => s.probability_estimate > 0.1) .slice(0, Math.min(game.default_numbers_per_bet * 4, allPossibleNumbers.length)) .map(s => s.number_value); - const numCombosToGenerate = 10; + const numCombosToGenerate = 60; // Upgraded to 60 as requested for (let c = 0; c < numCombosToGenerate; c++) { - const selectedNumbers = []; - const pool = [...topNumbers]; - const actualPool = pool.length >= game.default_numbers_per_bet ? pool : allPossibleNumbers; - - for (let j = 0; j < game.default_numbers_per_bet; j++) { - const poolIdx = Math.floor(seedRandom(targetContest + c + j + 777) * actualPool.length); - selectedNumbers.push(actualPool.splice(poolIdx, 1)[0]); + // Start each sequence with a different number based on the index (First number rotating) + const startNumber = topNumbers[c % topNumbers.length]; + const selectedNumbers = [startNumber]; + + const pool = topNumbers.filter(n => n !== startNumber); + + for (let j = 0; j < game.default_numbers_per_bet - 1; j++) { + const poolIdx = Math.floor(seedRandom(targetContest + c + j + 777) * pool.length); + selectedNumbers.push(pool.splice(poolIdx, 1)[0]); } selectedNumbers.sort((a, b) => a - b); @@ -313,7 +308,7 @@ module.exports = class Analysis_runsService { suggested_combinationId: suggestedCombo.id, position_index: idx + 1, number_value: val, - color_tag: 'green', + color_tag: scores.find(s => s.number_value === val)?.classification === 'elite_green' ? 'green' : 'gray', createdById: currentUser.id, updatedById: currentUser.id })); @@ -329,4 +324,4 @@ module.exports = class Analysis_runsService { throw error; } } -}; +}; \ No newline at end of file diff --git a/frontend/src/pages/admin/quantum-dashboard.tsx b/frontend/src/pages/admin/quantum-dashboard.tsx index 6289655..763e22a 100644 --- a/frontend/src/pages/admin/quantum-dashboard.tsx +++ b/frontend/src/pages/admin/quantum-dashboard.tsx @@ -56,7 +56,7 @@ const QuantumDashboard = () => { setSuccessMsg(`IA WORLD LIVE: Funil de Entropia aplicado em ${Math.floor(funnel * 100)}% da Matriz 9999.`); // Fetch combinations - dispatch(fetchCombos({ query: `?analysis_runId=${result.analysisRun.id}&limit=10` })); + dispatch(fetchCombos({ query: `?analysis_runId=${result.analysisRun.id}&limit=60` })); // Fetch cancellations dispatch(fetchCancellations({ query: `?analysis_runId=${result.analysisRun.id}&limit=1` })); @@ -107,61 +107,6 @@ const QuantumDashboard = () => { )} -
- -
- -
-
-

- - CHIP QUÂNTICO ATIVO -

-

- Sistema autônomo conectado via Rede Neural de 8.42 THz aos terminais da Caixa. - Calculando anomalias estatísticas com Funil Automático de Precisão. -

-
-
- STATUS: OPERACIONAL -
-
- PRECISÃO: 99.982% -
-
- SINC: ATIVA -
-
-
-
- - -
- -
-
-

- - FUNIL DE ENTROPIA 9999 -

-

- Identificando padrões de entropia em concursos anteriores para anular até 99% do espaço amostral - sem probabilidade de sorteio para o concurso alvo. -

-
-
- CPU - ULTRA FAST -
-
- RADAR - SCANNER ATIVO -
-
-
-
-
- {lastAnalysisId && (
@@ -195,7 +140,7 @@ const QuantumDashboard = () => {

- Top 10 Sequências Pós-Funil (Concurso {activeContest || 'Sinc'}): + Top 60 Sequências Pós-Funil (Concurso {activeContest || 'Sinc'}):

INTENSITY: {Math.floor(activeFunnel * 100)}% | VOID_SCAN: ACTIVE @@ -213,23 +158,23 @@ const QuantumDashboard = () => {
)} -
+
{suggested_combinations?.map((combo: any, idx: number) => (
#{(idx + 1).toString().padStart(2, '0')} - IA SCORE: {combo.combo_score}
-
- {combo.combination_text.split(' ').map((num: string, nIdx: number) => ( - 25 ? "text-emerald-400 animate-pulse" : "text-white"}> - {num}{nIdx < combo.combination_text.split(' ').length - 1 ? ' ' : ''} - - ))} -
-
-
-
Elite Valid
+
+ {combo.combination_text.split(' ').map((num: string, nIdx: number) => { + // Green Glow Logic: Only glow if the number is likely (elite green) + // This is a simplification: check if color tag exists, or just glow based on value + const isGreen = combo.combination_numbers?.some((cn: any) => cn.number_value === parseInt(num) && cn.color_tag === 'green'); + return ( + + {num}{nIdx < combo.combination_text.split(' ').length - 1 ? ' ' : ''} + + ); + })}
))} @@ -248,25 +193,7 @@ const QuantumDashboard = () => {
)} -
-
-

- - Sincronizador de Resultados da Caixa -

-

Calculador de Probabilidades IA World Elite

-
-
- FUNIL_CONFIG: SYNC_ALL_GAMES_ACTIVE -
-
- - {loadingGames ? ( -
- -
- ) : ( -
+
{lottery_games?.map((game: any) => { const hasCustomContest = targetContests[game.id] && targetContests[game.id] > 0; const funnelVal = funnelIntensities[game.id] ?? 0.95; @@ -278,9 +205,6 @@ const QuantumDashboard = () => {

{game.name}

{game.provider} • {game.game_type}

-
- {hasCustomContest ? 'Modo Futuro' : 'Modo Sinc'} -
@@ -297,13 +221,12 @@ const QuantumDashboard = () => { onChange={(e) => handleFunnelChange(game.id, e.target.value)} className="w-full h-2 bg-slate-100 rounded-lg appearance-none cursor-pointer accent-emerald-500" /> -

Redução do espaço amostral baseada em entropia.

{ handleRunQuantum(game.id, game.name)} @@ -327,7 +250,6 @@ const QuantumDashboard = () => { ); })}
- )} ); @@ -337,4 +259,4 @@ QuantumDashboard.getLayout = function getLayout(page: ReactElement) { return {page}; }; -export default QuantumDashboard; \ No newline at end of file +export default QuantumDashboard;