AI Slop Code RIsk Monitor

enarjord/passivbot

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

19.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for enarjord/passivbot, a Python project with 2,122 GitHub stars. SynthScan examined 574,803 lines of code across 817 source files, recording 12310 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 19.4 (Elevated pattern signal); it is not an authorship estimate.

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

19.4
Adjusted Signal
19.4
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.1K
Stars
Python
Language
574.8K
Lines of Code
817
Files
12.3K
Pattern Hits
2026-10-12
Scan Date
0.30
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 50.3/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 4.9/100 · LOW

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

Agent Over-Engineering Ratio 58.1/100 · HIGH

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

PR Review Velocity Impact 70.9/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 244MEDIUM 335LOW 11731

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers9644 hits · 7411 pts
SeverityFileLineSnippetContext
LOWsync_tar.py51def _resolve_pull_destination(destination: str, remote_base: str) -> Path:CODE
LOW⚡tests/test_auto_unstuck_allowance.py6def test_allowance_zero_when_no_drop_and_zero_pct():CODE
LOW⚡tests/test_auto_unstuck_allowance.py16def test_allowance_matches_configured_pct_at_peak():CODE
LOW⚡tests/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_console_admission.py51def test_estimation_churn_is_durable_and_reminders_are_bounded():CODE
LOWtests/test_console_admission.py97def test_transitions_and_recoveries_bypass_reminder_window(change):CODE
LOWtests/test_console_admission.py106def test_severity_and_bot_identity_do_not_share_suppression():CODE
LOWtests/test_console_admission.py124def test_unclassifiable_state_stays_visible(data):CODE
LOWtests/test_console_admission.py132def test_failed_delivery_does_not_consume_transition_or_reminder():CODE
LOWtests/test_console_admission.py145def test_scope_storage_is_bounded_and_eviction_and_restart_reemit():CODE
LOWtests/test_console_admission.py167def test_action_and_numbered_recovery_events_are_never_coalesced(kind):CODE
LOWtests/test_console_admission.py176def test_healthy_state_has_no_extra_periodic_reminder():CODE
LOWtests/test_console_admission.py193def test_missing_account_surface_and_record_budget_are_visible():CODE
LOWtests/test_console_admission.py216def test_repeat_is_admitted_exactly_at_boundary():CODE
LOWtests/test_console_admission.py226def test_replaced_observation_is_durable_and_does_not_fake_current_outage():CODE
LOWtests/test_console_admission.py265def test_replacement_marker_cannot_hide_red_or_unavailable(counts):CODE
LOWtests/test_console_admission.py280def test_routine_refresh_summary_moves_only_console_to_debug():CODE
LOWtests/test_console_admission.py301def test_hsl_complete_reason_survives_console_continuation():CODE
LOWtests/test_console_admission.py323def test_long_trailing_records_fit_exchange_user_prefix_without_losing_fields():CODE
LOWtests/test_hsl_reference_replay_fake_exchange.py13def test_fake_exchange_partial_final_delayed_fill_and_cache_free_replay(pside):CODE
LOWtests/test_excess_allowance_migration.py17def test_retired_mode_is_removed_or_fails_with_actionable_context(CODE
LOWtests/test_excess_allowance_migration.py56def test_external_config_cannot_hide_removed_raw_policy(tmp_path, mode):CODE
LOWtests/test_excess_allowance_migration.py89def test_scaling_is_strict_boolean_and_defaults_off(value):CODE
LOWtests/test_excess_allowance_migration.py103def test_coin_scaling_switch_is_global_per_side():CODE
LOWtests/test_excess_allowance_migration.py113def test_scaling_rejects_aggregate_scopes(mode):CODE
LOWtests/test_excess_allowance_migration.py133def test_python_admission_matches_bounded_rust_contract(base, total, expected):CODE
LOWtests/test_excess_allowance_migration.py143def test_cleanup_cannot_drop_a_raw_policy_before_validation(surface, old_value):CODE
LOW⚡tests/test_coin_overrides_foundation.py147def test_unstuck_ema_distance_validation_applies_to_effective_config():CODE
LOW⚡tests/test_coin_overrides_foundation.py155def test_effective_validation_normalization_is_retained_in_patch():CODE
LOW⚡tests/test_coin_overrides_foundation.py161def test_runtime_compilation_must_follow_override_parsing():CODE
LOW⚡tests/test_coin_overrides_foundation.py267def test_non_positive_leverage_override_fails(value):CODE
LOW⚡tests/test_coin_overrides_foundation.py272def test_normalized_coin_collision_fails():CODE
LOW⚡tests/test_coin_overrides_foundation.py280def test_invalid_normalized_coin_fails():CODE
LOW⚡tests/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_console_health.py10def test_health_does_not_infer_waiting_from_absent_orders():CODE
LOWtests/test_console_health.py30def test_recovery_is_immediate_once_and_flat_is_not_called_ready(caplog):CODE
LOWtests/test_console_health.py44def test_recovery_sink_failure_isolated_and_retried(monkeypatch):CODE
LOWtests/test_console_health.py54def test_heartbeat_labels_unknowns_and_preserves_anomalies_with_bounded_rows():CODE
LOWtests/test_console_health.py73def test_ws_console_echo_classification_never_hides_fill_progress_or_mutates_batch(monkeypatch):CODE
LOWtests/test_console_health.py92def test_normalized_short_close_is_resting_without_reduce_only_flag():CODE
LOWtests/test_console_health.py99def test_phase_breakdown_and_current_fill_readiness_are_observations(caplog):CODE
LOWtests/test_console_health.py124def test_readiness_observer_is_bounded():CODE
LOWtests/test_console_health.py131def test_console_retry_freezes_observed_recovery_time(monkeypatch, caplog):CODE
LOWtests/test_console_health.py142def test_wait_cap_retains_ages_and_reports_untracked_held_symbols():CODE
LOWtests/test_console_health.py161def test_last_write_survives_retry_cache_pruning(monkeypatch):CODE
9584 more matches not shown…
Empty Error Handlers200 hits · 912 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py22except Exception:CODE
HIGHtests/conftest.py36except Exception:CODE
HIGHtests/test_live_candlestick_manager.py126except Exception:CODE
HIGHtests/test_live_candlestick_manager.py171except Exception:CODE
HIGHtests/test_live_candlestick_manager.py213except Exception:CODE
HIGHtests/test_live_candlestick_manager.py290except Exception:CODE
HIGHtests/test_sync_tar.py143except IsADirectoryError:CODE
HIGHtests/test_ccxt_fetch_ohlcv_current_minute.py42except Exception:CODE
HIGHtests/test_ccxt_fetch_ohlcv_current_minute.py88except Exception:CODE
HIGHcontainer/render_config.py38except Exception:CODE
HIGHsrc/fill_events_manager.py152except BaseException:CODE
HIGHsrc/fill_events_manager.py8333except ValueError:CODE
HIGHsrc/fill_events_manager.py8407except Exception:CODE
HIGHsrc/fill_events_manager.py8574except Exception:CODE
HIGHsrc/fill_events_manager.py4385except Exception:CODE
HIGHsrc/fill_events_manager.py4411except Exception:CODE
HIGHsrc/fill_events_manager.py4175except (KeyError, TypeError, ValueError, OverflowError):CODE
HIGHsrc/fill_events_manager.py4003except Exception:CODE
HIGHsrc/passivbot.py299except Exception:CODE
HIGHsrc/passivbot.py469except Exception:CODE
HIGHsrc/passivbot.py476except Exception:CODE
HIGHsrc/passivbot.py616except Exception:CODE
HIGHsrc/passivbot.py309except Exception:CODE
HIGHsrc/passivbot.py506except Exception:CODE
HIGHsrc/passivbot.py4055except Exception:CODE
HIGHsrc/passivbot.py9308except:CODE
HIGHsrc/passivbot.py9312except:CODE
HIGHsrc/passivbot.py10798except (AttributeError, TypeError, ValueError):CODE
HIGHsrc/passivbot.py19141except Exception:CODE
HIGHsrc/passivbot.py19169except Exception:CODE
HIGHsrc/passivbot.py19420except Exception:CODE
HIGHsrc/passivbot.py2317except BaseException:CODE
HIGHsrc/passivbot.py4882except Exception:CODE
HIGHsrc/passivbot.py4904except Exception:CODE
HIGHsrc/passivbot.py5306except Exception:CODE
HIGHsrc/passivbot.py5313except Exception:CODE
HIGHsrc/passivbot.py6190except Exception:CODE
HIGHsrc/passivbot.py10153except Exception:CODE
HIGHsrc/passivbot.py19761except Exception:CODE
HIGHsrc/passivbot.py20184except Exception:CODE
HIGHsrc/passivbot.py3911except Exception:CODE
HIGHsrc/passivbot.py4961except Exception:CODE
HIGHsrc/passivbot.py5039except Exception:CODE
HIGHsrc/passivbot.py6880except Exception:CODE
HIGHsrc/passivbot.py3414except Exception:CODE
HIGHsrc/passivbot.py9827except Exception:CODE
HIGHsrc/passivbot.py6844except asyncio.CancelledError:CODE
HIGHsrc/optimize.py2736except Exception:CODE
HIGHsrc/optimize.py2729except Exception:CODE
HIGHsrc/passivbot_monitor.py59except Exception:CODE
HIGHsrc/passivbot_monitor.py190except (AttributeError, OSError):CODE
HIGHsrc/passivbot_monitor.py2082except Exception:CODE
HIGHsrc/passivbot_monitor.py69except Exception:CODE
HIGHsrc/passivbot_monitor.py847except Exception:CODE
HIGHsrc/passivbot_monitor.py1468except (KeyError, TypeError, ValueError):CODE
HIGHsrc/passivbot_monitor.py613except Exception:CODE
HIGHsrc/monitor_relay.py402except asyncio.CancelledError:CODE
HIGHsrc/monitor_relay.py600except asyncio.QueueEmpty:CODE
HIGHsrc/monitor_relay.py609except asyncio.QueueFull:CODE
HIGHsrc/bitget_normalization.py105except (TypeError, ValueError, OverflowError):CODE
140 more matches not shown…
Decorative Section Separators241 hits · 834 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_missing_ema_fix.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_missing_ema_fix.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_realized_loss_gate.py493# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_realized_loss_gate.py495# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py195# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py882# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_realized_loss_gate.py884# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py355# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py357# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py467# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py469# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py910# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py912# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1006# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1008# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1060# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1062# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1152# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1154# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1645# ============================================================================COMMENT
MEDIUM⚡tests/test_hlcv_preparation.py1647# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py143# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py145# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1122# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py1124# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py3385# ============================================================================COMMENT
MEDIUMtests/test_hlcv_preparation.py3387# ============================================================================COMMENT
MEDIUM⚡tests/test_fill_events_manager.py311# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py313# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py1208# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py1210# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py1813# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py1815# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py2496# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py2498# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py8198# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_fill_events_manager.py8200# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py4269# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py4271# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6475# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6477# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6959# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py6961# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py7685# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_fill_events_manager.py7687# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py333# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py335# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py569# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py571# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py672# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py674# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py779# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py781# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py846# ============================================================================COMMENT
MEDIUM⚡tests/test_orchestrator_integration.py848# ============================================================================COMMENT
181 more matches not shown…
Excessive Try-Catch Wrapping985 hits · 749 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.py295 except Exception as exc: # pragma: no coverCODE
MEDIUMsync_tar.py296 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
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
LOW⚡tests/test_live_candlestick_manager.py66 except Exception:CODE
LOW⚡tests/test_live_candlestick_manager.py73 except Exception:CODE
LOW⚡tests/test_live_candlestick_manager.py83 except Exception as e:CODE
LOW⚡tests/test_live_candlestick_manager.py126 except Exception:CODE
LOW⚡tests/test_live_candlestick_manager.py136 except Exception as e:CODE
LOW⚡tests/test_live_candlestick_manager.py171 except Exception:CODE
LOW⚡tests/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
LOWtests/test_candle_interval.py10except Exception: # pragma: no cover - exercised when the extension is unavailableCODE
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
MEDIUMtests/test_utils_maps.py835def write_maps(thread_id):CODE
LOWtests/test_utils_maps.py848 except Exception as e:CODE
MEDIUMtests/test_market_snapshot.py1430def observe_boundary():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
MEDIUMsrc/fill_events_manager.py118def _fill_number(value, converter):CODE
LOW⚡src/fill_events_manager.py3609 except Exception as exc:CODE
LOWsrc/fill_events_manager.py226 except Exception:CODE
LOWsrc/fill_events_manager.py252 except Exception:CODE
LOWsrc/fill_events_manager.py322 except Exception:CODE
LOWsrc/fill_events_manager.py330 except Exception:CODE
LOWsrc/fill_events_manager.py349 except Exception:CODE
LOWsrc/fill_events_manager.py568 except Exception:CODE
LOWsrc/fill_events_manager.py615 except Exception:CODE
LOWsrc/fill_events_manager.py640 except Exception:CODE
LOWsrc/fill_events_manager.py645 except Exception:CODE
LOWsrc/fill_events_manager.py717 except Exception:CODE
LOWsrc/fill_events_manager.py734 except Exception:CODE
LOWsrc/fill_events_manager.py1839 except Exception:CODE
LOWsrc/fill_events_manager.py1925 except Exception:CODE
LOWsrc/fill_events_manager.py1952 except Exception as exc:CODE
LOWsrc/fill_events_manager.py1986 except Exception as exc:CODE
LOWsrc/fill_events_manager.py2041 except Exception as exc:CODE
LOWsrc/fill_events_manager.py2100 except Exception:CODE
925 more matches not shown…
Unused Imports444 hits · 361 pts
SeverityFileLineSnippetContext
LOWtest_tradfi_providers.py34CODE
LOWsync_tar.py12CODE
LOWrun_with_logging.py13CODE
LOWtests/test_console_admission.py194CODE
LOWtests/test_missing_ema_fix.py11CODE
LOWtests/test_candlestick_manager_locking.py1CODE
LOWtests/test_hsl_fake_cycle.py12CODE
LOWtests/test_pareto_explorer.py1CODE
LOWtests/test_binance_ohlcv_v2_archive.py14CODE
LOWtests/test_run_fake_live.py1CODE
LOWtests/test_sync_tar.py1CODE
LOWtests/test_realized_loss_gate.py6CODE
LOWtests/test_realized_loss_gate.py7CODE
LOWtests/test_realized_loss_gate.py9CODE
LOWtests/test_entry_ema_migration.py1CODE
LOWtests/test_candlestick_manager.py10CODE
LOWtests/test_candlestick_manager.py3666CODE
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_hsl_reconciler.py4CODE
LOWtests/test_live_performance_report.py1CODE
LOWtests/test_compose_coin_overrides_tool.py1CODE
LOWtests/test_unstucking_safeguards.py3CODE
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_hsl_best_effort_reference.py4CODE
LOWtests/test_suite_artifacts.py2CODE
LOWtests/test_backtest_analysis.py18CODE
LOWtests/test_live_smoke_report.py1CODE
LOWtests/test_live_smoke_report.py8CODE
LOWtests/test_live_smoke_report.py9CODE
LOWtests/test_live_restart_smoke_orchestrator.py1CODE
LOWtests/test_live_restart_smoke_plan.py1CODE
LOWtests/test_live_restart_executor.py1CODE
LOWtests/test_passivbot_balance_split.py42CODE
LOWtests/test_position_fill_sync_fake_live.py11CODE
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
384 more matches not shown…
Deep Nesting508 hits · 344 pts
SeverityFileLineSnippetContext
LOWsync_tar.py100CODE
LOWrun_with_logging.py44CODE
LOWtests/test_excess_allowance_migration.py17CODE
LOWtests/conftest.py13CODE
LOWtests/conftest.py165CODE
LOWtests/test_adaptive_optimize_bounds.py263CODE
LOWtests/test_fill_refresh_reuse.py61CODE
LOWtests/test_hsl_trace.py24CODE
LOWtests/hsl_reference_replay.py428CODE
LOWtests/hsl_reference_replay.py584CODE
LOWtests/test_fill_events_manager.py8866CODE
LOWtests/test_protective_close_contract.py102CODE
LOWtests/test_protective_close_contract.py197CODE
LOWtests/test_protective_close_contract.py259CODE
LOWtests/test_hsl_config.py401CODE
LOWtests/hsl_worker_benchmark.py37CODE
LOWtests/test_hsl_snapshot.py96CODE
LOWtests/hsl_reference_controller.py41CODE
LOWtests/test_orchestrator_integration.py77CODE
LOWtests/hsl_reference.py330CODE
LOWtests/test_ccxt_fetch_ohlcv_current_minute.py28CODE
LOWtests/test_hsl_monitor_equity.py75CODE
LOWtests/test_position_fill_sync_fake_live.py30CODE
LOWtests/test_position_fill_sync_fake_live.py79CODE
LOWtests/test_position_fill_sync_fake_live.py102CODE
LOWtests/test_unstuck_ema_backtest.py10CODE
LOWtests/test_cache_lock_races.py112CODE
LOWtests/test_hsl_live.py35CODE
LOWtests/test_hsl_live.py378CODE
LOWtests/test_hsl_live.py740CODE
LOWtests/test_hsl_live.py782CODE
LOWtests/test_hsl_live.py1410CODE
LOWtests/test_hsl_live.py1885CODE
LOWtests/test_hsl_live.py78CODE
LOWtests/test_adaptive_entry_cooldown.py725CODE
LOWtests/test_hsl_runtime.py1070CODE
LOWtests/test_diagnostic_valuation.py93CODE
LOWtests/test_hsl_reference_replay.py272CODE
LOWtests/test_hsl_reference_replay.py367CODE
LOWtests/test_gate_entries_by_twel_complex.py209CODE
LOWtests/test_orchestrator_json_api.py99CODE
LOWtests/test_orchestrator_json_api.py349CODE
LOWtests/test_simulation_offline.py502CODE
LOWtests/exchanges/test_lighter.py901CODE
LOWtests/optimization/test_gpu_service.py3350CODE
LOWtests/optimization/test_config_adapter.py25CODE
LOWtests/optimization/test_gpu_hsl_cli.py224CODE
LOWtests/optimization/test_gpu_replay_progress.py79CODE
LOWtests/optimization/test_gpu_prepared_data.py48CODE
LOWtests/optimization/test_gpu_drift_signal.py108CODE
LOWtests/optimization/test_gpu_adaptive_timing.py69CODE
LOWtests/optimization/test_prepared_dataset_identity.py71CODE
LOWpytests/test_gate_entries_by_twel_complex.py185CODE
LOWsrc/suite_runner.py354CODE
LOWsrc/suite_runner.py410CODE
LOWsrc/suite_runner.py600CODE
LOWsrc/suite_runner.py943CODE
LOWsrc/suite_runner.py1978CODE
LOWsrc/suite_runner.py2045CODE
LOWsrc/fill_events_manager.py367CODE
448 more matches not shown…
Cross-Language Confusion35 hits · 192 pts
SeverityFileLineSnippetContext
HIGHtests/test_pareto_dash.py188 "stress__adg_usd<=0.05 || stress__adg_usd>=0.1"CODE
HIGH⚡tests/test_broker_codes.py16 path.write_text('{ bybit: "custom-bybit", hyperliquid: null }')CODE
HIGH⚡tests/test_analysis_visibility.py89 with pytest.raises(ValueError, match="backtest.visible_metrics must be null, \\[\\], or"):CODE
HIGH⚡tests/test_config_pipeline.py1975 ValueError, match="backtest.visible_metrics must be null, \\[\\], or"CODE
HIGH⚡tests/test_live_restart_executor.py677 "- cd /one && passivbot live bot.json -u binance_01\n",CODE
HIGH⚡tests/test_live_restart_executor.py682 "- cd /two && passivbot live bot.json -u binance_01\n",CODE
HIGH⚡tests/test_clean_config_tool.py274 text = '{"z": [1.234567890123456789, -0, 1e400, 1E-9999], "z": null, "s": "☃", "_raw": {"analysis": 3}, "yes": true}CODE
HIGHtests/test_hsl_live.py152 lambda value, grids: '{"decision": null}',CODE
HIGHtests/test_hsl_status_consumers.py114 "const compactEntries = (xs) => xs.filter((x) => x[1] != null); const fmtCompact = (v) => String(v);\n"CODE
HIGH⚡tests/test_hsl_diagnostics.py412assert.equal(hslScopeStatus({action: null, tier: 'inactive', availability: 'available'}), 'inactive');CODE
HIGH⚡tests/test_hsl_diagnostics.py413assert.equal(hslScopeStatus({action: null, tier: null, availability: 'unavailable'}), 'unavailable');CODE
HIGHtests/test_simulation_offline.py73@pytest.mark.parametrize("content", [None, "bad json", "{}", '{"x": null}'])CODE
HIGHtests/optimization/test_gpu_mps.py1945 output[0] = long_entry && short_entry && long_close && short_closeCODE
HIGHtests/optimization/test_gpu_mps.py7590 assert "long_close_fill || long_entry_fill" in sourceSTRING
HIGHtests/optimization/test_gpu_mps.py7591 assert "short_close_fill || short_entry_fill" in sourceSTRING
HIGHtests/optimization/test_gpu_hsl_episode_boundaries.py59 thread HslState& owner = h.signal_mode == HSL_SIGNAL_UNIFIED && short_owner != 0CODE
HIGHsrc/analysis_visibility.py109 "backtest.visible_metrics must be null, [], or a list/tuple/set of metric names"CODE
HIGH⚡src/tools/pareto_plot_page.py47 indices.push(row);CODE
HIGH⚡src/tools/pareto_plot_page.py49 let ideal = null, selected = null;CODE
HIGH⚡src/tools/pareto_plot_page.py50 if (indices.length && goals.every(goal => goal === "min" || goal === "max")) {CODE
HIGHsrc/tools/pareto_plot_page.py76 const padding = (high - low || Math.abs(low) || 1) * 0.06;CODE
HIGHsrc/tools/pareto_plot_page.py78 return dimensions === 2 && goal === "max" ? range.reverse() : range;CODE
HIGHsrc/tools/pareto_plot_page.py110 traces.push(ideal, chosen);CODE
HIGHsrc/tools/pareto_plot_page.py128 if (layout.scene && previous?.scene?.camera && layout.uirevision === previous.uirevision) {CODE
HIGHsrc/tools/pareto_plot_page.py137 if (selected.length === 2) selected.push(available.find(metric => !selected.includes(metric.key))?.key);CODE
HIGHsrc/tools/pareto_plot_page.py172 for (const option of select.options) option.disabled = !byKey.get(option.value).count || activeAxes().some((CODE
HIGHsrc/tools/pareto_plot_page.py172 for (const option of select.options) option.disabled = !byKey.get(option.value).count || activeAxes().some((CODE
HIGHsrc/tools/pareto_plot_page.py228 goalSelects.forEach((select,index) => select.addEventListener("change",() => {directions.set(selected[index],select.CODE
HIGHsrc/tools/pareto_plot_page.py228 goalSelects.forEach((select,index) => select.addEventListener("change",() => {directions.set(selected[index],select.CODE
HIGHsrc/config/scoring.py213 raise ValueError(f"{path} must be a scenario label string or null, got {value!r}")CODE
HIGHsrc/config/scoring.py323 "{metric: ..., goal: min|max, scenario: label|null, reducer: 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.py273 - [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 Vocabulary30 hits · 58 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_kucoin_exchange_config.py406 # leverage is clamped by max_leverageCOMMENT
MEDIUM⚡tests/test_stock_perps.py1108 # Cross margin symbol should use full leverageCOMMENT
MEDIUMtests/test_stock_perps.py1067 # Mock markets with different max leverage valuesCOMMENT
MEDIUM⚡tests/test_stock_perps.py1049 """Tests for isolated margin leverage capping."""STRING
MEDIUM⚡tests/test_stock_perps.py1052 """Test that isolated margin symbols have leverage capped appropriately."""STRING
MEDIUM⚡tests/test_stock_perps.py1310 """Tests for automatic isolated margin leverage calculation."""STRING
MEDIUM⚡tests/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/test_hsl_live.py1015 # The generic harness suppresses writes during startup. This regressionCOMMENT
MEDIUMtests/test_hsl_live.py1031 # Retain the harness's start_bot return boundary; otherwise normalCOMMENT
MEDIUMtests/exchanges/test_ccxt_bot.py405 """Test that leverage is set for each symbol when supported."""STRING
MEDIUMtests/exchanges/test_ccxt_bot.py455 """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
MEDIUM⚡tests/exchanges/test_bitunix.py2410 # A margin-mode change may reset venue leverage, so set it again evenCOMMENT
MEDIUM⚡tests/exchanges/test_bitunix.py2411 # when the pre-mutation leverage happened to match.COMMENT
MEDIUMsrc/candlestick_manager.py9436 # The deterministic fake-live harness intentionally permits sparseCOMMENT
MEDIUMsrc/pareto_store.py977 # Create a streamlined figure with just two key plotsCOMMENT
LOWsrc/procedures.py548 # 1) If no exchange is specified and all coins have valid cached timestamps, just return ftssCOMMENT
MEDIUMsrc/hlcv_preparation.py5956 """Estimate exchange quote-volume ratios from robust complete-day overlap.STRING
MEDIUMsrc/exchanges/hyperliquid.py35 # HIP-3 stock perps have a max leverage of 10xCOMMENT
MEDIUMsrc/exchanges/hyperliquid.py221 # For isolated-only markets (HIP-3), cap at 10x leverageCOMMENT
MEDIUM⚡src/exchanges/hyperliquid.py2014 """Set leverage and margin mode for Hyperliquid symbols.STRING
MEDIUMsrc/exchanges/ccxt_bot.py970 """Calculate minimum leverage required for isolated margin positions.STRING
MEDIUMsrc/exchanges/ccxt_bot.py992 """Calculate the appropriate leverage for a symbol.STRING
MEDIUMsrc/exchanges/ccxt_bot.py1102 """Set leverage and margin mode for each symbol.STRING
MEDIUM⚡src/exchanges/weex.py174 """WEEX leverage setup is an entry prerequisite, not a close prerequisite."""STRING
MEDIUM⚡src/exchanges/gateio.py340 """Apply the configured leverage and margin mode through Gate's leverage endpoint."""STRING
MEDIUM⚡src/exchanges/gateio.py368 """Gate leverage is an entry prerequisite, not a close prerequisite."""STRING
AI Structural Patterns71 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/test_missing_ema_fix.py261CODE
LOWtests/test_candlestick_manager.py2037CODE
LOWtests/test_candlestick_manager.py2097CODE
LOWtests/test_live_performance_report.py40CODE
LOWtests/test_fill_events_manager.py6506CODE
LOWtests/test_unstucking_safeguards.py3189CODE
LOWtests/test_unstucking_safeguards.py606CODE
LOWtests/test_live_incident_bundle.py24CODE
LOWtests/test_trailing_inspect_tool.py47CODE
LOWtests/test_orchestrator_integration.py240CODE
LOWtests/test_live_smoke_report.py32CODE
LOWtests/test_unstucking.py13CODE
LOWtests/test_order_churn_gate.py82CODE
LOWtests/test_live_event_query.py24CODE
LOWtests/test_hsl_reference_replay.py14CODE
LOWtests/test_orchestrator_json_api.py278CODE
LOWtests/optimization/test_gpu_hsl_multicoin.py19CODE
LOWtests/optimization/test_gpu_mps.py4651CODE
LOWtests/optimization/test_gpu_mps.py11291CODE
LOWtests/optimization/test_gpu_mps.py16126CODE
LOWpytests/test_unstucking_cases.py7CODE
LOWsrc/fill_events_manager.py2981CODE
LOWsrc/passivbot.py730CODE
LOWsrc/passivbot.py11726CODE
LOWsrc/monitor_web.py46CODE
LOWsrc/candlestick_manager.py985CODE
LOWsrc/candlestick_manager.py6292CODE
LOWsrc/candlestick_manager.py7613CODE
LOWsrc/monitor_tui.py1450CODE
LOWsrc/monitor_dev.py148CODE
LOWsrc/logging_setup.py210CODE
LOWsrc/hlcv_preparation.py412CODE
LOWsrc/tools/probe_ccxt_ticker_endpoints.py1970CODE
LOWsrc/tools/probe_ccxt_ticker_endpoints.py2217CODE
LOWsrc/exchanges/hyperliquid.py1758CODE
LOWsrc/config/load.py25CODE
LOWsrc/optimization/gpu/mps_kernel.py837CODE
LOWsrc/optimization/gpu/mps_kernel.py886CODE
LOWsrc/optimization/gpu/mps_kernel.py931CODE
LOWsrc/optimization/gpu/mps_kernel.py976CODE
LOWsrc/optimization/gpu/mps_kernel.py1013CODE
LOWsrc/optimization/gpu/mps_kernel.py1050CODE
LOWsrc/optimization/gpu/mps_kernel.py1094CODE
LOWsrc/optimization/gpu/mps_kernel.py1479CODE
LOWsrc/optimization/gpu/mps_kernel.py2080CODE
LOWsrc/optimization/gpu/mps_kernel.py2741CODE
LOWsrc/optimization/gpu/mps_kernel.py2985CODE
LOWsrc/optimization/gpu/mps_kernel.py3283CODE
LOWsrc/optimization/backends/gpu_backend.py4535CODE
LOWsrc/live/smoke_report.py7694CODE
LOWsrc/live/smoke_report.py8052CODE
LOWsrc/live/smoke_report.py9177CODE
LOWsrc/live/restart_executor.py516CODE
LOWsrc/live/restart_smoke_plan.py414CODE
LOWsrc/live/incident_bundle.py176CODE
LOWsrc/live/incident_bundle.py1100CODE
LOWsrc/live/event_bus.py3762CODE
LOWsrc/live/restart_smoke_orchestrator.py361CODE
LOWsrc/live/event_query.py462CODE
LOWsrc/live/event_query.py1306CODE
11 more matches not shown…
Modern Structural Boilerplate51 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/test_realized_loss_gate.py134def _set_pnl_lookback(bot, *, lookback_days: float | str, now_ms: int) -> None:CODE
LOWtests/test_passivbot_balance_split.py2794def _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.py66logger = logging.getLogger(__name__)CODE
LOWsrc/fill_events_manager.py2256 def set_history_scope(self, scope: str) -> None:CODE
LOWsrc/fill_events_manager.py5932 def set_history_scope(self, scope: str) -> None:CODE
LOWsrc/passivbot.py8813 async def update_trailing_data(self) -> None:CODE
LOW⚡src/optimize.py788def _set_candidate_metrics(individual, metrics_payload) -> None:CODE
LOWsrc/optimize.py2877def _set_optimize_bound(config: dict, bound_key: str, value) -> None:CODE
LOWsrc/market_snapshot.py11__all__ = [CODE
LOWsrc/warmup_utils.py559__all__ = [CODE
LOW⚡src/candlestick_manager.py1283 def set_stop_requested_callback(self, callback: Optional[Callable[[], bool]]) -> None:CODE
LOWsrc/candlestick_manager.py1312 def _setup_logging(self) -> None:CODE
LOWsrc/candlestick_manager.py4877 def _set_inception_ts(self, symbol: str, ts: int, *, save: bool = True) -> None:CODE
LOWsrc/candlestick_manager.py5135 async def _set_global_rate_limit(self, backoff_seconds: float = 5.0) -> None:CODE
LOWsrc/candlestick_manager.py9133 def set_current_close(self, symbol: str, price: float, timestamp_ms: int) -> None:CODE
LOWsrc/candlestick_manager.py10787__all__ = [CODE
LOWsrc/monitor_tui.py375 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.py379__all__ = [CODE
LOWsrc/logging_setup.py146def update_stable_log_alias(alias_path: str | Path, target_path: str | Path) -> None:CODE
LOWsrc/hlcv_preparation.py6228__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.py346def _set_nested_bound(target: dict[str, Any], path: tuple[str, ...], value: list[int | float]) -> None:CODE
LOWsrc/tools/compose_coin_overrides.py411def _set_path(config: dict, path: tuple[str, ...], value: Any) -> None:CODE
LOW⚡src/tools/iterative_backtester.py876 def _update_best_run(self, run: RunSummary) -> None:CODE
LOW⚡src/tools/iterative_backtester.py885 def _update_pareto_front(self) -> None:CODE
LOWsrc/exchanges/fake.py14logger = logging.getLogger(__name__)CODE
LOWsrc/exchanges/bitunix.py2313 async def update_exchange_config(self) -> None:CODE
LOWsrc/exchanges/bitunix.py2324 async def update_exchange_config_by_symbols(self, symbols: Iterable[str]) -> None:CODE
LOWsrc/exchanges/bitunix.py2360 def set_market_specific_settings(self) -> None:CODE
LOWsrc/config/optimize_bounds.py288def set_flat_optimize_bound(bounds: dict, strategy_kind: str, flat_key: str, value) -> None:CODE
LOWsrc/config/__init__.py14__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.py54def _set_path(config: dict, path: Sequence[str], value) -> None:CODE
LOWsrc/optimization/warmup.py435__all__ = [CODE
LOWsrc/optimization/backends/deap_backend.py67def _set_deap_worker_globals(evaluator, overrides_list: Sequence[Any] | None) -> None:CODE
LOWsrc/live/state_refresh.py606 def update_stats(stats: dict[str, int], value: int) -> None:CODE
LOWsrc/live/performance_report.py1535 def _update_debug_profiles(state: dict[str, Any], data: dict[str, Any]) -> None:CODE
LOWsrc/live/performance_report.py2068 def _set_elapsed(item: dict[str, Any], *, started_ts: int | None) -> None:CODE
LOW⚡src/live/event_emitters.py45def set_live_event_context_ids(bot: Any, **kwargs: str | None) -> None:CODE
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHsrc/suite_runner.py281Filter scenarios to only include those matching the given labels. Args: scenarios: List of scenario dicts (STRING
HIGHsrc/procedures.py117 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.py640Fetch open orders, optionally filtered by symbol. Args: symbol: Optional symbol to filter orders. STRING
HIGHsrc/exchanges/ccxt_bot.py933Check if a symbol requires isolated margin mode. Override in subclasses to detect exchange-specific isolated-onSTRING
HIGHsrc/exchanges/ccxt_bot.py1235Fetch OHLCV candlestick data. Args: symbol: Trading pair symbol. timeframe: Candle timeSTRING
HIGHsrc/exchanges/ccxt_bot.py1257Fetch 1-minute OHLCV data with pagination support. Args: symbol: Trading pair symbol. sSTRING
HIGHsrc/exchanges/ccxt_bot.py1305Template 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
Self-Referential Comments11 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_candlestick_manager.py1885 # Create a real shard for day0 with minimal dataCOMMENT
MEDIUM⚡tests/test_rust_utils.py284 # Create a root-level .rs fileCOMMENT
MEDIUM⚡tests/test_rust_utils.py288 # Create a subdirectory .rs fileCOMMENT
MEDIUM⚡tests/test_utils_maps.py883 # Create a stale lock file (older than threshold)COMMENT
MEDIUM⚡tests/test_utils_maps.py891 # Create a fresh lock file (should NOT be removed)COMMENT
MEDIUM⚡tests/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.py3966 # Create a concrete fitness class from ConstraintAwareFitnessCOMMENT
MEDIUMsrc/passivbot.py11703 # Create the FillEventsManager with its own cache pathCOMMENT
MEDIUMsrc/plotting.py1289 # Create the plotCOMMENT
MEDIUMsrc/pareto_store.py977 # Create a streamlined figure with just two key plotsCOMMENT
Structural Annotation Overuse20 hits · 32 pts
SeverityFileLineSnippetContext
LOWREADME.md81### Step 1: Clone the RepositoryCOMMENT
LOWREADME.md93### Step 2: Install RustCOMMENT
LOWREADME.md100### Step 3: Create and Activate a Virtual EnvironmentCOMMENT
LOWREADME.md134### Step 4: Install PassivbotCOMMENT
LOWREADME.md162### Step 6: Add API keysCOMMENT
LOWREADME.md172### Step 7: Run PassivbotCOMMENT
LOWpassivbot-rust/src/backtest.rs6719 // Step 1: initial balanceCOMMENT
LOWpassivbot-rust/src/backtest.rs6739 // Step 2: simulate a fill that changes raw balance but snapped staysCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py836 # Step 2: Load with warmup=3000 → hitCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py840 # Step 3: Load with warmup=5000 → missCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py844 # Step 4: Save with warmup=5000 (overwrite same slot)COMMENT
LOW⚡tests/test_cache_warmup_reuse.py859 # Step 5: Load with warmup=3000 → hit (ratcheted up)COMMENT
LOW⚡tests/test_cache_warmup_reuse.py863 # Step 6: Load with warmup=5000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py824 # Step 1: Save with warmup=3000COMMENT
LOW⚡src/fill_events_manager.py6968 # Step 1: Fetch trades (fill-level data with fees)COMMENT
LOW⚡src/fill_events_manager.py6974 # Step 2: Collect unique order IDsCOMMENT
LOW⚡src/fill_events_manager.py6981 # Step 3: Fetch closed orders for PnLCOMMENT
LOW⚡src/fill_events_manager.py6984 # Step 4: Merge trades with order PnLCOMMENT
LOW⚡src/utils.py336 # Step 1: remove base keys when *_usd carries the same value.COMMENT
LOW⚡src/utils.py343 # Step 2: remove duplicate permutations sharing identical values.COMMENT
Redundant / Tautological Comments21 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_utils_maps.py887 # Set mtime to 5 minutes ago (older than 180s threshold)COMMENT
LOWsrc/fill_events_manager.py7052 # Check if it's a rate limit error in disguiseCOMMENT
LOWsrc/fill_events_manager.py7173 # Check if we've collected all needed ordersCOMMENT
LOWsrc/fill_events_manager.py7800 # Check if we already know this orderId's clientOidCOMMENT
LOWsrc/fill_events_manager.py8168 # Check if we've reached the start boundaryCOMMENT
LOW⚡src/passivbot.py3830 # Check if mode is normal (not graceful_stop, manual, etc.)COMMENT
LOW⚡src/passivbot.py3835 # Check if we have a position alreadyCOMMENT
LOW⚡src/passivbot.py3841 # Check if there's an initial entry order for this symbol/psideCOMMENT
LOWsrc/passivbot.py19949 # Check if coins is a single string that needs to be splitCOMMENT
LOWsrc/candlestick_manager.py3031 # Check if real data has replaced any previously synthetic timestampsCOMMENT
LOWsrc/candlestick_manager.py6338 # Check if already sorted to skip O(n log n) sortCOMMENT
LOWsrc/utils.py2056 # Check if the content is in list formatCOMMENT
LOWsrc/utils.py2152 # 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
LOW⚡src/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.py598 # Check if j dominates i (j is better in all metrics)COMMENT
LOWsrc/exchanges/hyperliquid.py1470 # Check if fetch_positions already got us a fresh balanceCOMMENT
Verbosity Indicators14 hits · 23 pts
SeverityFileLineSnippetContext
LOWpassivbot-rust/src/backtest.rs6719 // Step 1: initial balanceCOMMENT
LOWpassivbot-rust/src/backtest.rs6739 // Step 2: simulate a fill that changes raw balance but snapped staysCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py836 # Step 2: Load with warmup=3000 → hitCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py840 # Step 3: Load with warmup=5000 → missCOMMENT
LOW⚡tests/test_cache_warmup_reuse.py844 # Step 4: Save with warmup=5000 (overwrite same slot)COMMENT
LOW⚡tests/test_cache_warmup_reuse.py859 # Step 5: Load with warmup=3000 → hit (ratcheted up)COMMENT
LOW⚡tests/test_cache_warmup_reuse.py863 # Step 6: Load with warmup=5000 → hitCOMMENT
LOWtests/test_cache_warmup_reuse.py824 # Step 1: Save with warmup=3000COMMENT
LOW⚡src/fill_events_manager.py6968 # Step 1: Fetch trades (fill-level data with fees)COMMENT
LOW⚡src/fill_events_manager.py6974 # Step 2: Collect unique order IDsCOMMENT
LOW⚡src/fill_events_manager.py6981 # Step 3: Fetch closed orders for PnLCOMMENT
LOW⚡src/fill_events_manager.py6984 # Step 4: Merge trades with order PnLCOMMENT
LOW⚡src/utils.py336 # Step 1: remove base keys when *_usd carries the same value.COMMENT
LOW⚡src/utils.py343 # Step 2: remove duplicate permutations sharing identical values.COMMENT
Fake / Example Data14 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_run_fake_live.py366 fake_user, restore = _install_fake_user_override(config, "scenario.hjson", None)CODE
LOW⚡tests/test_run_fake_live.py368 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.md203 Use `--user <fake_user>` or point `live.user` at a fake entry you added to your localCODE
LOW⚡src/tools/run_fake_live.py385 fake_user = user or str(config["live"].get("user") or "fake_runner")CODE
LOW⚡src/tools/run_fake_live.py386 config["live"]["user"] = fake_userCODE
LOW⚡src/tools/run_fake_live.py395 if requested_user == fake_user:CODE
LOW⚡src/tools/run_fake_live.py400 return fake_user, lambda: setattr(passivbot_mod, "load_user_info", original)CODE
Modern AI Meta-Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/optimization/test_gpu_mps.py12821 # quantized touch. Rust merges them before orchestration chooses theSTRING
MEDIUMdocs/plans/live_overengineering_audit_followup_plan.md209### 7. `Passivbot` facade and orchestration ownershipCOMMENT
MEDIUMsrc/fill_events_manager.py2397 # exhausted; orchestration owns indefinitely backed-off retries.COMMENT
MEDIUMsrc/fill_events_manager.py1890 retry_count: int # Diagnostic count; orchestration owns retry timingCODE
MEDIUMsrc/passivbot.py12236 # Configuration parsing and unrelated orchestration errors remainCOMMENT
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpassivbot-rust/src/types.rs501 #[serde(default, alias = "filter_volume_drop_pct")]COMMENT
LOWpassivbot-rust/src/orchestrator.rs341 /// Synthetic backtest-only market fill slippage used for projected close PnL.COMMENT
LOWpassivbot-rust/src/orchestrator.rs361 /// Net realized pnl cumsum peak from fill history (statelessly reconstructed).COMMENT
LOWpassivbot-rust/src/orchestrator.rs401 /// structurally required bundle is ignored by consuming strategyCOMMENT
LOWpassivbot-rust/src/orchestrator.rs441 pub symbol_idx: usize,COMMENT
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