AI Slop Code Risk Monitor

shiyu-coder/Kronos

SlopCodeMonitor badge for shiyu-coder/Kronos Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Kronos: A Foundation Model for the Language of Financial Markets

3.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for shiyu-coder/Kronos, a Python project with 44,371 GitHub stars. SynthScan examined 78,563 lines of code across 73 source files, recording 220 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 3.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

3.6
Adjusted Signal
3.6
Raw Pattern Score
100%
Time Factor
2026-04-13
Last Push
44.4K
Stars
Python
Language
78.6K
Lines of Code
73
Files
220
Pattern Hits
2026-10-31
Scan Date
0.04
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 7.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 109 finding(s).

Hallucinated Dependency & Supply Chain Risk 2.3/100 · LOW

Are imports declared and package/API names verified? 44 finding(s).

Agent Over-Engineering Ratio 11.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 131 finding(s).

PR Review Velocity Impact 17.0/100 · LOW

Which changes need focused human review? 220 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 3MEDIUM 29LOW 188

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 220 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators23 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/config.py9 # =================================================================COMMENT
MEDIUMfinetune/config.py11 # =================================================================COMMENT
MEDIUMfinetune/config.py30 # =================================================================COMMENT
MEDIUMfinetune/config.py32 # =================================================================COMMENT
MEDIUMfinetune/config.py43 # =================================================================COMMENT
MEDIUMfinetune/config.py45 # =================================================================COMMENT
MEDIUMfinetune/config.py72 # =================================================================COMMENT
MEDIUMfinetune/config.py74 # =================================================================COMMENT
MEDIUMfinetune/config.py96 # =================================================================COMMENT
MEDIUMfinetune/config.py98 # =================================================================COMMENT
MEDIUMfinetune/config.py109 # =================================================================COMMENT
MEDIUMfinetune/config.py111 # =================================================================COMMENT
MEDIUMfinetune/qlib_test.py28# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py30# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py92# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py94# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py203# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py205# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py298# =================================================================================COMMENT
MEDIUMfinetune/qlib_test.py300# =================================================================================COMMENT
MEDIUMexamples/get_akshare_date_2024-2025_x.py619 # =====================================================COMMENT
MEDIUMexamples/get_date_new.py651 # =====================================================COMMENT
MEDIUMexamples/prediction_akshare_2024-2025.py532 # =========================================================COMMENT
Hyper-Verbose Identifiers63 hits · 62 pts
SeverityFileLineSnippetContext
LOWtests/test_kronos_regression.py46def test_kronos_predictor_regression(context_len):CODE
LOWtests/test_kronos_regression.py91def test_kronos_predictor_mse(context_len, expected_mse):CODE
LOWexamples/get_akshare_date_2024-2025_x.py157def parse_kline_data_directly(response_text, stock_code, start_year, end_year):CODE
LOWexamples/get_akshare_date_2024-2025_x.py353def get_stock_data_with_retry(stock_code="002354", start_year=2024, end_year=2025, retry_count=2):CODE
LOW⚡examples/prediction_new.py664 def _get_default_market_analysis(self):CODE
LOW⚡examples/prediction_new.py672 def _get_default_sector_analysis(self):CODE
LOW⚡examples/prediction_new.py682 def _get_default_macro_analysis(self):CODE
LOW⚡examples/prediction_new.py689 def _get_default_fundamental_analysis(self):CODE
LOWexamples/prediction_new.py89def get_stock_data_with_retry_all_history(stock_code="600580", retry_count=2):CODE
LOWexamples/prediction_new.py105def create_realistic_fallback_data(stock_code="600580"):CODE
LOWexamples/prediction_new.py191def save_all_history_stock_data(df, stock_code, save_dir):CODE
LOWexamples/prediction_new.py284def calculate_prediction_parameters(df, target_days=60):CODE
LOWexamples/prediction_new.py333def calculate_optimal_interval(min_val, max_val):CODE
LOWexamples/prediction_new.py363def get_stock_price_reference(stock_code, current_price):CODE
LOWexamples/prediction_new.py600 def analyze_company_fundamentals(self, stock_code):CODE
LOWexamples/prediction_new.py651 def _calculate_trend_strength(self, df):CODE
LOWexamples/prediction_new.py702def enhance_prediction_with_market_factors(CODE
LOWexamples/prediction_new.py757def calculate_enhanced_adjustment_factor(market_analysis, sector_analysis, macro_analysis, fundamental_analysis):CODE
LOWexamples/prediction_new.py826def create_comprehensive_market_report(enhancement_info, output_dir, stock_code):CODE
LOWexamples/prediction_new.py850def generate_analysis_summary(enhancement_info):CODE
LOWexamples/prediction_new.py895def plot_comprehensive_prediction(CODE
LOWexamples/prediction_new.py1148def run_comprehensive_kronos_prediction(stock_code, stock_name, data_dir, pred_days, output_dir, history_years=1):CODE
LOW⚡examples/prediction_new_GUI.py959 def _get_default_market_analysis(self):CODE
LOW⚡examples/prediction_new_GUI.py967 def _get_default_sector_analysis(self):CODE
LOW⚡examples/prediction_new_GUI.py977 def _get_default_macro_analysis(self):CODE
LOW⚡examples/prediction_new_GUI.py984 def _get_default_fundamental_analysis(self):CODE
LOWexamples/prediction_new_GUI.py391def get_stock_data_with_retry_all_history(stock_code="600580", retry_count=2):CODE
LOWexamples/prediction_new_GUI.py407def create_realistic_fallback_data(stock_code="600580"):CODE
LOWexamples/prediction_new_GUI.py493def save_all_history_stock_data(df, stock_code, save_dir):CODE
LOWexamples/prediction_new_GUI.py586def calculate_prediction_parameters(df, target_days=60):CODE
LOWexamples/prediction_new_GUI.py616def generate_trading_dates_only(last_date, pred_len):CODE
LOWexamples/prediction_new_GUI.py649def calculate_optimal_interval(min_val, max_val):CODE
LOWexamples/prediction_new_GUI.py895 def analyze_company_fundamentals(self, stock_code):CODE
LOWexamples/prediction_new_GUI.py946 def _calculate_trend_strength(self, df):CODE
LOWexamples/prediction_new_GUI.py997def smooth_prediction_results(prediction_df, historical_df, smooth_factor=0.3):CODE
LOWexamples/prediction_new_GUI.py1070def apply_post_holiday_adjustment(prediction_df, future_dates, holiday_periods):CODE
LOWexamples/prediction_new_GUI.py1105def validate_prediction_results(historical_df, prediction_df, max_price_change=0.3):CODE
LOWexamples/prediction_new_GUI.py1140def run_comprehensive_prediction_gui(stock_code, stock_name, data_dir, pred_days, output_dir, history_years=1,CODE
LOWexamples/prediction_new_GUI.py1327def enhance_prediction_with_market_factors(historical_df, prediction_df, stock_code, market_analyzer):CODE
LOWexamples/prediction_new_GUI.py1369def calculate_enhanced_adjustment_factor(market_analysis, sector_analysis, macro_analysis, fundamental_analysis):CODE
LOWexamples/prediction_new_GUI.py1410def create_comprehensive_market_report(enhancement_info, output_dir, stock_code):CODE
LOWexamples/prediction_new_GUI.py1433def plot_optimized_prediction_gui(historical_df, base_pred_df, enhanced_pred_df, future_trading_dates,CODE
LOWexamples/get_date_new.py23def get_stock_data_eastmoney_all_history(stock_code="002354"):CODE
LOWexamples/get_date_new.py147def parse_kline_data_directly_all_history(response_text, stock_code):CODE
LOWexamples/get_date_new.py190def get_stock_data_akshare_all_history(stock_code="002354"):CODE
LOWexamples/get_date_new.py243def get_stock_data_baostock_all_history(stock_code="002354"):CODE
LOWexamples/get_date_new.py354def get_stock_data_with_retry_all_history(stock_code="002354", retry_count=2):CODE
LOWexamples/get_date_new.py378def create_sample_data_all_history(stock_code="002354"):CODE
LOWexamples/get_date_new.py504def display_all_history_data_info(df, stock_code):CODE
LOWexamples/get_date_new.py566def save_all_history_stock_data(df, stock_code, save_dir="D:/lianghuajiaoyi/Kronos/examples/data"):CODE
LOWexamples/prediction_akshare_2024-2025.py78def calculate_prediction_parameters(df, target_days=100):CODE
LOWexamples/prediction_akshare_2024-2025.py112def generate_future_dates_with_holidays(last_date, pred_len):CODE
LOWexamples/prediction_akshare_2024-2025.py152def plot_prediction_with_details(kline_df, pred_df, future_dates, stock_code="002354", stock_name="股票", pred_len=100,CODE
LOWexamples/prediction_akshare_2024-2025.py312def generate_prediction_report(close_df, volume_df, pred_df, future_dates, stock_code="002354", stock_name="股票",CODE
LOWexamples/run_backtest_kronos.py132 def calculate_trading_signals(self, hist_df, pred_df, threshold=0.02):CODE
LOWexamples/yuce/historical_backtest.py57 def simulate_model_prediction(self, df, lookback_days=60, pred_days=30):CODE
LOWexamples/yuce/historical_backtest.py104 def calculate_prediction_accuracy(self, results_df):CODE
LOWmodel/kronos.py389def auto_regressive_inference(tokenizer, model, x, x_stamp, y_stamp, max_context, pred_len, clip=5, T=1.0, top_k=0, top_CODE
LOWmodel/module.py157 def get_hard_per_sample_entropy(self, zb_by_sample):CODE
LOWwebui/templates/index.html843 function setupSliderEventListeners() {CODE
3 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 38 pts
SeverityFileLineSnippetContext
LOWexamples/get_akshare_date_2024-2025_x.py152 except Exception as e:CODE
LOWexamples/get_akshare_date_2024-2025_x.py195 except Exception as e:CODE
LOWexamples/get_akshare_date_2024-2025_x.py256 except Exception as e:CODE
LOWexamples/get_akshare_date_2024-2025_x.py348 except Exception as e:CODE
LOWexamples/prediction_new.py84 except Exception as e:CODE
LOWexamples/prediction_new.py472 except Exception as e:CODE
LOWexamples/prediction_new.py543 except Exception as e:CODE
LOWexamples/prediction_new.py596 except Exception as e:CODE
LOWexamples/prediction_new.py647 except Exception as e:CODE
LOWexamples/prediction_new.py1172 except Exception as e:CODE
LOWexamples/prediction_new.py1295 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py311 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py386 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py767 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py838 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py891 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py942 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py1176 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py1319 except Exception as e:CODE
LOWexamples/prediction_new_GUI.py1611 except Exception as e:CODE
LOWexamples/get_date_new.py142 except Exception as e:CODE
LOWexamples/get_date_new.py184 except Exception as e:CODE
LOWexamples/get_date_new.py238 except Exception as e:CODE
LOWexamples/get_date_new.py349 except Exception as e:CODE
LOWexamples/prediction_akshare_2024-2025.py504 except Exception as e:CODE
LOWexamples/run_backtest_kronos.py408 except Exception as e:CODE
LOWexamples/prediction_cn_markets_day.py60 except Exception as e:CODE
LOWexamples/yuce/historical_backtest.py329 except Exception as e:CODE
LOWwebui/run.py84 except Exception as e:CODE
LOWwebui/app.py122 except Exception as e:CODE
LOWwebui/app.py205 except Exception as e:CODE
LOWwebui/app.py401 except Exception as e:CODE
LOWwebui/app.py489 except Exception as e:CODE
LOWwebui/app.py610 except Exception as e:CODE
LOWwebui/app.py623 except Exception as e:CODE
LOWwebui/app.py662 except Exception as e:CODE
LOWfinetune_csv/train_sequential.py308 except Exception as e:CODE
MEDIUMfinetune_csv/train_sequential.py310 print(f"Error occurred during training: {str(e)}")CODE
LOWfinetune_csv/train_sequential.py355 except Exception:CODE
Unused Imports44 hits · 37 pts
SeverityFileLineSnippetContext
LOWfinetune/config.py1CODE
LOWfinetune/qlib_test.py11CODE
LOWfinetune/qlib_test.py16CODE
LOWfinetune/qlib_test.py19CODE
LOWfinetune/train_tokenizer.py6CODE
LOWfinetune/train_tokenizer.py7CODE
LOWexamples/get_akshare_date_2024-2025_x.py4CODE
LOWexamples/prediction_new.py8CODE
LOWexamples/prediction_new.py10CODE
LOWexamples/prediction_new.py13CODE
LOWexamples/prediction_new.py13CODE
LOWexamples/prediction_new.py13CODE
LOWexamples/prediction_new.py13CODE
LOWexamples/prediction_new_GUI.py8CODE
LOWexamples/prediction_new_GUI.py10CODE
LOWexamples/prediction_new_GUI.py13CODE
LOWexamples/prediction_new_GUI.py13CODE
LOWexamples/prediction_new_GUI.py13CODE
LOWexamples/prediction_new_GUI.py13CODE
LOWexamples/prediction_new_GUI.py17CODE
LOWexamples/prediction_new_GUI.py19CODE
LOWexamples/get_date_new.py4CODE
LOWexamples/run_backtest_kronos.py6CODE
LOWexamples/run_backtest_kronos.py6CODE
LOWexamples/yuce/historical_backtest.py6CODE
LOWexamples/yuce/historical_backtest.py6CODE
LOWmodel/kronos.py10CODE
LOWwebui/run.py15CODE
LOWwebui/run.py16CODE
LOWwebui/run.py17CODE
LOWwebui/run.py18CODE
LOWwebui/run.py19CODE
LOWwebui/run.py56CODE
LOWwebui/run.py56CODE
LOWwebui/run.py56CODE
LOWwebui/app.py3CODE
LOWfinetune_csv/train_sequential.py6CODE
LOWfinetune_csv/train_sequential.py7CODE
LOWfinetune_csv/train_sequential.py11CODE
LOWfinetune_csv/train_sequential.py15CODE
LOWfinetune_csv/finetune_tokenizer.py11CODE
LOWfinetune_csv/finetune_base_model.py5CODE
LOWfinetune_csv/finetune_base_model.py13CODE
LOWfinetune_csv/finetune_base_model.py21CODE
Deep Nesting29 hits · 26 pts
SeverityFileLineSnippetContext
LOWfinetune/qlib_test.py239CODE
LOWfinetune/train_tokenizer.py74CODE
LOWexamples/get_akshare_date_2024-2025_x.py23CODE
LOWexamples/get_akshare_date_2024-2025_x.py157CODE
LOWexamples/get_akshare_date_2024-2025_x.py384CODE
LOWexamples/get_akshare_date_2024-2025_x.py500CODE
LOWexamples/prediction_new.py333CODE
LOWexamples/prediction_new.py702CODE
LOWexamples/prediction_new.py476CODE
LOWexamples/prediction_new_GUI.py649CODE
LOWexamples/prediction_new_GUI.py1070CODE
LOWexamples/prediction_new_GUI.py1105CODE
LOWexamples/prediction_new_GUI.py771CODE
LOWexamples/get_date_new.py23CODE
LOWexamples/get_date_new.py147CODE
LOWexamples/get_date_new.py378CODE
LOWexamples/get_date_new.py504CODE
LOWexamples/prediction_akshare_2024-2025.py369CODE
LOWexamples/run_backtest_kronos.py158CODE
LOWexamples/run_backtest_kronos.py359CODE
LOWexamples/yuce/historical_backtest.py264CODE
LOWmodel/kronos.py225CODE
LOWwebui/app.py78CODE
LOWwebui/app.py209CODE
LOWwebui/app.py342CODE
LOWwebui/app.py405CODE
LOWfinetune_csv/config_loader.py25CODE
LOWfinetune_csv/finetune_tokenizer.py151CODE
LOWfinetune_csv/finetune_base_model.py239CODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHexamples/prediction_new.py493except:CODE
HIGHexamples/prediction_new_GUI.py788except:CODE
HIGHfinetune_csv/train_sequential.py355except Exception:CODE
Redundant / Tautological Comments5 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡finetune/qlib_data_preprocess.py43 # Check if start_index lookbackw_window will cause negative indexCOMMENT
LOW⚡finetune/qlib_data_preprocess.py47 # Check if end_index exceeds the range of the arrayCOMMENT
LOW⚡finetune/qlib_data_preprocess.py53 # Check if end_index+predictw_window will exceed the range of the arrayCOMMENT
LOWwebui/start.sh8# Check if Python is installedCOMMENT
LOWwebui/start.sh14# Check if in correct directoryCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWREADME.md239### Step 1: Configure Your ExperimentCOMMENT
LOWREADME.md251### Step 2: Prepare the DatasetCOMMENT
LOWREADME.md261### Step 3: Run the FinetuningCOMMENT
LOWREADME.md287### Step 4: Evaluate with BacktestingCOMMENT
LOWfinetune_csv/README.md75# Step 1: Train tokenizerCOMMENT
LOWfinetune_csv/README.md78# Step 2: Train predictor (requires fine-tuned tokenizer)COMMENT
Self-Referential Comments3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/qlib_test.py311 # Create a dedicated dictionary for this run's configurationCOMMENT
MEDIUMmodel/kronos.py129 mask = 2 ** torch.arange(self.codebook_dim//2, device=x1.device, dtype=torch.long) # Create a mask for bit eCODE
MEDIUMmodel/kronos.py134 mask = 2 ** torch.arange(self.codebook_dim, device=x.device, dtype=torch.long) # Create a mask for bit extraCODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md138# Define context window and prediction lengthCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/dataset.py115 # Apply normalization and robust clipping to the entire sequenceCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_kronos_regression.py36def set_seed(seed: int) -> None:CODE
LOWtests/data/generate_regression_output.py26def set_seed(seed: int) -> None:CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfinetune_csv/finetune_base_model.py27CODE