Repository Analysis

HKUDS/Vibe-Trading

"Vibe-Trading: Your Personal Trading Agent"

56.4 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of HKUDS/Vibe-Trading, a Python project with 31,968 GitHub stars. SynthScan v2.0 examined 523,215 lines of code across 2301 source files, recording 18909 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 56.4 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).

56.4
Adjusted Score
56.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
32.0K
Stars
Python
Language
523.2K
Lines of Code
2.3K
Files
18.9K
Pattern Hits
2026-08-29
Scan Date
0.36
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 12HIGH 815MEDIUM 3066LOW 15016

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators3004 hits · 10475 pts
SeverityFileLineSnippetContext
MEDIUMtools/test_ci_env_var_gate.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py199# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py201# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py237# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py239# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py27# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py49# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/test_ci_env_var_gate.py220# ---------------------------------------------------------------------------STRING
MEDIUMtools/test_ci_env_var_gate.py222# ---------------------------------------------------------------------------STRING
MEDIUMtools/ci_env_var_gate.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py196# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/ci_env_var_gate.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMfrontend/src/tests/setup.ts7// ── Global mocks for jsdom ───────────────────────────────────COMMENT
MEDIUMfrontend/src/hooks/__tests__/useSSE.test.ts4// ── Mock EventSource ──────────────────────────────────────COMMENT
MEDIUMfrontend/src/hooks/__tests__/useSSE.test.ts59// ── Tests ─────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/i18n/__tests__/i18n.test.ts4// ── helpers ────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/i18n/__tests__/i18n.test.ts36// ── locale parity ──────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/i18n/__tests__/i18n.test.ts86// ── interpolation variable parity ──────────────────────────────COMMENT
MEDIUMfrontend/src/i18n/__tests__/i18n.test.ts128// ── utility functions ──────────────────────────────────────────COMMENT
MEDIUMwiki/scripts/build_alpha_library.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py93# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py95# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py138# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py140# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py279# ---------------------------------------------------------------------------STRING
MEDIUMwiki/scripts/build_alpha_library.py281# ---------------------------------------------------------------------------STRING
MEDIUMwiki/scripts/build_alpha_library.py347# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py349# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py382# ---------------------------------------------------------------------------COMMENT
MEDIUMwiki/scripts/build_alpha_library.py384# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/api_server.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/api_server.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/api_server.py324# ============================================================================COMMENT
MEDIUMagent/api_server.py326# ============================================================================COMMENT
MEDIUMagent/mcp_server.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py1171# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py1173# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py1698# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py1700# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py2537# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py2539# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py134# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py509# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py511# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py549# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py551# ---------------------------------------------------------------------------COMMENT
MEDIUMagent/mcp_server.py765# ---------------------------------------------------------------------------COMMENT
2944 more matches not shown…
Hyper-Verbose Identifiers7436 hits · 7370 pts
SeverityFileLineSnippetContext
LOWtools/test_ci_env_var_gate.py88 def test_subscript_read_in_expression(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py181 def test_pop_outside_settings_routes(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py190 def test_pop_in_settings_routes_no_warning(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py245 def test_noqa_suppresses_getenv(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py250 def test_noqa_suppresses_environ_get(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py255 def test_noqa_suppresses_subscript_read(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py260 def test_noqa_does_not_affect_other_lines(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py266 def test_partial_noqa_not_matched(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py62 def test_os_getenv_with_default(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py75 def test_environ_get_with_default(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py135 def test_subscript_aug_assign(self) -> None:CODE
LOWtools/test_ci_env_var_gate.py150 def test_config_visitor_clean(self) -> None:CODE
LOW…/src/components/chat/ScheduledResearchProposalCard.tsx19export const ScheduledResearchProposalCard = memo(function ScheduledResearchProposalCard({CODE
LOWfrontend/src/components/chat/RunnerStatus.tsx80function fallbackAuthorizeInstruction(): string {CODE
LOWfrontend/src/components/chat/RunnerStatus.tsx333export function isVisibleRuntimeConnector(broker: LiveBrokerStatus): boolean {CODE
LOW…d/src/components/charts/AttributionCumulativeChart.tsx14export function AttributionCumulativeChart({ data, height = 300 }: Props) {CODE
LOW…nd/src/components/charts/StrategyResearchDashboard.tsx68export function getStrategyReportIdentity(run: RunData): ReportIdentity {CODE
LOW…nd/src/components/charts/StrategyResearchDashboard.tsx121export function StrategyResearchDashboard({ run }: { run: RunData }) {CODE
LOW…nd/src/components/charts/AttributionWaterfallChart.tsx41export function AttributionWaterfallChart({ brinson, height = 300 }: Props) {CODE
LOWfrontend/src/lib/attachments.ts11export function prependUploadedAttachments(CODE
LOWfrontend/src/lib/attachments.ts24export function extractUploadedAttachments(content: string): {CODE
LOWfrontend/src/lib/swarmStatus.ts109export function buildSwarmStatusFromStarted(data: AnyRecord): SwarmRunStatus | null {CODE
LOWfrontend/src/lib/swarmStatus.ts301export function buildSwarmStatusFromToolResultPreview(preview: string): SwarmRunStatus | null {CODE
LOWfrontend/src/pages/Runtime.tsx410function formatEnvironmentIdentity(identity: string | null | undefined, t: TFunction): string {CODE
LOWfrontend/src/pages/RunDetail.tsx297 async function handleLoadAllChartSymbols() {CODE
LOWfrontend/src/pages/RunDetail.tsx322 function handleCancelLoadAllCharts() {CODE
LOWfrontend/src/pages/agentToolTimeline.ts29export function buildToolTimelineMessages(CODE
LOWwiki/scripts/check_social_cards.py44def require_alpha_library_card() -> None:CODE
LOWdesktop/electron/src/backend-manager.ts476function isCompleteShutdownEvidence(evidence: BackendShutdownEvidence): boolean {CODE
LOWdesktop/electron/src/main.ts194function writeParentDeathSmokeRecord(url: string): void {CODE
LOWdesktop/electron/src/update-verification.ts51export async function verifyWindowsUpdateCandidate(CODE
LOWdesktop/electron/src/update-verification.ts151export async function assertVerifiedUpdateArtifactUnchanged(CODE
LOWdesktop/electron/src/update-verification.ts168export function inspectAuthenticodeSignature(artifactPath: string): AuthenticodeInspection {CODE
LOWdesktop/electron/src/update-verification.ts279function resolveSignaturePowerShell(): string {CODE
LOWagent/api_server.py145async def _stop_scheduled_research_on_shutdown() -> None:CODE
LOWagent/mcp_server.py1176def _strategy_discovery_execute(tool_name: str, params: dict[str, Any]) -> str:CODE
LOWagent/mcp_server.py113def _resolve_include_shell_tools(cli_opt_in: bool) -> bool:CODE
LOWagent/mcp_server.py720def update_research_goal_status(CODE
LOWagent/mcp_server.py1296def refresh_strategy_evidence(CODE
LOWagent/mcp_server.py1367def trading_select_connection(connection: str) -> str:CODE
LOWagent/mcp_server.py2414def _string_result_output_schema() -> dict[str, Any] | None:CODE
LOWagent/tests/test_mt5_loader_week_month_reject.py10def test_week_and_month_tokens_map_like_connector() -> None:CODE
LOWagent/tests/test_mt5_loader_week_month_reject.py17def test_unsupported_interval_returns_empty_without_daily_rewrite() -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py71 def test_compact_date_normalizes(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py75 def test_compact_date_rejects_garbage(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py79 def test_bare_code_strips_suffix(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py94 def test_full_market_list_no_code(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py116 def test_with_code_adds_seats(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py133 def test_missing_date_returns_error_envelope(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py138 def test_bad_date_returns_error_envelope(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py143 def test_http_failure_returns_error_envelope(self) -> None:CODE
LOWagent/tests/test_dragon_tiger_tool.py158 def test_http_failure_uses_tushare_fallback_when_available(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py71 def test_close_allowed_when_no_position(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py83 def test_sell_same_day_blocked(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py108 def test_sell_allowed_when_no_position(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py120 def test_limit_up_buy_blocked(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py126 def test_limit_down_sell_blocked(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py135 def test_within_limit_allowed(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py152 def test_chinext_within_limit(self) -> None:CODE
LOWagent/tests/test_china_a_engine.py178 def test_negative_clamps_to_zero(self) -> None:CODE
7376 more matches not shown…
Unused Imports5786 hits · 5634 pts
SeverityFileLineSnippetContext
LOWtools/test_ci_env_var_gate.py11CODE
LOWtools/ci_env_var_gate.py31CODE
LOWwiki/scripts/build_alpha_library.py36CODE
LOWwiki/scripts/check_social_cards.py3CODE
LOWagent/api_server.py9CODE
LOWagent/api_server.py16CODE
LOWagent/api_server.py16CODE
LOWagent/api_server.py16CODE
LOWagent/api_server.py17CODE
LOWagent/api_server.py22CODE
LOWagent/api_server.py22CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py35CODE
LOWagent/api_server.py73CODE
LOWagent/api_server.py73CODE
LOWagent/api_server.py73CODE
LOWagent/api_server.py73CODE
LOWagent/api_server.py73CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
LOWagent/api_server.py81CODE
5726 more matches not shown…
Docstring Block Structure421 hits · 2082 pts
SeverityFileLineSnippetContext
HIGHwiki/scripts/build_alpha_library.py99Load and lightly validate a manifest written by export-manifest. Args: path: Filesystem path to ``manifest.STRING
HIGHagent/tests/test_swarm_worker_stream_retry.py71Raise the next queued error or return the final response. Args: messages: Conversation messages (igSTRING
HIGHagent/tests/test_agent_loop_stream_retry.py47Raise the next queued error or return the final response. Args: messages: Conversation messages (igSTRING
HIGHagent/tests/module_os_helpers.py32Point ``module.os`` at a stand-in carrying ``overrides``. Args: monkeypatch: The test's ``monkeypatch`` fixSTRING
HIGHagent/cli/_legacy.py235Read user input with arrow key support if prompt_toolkit is available. Falls back to Rich Prompt.ask() when prompt_STRING
HIGHagent/cli/utils/format.py109Abbreviate a number with magnitude suffix. Use this for status-bar numbers where horizontal space is scarce. CurrenSTRING
HIGHagent/backtest/risk_xray.py95Compute the risk x-ray for a weighted basket. Args: closes: Close-price panel, one column per symbol, sorteSTRING
HIGHagent/backtest/options_payoff.py285Calculate an expiry payoff curve and analytic risk summary. Premiums are pinned at entry. An explicit per-share preSTRING
HIGHagent/backtest/options_payoff.py363Build a symmetric non-negative display grid around an entry spot. Args: center: Positive central spot. STRING
HIGHagent/backtest/options_payoff.py402Calculate pre-expiry mark-to-market P&L over spot and volatility. The entry cost is pinned once using the entry spoSTRING
HIGHagent/backtest/factor_costs.py167Cap each name's trade at a fraction of its average daily traded value. Args: target_weights: Desired weightSTRING
HIGHagent/backtest/factor_costs.py237Cost of borrowing the short leg for one period. Only negative weights are charged: a long position borrows nothing.STRING
HIGHagent/backtest/factor_costs.py311Price one rebalance: capacity, then impact, then borrow. Args: target_weights: Desired weights, shorts negaSTRING
HIGHagent/backtest/engines/china_futures.py113Extract product code from futures symbol. Examples: 'IF2406.CFFEX' -> 'IF' 'rb2410.SHFE' -> 'rb' STRING
HIGHagent/backtest/engines/options_portfolio.py182Options backtest entry point. Day-by-day simulation: 1. Read underlying price for the current day 2. Mark aSTRING
HIGHagent/backtest/engines/composite.py133Run the pipeline, refusing a code set that spans currencies. The check lives here rather than in ``__init__`` bSTRING
HIGHagent/backtest/engines/base.py150Return the first bar index that counts as performance. A long-lookback indicator needs history before the period thSTRING
HIGHagent/backtest/loaders/alphavantage_loader.py173Fetch and slice one symbol's daily bars into an OHLCV DataFrame. Args: code: US-equity ticker. STRING
HIGHagent/backtest/loaders/eastmoney_loader.py34Convert a ``YYYY-MM-DD`` date into Eastmoney's ``YYYYMMDD`` form. Args: value: Date string in any pandas-paSTRING
HIGHagent/backtest/loaders/eastmoney_loader.py78Fetch OHLCV for each symbol; a single failure never aborts the batch. Args: codes: Symbols such as STRING
HIGHagent/backtest/loaders/registry.py291Return the first *available* loader instance for *market*. Walks the fallback chain and returns the first loader whSTRING
HIGHagent/backtest/loaders/registry.py329Return a loader *class* for *source*, falling back if unavailable. Args: source: Requested data source nameSTRING
HIGHagent/backtest/loaders/_http.py150GET ``url`` after waiting out the per-host minimum interval. Args: url: Fully-qualified request URL. STRING
HIGHagent/backtest/loaders/futu.py149Fetch OHLCV history from Futu OpenAPI. Args: codes: Project symbols such as ``700.HK`` or ``000001.STRING
HIGHagent/backtest/loaders/_fundamental_schema.py197Resolve a supported fundamental field to its schema entry. Args: field: Unified fundamental field name. STRING
HIGHagent/backtest/loaders/fmp_loader.py99Fetch daily OHLCV bars from FMP, one symbol at a time. A single failing symbol is logged and skipped so it neveSTRING
HIGHagent/backtest/loaders/fmp_loader.py150Fetch and parse one symbol's daily bars; ``None`` on no data. Args: code: Project symbol to fetch. STRING
HIGHagent/backtest/loaders/sec_edgar_client.py79GET ``url`` as JSON through the shared SEC-bucket throttle. Args: url: Fully-qualified SEC endpoint URL. STRING
HIGHagent/backtest/loaders/sec_edgar_client.py100Normalize a CIK to the SEC's zero-padded 10-digit string form. Args: cik: A CIK as an int or a string that STRING
HIGHagent/backtest/loaders/sec_edgar_client.py167Resolve a ticker symbol to its zero-padded 10-digit CIK. Args: ticker: A U.S. equity ticker (case-insensitiSTRING
HIGHagent/backtest/loaders/sec_edgar_client.py199Fetch the filing-index ("submissions") JSON for a CIK. Args: cik: A CIK as int or string; padded to 10 digiSTRING
HIGHagent/backtest/loaders/sec_edgar_client.py215Fetch the XBRL ``companyfacts`` JSON for a CIK. Args: cik: A CIK as int or string; padded to 10 digits inteSTRING
HIGHagent/backtest/loaders/rsshub_events.py78Convert a backtest code (e.g. ``"600519.SH"``) to a route's expected form. RSSHub routes disagree on instrument forSTRING
HIGHagent/backtest/loaders/rsshub_events.py143Build :class:`FeedSpec` objects from backtest-config dicts. Each entry must carry ``name``, ``route_template`` and STRING
HIGHagent/backtest/loaders/yahoo_client.py111Return ``(crumb, cookies)``, fetching them on first use or on refresh. Args: force_refresh: DiscardSTRING
HIGHagent/backtest/loaders/yahoo_client.py166Fetch OHLCV bars from the v8 chart endpoint as ascending rows. Either supply a ``range_`` (e.g. ``"1y"``, ``"max"``STRING
HIGHagent/backtest/loaders/yahoo_client.py256Fetch v10 quoteSummary modules, handling the cookie+crumb handshake. On a 401 (expired/invalid crumb) the crumb andSTRING
HIGHagent/backtest/loaders/yahoo_client.py314Fetch the v7 option chain for a symbol, handling the cookie+crumb handshake. Like ``v10/quoteSummary``, the ``v7/fiSTRING
HIGHagent/backtest/loaders/yahoo_client.py376Look up matching instruments via the v1 search endpoint. Args: query: Free-text query (ticker fragment or cSTRING
HIGHagent/backtest/loaders/yahoo_client.py399Look up matching news via the v1 search endpoint. Args: query: Free-text query (ticker fragment or company STRING
HIGHagent/backtest/loaders/longbridge.py264Fetch OHLCV history from LongPort OpenAPI. Args: codes: Project symbols such as ``AAPL``, ``AAPL.USSTRING
HIGHagent/backtest/loaders/stooq_loader.py101Fetch daily OHLCV bars for ``codes`` over ``[start_date, end_date]``. Args: codes: Project-side symSTRING
HIGHagent/backtest/loaders/fundamentals_loader.py55Extract a sparse ``period_end``/``filed``/``value`` series. Args: facts: SEC companyfacts payload. STRING
HIGHagent/backtest/loaders/fundamentals_loader.py207Load SEC fundamental fields as dense date-by-symbol panels. Args: symbols: Tickers to load. fields:STRING
HIGHagent/backtest/loaders/fundamentals_loader.py416Map each symbol to its SEC CIK. Args: symbols: Requested symbols. Returns: A symbol -> CIK mapSTRING
HIGHagent/backtest/loaders/qveris_loader.py179Call ``POST /tools/execute`` and hydrate truncated results. Args: tool_id: QVeris tool identifier rSTRING
HIGHagent/backtest/loaders/qveris_loader.py285Fetch daily OHLCV history through selected QVeris capabilities. Args: codes: Symbols to fetch. STRING
HIGHagent/backtest/loaders/tickerall_loader.py233Fetch OHLCV frames keyed by the original input codes. A transient per-symbol failure (network blip, one bad symSTRING
HIGHagent/backtest/loaders/eastmoney_client.py82Issue a throttled Eastmoney GET and decode the body as JSON. Args: url: Fully-qualified Eastmoney endpoint STRING
HIGHagent/backtest/loaders/eastmoney_client.py277Fetch ascending OHLCV bars for one ``secid`` from push2his. Args: secid: Eastmoney secid (e.g. ``"1.600519"STRING
HIGHagent/backtest/loaders/tushare.py52Call a Tushare endpoint, waiting out a per-minute quota rejection. Only quota rejections are retried. Retrying an oSTRING
HIGHagent/backtest/loaders/tiingo_loader.py158Fetch OHLCV history keyed by the original project symbols. Each symbol is fetched independently so one failing STRING
HIGHagent/backtest/loaders/sina_loader.py55Extract the JSON array embedded in Sina's JSONP wrapper. Args: raw: Raw response body, e.g. ``var x=([{"d":STRING
HIGHagent/backtest/loaders/sina_loader.py146Fetch US daily OHLCV for each code; skip and log per-symbol failures. Args: codes: Symbols in ``TICSTRING
HIGHagent/backtest/loaders/base.py56Drop, flag, or reject bars that violate OHLC invariants. Loaders only drop NaN rows, so structurally dirty bars — `STRING
HIGHagent/backtest/loaders/base.py193Call ``fn`` with a bounded retry budget on declared transient errors. Between attempts sleeps ``min(backoff[attemptSTRING
HIGHagent/backtest/loaders/mootdx_loader.py105Fetch A-share OHLCV via mootdx. Args: codes: Symbol list. `.SH/.SZ/.BJ` suffix or bare 6-digit STRING
HIGHagent/backtest/loaders/finnhub_loader.py176Fetch daily OHLCV history keyed by the original project symbols. Each symbol is fetched independently through tSTRING
HIGHagent/src/swarm/store.py136Return the directory path for a given run. Args: run_id: Run identifier. Returns: STRING
HIGHagent/src/swarm/store.py160Create the directory structure for a new run and write initial state. Args: run: SwarmRun instance.STRING
361 more matches not shown…
Cross-File Repetition356 hits · 1780 pts
SeverityFileLineSnippetContext
HIGHagent/tests/test_sse_ticket_and_headers.py0return a testclient that simulates a non-loopback caller.STRING
HIGHagent/tests/test_security_auth_api.py0return a testclient that simulates a non-loopback caller.STRING
HIGHagent/tests/test_openbb_bridge/test_routes.py0return a testclient that simulates a non-loopback caller.STRING
HIGHagent/tests/test_sse_ticket_and_headers.py0return a testclient that simulates a loopback caller.STRING
HIGHagent/tests/test_security_auth_api.py0return a testclient that simulates a loopback caller.STRING
HIGHagent/tests/test_openbb_bridge/test_routes.py0return a testclient that simulates a loopback caller.STRING
HIGHagent/tests/test_runtime_flatten.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_sweep_latch.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_runtime_liveness.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_runtime_jobstore.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_halt.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_audit_redact.py0point the live runtime root at an isolated tmp dir.STRING
HIGHagent/tests/test_mandate_model.py0point the live root at a tmp dir so tests never touch the real store.STRING
HIGHagent/tests/test_consent_commit.py0point the live root at a tmp dir so tests never touch the real store.STRING
HIGHagent/tests/test_mandate_enforcement.py0point the live root at a tmp dir so tests never touch the real store.STRING
HIGHagent/cli/commands/institutional/screen.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/cli/commands/institutional/earnings.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/cli/commands/institutional/memo.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/cli/commands/institutional/dcf.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/cli/commands/institutional/attrib.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/cli/commands/institutional/comps.py0render or dispatch the ``/comps`` playbook. args: ctx: interactive context supplying ``pending_prompt``. *args: raw slasSTRING
HIGHagent/backtest/loaders/pykrx_loader.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/backtest/loaders/fmp_loader.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/backtest/loaders/yahoo_client.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/backtest/loaders/stooq_loader.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/backtest/loaders/tickerall_loader.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/backtest/loaders/finnhub_loader.py0resolve the per-call minimum spacing, honoring the env override.STRING
HIGHagent/src/tools/prediction_market_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/etf_holdings_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/fund_flow_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/research_papers_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/sector_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/financial_statements_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/market_screener_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/image_vision_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/get_fundamentals_tool.py0build the failure envelope as a json string. args: message: human-readable error description. returns: a strict json ``{STRING
HIGHagent/src/tools/stock_news_tool.py0render a failure envelope as a json string. args: message: human-readable error text. returns: ``{"ok": false, "error": STRING
HIGHagent/src/tools/iwencai_tool.py0render a failure envelope as a json string. args: message: human-readable error text. returns: ``{"ok": false, "error": STRING
HIGHagent/src/tools/dragon_tiger_tool.py0render a failure envelope as a json string. args: message: human-readable error text. returns: ``{"ok": false, "error": STRING
HIGHagent/src/tools/symbol_search_tool.py0coerce a requested report count into the supported ``1.._max_limit`` range.STRING
HIGHagent/src/tools/sec_filings_tool.py0coerce a requested report count into the supported ``1.._max_limit`` range.STRING
HIGHagent/src/tools/research_reports_tool.py0coerce a requested report count into the supported ``1.._max_limit`` range.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_018.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_049.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_059.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_008.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_028.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_079.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_069.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_038.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_029.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_078.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_068.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_039.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_019.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_048.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_058.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_009.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_077.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
HIGHagent/src/factors/zoo/alpha101/alpha_026.py0compute the alpha on the ohlcv+ panel and return a wide dataframe.STRING
296 more matches not shown…
Excessive Try-Catch Wrapping886 hits · 844 pts
SeverityFileLineSnippetContext
LOWagent/api_server.py135 except Exception: # pragma: no cover — best-effortCODE
LOWagent/mcp_server.py1688 except Exception:CODE
LOWagent/mcp_server.py2527 except Exception: # noqa: BLE001 - never let one tool break server startupCODE
LOWagent/mcp_server.py1188 except Exception: # noqa: BLE001 - honest error beats a raw tracebackCODE
LOWagent/mcp_server.py1659 except Exception:CODE
LOWagent/mcp_server.py2407 except Exception: # noqa: BLE001 - one unavailable module, not fourCODE
LOWagent/mcp_server.py3005 except Exception: # pragma: no cover — best-effortCODE
LOWagent/tests/test_mcp_server_smoke.py99 except Exception:CODE
LOWagent/tests/test_mcp_server_smoke.py235 except Exception:CODE
LOWagent/tests/test_volume_unit_consistency.py26 except Exception: # noqa: BLE001 — unreachable source = not participatingCODE
MEDIUMagent/tests/test_volume_unit_consistency.py23def _volume_from(loader_cls) -> float | None:CODE
LOWagent/tests/test_mcp_regression.py64 except Exception as exc: # noqa: BLE001CODE
LOWagent/tests/test_mcp_regression.py112 except Exception as exc: # noqa: BLE001CODE
LOWagent/tests/test_env_schema.py399 except Exception as exc: # noqa: BLE001CODE
LOWagent/tests/test_alpha_bench_sector_tag.py94 except Exception as exc: # noqa: BLE001CODE
LOWagent/tests/test_longbridge_credentials.py182 except Exception as exc: # The contract requires this specific safe exception.CODE
LOWagent/tests/test_mcp_specs_cache.py294 except Exception as exc:CODE
LOWagent/tests/test_mcp_json_string_args.py189 except Exception as exc: # noqa: BLE001 - fastmcp surfaces validation errorsCODE
LOWagent/tests/memory/test_lifecycle_index_cleanup.py44 except Exception:CODE
LOWagent/tests/memory/test_search_index.py211 except Exception:CODE
LOWagent/tests/memory/test_tier2_integration.py40 except Exception:CODE
LOWagent/tests/factors/test_lookahead.py137 except Exception: # noqa: BLE001 — be loud only at test timeCODE
MEDIUMagent/tests/factors/test_lookahead.py134def _registered_alpha_ids() -> list[str]:CODE
LOWagent/cli/completer.py36 except Exception: # noqa: BLE001 — never block typeahead on theme importCODE
LOWagent/cli/stream.py140 except Exception: # noqa: BLE001 — Rich shutdown can raceCODE
LOWagent/cli/stream.py158 except Exception: # noqa: BLE001CODE
LOWagent/cli/stream.py193 except Exception: # noqa: BLE001CODE
MEDIUMagent/cli/main.py527def _worker() -> None:CODE
LOWagent/cli/main.py460 except Exception: # noqa: BLE001 — persistence is best-effortCODE
LOWagent/cli/main.py469 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py532 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py640 except Exception as exc: # noqa: BLE001 — never let a handler kill the loopCODE
LOWagent/cli/main.py150 except Exception: # noqa: BLE001 — never block startup on statsCODE
LOWagent/cli/main.py166 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py183 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py289 except Exception: # noqa: BLE001 — legacy will load again laterCODE
LOWagent/cli/main.py391 except Exception: # noqa: BLE001 — persistence error → empty historyCODE
LOWagent/cli/main.py420 except Exception: # noqa: BLE001 — never block the turn on persistenceCODE
LOWagent/cli/main.py429 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py485 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py660 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py900 except Exception as exc: # noqa: BLE001 — never let a halt failure kill the loopCODE
LOWagent/cli/main.py925 except Exception as exc: # noqa: BLE001 — never let a resume failure kill the loopCODE
LOWagent/cli/main.py963 except Exception as exc: # noqa: BLE001 — never let a connector command kill the loopCODE
LOWagent/cli/main.py977 except Exception as exc: # noqa: BLE001 # QVERIS-INTEGRATIONCODE
LOWagent/cli/main.py1122 except Exception as exc: # noqa: BLE001 - keep proposal open for retryCODE
LOWagent/cli/main.py1182 except Exception as exc: # noqa: BLE001 — surface a clean error to the userCODE
LOWagent/cli/main.py1260 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py1287 except Exception as exc: # noqa: BLE001 — fall back gracefully if prompt_toolkit brokenCODE
LOWagent/cli/main.py1294 except Exception: # noqa: BLE001CODE
LOWagent/cli/main.py1428 except Exception: # pragma: no cover — best-effortCODE
LOWagent/cli/_legacy.py353 except Exception:CODE
LOWagent/cli/_legacy.py420 except Exception:CODE
LOWagent/cli/_legacy.py430 except Exception:CODE
LOWagent/cli/_legacy.py995 except Exception: # noqa: BLE001 — relay must never break the turnCODE
LOWagent/cli/_legacy.py1036 except Exception: # noqa: BLE001 - relay must never break the turnCODE
LOWagent/cli/_legacy.py1071 except Exception: # noqa: BLE001 — an existing or unwritable session must not block the runCODE
LOWagent/cli/_legacy.py1079 except Exception: # noqa: BLE001 — search index is optionalCODE
LOWagent/cli/_legacy.py1126 except Exception: # noqa: BLE001 — capture must never kill the turnCODE
LOWagent/cli/_legacy.py1143 except Exception: # noqa: BLE001 — relay must never kill the turnCODE
826 more matches not shown…
Modern Structural Boilerplate273 hits · 277 pts
SeverityFileLineSnippetContext
LOWtools/ci_env_var_gate.py89 def _set_source(self, source: str) -> None:CODE
LOWagent/api_server.py115logger = logging.getLogger(__name__)CODE
LOWagent/mcp_server.py87logger = logging.getLogger(__name__)CODE
LOWagent/tests/test_auth_precedence.py37def _set_key(monkeypatch: pytest.MonkeyPatch, key: str = "secret") -> None:CODE
LOWagent/tests/test_longbridge_credentials.py30def _set_environment(monkeypatch: pytest.MonkeyPatch, values: dict[str, str]) -> None:CODE
LOWagent/tests/test_sdk_connectors.py224def _set_longbridge_environment(monkeypatch, values) -> None:CODE
LOWagent/tests/test_binance_usdm_readonly.py160 def set_sandbox_mode(self, enabled: bool) -> None:CODE
LOWagent/tests/test_binance_usdm_readonly.py217 def set_sandbox_mode(self, _enabled: bool) -> None:CODE
LOWagent/cli/onboard.py566__all__ = ["run_onboarding", "PROVIDERS", "Provider", "BACK", "CANCEL"]CODE
LOWagent/cli/theme.py235__all__ = [CODE
LOWagent/cli/_version.py46__all__ = ["__version__"]CODE
LOWagent/cli/__init__.py103__all__ = ["main", *sorted(CODE
LOWagent/cli/completer.py115__all__ = ["SlashCompleter"]CODE
LOWagent/cli/stream.py144 def set_extra(self, extra: str) -> None:CODE
LOWagent/cli/stream.py339__all__ = [CODE
LOWagent/cli/input.py380__all__ = [CODE
LOWagent/cli/main.py1590__all__ = ["main", "InteractiveContext"]CODE
LOWagent/cli/intro.py5__all__ = ["print_banner"]CODE
LOWagent/cli/ui/__init__.py7__all__ = [CODE
LOWagent/cli/utils/__init__.py11__all__ = [CODE
LOWagent/cli/utils/format.py157__all__ = ["format_duration", "format_tokens", "abbreviate_num"]CODE
LOWagent/cli/utils/thinking_verbs.py41__all__ = ["pick_thinking_verb", "THINKING_VERBS"]CODE
LOWagent/cli/components/chat_log.py77__all__ = ["render_history"]CODE
LOWagent/cli/components/tool_event.py218__all__ = ["render_tool_event", "render_tool_events"]CODE
LOWagent/cli/components/hint_bar.py67__all__ = ["render_hint_bar"]CODE
LOWagent/cli/components/working_indicator.py107 def update_verb(self, verb: str) -> None:CODE
LOWagent/cli/components/working_indicator.py144__all__ = ["ThinkingSpinner"]CODE
LOWagent/cli/components/__init__.py12__all__ = [CODE
LOWagent/cli/commands/research_playbook.py654__all__ = [CODE
LOWagent/cli/commands/show.py86__all__ = ["run", "cmd_show", "cmd_skill", "cmd_pine"]CODE
LOWagent/cli/commands/memory.py67__all__ = ["run", "cmd_memory"]CODE
LOWagent/cli/commands/strategy_evidence.py22logger = logging.getLogger(__name__)CODE
LOWagent/cli/commands/strategy_evidence.py170__all__ = [CODE
LOWagent/cli/commands/session.py98__all__ = ["run", "cmd_history", "cmd_search", "cmd_export"]CODE
LOWagent/cli/commands/__init__.py13__all__ = [CODE
LOWagent/cli/commands/chat.py247__all__ = [CODE
LOWagent/cli/commands/goal.py395__all__ = [CODE
LOWagent/cli/commands/help.py64__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/screen.py29__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/runner.py209__all__ = ["build_prompt", "run_playbook"]CODE
LOWagent/cli/commands/institutional/playbooks.py647__all__ = [CODE
LOWagent/cli/commands/institutional/earnings.py29__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/memo.py30__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/dcf.py30__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/attrib.py29__all__ = ["run"]CODE
LOWagent/cli/commands/institutional/comps.py30__all__ = ["run"]CODE
LOWagent/backtest/runner.py43logger = logging.getLogger(__name__)CODE
LOWagent/backtest/regime.py21logger = logging.getLogger(__name__)CODE
LOWagent/backtest/factor_costs.py56__all__ = [CODE
LOWagent/backtest/correlation.py16logger = logging.getLogger(__name__)CODE
LOWagent/backtest/engines/vietnam_equity.py64logger = logging.getLogger(__name__)CODE
LOWagent/backtest/engines/korea_equity.py59logger = logging.getLogger(__name__)CODE
LOWagent/backtest/engines/base.py55logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/okx.py32logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/akshare_loader.py18logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/alphavantage_loader.py33logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/ccxt_loader.py30logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/yfinance_loader.py12logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/local_loader.py44logger = logging.getLogger(__name__)CODE
LOWagent/backtest/loaders/eastmoney_loader.py27logger = logging.getLogger(__name__)CODE
213 more matches not shown…
AI Structural Patterns229 hits · 218 pts
SeverityFileLineSnippetContext
LOWagent/mcp_server.py555CODE
LOWagent/mcp_server.py623CODE
LOWagent/mcp_server.py1005CODE
LOWagent/mcp_server.py1481CODE
LOWagent/mcp_server.py1512CODE
LOWagent/tests/test_memory_gc.py29CODE
LOWagent/tests/test_memory_lifecycle.py34CODE
LOWagent/tests/test_crypto_engine.py69CODE
LOWagent/tests/test_mcp_specs_cache.py33CODE
LOWagent/tests/test_perpetual_risk.py35CODE
LOWagent/tests/memory/test_lifecycle_index_cleanup.py59CODE
LOWagent/cli/_legacy.py1084CODE
LOWagent/cli/_legacy.py4807CODE
LOWagent/cli/_legacy.py4858CODE
LOWagent/backtest/factor_costs.py297CODE
LOWagent/backtest/loaders/tushare_fundamentals.py179CODE
LOWagent/backtest/loaders/tushare_fundamentals.py230CODE
LOWagent/src/quantlib/fundmath.py1597CODE
LOWagent/src/quantlib/fundmath.py2200CODE
LOWagent/src/tools/__init__.py76CODE
LOWagent/src/tools/pattern_tool.py93CODE
LOWagent/src/hypotheses/registry.py214CODE
LOWagent/src/strategy_discovery/facade.py417CODE
LOWagent/src/scheduled_research/executor.py199CODE
LOWagent/src/factors/zoo/alpha101/alpha_018.py63CODE
LOWagent/src/factors/zoo/alpha101/alpha_049.py99CODE
LOWagent/src/factors/zoo/alpha101/alpha_059.py95CODE
LOWagent/src/factors/zoo/alpha101/alpha_008.py77CODE
LOWagent/src/factors/zoo/alpha101/alpha_028.py64CODE
LOWagent/src/factors/zoo/alpha101/alpha_079.py100CODE
LOWagent/src/factors/zoo/alpha101/alpha_069.py98CODE
LOWagent/src/factors/zoo/alpha101/alpha_038.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_029.py89CODE
LOWagent/src/factors/zoo/alpha101/alpha_078.py72CODE
LOWagent/src/factors/zoo/alpha101/alpha_068.py67CODE
LOWagent/src/factors/zoo/alpha101/alpha_039.py68CODE
LOWagent/src/factors/zoo/alpha101/alpha_019.py76CODE
LOWagent/src/factors/zoo/alpha101/alpha_048.py110CODE
LOWagent/src/factors/zoo/alpha101/alpha_058.py94CODE
LOWagent/src/factors/zoo/alpha101/alpha_009.py86CODE
LOWagent/src/factors/zoo/alpha101/alpha_077.py69CODE
LOWagent/src/factors/zoo/alpha101/alpha_026.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_084.py68CODE
LOWagent/src/factors/zoo/alpha101/alpha_012.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_043.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_053.py64CODE
LOWagent/src/factors/zoo/alpha101/alpha_002.py63CODE
LOWagent/src/factors/zoo/alpha101/alpha_094.py64CODE
LOWagent/src/factors/zoo/alpha101/alpha_036.py83CODE
LOWagent/src/factors/zoo/alpha101/alpha_067.py98CODE
LOWagent/src/factors/zoo/alpha101/alpha_047.py86CODE
LOWagent/src/factors/zoo/alpha101/alpha_016.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_022.py63CODE
LOWagent/src/factors/zoo/alpha101/alpha_073.py70CODE
LOWagent/src/factors/zoo/alpha101/alpha_080.py100CODE
LOWagent/src/factors/zoo/alpha101/alpha_090.py97CODE
LOWagent/src/factors/zoo/alpha101/alpha_063.py105CODE
LOWagent/src/factors/zoo/alpha101/alpha_032.py76CODE
LOWagent/src/factors/zoo/alpha101/alpha_006.py62CODE
LOWagent/src/factors/zoo/alpha101/alpha_057.py62CODE
169 more matches not shown…
Deep Nesting238 hits · 190 pts
SeverityFileLineSnippetContext
LOWtools/ci_env_var_gate.py199CODE
LOWagent/tests/test_agent_output_discipline.py768CODE
LOWagent/tests/test_market_data_tool.py222CODE
LOWagent/tests/test_no_set_mandate_tool.py46CODE
LOWagent/tests/test_no_set_mandate_tool.py67CODE
LOWagent/tests/test_strategy_discovery_models.py283CODE
LOWagent/tests/test_consent_commit.py523CODE
LOWagent/tests/test_sdk_connectors.py349CODE
LOWagent/tests/test_mcp_server_http_transport.py50CODE
LOWagent/tests/test_strategy_discovery_harness.py327CODE
LOWagent/tests/test_provider_header_isolation.py159CODE
LOWagent/tests/test_provider_header_isolation.py180CODE
LOWagent/tests/memory/benchmarks/tier2_runner.py214CODE
LOWagent/tests/factors/test_alpha_purity.py200CODE
LOWagent/tests/factors/test_alpha_purity.py172CODE
LOWagent/cli/stream.py185CODE
LOWagent/cli/input.py121CODE
LOWagent/cli/main.py553CODE
LOWagent/cli/main.py1235CODE
LOWagent/cli/_legacy.py1084CODE
LOWagent/cli/_legacy.py1939CODE
LOWagent/cli/_legacy.py1998CODE
LOWagent/cli/_legacy.py2311CODE
LOWagent/cli/_legacy.py2593CODE
LOWagent/cli/_legacy.py3956CODE
LOWagent/cli/_legacy.py4501CODE
LOWagent/cli/_legacy.py6098CODE
LOWagent/cli/_legacy.py1118CODE
LOWagent/cli/_legacy.py2151CODE
LOWagent/cli/_legacy.py2222CODE
LOWagent/cli/ui/rail.py319CODE
LOWagent/backtest/runner.py628CODE
LOWagent/backtest/runner.py668CODE
LOWagent/backtest/runner.py715CODE
LOWagent/backtest/runner.py1285CODE
LOWagent/backtest/runner.py1478CODE
LOWagent/backtest/engines/options_portfolio.py175CODE
LOWagent/backtest/engines/options_portfolio.py562CODE
LOWagent/backtest/engines/composite.py26CODE
LOWagent/backtest/engines/base.py997CODE
LOWagent/backtest/engines/base.py1423CODE
LOWagent/backtest/loaders/tushare_fundamentals.py264CODE
LOWagent/backtest/loaders/futu.py140CODE
LOWagent/backtest/loaders/tencent_loader.py180CODE
LOWagent/backtest/loaders/rsshub_events.py501CODE
LOWagent/backtest/loaders/longbridge.py255CODE
LOWagent/backtest/loaders/fundamentals_loader.py48CODE
LOWagent/backtest/loaders/qveris_loader.py487CODE
LOWagent/backtest/loaders/tickerall_loader.py192CODE
LOWagent/backtest/loaders/baostock_loader.py55CODE
LOWagent/backtest/loaders/tushare.py270CODE
LOWagent/backtest/loaders/tushare.py325CODE
LOWagent/src/ui_services.py100CODE
LOWagent/src/ui_services.py307CODE
LOWagent/src/ui_services.py408CODE
LOWagent/src/market_data.py123CODE
LOWagent/src/swarm/worker.py476CODE
LOWagent/src/swarm/task_store.py203CODE
LOWagent/src/swarm/runtime.py425CODE
LOWagent/src/swarm/runtime.py676CODE
178 more matches not shown…
Cross-Language Confusion37 hits · 149 pts
SeverityFileLineSnippetContext
HIGHagent/api_server.py372 print("[warn] Run: cd frontend && npm run build")CODE
HIGHagent/tests/test_validation.py333 """A non-finite metric must be serialized as null, not a bareSTRING
HIGHagent/tests/test_loader_volume_units.py50 """Markets without evidence stay undeclared (null), never guessed."""STRING
HIGHagent/tests/test_fundamentals_pit.py335 value null, which reads as "this issuer reports nothing" rather than "thisSTRING
HIGHagent/tests/test_alpha_bench_sector_tag.py61 assert panel["sector"].index.equals(close.index)CODE
HIGHagent/tests/test_technical_indicator_tool.py290 """Too few bars → indicators return null, but not error."""STRING
HIGHagent/tests/test_technical_indicator_tool.py304 # But SMA 20 should be null, SMA 50/200 null — only EMA 20 needs 20 bars, null tooCOMMENT
HIGHagent/tests/test_kimi_reasoning_content.py511 content=null; Moonshot kimi-k2.6 rejects that, so we normalize to ''."""STRING
HIGHagent/tests/test_base_engine.py599 assert close_df.index.equals(dates)CODE
HIGHagent/tests/test_base_engine.py600 assert pos_df.index.equals(dates)CODE
HIGHagent/tests/test_strategy_discovery_harness.py643 f"{row.regime}: multi-position breakeven must be null, got "CODE
HIGHagent/tests/quantlib/test_credit.py382 assert out.index.equals(bond.index)CODE
HIGHagent/tests/factors/test_bench_strict.py71 assert not a.equals(b)CODE
HIGHagent/cli/_legacy.py6039 Windows footgun. Equivalent to running ``cd frontend && npm installSTRING
HIGHagent/cli/commands/update.py25 container the answer would be `git pull && docker compose up --build`, butSTRING
HIGHagent/backtest/metrics.py261 undefined,CODE
HIGHagent/backtest/rebalance_notes.py148 ``_json_safe`` (non-finite -> null) and serialize with ``allow_nan=False``STRING
HIGHagent/backtest/validation.py453 strict parsers reject. Sanitize with :func:`_json_safe` (non-finite → null)STRING
HIGHagent/backtest/engines/base.py1339 # Zero is always rejected (size = notional / price is undefined);COMMENT
HIGHagent/backtest/loaders/tushare_fundamentals.py149 date (``f_ann_date`` when present and non-null, falling back toSTRING
HIGHagent/backtest/loaders/ccxt_loader.py340 if trade is None or mark is None or not trade.index.equals(mark.index):CODE
HIGHagent/backtest/loaders/yahoo_client.py229 # A non-trading slot leaves OHLC null; skip rather than emit a NaN bar.COMMENT
HIGHagent/scripts/w4a_run_benches.py4 cd agent && python scripts/w4a_run_benches.pySTRING
HIGHagent/src/swarm/serialization.py44 Returns ``None`` (an explicit null, not an absent key) when no task carriesSTRING
HIGHagent/src/quantlib/eventstudy.py223 model (beta would be undefined).STRING
HIGHagent/src/quantlib/eventstudy.py470 # Patell: the standardised CARs are unit-variance under the null, up to theCOMMENT
HIGHagent/src/quantlib/multipletesting.py299 The expected maximum Sharpe under the null, per-observation. Zero whenSTRING
HIGHagent/src/quantlib/fundmath.py337 f"factor undefined), got {rate!r}"CODE
HIGHagent/src/quantlib/fundmath.py707 undefined, and returning ``inf`` or ``0`` would both be wrong.STRING
HIGHagent/src/quantlib/var_backtest.py261 if not ret_index.equals(var_index):CODE
HIGHagent/src/quantlib/credit.py632 if len(bond_yields) != len(risk_free_yields) or not bond_yields.index.equals(CODE
HIGHagent/src/quantlib/timeseries.py178 if not y_ser.index.equals(x_ser.index):CODE
HIGHagent/src/quantlib/valuation/dcf.py426 (weights undefined), if the resulting weights are negative or doSTRING
HIGHagent/src/quantlib/valuation/dcf.py752 ``terminal_year_ebitda <= 0`` (an EV/EBITDA multiple is undefined);STRING
HIGHagent/src/tools/prediction_market_tool.py98``winning_outcome`` null, where a price-only rule would have called themSTRING
HIGHagent/src/strategy_discovery/facade.py431 (fail-closed null) → min_sharpe → decay gate (stale rows excludedSTRING
HIGHagent/src/factors/bench_runner_strict.py188 """One-sample t-stat against zero (returns 0.0 if undefined)."""STRING
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippetContext
CRITICALagent/src/channels/feishu.py1020 response = self._client.im.v1.message_reaction.create(request)CODE
CRITICALagent/src/channels/feishu.py1061 response = self._client.im.v1.message_reaction.delete(request)CODE
CRITICALagent/src/channels/feishu.py1405 response = self._client.im.v1.image.create(request)CODE
CRITICALagent/src/channels/feishu.py1439 response = self._client.im.v1.file.create(request)CODE
CRITICALagent/src/channels/feishu.py1467 response = self._client.im.v1.message_resource.get(request)CODE
CRITICALagent/src/channels/feishu.py1502 response = self._client.im.v1.message_resource.get(request)CODE
CRITICALagent/src/channels/feishu.py1606 response = self._client.im.v1.message.get(request)CODE
CRITICALagent/src/channels/feishu.py1663 response = self._client.im.v1.message.reply(request)CODE
CRITICALagent/src/channels/feishu.py1713 response = self._client.im.v1.message.create(request)CODE
CRITICALagent/src/channels/feishu.py1765 response = self._client.cardkit.v1.card.create(request)CODE
CRITICALagent/src/channels/feishu.py1815 response = self._client.cardkit.v1.card_element.content(request)CODE
CRITICALagent/src/channels/feishu.py1847 response = self._client.cardkit.v1.card.settings(request)CODE
Structural Annotation Overuse66 hits · 116 pts
SeverityFileLineSnippetContext
LOWagent/src/swarm/presets/etf_allocation_desk.yaml224 ### Step 1: Three-Dimensional Trade-offCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml229 ### Step 2: Final Portfolio Weight DeterminationCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml235 ### Step 3: Portfolio Holdings FinalizationCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml239 ### Step 4: Historical Backtest ExecutionCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml245 ### Step 5: Portfolio Performance AttributionCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml80 ### Step 1: Unit-root preconditionsCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml87 ### Step 2: Cointegration testsCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml104 ### Step 3: Mean-reversion parametersCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml118 ### Step 4: Composite arb-value score (max 100)COMMENT
LOWagent/src/skills/thesis-tracker/SKILL.md23## Step 1: Decide the ModeCOMMENT
LOWagent/src/skills/performance-attribution/SKILL.md248### Step 1: Aggregate AnalysisCOMMENT
LOWagent/src/skills/performance-attribution/SKILL.md256### Step 2: Attribution DecompositionCOMMENT
LOWagent/src/skills/performance-attribution/SKILL.md264### Step 3: Style AnalysisCOMMENT
LOWagent/src/skills/performance-attribution/SKILL.md272### Step 4: Conclusions and RecommendationsCOMMENT
LOWagent/src/skills/dividend-analysis/SKILL.md39### Step 1: Normalize the DividendCOMMENT
LOWagent/src/skills/dividend-analysis/SKILL.md51### Step 2: Check CoverageCOMMENT
LOWagent/src/skills/dividend-analysis/SKILL.md67### Step 3: Diagnose Dividend Growth QualityCOMMENT
LOWagent/src/skills/dividend-analysis/SKILL.md84### Step 4: Check Balance Sheet FlexibilityCOMMENT
LOWagent/src/skills/dividend-analysis/SKILL.md96### Step 5: Separate Dividend Yield from Total ReturnCOMMENT
LOWagent/src/skills/valuation-model/SKILL.md27#### Step 1: Forecast free cash flow (usually 5 years)COMMENT
LOWagent/src/skills/valuation-model/SKILL.md44#### Step 2: Calculate WACCCOMMENT
LOWagent/src/skills/valuation-model/SKILL.md68#### Step 3: Terminal ValueCOMMENT
LOWagent/src/skills/valuation-model/SKILL.md78#### Step 4: Sensitivity AnalysisCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md19## Step 1: Super-Trend ConfirmationCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md32## Step 2: Physical Supply-Chain DecompositionCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md64## Step 3: Bottleneck Identification — Finding "Choke Points"COMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md79## Step 4: Company Screening — From Bottleneck to TickersCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md102## Step 5: Cross-Validation — Don't Trust a Single StoryCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md125## Step 6: Output — Bottleneck Opportunity BoardCOMMENT
LOWagent/src/skills/bottleneck-hunter/SKILL.md167## Step 7: Inventory Update — Maintain the Bottleneck MapCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md62### Step 1: Identify the Strategy TypeCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md75### Step 2: Extract the Signal Generation LogicCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md85### Step 3: Extract Entry ConditionsCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md94### Step 4: Extract Exit ConditionsCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md103### Step 5: Extract Position Sizing RulesCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md112### Step 6: Extract Risk Management ParametersCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md122### Step 7: Identify Required Data InputsCOMMENT
LOW…gy-dev-manager/references/strategy_extraction_guide.md131### Step 8: Map to SignalEngine Template ParametersCOMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py44 # Step 1: Compute raw factor values for each symbolCOMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py53 # Step 2: Cross-sectional rankingCOMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py78 # Step 3: Clip signals to [-1, 1]COMMENT
LOWagent/src/skills/macro-analysis/SKILL.md113### Step 1: Data Collection and Current-State DescriptionCOMMENT
LOWagent/src/skills/macro-analysis/SKILL.md122### Step 2: Cycle PositioningCOMMENT
LOWagent/src/skills/macro-analysis/SKILL.md133### Step 3: Policy Impact AssessmentCOMMENT
LOWagent/src/skills/macro-analysis/SKILL.md142### Step 4: Asset Allocation TiltCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md23## Step 1: Identify Key PeopleCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md39## Step 2: CEO Circle of CompetenceCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md60## Step 3: Integrity Assessment (most important)COMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md93## Step 4: Capital AllocationCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md118## Step 5: GovernanceCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md142## Step 6: Side ValidationCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md150## Step 7: Post-CEO ScenarioCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md159## Step 8: OutputCOMMENT
LOWagent/src/skills/management-deep-dive/SKILL.md181## Step 9: SaveCOMMENT
LOW…/skills/cross-market-strategy/example_signal_engine.py38 # Step 1: raw signals per marketCOMMENT
LOW…/skills/cross-market-strategy/example_signal_engine.py45 # Step 2: volatility-adjusted weightsCOMMENT
LOWagent/src/skills/correlation-analysis/SKILL.md371 # Step 1: estimate the cointegrating vector with OLS.COMMENT
LOWagent/src/skills/correlation-analysis/SKILL.md378 # Step 2: test residual stationarity with ADF.COMMENT
LOWagent/src/channels/dingtalk.py743 # Step 1: Exchange downloadCode for a temporary download URLCOMMENT
LOWagent/src/channels/dingtalk.py758 # Step 2: Download the file contentCOMMENT
6 more matches not shown…
AI Slop Vocabulary38 hits · 97 pts
SeverityFileLineSnippetContext
MEDIUMagent/tests/test_china_a_engine.py218 """A-share engine forces leverage=1."""STRING
MEDIUMagent/tests/test_crypto_engine.py415 """Spot (leverage=1) should never get liquidated."""STRING
MEDIUMagent/tests/test_korea_equity_engine.py265# apply_slippage + leverageCOMMENT
MEDIUMagent/tests/test_korea_equity_engine.py291 # Cash equity is forced to 1.0 leverage regardless of config input.COMMENT
MEDIUMagent/tests/test_equity_regression.py93 """Different leverage values produce correct margin calculations."""STRING
MEDIUMagent/tests/test_china_futures_engine.py279 """IF margin=12% → leverage≈8.33."""STRING
MEDIUMagent/tests/test_consent_commit.py84 # Cash-only ceiling => no profile may request leverage.COMMENT
MEDIUMagent/tests/test_consent_commit.py298# H9: commit-time ceiling re-check is alias-robust (no silent NO-OP)COMMENT
MEDIUMagent/tests/test_india_equity_engine.py146# apply_slippage + leverageCOMMENT
MEDIUMagent/tests/test_india_equity_engine.py155 # Cash delivery is forced to 1.0 leverage regardless of config input.COMMENT
MEDIUMagent/tests/test_mandate_enforcement.py198 # Leverage (quantitative): tiny funding makes 1x leverage breach.COMMENT
MEDIUMagent/tests/quantlib/test_volatility.py90 """A leverage-effect correlation must make low strikes the expensive ones.STRING
MEDIUMagent/backtest/engines/global_futures.py139 # Leverage: most futures have 5-15% margin → 7-20x leverage.COMMENT
MEDIUMagent/backtest/engines/global_futures.py141 # User can override via config["leverage"].COMMENT
MEDIUMagent/backtest/engines/china_futures.py141 # Derive leverage from margin rate of first code, or use config overrideCOMMENT
MEDIUMagent/backtest/engines/china_futures.py247 """Derive leverage from this contract's own margin requirement."""STRING
MEDIUMagent/backtest/engines/vietnam_equity.py378 config = {**config, "leverage": 1.0} # cash equity: no leverageCODE
MEDIUMagent/backtest/engines/india_equity.py50 config = {**config, "leverage": 1.0} # cash delivery: no leverageCODE
MEDIUMagent/backtest/engines/china_a.py32 config = {**config, "leverage": 1.0} # A-shares: no leverageCODE
MEDIUMagent/backtest/engines/korea_equity.py158 config = {**config, "leverage": 1.0} # cash equity: no leverageCODE
MEDIUMagent/backtest/engines/base.py733 """Return leverage used to size and margin one symbol."""STRING
MEDIUMagent/src/swarm/worker.py53 """Resolve the heartbeat tick interval from env, robust to garbage values.STRING
MEDIUMagent/src/swarm/worker.py65 """Resolve the delay before the single stream retry, robust to garbage.STRING
MEDIUMagent/src/quantlib/eventstudy.py489 # makes it robust to the event itself having raised volatility.COMMENT
MEDIUMagent/src/tools/propose_mandate_tool.py243 """Return the account type label ('cash' unless ceilings allow leverage)."""STRING
MEDIUMagent/src/strategy_discovery/facade.py59#: of which drive the evidence harness over reproducible run artifacts.COMMENT
MEDIUMagent/src/strategy_discovery/evidence_store.py72#: disposable — rows only ever come from a harness rebuild).STRING
MEDIUMagent/src/strategy_discovery/models.py33#: written (the harness computes over backtest artifacts), the remainingCOMMENT
MEDIUMagent/src/strategy_discovery/models.py151 #: ISO date string ("YYYY-MM-DD") of the last harness verification.COMMENT
MEDIUMagent/src/strategy_discovery/evidence_harness.py83#: Stage of every harness-produced row: the harness computes exclusivelyCOMMENT
MEDIUMagent/src/live/enforcement.py548 # 5–6. Exposure + leverage need symbol-level signed positions so a sellCOMMENT
MEDIUMagent/src/live/enforcement.py570 # 6. Gross leverage = post-trade gross exposure / account_funding_usd.COMMENT
MEDIUMagent/src/live/mandate/commit.py61#: daily trade cap, leverage, and instruments.COMMENT
MEDIUMagent/src/live/mandate/commit.py69 # leverage (single spelling, mapped for completeness)COMMENT
MEDIUMagent/src/live/mandate/commit.py306 # Cash-only ceiling forbids any leverage other than "none".COMMENT
MEDIUMagent/src/channels/dingtalk.py59 # Parse using SDK's ChatbotMessage for robust handlingCOMMENT
MEDIUMagent/src/channels/signal.py699 # Keep aliases of the bot account for robust mention matching.COMMENT
LOWagent/src/channels/weixin.py685 # If quoted message is media, just pass the textCOMMENT
Over-Commented Block81 hits · 71 pts
SeverityFileLineSnippetContext
LOWdocker-compose.yml21 - vibe-runs:/app/agent/runsCOMMENT
LOWrequirements-lock.txt161 --hash=sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0COMMENT
LOWrequirements-lock.txt1581 # viaCOMMENT
LOWrequirements-lock.txt3621 --hash=sha256:82554af953ea5ac3d8771d42330493181031c7e68dccce03a491c7356e9ba4b2 \COMMENT
LOWrequirements-lock.txt3641 # opentelemetry-apiCOMMENT
LOWrequirements-channels-lock.txt161 # httpcoreCOMMENT
LOWtools/ci_grep_gates.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/src/components/layout/Layout.tsx321// src/i18n/index.ts. Persists the choice via i18next's localStorage detectorCOMMENT
LOWwiki/functions/_middleware.js1// In-path traffic classifier for vibetrading.wiki (Cloudflare Pages Function).COMMENT
LOWwiki/functions/api/stats.js1// GET /api/stats — aggregate numbers for the wiki footer.COMMENT
LOWdesktop/electron/requirements-windows-lock.txt161 --hash=sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0COMMENT
LOWdesktop/electron/requirements-windows-lock.txt1221 # langgraph-sdkCOMMENT
LOWdesktop/electron/requirements-windows-lock.txt2701 # viaCOMMENT
LOWdesktop/electron/requirements-windows-lock.txt3161 # akshareCOMMENT
LOWdesktop/electron/requirements-windows-lock.txt3601 --hash=sha256:55b0b0dbd97462d06ebee91e4dac24ed4d4702be82b24f07e6c1d27e08cea220 \COMMENT
LOWdesktop/electron/requirements-windows-lock.txt3621 # fastapiCOMMENT
LOWagent/requirements-channels.txt1# Channel SDK dependencies baked into the Docker image.COMMENT
LOWagent/mcp_server.py1781 "loader_resolver": _get_loader,COMMENT
LOWagent/mcp_server.py2341# get_institutional_holdings / etf_holdings / prediction_market /COMMENT
LOWagent/mcp_server.py2361# turns any failure into a JSON error envelope rather than a transport error.COMMENT
LOWagent/tests/conftest.py21# Sandbox the config runtime root BEFORE any test module is imported (#1116).COMMENT
LOWagent/tests/conftest.py41# consults ``VIBE_TRADING_HOME`` first and only falls back toCOMMENT
LOWagent/tests/conftest.py61COMMENT
LOWagent/tests/test_orderbook_depth_tool.py61# The four-level book used for the impact-cost hand-calc tests.COMMENT
LOWagent/tests/test_readme_counts.py61COMMENT
LOWagent/tests/test_research_papers_tool.py721 }COMMENT
LOWagent/tests/test_mcp_new_tools.py21COMMENT
LOWagent/tests/quantlib/valuation/test_dcf.py41 fcff_bridge,COMMENT
LOWagent/tests/quantlib/valuation/test_dcf.py61#COMMENT
LOWagent/cli/main.py841 """Render the bottom hint bar in muted style."""COMMENT
LOWagent/cli/_legacy.py941 return ""COMMENT
LOWagent/cli/_legacy.py3061 "[yellow]No GitHub credential found.[/yellow]\n"COMMENT
LOWagent/cli/_legacy.py5941# ---------------------------------------------------------------------------COMMENT
LOWagent/backtest/metrics.py21# rest of this annualisation table; the key fix is that intraday mootdx/futu noCOMMENT
LOWagent/backtest/metrics.py41 "india_broker": 252,COMMENT
LOWagent/backtest/runner.py301# exposure is that once ``SignalEngine`` is instantiated and ``.generate()`` isCOMMENT
LOWagent/backtest/runner.py341 "aiohttp",COMMENT
LOWagent/backtest/engines/_market_hooks.py41 (re.compile(r"^[A-Z]+-USDT$", re.I), "crypto"),COMMENT
LOWagent/backtest/engines/base.py481 #: Bar fields consulted, in order, for the price-limit base price.COMMENT
LOWagent/backtest/loaders/registry.py121COMMENT
LOWagent/backtest/loaders/registry.py161 "macro": ["akshare", "tushare", "local"],COMMENT
LOWagent/src/swarm/worker.py281 # The code-writing/report-file workflow below only makes sense for anCOMMENT
LOWagent/src/quantlib/fundmath.py1321# itself is not a rate and cannot be annualized.COMMENT
LOWagent/src/quantlib/fundmath.py1861 guess=guess,COMMENT
LOWagent/src/quantlib/factormodel.py81COMMENT
LOWagent/src/quantlib/valuation/threestatement.py101COMMENT
LOWagent/src/quantlib/valuation/dcf.py121]COMMENT
LOWagent/src/quantlib/valuation/comps.py141COMMENT
LOWagent/src/tools/redaction.py101#: Keys that stay sensitive in the ARGUMENTS / audit sink but are released inCOMMENT
LOWagent/src/tools/redaction.py341#:COMMENT
LOWagent/src/tools/etf_holdings_tool.py121# report in bulk, so the newest *period* can be picked without downloading aCOMMENT
LOWagent/src/tools/etf_holdings_tool.py801# ``var apidata={ content:"<html>",arryear:[2026,...],curyear:2026};``COMMENT
LOWagent/src/tools/symbol_search_tool.py41# (``Expecting value: line 1 column 1 (char 0)``) instead of a clean emptyCOMMENT
LOWagent/src/tools/institutional_holdings_tool.py141_MAX_HOLDER_SAMPLE = 25COMMENT
LOWagent/src/tools/institutional_holdings_tool.py181_AMENDMENT_ROLES = {"RESTATEMENT": _ROLE_RESTATEMENT, "NEW HOLDINGS": _ROLE_NEW_HOLDINGS}COMMENT
LOWagent/src/config/schema.py21 "ibkr.com": "ibkr",COMMENT
LOWagent/src/config/schema.py181# Canonical seed for the operator-side ``~/.vibe-trading/agent.json`` mcpServersCOMMENT
LOWagent/src/security/scanner.py81COMMENT
LOWagent/src/strategy_discovery/models.py101#: Evidence-window age (days since the latest ``date_ranges`` window ended)COMMENT
LOWagent/src/strategy_discovery/evidence_harness.py81SHARPE_ANNUALIZATION_BARS = 252COMMENT
21 more matches not shown…
Verbosity Indicators22 hits · 39 pts
SeverityFileLineSnippetContext
LOWagent/src/swarm/presets/etf_allocation_desk.yaml224 ### Step 1: Three-Dimensional Trade-offCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml229 ### Step 2: Final Portfolio Weight DeterminationCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml235 ### Step 3: Portfolio Holdings FinalizationCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml239 ### Step 4: Historical Backtest ExecutionCOMMENT
LOWagent/src/swarm/presets/etf_allocation_desk.yaml245 ### Step 5: Portfolio Performance AttributionCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml80 ### Step 1: Unit-root preconditionsCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml87 ### Step 2: Cointegration testsCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml104 ### Step 3: Mean-reversion parametersCOMMENT
LOWagent/src/swarm/presets/pairs_research_lab.yaml118 ### Step 4: Composite arb-value score (max 100)COMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py44 # Step 1: Compute raw factor values for each symbolCOMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py53 # Step 2: Cross-sectional rankingCOMMENT
LOW…strategy-dev-manager/templates/factor_signal_engine.py78 # Step 3: Clip signals to [-1, 1]COMMENT
LOW…/skills/cross-market-strategy/example_signal_engine.py38 # Step 1: raw signals per marketCOMMENT
LOW…/skills/cross-market-strategy/example_signal_engine.py45 # Step 2: volatility-adjusted weightsCOMMENT
LOWagent/src/channels/dingtalk.py743 # Step 1: Exchange downloadCode for a temporary download URLCOMMENT
LOWagent/src/channels/dingtalk.py758 # Step 2: Download the file contentCOMMENT
LOWagent/src/channels/weixin.py1375 # Step 1: Get upload URL from server (prefer upload_full_url, fallback to upload_param)COMMENT
LOWagent/src/channels/weixin.py1399 # Step 2: AES-128-ECB encrypt and POST to CDNCOMMENT
LOWagent/src/channels/weixin.py1427 # Step 3: Send message with the media itemCOMMENT
LOWagent/src/channels/wecom.py438 # Step 1: initCOMMENT
LOWagent/src/channels/wecom.py455 # Step 2: send chunksCOMMENT
LOWagent/src/channels/wecom.py467 # Step 3: finishCOMMENT
Modern AI Meta-Vocabulary7 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMagent/backtest/loaders/rsshub_events.py48#: knowable only on the next calendar day, matching the event-driven skill'sCOMMENT
MEDIUMagent/backtest/loaders/sina_loader.py40# assignment/paren scaffolding around it.COMMENT
MEDIUMagent/src/quantlib/valuation/dcf.py1173# Top-level orchestrationCOMMENT
MEDIUMagent/src/tools/quantlib_tool.py97#: numbers into a context window helps nobody.COMMENT
MEDIUMagent/src/tools/block_trades_tool.py41# context window. Eastmoney paginates; we pull one bounded page.COMMENT
MEDIUMagent/src/config/schema.py25# bypassable: a Robinhood agentic URL placed under any other key (e.g. ``rh``)COMMENT
MEDIUMagent/src/providers/capabilities.py114# GLM thinking models (glm-4.5+/glm-5.x) stream the chain-of-thought asCOMMENT
Self-Referential Comments3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMagent/tests/test_session_search.py203 # Create a fake session directoryCOMMENT
MEDIUMagent/tests/test_strategy_store.py854 # Create a new store instance pointing to the same DBCOMMENT
MEDIUMagent/tests/test_ocr_integration.py67 # Create a synthetic "scanned" PDF: render text as image, save as PDFCOMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…nd/src/components/charts/AttributionWaterfallChart.tsx105 name: "placeholder",CODE
LOWfrontend/src/i18n/locales/ja.json533 "placeholder": "例: 000001.SZ で単純な移動平均戦略を2024年について検証する",CODE
LOWfrontend/src/i18n/locales/de.json538 "placeholder": "z. B. Testen Sie eine einfache Moving-Average-Strategie auf 000001.SZ über 2024",CODE
LOWfrontend/src/i18n/locales/zh-CN.json533 "placeholder": "例如:为 000001.SZ 创建双均线交叉策略,回测 2024 年",CODE
LOWfrontend/src/i18n/locales/en.json538 "placeholder": "e.g. Test a simple moving-average strategy on 000001.SZ over 2024",CODE
LOWfrontend/src/i18n/locales/ko.json533 "placeholder": "예: 000001.SZ의 단순 이동평균 전략을 2024년 구간에서 테스트",CODE
LOWfrontend/src/i18n/locales/es.json538 "placeholder": "ej. Probar una estrategia simple de media móvil en 000001.SZ durante 2024",CODE
LOWfrontend/src/i18n/locales/ar.json533 "placeholder": "مثال: اختبر استراتيجية بسيطة للمتوسط المتحرك على 000001.SZ خلال عام 2024",CODE
LOWagent/tests/test_settings_api.py179@pytest.mark.parametrize("placeholder", ["sk-xxx", "xxx", "gsk_xxx"])CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…trategy-dev-manager/references/scheduled_decay_scan.md66 -H "Authorization: Bearer <your-api-key>" \CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWagent/src/channels/wecom.py418 # Read file size and data in a thread to avoid blocking the event loopCOMMENT
Overly Generic Function Names2 hits · 1 pts
SeverityFileLineSnippetContext
LOWagent/tests/test_skill_writer_tools.py293 path="templates/helper.py", content="def helper(): pass",CODE
LOWagent/tests/test_backtest_runner_security.py714 " def helper(cls):",CODE
Example Usage Blocks1 hit · 0 pts
SeverityFileLineSnippetContext
LOWagent/src/tools/skill_writer_tool.py8 examples/ # Example usageSTRING