AI Slop Code RIsk Monitor

AI4Finance-Foundation/FinGPT

FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.

31.4 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for AI4Finance-Foundation/FinGPT, a Jupyter Notebook project with 21,396 GitHub stars. SynthScan examined 44,895 lines of code across 340 source files, recording 993 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 31.4 (High 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.

31.4
Adjusted Signal
31.4
Raw Pattern Score
100%
Time Factor
2026-09-23
Last Push
21.4K
Stars
Jupyter Notebook
Language
44.9K
Lines of Code
340
Files
993
Pattern Hits
2026-10-12
Scan Date
0.04
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 40.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 27.6/100 · MEDIUM

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

Agent Over-Engineering Ratio 63.2/100 · HIGH

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

PR Review Velocity Impact 79.4/100 · CRITICAL

Which changes need focused human review? 993 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 14MEDIUM 178LOW 801

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 993 distinct pattern matches across 20 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 Separators98 hits · 342 pts
SeverityFileLineSnippetContext
MEDIUM…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py16# ------------------------------------------------------------------------------COMMENT
MEDIUM…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py18# ------------------------------------------------------------------------------COMMENT
MEDIUM…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py146# ------------------------------------------------------------------------------COMMENT
MEDIUM…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py148# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡finogrid/requirements.txt1# ── Core API ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt9# ── Database ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt15# ── Messaging ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt18# ── GCP ───────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt22# ── Auth & Security ───────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt26# ── FinGPT / ML ───────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt37# ── Data / Finance ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt44# ── RAG / Vector store ────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt51# ── Observability ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt58# ── Testing ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/requirements.txt65# ── Dev tools ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/agent_ledger.py25# ── Enums ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/agent_ledger.py70# ── Models ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py29# ── Enums ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py65# ── Models ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py143 # ── Amount limits ─────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py172 # ── Scope constraints ─────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py190 # ── Validity ──────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py199 # ── Supersession chain ────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/database/models/mandate.py211 # ── Metadata ──────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_minimax_provider.py7# ---------------------------------------------------------------------------COMMENT
MEDIUMfinogrid/tests/unit/test_minimax_provider.py9# ---------------------------------------------------------------------------COMMENT
MEDIUMfinogrid/tests/unit/test_minimax_provider.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMfinogrid/tests/unit/test_minimax_provider.py173# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡finogrid/tests/unit/test_minimax_provider.py286# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡finogrid/tests/unit/test_minimax_provider.py288# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py101# ── Closed-loop intent tests ──────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py178# ── Spending rules tests ──────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py263# ── Idempotency tests ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py278# ── Intent sweeper tests ──────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py319# ── x402 middleware tests ─────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py367# ── Mandate model tests ───────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/tests/unit/test_agent_ledger.py436# ── KYA validator MCP tests ───────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py23# ── KYA gate tests ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/agents/ops_oversight/agent.py52 # ── 1. SLA drift check ─────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/agents/ops_oversight/agent.py56 # ── 2. Retry rate check ────────────────────────────────────────────COMMENT
MEDIUM⚡finogrid/agents/ops_oversight/agent.py60 # ── 3. Held tasks (compliance review backlog) ──────────────────────COMMENT
MEDIUM⚡finogrid/agents/ops_oversight/agent.py69 # ── 4. Corridor risk signals (FinGPT Forecaster) ──────────────────────COMMENT
MEDIUMfinogrid/agents/ops_oversight/agent.py85 # ── 5. Stablecoin depeg check (FinGPT Forecaster) ─────────────────────COMMENT
MEDIUMfinogrid/agents/ops_oversight/agent.py98 # ── 6. Notify if critical alerts ───────────────────────────────────────COMMENT
MEDIUMfinogrid/agents/process_improvement/agent.py60 # ── FinGPT corridor risk signals ───────────────────────────────────────COMMENT
MEDIUMfinogrid/agents/process_improvement/agent.py74 # ── Generate recommendations ───────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/wallet_factory/server.py25# ── Settings ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/wallet_factory/server.py63# ── Pydantic models ───────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/wallet_factory/server.py89# ── FastAPI app ───────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/kya_validator/server.py36# ── Settings ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/kya_validator/server.py54# ── Pydantic models ───────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/kya_validator/server.py77# ── Internal validator (MVP) ──────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/kya_validator/server.py110# ── FastAPI app ───────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/plaid/server.py33# ── Settings ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/plaid/server.py51# ── Pydantic models ───────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/plaid/server.py75# ── Plaid client helper ───────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/mcp/plaid/server.py99# ── FastAPI app ───────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/sdk/typescript/src/types.ts5// ── Enums ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/sdk/typescript/src/types.ts16// ── Agent Account ─────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/sdk/typescript/src/types.ts53// ── KYA ───────────────────────────────────────────────────────────────────────COMMENT
38 more matches not shown…
Unused Imports278 hits · 270 pts
SeverityFileLineSnippetContext
LOWtest_imports.py37CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py2CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py6CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py8CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py9CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py9CODE
LOWfingpt/FinGPT_Forecaster/data_pipeline.py9CODE
LOWfingpt/FinGPT_Forecaster/market_sentiment.py8CODE
LOWfingpt/FinGPT_Forecaster/app.py11CODE
LOWfingpt/FinGPT_Forecaster/prompt.py7CODE
LOWfingpt/FinGPT_Forecaster/prompt.py9CODE
LOWfingpt/FinGPT_Forecaster/data.py17CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py1CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py2CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py5CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py6CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py17CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py20CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py20CODE
LOWfingpt/FinGPT_Forecaster/train_lora.py20CODE
LOWfingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py1CODE
LOWfingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py5CODE
LOWfingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py19CODE
LOW…caster/FinGPT-Forecaster-Chinese/Inference_datapipe.py4CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py3CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py4CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py5CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py6CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py10CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py11CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py1CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py2CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py2CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py5CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py6CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py17CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py20CODE
LOW…GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py20CODE
LOW…PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py2CODE
LOW…PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py4CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py10CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py13CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py13CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py13CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py13CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py22CODE
LOWfingpt/FinGPT_ForexIntelligence/config.py5CODE
LOWfingpt/FinGPT_ForexIntelligence/config.py6CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py12CODE
LOWfingpt/FinGPT_ForexIntelligence/reporter.py7CODE
LOWfingpt/FinGPT_ForexIntelligence/reporter.py8CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py7CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py11CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py11CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py12CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py14CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py14CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py12CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py12CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py10CODE
218 more matches not shown…
Excessive Try-Catch Wrapping180 hits · 238 pts
SeverityFileLineSnippetContext
LOW⚡test_imports.py8except Exception as e:CODE
LOW⚡test_imports.py15except Exception as e:CODE
LOW⚡test_imports.py21except Exception as e:CODE
LOW⚡test_imports.py27except Exception as e:CODE
LOW⚡test_imports.py33except Exception as e:CODE
LOW⚡test_imports.py39except Exception as e:CODE
LOWcloud_test_fingpt.py26 except Exception as e:CODE
LOWfingpt/FinGPT_Forecaster/test_api_keys.py26 except Exception as e:CODE
LOWfingpt/FinGPT_Forecaster/test_api_keys.py42 except Exception as e:CODE
LOWfingpt/FinGPT_Forecaster/app.py67 except Exception as e:CODE
LOWfingpt/FinGPT_Forecaster/app.py254 except Exception:CODE
MEDIUMfingpt/FinGPT_Forecaster/app.py61def print_gpu_utilization():CODE
LOWfingpt/FinGPT_Forecaster/data.py233 except Exception:CODE
LOWfingpt/FinGPT_Forecaster/data.py292 except Exception:CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py81 except Exception as err:CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py92 except Exception as err:CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py105 except Exception as err:CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py121 except Exception as err:CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py132 except Exception as err:CODE
LOW⚡…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py149 except Exception as err:CODE
LOW⚡…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py155 except Exception as err:CODE
LOW⚡…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py165 except Exception as err:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/analyzers.py543 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py104 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py118 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py130 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py142 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py256 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py406 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py478 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py594 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py686 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py884 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/test_basic.py30 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/test_basic.py64 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/test_basic.py140 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/test_basic.py168 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py142 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py368 except Exception as e:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py154 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py175 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py194 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py228 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py251 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py263 except Exception as e:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py284 except Exception as e:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py296 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/example_usage.py220 except Exception as e:CODE
MEDIUMfingpt/FinGPT_ForexIntelligence/example_usage.py221 print(f"Error running examples: {e}")CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py114 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py268 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py180 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py226 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py266 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py312 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py350 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py463 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py497 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py530 except Exception as e:CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py107 except Exception as e:CODE
120 more matches not shown…
Hyper-Verbose Identifiers216 hits · 226 pts
SeverityFileLineSnippetContext
LOWtests/test_transaction_data.py37def test_transaction_is_normalized():CODE
LOWtests/test_transaction_data.py45def test_transactions_are_aggregated_into_features():CODE
LOWtests/test_transaction_data.py64def test_invalid_transaction_fields_are_rejected(field, value, message):CODE
LOWtests/test_transaction_data.py71def test_mixed_symbols_cannot_be_aggregated():CODE
LOW⚡tests/test_quantitative_sentiment.py13def test_earnings_surprise_uses_absolute_consensus_for_misses():CODE
LOW⚡tests/test_quantitative_sentiment.py18def test_earnings_impact_classifies_surprise():CODE
LOW⚡tests/test_quantitative_sentiment.py24def test_invalid_earnings_inputs_are_rejected():CODE
LOWtests/test_ashare_factor_benchmark.py35 def test_complete_record_is_valid(self):CODE
LOWtests/test_ashare_factor_benchmark.py42 def test_invalid_confidence_is_reported(self):CODE
LOWtests/test_finetune_data_validation.py33def test_valid_dataset_passes():CODE
LOWtests/test_finetune_data_validation.py49def test_dataset_must_be_large_enough_for_split(dataset, message):CODE
LOWtests/test_finetune_data_validation.py54def test_missing_columns_are_reported():CODE
LOWtests/test_finetune_data_validation.py65def test_invalid_sequence_length_is_reported():CODE
LOW⚡tests/test_market_symbols.py11def test_us_symbol_is_unchanged():CODE
LOW⚡tests/test_market_symbols.py15def test_india_nse_symbol_is_resolved_for_each_provider():CODE
LOW⚡tests/test_market_symbols.py23def test_india_bse_accepts_provider_and_yfinance_formats():CODE
LOW⚡tests/test_market_symbols.py28def test_invalid_market_and_empty_symbol_are_rejected():CODE
LOWtests/test_forecaster_market_sentiment.py24def test_enrich_recent_market_sentiment_aggregates_recent_windows():CODE
LOWtests/test_forecaster_market_sentiment.py87def test_enrich_recent_market_sentiment_is_noop_without_key():CODE
LOWtests/test_forecaster_market_sentiment.py100def test_enrich_recent_market_sentiment_skips_windows_outside_supported_history():CODE
LOWtests/test_forecaster_market_sentiment.py113def test_format_market_sentiment_prompt_renders_structured_block():CODE
LOWtests/test_forecaster_market_sentiment.py136def test_format_market_sentiment_prompt_is_empty_without_available_data():CODE
LOWtests/test_forecaster_market_sentiment.py141def test_dataset_csv_path_tracks_optional_sentiment_suffix():CODE
LOWfingpt/FinGPT_Forecaster/market_sentiment.py106def _fetch_source_daily_trend(CODE
LOWfingpt/FinGPT_Forecaster/market_sentiment.py183def summarize_market_sentiment(signals):CODE
LOWfingpt/FinGPT_Forecaster/market_sentiment.py203def enrich_recent_market_sentiment(CODE
LOWfingpt/FinGPT_Forecaster/market_sentiment.py268def format_market_sentiment_prompt(value):CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py183def generate_dialogue_dataset(seed_data, instruction, output_path):CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py223def generate_summarization_dataset(seed_data, instruction, output_path):CODE
LOW…ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py178def filtering_dialogue_dataset(file1, file2, instruction, output_path):CODE
LOW…ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py231def filtering_summarization_dataset(file1, file2, instruction, output_path):CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py116def get_summarization_response(model, document, summary, instruction):CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py221def evaluation_dialogue_dataset(model, file, instruction, output_path):CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py274def evaluation_summarization_dataset(model, file, instruction, output_path):CODE
LOW…tiAgentsRAG/Evaluation_methods/TruthfulQA/utilities.py47def format_prompt_with_answer_strings(question, ans, preset='qa', format='general'):CODE
LOW…GPT_MultiAgentsRAG/Evaluation_methods/MMLU/gen_mmlu.py26def construct_assistant_message(completion):CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/analyzers.py547 def _assess_safe_haven_demand(self) -> str:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/analyzers.py551 def _analyze_currency_impacts(self) -> Dict[str, str]:CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py146 def _calculate_sentiment_score(CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py287 def _determine_flow_sentiment(CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py322 def _analyze_currency_impacts(CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py608 def _calculate_commodity_impact(CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py639 def _identify_key_correlations(CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py731 def _calculate_strength_score(self, market_data: List[MarketData]) -> float:CODE
LOWfingpt/FinGPT_ForexIntelligence/test_basic.py71def test_framework_initialization():CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py401 def _assess_overall_event_risk(self, events: List[Dict[str, Any]]) -> str:CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py419 def _generate_entry_recommendation(CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py149 def _analyze_global_sentiment(self, date: datetime) -> str:CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py158 def _analyze_currency_strength(CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py200 def _generate_trade_opportunities(CODE
LOW⚡fingpt/FinGPT_ForexIntelligence/core.py288 def _analyze_commodity_impacts(CODE
LOWfingpt/FinGPT_ForexIntelligence/example_usage.py129def individual_components_example():CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py118 def _identify_strong_currencies(CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py137 def _identify_weak_currencies(CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py352 def _generate_supporting_factors(CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py536 def get_multiple_currency_data(CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py179 def _match_indicator_to_config(self, event_name: str) -> str:CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py226 def _determine_affected_pairs(CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py247 def _determine_expected_direction(CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py267 def _calculate_impact_confidence(CODE
156 more matches not shown…
Over-Commented Block67 hits · 62 pts
SeverityFileLineSnippetContext
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py361 # Find all the <a> tags within the specified hierarchyCOMMENT
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py461COMMENT
LOW…ultisource_retrieval/external_LLMs/g4f_tokenization.py41for i in range(number_of_messages):COMMENT
LOW…ultisource_retrieval/external_LLMs/g4f_tokenization.py61# for message in response:COMMENT
LOWfingpt/FinGPT_RAG/instruct-FinGPT/infer.sh1#!/usr/bin/env bashCOMMENT
LOW…GPT_RAG/instruct-FinGPT/convert_llama_weights_to_hf.py1# Copyright 2022 EleutherAI and The HuggingFace Inc. team. All rights reserved.COMMENT
LOW…t-FinGPT/training/supervised_finetuning/prompt_eval.py161 # num_return_sequences=args.num_return_sequences,COMMENT
LOW…ding/chatgpt-trading-v2/pyfolio/interesting_periods.py1#COMMENT
LOW…thers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/pos.py1#COMMENT
LOW…FinGPT_Trading/chatgpt-trading-v2/pyfolio/deprecate.py1"""Utilities for marking deprecated functions."""COMMENT
LOW…nGPT_Trading/chatgpt-trading-v2/pyfolio/perf_attrib.py1#COMMENT
LOW…/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py1#COMMENT
LOW…ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py1#COMMENT
LOW…ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/utils.py1#COMMENT
LOW…thers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/txn.py1#COMMENT
LOW…nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py1#COMMENT
LOW…inGPT_Trading/chatgpt-trading-v2/pyfolio/timeseries.py1#COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh1export CUDA_VISIBLE_DEVICES=0,1,2,3COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh21# --scheduler linear \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh41# deepspeed train_lora.py \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh61# --dataset headline-cls-instruct,finred-cls-instruct*2,ner-cls-instruct*7 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh81# --num_epochs 1 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh101# --evaluation_strategy steps \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh121# --max_length 512 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh141# --learning_rate 1e-4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh161# --log_interval 10COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh181# --batch_size 4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh201# --batch_size 4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh221# --batch_size 4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh241# --base_model llama2 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh261# --dataset data/fingpt-convfinqa \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh281# --batch_size 1 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh301# --ds_config config_hf.json \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh321# --dataset data/fingpt-ner \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh341# --dataset data/fingpt-ner \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh361# deepspeed train_lora.py \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh381# --run_name headline-chatglm2-linear \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh401# --dataset data/fingpt-headline \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh421# --batch_size 4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh441# --max_length 512 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh461# --learning_rate 1e-4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh481COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh501# --learning_rate 1e-4 \COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh521COMMENT
LOWfingpt/FinGPT_Benchmark/train.sh541# --run_name finred-bloom-linear \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh21# --max_length 512COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh41# --batch_size 8 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh61COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh81# --max_length 512COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh101COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh121# --max_length 512COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh141# --batch_size 8 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh161# --peft_model ../finetuned_models/MT-bloom-linear_202309211510 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh181# --base_model llama2 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh201# --max_length 2048COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh221# --batch_size 1 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh241# --base_model qwen \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh261# --batch_size 1COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh281# --peft_model ../finetuned_models/ner-chatglm2-linear_202309160238 \COMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/evaluate.sh301COMMENT
7 more matches not shown…
Deep Nesting51 hits · 46 pts
SeverityFileLineSnippetContext
LOWfingpt/FinGPT_Forecaster/prompt.py110CODE
LOWfingpt/FinGPT_Forecaster/data.py175CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py193CODE
LOW…PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py275CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py162CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py183CODE
LOW…ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py132CODE
LOW…ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py178CODE
LOW…ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py231CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py166CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py221CODE
LOW…MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py274CODE
LOW…ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py38CODE
LOW…tiAgentsRAG/Evaluation_methods/TruthfulQA/utilities.py102CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py287CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py444CODE
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py814CODE
LOWfingpt/FinGPT_ForexIntelligence/__init__.py10CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py387CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py424CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py470CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py503CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py179CODE
LOW…v1/FinGPT_v1.0/making_dataset/tokenize_dataset_rows.py21CODE
LOW…_v1/FinGPT_v1.0/data_preparations/download_contents.py19CODE
LOW…nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py74CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py64CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py183CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py236CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py395CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py481CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py514CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py593CODE
LOW…multisource_retrieval/scrapers/google/scrape_google.py11CODE
LOW…val/scrapers/market_screener/scrape_market_screener.py28CODE
LOW…gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py113CODE
LOW…gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py130CODE
LOW…_RAG/instruct-FinGPT/training/utils/data/data_utils.py19CODE
LOW…_RAG/instruct-FinGPT/training/utils/data/data_utils.py140CODE
LOW…_RAG/instruct-FinGPT/training/utils/data/data_utils.py447CODE
LOWfingpt/FinGPT_RAG/instruct-FinGPT/inference/batchbot.py96CODE
LOW…FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py92CODE
LOW…nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py149CODE
LOWfingpt/FinGPT_Benchmark/benchmarks/ashare_factor.py16CODE
LOWfingpt/FinGPT_Benchmark/benchmarks/ner.py23CODE
LOWfingpt/FinGPT_Benchmark/benchmarks/benchmarks.py27CODE
LOWfinogrid/mcp/kya_validator/server.py121CODE
LOWfinogrid/services/reconciliation/reconciler.py32CODE
LOWfinogrid/services/agent_ledger_api/routers/topup.py17CODE
LOWfinogrid/services/agent_ledger_api/routers/kya.py18CODE
LOWfinogrid/services/agent_ledger_api/routers/kya.py95CODE
Dead Code17 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py36CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py37CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py39CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py47CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py49CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py50CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py52CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py62CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py63CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py64CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py65CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py67CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py68CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py70CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py71CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py73CODE
MEDIUMfingpt/FinGPT_Benchmark/benchmarks/convfinqa.py75CODE
Structural Annotation Overuse15 hits · 32 pts
SeverityFileLineSnippetContext
LOWSETUP.md47### Step 1: Clone the RepositoryCOMMENT
LOWSETUP.md53### Step 2: Create Virtual Environment (Recommended)COMMENT
LOWSETUP.md64### Step 3: Install DependenciesCOMMENT
LOW⚡SETUP.md127### Step 4: Verify InstallationCOMMENT
LOW⚡SETUP.md134### Step 1: Create a New ReplitCOMMENT
LOW⚡SETUP.md140### Step 2: Import the RepositoryCOMMENT
LOW⚡SETUP.md150### Step 3: Configure Replit for FinGPTCOMMENT
LOW⚡SETUP.md181### Step 4: Install DependenciesCOMMENT
LOW⚡SETUP.md191### Step 5: Handle GPU on ReplitCOMMENT
LOW⚡SETUP.md197### Step 6: Run FinGPTCOMMENT
LOW⚡Use_Cases.md196 # Step 1: Extract positions from uploaded fileCOMMENT
LOW⚡Use_Cases.md199 # Step 2: Get live rates from OANDACOMMENT
LOW⚡Use_Cases.md202 # Step 3: Generate netting scheduleCOMMENT
LOW⚡Use_Cases.md205 # Step 4: Get market contextCOMMENT
LOW⚡Use_Cases.md209 # Step 5: Generate hedging recommendationCOMMENT
Empty Error Handlers6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHtests/test_quantitative_sentiment.py28except ValueError:CODE
HIGHtests/test_market_symbols.py32except ValueError:CODE
HIGH…instruct-FinGPT/training/supervised_finetuning/main.py299except:CODE
HIGH…nogrid/services/ops_console/routers/ledger_explorer.py41except ValueError:CODE
HIGH…nogrid/services/ops_console/routers/ledger_explorer.py51except ValueError:CODE
HIGH…nogrid/services/ops_console/routers/ledger_explorer.py58except ValueError:CODE
Modern AI Meta-Vocabulary9 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMSETUP.md382### FinGPT-RAGCOMMENT
MEDIUMFAQ.md87## FinGPT-RAG QuestionsCOMMENT
MEDIUMFAQ.md89### Will you open source the fine-tuned FinGPT with RAG that can be used directly?COMMENT
MEDIUMFAQ.md104### Can I use only RAG method to enhance LLM's ability without fine-tuning?COMMENT
MEDIUMfingpt/FinGPT_RAG/README.md53### A showcase of RAG-instruction-tuned LLMCOMMENT
MEDIUMfingpt/FinGPT_RAG/multisource_retrieval/README.md37## Experiment:compare non-RAG vs. RAG sentiment classification using gpt:COMMENT
MEDIUM⚡finogrid/requirements.txt44# ── RAG / Vector store ────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/README.md208├── fingpt_integration/ # Sentiment, Forecaster, RAG adaptersCODE
MEDIUMfinogrid/docs/fingpt_usage_policy.md38### 3. RAG Pattern (from `FinGPT_RAG/`)COMMENT
Self-Referential Comments9 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMfingpt/FinGPT_ForexIntelligence/test_basic.py111 # Create a sample analysis resultCOMMENT
MEDIUMfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py604 df["link"] = "" # Create a new column named "link"CODE
MEDIUMfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py605 df["contextualized_sentence"] = "" # Create a new column named "contextualized sentence"CODE
MEDIUM…source_retrieval/sentence_processing/split_sentence.py29 # Create a list of all 'http' wordsCOMMENT
MEDIUM…val/utils/sentiment_classification_by_external_LLMs.py26 df["openai_inferred_sentiment_from_RAG"] = "" # Create a new column named "classification"CODE
MEDIUM…G/multisource_retrieval/utils/classify_news_sources.py26 df["classification"] = "" # Create a new column named "classification"CODE
MEDIUMfingpt/FinGPT_Benchmark/train_lora.py107 # Create a timestamp for model savingCOMMENT
MEDIUMfingpt/FinGPT_FinancialReportAnalysis/utils/rag.py274 # Create a new DataFrame from the expanded listCOMMENT
MEDIUMfingpt/FinGPT_FinancialReportAnalysis/utils/rag.py302 # Create a DataFrame to store summaries with their corresponding cluster and levelSTRING
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py28 Parses a string containing "yes" or "no" and returns a boolean value. Args: string (str): The string tSTRING
HIGHfingpt/FinGPT_Benchmark/utils.py25 Generates a prompt based on a predefined template, instruction, and input. Args: template (str): The key tSTRING
HIGHfingpt/FinGPT_Benchmark/utils.py49 Generate a mapping for testing purposes by constructing a prompt based on given instructions and input. Args: STRING
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWfingpt/FinGPT_RAG/multisource_retrieval/gui/gui.py6CODE
LOW…t-FinGPT/training/supervised_finetuning/prompt_eval.py103CODE
LOW…t-FinGPT/training/supervised_finetuning/prompt_eval.py123CODE
LOW…G/instruct-FinGPT/training/utils/model/reward_model.py114CODE
LOWfingpt/FinGPT_RAG/instruct-FinGPT/inference/batchbot.py93CODE
LOW…FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py79CODE
LOW…FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py89CODE
LOWfingpt/FinGPT_RAG/instruct-FinGPT/inference/chatbot.py70CODE
LOWfingpt/FinGPT_Others/shares_news_sentiment_classify.py123CODE
LOW…/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py712CODE
LOW…ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py55CODE
LOW…ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py231CODE
LOW…ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py409CODE
LOW…nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py146CODE
LOWfinogrid/tests/unit/test_routing_engine.py9CODE
Modern Structural Boilerplate14 hits · 14 pts
SeverityFileLineSnippetContext
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py25logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/timing_model.py16logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/reporter.py32logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/__init__.py56__all__ = [CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py38logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py16logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/data_sources.py28logger = logging.getLogger(__name__)CODE
LOWfingpt/FinGPT_ForexIntelligence/event_system.py16logger = logging.getLogger(__name__)CODE
LOW…t-FinGPT/training/supervised_finetuning/prompt_eval.py21logger = logging.getLogger(__name__)CODE
LOW…/FinGPT_Trading/chatgpt-trading-v2/pyfolio/__init__.py17__all__ = ['utils', 'timeseries', 'pos', 'txn',CODE
LOW…FinGPT_Trading/chatgpt-trading-v2/pyfolio/ipycompat.py19__all__ = ['read']CODE
LOWfingpt/FinGPT_Benchmark/benchmarks/__init__.py3__all__ = [fpb, fiqa, finred, fineval, convfinqa, headline, ner, nwgi, tfns]CODE
LOWfinogrid/database/models/__init__.py9__all__ = [CODE
LOWfinogrid/corridors/__init__.py31__all__ = ["CORRIDOR_REGISTRY", "get_adapter", "CorridorAdapter"]CODE
Redundant / Tautological Comments8 hits · 11 pts
SeverityFileLineSnippetContext
LOWfingpt/FinGPT_ForexIntelligence/trade_generator.py184 # Check if pair is validCOMMENT
LOW…G/instruct-FinGPT/training/utils/model/reward_model.py89 # Check if there is any padding otherwise take length of sequenceCOMMENT
LOW…_RAG/instruct-FinGPT/training/utils/data/data_utils.py319 if sft_train_datasets: # Check if sft_train_datasets is not emptyCODE
LOW…_RAG/instruct-FinGPT/training/utils/data/data_utils.py325 if sft_eval_datasets: # Check if sft_eval_datasets is not emptyCODE
LOWfingpt/FinGPT_Benchmark/utils.py115 # Check if the combined length exceeds the maximum allowed length.COMMENT
LOWfingpt/FinGPT_Benchmark/utils.py186 # Check if the dataset name includes a replication factorCOMMENT
LOWfingpt/FinGPT_Benchmark/benchmarks/finred.py98 # Print the resultsCOMMENT
LOW…rvices/agent_ledger_api/middleware/payment_required.py112 # Check if this path requires paymentCOMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHSETUP.md298os.environ['OPENAI_API_KEY'] = 'your-api-key-here'CODE
HIGHfingpt/FinGPT_Forecaster/README.md149export ADANOS_API_KEY=your_api_keyCODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGH…nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py47 "For FinRL-Meta: git clone git@github.com:AI4Finance-Foundation/FinRL-Meta.git && cd FinRL-Meta && python seCODE
HIGH…/FinGPT_Trading/chatgpt-trading-v2/pyfolio/_version.py13 "error": null,CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHfingpt/FinGPT_Sentiment_Analysis_v3/README.md121[[4] News With GPT Instruction (NWGI)](https://huggingface.co/datasets/oliverwang15/news_with_gpt_instructions) is a datCODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…pt/FinGPT_RAG/multisource_retrieval/proxies/headers.py71 # if there we couldn't find any free proxies, well bummer just return an empty setCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfinogrid/services/partner_execution/executor.py29 async def execute_task(self, task, db) -> bool:CODE