FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.
This report presents the forensic synthetic code analysis of AI4Finance-Foundation/FinGPT, a Jupyter Notebook project with 20,876 GitHub stars. SynthScan v2.0 examined 37,813 lines of code across 307 source files, recording 823 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 31.3 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).
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.
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.
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.
The scanner identified 823 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 16 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 18 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 146 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 148 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 1 | # ── Core API ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 9 | # ── Database ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 15 | # ── Messaging ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 18 | # ── GCP ─────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 22 | # ── Auth & Security ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 26 | # ── FinGPT / ML ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 36 | # ── Data / Finance ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 43 | # ── RAG / Vector store ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 50 | # ── Observability ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 57 | # ── Testing ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 64 | # ── Dev tools ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/agent_ledger.py | 25 | # ── Enums ────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/agent_ledger.py | 70 | # ── Models ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 29 | # ── Enums ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 65 | # ── Models ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 143 | # ── Amount limits ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 172 | # ── Scope constraints ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 190 | # ── Validity ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 199 | # ── Supersession chain ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/database/models/mandate.py | 211 | # ── Metadata ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/tests/unit/test_minimax_provider.py | 7 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | finogrid/tests/unit/test_minimax_provider.py | 9 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | finogrid/tests/unit/test_minimax_provider.py | 171 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | finogrid/tests/unit/test_minimax_provider.py | 173 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_minimax_provider.py | 286 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_minimax_provider.py | 288 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 101 | # ── Closed-loop intent tests ────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 178 | # ── Spending rules tests ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 263 | # ── Idempotency tests ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 278 | # ── Intent sweeper tests ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 319 | # ── x402 middleware tests ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 367 | # ── Mandate model tests ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/tests/unit/test_agent_ledger.py | 436 | # ── KYA validator MCP tests ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/tests/unit/test_agent_ledger.py | 23 | # ── KYA gate tests ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/agents/ops_oversight/agent.py | 52 | # ── 1. SLA drift check ───────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/agents/ops_oversight/agent.py | 56 | # ── 2. Retry rate check ──────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/agents/ops_oversight/agent.py | 60 | # ── 3. Held tasks (compliance review backlog) ────────────────────── | COMMENT |
| MEDIUM⚡ | finogrid/agents/ops_oversight/agent.py | 69 | # ── 4. Corridor risk signals (FinGPT Forecaster) ────────────────────── | COMMENT |
| MEDIUM | finogrid/agents/ops_oversight/agent.py | 85 | # ── 5. Stablecoin depeg check (FinGPT Forecaster) ───────────────────── | COMMENT |
| MEDIUM | finogrid/agents/ops_oversight/agent.py | 98 | # ── 6. Notify if critical alerts ─────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/agents/process_improvement/agent.py | 60 | # ── FinGPT corridor risk signals ─────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/agents/process_improvement/agent.py | 74 | # ── Generate recommendations ─────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/wallet_factory/server.py | 25 | # ── Settings ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/wallet_factory/server.py | 63 | # ── Pydantic models ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/wallet_factory/server.py | 89 | # ── FastAPI app ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/kya_validator/server.py | 36 | # ── Settings ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/kya_validator/server.py | 54 | # ── Pydantic models ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/kya_validator/server.py | 77 | # ── Internal validator (MVP) ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/kya_validator/server.py | 110 | # ── FastAPI app ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/plaid/server.py | 33 | # ── Settings ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/plaid/server.py | 51 | # ── Pydantic models ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/plaid/server.py | 75 | # ── Plaid client helper ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/mcp/plaid/server.py | 99 | # ── FastAPI app ─────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/sdk/typescript/src/types.ts | 5 | // ── Enums ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/sdk/typescript/src/types.ts | 16 | // ── Agent Account ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/sdk/typescript/src/types.ts | 53 | // ── KYA ─────────────────────────────────────────────────────────────────────── | COMMENT |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 2 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 6 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 8 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 9 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 9 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data_pipeline.py | 9 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/market_sentiment.py | 8 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/app.py | 11 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/prompt.py | 7 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/prompt.py | 9 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data.py | 17 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 1 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 2 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 5 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 6 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 17 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 20 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 20 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/train_lora.py | 20 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py | 1 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py | 5 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/AAAI-Good-Data/train_lora.py | 19 | CODE | |
| LOW | …caster/FinGPT-Forecaster-Chinese/Inference_datapipe.py | 4 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 3 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 4 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 5 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 6 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 10 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 11 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 1 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 2 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 2 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 5 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 6 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 17 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 20 | CODE | |
| LOW | …GPT_Forecaster/FinGPT-Forecaster-Chinese/train_lora.py | 20 | CODE | |
| LOW | …PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py | 2 | CODE | |
| LOW | …PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py | 4 | CODE | |
| LOW | …_v1/FinGPT_v1.0/data_preparations/download_contents.py | 3 | CODE | |
| LOW | …nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py | 8 | CODE | |
| LOW | …nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py | 9 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/requests_url.py | 6 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 3 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 7 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 9 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 16 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 18 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 19 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 22 | CODE | |
| LOW | …val/utils/sentiment_classification_by_external_LLMs.py | 3 | CODE | |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 3 | CODE | |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 7 | CODE | |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 9 | CODE | |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 10 | CODE | |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 12 | CODE | |
| LOW | …G/multisource_retrieval/utils/classify_news_sources.py | 3 | CODE | |
| LOW | …multisource_retrieval/scrapers/google/scrape_google.py | 3 | CODE | |
| LOW | …ieval/scrapers/seeking_alpha/seeking_alpha_scraping.py | 1 | CODE | |
| LOW | …ieval/scrapers/seeking_alpha/seeking_alpha_scraping.py | 6 | CODE | |
| 188 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_forecaster_market_sentiment.py | 24 | def test_enrich_recent_market_sentiment_aggregates_recent_windows(): | CODE |
| LOW | tests/test_forecaster_market_sentiment.py | 87 | def test_enrich_recent_market_sentiment_is_noop_without_key(): | CODE |
| LOW | tests/test_forecaster_market_sentiment.py | 100 | def test_enrich_recent_market_sentiment_skips_windows_outside_supported_history(): | CODE |
| LOW | tests/test_forecaster_market_sentiment.py | 113 | def test_format_market_sentiment_prompt_renders_structured_block(): | CODE |
| LOW | tests/test_forecaster_market_sentiment.py | 136 | def test_format_market_sentiment_prompt_is_empty_without_available_data(): | CODE |
| LOW | tests/test_forecaster_market_sentiment.py | 141 | def test_dataset_csv_path_tracks_optional_sentiment_suffix(): | CODE |
| LOW | fingpt/FinGPT_Forecaster/market_sentiment.py | 106 | def _fetch_source_daily_trend( | CODE |
| LOW | fingpt/FinGPT_Forecaster/market_sentiment.py | 183 | def summarize_market_sentiment(signals): | CODE |
| LOW | fingpt/FinGPT_Forecaster/market_sentiment.py | 203 | def enrich_recent_market_sentiment( | CODE |
| LOW | fingpt/FinGPT_Forecaster/market_sentiment.py | 268 | def format_market_sentiment_prompt(value): | CODE |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py | 183 | def generate_dialogue_dataset(seed_data, instruction, output_path): | CODE |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py | 223 | def generate_summarization_dataset(seed_data, instruction, output_path): | CODE |
| LOW | …ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py | 178 | def filtering_dialogue_dataset(file1, file2, instruction, output_path): | CODE |
| LOW | …ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py | 231 | def filtering_summarization_dataset(file1, file2, instruction, output_path): | CODE |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 116 | def get_summarization_response(model, document, summary, instruction): | CODE |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 221 | def evaluation_dialogue_dataset(model, file, instruction, output_path): | CODE |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 274 | def evaluation_summarization_dataset(model, file, instruction, output_path): | CODE |
| LOW | …tiAgentsRAG/Evaluation_methods/TruthfulQA/utilities.py | 47 | def format_prompt_with_answer_strings(question, ans, preset='qa', format='general'): | CODE |
| LOW | …GPT_MultiAgentsRAG/Evaluation_methods/MMLU/gen_mmlu.py | 26 | def construct_assistant_message(completion): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/requests_url.py | 50 | def requests_get_for_seeking_alpha(url, subject): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 149 | def scrape_bloomberg_article_page(url, subject): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 236 | def scrape_market_watch_article_page(url, subject): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 270 | def scrape_business_wire_article_page(url, subject): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 395 | def scrape_seeking_alpha_article_page(url, subject): | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 433 | # def scrape_zero_hedge_article_page(url, subject): | COMMENT |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 514 | def scrape_twitter_through_website(url, subject): # not feasible | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 593 | def select_column_and_classify(): | CODE |
| LOW | …val/scrapers/market_screener/scrape_market_screener.py | 28 | def scrape_market_screen_article_page(url, subject): | CODE |
| LOW⚡ | …G/multisource_retrieval/scrapers/yahoo/scrape_yahoo.py | 59 | def scrape_yahoo_finance_article_page(url, subject): | CODE |
| LOW | …GPT_RAG/instruct-FinGPT/convert_llama_weights_to_hf.py | 75 | def compute_intermediate_size(n, ffn_dim_multiplier=1, multiple_of=256): | CODE |
| LOW | …t-FinGPT/training/supervised_finetuning/prompt_eval.py | 106 | def generate_constrastive_search(model, | CODE |
| LOW | …gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py | 78 | def get_optimizer_grouped_parameters(model, | CODE |
| LOW | …nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py | 89 | def convert_linear_layer_to_lora(model, | CODE |
| LOW | …nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py | 116 | def convert_lora_to_linear_layer(model): | CODE |
| LOW | …nGPT_RAG/instruct-FinGPT/training/utils/module/lora.py | 134 | def only_optimize_lora_parameters(model): | CODE |
| LOW | …G/instruct-FinGPT/training/utils/model/reward_model.py | 31 | def gradient_checkpointing_enable(self): | CODE |
| LOW | …G/instruct-FinGPT/training/utils/model/reward_model.py | 34 | def gradient_checkpointing_disable(self): | CODE |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 78 | def get_raw_dataset_split_index(local_rank, output_path, dataset_name, seed, | CODE |
| LOW | fingpt/FinGPT_Others/shares_news_sentiment_classify.py | 108 | def get_result_from_openai_davinci(api_key: str, prompt_str: str): | CODE |
| LOW | …thers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/pos.py | 84 | def get_max_median_position_concentration(positions): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/capacity.py | 46 | def days_to_liquidate_positions(positions, market_data, | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/capacity.py | 101 | def get_max_days_to_liquidate_by_ticker(positions, market_data, | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/capacity.py | 161 | def get_low_liquidity_transactions(transactions, market_data, | CODE |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/perf_attrib.py | 419 | def plot_factor_contribution_to_perf( | CODE |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/perf_attrib.py | 647 | def _cumulative_returns_less_costs(returns, costs): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 143 | def plot_monthly_returns_heatmap(returns, ax=None, **kwargs): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 235 | def plot_monthly_returns_dist(returns, ax=None, **kwargs): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1115 | def show_and_plot_top_positions(returns, positions_alloc, | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1198 | def plot_max_median_position_concentration(positions, ax=None, **kwargs): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1444 | def plot_slippage_sensitivity(returns, positions, transactions, | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1655 | def show_worst_drawdown_periods(returns, top=5): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1679 | def plot_monthly_returns_timeseries(returns, ax=None, **kwargs): | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1735 | def plot_round_trip_lifetimes(round_trips, disp_amount=16, lsize=18, ax=None): | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 409 | def create_returns_tear_sheet(returns, positions=None, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 599 | def create_position_tear_sheet(returns, positions, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 780 | def create_round_trip_tear_sheet(returns, positions, transactions, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 870 | def create_interesting_times_tear_sheet(returns, benchmark_rets=None, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 954 | def create_capacity_tear_sheet(returns, positions, transactions, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 1066 | def create_perf_attrib_tear_sheet(returns, | CODE |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/utils.py | 114 | def extract_rets_pos_txn_from_zipline(backtest): | CODE |
| 114 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fingpt/FinGPT_Forecaster/app.py | 242 | except Exception: | CODE |
| MEDIUM | fingpt/FinGPT_Forecaster/app.py | 238 | def construct_prompt(ticker, curday, n_weeks, use_basics, use_market_sentiment): | CODE |
| LOW | fingpt/FinGPT_Forecaster/data.py | 233 | except Exception: | CODE |
| LOW | fingpt/FinGPT_Forecaster/data.py | 292 | except Exception: | CODE |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 81 | except Exception as err: | CODE |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 92 | except Exception as err: | CODE |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 105 | except Exception as err: | CODE |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 121 | except Exception as err: | CODE |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 132 | except Exception as err: | CODE |
| LOW⚡ | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 149 | except Exception as err: | CODE |
| LOW⚡ | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 155 | except Exception as err: | CODE |
| LOW⚡ | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 165 | except Exception as err: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/requests_url.py | 46 | except Exception as e: | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/requests_url.py | 47 | print("Error: " + str(e)) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/requests_url.py | 18 | def requests_get(url, proxy=None): | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 145 | print("Error: " + str(e)) | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 233 | print("Error in Reuters:", e) | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 267 | print("Error in MarketWatch:", e) | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 392 | print("Error in Seeking Alpha:", e) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 476 | # print("Error: " + str(e)) | COMMENT |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 502 | print("Error in scrape_twitter", response) | CODE |
| MEDIUM⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 586 | print("Error: " + str(e)) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 180 | print("Error: " + str(e)) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 291 | print("Error in Business Wire:", e) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 345 | print("Error in WSJ:", e) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 657 | print("Error occurred at row index:", row_index) | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 131 | def scrape_bloomberg(subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 149 | def scrape_bloomberg_article_page(url, subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 183 | def scrape_reuters(subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 295 | def scrape_wsj(subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 348 | def scrape_seeking_alpha(subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 395 | def scrape_seeking_alpha_article_page(url, subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 435 | def scrape_cnbc_article_page(url, subject): | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 481 | def scrape_twitter(url, subject): | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 144 | except Exception as e: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 232 | except Exception as e: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 266 | except Exception as e: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 391 | except Exception as e: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 504 | except Exception as e: | CODE |
| LOW⚡ | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 585 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 179 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 290 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 344 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 428 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 458 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 571 | except Exception as e: | CODE |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 655 | except Exception as e: | CODE |
| LOW | …GPT_RAG/multisource_retrieval/manual_classification.py | 20 | except Exception as e: | CODE |
| MEDIUM | …GPT_RAG/multisource_retrieval/manual_classification.py | 5 | def classify_csv_file(): | CODE |
| LOW | …val/utils/sentiment_classification_by_external_LLMs.py | 54 | except Exception as e: | CODE |
| MEDIUM | …val/utils/sentiment_classification_by_external_LLMs.py | 56 | print("Error occurred at row index:", row_index) | CODE |
| LOW | …etrieval/utils/classification_accuracy_verification.py | 46 | except Exception as e: | CODE |
| LOW | …G/multisource_retrieval/utils/classify_news_sources.py | 52 | except Exception as e: | CODE |
| MEDIUM | …G/multisource_retrieval/utils/classify_news_sources.py | 54 | print("Error occurred at row index:", row_index) | CODE |
| LOW | …G/multisource_retrieval/utils/manual_classification.py | 20 | except Exception as e: | CODE |
| MEDIUM | …G/multisource_retrieval/utils/manual_classification.py | 5 | def classify_csv_file(): | CODE |
| LOW | …RAG/multisource_retrieval/scrapers/cnbc/scrape_cnbc.py | 13 | except Exception as e: | CODE |
| LOW | …RAG/multisource_retrieval/scrapers/cnbc/scrape_cnbc.py | 60 | except Exception as e: | CODE |
| MEDIUM | …RAG/multisource_retrieval/scrapers/cnbc/scrape_cnbc.py | 10 | def requests_get(url): | CODE |
| MEDIUM | …RAG/multisource_retrieval/scrapers/cnbc/scrape_cnbc.py | 36 | def scrape_cnbc_article_page(url, subject): | CODE |
| 53 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 361 | # Find all the <a> tags within the specified hierarchy | COMMENT |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 461 | COMMENT | |
| LOW | …ultisource_retrieval/external_LLMs/g4f_tokenization.py | 41 | for i in range(number_of_messages): | COMMENT |
| LOW | …ultisource_retrieval/external_LLMs/g4f_tokenization.py | 61 | # for message in response: | COMMENT |
| LOW | fingpt/FinGPT_RAG/instruct-FinGPT/infer.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …GPT_RAG/instruct-FinGPT/convert_llama_weights_to_hf.py | 1 | # Copyright 2022 EleutherAI and The HuggingFace Inc. team. All rights reserved. | COMMENT |
| LOW | …t-FinGPT/training/supervised_finetuning/prompt_eval.py | 161 | # num_return_sequences=args.num_return_sequences, | COMMENT |
| LOW | …ding/chatgpt-trading-v2/pyfolio/interesting_periods.py | 1 | # | COMMENT |
| LOW | …thers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/pos.py | 1 | # | COMMENT |
| LOW | …FinGPT_Trading/chatgpt-trading-v2/pyfolio/deprecate.py | 1 | """Utilities for marking deprecated functions.""" | COMMENT |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/perf_attrib.py | 1 | # | COMMENT |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 1 | # | COMMENT |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 1 | # | COMMENT |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/utils.py | 1 | # | COMMENT |
| LOW | …thers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/txn.py | 1 | # | COMMENT |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py | 1 | # | COMMENT |
| LOW | …inGPT_Trading/chatgpt-trading-v2/pyfolio/timeseries.py | 1 | # | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 1 | export CUDA_VISIBLE_DEVICES=0,1,2,3 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 21 | # --scheduler linear \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 41 | # deepspeed train_lora.py \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 61 | # --dataset headline-cls-instruct,finred-cls-instruct*2,ner-cls-instruct*7 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 81 | # --num_epochs 1 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 101 | # --evaluation_strategy steps \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 121 | # --max_length 512 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 141 | # --learning_rate 1e-4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 161 | # --log_interval 10 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 181 | # --batch_size 4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 201 | # --batch_size 4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 221 | # --batch_size 4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 241 | # --base_model llama2 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 261 | # --dataset data/fingpt-convfinqa \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 281 | # --batch_size 1 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 301 | # --ds_config config_hf.json \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 321 | # --dataset data/fingpt-ner \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 341 | # --dataset data/fingpt-ner \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 361 | # deepspeed train_lora.py \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 381 | # --run_name headline-chatglm2-linear \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 401 | # --dataset data/fingpt-headline \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 421 | # --batch_size 4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 441 | # --max_length 512 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 461 | # --learning_rate 1e-4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 481 | COMMENT | |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 501 | # --learning_rate 1e-4 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 521 | COMMENT | |
| LOW | fingpt/FinGPT_Benchmark/train.sh | 541 | # --run_name finred-bloom-linear \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 21 | # --max_length 512 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 41 | # --batch_size 8 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 61 | COMMENT | |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 81 | # --max_length 512 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 101 | COMMENT | |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 121 | # --max_length 512 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 141 | # --batch_size 8 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 161 | # --peft_model ../finetuned_models/MT-bloom-linear_202309211510 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 181 | # --base_model llama2 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 201 | # --max_length 2048 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 221 | # --batch_size 1 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 241 | # --base_model qwen \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 261 | # --batch_size 1 | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 281 | # --peft_model ../finetuned_models/ner-chatglm2-linear_202309160238 \ | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/evaluate.sh | 301 | COMMENT | |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fingpt/FinGPT_Forecaster/prompt.py | 110 | CODE | |
| LOW | fingpt/FinGPT_Forecaster/data.py | 175 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 193 | CODE | |
| LOW | …PT_Forecaster/FinGPT-Forecaster-Chinese/Ashare_data.py | 275 | CODE | |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py | 162 | CODE | |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/generate.py | 183 | CODE | |
| LOW | …ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py | 132 | CODE | |
| LOW | …ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py | 178 | CODE | |
| LOW | …ultiAgentsRAG/Evaluation_methods/HaluEval/filtering.py | 231 | CODE | |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 166 | CODE | |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 221 | CODE | |
| LOW | …MultiAgentsRAG/Evaluation_methods/HaluEval/evaluate.py | 274 | CODE | |
| LOW | …ltiAgentsRAG/Evaluation_methods/TruthfulQA/evaluate.py | 38 | CODE | |
| LOW | …tiAgentsRAG/Evaluation_methods/TruthfulQA/utilities.py | 102 | CODE | |
| LOW | …v1/FinGPT_v1.0/making_dataset/tokenize_dataset_rows.py | 21 | CODE | |
| LOW | …nalysis_v1/FinGPT_v1.0/data_preparations/add_labels.py | 33 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 64 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 183 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 236 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 395 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 481 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 514 | CODE | |
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 593 | CODE | |
| LOW | …multisource_retrieval/scrapers/google/scrape_google.py | 11 | CODE | |
| LOW | …val/scrapers/market_screener/scrape_market_screener.py | 28 | CODE | |
| LOW | …gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py | 113 | CODE | |
| LOW | …gpt/FinGPT_RAG/instruct-FinGPT/training/utils/utils.py | 130 | CODE | |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 19 | CODE | |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 140 | CODE | |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 447 | CODE | |
| LOW | fingpt/FinGPT_RAG/instruct-FinGPT/inference/batchbot.py | 96 | CODE | |
| LOW | …FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py | 92 | CODE | |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py | 149 | CODE | |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/ner.py | 23 | CODE | |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/benchmarks.py | 27 | CODE | |
| LOW | finogrid/mcp/kya_validator/server.py | 121 | CODE | |
| LOW | finogrid/services/reconciliation/reconciler.py | 32 | CODE | |
| LOW | finogrid/services/agent_ledger_api/routers/topup.py | 17 | CODE | |
| LOW | finogrid/services/agent_ledger_api/routers/kya.py | 18 | CODE | |
| LOW | finogrid/services/agent_ledger_api/routers/kya.py | 95 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 36 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 37 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 39 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 47 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 49 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 50 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 52 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 62 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 63 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 64 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 65 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 67 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 68 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 70 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 71 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 73 | CODE | |
| MEDIUM | fingpt/FinGPT_Benchmark/benchmarks/convfinqa.py | 75 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | SETUP.md | 42 | ### Step 1: Clone the Repository | COMMENT |
| LOW | SETUP.md | 48 | ### Step 2: Create Virtual Environment (Recommended) | COMMENT |
| LOW | SETUP.md | 59 | ### Step 3: Install Dependencies | COMMENT |
| LOW⚡ | SETUP.md | 88 | ### Step 4: Verify Installation | COMMENT |
| LOW⚡ | SETUP.md | 95 | ### Step 1: Create a New Replit | COMMENT |
| LOW⚡ | SETUP.md | 101 | ### Step 2: Import the Repository | COMMENT |
| LOW⚡ | SETUP.md | 111 | ### Step 3: Configure Replit for FinGPT | COMMENT |
| LOW⚡ | SETUP.md | 142 | ### Step 4: Install Dependencies | COMMENT |
| LOW⚡ | SETUP.md | 150 | ### Step 5: Handle GPU on Replit | COMMENT |
| LOW⚡ | SETUP.md | 156 | ### Step 6: Run FinGPT | COMMENT |
| LOW⚡ | Use_Cases.md | 196 | # Step 1: Extract positions from uploaded file | COMMENT |
| LOW⚡ | Use_Cases.md | 199 | # Step 2: Get live rates from OANDA | COMMENT |
| LOW⚡ | Use_Cases.md | 202 | # Step 3: Generate netting schedule | COMMENT |
| LOW⚡ | Use_Cases.md | 205 | # Step 4: Get market context | COMMENT |
| LOW⚡ | Use_Cases.md | 209 | # Step 5: Generate hedging recommendation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | SETUP.md | 297 | ### FinGPT-RAG | COMMENT |
| MEDIUM | fingpt/FinGPT_RAG/README.md | 53 | ### A showcase of RAG-instruction-tuned LLM | COMMENT |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/README.md | 37 | ## Experiment:compare non-RAG vs. RAG sentiment classification using gpt: | COMMENT |
| MEDIUM⚡ | finogrid/requirements.txt | 43 | # ── RAG / Vector store ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | finogrid/README.md | 208 | ├── fingpt_integration/ # Sentiment, Forecaster, RAG adapters | CODE |
| MEDIUM | finogrid/docs/fingpt_usage_policy.md | 38 | ### 3. RAG Pattern (from `FinGPT_RAG/`) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 604 | df["link"] = "" # Create a new column named "link" | CODE |
| MEDIUM | fingpt/FinGPT_RAG/multisource_retrieval/news_scraper.py | 605 | df["contextualized_sentence"] = "" # Create a new column named "contextualized sentence" | CODE |
| MEDIUM | …source_retrieval/sentence_processing/split_sentence.py | 29 | # Create a list of all 'http' words | COMMENT |
| MEDIUM | …val/utils/sentiment_classification_by_external_LLMs.py | 26 | df["openai_inferred_sentiment_from_RAG"] = "" # Create a new column named "classification" | CODE |
| MEDIUM | …G/multisource_retrieval/utils/classify_news_sources.py | 26 | df["classification"] = "" # Create a new column named "classification" | CODE |
| MEDIUM | fingpt/FinGPT_Benchmark/train_lora.py | 92 | # Create a timestamp for model saving | COMMENT |
| MEDIUM | fingpt/FinGPT_FinancialReportAnalysis/utils/rag.py | 274 | # Create a new DataFrame from the expanded list | COMMENT |
| MEDIUM | fingpt/FinGPT_FinancialReportAnalysis/utils/rag.py | 302 | # Create a DataFrame to store summaries with their corresponding cluster and level | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …PT_MultiAgentsRAG/Evaluation_methods/MMLU/eval_mmlu.py | 28 | Parses a string containing "yes" or "no" and returns a boolean value. Args: string (str): The string t | STRING |
| HIGH | fingpt/FinGPT_Benchmark/utils.py | 25 | Generates a prompt based on a predefined template, instruction, and input. Args: template (str): The key t | STRING |
| HIGH | fingpt/FinGPT_Benchmark/utils.py | 49 | Generate a mapping for testing purposes by constructing a prompt based on given instructions and input. Args: | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fingpt/FinGPT_RAG/multisource_retrieval/gui/gui.py | 6 | CODE | |
| LOW | …t-FinGPT/training/supervised_finetuning/prompt_eval.py | 103 | CODE | |
| LOW | …t-FinGPT/training/supervised_finetuning/prompt_eval.py | 123 | CODE | |
| LOW | …G/instruct-FinGPT/training/utils/model/reward_model.py | 114 | CODE | |
| LOW | fingpt/FinGPT_RAG/instruct-FinGPT/inference/batchbot.py | 93 | CODE | |
| LOW | …FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py | 79 | CODE | |
| LOW | …FinGPT_RAG/instruct-FinGPT/inference/batchbot_torch.py | 89 | CODE | |
| LOW | fingpt/FinGPT_RAG/instruct-FinGPT/inference/chatbot.py | 70 | CODE | |
| LOW | fingpt/FinGPT_Others/shares_news_sentiment_classify.py | 123 | CODE | |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/plotting.py | 712 | CODE | |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 55 | CODE | |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 231 | CODE | |
| LOW | …ers/FinGPT_Trading/chatgpt-trading-v2/pyfolio/tears.py | 409 | CODE | |
| LOW | …nGPT_Trading/chatgpt-trading-v2/pyfolio/round_trips.py | 146 | CODE | |
| LOW | finogrid/tests/unit/test_routing_engine.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | SETUP.md | 213 | os.environ['OPENAI_API_KEY'] = 'your-api-key-here' | CODE |
| HIGH | fingpt/FinGPT_Forecaster/README.md | 87 | export ADANOS_API_KEY=your_api_key | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …G/instruct-FinGPT/training/utils/model/reward_model.py | 89 | # Check if there is any padding otherwise take length of sequence | COMMENT |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 319 | if sft_train_datasets: # Check if sft_train_datasets is not empty | CODE |
| LOW | …_RAG/instruct-FinGPT/training/utils/data/data_utils.py | 325 | if sft_eval_datasets: # Check if sft_eval_datasets is not empty | CODE |
| LOW | fingpt/FinGPT_Benchmark/utils.py | 115 | # Check if the combined length exceeds the maximum allowed length. | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/utils.py | 186 | # Check if the dataset name includes a replication factor | COMMENT |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/finred.py | 98 | # Print the results | COMMENT |
| LOW | …rvices/agent_ledger_api/middleware/payment_required.py | 112 | # Check if this path requires payment | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …t-FinGPT/training/supervised_finetuning/prompt_eval.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/__init__.py | 17 | __all__ = ['utils', 'timeseries', 'pos', 'txn', | CODE |
| LOW | …FinGPT_Trading/chatgpt-trading-v2/pyfolio/ipycompat.py | 19 | __all__ = ['read'] | CODE |
| LOW | fingpt/FinGPT_Benchmark/benchmarks/__init__.py | 3 | __all__ = [fpb, fiqa, finred, fineval, convfinqa, headline, ner, nwgi, tfns] | CODE |
| LOW | finogrid/database/models/__init__.py | 9 | __all__ = [ | CODE |
| LOW | finogrid/corridors/__init__.py | 31 | __all__ = ["CORRIDOR_REGISTRY", "get_adapter", "CorridorAdapter"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/FinGPT_Trading/chatgpt-trading-v2/pyfolio/_version.py | 13 | "error": null, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | fingpt/FinGPT_Sentiment_Analysis_v3/README.md | 99 | [[4] News With GPT Instruction (NWGI)](https://huggingface.co/datasets/oliverwang15/news_with_gpt_instructions) is a dat | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …pt/FinGPT_RAG/multisource_retrieval/proxies/headers.py | 71 | # if there we couldn't find any free proxies, well bummer just return an empty set | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | finogrid/services/partner_execution/executor.py | 29 | async def execute_task(self, task, db) -> bool: | CODE |