Repository Analysis

enarjord/passivbot

Trading bot running on Bybit, Bitget, OKX, GateIO, Binance, Kucoin, WEEX and Hyperliquid

17.5 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of enarjord/passivbot, a Python project with 2,050 GitHub stars. SynthScan v2.0 examined 468,242 lines of code across 615 source files, recording 9456 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 17.5 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).

17.5
Adjusted Score
17.5
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.0K
Stars
Python
Language
468.2K
Lines of Code
615
Files
9.5K
Pattern Hits
2026-08-09
Scan Date
0.04
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 22MEDIUM 362LOW 9072

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 9456 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.

Hyper-Verbose Identifiers7118 hits · 5458 pts
SeverityFileLineSnippetContext
LOWsync_tar.py51def _resolve_pull_destination(destination: str, remote_base: str) -> Path:CODE
LOWtests/test_auto_unstuck_allowance.py6def test_allowance_zero_when_no_drop_and_zero_pct():CODE
LOWtests/test_auto_unstuck_allowance.py16def test_allowance_matches_configured_pct_at_peak():CODE
LOWtests/test_auto_unstuck_allowance.py26def test_allowance_increases_after_drawdown():CODE
LOWtests/test_auto_unstuck_allowance.py46def test_allowance_clamped_to_zero_for_large_drop():CODE
LOWtests/test_coin_overrides_foundation.py147def test_unstuck_ema_distance_validation_applies_to_effective_config():CODE
LOWtests/test_coin_overrides_foundation.py155def test_effective_validation_normalization_is_retained_in_patch():CODE
LOWtests/test_coin_overrides_foundation.py161def test_runtime_compilation_must_follow_override_parsing():CODE
LOWtests/test_coin_overrides_foundation.py267def test_non_positive_leverage_override_fails(value):CODE
LOWtests/test_coin_overrides_foundation.py272def test_normalized_coin_collision_fails():CODE
LOWtests/test_coin_overrides_foundation.py280def test_invalid_normalized_coin_fails():CODE
LOWtests/test_coin_overrides_foundation.py285def test_wallet_exposure_limit_from_partial_file_is_retained_and_validated():CODE
LOWtests/test_coin_overrides_foundation.py30def test_explicit_inline_values_equal_to_global_are_retained():CODE
LOWtests/test_coin_overrides_foundation.py61def test_partial_file_extracts_only_explicit_values_and_inline_wins():CODE
LOWtests/test_coin_overrides_foundation.py101def test_invalid_boolean_override_types_fail(value, error, message):CODE
LOWtests/test_coin_overrides_foundation.py107def test_non_finite_override_values_fail(value):CODE
LOWtests/test_coin_overrides_foundation.py126def test_effective_config_cross_field_validation_fails_with_coin_context():CODE
LOWtests/test_coin_overrides_foundation.py190def test_runtime_compilation_after_parsing_preserves_normalized_patch():CODE
LOWtests/test_coin_overrides_foundation.py201def test_unknown_and_disallowed_inline_paths_fail():CODE
LOWtests/test_coin_overrides_foundation.py212def test_strategy_kind_mismatch_fails_in_inline_patch():CODE
LOWtests/test_coin_overrides_foundation.py229def test_inactive_strategy_subtrees_in_full_override_file_are_ignored():CODE
LOWtests/test_coin_overrides_foundation.py244def test_override_file_strategy_kind_mismatch_fails():CODE
LOWtests/test_coin_overrides_foundation.py304def test_parse_overrides_is_idempotent():CODE
LOWtests/test_coin_overrides_foundation.py317def test_programmatic_override_added_after_prepare_is_retained():CODE
LOWtests/test_coin_overrides_foundation.py337def test_canonical_grouped_patch_has_live_and_backtest_consumer_parity():CODE
LOWtests/test_coin_overrides_foundation.py364def test_complete_current_active_strategy_and_shared_allowlist_is_accepted(pside):CODE
LOWtests/test_missing_ema_fix.py32async def test_get_latest_ema_close_with_leading_gaps(tmp_path, monkeypatch):CODE
LOWtests/test_missing_ema_fix.py74async def test_missing_ema_raises_from_snapshot(monkeypatch):CODE
LOWtests/test_missing_ema_fix.py55async def test_get_latest_ema_close_no_candles_returns_nan(tmp_path, monkeypatch):CODE
LOWtests/test_missing_ema_fix.py106 def get_hysteresis_snapped_balance(self):CODE
LOWtests/test_missing_ema_fix.py131async def test_missing_ema_raises_from_snapshot_with_return(monkeypatch):CODE
LOWtests/test_missing_ema_fix.py163 def get_hysteresis_snapped_balance(self):CODE
LOWtests/test_missing_ema_fix.py188async def test_snapshot_orchestrator_rejects_unknown_rust_symbol_before_conversion(CODE
LOWtests/test_missing_ema_fix.py221 def get_hysteresis_snapped_balance(self):CODE
LOWtests/test_missing_ema_fix.py267async def test_snapshot_orchestrator_rejects_malformed_output_envelope(CODE
LOWtests/test_missing_ema_fix.py300 def get_hysteresis_snapped_balance(self):CODE
LOWtests/test_missing_ema_fix.py443def _make_orchestrator_payload(symbol, m1_close_pairs, m1_volume_pairs, m1_lr_pairs):CODE
LOWtests/test_missing_ema_fix.py602 async def get_latest_ema_quote_volume(CODE
LOWtests/test_missing_ema_fix.py649 def get_completed_candle_health(self, symbol, windows=None, now_ms=None):CODE
LOWtests/test_missing_ema_fix.py685 async def get_projected_open_tail_ema_metrics(CODE
LOWtests/test_missing_ema_fix.py731 async def get_latest_cached_ema_metrics(CODE
LOWtests/test_missing_ema_fix.py767 def _pb_mode_to_orchestrator_mode(self, mode: str) -> str:CODE
LOWtests/test_missing_ema_fix.py784 def _strategy_params_to_rust_dict(self, pside, symbol=None):CODE
LOWtests/test_missing_ema_fix.py820async def test_held_symbol_missing_ema_is_explicitly_scoped_for_rust(close_mode):CODE
LOWtests/test_missing_ema_fix.py862async def test_nan_close_ema_scopes_only_the_affected_symbol():CODE
LOWtests/test_missing_ema_fix.py903async def test_held_symbol_infinite_close_ema_remains_fatal():CODE
LOWtests/test_missing_ema_fix.py919async def test_flat_forager_universe_symbol_missing_close_ema_marks_unavailable():CODE
LOWtests/test_missing_ema_fix.py955async def test_forager_eligible_flat_normal_missing_close_ema_marks_unavailable():CODE
LOWtests/test_missing_ema_fix.py1003async def test_mixed_forager_fixed_normal_side_missing_ema_is_scoped_in_rust():CODE
LOWtests/test_missing_ema_fix.py1043async def test_forager_selected_flat_with_resting_entry_missing_ema_marks_unavailable():CODE
LOWtests/test_missing_ema_fix.py1165async def test_disabled_opposite_side_does_not_block_flat_forager_degradation():CODE
LOWtests/test_missing_ema_fix.py1234async def test_forager_resting_entry_under_bot_managed_override_can_degrade_and_cancel(CODE
LOWtests/test_missing_ema_fix.py1287async def test_forager_ranking_ema_degradation_authorizes_resting_entry_cancel():CODE
LOWtests/test_missing_ema_fix.py1338async def test_forager_ranking_degradation_authorizes_only_affected_side():CODE
LOWtests/test_missing_ema_fix.py1437async def test_orchestrator_ema_bundle_clears_stale_rank_feature_failures():CODE
LOWtests/test_missing_ema_fix.py1492async def test_kucoin_avax_close_ema_fallback_uses_previous_ema_not_price(CODE
LOWtests/test_missing_ema_fix.py1543async def test_close_ema_fallback_event_console_owns_normal_warning(caplog, monkeypatch):CODE
LOWtests/test_missing_ema_fix.py1583async def test_close_ema_fallback_event_failure_keeps_legacy_warning(caplog, monkeypatch):CODE
LOWtests/test_missing_ema_fix.py1627async def test_close_ema_fallback_legacy_summary_omits_raw_exception_text(caplog):CODE
LOWtests/test_missing_ema_fix.py1659async def test_candidate_ema_unavailable_logs_single_warning_summary(caplog):CODE
7058 more matches not shown…
Decorative Section Separators245 hits · 862 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_missing_ema_fix.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_missing_ema_fix.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_missing_ema_fix.py68# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_missing_ema_fix.py70# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py677# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py679# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py192# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py194# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py1064# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py1066# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_hlcv_preparation.py263# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py265# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py375# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py377# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py783# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py785# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py879# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py881# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py933# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py935# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1025# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1027# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1518# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1520# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py51# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py53# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py995# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py997# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py3088# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py3090# ============================================================================COMMENT
MEDIUMtests/test_fill_events_manager.py255# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py257# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py1152# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py1154# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py1757# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py1759# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py2440# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py2442# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py8142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py8144# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py4213# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py4215# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6419# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6421# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6903# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6905# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py7629# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py7631# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_orchestrator_integration.py331# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py333# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py567# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py569# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py670# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py672# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py777# ============================================================================COMMENT
MEDIUMtests/test_orchestrator_integration.py779# ============================================================================COMMENT
185 more matches not shown…
Excessive Try-Catch Wrapping1013 hits · 785 pts
SeverityFileLineSnippetContext
LOWtest_tradfi_providers.py64 except Exception as e:CODE
LOWtest_tradfi_providers.py129 except Exception as e:CODE
LOWtest_tradfi_providers.py155 except Exception as e:CODE
LOWsync_tar.py291 except Exception as exc: # pragma: no coverCODE
MEDIUMsync_tar.py292 print(f"Error: {exc}", file=sys.stderr)CODE
LOWrun_with_logging.py144 except Exception as e:CODE
MEDIUMrun_with_logging.py145 print(f"Error running wrapper: {e}", file=sys.stderr)CODE
LOWtests/test_wel_auto_reducer.py5except Exception: # pragma: no cover - exercised when rust extension is missingCODE
LOWtests/conftest.py22 except Exception:CODE
LOWtests/conftest.py36 except Exception:CODE
LOWtests/test_live_candlestick_manager.py66 except Exception:CODE
LOWtests/test_live_candlestick_manager.py73 except Exception:CODE
LOWtests/test_live_candlestick_manager.py83 except Exception as e:CODE
LOWtests/test_live_candlestick_manager.py126 except Exception:CODE
LOWtests/test_live_candlestick_manager.py136 except Exception as e:CODE
LOWtests/test_live_candlestick_manager.py171 except Exception:CODE
LOWtests/test_live_candlestick_manager.py180 except Exception as e:CODE
LOWtests/test_live_candlestick_manager.py213 except Exception:CODE
LOWtests/test_live_candlestick_manager.py232 except Exception as e:CODE
LOWtests/test_live_candlestick_manager.py290 except Exception:CODE
MEDIUMtests/test_live_candlestick_manager.py80def test_historical_range_per_exchange(tmp_path, ex_id):CODE
MEDIUMtests/test_live_candlestick_manager.py133def test_historical_range_timeframes(tmp_path, ex_id, tf):CODE
MEDIUMtests/test_live_candlestick_manager.py177def test_present_range_includes_current_minute_per_exchange(tmp_path, ex_id):CODE
MEDIUMtests/test_live_candlestick_manager.py229def test_latest_ema_metrics_per_exchange(tmp_path, ex_id, span, tf):CODE
LOWtests/test_candle_interval.py10except Exception: # pragma: no cover - exercised when the extension is unavailableCODE
LOWtests/test_equity_hard_stop_rolling_peak.py5except Exception: # pragma: no coverCODE
LOWtests/test_twel_enforcer.py5except Exception: # pragma: no cover - executed when the extension is unavailableCODE
MEDIUMtests/test_monitor_publisher.py298def write_events(worker_no):CODE
LOWtests/test_monitor_publisher.py310 except Exception as exc:CODE
LOWtests/test_entries_sizing.py5except Exception: # pragma: no cover - exercised when the extension is unavailableCODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py31 except Exception as e:CODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py42 except Exception:CODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py61 except Exception:CODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py88 except Exception:CODE
MEDIUMtests/test_ccxt_fetch_ohlcv_current_minute.py28def test_fetch_ohlcv_includes_current_minute(exid):CODE
LOWtests/test_unstucking.py7except Exception: # pragma: no cover - exercised when rust extension missingCODE
LOWtests/test_utils_maps.py377 except Exception as e:CODE
MEDIUMtests/test_utils_maps.py364def write_maps(thread_id):CODE
LOWtests/test_gate_entries_by_twel_complex.py8except Exception: # pragma: no cover - exercised when the extension is unavailableCODE
LOWcontainer/render_config.py38 except Exception:CODE
LOWcontainer/render_config.py42 except Exception as exc:CODE
LOWsrc/suite_runner.py1376 except Exception as exc: # pragma: no cover - defensive loggingCODE
LOWsrc/suite_runner.py1455 except Exception as exc:CODE
LOWsrc/fill_events_manager.py346 except Exception:CODE
LOWsrc/fill_events_manager.py356 except Exception:CODE
LOWsrc/fill_events_manager.py706 except Exception:CODE
LOWsrc/fill_events_manager.py711 except Exception:CODE
LOWsrc/fill_events_manager.py1885 except Exception:CODE
LOWsrc/fill_events_manager.py3614 except Exception as exc:CODE
LOWsrc/fill_events_manager.py4350 except Exception:CODE
LOWsrc/fill_events_manager.py4355 except Exception:CODE
LOWsrc/fill_events_manager.py187 except Exception as exc:CODE
LOWsrc/fill_events_manager.py215 except Exception as exc:CODE
LOWsrc/fill_events_manager.py319 except Exception:CODE
LOWsrc/fill_events_manager.py324 except Exception:CODE
LOWsrc/fill_events_manager.py382 except Exception:CODE
LOWsrc/fill_events_manager.py423 except Exception:CODE
LOWsrc/fill_events_manager.py431 except Exception:CODE
LOWsrc/fill_events_manager.py450 except Exception:CODE
LOWsrc/fill_events_manager.py645 except Exception:CODE
953 more matches not shown…
Unused Imports388 hits · 320 pts
SeverityFileLineSnippetContext
LOWtest_tradfi_providers.py34CODE
LOWsync_tar.py12CODE
LOWrun_with_logging.py13CODE
LOWtests/test_missing_ema_fix.py11CODE
LOWtests/test_candlestick_manager_locking.py1CODE
LOWtests/test_pareto_explorer.py1CODE
LOWtests/test_binance_ohlcv_v2_archive.py14CODE
LOWtests/test_run_fake_live.py1CODE
LOWtests/test_hsl_replay_benchmark.py1CODE
LOWtests/test_sync_tar.py1CODE
LOWtests/test_realized_loss_gate.py9CODE
LOWtests/test_candlestick_manager.py10CODE
LOWtests/test_candlestick_manager.py3567CODE
LOWtests/test_fake_exchange.py1CODE
LOWtests/test_hlcv_preparation.py17CODE
LOWtests/test_hlcv_preparation.py19CODE
LOWtests/test_hlcv_preparation.py21CODE
LOWtests/test_hlcv_preparation.py22CODE
LOWtests/test_hlcv_preparation.py22CODE
LOWtests/test_pareto_compress.py1CODE
LOWtests/test_live_config_preflight.py1CODE
LOWtests/test_ohlcvs_doctor.py1CODE
LOWtests/test_live_restart_smoke_collection.py1CODE
LOWtests/test_merge_paretos_tool.py1CODE
LOWtests/test_balance_composition.py1CODE
LOWtests/test_live_performance_report.py1CODE
LOWtests/test_stock_perps.py12CODE
LOWtests/test_container_runtime_contract.py1CODE
LOWtests/test_ema_anchor_analysis.py2CODE
LOWtests/test_binance_ohlcv_archive.py8CODE
LOWtests/test_suite_config_sources.py1CODE
LOWtests/test_live_repository_prepare.py1CODE
LOWtests/test_rust_utils.py2CODE
LOWtests/test_rust_utils.py11CODE
LOWtests/test_live_process_report.py1CODE
LOWtests/test_coin_overrides_paths.py4CODE
LOWtests/test_live_incident_bundle.py1CODE
LOWtests/test_repro_harness.py1CODE
LOWtests/test_live_smoke_report.py1CODE
LOWtests/test_live_restart_smoke_orchestrator.py1CODE
LOWtests/test_live_restart_smoke_plan.py1CODE
LOWtests/test_live_restart_executor.py1CODE
LOWtests/test_inspect_ohlcvs_tool.py1CODE
LOWtests/test_candlestick_manager_edge_cases.py13CODE
LOWtests/test_candlestick_manager_edge_cases.py24CODE
LOWtests/test_candlestick_manager_edge_cases.py24CODE
LOWtests/test_order_churn_cancel_first.py1CODE
LOWtests/test_procedures_first_timestamps.py2CODE
LOWtests/test_procedures_first_timestamps.py3CODE
LOWtests/test_aggregate_methods.py14CODE
LOWtests/test_live_restart_smoke_evidence.py1CODE
LOWtests/test_log_secret_inventory.py1CODE
LOWtests/test_order_churn_gate.py1CODE
LOWtests/test_pareto_analyzer.py1CODE
LOWtests/test_order_reconciliation_contract.py1CODE
LOWtests/test_ohlcvs_downloader.py1CODE
LOWtests/test_ohlcvs_downloader.py2CODE
LOWtests/test_ohlcvs_downloader.py3CODE
LOWtests/test_order_churn_executor.py1CODE
LOWtests/test_live_restart_target_report.py1CODE
328 more matches not shown…
Deep Nesting417 hits · 270 pts
SeverityFileLineSnippetContext
LOWsync_tar.py96CODE
LOWrun_with_logging.py44CODE
LOWtests/conftest.py13CODE
LOWtests/conftest.py254CODE
LOWtests/test_fill_events_manager.py8805CODE
LOWtests/test_orchestrator_integration.py77CODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py28CODE
LOWtests/test_gate_entries_by_twel_complex.py209CODE
LOWtests/test_orchestrator_json_api.py99CODE
LOWtests/test_orchestrator_json_api.py343CODE
LOWtests/optimization/test_config_adapter.py25CODE
LOWpytests/test_gate_entries_by_twel_complex.py185CODE
LOWsrc/suite_runner.py404CODE
LOWsrc/suite_runner.py719CODE
LOWsrc/suite_runner.py1658CODE
LOWsrc/suite_runner.py1724CODE
LOWsrc/fill_events_manager.py468CODE
LOWsrc/fill_events_manager.py618CODE
LOWsrc/fill_events_manager.py671CODE
LOWsrc/fill_events_manager.py745CODE
LOWsrc/fill_events_manager.py837CODE
LOWsrc/fill_events_manager.py919CODE
LOWsrc/fill_events_manager.py1086CODE
LOWsrc/fill_events_manager.py1440CODE
LOWsrc/fill_events_manager.py1514CODE
LOWsrc/fill_events_manager.py1632CODE
LOWsrc/fill_events_manager.py8326CODE
LOWsrc/fill_events_manager.py2112CODE
LOWsrc/fill_events_manager.py2617CODE
LOWsrc/fill_events_manager.py2858CODE
LOWsrc/fill_events_manager.py3052CODE
LOWsrc/fill_events_manager.py3414CODE
LOWsrc/fill_events_manager.py3759CODE
LOWsrc/fill_events_manager.py3919CODE
LOWsrc/fill_events_manager.py4037CODE
LOWsrc/fill_events_manager.py4778CODE
LOWsrc/fill_events_manager.py4905CODE
LOWsrc/fill_events_manager.py5200CODE
LOWsrc/fill_events_manager.py6111CODE
LOWsrc/fill_events_manager.py6150CODE
LOWsrc/fill_events_manager.py6661CODE
LOWsrc/fill_events_manager.py7680CODE
LOWsrc/fill_events_manager.py7963CODE
LOWsrc/fill_events_manager.py4944CODE
LOWsrc/fill_events_manager.py8330CODE
LOWsrc/passivbot.py22193CODE
LOWsrc/passivbot.py22270CODE
LOWsrc/passivbot.py1217CODE
LOWsrc/passivbot.py1244CODE
LOWsrc/passivbot.py2410CODE
LOWsrc/passivbot.py2453CODE
LOWsrc/passivbot.py2685CODE
LOWsrc/passivbot.py2789CODE
LOWsrc/passivbot.py3628CODE
LOWsrc/passivbot.py3699CODE
LOWsrc/passivbot.py3883CODE
LOWsrc/passivbot.py4004CODE
LOWsrc/passivbot.py4341CODE
LOWsrc/passivbot.py4642CODE
LOWsrc/passivbot.py4739CODE
357 more matches not shown…
Modern AI Meta-Vocabulary36 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMdocs/plans/live_overengineering_audit_followup_plan.md211### 7. `Passivbot` facade and orchestration ownershipCOMMENT
MEDIUMdocs/plans/live_ops_improvement_backlog.md1266| 2026-06-30 | #1/#3 Incident bundle generator and live restart/smoke automation | PR #914 / `9ff335e4` | Moved incidentCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1267| 2026-06-30 | #1/#3 Incident bundle generator and live restart/smoke automation | PR #913 / `d3f3264c` | Added opt-in `CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1268| 2026-06-30 | #1/#3 Incident bundle generator and live restart/smoke automation | PR #912 / `0eb29545` | Added `--recenCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1269| 2026-06-30 | #1/#3 Incident bundle generator and live restart/smoke automation | PR #911 / `7c5c96f4` | Projected bounCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1270| 2026-06-30 | #3/#4 Live restart/smoke automation and performance readiness | PR #910 / `ac949f03` | Projected bounded CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1271| 2026-06-30 | #3 Live restart/smoke automation | PR #909 / `c8c51d73` | Projected bounded event-file discovery metadataCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1275| 2026-06-30 | #0/#3/#10 HSL status smoke evidence | PR #903 / `1dd115cc` | Added `risk_events.hsl_status` to `live-smokCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1279| 2026-06-30 | #0/#3/#18 Progress and evidence tracking | PR #897 / `aebc3667` | Recorded exchange-config-refresh smoke CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1287| 2026-06-25 | #1/#3/#14 Smoke process status | PR #661 / `72b3d931` | Added optional read-only process liveness to `livCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1289| 2026-06-26 | #3 Live restart/smoke automation | PR #665 / `37c29359` | Added structured-event time windows to `live-smCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1293| 2026-06-26 | #3 Live restart/smoke automation | PR #670 / `b74d12be` | Extended `live-smoke-report` time windows to paCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1294| 2026-06-26 | #3 Live restart/smoke automation | PR #671 / `34f63799` | Narrowed traceback log matching to real Python CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1295| 2026-06-26 | #3/#8 Live restart/smoke automation and HSL preview | PR #673 / `2697ff48` | Added bounded `risk_events` CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1296| 2026-06-26 | #3 Live restart/smoke automation | PR #675 / `3aa1e7a7` | Added explicit `keep|drop` policy for unparseabCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1298| 2026-06-26 | #3 Live restart/smoke automation | PR #679 / `60c9a41` | Added bounded `problem_events.latest_data` for sCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1299| 2026-06-26 | #3 Live restart/smoke automation | PR #682 / `048e8595c` | Added top-level `problem_event_count` and bounCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1300| 2026-06-26 | #3 Live restart/smoke automation | PR #684 / `04ca7174` | Dropped contextless unparseable log lines underCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1301| 2026-06-26 | #3/#6 Live restart/smoke automation and exchange probes | PR #686 / `b03f4139` | Added branch/head/trackeCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1302| 2026-06-26 | #3/#6 Live restart/smoke automation and exchange probes | PR #688 / `9945a3d3` | Added `remote_call_timinCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1303| 2026-06-26 | #3/#6 Live restart/smoke automation and exchange probes | PR #690 / `dc99378a` | Added `remote_call_healtCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1304| 2026-06-26 | #3/#6 Live restart/smoke automation and exchange probes | PR #692 / `ac4afe3f` | Added top-level `remote_CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1305| 2026-06-26 | #3/#6 Live restart/smoke automation and exchange probes | PR #694 / `bebbb3f6` | Added `account_critical_CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1306| 2026-06-26 | #3 Live restart/smoke automation | PR #696 / `f1efbe45` | Added `live-smoke-report --summary`, a concise CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1307| 2026-06-26 | #3 Live restart/smoke automation | PR #698 / `7c7368f3` | Redacted common user/home prefixes from smoke-rCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1308| 2026-06-26 | #3 Live restart/smoke automation | PR #699 / `4e2fcee7` | Surfaced dropped contextless unparsed attentionCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1309| 2026-06-26 | #3 Live restart/smoke automation | PR #709 / `71479c61` deploy evidence | VPS5 restart smoke after the fiCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1310| 2026-06-26 | #3/#14 Supervisor/process diagnostics | PR #712 / `51ba92a3` | Extended `live-smoke-report --supervisor-cCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1316| 2026-06-26 | #3 Live restart/smoke automation | PR #715 / `7b12d4b2` | Added passive `shutdown_events` summaries to fuCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1331| 2026-06-27 | #3 Live restart/smoke automation | PR #755 / `5d9f3a5f` | Added `live-smoke-report` EMA readiness health CODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1340| 2026-06-25 | #3 Live restart/smoke automation | PR #639 / `86afd3b3` | Added read-only `passivbot tool live-smoke-repoCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1349| 2026-06-30 | #3/#4 Live restart/smoke automation and startup budget tracking | PR #886 / `60c79c3a` | Exposed existingCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1350| 2026-06-30 | #3 Live restart/smoke automation | PR #888 / `4b435d33` | Exposed bounded text-log window counters in `liCODE
MEDIUMdocs/plans/live_ops_improvement_backlog.md1351| 2026-06-30 | #3 Live restart/smoke automation | PR #890 / `1498abc9` | Exposed `event_window.enabled` in `live-smoke-rCODE
MEDIUMsrc/fill_events_manager.py2417 # exhausted; orchestration owns indefinitely backed-off retries.COMMENT
MEDIUMsrc/fill_events_manager.py1910 retry_count: int # Diagnostic count; orchestration owns retry timingCODE
Cross-Language Confusion13 hits · 72 pts
SeverityFileLineSnippetContext
HIGHtests/test_pareto_dash.py188 "stress__adg_usd<=0.05 || stress__adg_usd>=0.1"CODE
HIGHtests/test_broker_codes.py16 path.write_text('{ bybit: "custom-bybit", hyperliquid: null }')CODE
HIGHtests/test_analysis_visibility.py89 with pytest.raises(ValueError, match="backtest.visible_metrics must be null, \\[\\], or"):CODE
HIGHtests/test_config_pipeline.py1925 ValueError, match="backtest.visible_metrics must be null, \\[\\], or"CODE
HIGHtests/test_live_restart_executor.py677 "- cd /one && passivbot live bot.json -u binance_01\n",CODE
HIGHtests/test_live_restart_executor.py682 "- cd /two && passivbot live bot.json -u binance_01\n",CODE
HIGHsrc/analysis_visibility.py109 "backtest.visible_metrics must be null, [], or a list/tuple/set of metric names"CODE
HIGHsrc/config/scoring.py192 raise ValueError(f"{path} must be a scenario label string or null, got {value!r}")CODE
HIGHsrc/config/scoring.py313 "{metric: ..., goal: min|max, scenario: label|null, aggregate: mean|min|max|std|median}"CODE
HIGHsrc/config/strategy_spec.py18 "`cd passivbot-rust && maturin develop --release && cd ..`, then retry."CODE
HIGHsrc/optimization/config_adapter.py168 - [low, high, 0] or [low, high, null]: treated as continuousSTRING
HIGHsrc/optimization/bounds.py192 - [low, high, 0] or [low, high, null]: continuousSTRING
HIGHsrc/optimization/bounds.py228 "Bound %s step is null; treating as continuous and using sig_digits.", keyCODE
AI Slop Vocabulary28 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_kucoin_exchange_config.py313 # leverage is clamped by max_leverageCOMMENT
MEDIUMtests/test_stock_perps.py1108 # Cross margin symbol should use full leverageCOMMENT
MEDIUMtests/test_stock_perps.py1067 # Mock markets with different max leverage valuesCOMMENT
MEDIUMtests/test_stock_perps.py1049 """Tests for isolated margin leverage capping."""STRING
MEDIUMtests/test_stock_perps.py1052 """Test that isolated margin symbols have leverage capped appropriately."""STRING
MEDIUMtests/test_stock_perps.py1310 """Tests for automatic isolated margin leverage calculation."""STRING
MEDIUMtests/test_stock_perps.py1313 """Test minimum leverage calculation based on TWEL."""STRING
MEDIUMtests/test_stock_perps.py146 """Test HIP-3 max leverage constant is 10."""STRING
MEDIUMtests/test_stock_perps.py1326 """Test that the leverage formula ensures margin can always be covered."""STRING
MEDIUMtests/exchanges/test_ccxt_bot.py400 """Test that leverage is set for each symbol when supported."""STRING
MEDIUMtests/exchanges/test_ccxt_bot.py450 """Test that leverage errors are logged and re-raised."""STRING
MEDIUMtests/exchanges/test_weex.py89 "https://api-contract.weex.com/capi/v3/account/leverage",CODE
MEDIUMtests/exchanges/test_weex.py104 "https://api-contract.weex.com/capi/v3/account/leverage",CODE
MEDIUMtests/exchanges/test_bitunix.py1343 # A margin-mode change may reset venue leverage, so set it again evenCOMMENT
MEDIUMtests/exchanges/test_bitunix.py1344 # when the pre-mutation leverage happened to match.COMMENT
MEDIUMsrc/candlestick_manager.py9275 # The deterministic fake-live harness intentionally permits sparseCOMMENT
MEDIUMsrc/pareto_store.py913 # Create a streamlined figure with just two key plotsCOMMENT
LOWsrc/procedures.py397 # 1) If no exchange is specified and all coins have valid cached timestamps, just return ftssCOMMENT
MEDIUMsrc/hlcv_preparation.py5632 """Estimate exchange quote-volume ratios from robust complete-day overlap.STRING
MEDIUMsrc/exchanges/hyperliquid.py34 # HIP-3 stock perps have a max leverage of 10xCOMMENT
MEDIUMsrc/exchanges/hyperliquid.py212 # For isolated-only markets (HIP-3), cap at 10x leverageCOMMENT
MEDIUMsrc/exchanges/hyperliquid.py1846 """Set leverage and margin mode for Hyperliquid symbols.STRING
MEDIUMsrc/exchanges/ccxt_bot.py968 """Calculate minimum leverage required for isolated margin positions.STRING
MEDIUMsrc/exchanges/ccxt_bot.py990 """Calculate the appropriate leverage for a symbol.STRING
MEDIUMsrc/exchanges/ccxt_bot.py1100 """Set leverage and margin mode for each symbol.STRING
MEDIUMsrc/exchanges/weex.py164 """WEEX leverage setup is an entry prerequisite, not a close prerequisite."""STRING
MEDIUMsrc/exchanges/gateio.py262 """Apply the configured leverage and margin mode through Gate's leverage endpoint."""STRING
MEDIUMsrc/exchanges/gateio.py290 """Gate leverage is an entry prerequisite, not a close prerequisite."""STRING
Modern Structural Boilerplate50 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/test_realized_loss_gate.py133def _set_pnl_lookback(bot, *, lookback_days: float | str, now_ms: int) -> None:CODE
LOWtests/test_passivbot_balance_split.py3969def _set_pnl_lookback(bot, *, lookback_days: float, now_ms: int) -> None:CODE
LOWcontainer/render_config.py67def set_nested(config: dict[str, Any], path: list[str], value: Any) -> None:CODE
LOWsrc/fill_events_manager.py55logger = logging.getLogger(__name__)CODE
LOWsrc/fill_events_manager.py2276 def set_history_scope(self, scope: str) -> None:CODE
LOWsrc/fill_events_manager.py5841 def set_history_scope(self, scope: str) -> None:CODE
LOWsrc/passivbot.py9311 async def update_trailing_data(self) -> None:CODE
LOWsrc/optimize.py679def _set_candidate_metrics(individual, metrics_payload) -> None:CODE
LOWsrc/optimize.py2392def _set_optimize_bound(config: dict, bound_key: str, value) -> None:CODE
LOWsrc/market_snapshot.py11__all__ = [CODE
LOWsrc/warmup_utils.py243__all__ = [CODE
LOWsrc/candlestick_manager.py1163 def set_stop_requested_callback(self, callback: Optional[Callable[[], bool]]) -> None:CODE
LOWsrc/candlestick_manager.py1192 def _setup_logging(self) -> None:CODE
LOWsrc/candlestick_manager.py4818 def _set_inception_ts(self, symbol: str, ts: int, *, save: bool = True) -> None:CODE
LOWsrc/candlestick_manager.py5079 async def _set_global_rate_limit(self, backoff_seconds: float = 5.0) -> None:CODE
LOWsrc/candlestick_manager.py8974 def set_current_close(self, symbol: str, price: float, timestamp_ms: int) -> None:CODE
LOWsrc/candlestick_manager.py10574__all__ = [CODE
LOWsrc/monitor_tui.py362 def set_log_file(self, path: Optional[str]) -> None:CODE
LOWsrc/strategy_warmup.py239__all__ = [CODE
LOWsrc/freshness_ledger.py10__all__ = [CODE
LOWsrc/planning_snapshot.py10__all__ = [CODE
LOWsrc/binance_ohlcv_archive.py373__all__ = [CODE
LOWsrc/tradfi_data.py52logger = logging.getLogger(__name__)CODE
LOWsrc/pure_funcs.py10__all__ = [CODE
LOWsrc/data_packets.py12__all__ = [CODE
LOWsrc/custom_endpoint_overrides.py55logger = logging.getLogger(__name__)CODE
LOWsrc/custom_endpoint_overrides.py484__all__ = [CODE
LOWsrc/config_transform.py3__all__ = ["ConfigTransformTracker", "record_transform"]CODE
LOWsrc/ohlcv_utils.py312__all__ = [CODE
LOWsrc/logging_setup.py160def update_stable_log_alias(alias_path: str | Path, target_path: str | Path) -> None:CODE
LOWsrc/hlcv_preparation.py5904__all__ = [CODE
LOWsrc/tools/ohlcvs_doctor.py326def _set_symbol_bounds_exact(catalog: OhlcvCatalog, bounds: dict[tuple[str, str, str], tuple[int, int]]) -> None:CODE
LOWsrc/tools/merge_paretos.py345def _set_nested_bound(target: dict[str, Any], path: tuple[str, ...], value: list[int | float]) -> None:CODE
LOWsrc/tools/iterative_backtester.py837 def _update_best_run(self, run: RunSummary) -> None:CODE
LOWsrc/tools/iterative_backtester.py846 def _update_pareto_front(self) -> None:CODE
LOWsrc/exchanges/fake.py14logger = logging.getLogger(__name__)CODE
LOWsrc/exchanges/bitunix.py1619 async def update_exchange_config(self) -> None:CODE
LOWsrc/exchanges/bitunix.py1630 async def update_exchange_config_by_symbols(self, symbols: Iterable[str]) -> None:CODE
LOWsrc/exchanges/bitunix.py1666 def set_market_specific_settings(self) -> None:CODE
LOWsrc/config/optimize_bounds.py162def set_flat_optimize_bound(bounds: dict, strategy_kind: str, flat_key: str, value) -> None:CODE
LOWsrc/config/__init__.py15__all__ = [CODE
LOWsrc/config/strategy.py94def _set_path(mapping: dict, key: str, value) -> None:CODE
LOWsrc/config/strategy_spec.py22def _set_path(mapping: dict, path: tuple[str, ...], value: Any) -> None:CODE
LOWsrc/optimization/warmup.py51def _set_path(config: dict, path: Sequence[str], value) -> None:CODE
LOWsrc/optimization/warmup.py320__all__ = [CODE
LOWsrc/optimization/backends/deap_backend.py67def _set_deap_worker_globals(evaluator, overrides_list: Sequence[Any] | None) -> None:CODE
LOWsrc/live/state_refresh.py481 def update_stats(stats: dict[str, int], value: int) -> None:CODE
LOWsrc/live/performance_report.py1568 def _update_debug_profiles(state: dict[str, Any], data: dict[str, Any]) -> None:CODE
LOWsrc/live/performance_report.py2167 def _set_elapsed(item: dict[str, Any], *, started_ts: int | None) -> None:CODE
LOWsrc/live/event_emitters.py44def set_live_event_context_ids(bot: Any, **kwargs: str | None) -> None:CODE
Self-Referential Comments11 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_candlestick_manager.py1786 # Create a real shard for day0 with minimal dataCOMMENT
MEDIUMtests/test_rust_utils.py284 # Create a root-level .rs fileCOMMENT
MEDIUMtests/test_rust_utils.py288 # Create a subdirectory .rs fileCOMMENT
MEDIUMtests/test_utils_maps.py412 # Create a stale lock file (older than threshold)COMMENT
MEDIUMtests/test_utils_maps.py420 # Create a fresh lock file (should NOT be removed)COMMENT
MEDIUMtests/test_candlestick_manager_edge_cases.py315 # Create a valid shard firstCOMMENT
MEDIUMtests/test_candlestick_manager_legacy_cache.py159 # Create a partial legacy shard: continuous minutes, but only 2 candles (not a full day).COMMENT
MEDIUMtests/optimization/test_optimize.py3382 # Create a concrete fitness class from ConstraintAwareFitnessCOMMENT
MEDIUMsrc/passivbot.py12322 # Create the FillEventsManager with its own cache pathCOMMENT
MEDIUMsrc/plotting.py1457 # Create the plotCOMMENT
MEDIUMsrc/pareto_store.py913 # Create a streamlined figure with just two key plotsCOMMENT
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHsrc/suite_runner.py214Filter scenarios to only include those matching the given labels. Args: scenarios: List of scenario dicts (STRING
HIGHsrc/procedures.py109 Creates directory and subdirectories for a given filepath if they don't exist, then returns the path as a Path STRING
HIGHsrc/exchanges/ccxt_bot.py638Fetch open orders, optionally filtered by symbol. Args: symbol: Optional symbol to filter orders. STRING
HIGHsrc/exchanges/ccxt_bot.py931Check if a symbol requires isolated margin mode. Override in subclasses to detect exchange-specific isolated-onSTRING
HIGHsrc/exchanges/ccxt_bot.py1233Fetch OHLCV candlestick data. Args: symbol: Trading pair symbol. timeframe: Candle timeSTRING
HIGHsrc/exchanges/ccxt_bot.py1255Fetch 1-minute OHLCV data with pagination support. Args: symbol: Trading pair symbol. sSTRING
HIGHsrc/exchanges/ccxt_bot.py1303Template method: Fetch trade history for PnL tracking. Uses hooks: - _do_fetch_pnls(): Call exchange APSTRING
HIGHsrc/optimization/bounds.py185 Extract and validate a Bound from config value. Supported formats: - Single value: fixed paramSTRING
Structural Annotation Overuse20 hits · 36 pts
SeverityFileLineSnippetContext
LOWREADME.md69### Step 1: Clone the RepositoryCOMMENT
LOWREADME.md79### Step 2: Install RustCOMMENT
LOWREADME.md86### Step 3: Create and Activate a Virtual EnvironmentCOMMENT
LOWREADME.md120### Step 4: Install PassivbotCOMMENT
LOWREADME.md148### Step 6: Add API keysCOMMENT
LOWREADME.md158### Step 7: Run PassivbotCOMMENT
LOWpassivbot-rust/src/backtest.rs10157 // Step 1: initial balanceCOMMENT
LOWpassivbot-rust/src/backtest.rs10177 // Step 2: simulate a fill that changes raw balance but snapped staysCOMMENT
LOWtests/test_cache_warmup_reuse.py792 # Step 2: Load with warmup=3000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py796 # Step 3: Load with warmup=5000 → missCOMMENT
LOWtests/test_cache_warmup_reuse.py800 # Step 4: Save with warmup=5000 (overwrite same slot)COMMENT
LOWtests/test_cache_warmup_reuse.py815 # Step 5: Load with warmup=3000 → hit (ratcheted up)COMMENT
LOWtests/test_cache_warmup_reuse.py819 # Step 6: Load with warmup=5000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py780 # Step 1: Save with warmup=3000COMMENT
LOWsrc/fill_events_manager.py6875 # Step 1: Fetch trades (fill-level data with fees)COMMENT
LOWsrc/fill_events_manager.py6881 # Step 2: Collect unique order IDsCOMMENT
LOWsrc/fill_events_manager.py6888 # Step 3: Fetch closed orders for PnLCOMMENT
LOWsrc/fill_events_manager.py6891 # Step 4: Merge trades with order PnLCOMMENT
LOWsrc/utils.py404 # Step 1: remove base keys when *_usd carries the same value.COMMENT
LOWsrc/utils.py411 # Step 2: remove duplicate permutations sharing identical values.COMMENT
AI Structural Patterns53 hits · 34 pts
SeverityFileLineSnippetContext
LOWtests/test_missing_ema_fix.py514CODE
LOWtests/test_candlestick_manager.py1938CODE
LOWtests/test_candlestick_manager.py1998CODE
LOWtests/test_live_performance_report.py40CODE
LOWtests/test_fill_events_manager.py6450CODE
LOWtests/test_unstucking_safeguards.py3722CODE
LOWtests/test_unstucking_safeguards.py1010CODE
LOWtests/test_live_incident_bundle.py24CODE
LOWtests/test_orchestrator_integration.py238CODE
LOWtests/test_live_smoke_report.py30CODE
LOWtests/test_unstucking.py13CODE
LOWtests/test_order_churn_gate.py82CODE
LOWtests/test_live_event_query.py24CODE
LOWtests/test_orchestrator_json_api.py276CODE
LOWpytests/test_unstucking_cases.py7CODE
LOWsrc/fill_events_manager.py2995CODE
LOWsrc/passivbot.py688CODE
LOWsrc/passivbot.py12345CODE
LOWsrc/passivbot_hsl.py4307CODE
LOWsrc/monitor_web.py46CODE
LOWsrc/candlestick_manager.py867CODE
LOWsrc/candlestick_manager.py6202CODE
LOWsrc/candlestick_manager.py7521CODE
LOWsrc/monitor_tui.py1241CODE
LOWsrc/monitor_dev.py137CODE
LOWsrc/logging_setup.py179CODE
LOWsrc/hlcv_preparation.py290CODE
LOWsrc/tools/probe_ccxt_ticker_endpoints.py1970CODE
LOWsrc/tools/probe_ccxt_ticker_endpoints.py2217CODE
LOWsrc/exchanges/hyperliquid.py1609CODE
LOWsrc/config/load.py46CODE
LOWsrc/live/smoke_report.py8031CODE
LOWsrc/live/smoke_report.py8387CODE
LOWsrc/live/smoke_report.py9528CODE
LOWsrc/live/restart_executor.py516CODE
LOWsrc/live/restart_smoke_plan.py414CODE
LOWsrc/live/incident_bundle.py175CODE
LOWsrc/live/incident_bundle.py1098CODE
LOWsrc/live/event_bus.py3494CODE
LOWsrc/live/restart_smoke_orchestrator.py361CODE
LOWsrc/live/event_query.py462CODE
LOWsrc/live/event_query.py1306CODE
LOWsrc/live/data_packets.py129CODE
LOWsrc/live/runtime_attribution.py743CODE
LOWsrc/live/performance_report.py5525CODE
LOWsrc/live/event_emitters.py481CODE
LOWsrc/live/event_emitters.py534CODE
LOWsrc/live/event_emitters.py940CODE
LOWsrc/live/event_emitters.py1087CODE
LOWsrc/live/event_emitters.py1403CODE
LOWsrc/live/event_emitters.py2998CODE
LOWsrc/live/event_emitters.py5081CODE
LOWsrc/live/event_emitters.py5174CODE
Redundant / Tautological Comments21 hits · 29 pts
SeverityFileLineSnippetContext
LOWtests/test_utils_maps.py416 # Set mtime to 5 minutes ago (older than 180s threshold)COMMENT
LOWsrc/fill_events_manager.py6959 # Check if it's a rate limit error in disguiseCOMMENT
LOWsrc/fill_events_manager.py7077 # Check if we've collected all needed ordersCOMMENT
LOWsrc/fill_events_manager.py7711 # Check if we already know this orderId's clientOidCOMMENT
LOWsrc/fill_events_manager.py8079 # Check if we've reached the start boundaryCOMMENT
LOWsrc/passivbot.py3902 # Check if mode is normal (not graceful_stop, manual, etc.)COMMENT
LOWsrc/passivbot.py3907 # Check if we have a position alreadyCOMMENT
LOWsrc/passivbot.py3913 # Check if there's an initial entry order for this symbol/psideCOMMENT
LOWsrc/passivbot.py21900 # Check if coins is a single string that needs to be splitCOMMENT
LOWsrc/candlestick_manager.py2926 # Check if real data has replaced any previously synthetic timestampsCOMMENT
LOWsrc/candlestick_manager.py6248 # Check if already sorted to skip O(n log n) sortCOMMENT
LOWsrc/utils.py1420 # Check if the content is in list formatCOMMENT
LOWsrc/utils.py1516 # Check if a default was provided via *argsCOMMENT
LOWsrc/tradfi_data.py863 # Check if it's a known stock tickerCOMMENT
LOWsrc/legacy_data_migrator.py241 # Check if this matches what _sanitize_symbol would produceCOMMENT
LOWsrc/legacy_data_migrator.py358 # Check if it's a ccxt ID that needs standardizationCOMMENT
LOWsrc/legacy_data_migrator.py568 # Check if already in correct dtypeCOMMENT
LOWsrc/tools/fill_events_dash.py842 # Check if there's a result to consumeCOMMENT
LOWsrc/tools/generate_mcap_list.py30 # Check if all required price fields are not None before comparingCOMMENT
LOWsrc/tools/pareto_dash.py597 # Check if j dominates i (j is better in all metrics)COMMENT
LOWsrc/exchanges/hyperliquid.py1390 # Check if fetch_positions already got us a fresh balanceCOMMENT
Verbosity Indicators14 hits · 26 pts
SeverityFileLineSnippetContext
LOWpassivbot-rust/src/backtest.rs10157 // Step 1: initial balanceCOMMENT
LOWpassivbot-rust/src/backtest.rs10177 // Step 2: simulate a fill that changes raw balance but snapped staysCOMMENT
LOWtests/test_cache_warmup_reuse.py792 # Step 2: Load with warmup=3000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py796 # Step 3: Load with warmup=5000 → missCOMMENT
LOWtests/test_cache_warmup_reuse.py800 # Step 4: Save with warmup=5000 (overwrite same slot)COMMENT
LOWtests/test_cache_warmup_reuse.py815 # Step 5: Load with warmup=3000 → hit (ratcheted up)COMMENT
LOWtests/test_cache_warmup_reuse.py819 # Step 6: Load with warmup=5000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py780 # Step 1: Save with warmup=3000COMMENT
LOWsrc/fill_events_manager.py6875 # Step 1: Fetch trades (fill-level data with fees)COMMENT
LOWsrc/fill_events_manager.py6881 # Step 2: Collect unique order IDsCOMMENT
LOWsrc/fill_events_manager.py6888 # Step 3: Fetch closed orders for PnLCOMMENT
LOWsrc/fill_events_manager.py6891 # Step 4: Merge trades with order PnLCOMMENT
LOWsrc/utils.py404 # Step 1: remove base keys when *_usd carries the same value.COMMENT
LOWsrc/utils.py411 # Step 2: remove duplicate permutations sharing identical values.COMMENT
Fake / Example Data14 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/test_run_fake_live.py362 fake_user, restore = _install_fake_user_override(config, "scenario.hjson", None)CODE
LOWtests/test_run_fake_live.py364 payload = passivbot_mod.load_user_info(fake_user)CODE
LOWtests/test_fake_exchange.py142 bot.user = "fake_user"CODE
LOWtests/test_ticker_probe_tool.py355 user="fake_user",CODE
LOWtests/test_ticker_probe_tool.py510 user="fake_user",CODE
LOWtests/test_ticker_probe_tool.py1449 user="fake_user",CODE
LOWtests/test_ticker_probe_tool.py1524 user="fake_user",CODE
LOWtests/test_ticker_probe_tool.py1612 user="fake_user",CODE
LOWtests/ccxt_upgrade/test_contract_tools.py129 user="fake_user",CODE
LOWdocs/fake_live.md218 Use `--user <fake_user>` or point `live.user` at a fake entry you added to your localCODE
LOWsrc/tools/run_fake_live.py375 fake_user = user or str(config["live"].get("user") or "fake_runner")CODE
LOWsrc/tools/run_fake_live.py376 config["live"]["user"] = fake_userCODE
LOWsrc/tools/run_fake_live.py385 if requested_user == fake_user:CODE
LOWsrc/tools/run_fake_live.py390 return fake_user, lambda: setattr(passivbot_mod, "load_user_info", original)CODE
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWpassivbot-rust/src/orchestrator.rs321COMMENT
LOWpassivbot-rust/src/orchestrator.rs341 /// are consumed solely as the fallback for `auto_unstuck_allowed` whenCOMMENT
LOWpassivbot-rust/src/orchestrator.rs381 #[derive(Debug, Clone, Serialize, Deserialize)]COMMENT
LOWpassivbot-rust/src/orchestrator.rs421 /// Live-only authorization to scope absent EMA inputs to the strategyCOMMENT
LOWsrc/legacy_data_migrator.py201 # Find all symbol directoriesCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/stock_perps.md306 "api_key": "your_api_key"CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWvpssync.sh3# Usage:COMMENT