AI Slop Code RIsk Monitor

hsliuping/TradingAgents-CN

基于多智能体LLM的中文金融交易框架 - TradingAgents中文增强版

26.2 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for hsliuping/TradingAgents-CN, a Python project with 32,238 GitHub stars. SynthScan examined 549,112 lines of code across 1556 source files, recording 12118 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 26.2 (Elevated pattern signal); it is not an authorship estimate.

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

26.2
Adjusted Signal
26.2
Raw Pattern Score
100%
Time Factor
2026-09-22
Last Push
32.2K
Stars
Python
Language
549.1K
Lines of Code
1.6K
Files
12.1K
Pattern Hits
2026-10-12
Scan Date
0.25
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 29.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 15.1/100 · LOW

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

Agent Over-Engineering Ratio 64.8/100 · HIGH

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

PR Review Velocity Impact 75.9/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 392MEDIUM 782LOW 10944

Directory Score Breakdown

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

Pattern Findings

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

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

Excessive Try-Catch Wrapping4612 hits · 4187 pts
SeverityFileLineSnippetContext
LOWcore/assistant/metrics.py69 except Exception as exc: # 埋点失败绝不影响对话CODE
LOWcore/assistant/lexicon.py160 except Exception as exc:CODE
LOWcore/tools/external_skill_loader.py92 except Exception as e:CODE
LOWcore/tools/external_skill_loader.py205 except Exception as e:CODE
LOWcore/tools/external_skill_loader.py254 except Exception as e:CODE
LOWcore/tools/registry.py78 except Exception as e:CODE
LOW⚡core/tools/sector_tools.py881 except Exception as e:CODE
LOW⚡core/tools/sector_tools.py1319 except Exception as e:CODE
LOWcore/tools/sector_tools.py35 except Exception:CODE
LOWcore/tools/sector_tools.py52 except Exception as e:CODE
LOWcore/tools/sector_tools.py76 except Exception as e:CODE
LOWcore/tools/sector_tools.py185 except Exception as e:CODE
LOWcore/tools/sector_tools.py223 except Exception as e:CODE
LOWcore/tools/sector_tools.py333 except Exception as e:CODE
LOWcore/tools/sector_tools.py480 except Exception as e:CODE
LOWcore/tools/sector_tools.py707 except Exception as e:CODE
LOWcore/tools/sector_tools.py803 except Exception as e:CODE
LOWcore/tools/sector_tools.py1066 except Exception as e:CODE
LOWcore/tools/sector_tools.py1148 except Exception as e:CODE
LOWcore/tools/sector_tools.py1202 except Exception as e:CODE
LOWcore/tools/sector_tools.py1266 except Exception as e:CODE
LOWcore/tools/index_tools.py95 except Exception as e:CODE
LOWcore/tools/index_tools.py167 except Exception as e:CODE
LOWcore/tools/index_tools.py271 except Exception as e:CODE
LOWcore/tools/index_tools.py360 except Exception as e:CODE
LOWcore/tools/index_tools.py434 except Exception as e:CODE
LOWcore/tools/index_tools.py514 except Exception as e:CODE
LOWcore/tools/index_tools.py574 except Exception as e:CODE
LOWcore/tools/index_tools.py660 except Exception:CODE
LOWcore/tools/index_tools.py758 except Exception as e:CODE
LOWcore/tools/index_tools.py892 except Exception as e:CODE
LOWcore/tools/index_tools.py985 except Exception as e:CODE
LOWcore/tools/index_tools.py1156 except Exception as e:CODE
LOWcore/tools/loader.py77 except Exception as e:CODE
LOWcore/tools/loader.py108 except Exception as e:CODE
LOWcore/tools/loader.py136 except Exception as e:CODE
LOWcore/tools/chip_distribution_tools.py127 except Exception as e:CODE
LOWcore/tools/chip_distribution_tools.py217 except Exception as e:CODE
LOWcore/tools/trade_date_policy.py19 except Exception:CODE
LOWcore/tools/execution_logger.py77 except Exception as e:CODE
LOW⚡core/tools/execution_logger.py88 except Exception as e:CODE
LOW⚡core/tools/execution_logger.py97 except Exception as e:CODE
LOWcore/tools/custom_tool.py82 except Exception as e:CODE
LOWcore/tools/custom_tool.py121 except Exception as e:CODE
LOWcore/tools/base.py184 except Exception as e:CODE
LOWcore/tools/base.py215 except Exception:CODE
LOWcore/tools/base.py280 except Exception as e:CODE
LOW⚡core/tools/mcp/datasource_adapter.py126 except Exception as e:CODE
LOW⚡core/tools/mcp/datasource_adapter.py191 except Exception as e:CODE
LOW⚡core/tools/mcp/client_manager.py178 except Exception as e:CODE
LOW⚡core/tools/implementations/legacy_bridge.py20 except Exception as e:CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py311 except Exception as exc:CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py569 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py54 except Exception:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py127 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py141 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py153 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py203 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py248 except Exception as exc:CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py281 except Exception as exc:CODE
4552 more matches not shown…
Hyper-Verbose Identifiers2884 hits · 2671 pts
SeverityFileLineSnippetContext
LOWcore/python_runtime.py17def resolve_python_executable(CODE
LOWcore/assistant/defense.py66def _build_untraced_interception(untraced_detail: str) -> str:CODE
LOWcore/assistant/defense.py329def _get_untraced_risky_numbers(CODE
LOWcore/assistant/defense.py382def _build_data_transparency_note(CODE
LOWcore/assistant/defense.py429def _has_fabricated_tool_json(reply: str) -> bool:CODE
LOWcore/assistant/defense.py446def _has_fabricated_tool_refs(reply: str, tools_used: list) -> bool:CODE
LOWcore/assistant/defense.py485def _has_untraced_risky_numbers(CODE
LOWcore/tools/external_skill_loader.py161async def load_external_skills_to_registry(db, registry) -> int:CODE
LOWcore/tools/external_skill_loader.py210def register_single_external_skill(db_sync, registry, skill_doc: Dict[str, Any]) -> bool:CODE
LOWcore/tools/qmt_market_tools.py88def get_market_overview_qmt_sync(trade_date: str, lookback_days: int = 60) -> str:CODE
LOWcore/tools/qmt_market_tools.py220def get_sector_analysis_qmt_sync(ticker: str, trade_date: str, lookback_days: int = 20, top_n: int = 10) -> str:CODE
LOWcore/tools/qmt_market_tools.py349def get_sector_analysis_qmt_enhanced(ticker: str, trade_date: str, lookback_days: int = 20, top_n: int = 10) -> str:CODE
LOWcore/tools/qmt_market_tools.py624def get_amount_ranking_qmt_sync(top_n: int = 20, trade_date: Optional[str] = None) -> str:CODE
LOWcore/tools/qmt_market_tools.py731def get_market_overview_qmt_enhanced(trade_date: str, lookback_days: int = 60) -> str:CODE
LOWcore/tools/registry.py71 def _load_tool_implementations(self) -> None:CODE
LOWcore/tools/registry.py213 def _build_langchain_args_schema(self, metadata: ToolMetadata) -> Optional[Type]:CODE
LOWcore/tools/fc_converter.py106def tool_metadata_list_to_openai(tools: List[ToolMetadata]) -> List[Dict[str, Any]]:CODE
LOWcore/tools/sector_tools.py80async def _get_ths_index_list_cached(provider, index_type: str) -> Optional[pd.DataFrame]:CODE
LOWcore/tools/sector_tools.py112async def _get_ths_member_reverse_cached(provider, con_code: str) -> Optional[pd.DataFrame]:CODE
LOWcore/tools/sector_tools.py712async def get_industry_top_companies(CODE
LOWcore/tools/sector_tools.py1362def get_sector_performance_sync(ticker: str, trade_date: str, lookback_days: int = 20) -> str:CODE
LOWcore/tools/sector_tools.py1378def get_industry_top_companies_sync(ticker: str, top_n: int = 5) -> str:CODE
LOWcore/tools/sector_tools.py1393def get_sector_constituents_sync(sector_name: str, trade_date: str, top_n: int = 15) -> str:CODE
LOWcore/tools/sector_tools.py1398def analyze_sector_by_name_sync(sector_name: str, trade_date: str) -> str:CODE
LOW⚡core/tools/index_tools.py30def _format_compact_trade_date(trade_date: str) -> str:CODE
LOW⚡core/tools/index_tools.py37def _get_required_margin_exchanges(trade_date: str) -> List[str]:CODE
LOW⚡core/tools/index_tools.py45def _get_margin_exchange_coverage(day_data: pd.DataFrame, trade_date: str) -> Dict[str, Any]:CODE
LOWcore/tools/index_tools.py596def get_market_environment_sync(trade_date: str) -> str:CODE
LOWcore/tools/index_tools.py601def identify_market_cycle_sync(trade_date: str) -> str:CODE
LOW⚡core/tools/context.py107def set_current_assistant_thread_id(thread_id: Optional[str]) -> contextvars.Token:CODE
LOW⚡core/tools/context.py112def get_current_assistant_thread_id() -> Optional[str]:CODE
LOW⚡core/tools/context.py117def set_current_assistant_thread_context(thread_context: Optional[Dict[str, Any]]) -> contextvars.Token:CODE
LOW⚡core/tools/context.py123def get_current_assistant_thread_context() -> Dict[str, Any]:CODE
LOW⚡core/tools/context.py128def set_current_analysis_data_source(data_source: Optional[str]) -> contextvars.Token:CODE
LOWcore/tools/context.py144def reset_current_analysis_data_source(token: contextvars.Token) -> None:CODE
LOWcore/tools/context.py149def get_current_analysis_data_source() -> Optional[str]:CODE
LOWcore/tools/context.py165def set_latest_nanobot_intent(intent_dict: Dict[str, Any]) -> None:CODE
LOWcore/tools/context.py182def get_latest_nanobot_intent() -> Dict[str, Any]:CODE
LOWcore/tools/context.py188def clear_latest_nanobot_intent() -> None:CODE
LOWcore/tools/chip_distribution_tools.py39def get_chip_distribution_akshare(ticker: str, trade_date: str) -> Optional[Dict[str, Any]]:CODE
LOWcore/tools/chip_distribution_tools.py132def get_chip_distribution_tushare(ticker: str, trade_date: str) -> Optional[Dict[str, Any]]:CODE
LOWcore/tools/chip_distribution_tools.py259def get_chip_distribution_unified(ticker: str, trade_date: str) -> str:STRING
LOWcore/tools/chip_distribution_tools.py320def get_chip_distribution_sync(ticker: str, trade_date: str) -> str:STRING
LOWcore/tools/trade_date_policy.py31def build_stable_data_cutoff_note(CODE
LOW⚡core/tools/execution_logger.py105def get_tool_execution_logger() -> ToolExecutionLogger:CODE
LOWcore/tools/base.py188def _extract_parameters_from_signature(func: Callable) -> List:CODE
LOW⚡core/tools/mcp/datasource_adapter.py202def get_mcp_datasource_adapter() -> MCPDatasourceAdapter:CODE
LOW⚡core/tools/implementations/legacy_bridge.py160def get_reddit_stock_info_bridge(ticker: str, curr_date: str) -> str:CODE
LOW⚡core/tools/implementations/legacy_bridge.py204def get_china_market_overview_bridge(curr_date: str) -> str:CODE
LOW⚡core/tools/implementations/legacy_bridge.py327def get_finnhub_company_insider_sentiment_bridge(ticker: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py95def get_realtime_stock_news_bridge(ticker: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py116def get_stock_news_openai_bridge(ticker: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py137def get_global_news_openai_bridge(curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py180def get_chinese_social_sentiment_bridge(ticker: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py232def get_stockstats_indicators_report_bridge(symbol: str, indicator: str, curr_date: str, look_back_days: int = 30) -> stCODE
LOWcore/tools/implementations/legacy_bridge.py259def get_stockstats_indicators_report_online_bridge(symbol: str, indicator: str, curr_date: str, look_back_days: int = 30CODE
LOWcore/tools/implementations/legacy_bridge.py302def get_yfin_data_online_bridge(symbol: str, start_date: str, end_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py347def get_finnhub_company_insider_transactions_bridge(ticker: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py367def get_simfin_income_stmt_bridge(ticker: str, freq: str, curr_date: str) -> str:CODE
LOWcore/tools/implementations/legacy_bridge.py388def get_simfin_balance_sheet_bridge(ticker: str, freq: str, curr_date: str) -> str:CODE
2824 more matches not shown…
Decorative Section Separators656 hits · 2343 pts
SeverityFileLineSnippetContext
MEDIUMcore/assistant/defense.py22# ── 编造/未溯源检测的正则与重试指令 ───────────────────────────────────────────COMMENT
MEDIUMcore/assistant/defense.py81# ── 第4道防线:高风险数字溯源校验 ─────────────────────────────────────────────COMMENT
MEDIUMcore/assistant/defense.py427# ── 四道主防线 ────────────────────────────────────────────────────────────────COMMENT
MEDIUMcore/assistant/paths.py18# ─────────────────────────── 路径 ID 与显式优先级 ───────────────────────────COMMENT
MEDIUMcore/assistant/lexicon.py29# ─────────────────────────── A 股代码 ───────────────────────────COMMENT
MEDIUMcore/assistant/lexicon.py44# ─────────────────────────── 不支持品种(港股/美股)───────────────────────────COMMENT
MEDIUMcore/assistant/lexicon.py115# ─────────────────────────── A 股名称目录(全量 + TTL)───────────────────────────COMMENT
MEDIUM⚡core/tools/sector_tools.py16# ============================================================COMMENT
MEDIUM⚡core/tools/sector_tools.py18# ============================================================COMMENT
MEDIUM⚡core/tools/sector_tools.py886# ============================================================COMMENT
MEDIUM⚡core/tools/sector_tools.py888# ============================================================COMMENT
MEDIUM⚡core/tools/sector_tools.py1324# ============================================================COMMENT
MEDIUM⚡core/tools/sector_tools.py1326# ============================================================COMMENT
MEDIUMcore/tools/mcp/datasource_adapter.py33 # ------------------------------------------------------------------COMMENT
MEDIUMcore/tools/mcp/datasource_adapter.py35 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/datasource_adapter.py129 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/datasource_adapter.py131 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/datasource_adapter.py195# ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/datasource_adapter.py197# ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py50 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py52 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py59 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py61 # ------------------------------------------------------------------COMMENT
MEDIUMcore/tools/mcp/client_manager.py107 # ------------------------------------------------------------------COMMENT
MEDIUMcore/tools/mcp/client_manager.py109 # ------------------------------------------------------------------COMMENT
MEDIUMcore/tools/mcp/client_manager.py139 # ------------------------------------------------------------------COMMENT
MEDIUMcore/tools/mcp/client_manager.py141 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py169 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py171 # ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py182# ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/mcp/client_manager.py184# ------------------------------------------------------------------COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py24# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py26# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py149# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py151# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py193# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py195# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py316# ==============================================================================COMMENT
MEDIUM⚡core/tools/implementations/legacy_bridge.py318# ==============================================================================COMMENT
MEDIUMcore/tools/implementations/legacy_bridge.py216# ==============================================================================COMMENT
MEDIUMcore/tools/implementations/legacy_bridge.py218# ==============================================================================COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py15# ── scipy availability check ────────────────────────────────────────COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py38# ── Black-Scholes 内部计算 ─────────────────────────────────────────COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py94# ── Tool 1: Black-Scholes 期权定价 ─────────────────────────────────COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py239# ── Tool 2: 隐含波动率 ─────────────────────────────────────────────COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py406# ── Tool 3: 希腊字母计算 ───────────────────────────────────────────COMMENT
MEDIUMcore/tools/implementations/fundamentals/option_tools.py618# ── Tool 4: 期权策略盈亏图 ─────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py378# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py380# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py555# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py557# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py749# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py751# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py885# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py887# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py1024# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…ools/implementations/fundamentals/statistical_tools.py1026# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ools/implementations/fundamentals/statistical_tools.py27# ─── 辅助函数 ──────────────────────────────────────────────────COMMENT
MEDIUM…ools/implementations/fundamentals/statistical_tools.py184# ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ools/implementations/fundamentals/statistical_tools.py186# ────────────────────────────────────────────────────────────────COMMENT
596 more matches not shown…
Unused Imports1751 hits · 1554 pts
SeverityFileLineSnippetContext
LOWstart_dev.py10CODE
LOWcore/python_runtime.py3CODE
LOWcore/assistant/metrics.py18CODE
LOWcore/assistant/metrics.py22CODE
LOWcore/assistant/reply_gate.py18CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py14CODE
LOWcore/assistant/__init__.py29CODE
LOWcore/assistant/__init__.py30CODE
LOWcore/assistant/__init__.py31CODE
LOWcore/assistant/__init__.py31CODE
LOWcore/assistant/__init__.py31CODE
LOWcore/assistant/__init__.py31CODE
LOWcore/assistant/__init__.py31CODE
LOWcore/assistant/__init__.py38CODE
LOWcore/assistant/__init__.py38CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/__init__.py39CODE
LOWcore/assistant/lexicon.py19CODE
LOWcore/tools/external_skill_loader.py12CODE
LOWcore/tools/external_skill_loader.py16CODE
LOWcore/tools/qmt_market_tools.py3CODE
LOWcore/tools/registry.py11CODE
LOWcore/tools/registry.py267CODE
LOWcore/tools/__init__.py7CODE
LOWcore/tools/__init__.py7CODE
LOWcore/tools/__init__.py8CODE
LOWcore/tools/__init__.py8CODE
LOWcore/tools/__init__.py8CODE
LOWcore/tools/__init__.py8CODE
LOWcore/tools/__init__.py8CODE
LOWcore/tools/__init__.py9CODE
LOWcore/tools/__init__.py9CODE
1691 more matches not shown…
Empty Error Handlers295 hits · 1475 pts
SeverityFileLineSnippetContext
HIGHcore/tools/external_skill_loader.py124except (json.JSONDecodeError, TypeError):CODE
HIGHcore/tools/chip_distribution_tools.py114except (ValueError, TypeError):CODE
HIGHcore/tools/execution_logger.py71except RuntimeError:CODE
HIGHcore/tools/mcp/datasource_adapter.py145except (json.JSONDecodeError, TypeError):CODE
HIGH…tools/implementations/fundamentals/etf_fundamentals.py271except (TypeError, ValueError):CODE
HIGHcore/tools/implementations/fundamentals/bond_tools.py567except (ValueError, TypeError):CODE
HIGH…plementations/fundamentals/batch_profit_consistency.py142except Exception:CODE
HIGH…/tools/implementations/fundamentals/financial_tools.py439except (ValueError, TypeError):CODE
HIGH…/tools/implementations/fundamentals/financial_tools.py459except (ValueError, TypeError):CODE
HIGH…tions/fundamentals/screening/multi_factor_screening.py184except Exception:CODE
HIGH…lementations/fundamentals/screening/value_screening.py180except Exception:CODE
HIGHcore/tools/implementations/trade_review/trade_info.py125except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py1586except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py1864except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py1868except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py2417except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py2714except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py7408except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py7416except Exception:CODE
HIGH…entations/agent_builder/nanobot_agent_builder_tools.py3127except Exception:CODE
HIGH…/implementations/assistant_ops/paper_trading_status.py59except Exception:CODE
HIGH…/implementations/assistant_ops/paper_trading_status.py82except Exception:CODE
HIGH…re/tools/implementations/assistant_ops/report_query.py45except ValueError:CODE
HIGHcore/tools/implementations/assistant_ops/web_search.py77except Exception:CODE
HIGHcore/tools/implementations/assistant_ops/web_search.py225except Exception:CODE
HIGH…e/tools/implementations/assistant_ops/running_tasks.py156except Exception:CODE
HIGH…e/tools/implementations/assistant_ops/running_tasks.py182except Exception:CODE
HIGH…e/tools/implementations/market/stock_screening_tool.py147except Exception:CODE
HIGHcore/tools/implementations/market/index_market_tools.py120except (TypeError, ValueError):CODE
HIGHcore/tools/external/recon_tools.py211except Exception:CODE
HIGHcore/tools/external/recon_tools.py453except Exception:CODE
HIGHcore/tools/external/sandbox_runner.py348except json.JSONDecodeError:CODE
HIGHcore/tools/external/iteration_controller.py2256except (TypeError, ValueError):CODE
HIGHcore/tools/external/iteration_controller.py2482except Exception:CODE
HIGHcore/tools/external/reconnaissance_controller.py1505except (json.JSONDecodeError, ValueError):CODE
HIGHcore/tools/external/reconnaissance_controller.py1126except Exception:CODE
HIGHcore/tools/external/reconnaissance_controller.py1535except Exception:CODE
HIGHcore/tools/external/reconnaissance_controller.py986except Exception:CODE
HIGHcore/tools/external/requirement_analyzer.py302except (json.JSONDecodeError, ValueError):CODE
HIGHcore/tools/external/code_generator.py1172except json.JSONDecodeError:CODE
HIGHcore/llm/tool_normalizer.py203except Exception:CODE
HIGHcore/llm/tool_normalizer.py245except Exception:CODE
HIGHcore/llm/tool_normalizer.py260except Exception:CODE
HIGHcore/llm/tool_normalizer.py286except Exception:CODE
HIGHcore/llm/tool_normalizer.py330except Exception:CODE
HIGHcore/llm/tool_normalizer.py351except Exception:CODE
HIGHcore/memory/service.py545except Exception:CODE
HIGHcore/memory/memory_manager.py352except ValueError:CODE
HIGHcore/memory/qdrant_adapter.py171except Exception:CODE
HIGHcore/memory/mem0_mongodb_store.py340except Exception:CODE
HIGHcore/agents/execution_trace_recorder.py386except Exception:CODE
HIGHcore/agents/analyst.py312except Exception:CODE
HIGHcore/agents/analyst.py296except Exception:CODE
HIGHcore/agents/researcher.py583except Exception:CODE
HIGHcore/agents/researcher.py590except Exception:CODE
HIGHcore/agents/researcher.py623except Exception:CODE
HIGHcore/agents/researcher.py262except Exception:CODE
HIGHcore/agents/researcher.py434except Exception:CODE
HIGHcore/agents/researcher.py247except Exception:CODE
HIGHcore/agents/researcher.py802except:CODE
235 more matches not shown…
Deep Nesting1098 hits · 831 pts
SeverityFileLineSnippetContext
LOWstart_dev.py27CODE
LOWcore/assistant/defense.py152CODE
LOWcore/assistant/defense.py231CODE
LOWcore/tools/external_skill_loader.py49CODE
LOWcore/tools/external_skill_loader.py58CODE
LOWcore/tools/qmt_market_tools.py349CODE
LOWcore/tools/qmt_market_tools.py731CODE
LOWcore/tools/registry.py130CODE
LOWcore/tools/sector_tools.py229CODE
LOWcore/tools/sector_tools.py338CODE
LOWcore/tools/sector_tools.py568CODE
LOWcore/tools/sector_tools.py964CODE
LOWcore/tools/sector_tools.py995CODE
LOWcore/tools/sector_tools.py1153CODE
LOWcore/tools/sector_tools.py1328CODE
LOWcore/tools/index_tools.py172CODE
LOWcore/tools/index_tools.py439CODE
LOWcore/tools/index_tools.py608CODE
LOWcore/tools/index_tools.py897CODE
LOWcore/tools/index_tools.py990CODE
LOWcore/tools/chip_distribution_tools.py39CODE
LOWcore/tools/base.py188CODE
LOWcore/tools/mcp/datasource_adapter.py133CODE
LOWcore/tools/mcp/client_manager.py111CODE
LOWcore/tools/mcp/client_manager.py118CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py102CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py340CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py630CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py803CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py944CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py48CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py140CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py230CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py428CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py739CODE
LOWcore/tools/implementations/fundamentals/macro_tools.py346CODE
LOWcore/tools/implementations/fundamentals/option_tools.py762CODE
LOW…tools/implementations/fundamentals/etf_fundamentals.py61CODE
LOW…tools/implementations/fundamentals/etf_fundamentals.py236CODE
LOW…tools/implementations/fundamentals/etf_fundamentals.py304CODE
LOW…ools/implementations/fundamentals/statistical_tools.py134CODE
LOW…ools/implementations/fundamentals/statistical_tools.py224CODE
LOW…ools/implementations/fundamentals/statistical_tools.py924CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py47CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py142CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py469CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py647CODE
LOW…/tools/implementations/fundamentals/financial_tools.py388CODE
LOW…/tools/implementations/fundamentals/financial_tools.py497CODE
LOW…/tools/implementations/fundamentals/financial_tools.py643CODE
LOW…/tools/implementations/fundamentals/financial_tools.py849CODE
LOW…/tools/implementations/fundamentals/financial_tools.py945CODE
LOW…/tools/implementations/fundamentals/financial_tools.py1041CODE
LOW…/tools/implementations/fundamentals/financial_tools.py1197CODE
LOW…/tools/implementations/fundamentals/financial_tools.py1239CODE
LOW…s/implementations/fundamentals/dividend_enhancement.py116CODE
LOW…tations/fundamentals/valuation/comparable_valuation.py56CODE
LOW…lementations/fundamentals/valuation/wacc_calculator.py34CODE
LOW…mplementations/fundamentals/valuation/dcf_valuation.py34CODE
LOW…entations/fundamentals/valuation/extended_valuation.py83CODE
1038 more matches not shown…
Modern Structural Boilerplate504 hits · 504 pts
SeverityFileLineSnippetContext
LOWcore/__init__.py73__all__ = [CODE
LOWcore/assistant/defense.py19logger = logging.getLogger(__name__)CODE
LOWcore/assistant/metrics.py24logger = logging.getLogger(__name__)CODE
LOWcore/assistant/reply_gate.py31logger = logging.getLogger(__name__)CODE
LOWcore/assistant/__init__.py60__all__ = [CODE
LOWcore/assistant/lexicon.py27logger = logging.getLogger(__name__)CODE
LOWcore/tools/external_skill_loader.py20logger = logging.getLogger(__name__)CODE
LOWcore/tools/qmt_market_tools.py13logger = logging.getLogger(__name__)CODE
LOWcore/tools/registry.py13logger = logging.getLogger(__name__)CODE
LOWcore/tools/__init__.py13__all__ = [CODE
LOW⚡core/tools/sector_tools.py14logger = logging.getLogger(__name__)CODE
LOWcore/tools/index_tools.py17logger = logging.getLogger(__name__)CODE
LOWcore/tools/context.py12logger = logging.getLogger(__name__)CODE
LOWcore/tools/context.py165def set_latest_nanobot_intent(intent_dict: Dict[str, Any]) -> None:CODE
LOWcore/tools/loader.py14logger = logging.getLogger(__name__)CODE
LOWcore/tools/chip_distribution_tools.py16logger = logging.getLogger(__name__)CODE
LOWcore/tools/execution_logger.py12logger = logging.getLogger(__name__)CODE
LOWcore/tools/custom_tool.py15logger = logging.getLogger(__name__)CODE
LOWcore/tools/base.py13logger = logging.getLogger(__name__)CODE
LOWcore/tools/mcp/datasource_adapter.py16logger = logging.getLogger(__name__)CODE
LOWcore/tools/mcp/__init__.py13__all__ = ["MCPClientManager", "get_mcp_client_manager"]CODE
LOWcore/tools/mcp/client_manager.py15logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/__init__.py197__all__ = [CODE
LOW⚡core/tools/implementations/legacy_bridge.py10logger = logging.getLogger(__name__)CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py31logger = logging.getLogger(__name__)CODE
LOW…s/implementations/fundamentals/cashflow_enhancement.py574__all__ = [CODE
LOW…ols/implementations/fundamentals/stock_fundamentals.py20logger = logging.getLogger(__name__)CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py15logger = logging.getLogger(__name__)CODE
LOW…ools/implementations/fundamentals/macro_cycle_tools.py947__all__ = [CODE
LOWcore/tools/implementations/fundamentals/macro_tools.py14logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/fundamentals/macro_tools.py427__all__ = ["get_macro_dashboard", "get_yield_curve_analysis"]CODE
LOWcore/tools/implementations/fundamentals/__init__.py42__all__ = [CODE
LOW…s/implementations/fundamentals/valuation_excel_tool.py26logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/fundamentals/event_study.py18logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/fundamentals/event_study.py289__all__ = ["get_event_study"]CODE
LOWcore/tools/implementations/fundamentals/option_tools.py13logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/fundamentals/option_tools.py997__all__ = [CODE
LOW…tools/implementations/fundamentals/etf_fundamentals.py16logger = logging.getLogger(__name__)CODE
LOW…ls/implementations/fundamentals/factor_bundle_tools.py17logger = logging.getLogger(__name__)CODE
LOW…ls/implementations/fundamentals/factor_bundle_tools.py351__all__ = [CODE
LOW…ools/implementations/fundamentals/statistical_tools.py24logger = logging.getLogger(__name__)CODE
LOW…ools/implementations/fundamentals/statistical_tools.py1174__all__ = [CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py15logger = logging.getLogger(__name__)CODE
LOWcore/tools/implementations/fundamentals/bond_tools.py800__all__ = [CODE
LOW…plementations/fundamentals/batch_profit_consistency.py16logger = logging.getLogger(__name__)CODE
LOW…plementations/fundamentals/standard_financial_tools.py48logger = logging.getLogger(__name__)CODE
LOW…/tools/implementations/fundamentals/financial_tools.py22logger = logging.getLogger(__name__)CODE
LOW…s/implementations/fundamentals/dividend_enhancement.py25logger = logging.getLogger(__name__)CODE
LOW…s/implementations/fundamentals/dividend_enhancement.py421__all__ = [CODE
LOW…/implementations/fundamentals/management_assessment.py16logger = logging.getLogger(__name__)CODE
LOW…tations/fundamentals/valuation/comparable_valuation.py18logger = logging.getLogger(__name__)CODE
LOW…tations/fundamentals/valuation/comparable_valuation.py283__all__ = ["get_comparable_company_valuation"]CODE
LOW…lementations/fundamentals/valuation/wacc_calculator.py12logger = logging.getLogger(__name__)CODE
LOW…lementations/fundamentals/valuation/wacc_calculator.py232__all__ = ["get_wacc_calculation"]CODE
LOW…mplementations/fundamentals/valuation/dcf_valuation.py12logger = logging.getLogger(__name__)CODE
LOW…mplementations/fundamentals/valuation/dcf_valuation.py316__all__ = ["get_dcf_valuation"]CODE
LOW…entations/fundamentals/valuation/extended_valuation.py13logger = logging.getLogger(__name__)CODE
LOW…entations/fundamentals/valuation/extended_valuation.py1683__all__ = [CODE
LOW…tions/fundamentals/screening/multi_factor_screening.py15logger = logging.getLogger(__name__)CODE
LOW…tions/fundamentals/screening/multi_factor_screening.py457__all__ = ["get_multi_factor_screening"]CODE
444 more matches not shown…
Docstring Block Structure37 hits · 185 pts
SeverityFileLineSnippetContext
HIGH…s/implementations/fundamentals/valuation_excel_tool.py116生成估值测算 Excel 表格(盈利推演 + 估值情景)。 Args: symbol: A 股股票代码,6 位数字 context_notes: 可选研究结论摘要 forecast_STRING
HIGH…ls/implementations/fundamentals/factor_bundle_tools.py63获取标准化价值因子包。 Args: symbol: A 股股票代码,如 "600519"、"000001" Returns: str: JSON 字符串,字段说明—— STRING
HIGH…ls/implementations/fundamentals/factor_bundle_tools.py144获取标准化质量因子包。 Args: symbol: A 股股票代码,如 "600519"、"000001" Returns: str: JSON 字符串,字段说明—— STRING
HIGH…ls/implementations/fundamentals/factor_bundle_tools.py239获取标准化成长/现金流因子包。 Args: symbol: A 股股票代码,如 "600519"、"000001" Returns: str: JSON 字符串,字段说明—— STRING
HIGH…lementations/fundamentals/valuation/wacc_calculator.py40WACC 加权平均资本成本计算 Args: symbol: A 股股票代码,如 600519 risk_free_rate: 无风险利率(小数形式,如 0.025 表示 2.5%),默认 0.025STRING
HIGH…mplementations/fundamentals/valuation/dcf_valuation.py42DCF 两阶段估值模型 Args: symbol: A 股股票代码,如 600519 growth_rate: 预测期年化增长率(小数形式,如 0.15 表示 15%),默认 None 由历史营收数STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py94DCF 三阶段估值模型:高增长 → 过渡(线性递减) → 永续 Args: symbol: A 股股票代码,如 600519 growth_rate: 预测期年化增长率(小数形式),默认 None STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py408股利贴现模型(Gordon Growth Model) Args: symbol: A 股股票代码,如 600519 growth_rate: 股利永续增长率(小数形式),默认 0.05;若 ≥ rSTRING
HIGH…entations/fundamentals/valuation/extended_valuation.py535剩余收益估值模型:RI_t = (ROE_t - r_e) × BV_{t-1} Args: symbol: A 股股票代码,如 600519 growth_years: 预测期年数,默认 5,自动STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py1067PEG = PE / Earnings_Growth_Rate Args: symbol: A 股股票代码,如 600519 Returns: str: JSON 字符串,包含以下可能结构STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py1194Graham Number = √(22.5 × EPS × BVPS) Args: symbol: A 股股票代码,如 600519 Returns: str: JSON 字符串,包含以STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py1337CAPM = Rf + β × ERP Args: symbol: A 股股票代码,如 600519 risk_free_rate: 无风险利率(小数形式,如 0.025 表示 2.5%),默认 0STRING
HIGH…entations/fundamentals/valuation/extended_valuation.py1473基于增长质量评分调整 PE Args: symbol: A 股股票代码,如 600519 Returns: str: JSON 字符串,包含以下可能结构—— 错误情形返回STRING
HIGH…plementations/assistant_ops/export_table_excel_tool.py199把对话中的 Markdown 表格导出为 Excel 文件。 Args: title: 表格主题(文件名) markdown_tables: Markdown 表格原文,多 sheet 用 ## 标STRING
HIGHcore/tools/implementations/portfolio/quant_tools.py316基于几何布朗运动进行蒙特卡洛价格模拟。预测未来价格分布及风险指标。 Args: symbol: A 股股票代码,如 600519、000001 days: 模拟的交易日数,默认 252(约 1 年)STRING
HIGH…implementations/market/technical_factor_bundle_tool.py81获取标准化技术因子包,从 MongoDB 物化快照中读取 MA20、RSI14、KDJ、MACD 等核心技术指标。 Args: symbol: A 股股票代码,如 600519、000001 ReturnSTRING
HIGHcore/tools/implementations/technical/indicators.py216根据 IndicatorSpec 在 DataFrame 上计算单个技术指标并追加结果列。 支持的指标名称:ma、ema、macd、rsi、boll、atr、kdj。 Args: df: 包含价格数据的 STRING
HIGHcore/config/tool_config_manager.py63 获取工具配置 Args: tool_id: 工具ID Returns: 工具配置字典,包含: STRING
HIGHcore/skill_runtime/fundamental_factors.py1116获取股票的价值因子 bundle(value_core)。 Args: symbol: A 股股票代码(6 位数字或含交易所前后缀) allow_remote_fetch: 透传给 get_sharSTRING
HIGHcore/skill_runtime/fundamental_factors.py1208获取股票的质量因子 bundle(quality_core)。 Args: symbol: A 股股票代码(6 位数字或含交易所前后缀) Returns: dict: 字段说明(合并 _bSTRING
HIGHcore/skill_runtime/fundamental_factors.py1423获取股票的成长与现金流因子 bundle(growth_cashflow_core)。 Args: symbol: A 股股票代码(6 位数字或含交易所前后缀) Returns: dictSTRING
HIGHapp/routers/skills.py2706将本地 Skill 包导入 MongoDB Args: skill_dir: Skill 包目录绝对路径 db: MongoDB 数据库 source_type: 来源类型(clawSTRING
HIGHapp/utils/thread_safe_db.py33 线程安全的 bulk_write 操作 自动检测运行环境: - 在主线程中:使用异步 MongoDB 客户端 - 在线程池中:使用同步 MongoDB 客户端 Args: STRING
HIGHapp/services/unified_analysis_service.py392 执行股票分析 Args: stock_code: 股票代码 analysis_date: 分析日期,默认今天 workflow_idSTRING
HIGHapp/services/unified_analysis_service.py632 批量分析股票 Args: stock_codes: 股票代码列表 analysis_date: 分析日期 workflow_id: STRING
HIGHapp/services/unified_analysis_engine.py138执行分析任务 Args: task: 统一分析任务对象 progress_callback: 进度回调函数 callback(progress: int, mSTRING
HIGHapp/services/unified_analysis_engine.py417选择执行引擎 Args: requested_engine: 请求的引擎类型 (auto/workflow/legacy/llm) default_engine: 默认引擎类STRING
HIGHapp/services/unified_analysis_engine.py779通过旧引擎执行(TradingAgentsGraph)— 已停用 v3.0 起旧版 legacy 引擎已停用,所有入口已封堵。 详见 docs/99-archive/deprecated-features/STRING
HIGHapp/services/portfolio_service.py3040 校验成本价是否在买入日历史数据的最高价和最低价范围内。 校验策略: 1. 优先用数据库中的前复权数据校验(大多数情况成本价就是前复权价格) 2. 若前复权校验失败,实时调用STRING
HIGHapp/services/portfolio_service.py4379使用旧版 simple_analysis_service 获取分析报告(降级方案)— 已停用 v3.0 起旧版 legacy 引擎已停用(死代码,无调用者)。 详见 docs/99-archive/deprSTRING
HIGHapp/services/scheduler_service.py345 手动触发任务执行 注意:如果任务处于暂停状态,会先临时恢复任务,执行一次后不会自动暂停 Args: job_id: 任务ID kwargsSTRING
HIGHtradingagents/core/engine/data_access_manager.py57 根据契约获取 Agent 的输入数据 按契约声明的输入层和字段聚合数据: - 指定 fields 时只返回这些字段 - fields 为空时返回整层所有数据STRING
HIGHtradingagents/config/mongodb_utils.py19 构建 MongoDB 连接字符串 优先级: 1. 如果设置了 MONGODB_CONNECTION_STRING 环境变量,直接使用 2. 如果传入了参数,使用传入的参数 3. 否则从环境STRING
HIGHtradingagents/config/mongodb_utils.py116 构建 Redis 连接字符串 优先级: 1. 如果设置了 REDIS_URL 环境变量,直接使用 2. 如果传入了参数,使用传入的参数 3. 否则从环境变量读取 REDIS_HOST, REDISSTRING
HIGH…gagents/dataflows/providers/us/alpha_vantage_common.py167 发起 Alpha Vantage API 请求 Args: function: API 函数名(如 NEWS_SENTIMENT, OVERVIEW 等) params: 请求参数STRING
HIGHskills/ifind-repilot-news-search/scripts/fetch_data.py65 查询金融资讯数据 Args: query: 查询问句 start_date: 开始日期,格式为 YYYY-MM-DDTHH:MM:SS (例如 2025-01-01T00:00:00) STRING
HIGH…find-repilot-finance-data-search/scripts/fetch_data.py55 查询金融数据 Args: query: 查询问句 Returns: API 返回的 JSON 数据 Raises: ValueError: 参数无效或认STRING
Cross-Language Confusion19 hits · 131 pts
SeverityFileLineSnippetContext
HIGH⚡core/workflow/generator/workflow_planner.py121 {{"id": "e1", "source": "start", "target": "parallel_1", "type": "normal", "condition": null}}CODE
HIGH⚡core/workflow/generator/workflow_planner.py131 "default": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py134 "options": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py135 "option_labels": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py136 "min": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py137 "max": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py151 "min": null,CODE
HIGH⚡core/workflow/generator/workflow_planner.py152 "max": null,CODE
HIGH⚡app/services/intelligent_screening_v2.py154 "target_metric": "roe" | "pe" | "pb" | "margin" | "debt" | "cashflow" | "other" | null,CODE
HIGH⚡app/services/intelligent_screening_v2.py155 "adjust_direction": "loosen" | "tighten" | null,CODE
HIGH⚡app/services/intelligent_screening_v2.py156 "target_value": "10%" | "20" | "30%" | null,CODE
HIGH⚡app/services/intelligent_screening_v2.py157 "stock_code": "002582" | "600519" | null,CODE
HIGH⚡app/services/intelligent_screening_v2.py158 "stock_name": "好想你" | "贵州茅台" | null,CODE
HIGH⚡app/services/intelligent_screening_service.py525 "adjustment_target": "roe" | "pe" | "pb" | "margin" | "debt" | "cashflow" | "other" | null,CODE
HIGH⚡app/services/intelligent_screening_service.py526 "adjustment_direction": "loosen" | "tighten" | null,CODE
HIGH⚡app/services/intelligent_screening_service.py527 "explicit_parameters": "用户明确提到的具体参数,如'把ROE放宽到10%'中的'10%'" | null,CODE
HIGH⚡app/services/intelligent_screening_service.py492 "adjustment_target": "roe" | "pe" | "pb" | "margin" | "other" | null,STRING
HIGH⚡app/services/intelligent_screening_service.py493 "adjustment_direction": "loosen" | "tighten" | null,STRING
HIGH⚡app/services/intelligent_screening_service.py494 "explicit_parameters": str | null,STRING
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGHcore/agents/base.py0✅ 工具调用已完成,所有需要的数据都已获取。 🚫 **严格禁止再次调用工具** 📝 **现在请立即执行**: 基于上述工具返回的真实数据,按照之前的分析要求和输出格式,直接撰写完整的持仓基本面分析报告。 ⚠️ **重要提醒**: - 不要返STRING
HIGHcore/agents/adapters/position/technical_analyst_v2.py0✅ 工具调用已完成,所有需要的数据都已获取。 🚫 **严格禁止再次调用工具** 📝 **现在请立即执行**: 基于上述工具返回的真实数据,按照之前的分析要求和输出格式,直接撰写完整的持仓基本面分析报告。 ⚠️ **重要提醒**: - 不要返STRING
HIGHcore/agents/adapters/position/fundamental_analyst_v2.py0✅ 工具调用已完成,所有需要的数据都已获取。 🚫 **严格禁止再次调用工具** 📝 **现在请立即执行**: 基于上述工具返回的真实数据,按照之前的分析要求和输出格式,直接撰写完整的持仓基本面分析报告。 ⚠️ **重要提醒**: - 不要返STRING
HIGHcore/agents/adapters/risky_analyst_v2.py0构建系统提示词 args: state: 工作流状态(可选,用于提取变量如 company_name, ticker 等) returns: 系统提示词STRING
HIGHcore/agents/adapters/safe_analyst_v2.py0构建系统提示词 args: state: 工作流状态(可选,用于提取变量如 company_name, ticker 等) returns: 系统提示词STRING
HIGHcore/agents/adapters/neutral_analyst_v2.py0构建系统提示词 args: state: 工作流状态(可选,用于提取变量如 company_name, ticker 等) returns: 系统提示词STRING
HIGHcore/agents/adapters/social_analyst_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: market_type: 市场类型(a股/港股/美股)(保留以兼容基类) context: agentcontext 对象(用于调试模式) statSTRING
HIGHcore/agents/adapters/sector_analyst_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: market_type: 市场类型(a股/港股/美股)(保留以兼容基类) context: agentcontext 对象(用于调试模式) statSTRING
HIGHcore/agents/adapters/market_analyst_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: market_type: 市场类型(a股/港股/美股)(保留以兼容基类) context: agentcontext 对象(用于调试模式) statSTRING
HIGHcore/agents/adapters/news_analyst_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: market_type: 市场类型(a股/港股/美股)(保留以兼容基类) context: agentcontext 对象(用于调试模式) statSTRING
HIGHcore/agents/adapters/index_analyst_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: market_type: 市场类型(a股/港股/美股)(保留以兼容基类) context: agentcontext 对象(用于调试模式) statSTRING
HIGHcore/agents/adapters/social_analyst_v2.py0构建用户提示词(参考 research_manager_v2 和 fundamentals_analyst_v2 的实现) args: ticker: 股票代码 analysis_date: 分析日期 tool_data: 工具返回的数据(STRING
HIGHcore/agents/adapters/sector_analyst_v2.py0构建用户提示词(参考 research_manager_v2 和 fundamentals_analyst_v2 的实现) args: ticker: 股票代码 analysis_date: 分析日期 tool_data: 工具返回的数据(STRING
HIGHcore/agents/adapters/news_analyst_v2.py0构建用户提示词(参考 research_manager_v2 和 fundamentals_analyst_v2 的实现) args: ticker: 股票代码 analysis_date: 分析日期 tool_data: 工具返回的数据(STRING
HIGHcore/agents/adapters/index_analyst_v2.py0构建用户提示词(参考 research_manager_v2 和 fundamentals_analyst_v2 的实现) args: ticker: 股票代码 analysis_date: 分析日期 tool_data: 工具返回的数据(STRING
HIGHcore/agents/adapters/risk_manager_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: state: 工作流状态(用于提取模板变量) returns: 系统提示词STRING
HIGHcore/agents/adapters/trader_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: state: 工作流状态(用于提取模板变量) returns: 系统提示词STRING
HIGHcore/agents/adapters/research_manager_v2.py0构建系统提示词(参考 fundamentals_analyst_v2 的实现) args: state: 工作流状态(用于提取模板变量) returns: 系统提示词STRING
HIGHapp/worker/us_data_service.py0标准化股票信息格式 args: stock_info: 原始股票信息 source: 数据源 returns: dict: 标准化后的股票信息STRING
HIGHapp/worker/hk_data_service.py0标准化股票信息格式 args: stock_info: 原始股票信息 source: 数据源 returns: dict: 标准化后的股票信息STRING
HIGHapp/worker/us_sync_service.py0标准化股票信息格式 args: stock_info: 原始股票信息 source: 数据源 returns: dict: 标准化后的股票信息STRING
HIGHapp/worker/hk_sync_service.py0标准化股票信息格式 args: stock_info: 原始股票信息 source: 数据源 returns: dict: 标准化后的股票信息STRING
HIGHapp/worker/baostock_sync_service.py0获取最后同步日期 args: symbol: 股票代码,如果提供则返回该股票的最后日期+1天 returns: 日期字符串 (yyyy-mm-dd)STRING
HIGHapp/worker/tushare_sync_service.py0获取最后同步日期 args: symbol: 股票代码,如果提供则返回该股票的最后日期+1天 returns: 日期字符串 (yyyy-mm-dd)STRING
HIGHapp/worker/akshare_sync_service.py0获取最后同步日期 args: symbol: 股票代码,如果提供则返回该股票的最后日期+1天 returns: 日期字符串 (yyyy-mm-dd)STRING
Dead Code63 hits · 115 pts
SeverityFileLineSnippetContext
MEDIUMcore/skill_runtime/standard_financial_apis.py231CODE
MEDIUMcore/skill_runtime/standard_financial_apis.py232CODE
MEDIUMcore/workflow/builder.py2298CODE
MEDIUMcore/workflow/builder.py2321CODE
MEDIUMcore/workflow/builder.py2324CODE
MEDIUMcore/workflow/builder.py2326CODE
MEDIUMapp/utils/report_formatter.py41CODE
MEDIUMapp/utils/report_formatter.py43CODE
MEDIUMapp/services/unified_analysis_engine.py802CODE
MEDIUMapp/services/unified_analysis_engine.py805CODE
MEDIUMapp/services/unified_analysis_engine.py809CODE
MEDIUMapp/services/unified_analysis_engine.py812CODE
MEDIUMapp/services/unified_analysis_engine.py813CODE
MEDIUMapp/services/unified_analysis_engine.py815CODE
MEDIUMapp/services/unified_analysis_engine.py819CODE
MEDIUMapp/services/unified_analysis_engine.py822CODE
MEDIUMapp/services/unified_analysis_engine.py825CODE
MEDIUMapp/services/unified_analysis_engine.py828CODE
MEDIUMapp/services/unified_analysis_engine.py837CODE
MEDIUMapp/services/portfolio_service.py4305CODE
MEDIUMapp/services/portfolio_service.py4402CODE
MEDIUMapp/services/portfolio_service.py4403CODE
MEDIUMapp/services/portfolio_service.py4404CODE
MEDIUMapp/services/portfolio_service.py4405CODE
MEDIUMapp/services/portfolio_service.py4407CODE
MEDIUMapp/services/portfolio_service.py4409CODE
MEDIUMapp/services/portfolio_service.py4412CODE
MEDIUMapp/services/portfolio_service.py4414CODE
MEDIUMapp/services/portfolio_service.py4419CODE
MEDIUMapp/services/portfolio_service.py4425CODE
MEDIUMapp/services/portfolio_service.py4462CODE
MEDIUMapp/services/portfolio_service.py4468CODE
MEDIUMapp/services/portfolio_service.py4474CODE
MEDIUMapp/services/portfolio_service.py4481CODE
MEDIUMapp/services/portfolio_service.py4484CODE
MEDIUMapp/services/portfolio_service.py4495CODE
MEDIUMapp/services/portfolio_service.py4496CODE
MEDIUMapp/services/portfolio_service.py4499CODE
MEDIUMapp/services/portfolio_service.py4502CODE
MEDIUMapp/services/simple_analysis_service.py939CODE
MEDIUMapp/services/simple_analysis_service.py941CODE
MEDIUMapp/services/simple_analysis_service.py947CODE
MEDIUMapp/services/simple_analysis_service.py949CODE
MEDIUMapp/services/simple_analysis_service.py1157CODE
MEDIUMapp/services/simple_analysis_service.py1160CODE
MEDIUMapp/services/simple_analysis_service.py1168CODE
MEDIUMapp/services/simple_analysis_service.py1169CODE
MEDIUMapp/services/simple_analysis_service.py1491CODE
MEDIUMapp/services/simple_analysis_service.py1492CODE
MEDIUMapp/services/simple_analysis_service.py1493CODE
MEDIUMapp/services/simple_analysis_service.py1494CODE
MEDIUMapp/services/simple_analysis_service.py1502CODE
MEDIUMapp/services/simple_analysis_service.py1503CODE
MEDIUMapp/services/simple_analysis_service.py1526CODE
MEDIUMapp/services/analysis_service.py124CODE
MEDIUMapp/services/analysis_service.py126CODE
MEDIUMapp/services/analysis_service.py137CODE
MEDIUMapp/services/analysis_service.py155CODE
MEDIUMapp/services/analysis_service.py315CODE
MEDIUMapp/services/analysis_service.py735CODE
3 more matches not shown…
Magic Placeholder Names16 hits · 82 pts
SeverityFileLineSnippetContext
HIGHcore/workflow/builder.py579 if model_api_key and model_api_key.strip() and model_api_key != "your-api-key" and not model_api_key.startswCODE
HIGHcore/workflow/builder.py584 if provider_api_key and provider_api_key.strip() and provider_api_key != "your-api-key" and not providerCODE
HIGHcore/workflow/builder.py745 if pk and pk.strip() and pk != "your-api-key" and not pk.startswith("sk-xxx"):CODE
HIGHcore/workflow/builder.py750 if model_api_key and model_api_key.strip() and model_api_key != "your-api-key":CODE
HIGHapp/services/skill_credential_service.py251 - `--set-api-key <your_api_key>`STRING
HIGHapp/services/unified_analysis_engine.py290 if model_api_key and model_api_key.strip() and model_api_key != "your-api-key" and not model_api_key.startswith(CODE
HIGHapp/services/unified_analysis_engine.py295 if provider_api_key and provider_api_key.strip() and provider_api_key != "your-api-key" and not provider_apiCODE
HIGHapp/services/unified_analysis_engine.py347 if deep_model_api_key and deep_model_api_key.strip() and deep_model_api_key != "your-api-key" and not deep_mCODE
HIGHapp/services/unified_analysis_engine.py354 if deep_provider_api_key and deep_provider_api_key.strip() and deep_provider_api_key != "your-api-keCODE
HIGHtests/test_dashscope_adapter_fix.py286 print(" Windows: set DASHSCOPE_API_KEY=your_api_key")CODE
HIGHtests/test_dashscope_adapter_fix.py287 print(" Linux/Mac: export DASHSCOPE_API_KEY=your_api_key")CODE
HIGH⚡tests/integration/test_dashscope_integration.py44 print("💡 请设置: set DASHSCOPE_API_KEY=your_api_key")CODE
HIGH⚡tests/integration/test_dashscope_integration.py51 print("💡 请设置: set FINNHUB_API_KEY=your_api_key")CODE
HIGHdocs/02-user-guide/user-manual-v3.0.md3085 "MCP_API_KEY": "your-api-key"CODE
HIGH…dingagents/dataflows/providers/examples/example_sdk.py367 provider = ExampleSDKProvider(api_key="your_api_key")CODE
HIGH…dingagents/dataflows/providers/examples/example_sdk.py388 async with ExampleSDKProvider(api_key="your_api_key") as provider:CODE
Verbosity Indicators21 hits · 40 pts
SeverityFileLineSnippetContext
LOW⚡app/services/basics_sync_service.py224 # Step 1: Fetch stock basic list from Tushare (blocking -> thread)COMMENT
LOW⚡app/services/basics_sync_service.py229 # Step 2: Determine latest trade_date and fetch daily_basic for financial metrics (blocking -> thread)COMMENT
LOW⚡app/services/basics_sync_service.py237 # Step 3: Upsert into MongoDB (batched bulk writes)COMMENT
LOW⚡app/services/multi_source_basics_sync_service.py345 # Step 2: 尝试从数据源获取股票列表(排除本地数据源)COMMENT
LOW⚡app/services/multi_source_basics_sync_service.py353 # Step 3: 获取最新交易日期和财务数据COMMENT
LOWapp/services/multi_source_basics_sync_service.py326 # Step 1: 获取数据源管理器COMMENT
LOWapp/services/multi_source_basics_sync_service.py402 # Step 5: 处理和更新数据(分批处理)COMMENT
LOWapp/services/multi_source_basics_sync_service.py509 # Step 7: 更新统计信息COMMENT
LOW⚡tests/test_mcp_endpoint.py55 # Step 1: initializeCOMMENT
LOWtests/test_mcp_endpoint.py89 # Step 2: tools/listCOMMENT
LOWtests/skills/test_create_moat_skill.py81 # Step 1: 启动会话COMMENT
LOWtests/skills/test_create_moat_skill.py109 # Step 2: 如果需要多轮对话,回应 AI 的问题COMMENT
LOWtests/skills/test_create_moat_skill.py136 # Step 3: 确认规格并触发代码生成(异步)COMMENT
LOWtests/skills/test_create_moat_skill.py193 # Step 5: 测试生成的 skillCOMMENT
LOW⚡cli/main.py559 # Step 1: Market selectionCOMMENT
LOW⚡cli/main.py569 # Step 2: Ticker symbolCOMMENT
LOW⚡cli/main.py579 # Step 3: Analysis dateCOMMENT
LOW⚡cli/main.py602 # Step 5: Research depthCOMMENT
LOW⚡cli/main.py611 # Step 6: LLM ProviderCOMMENT
LOW⚡cli/main.py620 # Step 7: Thinking agentsCOMMENT
LOWcli/main.py590 # Step 4: Select analystsCOMMENT
Structural Annotation Overuse21 hits · 40 pts
SeverityFileLineSnippetContext
LOW⚡app/services/basics_sync_service.py224 # Step 1: Fetch stock basic list from Tushare (blocking -> thread)COMMENT
LOW⚡app/services/basics_sync_service.py229 # Step 2: Determine latest trade_date and fetch daily_basic for financial metrics (blocking -> thread)COMMENT
LOW⚡app/services/basics_sync_service.py237 # Step 3: Upsert into MongoDB (batched bulk writes)COMMENT
LOW⚡app/services/multi_source_basics_sync_service.py345 # Step 2: 尝试从数据源获取股票列表(排除本地数据源)COMMENT
LOW⚡app/services/multi_source_basics_sync_service.py353 # Step 3: 获取最新交易日期和财务数据COMMENT
LOWapp/services/multi_source_basics_sync_service.py326 # Step 1: 获取数据源管理器COMMENT
LOWapp/services/multi_source_basics_sync_service.py402 # Step 5: 处理和更新数据(分批处理)COMMENT
LOWapp/services/multi_source_basics_sync_service.py509 # Step 7: 更新统计信息COMMENT
LOW⚡tests/test_mcp_endpoint.py55 # Step 1: initializeCOMMENT
LOWtests/test_mcp_endpoint.py89 # Step 2: tools/listCOMMENT
LOWtests/skills/test_create_moat_skill.py81 # Step 1: 启动会话COMMENT
LOWtests/skills/test_create_moat_skill.py109 # Step 2: 如果需要多轮对话,回应 AI 的问题COMMENT
LOWtests/skills/test_create_moat_skill.py136 # Step 3: 确认规格并触发代码生成(异步)COMMENT
LOWtests/skills/test_create_moat_skill.py193 # Step 5: 测试生成的 skillCOMMENT
LOW⚡cli/main.py559 # Step 1: Market selectionCOMMENT
LOW⚡cli/main.py569 # Step 2: Ticker symbolCOMMENT
LOW⚡cli/main.py579 # Step 3: Analysis dateCOMMENT
LOW⚡cli/main.py602 # Step 5: Research depthCOMMENT
LOW⚡cli/main.py611 # Step 6: LLM ProviderCOMMENT
LOW⚡cli/main.py620 # Step 7: Thinking agentsCOMMENT
LOWcli/main.py590 # Step 4: Select analystsCOMMENT
AI Structural Patterns48 hits · 36 pts
SeverityFileLineSnippetContext
LOWcore/tools/base.py75CODE
LOWcore/tools/implementations/fundamentals/option_tools.py762CODE
LOW…entations/fundamentals/valuation/extended_valuation.py83CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py78CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py405CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py2993CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py3202CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py4328CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py4414CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py4518CODE
LOW…entations/agent_builder/nanobot_agent_builder_tools.py5963CODE
LOWcore/llm/unified_client.py516CODE
LOWcore/memory/service.py350CODE
LOWcore/agents/adapters/sector_analyst_v2.py316CODE
LOWcore/embedded_nanobot/intent_context.py517CODE
LOWcore/embedded_nanobot/intent_context.py180CODE
LOWapp/routers/intelligent_screening.py69CODE
LOWapp/routers/stock_sync.py1078CODE
LOWapp/routers/analysis.py1958CODE
LOWapp/routers/memory.py119CODE
LOWapp/routers/memory.py165CODE
LOWapp/routers/quality_metrics.py38CODE
LOWapp/routers/review.py129CODE
LOWapp/routers/reports.py210CODE
LOWapp/routers/unified_tasks.py274CODE
LOWapp/routers/operation_logs.py26CODE
LOWapp/utils/report_saver.py139CODE
LOWapp/utils/report_exporter.py731CODE
LOWapp/worker/financial_data_sync_service.py78CODE
LOWapp/worker/tushare_sync_service.py578CODE
LOWapp/services/task_analysis_service.py2229CODE
LOWapp/services/unified_analysis_engine.py837CODE
LOWapp/services/unified_analysis_engine.py882CODE
LOWapp/services/intelligent_assistant_service.py1258CODE
LOWapp/services/intelligent_assistant_service.py4586CODE
LOWapp/services/intelligent_assistant_service.py4718CODE
LOWapp/services/portfolio_service.py395CODE
LOWapp/services/quality_metrics_service.py35CODE
LOWapp/services/quality_metrics_service.py149CODE
LOWapp/services/enhanced_screening_service.py209CODE
LOWapp/services/prompt_assembly_service.py249CODE
LOWapp/services/embedded_nanobot_service.py66CODE
LOWtests/test_asyncio_thread_pool_fix.py36CODE
LOWtradingagents/core/engine/stock_analysis_engine.py79CODE
LOWtradingagents/graph/reflection.py76CODE
LOWtradingagents/utils/stock_validator.py20CODE
LOWtradingagents/dataflows/providers/us/optimized.py443CODE
LOWtradingagents/dataflows/news/google_news.py41CODE
Fake / Example Data33 hits · 33 pts
SeverityFileLineSnippetContext
LOW⚡…entations/agent_builder/nanobot_agent_builder_tools.py2425 if normalized in {"placeholder_mock", "mock", "placeholder"}:CODE
LOWcore/tools/external/iteration_controller.py2761 '"mock"', '"模拟"', '"fake"', '"dummy"', '"placeholder"',CODE
LOW⚡core/memory/mem0_mongodb_store.py81 collection.insert_one({"_id": "placeholder", "placeholder": True})CODE
LOW⚡core/memory/mem0_mongodb_store.py82 collection.delete_one({"_id": "placeholder"})CODE
LOW⚡core/workflow/generator/workflow_planner.py133 "placeholder": "如: 600519.SH",CODE
LOW⚡core/workflow/generator/workflow_planner.py148 "placeholder": "",CODE
LOWcore/api/workflow_api.py81 "placeholder": "请输入分析目标",CODE
LOWcore/api/workflow_api.py96 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py107 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py127 "placeholder": "持仓数据",CODE
LOWcore/api/workflow_api.py138 "placeholder": "", "options": None, "option_labels": None,CODE
LOWcore/api/workflow_api.py148 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py159 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py176 "placeholder": "交易记录",CODE
LOWcore/api/workflow_api.py187 "placeholder": "", "options": None, "option_labels": None,CODE
LOWcore/api/workflow_api.py197 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py208 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py234 "placeholder": ticker_placeholder,CODE
LOWcore/api/workflow_api.py245 "placeholder": "", "options": None, "option_labels": None,CODE
LOWcore/api/workflow_api.py255 "placeholder": "",CODE
LOWcore/api/workflow_api.py267 "placeholder": "选择分析师",CODE
LOWcore/api/workflow_api.py279 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py290 "placeholder": "选择模型",CODE
LOWcore/api/workflow_api.py301 "placeholder": "",CODE
LOWcore/api/workflow_api.py312 "placeholder": "",CODE
LOWfrontend/src/components/DeepModelSelector.vue7 :placeholder="placeholder"CODE
LOWfrontend/src/components/Global/MarketSelector.vue4 :placeholder="placeholder"CODE
LOWfrontend/src/views/Settings/index.vue774 email: authStore.user?.email || 'admin@example.com',CODE
LOWfrontend/src/views/Settings/index.vue819 generalSettings.value.email = newUser.email || 'admin@example.com'CODE
LOWtests/test_post_processors.py104 "to": "user@example.com",CODE
LOWtests/test_post_processors.py129 "to": "user@example.com",CODE
LOWtests/unit/core/licensing/test_community_stub.py36 return _community_license_info("user@example.com")CODE
LOWtradingagents/agents/utils/embedding_provider.py132 if not api_key or api_key.startswith('your_') or api_key == 'placeholder':CODE
Self-Referential Comments4 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMmain.py9# Create a custom configCOMMENT
MEDIUMapp/worker.py104 # Define a thread-safe callback to publish progress from worker threadCOMMENT
MEDIUM⚡cli/main.py551 # Create a boxed questionnaire for each stepCOMMENT
MEDIUMcli/main.py151# Create a deque to store recent messages with a maximum lengthCOMMENT
Modern AI Meta-Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMcore/tools/external/iteration_controller.py1263 # 将完整的 agentic prompt 写入日志文件,方便排查 LLM 未调用推荐 helper 的问题COMMENT
MEDIUMcore/tools/external/iteration_controller.py2310 # agentic 反思含最多 5 轮工具调用往返,配合深度推理模型需要充足时间;COMMENT
MEDIUMapp/services/planned_analysis_service.py454 # RAG 动态知识检索(优雅降级:不可用时返回空字符串)COMMENT
MEDIUMapp/services/intelligent_assistant_service.py2366 # RAG 动态知识检索(优雅降级:不可用时返回空字符串)COMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWstart_dev.py131 # Check if any process exitedCOMMENT
LOWapp/routers/sse.py141 # Check if batch belongs to userCOMMENT
LOWtests/config/test_logging_json.py20 # Set CWD to tempCOMMENT
LOWtradingagents/dataflows/interface.py386 # Check if there are any available reports; if not, return a notificationCOMMENT
LOWtradingagents/dataflows/interface.py433 # Check if there are any available reports; if not, return a notificationCOMMENT
LOWtradingagents/dataflows/interface.py480 # Check if there are any available reports; if not, return a notificationCOMMENT
LOWtradingagents/dataflows/interface.py889 # Check if data is emptyCOMMENT
Over-Commented Block14 hits · 10 pts
SeverityFileLineSnippetContext
LOWcore/assistant/defense.py101]COMMENT
LOWcore/memory/memory_manager.py461 # 原因:COMMENT
LOWapp/routers/config.py1001 # 🔥 方案1:不要自动从厂家配置复制 API Key 到模型配置COMMENT
LOWapp/routers/analysis.py1881COMMENT
LOWapp/routers/analysis.py1901# return tCOMMENT
LOWapp/core/config.py241 # 通过 JDYUN_MODE=true 启用京东云合作版模式COMMENT
LOWapp/core/jdyun.py161 if is_jdyun_mode():COMMENT
LOWapp/worker/unified_thread_pool_sync_service.py321 if 'news_service' in thread_local_connections:COMMENT
LOWapp/worker/unified_thread_pool_sync_service.py341 # 3. MongoDB连接是线程安全的,多个连接可以并发使用COMMENT
LOWapp/worker/tushare_sync_service.py421 logger.error(f"❌ 实时行情同步失败: {e}")COMMENT
LOWapp/worker/tushare_sync_service.py441 # try:COMMENT
LOWapp/services/task_analysis_service.py221 try:COMMENT
LOWtradingagents/config/runtime_settings.py41 # 临时解决方案:完全禁用动态配置获取,避免事件循环冲突COMMENT
LOWtradingagents/config/runtime_settings.py61 # # 第三次检查:在调用asyncio.run之前再次确认COMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
MEDIUMfrontend/package-lock.json6357 "resolved": "https://registry.npmmirror.com/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMtradingagents/dataflows/optimized_china_data.py600 else: # detailed, comprehensiveSTRING
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWapp/services/task_analysis_service.py145 async def execute_task(CODE
LOWapp/services/unified_analysis_engine.py133 async def execute_task(CODE
LOWtests/test_sse_and_worker_config.py257 async def execute_task(self, updated_task, progress_callback=None):CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtradingagents/agents/utils/memory.py916 # Example usageCOMMENT