Repository Analysis

AI4Finance-Foundation/FinGPT

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

30.7 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of AI4Finance-Foundation/FinGPT, a Jupyter Notebook project with 21,168 GitHub stars. SynthScan v2.0 examined 42,811 lines of code across 323 source files, recording 944 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 30.7 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

30.7
Adjusted Score
30.7
Raw Score
100%
Time Factor
2026-08-02
Last Push
21.2K
Stars
Jupyter Notebook
Language
42.8K
Lines of Code
323
Files
944
Pattern Hits
2026-08-29
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 7MEDIUM 167LOW 770

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 944 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

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
MEDIUMfinogrid/requirements.txt1# ── Core API ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt9# ── Database ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt15# ── Messaging ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt18# ── GCP ───────────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt22# ── Auth & Security ───────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt26# ── FinGPT / ML ───────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt37# ── Data / Finance ────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt44# ── RAG / Vector store ────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt51# ── Observability ─────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/requirements.txt58# ── Testing ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/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
MEDIUMfinogrid/tests/unit/test_minimax_provider.py286# ---------------------------------------------------------------------------COMMENT
MEDIUMfinogrid/tests/unit/test_minimax_provider.py288# ---------------------------------------------------------------------------COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py101# ── Closed-loop intent tests ──────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py178# ── Spending rules tests ──────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py263# ── Idempotency tests ─────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py278# ── Intent sweeper tests ──────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py319# ── x402 middleware tests ─────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py367# ── Mandate model tests ───────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py436# ── KYA validator MCP tests ───────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/tests/unit/test_agent_ledger.py23# ── KYA gate tests ────────────────────────────────────────────────────────────COMMENT
MEDIUMfinogrid/agents/ops_oversight/agent.py52 # ── 1. SLA drift check ─────────────────────────────────────────────COMMENT
MEDIUMfinogrid/agents/ops_oversight/agent.py56 # ── 2. Retry rate check ────────────────────────────────────────────COMMENT
MEDIUMfinogrid/agents/ops_oversight/agent.py60 # ── 3. Held tasks (compliance review backlog) ──────────────────────COMMENT
MEDIUMfinogrid/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 Imports274 hits · 266 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
214 more matches not shown…
Excessive Try-Catch Wrapping163 hits · 210 pts
SeverityFileLineSnippetContext
LOWtest_imports.py8except Exception as e:CODE
LOWtest_imports.py15except Exception as e:CODE
LOWtest_imports.py21except Exception as e:CODE
LOWtest_imports.py27except Exception as e:CODE
LOWtest_imports.py33except Exception as e:CODE
LOWtest_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.py66 except Exception as e:CODE
LOWfingpt/FinGPT_Forecaster/app.py251 except Exception:CODE
MEDIUMfingpt/FinGPT_Forecaster/app.py60def print_gpu_utilization():CODE
MEDIUMfingpt/FinGPT_Forecaster/app.py247def construct_prompt(ticker, curday, n_weeks, use_basics, use_market_sentiment):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
LOWfingpt/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
LOWfingpt/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
LOWfingpt/FinGPT_ForexIntelligence/core.py284 except Exception as e:CODE
LOWfingpt/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
103 more matches not shown…
Hyper-Verbose Identifiers198 hits · 204 pts
SeverityFileLineSnippetContext
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
LOWfingpt/FinGPT_ForexIntelligence/analyzers.py547 def _assess_safe_haven_demand(self) -> str:CODE
LOWfingpt/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
LOWfingpt/FinGPT_ForexIntelligence/core.py149 def _analyze_global_sentiment(self, date: datetime) -> str:CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py158 def _analyze_currency_strength(CODE
LOWfingpt/FinGPT_ForexIntelligence/core.py200 def _generate_trade_opportunities(CODE
LOWfingpt/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
LOWfingpt/FinGPT_RAG/multisource_retrieval/requests_url.py50def requests_get_for_seeking_alpha(url, subject):CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py149def scrape_bloomberg_article_page(url, subject):CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py236def scrape_market_watch_article_page(url, subject):CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py270def scrape_business_wire_article_page(url, subject):CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py395def scrape_seeking_alpha_article_page(url, subject):CODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py433# def scrape_zero_hedge_article_page(url, subject):COMMENT
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py514def scrape_twitter_through_website(url, subject): # not feasibleCODE
LOWfingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py593def select_column_and_classify():CODE
LOW…val/scrapers/market_screener/scrape_market_screener.py28def scrape_market_screen_article_page(url, subject):CODE
LOW…G/multisource_retrieval/scrapers/yahoo/scrape_yahoo.py59def scrape_yahoo_finance_article_page(url, subject):CODE
LOW…GPT_RAG/instruct-FinGPT/convert_llama_weights_to_hf.py75def compute_intermediate_size(n, ffn_dim_multiplier=1, multiple_of=256):CODE
LOW…t-FinGPT/training/supervised_finetuning/prompt_eval.py106def generate_constrastive_search(model,CODE
LOW…gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py78def get_optimizer_grouped_parameters(model,CODE
LOW…nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py89def convert_linear_layer_to_lora(model,CODE
LOW…nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py116def convert_lora_to_linear_layer(model):CODE
LOW…nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py134def only_optimize_lora_parameters(model):CODE
LOW…G/instruct-FinGPT/training/utils/model/reward_model.py31 def gradient_checkpointing_enable(self):CODE
138 more matches not shown…
Over-Commented Block68 hits · 63 pts
SeverityFileLineSnippetContext
LOWrequirements.txt21# ML dependencies (for GPU acceleration compatibility)COMMENT
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
8 more matches not shown…
Deep Nesting50 hits · 45 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.py17CODE
LOW…nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py33CODE
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/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
LOWSETUP.md104### Step 4: Verify InstallationCOMMENT
LOWSETUP.md111### Step 1: Create a New ReplitCOMMENT
LOWSETUP.md117### Step 2: Import the RepositoryCOMMENT
LOWSETUP.md127### Step 3: Configure Replit for FinGPTCOMMENT
LOWSETUP.md158### Step 4: Install DependenciesCOMMENT
LOWSETUP.md168### Step 5: Handle GPU on ReplitCOMMENT
LOWSETUP.md174### Step 6: Run FinGPTCOMMENT
LOWUse_Cases.md196 # Step 1: Extract positions from uploaded fileCOMMENT
LOWUse_Cases.md199 # Step 2: Get live rates from OANDACOMMENT
LOWUse_Cases.md202 # Step 3: Generate netting scheduleCOMMENT
LOWUse_Cases.md205 # Step 4: Get market contextCOMMENT
LOWUse_Cases.md209 # Step 5: Generate hedging recommendationCOMMENT
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
Modern AI Meta-Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMSETUP.md317### FinGPT-RAGCOMMENT
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
MEDIUMfinogrid/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
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.md233os.environ['OPENAI_API_KEY'] = 'your-api-key-here'CODE
HIGHfingpt/FinGPT_Forecaster/README.md123export ADANOS_API_KEY=your_api_keyCODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
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.md99[[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