Repository Analysis

OpenByteInc/QuantDinger

AI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading

28.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of OpenByteInc/QuantDinger, a Python project with 10,190 GitHub stars. SynthScan v2.0 examined 182,859 lines of code across 697 source files, recording 4802 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 28.9 places this repository in the Moderate 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).

28.9
Adjusted Score
28.9
Raw Score
100%
Time Factor
2026-08-02
Last Push
10.2K
Stars
Python
Language
182.9K
Lines of Code
697
Files
4.8K
Pattern Hits
2026-08-02
Scan Date
0.01
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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

CRITICAL 0HIGH 10MEDIUM 309LOW 4483

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 4802 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Excessive Try-Catch Wrapping1807 hits · 1748 pts
SeverityFileLineSnippetContext
LOWscripts/check_version.py39 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/server.py225 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/server.py293 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/server.py1109 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/server.py1114 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/security.py84 except Exception:CODE
LOWmcp_server/src/quantdinger_mcp/security.py109 except Exception:CODE
LOWbackend_api_python/run.py14except Exception:CODE
LOWbackend_api_python/run.py27except Exception:CODE
LOWbackend_api_python/app/startup.py70 except Exception as e:CODE
LOWbackend_api_python/app/startup.py81 except Exception as e:CODE
LOWbackend_api_python/app/startup.py95 except Exception as e:CODE
LOWbackend_api_python/app/startup.py103 except Exception as e:CODE
LOWbackend_api_python/app/startup.py177 except Exception as e:CODE
LOWbackend_api_python/app/startup.py179 except Exception as e:CODE
LOWbackend_api_python/app/startup.py185 except Exception as e:CODE
LOWbackend_api_python/app/startup.py196 except Exception:CODE
LOWbackend_api_python/app/startup.py248 except Exception:CODE
LOWbackend_api_python/app/startup.py255 except Exception:CODE
LOWbackend_api_python/app/startup.py264 except Exception:CODE
LOWbackend_api_python/app/startup.py270 except Exception:CODE
LOWbackend_api_python/app/startup.py140 except Exception as e:CODE
LOWbackend_api_python/app/startup.py207 except Exception as exc:CODE
LOWbackend_api_python/app/_version.py66 except Exception:CODE
LOWbackend_api_python/app/__init__.py16except Exception:CODE
LOWbackend_api_python/app/__init__.py100 except Exception as exc:CODE
LOWbackend_api_python/app/__init__.py121 except Exception as sample_exc:CODE
LOWbackend_api_python/app/__init__.py123 except Exception as e:CODE
MEDIUMbackend_api_python/app/__init__.py95def _configure_ibkr_asyncio() -> None:CODE
MEDIUMbackend_api_python/app/__init__.py104def _bootstrap_database() -> None:CODE
LOWbackend_api_python/app/tasks/agent_jobs.py71 except Exception as exc:CODE
LOWbackend_api_python/app/utils/json_helpers.py18 except Exception:CODE
LOWbackend_api_python/app/utils/auth.py84 except Exception as e:CODE
LOWbackend_api_python/app/utils/auth.py193 except Exception as e:CODE
LOWbackend_api_python/app/utils/db.py152 except Exception as exc:CODE
LOWbackend_api_python/app/utils/db.py179 except Exception as exc:CODE
LOWbackend_api_python/app/utils/db.py185 except Exception as exc:CODE
LOWbackend_api_python/app/utils/config_loader.py34 except Exception as e:CODE
LOWbackend_api_python/app/utils/config_loader.py226 except Exception as e:CODE
LOWbackend_api_python/app/utils/config_loader.py308 except Exception as e:CODE
LOWbackend_api_python/app/utils/request_guard.py37 except Exception:CODE
LOWbackend_api_python/app/utils/request_guard.py107 except Exception:CODE
LOWbackend_api_python/app/utils/request_guard.py129 except Exception:CODE
LOWbackend_api_python/app/utils/timeutil.py29except Exception: # pragma: no cover - fallback for very old runtimesCODE
LOWbackend_api_python/app/utils/timeutil.py45 except Exception:CODE
LOWbackend_api_python/app/utils/timeutil.py80 except Exception:CODE
LOWbackend_api_python/app/utils/timeutil.py95 except Exception:CODE
LOWbackend_api_python/app/utils/safe_exec.py364 except Exception as exc:CODE
LOWbackend_api_python/app/utils/safe_exec.py475 except Exception as e:CODE
LOWbackend_api_python/app/utils/safe_exec.py522 except Exception as e:CODE
LOWbackend_api_python/app/utils/safe_exec.py571 except Exception:CODE
LOWbackend_api_python/app/utils/safe_exec.py602 except Exception:CODE
LOWbackend_api_python/app/utils/safe_exec.py606 except Exception as e:CODE
LOWbackend_api_python/app/utils/safe_exec.py647 except Exception as e:CODE
LOWbackend_api_python/app/utils/safe_exec.py801 except Exception as e:CODE
MEDIUMbackend_api_python/app/utils/safe_exec.py564def _worker(code, input_data, max_memory_mb, result_pipe):CODE
LOWbackend_api_python/app/utils/cache.py90 except Exception as e:CODE
LOWbackend_api_python/app/utils/cache.py103 except Exception as e:CODE
LOWbackend_api_python/app/utils/cache.py111 except Exception as e:CODE
LOWbackend_api_python/app/utils/cache.py118 except Exception as e:CODE
1747 more matches not shown…
Hyper-Verbose Identifiers1700 hits · 1731 pts
SeverityFileLineSnippetContext
LOWmcp_server/tests/test_transport_resolution.py39def test_transport_default_is_stdio(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py56def test_transport_aliases_resolve(monkeypatch, fresh_module, raw, expected):CODE
LOWmcp_server/tests/test_transport_resolution.py61def test_transport_unknown_exits(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py67def test_apply_http_settings_without_error(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py78def test_non_loopback_http_requires_auth(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py86def test_non_loopback_http_accepts_distinct_strong_auth(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py94def test_non_loopback_authenticated_http_requires_https(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_transport_resolution.py104def test_invalid_numeric_env_uses_default(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py29def test_mcp_tool_registry_complete(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py36def test_mcp_tools_are_actually_registered(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py41def test_strategy_authoring_contract_uses_agent_gateway(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py53def test_package_version_matches_pyproject():CODE
LOWmcp_server/tests/test_security_and_tools.py63def test_protocol_server_version_matches_package(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py69def test_create_strategy_uses_canonical_deployment_payload(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py108def test_quick_order_forwards_native_protection(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py134def test_stop_strategy_requires_confirmation(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py140def test_place_quick_order_requires_confirmation(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py146def test_indicator_code_size_rejected_in_mcp(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py182def test_strategy_source_workspace_payloads(monkeypatch, fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py225def test_source_restore_and_paper_cancel_require_confirmation(fresh_module):CODE
LOWmcp_server/tests/test_security_and_tools.py245def test_redaction_handles_camel_case_and_deep_values():CODE
LOWmcp_server/src/quantdinger_mcp/server.py555def get_indicator_authoring_contract() -> Any:CODE
LOWmcp_server/src/quantdinger_mcp/server.py676def get_strategy_authoring_contract() -> Any:CODE
LOWmcp_server/src/quantdinger_mcp/server.py751def list_strategy_source_versions(source_id: int) -> Any:CODE
LOWmcp_server/src/quantdinger_mcp/server.py757def restore_strategy_source_version(CODE
LOWmcp_server/src/quantdinger_mcp/server.py989def list_strategy_pending_orders(strategy_id: int, limit: int = 50, cursor: int = 0) -> Any:CODE
LOWmcp_server/src/quantdinger_mcp/server.py1100def _apply_http_settings_from_env() -> None:CODE
LOWmcp_server/src/quantdinger_mcp/server.py1121def _validate_network_security(transport: str) -> None:CODE
LOWmcp_server/src/quantdinger_mcp/security.py31def assert_indicator_code_size(code: str) -> None:CODE
LOWbackend_api_python/app/startup.py74def start_pending_order_worker():CODE
LOWbackend_api_python/app/startup.py99def start_execution_stream_supervisor():CODE
LOWbackend_api_python/app/startup.py190def _schedule_post_restore_position_sync() -> None:CODE
LOWbackend_api_python/app/startup.py233def _start_trading_support_services() -> None:CODE
LOWbackend_api_python/app/startup.py240def _start_scheduler_services(*, include_celery_managed: bool = False) -> None:CODE
LOWbackend_api_python/app/startup.py46def get_execution_stream_supervisor():CODE
LOWbackend_api_python/app/startup.py55def _is_debug_reloader_parent() -> bool:CODE
LOWbackend_api_python/app/startup.py144def restore_running_strategies():CODE
LOWbackend_api_python/app/config/redis_urls.py38def celery_result_backend_url() -> str:CODE
LOWbackend_api_python/app/runtime/roles.py26def strategy_commands_enabled() -> bool:CODE
LOWbackend_api_python/app/utils/auth.py23def _configure_jwt_secret_warnings() -> None:CODE
LOWbackend_api_python/app/utils/db.py103def _resolve_market_symbols_sql_path() -> Path:CODE
LOWbackend_api_python/app/utils/db.py107def _resolve_strategy_templates_sql_path() -> Path:CODE
LOWbackend_api_python/app/utils/local_brokers.py8def local_desktop_brokers_allowed() -> bool:CODE
LOWbackend_api_python/app/utils/local_brokers.py14def desktop_broker_cloud_reject_message() -> str:CODE
LOWbackend_api_python/app/utils/safe_exec.py167def _dangerous_pd_numpy_import(name: str) -> Optional[str]:CODE
LOWbackend_api_python/app/utils/safe_exec.py481def safe_exec_with_validation(CODE
LOWbackend_api_python/app/utils/safe_exec.py669def _string_has_forbidden_dunder(text: str) -> bool:CODE
LOWbackend_api_python/app/utils/safe_exec.py680def _is_operator_accessor_call(node: Any) -> bool:CODE
LOWbackend_api_python/app/utils/safe_exec.py706def _dangerous_pd_numpy_internal(root: Optional[str], attrs: list) -> Optional[str]:CODE
LOWbackend_api_python/app/utils/market_visibility.py49def enabled_markets_whitelist() -> Set[str]:CODE
LOWbackend_api_python/app/utils/trade_close_reason.py121def infer_legacy_close_reason(CODE
LOWbackend_api_python/app/utils/trade_close_reason.py142def resolve_close_reason_for_record(CODE
LOWbackend_api_python/app/utils/trade_net_pnl.py62def allocate_open_commissions_fifo(trades: List[Dict[str, Any]]) -> Dict[int, float]:CODE
LOWbackend_api_python/app/utils/db_postgres.py207def _probe_pg_connection_limit(params: Dict[str, Any]) -> Optional[Dict[str, int]]:CODE
LOWbackend_api_python/app/utils/db_postgres.py244def _resolve_effective_pool_limits(params: Dict[str, Any]) -> tuple[int, int]:CODE
LOWbackend_api_python/app/utils/agent_auth.py191def ensure_agent_gateway_schema() -> None:STRING
LOWbackend_api_python/app/utils/risk_guard.py26def trailing_exit_locks_net_profit(CODE
LOWbackend_api_python/app/observability/http.py27 def start_request_observation():CODE
LOWbackend_api_python/app/observability/http.py36 def finish_request_observation(response):CODE
LOWbackend_api_python/app/observability/http.py50 def clear_request_observation(_error=None):CODE
1640 more matches not shown…
Decorative Section Separators210 hits · 725 pts
SeverityFileLineSnippetContext
MEDIUMdocker-compose.yml78 # ========================COMMENT
MEDIUMdocker-compose.yml80 # ========================COMMENT
MEDIUMdocker-compose.yml113 # ========================COMMENT
MEDIUMdocker-compose.yml115 # ========================COMMENT
MEDIUMdocker-compose.yml182 # ========================COMMENT
MEDIUMdocker-compose.yml184 # ========================COMMENT
MEDIUMdocker-compose.yml421 # ========================COMMENT
MEDIUMdocker-compose.yml423 # ========================COMMENT
MEDIUMdocker-compose.yml457 # ========================COMMENT
MEDIUMdocker-compose.yml459 # ========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_SMS_CONFIG_CN.md93# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_SMS_CONFIG_CN.md95# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_EMAIL_CONFIG_EN.md72# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_EMAIL_CONFIG_EN.md74# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md92# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md94# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_EMAIL_CONFIG_CN.md74# =========================COMMENT
MEDIUMdocs/deployment/NOTIFICATION_EMAIL_CONFIG_CN.md76# =========================COMMENT
MEDIUMbackend_api_python/app/utils/agent_jobs.py229# ──────────────────────────── progress / streaming ────────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py350# ─────────────────────────── verification ───────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py393# ─────────────────────────── audit ───────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py483# ─────────────────────────── decorator ───────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py739# ─────────────────────────── idempotency ───────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py776# ─────────────────────────── helpers for routes ───────────────────────────COMMENT
MEDIUMbackend_api_python/app/utils/agent_auth.py202# ─────────────────────────── token primitives ───────────────────────────STRING
MEDIUMbackend_api_python/app/utils/agent_auth.py245# ─────────────────────────── distributed rate limit ───────────────────────────STRING
MEDIUMbackend_api_python/app/data_providers/__init__.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/__init__.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/__init__.py79# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/__init__.py81# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/__init__.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/__init__.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/opportunities.py232# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/opportunities.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/opportunities.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_providers/opportunities.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py491# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py493# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py71# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py73# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py345# ---------------------------------------------------------------------------COMMENT
MEDIUM…kend_api_python/app/data_sources/cn_hk_fundamentals.py347# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/forex.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/forex.py41# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/cache_manager.py172# ============================================COMMENT
MEDIUMbackend_api_python/app/data_sources/cache_manager.py173# ============================================COMMENT
MEDIUMbackend_api_python/app/data_sources/futures.py21# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/futures.py23# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/circuit_breaker.py152# ============================================COMMENT
MEDIUMbackend_api_python/app/data_sources/circuit_breaker.py153# ============================================COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py104# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py106# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py126# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py128# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py324# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py326# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py486# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/data_sources/asia_stock_kline.py488# ---------------------------------------------------------------------------COMMENT
MEDIUMbackend_api_python/app/routes/auth.py140# =============================================================================COMMENT
MEDIUMbackend_api_python/app/routes/auth.py142# =============================================================================COMMENT
150 more matches not shown…
Unused Imports585 hits · 546 pts
SeverityFileLineSnippetContext
LOWscripts/check_mojibake.py9CODE
LOWscripts/check_docs.py4CODE
LOWscripts/bump_version.py12CODE
LOWscripts/check_version.py12CODE
LOWmcp_server/tests/test_transport_resolution.py11CODE
LOWmcp_server/tests/test_security_and_tools.py2CODE
LOWmcp_server/src/quantdinger_mcp/server.py7CODE
LOWmcp_server/src/quantdinger_mcp/security.py2CODE
LOWbackend_api_python/app/startup.py2CODE
LOWbackend_api_python/app/_version.py8CODE
LOWbackend_api_python/app/celery_app.py3CODE
LOWbackend_api_python/app/__init__.py2CODE
LOWbackend_api_python/app/__init__.py23CODE
LOWbackend_api_python/app/__init__.py23CODE
LOWbackend_api_python/app/tasks/maintenance.py3CODE
LOWbackend_api_python/app/tasks/agent_jobs.py3CODE
LOWbackend_api_python/app/tasks/fast_analysis.py3CODE
LOWbackend_api_python/app/config/__init__.py2CODE
LOWbackend_api_python/app/config/__init__.py3CODE
LOWbackend_api_python/app/config/__init__.py4CODE
LOWbackend_api_python/app/config/__init__.py4CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/__init__.py5CODE
LOWbackend_api_python/app/config/redis_urls.py3CODE
LOWbackend_api_python/app/runtime/roles.py3CODE
LOWbackend_api_python/app/runtime/__init__.py3CODE
LOWbackend_api_python/app/runtime/__init__.py3CODE
LOWbackend_api_python/app/runtime/process.py3CODE
LOWbackend_api_python/app/utils/json_helpers.py3CODE
LOWbackend_api_python/app/utils/db.py23CODE
LOWbackend_api_python/app/utils/db.py23CODE
LOWbackend_api_python/app/utils/local_brokers.py3CODE
LOWbackend_api_python/app/utils/request_guard.py3CODE
LOWbackend_api_python/app/utils/notification_display.py6CODE
LOWbackend_api_python/app/utils/timeutil.py21CODE
LOWbackend_api_python/app/utils/market_visibility.py27CODE
LOWbackend_api_python/app/utils/technical_indicators.py8CODE
LOWbackend_api_python/app/utils/technical_indicators.py12CODE
LOWbackend_api_python/app/utils/__init__.py4CODE
LOWbackend_api_python/app/utils/__init__.py5CODE
LOWbackend_api_python/app/utils/__init__.py6CODE
LOWbackend_api_python/app/utils/trade_close_reason.py6CODE
LOWbackend_api_python/app/utils/trade_net_pnl.py10CODE
LOWbackend_api_python/app/utils/agent_jobs.py19CODE
LOWbackend_api_python/app/utils/resource_guard.py8CODE
LOWbackend_api_python/app/utils/logger.py3CODE
LOWbackend_api_python/app/utils/broker_session.py19CODE
LOWbackend_api_python/app/utils/credential_crypto.py8CODE
LOWbackend_api_python/app/utils/language.py8CODE
LOWbackend_api_python/app/utils/strategy_runtime_logs.py3CODE
LOWbackend_api_python/app/utils/thread_capacity.py3CODE
LOWbackend_api_python/app/utils/agent_auth.py11CODE
LOWbackend_api_python/app/utils/risk_guard.py3CODE
LOWbackend_api_python/app/utils/pnl.py2CODE
LOWbackend_api_python/app/observability/metrics.py3CODE
525 more matches not shown…
Deep Nesting308 hits · 230 pts
SeverityFileLineSnippetContext
LOWscripts/check_mojibake.py80CODE
LOWscripts/check_docs.py48CODE
LOWmcp_server/src/quantdinger_mcp/security.py43CODE
LOWmcp_server/src/quantdinger_mcp/security.py90CODE
LOWbackend_api_python/app/startup.py144CODE
LOWbackend_api_python/app/utils/db.py163CODE
LOWbackend_api_python/app/utils/config_loader.py233CODE
LOWbackend_api_python/app/utils/request_guard.py55CODE
LOWbackend_api_python/app/utils/timeutil.py50CODE
LOWbackend_api_python/app/utils/safe_exec.py718CODE
LOWbackend_api_python/app/utils/safe_exec.py323CODE
LOWbackend_api_python/app/utils/agent_jobs.py272CODE
LOWbackend_api_python/app/utils/db_postgres.py456CODE
LOWbackend_api_python/app/utils/agent_auth.py49CODE
LOWbackend_api_python/app/observability/metrics.py72CODE
LOWbackend_api_python/app/openapi/register.py128CODE
LOWbackend_api_python/app/openapi/register.py163CODE
LOWbackend_api_python/app/data_providers/heatmap.py143CODE
LOWbackend_api_python/app/data_providers/heatmap.py163CODE
LOWbackend_api_python/app/data_providers/forex.py29CODE
LOWbackend_api_python/app/data_providers/forex.py69CODE
LOWbackend_api_python/app/data_providers/forex.py109CODE
LOWbackend_api_python/app/data_providers/forex.py158CODE
LOWbackend_api_python/app/data_providers/sentiment.py45CODE
LOWbackend_api_python/app/data_providers/sentiment.py114CODE
LOWbackend_api_python/app/data_providers/sentiment.py184CODE
LOWbackend_api_python/app/data_providers/sentiment.py253CODE
LOWbackend_api_python/app/data_providers/sentiment.py289CODE
LOWbackend_api_python/app/data_providers/sentiment.py325CODE
LOWbackend_api_python/app/data_providers/__init__.py306CODE
LOWbackend_api_python/app/data_providers/opportunities.py85CODE
LOWbackend_api_python/app/data_providers/opportunities.py143CODE
LOWbackend_api_python/app/data_providers/opportunities.py236CODE
LOWbackend_api_python/app/data_providers/opportunities.py283CODE
LOWbackend_api_python/app/data_providers/opportunities.py323CODE
LOWbackend_api_python/app/data_providers/opportunities.py384CODE
LOWbackend_api_python/app/data_providers/crypto.py28CODE
LOWbackend_api_python/app/data_providers/crypto.py68CODE
LOWbackend_api_python/app/data_providers/commodities.py29CODE
LOWbackend_api_python/app/data_providers/commodities.py67CODE
LOWbackend_api_python/app/data_providers/commodities.py114CODE
LOWbackend_api_python/app/data_providers/commodities.py161CODE
LOWbackend_api_python/app/data_providers/indices.py30CODE
LOWbackend_api_python/app/data_providers/news.py15CODE
LOWbackend_api_python/app/workers/trading.py93CODE
LOW…kend_api_python/app/data_sources/cn_hk_fundamentals.py75CODE
LOW…kend_api_python/app/data_sources/cn_hk_fundamentals.py171CODE
LOW…kend_api_python/app/data_sources/cn_hk_fundamentals.py513CODE
LOW…kend_api_python/app/data_sources/cn_hk_fundamentals.py600CODE
LOWbackend_api_python/app/data_sources/forex.py135CODE
LOWbackend_api_python/app/data_sources/forex.py191CODE
LOWbackend_api_python/app/data_sources/forex.py394CODE
LOWbackend_api_python/app/data_sources/us_stock.py214CODE
LOWbackend_api_python/app/data_sources/us_stock.py387CODE
LOWbackend_api_python/app/data_sources/us_stock.py479CODE
LOWbackend_api_python/app/data_sources/factory.py186CODE
LOWbackend_api_python/app/data_sources/futures.py110CODE
LOWbackend_api_python/app/data_sources/crypto.py56CODE
LOWbackend_api_python/app/data_sources/crypto.py405CODE
LOWbackend_api_python/app/data_sources/crypto.py497CODE
248 more matches not shown…
AI Slop Vocabulary24 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMbackend_api_python/app/routes/quick_trade.py414 # Spot input is quote notional. Swap input is margin and expands by leverage.COMMENT
MEDIUMbackend_api_python/app/routes/quick_trade.py500 # 50 USDT notional at leverage=1 needs ~50 USDT collateral. Many usersCOMMENT
MEDIUMbackend_api_python/app/routes/global_market.py146 """Get comprehensive market sentiment indicators."""STRING
MEDIUMbackend_api_python/app/routes/indicator.py766- Do **not** emit `# @strategy`, `# signal_form`, `# exit_owner`, `# flip_mode`, `# timeframe`, risk defaults, position CODE
MEDIUM…end_api_python/app/services/ai_generation_contracts.py58## Contract leverageCOMMENT
MEDIUMbackend_api_python/app/services/pending_order_worker.py1730 # - For OKX swap, leverage must be set via private endpoint; otherwise exchange defaults apply.COMMENT
MEDIUMbackend_api_python/app/services/pending_order_worker.py1731 # - For other exchanges, leverage setting is not implemented yet in this local client.COMMENT
MEDIUMbackend_api_python/app/services/llm.py1402 """Safe LLM call with robust JSON parsing and fallback structure."""STRING
LOWbackend_api_python/app/services/symbol_name.py229 # 1) Seed (already in our DB — nothing to learn, just return).COMMENT
MEDIUMbackend_api_python/app/services/indicator_workspace.py66 "# @strategy, # signal_form, # exit_owner, # flip_mode, # timeframe, risk, leverage, trade direction, stop lCODE
MEDIUMbackend_api_python/app/services/portfolio_monitor.py464 """Build a comprehensive text report (backward compatible)."""STRING
MEDIUMbackend_api_python/app/services/live_trading/okx.py77 # Best-effort cache for leverage settings to avoid spamming set-leverage on every tick.COMMENT
MEDIUM…hon/app/services/live_trading/account_configuration.py70 """Apply requested leverage and margin mode or reject the order."""STRING
MEDIUMbackend_api_python/app/services/live_trading/bitget.py1058 # For robust parsing: contractSize helps converting contracts->base if needed.COMMENT
MEDIUMbackend_api_python/app/services/live_trading/bitget.py65 # Best-effort cache for leverage settings to avoid spamming set-leverage on every tick.COMMENT
MEDIUMbackend_api_python/app/services/live_trading/gate.py586 # Gate expects ``leverage`` / ``cross_leverage_limit`` as **query parameters**, not JSON bodyCOMMENT
MEDIUMbackend_api_python/app/services/live_trading/gate.py587 # (see gateapi-python: update_position_leverage). Cross / portfolio mode: leverage=0 + cross_leverage_limit.COMMENT
MEDIUMbackend_api_python/app/services/live_trading/binance.py1056 """Read back symbol-level margin mode and leverage from positionRisk.STRING
MEDIUM…d_api_python/app/services/usdt_payment/watchers/evm.py118# mainnet, and Etherscan's indexed tokentx endpoint is more robustCOMMENT
MEDIUMbackend_api_python/app/services/grid/engine.py1240 """One grid line's base quantity (amountPerGrid × leverage / price), exchange-normalized."""STRING
MEDIUMbackend_api_python/tests/test_grid_engine.py329 """100 USDT * 20% margin * 20x leverage ≈ 400 USDT notional at 72710."""STRING
MEDIUMbackend_api_python/tests/test_indicator_code_quality.py74# @strategy leverage 2COMMENT
MEDIUMbackend_api_python/tests/test_risk_pct_basis.py62 # 92 / 100 = -8% > -9% — must NOT trigger even at 10x leverage.COMMENT
MEDIUMbackend_api_python/tests/test_risk_pct_basis.py114 # 16% price move required regardless of leverage.COMMENT
Modern Structural Boilerplate52 hits · 52 pts
SeverityFileLineSnippetContext
LOWbackend_api_python/run.py61 def _set_if_blank(key: str, value: str) -> None:CODE
LOWbackend_api_python/app/celery_app.py83__all__ = ["celery_app"]CODE
LOWbackend_api_python/app/config/__init__.py15__all__ = [CODE
LOWbackend_api_python/app/runtime/__init__.py5__all__ = ["ProcessRole", "current_process_role"]CODE
LOWbackend_api_python/app/utils/db.py222__all__ = [CODE
LOWbackend_api_python/app/utils/config_loader.py67 def set_nested(cfg: Dict[str, Any], dotted_key: str, value: Any) -> None:CODE
LOWbackend_api_python/app/utils/timeutil.py112__all__ = ["to_utc_iso"]CODE
LOWbackend_api_python/app/utils/__init__.py8__all__ = ['get_logger', 'CacheManager', 'get_retry_session']CODE
LOWbackend_api_python/app/utils/broker_session.py116__all__ = ['BrokerSessionRegistry']CODE
LOWbackend_api_python/app/observability/__init__.py10__all__ = ["init_http_observability"]CODE
LOWbackend_api_python/app/openapi/schemas/__init__.py11__all__ = [CODE
LOWbackend_api_python/app/data_providers/news.py75__all__ = ["fetch_financial_news", "get_economic_calendar", "get_economic_calendar_payload"]CODE
LOWbackend_api_python/app/data_sources/cache_manager.py23logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/data_sources/rate_limiter.py18logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/data_sources/__init__.py13__all__ = [CODE
LOWbackend_api_python/app/data_sources/__init__.py35__all__ = [CODE
LOWbackend_api_python/app/data_sources/circuit_breaker.py21logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/strategy_daily_pnl.py356__all__ = [STRING
LOWbackend_api_python/app/services/usdt_payment_service.py17__all__ = [CODE
LOW…end_api_python/app/services/alpaca_trading/__init__.py19__all__ = ['AlpacaClient', 'AlpacaConfig', 'normalize_symbol', 'parse_symbol']CODE
LOW…d_api_python/app/services/live_trading/binance_spot.py17logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/okx.py21logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/bybit.py23logger = logging.getLogger(__name__)CODE
LOW…nd_api_python/app/services/live_trading/bitget_spot.py26logger = logging.getLogger(__name__)CODE
LOW…ervices/live_trading/alpaca_activity_reconciliation.py456__all__ = [CODE
LOW…nd_api_python/app/services/live_trading/spot_sizing.py16logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/factory.py15logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/bitget.py22logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/gate.py27logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/htx.py26logger = logging.getLogger(__name__)CODE
LOW…on/app/services/live_trading/funding_reconciliation.py238__all__ = [CODE
LOWbackend_api_python/app/services/live_trading/base.py27logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/live_trading/binance.py20logger = logging.getLogger(__name__)CODE
LOWbackend_api_python/app/services/strategy_v2/__init__.py21__all__ = [CODE
LOWbackend_api_python/app/services/strategy_v2/runtime.py179 def set_default_protection(self, **values: Any) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/runtime.py228 def update_order_statuses(self, values: Mapping[str, Mapping[str, Any]] | None) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/runtime.py241 def set_last_exit_reason(self, symbol: object, reason: object) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/contract.py126 def set_benchmark(self, value: object) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/contract.py145 def set_warmup(self, bars: object) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/contract.py153 def set_metadata(self, **values: Any) -> None:CODE
LOWbackend_api_python/app/services/strategy_v2/data.py54 def set_clock(self, current_dt: Any, *, include_current: bool) -> None:CODE
LOW…hon/app/services/pending_orders/position_sync_cache.py109def set_exchange_sync_backoff(cache_key: str, seconds: Optional[float] = None) -> None:CODE
LOWbackend_api_python/app/services/factors/__init__.py20__all__ = [CODE
LOW…ckend_api_python/app/services/usdt_payment/__init__.py24__all__ = [CODE
LOW…_python/app/services/usdt_payment/watchers/__init__.py27__all__ = ["IncomingTransfer", "WatcherResult", "get_watcher"]CODE
LOW…_api_python/app/services/execution_streams/__init__.py8__all__ = ["ExecutionStreamSupervisor", "get_execution_stream_supervisor"]CODE
LOW…d_api_python/app/services/strategy_runtime/__init__.py9__all__ = [CODE
LOW…ckend_api_python/app/services/ibkr_trading/__init__.py14__all__ = ['IBKRClient', 'IBKRConfig', 'normalize_symbol', 'parse_symbol']CODE
LOWbackend_api_python/app/services/bot_scripts/__init__.py8__all__ = [CODE
LOWbackend_api_python/app/services/grid/__init__.py7__all__ = ["GridBotConfig", "GridEngine", "GridRestingRunner"]CODE
LOWbackend_api_python/app/services/grid/engine.py151 def set_runtime_params(self, params: Dict[str, Any]) -> None:CODE
LOWbackend_api_python/app/services/grid/engine.py434 def set_initial_exchange_baseline(self, *, long_size: float = 0.0, short_size: float = 0.0) -> None:CODE
Structural Annotation Overuse28 hits · 47 pts
SeverityFileLineSnippetContext
LOWdocs/deployment/OAUTH_CONFIG_EN.md17### Step 1: Create a Google Cloud ProjectCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md23### Step 2: Configure OAuth Consent ScreenCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md35### Step 3: Create OAuth 2.0 Client IDCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md49### Step 4: Configure .env FileCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md62### Step 1: Create GitHub OAuth AppCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md75### Step 2: Get CredentialsCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md81### Step 3: Configure .env FileCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md96### Step 1: Create Turnstile WidgetCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md106### Step 2: Get KeysCOMMENT
LOWdocs/deployment/OAUTH_CONFIG_EN.md112### Step 3: Configure .env FileCOMMENT
LOWdocs/deployment/NOTIFICATION_EMAIL_CONFIG_EN.md48### Step 1: Obtain SMTP Service InformationCOMMENT
LOWdocs/deployment/NOTIFICATION_EMAIL_CONFIG_EN.md67### Step 2: Configure Environment VariablesCOMMENT
LOWdocs/deployment/NOTIFICATION_EMAIL_CONFIG_EN.md103### Step 3: Enable Email Notifications in StrategyCOMMENT
LOWdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md45### Step 1: Create a Twilio AccountCOMMENT
LOWdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md57### Step 2: Obtain API CredentialsCOMMENT
LOWdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md71### Step 3: Get a Phone NumberCOMMENT
LOWdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md87### Step 4: Configure Environment VariablesCOMMENT
LOWdocs/deployment/NOTIFICATION_SMS_CONFIG_EN.md113### Step 5: Enable SMS Notifications in StrategyCOMMENT
LOWdocs/deployment/NOTIFICATION_TELEGRAM_CONFIG_EN.md27## Step 1: Create a Telegram BotCOMMENT
LOWdocs/deployment/NOTIFICATION_TELEGRAM_CONFIG_EN.md38## Step 2: Obtain Bot TokenCOMMENT
LOWdocs/deployment/NOTIFICATION_TELEGRAM_CONFIG_EN.md50## Step 3: Get Your User IDCOMMENT
LOWdocs/deployment/NOTIFICATION_TELEGRAM_CONFIG_EN.md77## Step 4: Configure Environment VariablesCOMMENT
LOWdocs/deployment/NOTIFICATION_TELEGRAM_CONFIG_EN.md90## Step 5: Enable Telegram Notifications in StrategyCOMMENT
LOWbackend_api_python/app/routes/auth.py175 # Step 1: Verify Turnstile (if enabled)COMMENT
LOWbackend_api_python/app/routes/auth.py184 # Step 2: Check rate limitingCOMMENT
LOWbackend_api_python/app/routes/auth.py191 # Step 3: AuthenticateCOMMENT
LOWbackend_api_python/app/routes/auth.py272 # Step 4: Record successful loginCOMMENT
LOW…pi_python/app/services/usdt_payment/watchers/solana.py181 # Step 1: resolve the watched account.COMMENT
Redundant / Tautological Comments25 hits · 36 pts
SeverityFileLineSnippetContext
LOWscripts/generate-secret-key.sh9# Check if .env exists.COMMENT
LOWbackend_api_python/docker-entrypoint.sh11# Check if .env file existsCOMMENT
LOWbackend_api_python/app/routes/auth.py197 # Check if user has no password set (code-login user)COMMENT
LOWbackend_api_python/app/routes/auth.py416 # Check if user existsCOMMENT
LOWbackend_api_python/app/routes/auth.py421 # Check if registration is enabledCOMMENT
LOWbackend_api_python/app/routes/auth.py719 # Check if registration is enabledCOMMENT
LOWbackend_api_python/app/routes/auth.py764 # Check if username already existsCOMMENT
LOWbackend_api_python/app/routes/auth.py769 # Check if email already existsCOMMENT
LOWbackend_api_python/app/routes/indicator.py895 # Check if any LLM provider is configuredCOMMENT
LOWbackend_api_python/app/routes/portfolio.py86 # Check if force refresh (skip cache)COMMENT
LOWbackend_api_python/app/routes/portfolio.py316 # Check if force refreshCOMMENT
LOWbackend_api_python/app/routes/portfolio.py728 # Check if alert already exists for this position (unique constraint)COMMENT
LOWbackend_api_python/app/services/pending_order_worker.py1638 # Check if this is an IBKR client (US stocks)COMMENT
LOWbackend_api_python/app/services/oauth_service.py681 # Check if user has password (can't unlink last auth method)COMMENT
LOWbackend_api_python/app/services/oauth_service.py689 # Check if this is the only OAuth linkCOMMENT
LOWbackend_api_python/app/services/oauth_service.py466 # Check if OAuth link existsCOMMENT
LOWbackend_api_python/app/services/oauth_service.py516 # Check if user exists with same emailCOMMENT
LOWbackend_api_python/app/services/llm.py1143 # Check if we have API key for the detected providerCOMMENT
LOWbackend_api_python/app/services/security_service.py275 # Check if still in block periodCOMMENT
LOWbackend_api_python/app/services/email_service.py53 # Check if email is properly configuredCOMMENT
LOWbackend_api_python/app/services/email_service.py135 # Check if locked due to too many failed attemptsCOMMENT
LOWbackend_api_python/app/services/email_service.py171 # Check if code matchesCOMMENT
LOWbackend_api_python/app/services/portfolio_monitor.py1530 # Check if we can trigger (not triggered yet, or repeat interval passed)STRING
LOWbackend_api_python/app/services/user_service.py644 # Check if user has no password (code-login user)COMMENT
LOWbackend_api_python/app/services/user_service.py766 # Check if username already existsCOMMENT
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHbackend_api_python/app/services/live_trading/bybit.py0convert decimal to string with controlled precision. bitget requires quantities to match sizestep/sizeplace precision. aSTRING
HIGH…nd_api_python/app/services/live_trading/bitget_spot.py0convert decimal to string with controlled precision. bitget requires quantities to match sizestep/sizeplace precision. aSTRING
HIGHbackend_api_python/app/services/live_trading/bitget.py0convert decimal to string with controlled precision. bitget requires quantities to match sizestep/sizeplace precision. aSTRING
HIGHbackend_api_python/tests/test_agent_current_contract.py0def initialize(context): context.set_universe(["usstock:aapl"]) context.subscribe(frequency="1d") def handle_data(contexSTRING
HIGHbackend_api_python/tests/test_strategy_v2_service.py0def initialize(context): context.set_universe(["usstock:aapl"]) context.subscribe(frequency="1d") def handle_data(contexSTRING
HIGHbackend_api_python/tests/test_strategy_v2_runtime.py0def initialize(context): context.set_universe(["usstock:aapl"]) context.subscribe(frequency="1d") def handle_data(contexSTRING
Synthetic Comment Markers2 hits · 16 pts
SeverityFileLineSnippetContext
HIGHbackend_api_python/app/services/ai_calibration.py148 # Approx correctness rules (as requested)COMMENT
HIGHbackend_api_python/app/services/ai_report_pdf.py111 "disclaimer": "This report is generated by AI for research only and is not investment advice.",CODE
AI Structural Patterns17 hits · 14 pts
SeverityFileLineSnippetContext
LOWmcp_server/src/quantdinger_mcp/server.py382CODE
LOWmcp_server/src/quantdinger_mcp/server.py626CODE
LOWbackend_api_python/app/routes/user.py873CODE
LOWbackend_api_python/app/routes/global_market.py174CODE
LOWbackend_api_python/app/services/pending_order_worker.py2728CODE
LOWbackend_api_python/app/services/community_service.py125CODE
LOWbackend_api_python/app/services/community_service.py417CODE
LOW…d_api_python/app/services/live_trading/binance_spot.py643CODE
LOWbackend_api_python/app/services/live_trading/htx_v5.py370CODE
LOWbackend_api_python/app/services/live_trading/records.py460CODE
LOWbackend_api_python/app/services/live_trading/binance.py471CODE
LOWbackend_api_python/app/services/strategy_v2/service.py123CODE
LOW…api_python/app/services/pending_orders/fill_records.py69CODE
LOW…pi_python/app/services/execution_streams/repository.py14CODE
LOW…_python/app/services/strategy_runtime/order_intents.py71CODE
LOW…d_api_python/app/services/strategy_runtime/identity.py75CODE
LOWbackend_api_python/app/services/grid/fill_handler.py130CODE
Over-Commented Block13 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocker-compose.ghcr.yml1# QuantDinger Docker Compose - GHCR prebuilt images (zero-repo deploy)COMMENT
LOWdocker-compose.ghcr.yml21# Database schema is bootstrapped automatically: the backend re-appliesCOMMENT
LOWinstall.sh1#!/usr/bin/env bashCOMMENT
LOWdocker-compose.build.yml1# Override file for local frontend builds.COMMENT
LOWdocker-compose.yml1# QuantDinger Docker Compose - One-Click DeploymentCOMMENT
LOWdocker-compose.yml421 # ========================COMMENT
LOW.github/workflows/docker-publish.yml1name: Publish backend image to GHCRCOMMENT
LOWbackend_api_python/app/routes/settings.py21settings_blp = Blueprint('settings', __name__)COMMENT
LOWbackend_api_python/app/services/builtin_indicators.py41# * output['signals'] is chart-only and never drives orders by itselfCOMMENT
LOWbackend_api_python/app/services/oauth_service.py161 # FRONTEND_URL accepts a comma-separated list of origins (the sameCOMMENT
LOW…d_api_python/app/services/usdt_payment/watchers/evm.py81 "https://bsc-dataseed4.binance.org",COMMENT
LOW…d_api_python/app/services/usdt_payment/watchers/evm.py101# eth_getLogs; we cap at 4800 to stay safely under that. At 0.75s/blockCOMMENT
LOW…pi_python/app/services/usdt_payment/watchers/solana.py181 # Step 1: resolve the watched account.COMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHbackend_api_python/app/services/strategy_v2/runtime.py350 or not cached.index.equals(frame.index[:cached_length])CODE
HIGHbackend_api_python/tests/test_llm_litellm_provider.py267 b'data: {"choices":[{"delta":{"content":"partial"},"finish_reason":null}]}',CODE
Verbosity Indicators5 hits · 9 pts
SeverityFileLineSnippetContext
LOWbackend_api_python/app/routes/auth.py175 # Step 1: Verify Turnstile (if enabled)COMMENT
LOWbackend_api_python/app/routes/auth.py184 # Step 2: Check rate limitingCOMMENT
LOWbackend_api_python/app/routes/auth.py191 # Step 3: AuthenticateCOMMENT
LOWbackend_api_python/app/routes/auth.py272 # Step 4: Record successful loginCOMMENT
LOW…pi_python/app/services/usdt_payment/watchers/solana.py181 # Step 1: resolve the watched account.COMMENT
Fake / Example Data10 hits · 8 pts
SeverityFileLineSnippetContext
LOWbackend_api_python/app/routes/settings.py302 'default': 'admin@example.com',CODE
LOWbackend_api_python/app/routes/settings.py1859 if requested_admin_email and requested_admin_email != 'admin@example.com':CODE
LOWbackend_api_python/app/services/security_service.py28 'placeholder',CODE
LOWbackend_api_python/app/services/user_service.py384 if email == 'admin@example.com':CODE
LOWbackend_api_python/app/services/user_service.py385 return {'synced': False, 'reason': 'placeholder'}CODE
LOWbackend_api_python/app/services/user_service.py415 if current_email and current_email != 'admin@example.com' and not overwrite_existing:CODE
LOWbackend_api_python/app/services/user_service.py1125 admin_email = os.getenv('ADMIN_EMAIL', 'admin@example.com')CODE
LOWbackend_api_python/tests/test_db_log_noise_fixes.py78 result = service.start_setup(9383, "user@example.com")CODE
LOW…ckend_api_python/tests/test_initial_password_policy.py88 "email": "admin@example.com",CODE
LOW…ckend_api_python/tests/test_initial_password_policy.py162 "email": "admin@example.com",CODE
Dead Code3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMbackend_api_python/app/data_sources/factory.py135CODE
MEDIUMbackend_api_python/app/data_sources/factory.py140CODE
MEDIUM…kend_api_python/tests/test_ai_chat_snapshot_quality.py189CODE
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMdocker-compose.ghcr.yml18# - .env (optional) - docker compose orchestration knobs (IMAGE_TAG, ports, mirrors);COMMENT
MEDIUMdocs/architecture/ARCHITECTURE.md52 ai/ # skills, prompts, provider orchestrationCODE
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinstall.sh5# Usage:COMMENT
LOWdocker-compose.build.yml2# Usage:COMMENT
LOWdocker-compose.yml2# Usage:COMMENT