AI Slop Code RIsk Monitor

sunnypilot/sunnypilot

sunnypilot is an open source driver assistance system. sunnypilot offers the user a unique driving experience for over 350 supported car makes and models with modified behaviors of driving assist engagements. sunnypilot complies with the safety policy from comma.ai's openpilot as accurately as possible.

23.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for sunnypilot/sunnypilot, a Python project with 2,138 GitHub stars. SynthScan examined 134,844 lines of code across 1097 source files, recording 1743 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 23.1 (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.

23.1
Adjusted Signal
23.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.1K
Stars
Python
Language
134.8K
Lines of Code
1.1K
Files
1.7K
Pattern Hits
2026-10-12
Scan Date
0.27
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 33.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 2.7/100 · LOW

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

Agent Over-Engineering Ratio 61.9/100 · HIGH

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

PR Review Velocity Impact 71.3/100 · HIGH

Which changes need focused human review? 1743 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 1HIGH 298MEDIUM 64LOW 1380

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 1743 distinct pattern matches across 18 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.

Cross-File Repetition182 hits · 910 pts
SeverityFileLineSnippetContext
HIGHrelease/ci/model_generator.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHrelease/ci/upload_default_model.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/__init__.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/tools/upload_ci_routes.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/tools/pull_footage.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/tools/memory_profiler/mem_usage.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…npilot/sunnypilot/tools/lib/sunnypilot_car_segments.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/capabilities.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/sunnylink_state.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…sunnypilot/sunnylink/tools/generate_settings_schema.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…lot/sunnypilot/sunnylink/tests/test_settings_schema.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/backups/AESCipher.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/backups/utils.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/backups/manager.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/sunnylink/athena/sunnylinkd.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…t/sunnypilot/sunnylink/athena/tests/test_sunnylinkd.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/livedelay/lagd_toggle.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/livedelay/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/models/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/models/manager.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/models/fetcher.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/models/tests/test_default_model.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…enpilot/sunnypilot/models/tests/model_manager_audit.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…pilot/sunnypilot/models/tests/test_manager_download.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/modeld.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/model_adapters.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/compile_modeld.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/stock_dependencies.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/camera_offset_helper.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/modeld_base.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…unnypilot/modeld_v2/tests/test_camera_offset_helper.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…ilot/sunnypilot/modeld_v2/tests/test_compile_modeld.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/tests/test_fallback.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/tests/test_models.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/modeld_v2/tests/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…sunnypilot/modeld_v2/tests/test_combined_pkl_loader.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/ui/quiet_mode.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/car/interfaces.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/car/car_specific.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…ilot/sunnypilot/selfdrive/car/sync_sunnylink_params.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/car/cruise_helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/car/cruise_ext.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…car/intelligent_cruise_button_management/controller.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…ve/car/intelligent_cruise_button_management/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGHopenpilot/sunnypilot/selfdrive/locationd/torqued_ext.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…lot/sunnypilot/selfdrive/pandad/rivian_long_flasher.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…enpilot/sunnypilot/selfdrive/controls/controlsd_ext.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…selfdrive/controls/lib/latcontrol_torque_jerk_aware.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…ypilot/selfdrive/controls/lib/latcontrol_torque_ext.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…t/selfdrive/controls/lib/latcontrol_torque_ext_base.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…/sunnypilot/selfdrive/controls/lib/lane_turn_desire.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…ypilot/selfdrive/controls/lib/blinker_pause_lateral.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…lfdrive/controls/lib/latcontrol_torque_ext_override.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…/sunnypilot/selfdrive/controls/lib/auto_lane_change.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…sunnypilot/selfdrive/controls/lib/e2e_alerts_helper.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…nypilot/selfdrive/controls/lib/longitudinal_planner.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…/selfdrive/controls/lib/tests/test_auto_lane_change.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…drive/controls/lib/tests/test_latcontrol_torque_ext.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…drive/controls/lib/tests/test_blinker_pause_lateral.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
122 more matches not shown…
Hyper-Verbose Identifiers568 hits · 628 pts
SeverityFileLineSnippetContext
LOWtools/scripts/filter_log_message.py37def print_operating_system_log(t, msg):CODE
LOW…ngitudinal_maneuvers/mpc_longitudinal_tuning_report.py28def generate_mpc_tuning_report(e2e=False):CODE
LOWopenpilot/tools/jotpluggler/map.h29class MapDataManager {CODE
LOWopenpilot/tools/jotpluggler/app.h458class MapDataManager;CODE
LOW…npilot/tools/jotpluggler/layouts/max-torque-debug.json1{"current_tab_index":0,"tabs":[{"name":"tab1","root":{"split":"vertical","sizes":[0.249724,0.250829,0.249724,0.249724],"CODE
LOW…pilot/tools/jotpluggler/layouts/torque-controller.json1{"current_tab_index":0,"tabs":[{"name":"Lateral Plan Conformance","root":{"split":"vertical","sizes":[0.250949,0.249051,CODE
LOWopenpilot/tools/jotpluggler/layouts/gps_vs_llk.json1{"current_tab_index":0,"tabs":[{"name":"tab1","root":{"split":"vertical","sizes":[0.333805,0.33239,0.333805],"children":CODE
LOWopenpilot/tools/jotpluggler/layouts/tuning.json1{"current_tab_index":0,"tabs":[{"name":"Lateral","root":{"split":"vertical","sizes":[0.200458,0.199313,0.200458,0.199313CODE
LOWopenpilot/tools/lib/comma_car_segments.py10def get_comma_car_segments_database():CODE
LOWopenpilot/tools/lib/route.py310def get_max_seg_number_cached(sr: 'SegmentRange') -> int:CODE
LOWopenpilot/tools/lib/file_sources.py39def comma_car_segments_source(sr: SegmentRange, seg_idxs: list[int], fns: FileNames, /) -> dict[int, str]:CODE
LOWopenpilot/tools/lib/filereader.py16def internal_source_available(url: str) -> bool:CODE
LOWopenpilot/tools/lib/tests/test_logreader.py245 def test_auto_source_scenarios(self, mocker, is_internal):CODE
LOWopenpilot/tools/lib/tests/test_caching.py15class CachingTestRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWopenpilot/tools/lib/tests/test_caching.py121 def test_recover_from_missing_file(self, host, cache_enabled):CODE
LOWopenpilot/tools/lib/tests/test_route_library.py7 def test_segment_name_formats(self):CODE
LOWopenpilot/tools/replay/lib/ui_helpers.py200def maybe_update_radar_points(lt, lid_overlay):CODE
LOWopenpilot/tools/sim/lib/simulated_sensors.py79 def send_fake_driver_monitoring(self):CODE
LOW…npilot/sunnypilot/tools/lib/sunnypilot_car_segments.py19def sunnypilot_car_segments_source(sr, seg_idxs, fns, /):CODE
LOWopenpilot/sunnypilot/sunnylink/capabilities.py82def _resolve_brand_capabilities(caps: dict, bundle_platform: str, CP) -> None:CODE
LOWopenpilot/sunnypilot/sunnylink/capabilities.py185def generate_capabilities_json(params: Params | None = None) -> str:CODE
LOW…sunnypilot/sunnylink/tools/generate_settings_schema.py91def generate_schema_compressed() -> str:CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py352def check_rule_wellformedness(data: dict, result: ValidationResult) -> None:CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py35 def test_protocol_version_in_capability_fields(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py38 def test_protocol_version_has_label(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py41 def test_protocol_version_default_is_set(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py44 def test_protocol_version_emitted(self, caps):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py49 def test_protocol_version_matches_constant(self, caps):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py52 def test_protocol_version_is_known(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py59 def test_protocol_version_matches_latest_known(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py66 def test_subaru_has_sng_field_present(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py69 def test_hyundai_alpha_long_available_field_present(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py72 def test_subaru_has_sng_default_false(self, caps):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py75 def test_hyundai_alpha_long_available_default_false(self, caps):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py84 def test_all_fields_have_labels(self):CODE
LOW⚡…npilot/sunnypilot/sunnylink/tests/test_capabilities.py88 def test_string_defaults_are_strings(self, caps):CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py91def _references_capability_field(rules: list[dict[str, Any]] | None, field: str) -> bool:CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py114 def test_mads_main_cruise_has_brand_gate(self, schema):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py121 def test_mads_unified_engagement_has_brand_gate(self, schema):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py130 def test_lateral_maneuver_mode_in_test_maneuvers(self, schema):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py137 def test_test_maneuvers_section_requires_attestation(self, schema):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py142 def test_test_maneuvers_section_visibility_gate(self, schema):CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py157 def test_validator_accepts_real_json(self):CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py171 def test_torque_versions_match_generated_options(self, schema):CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py179 def test_torque_versions_path_resolves(self):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py190 def test_sp_dev_items_gate_on_is_sp_release(self, schema, key):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py199 def test_disengage_on_accelerator_has_no_offroad_only(self, schema):CODE
LOW⚡…ot/sunnypilot/sunnylink/tests/test_settings_changes.py204 def test_dynamic_experimental_has_no_offroad_only(self, schema):CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py216 def test_offroad_only_replaced_with_not_engaged(self, schema, key):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py104 def test_all_items_have_key_and_widget(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py112 def test_sub_panel_items_have_key_and_widget(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py122 def test_vehicle_settings_structure(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py152 def test_all_schema_keys_exist_in_params(self, schema, all_param_keys):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py158 def test_all_capability_fields_are_declared(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py165 def test_capability_fields_match_constant(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py215 def test_all_panel_rules_well_formed(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py223 def test_all_vehicle_rules_well_formed(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py227 def test_no_self_referencing_visibility(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py247 def test_expected_panels_exist(self, schema):CODE
LOW⚡…lot/sunnypilot/sunnylink/tests/test_settings_schema.py252 def test_mads_sub_panel_exists(self, schema):CODE
508 more matches not shown…
Empty Error Handlers112 hits · 560 pts
SeverityFileLineSnippetContext
HIGHtools/scripts/live_cpu_and_temp.py87except IndexError:CODE
HIGHtools/scripts/car/can_print_changes.py63except KeyboardInterrupt:CODE
HIGHdocs/serve.py542except KeyboardInterrupt:CODE
HIGHopenpilot/tools/clip/run.py225except UnknownKeyName:CODE
HIGHopenpilot/tools/jotpluggler/math_eval.py45except SyntaxError:CODE
HIGHopenpilot/tools/lib/auth.py67except ConnectionError:CODE
HIGHopenpilot/tools/lib/logreader.py130except capnp.lib.capnp.KjException:CODE
HIGHopenpilot/tools/lib/url_file.py45except OSError:CODE
HIGHopenpilot/tools/lib/auth_config.py29except FileNotFoundError:CODE
HIGHopenpilot/tools/lib/file_downloader.py93except OSError:CODE
HIGHopenpilot/tools/lib/file_downloader.py201except OSError:CODE
HIGHopenpilot/tools/lib/file_downloader.py178except OSError:CODE
HIGHopenpilot/tools/lib/filereader.py27except (socket.gaierror, ConnectionRefusedError):CODE
HIGHopenpilot/tools/replay/can_replay.py49except usb1.USBErrorTimeout:CODE
HIGHopenpilot/sunnypilot/sunnylink/athena/sunnylinkd.py253except Exception:CODE
HIGHopenpilot/sunnypilot/models/helpers.py115except Exception:CODE
HIGHopenpilot/sunnypilot/modeld_v2/compile_modeld.py54except ImportError:CODE
HIGHopenpilot/sunnypilot/modeld_v2/compile_modeld.py64except ImportError:CODE
HIGHopenpilot/sunnypilot/modeld_v2/helpers.py31except (ImportError, AttributeError):CODE
HIGHopenpilot/sunnypilot/selfdrive/car/interfaces.py101except RuntimeError:CODE
HIGH…lot/sunnypilot/selfdrive/pandad/rivian_long_flasher.py51except Exception:CODE
HIGH…lot/sunnypilot/selfdrive/pandad/rivian_long_flasher.py69except Exception:CODE
HIGHopenpilot/sunnypilot/system/statsd.py57except zmq.error.Again:CODE
HIGHopenpilot/sunnypilot/mapd/mapd_manager.py138except FileExistsError:CODE
HIGHopenpilot/selfdrive/ui/ui.py37except OSError:CODE
HIGH…npilot/selfdrive/ui/sunnypilot/layouts/settings/osm.py70except OSError:CODE
HIGH…/selfdrive/ui/sunnypilot/layouts/settings/developer.py82except Exception:CODE
HIGH…ilot/selfdrive/ui/sunnypilot/layouts/settings/trips.py48except Exception:CODE
HIGH…youts/settings/steering_sub_layouts/torque_settings.py161except (ValueError, KeyError):CODE
HIGH…youts/settings/steering_sub_layouts/torque_settings.py171except (ValueError, KeyError):CODE
HIGH…enpilot/selfdrive/ui/mici/layouts/settings/firehose.py65except Exception:CODE
HIGHopenpilot/selfdrive/ui/lib/prime_state.py45except (ValueError, TypeError):CODE
HIGHopenpilot/selfdrive/car/card.py148except Exception:CODE
HIGHopenpilot/selfdrive/test/mem_usage.py41except AttributeError:CODE
HIGHopenpilot/selfdrive/test/process_replay/capture.py49except ImportError:CODE
HIGHopenpilot/selfdrive/modeld/helpers.py33except Exception:CODE
HIGHopenpilot/system/logmessaged.py51except ValueError:CODE
HIGHopenpilot/system/tombstoned.py129except PermissionError:CODE
HIGHopenpilot/system/tombstoned.py34except Exception:CODE
HIGHopenpilot/system/tombstoned.py150except Exception:CODE
HIGHopenpilot/system/tombstoned.py86except ValueError:CODE
HIGHopenpilot/system/proclogd.py184except OSError:CODE
HIGHopenpilot/system/proclogd.py189except OSError:CODE
HIGHopenpilot/system/ubloxd/pigeond.py157except TimeoutError:CODE
HIGHopenpilot/system/ui/mici_updater.py139except ValueError:CODE
HIGHopenpilot/system/ui/tici_updater.py88except ValueError:CODE
HIGHopenpilot/system/ui/lib/egl.py172except OSError:CODE
HIGHopenpilot/system/ui/lib/application.py703except KeyboardInterrupt:CODE
HIGHopenpilot/system/hardware/hardwared.py288except queue.Empty:CODE
HIGHopenpilot/system/hardware/hardwared.py408except Exception:CODE
HIGHopenpilot/system/hardware/hardwared.py186except queue.Full:CODE
HIGHopenpilot/system/hardware/chestnut/monitoring.py39except usb1.USBError:CODE
HIGHopenpilot/system/hardware/chestnut/flash.py409except OSError:CODE
HIGHopenpilot/system/hardware/chestnut/flash.py69except OSError:CODE
HIGHopenpilot/system/sensord/sensord.py133except KeyboardInterrupt:CODE
HIGHopenpilot/system/sensord/sensord.py73except Sensor.DataNotReady:CODE
HIGHopenpilot/system/manager/build.py41except Exception:CODE
HIGHopenpilot/system/manager/process.py206except (OSError, FileNotFoundError):CODE
HIGHopenpilot/system/manager/helpers.py39except (OSError, UnicodeDecodeError):CODE
HIGHopenpilot/system/manager/manager.py64except FileExistsError:CODE
52 more matches not shown…
Excessive Try-Catch Wrapping286 hits · 326 pts
SeverityFileLineSnippetContext
LOWtools/test_runner.py165 except Exception:CODE
LOWtools/test_runner.py222 except Exception:CODE
MEDIUMtools/scripts/setup_ssh_keys.py23 print("Error getting public keys from github")CODE
LOWtools/scripts/test_fw_query_on_routes.py150 except Exception:CODE
LOWtools/scripts/filter_log_message.py41 except Exception:CODE
MEDIUMtools/scripts/filter_log_message.py26def print_logmessage(t, msg, min_level):CODE
LOWtools/scripts/car/max_lat_accel.py93 except Exception:CODE
MEDIUMtools/scripts/car/vw_mqb_config.py69 print("Error fetching data from EPS")CODE
MEDIUMtools/scripts/car/vw_mqb_config.py113 print("Error fetching parameterization data from EPS!")CODE
MEDIUM⚡release/ci/squash_and_merge_prs.py175 print(f"Error processing PR #{pr_number}:")CODE
MEDIUM⚡release/ci/squash_and_merge_prs.py178 print(f"Error output: {output}")CODE
LOW⚡release/ci/squash_and_merge_prs.py182 except Exception as e:CODE
LOWrelease/ci/squash_and_merge_prs.py193 except Exception as e:CODE
MEDIUMrelease/ci/squash_and_merge_prs.py195 print(f"Error in process_pr: {str(e)}")CODE
LOWrelease/ci/squash_and_merge_prs.py212 except Exception as e:CODE
MEDIUMrelease/ci/squash_and_merge_prs.py120def process_pr(pr_data, source_branch, target_branch, squash_script_path):CODE
LOWrelease/ci/upload_default_model.py98 except Exception:CODE
LOWdocs/serve.py540 except Exception as e:CODE
LOWopenpilot/tools/clip/run.py189 except Exception as e:CODE
MEDIUMopenpilot/tools/clip/run.py183def _worker(self, camera_paths, start_time, end_time, fps, use_qcam, frame_size)CODE
LOWopenpilot/tools/jotpluggler/math_eval.py143 except Exception as err:CODE
LOWopenpilot/tools/plotjuggler/juggle.py122 except Exception:CODE
LOWopenpilot/tools/lib/auth.py142 except Exception:CODE
LOWopenpilot/tools/lib/logreader.py188 except Exception as e:CODE
LOWopenpilot/tools/lib/auth_config.py16 except Exception:CODE
MEDIUMopenpilot/tools/lib/auth_config.py11def get_token():CODE
LOWopenpilot/tools/lib/route.py201 except Exception as e:CODE
LOWopenpilot/tools/lib/route.py316 except Exception as e:CODE
LOWopenpilot/tools/lib/file_downloader.py38 except Exception as e:CODE
LOWopenpilot/tools/lib/file_downloader.py90 except Exception:CODE
LOWopenpilot/tools/lib/file_downloader.py175 except Exception:CODE
LOWopenpilot/tools/lib/file_downloader.py184 except Exception as e:CODE
LOWopenpilot/tools/lib/file_downloader.py198 except Exception as e:CODE
LOWopenpilot/tools/lib/vidindex.py287 except Exception as e:CODE
LOWopenpilot/tools/sim/lib/simulated_car.py111 except Exception:CODE
LOWopenpilot/tools/camerastream/ffmpeg_decoder.py147 except Exception:CODE
LOWopenpilot/sunnypilot/tools/pull_footage.py130 except Exception as e:CODE
MEDIUMopenpilot/sunnypilot/tools/pull_footage.py131 print(f"Error: {e}")CODE
LOWopenpilot/sunnypilot/tools/memory_profiler/mem_usage.py158 except Exception as e:CODE
MEDIUMopenpilot/sunnypilot/tools/memory_profiler/mem_usage.py159 print(f"Error: {e}")CODE
LOWopenpilot/sunnypilot/sunnylink/uploader.py192 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/uploader.py244 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/api.py55 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/api.py122 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/utils.py54 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/capabilities.py165 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/capabilities.py177 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py83 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py97 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py139 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py201 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/registration_manager.py28 except Exception:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py68 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py71 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py84 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py87 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py131 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py151 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py166 except Exception as e:CODE
LOWopenpilot/sunnypilot/sunnylink/backups/utils.py134 except Exception as e:CODE
226 more matches not shown…
Deep Nesting299 hits · 289 pts
SeverityFileLineSnippetContext
LOWtools/test_runner.py137CODE
LOWtools/test_runner.py260CODE
LOWtools/car_porting/measure_steering_accuracy.py40CODE
LOWtools/scripts/cycle_alerts.py19CODE
LOWtools/scripts/watch_timings.py55CODE
LOWtools/scripts/fingerprint_from_route.py7CODE
LOWtools/scripts/debug_fw_fingerprinting_offline.py8CODE
LOWtools/scripts/car/toyota_eps_factor.py19CODE
LOWtools/scripts/car/can_print_changes.py14CODE
LOWtools/scripts/car/can_printer.py10CODE
LOWtools/scripts/car/max_lat_accel.py25CODE
LOWrelease/ci/model_generator.py16CODE
LOWrelease/ci/squash_and_merge_prs.py66CODE
LOWrelease/ci/squash_and_merge_prs.py120CODE
LOWdocs/serve.py120CODE
LOWdocs/serve.py283CODE
LOWdocs/serve.py524CODE
LOWopenpilot/tools/clip/run.py139CODE
LOWopenpilot/tools/clip/run.py285CODE
LOW…npilot/tools/longitudinal_maneuvers/generate_report.py22CODE
LOWopenpilot/tools/cabana/dbc/generate_dbc_json.py9CODE
LOWopenpilot/tools/lib/auth.py113CODE
LOWopenpilot/tools/lib/logreader.py152CODE
LOWopenpilot/tools/lib/logreader.py205CODE
LOWopenpilot/tools/lib/route.py99CODE
LOWopenpilot/tools/lib/file_downloader.py103CODE
LOWopenpilot/tools/lib/vidindex.py122CODE
LOWopenpilot/tools/lib/vidindex.py261CODE
LOWopenpilot/tools/lib/framereader.py127CODE
LOWopenpilot/tools/lateral_maneuvers/lateral_maneuversd.py103CODE
LOWopenpilot/tools/lateral_maneuvers/generate_report.py27CODE
LOWopenpilot/tools/replay/can_replay.py58CODE
LOWopenpilot/tools/sim/bridge/common.py100CODE
LOW…npilot/tools/sim/bridge/metadrive/metadrive_process.py51CODE
LOWopenpilot/tools/sim/lib/manual_ctrl.py96CODE
LOWopenpilot/tools/sim/lib/keyboard_ctrl.py58CODE
LOWopenpilot/tools/camerastream/compressed_vipc.py27CODE
LOWopenpilot/sunnypilot/tools/upload_ci_routes.py22CODE
LOWopenpilot/sunnypilot/sunnylink/uploader.py65CODE
LOWopenpilot/sunnypilot/sunnylink/uploader.py90CODE
LOWopenpilot/sunnypilot/sunnylink/uploader.py170CODE
LOWopenpilot/sunnypilot/sunnylink/api.py65CODE
LOWopenpilot/sunnypilot/sunnylink/utils.py104CODE
LOWopenpilot/sunnypilot/sunnylink/capabilities.py82CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py28CODE
LOWopenpilot/sunnypilot/sunnylink/statsd.py103CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py135CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py216CODE
LOW…sunnypilot/sunnylink/tools/generate_settings_schema.py117CODE
LOWopenpilot/sunnypilot/sunnylink/tools/apply_macros.py87CODE
LOWopenpilot/sunnypilot/sunnylink/tools/apply_macros.py112CODE
LOWopenpilot/sunnypilot/sunnylink/tools/apply_macros.py177CODE
LOW…ilot/sunnypilot/sunnylink/tools/compile_settings_ui.py68CODE
LOW…ilot/sunnypilot/sunnylink/tools/compile_settings_ui.py128CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py167CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py254CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py297CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py352CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py377CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py408CODE
239 more matches not shown…
Modern Structural Boilerplate107 hits · 117 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/lib/kbhit.py16 def set_kbhit_terminal(self) -> None:CODE
LOWopenpilot/tools/lib/kbhit.py31 def set_normal_term(self) -> None:CODE
LOWopenpilot/sunnypilot/sunnylink/sunnylink_state.py230 def set_settings_open(self, _open: bool) -> None:CODE
LOWopenpilot/sunnypilot/sunnylink/backups/manager.py69 def _update_progress(self, progress: float, op_type: OperationType) -> None:CODE
LOW⚡openpilot/sunnypilot/selfdrive/car/cruise_helpers.py36 def update_button_frame_counts(self, CS) -> None:CODE
LOW⚡openpilot/sunnypilot/selfdrive/car/cruise_helpers.py46 def update_experimental_mode(self, events, experimental_mode) -> None:CODE
LOWopenpilot/sunnypilot/selfdrive/car/cruise_ext.py30def update_manual_button_timers(CS: car.CarState, button_timers: dict[car.CarState.ButtonEvent.Type, int]) -> None:CODE
LOW⚡openpilot/sunnypilot/selfdrive/car/cruise_ext.py111 def update_speed_limit_assist(self, is_metric, LP_SP: custom.LongitudinalPlanSP) -> None:CODE
LOW⚡openpilot/sunnypilot/selfdrive/car/cruise_ext.py133 def update_speed_limit_assist_v_cruise_non_pcm(self) -> None:CODE
LOW…car/intelligent_cruise_button_management/controller.py53 def update_calculations(self, CS: car.CarState, LP_SP: custom.LongitudinalPlanSP) -> None:CODE
LOW…car/intelligent_cruise_button_management/controller.py109 def update_readiness(self, CS: car.CarState, CC: car.CarControl) -> None:CODE
LOW…t/sunnypilot/selfdrive/car/tests/test_custom_cruise.py50 def set_custom_increments(self, enabled: bool, short_inc: int, long_inc: int) -> None:CODE
LOW…/sunnypilot/selfdrive/controls/lib/lane_turn_desire.py31 def update_params(self) -> None:CODE
LOW…/sunnypilot/selfdrive/controls/lib/lane_turn_desire.py36 def update_lane_turn(self, blindspot_left: bool, blindspot_right: bool, left_blinker: bool, right_blinker: bool, v_egoCODE
LOW⚡…/sunnypilot/selfdrive/controls/lib/auto_lane_change.py66 def update_params(self) -> None:CODE
LOW⚡…/sunnypilot/selfdrive/controls/lib/auto_lane_change.py71 def update_lane_change_timers(self, blindspot_detected: bool) -> None:CODE
LOW…/sunnypilot/selfdrive/controls/lib/auto_lane_change.py100 def update_lane_change(self, blindspot_detected: bool, brake_pressed: bool) -> None:CODE
LOWopenpilot/sunnypilot/selfdrive/controls/lib/relc.py37 def update_params(self) -> None:CODE
LOWopenpilot/sunnypilot/selfdrive/controls/lib/dec/dec.py200 def set_mpc_fcw_crash_cnt(self) -> None:CODE
LOWopenpilot/sunnypilot/selfdrive/controls/lib/dec/dec.py204 def _update_calculations(self, sm: messaging.SubMaster) -> None:CODE
LOW…drive/controls/lib/speed_limit/speed_limit_resolver.py77 def update_speed_limit_states(self) -> None:CODE
LOW⚡…lfdrive/controls/lib/speed_limit/speed_limit_assist.py123 def update_active_event(self, events_sp: EventsSP) -> None:CODE
LOW⚡…lfdrive/controls/lib/speed_limit/speed_limit_assist.py143 def update_params(self) -> None:CODE
LOW⚡…lfdrive/controls/lib/speed_limit/speed_limit_assist.py149 def update_buttons(self, release_toggle: int) -> None:CODE
LOW…lfdrive/controls/lib/speed_limit/speed_limit_assist.py176 def update_calculations(self, v_cruise_cluster: float) -> None:CODE
LOW…lfdrive/controls/lib/speed_limit/speed_limit_assist.py363 def update_events(self, events_sp: EventsSP) -> None:CODE
LOW…enpilot/sunnypilot/selfdrive/controls/lib/nnlc/nnlc.py90 def update_neural_network_feedforward(self, CS, params, calibrated_pose) -> None:CODE
LOW⚡…controls/lib/smart_cruise_control/vision_controller.py78 def _update_params(self) -> None:CODE
LOW⚡…controls/lib/smart_cruise_control/vision_controller.py82 def _update_calculations(self, sm: messaging.SubMaster) -> None:CODE
LOW⚡…ve/controls/lib/smart_cruise_control/map_controller.py103 def update_calculations(self) -> None:CODE
LOWopenpilot/sunnypilot/mapd/mapd_manager.py113def update_osm_db() -> None:CODE
LOWopenpilot/sunnypilot/mapd/mapd_installer.py28def update_installed_version(version: str, params: Params | None = None) -> None:CODE
LOW…enpilot/sunnypilot/mapd/live_map_data/base_map_data.py30 def update_location(self) -> None:CODE
LOWopenpilot/sunnypilot/mapd/live_map_data/osm_map_data.py22 def update_location(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py159 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py189 def _update_status(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py220 def _update_chestnut_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py242 def update_params(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py304 def set_override_interactive_timeout(self, timeout: int | None) -> None:CODE
LOWopenpilot/selfdrive/ui/onroad/hud_renderer.py75 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/onroad/exp_button.py27 def set_rect(self, rect: rl.Rectangle) -> None:CODE
LOWopenpilot/selfdrive/ui/onroad/exp_button.py30 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/sunnypilot/ui_state.py84 def update_onroad_brightness(self, has_alert: bool) -> None:CODE
LOWopenpilot/selfdrive/ui/sunnypilot/ui_state.py148 def update_params(self) -> None:CODE
LOW…enpilot/selfdrive/ui/sunnypilot/onroad/hud_renderer.py47 def _update_state(self) -> None:CODE
LOW…elfdrive/ui/sunnypilot/onroad/developer_ui/__init__.py57 def _update_state(self) -> None:CODE
LOW…ot/selfdrive/ui/sunnypilot/mici/onroad/hud_renderer.py18 def _update_state(self) -> None:CODE
LOW…/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py67 def set_parent_rect(self, parent_rect: rl.Rectangle) -> None:CODE
LOW…/selfdrive/ui/sunnypilot/layouts/settings/sunnylink.py119 def set_parent_rect(self, parent_rect: rl.Rectangle) -> None:CODE
LOW…/ui/sunnypilot/layouts/settings/vehicle/brands/base.py15 def update_settings(self) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/onroad/hud_renderer.py67 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/onroad/hud_renderer.py148 def _update_state(self) -> None:CODE
LOW…/selfdrive/ui/mici/layouts/settings/network/wifi_ui.py191 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOW…/selfdrive/ui/mici/layouts/settings/network/esim_ui.py286 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/widgets/button.py59 def set_position(self, x: float, y: float) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/widgets/button.py183 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay_script.py76 def set_send(self, fn: Callable, wait_after: int = WAIT_SHORT) -> None:CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay_script.py117def set_prime_state(prime_type: PrimeType) -> None:CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay_script.py141def set_updater_state(state: str) -> None:CODE
LOWopenpilot/selfdrive/ui/lib/prime_state.py65 def set_type(self, prime_type: PrimeType) -> None:CODE
47 more matches not shown…
Over-Commented Block61 hits · 61 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/jotpluggler/app.h1#pragma onceCOMMENT
LOWopenpilot/tools/jotpluggler/util.h1#pragma onceCOMMENT
LOWopenpilot/tools/jotpluggler/dbc.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/panda.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/threadpool.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/mainwin.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/app.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/chart/chartswidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/chart/chart.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/dialogs/streamselector.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/binaryview.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/detailwidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/videowidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/messageswidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/signalview.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/ui/widgets/cameraview.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/streams/abstractstream.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/utils/util.h1#pragma onceCOMMENT
LOWopenpilot/tools/lib/vidindex.py181 nal_unit_type = HevcNalUnitType((nal_unit_header[0] >> 1) & 0x3F)COMMENT
LOWopenpilot/tools/lib/vidindex.py201 # if( dependent_slice_segments_enabled_flag )COMMENT
LOWopenpilot/tools/lib/vidindex.py221 # for now since we don't use it return -1 for slice_typeCOMMENT
LOWopenpilot/tools/replay/route.h1#pragma onceCOMMENT
LOWopenpilot/tools/replay/replay.h1#pragma onceCOMMENT
LOWopenpilot/sunnypilot/selfdrive/locationd/locationd.h1#pragma onceCOMMENT
LOW…npilot/sunnypilot/selfdrive/locationd/models/live_kf.h1#pragma onceCOMMENT
LOW…npilot/sunnypilot/system/sensord/sensors/bmx055_magn.h1#pragma onceCOMMENT
LOW…npilot/sunnypilot/system/sensord/sensors/bmx055_magn.h21#define BMX055_MAGN_I2C_REG_DIG_Z4_MSB 0x63COMMENT
LOWopenpilot/sunnypilot/system/sensord/sensors/constants.h1#pragma onceCOMMENT
LOW…pilot/sunnypilot/system/sensord/sensors/bmx055_accel.h1#pragma onceCOMMENT
LOW…pilot/sunnypilot/system/sensord/sensors/bmx055_accel.h21#define BMX055_ACCEL_HBW_DISABLE 0b00000000COMMENT
LOW…lot/sunnypilot/system/sensord/sensors/mmc5603nj_magn.h1#pragma onceCOMMENT
LOW…pilot/sunnypilot/system/sensord/sensors/lsm6ds3_gyro.h1#pragma onceCOMMENT
LOW…ilot/sunnypilot/system/sensord/sensors/lsm6ds3_accel.h1#pragma onceCOMMENT
LOW…ilot/sunnypilot/system/sensord/sensors/lsm6ds3_accel.h21#define LSM6DS3TRC_ACCEL_CHIP_ID 0x6ACOMMENT
LOW…npilot/sunnypilot/system/sensord/sensors/bmx055_gyro.h1#pragma onceCOMMENT
LOWopenpilot/selfdrive/pandad/panda.h1#pragma onceCOMMENT
LOWopenpilot/system/loggerd/loggerd.h1#pragma onceCOMMENT
LOWopenpilot/system/loggerd/encoder/v4l_decoder.h1#pragma onceCOMMENT
LOWopenpilot/system/loggerd/encoder/v4l_decoder.h21#endifCOMMENT
LOWopenpilot/system/loggerd/encoder/encoder.h1#pragma onceCOMMENT
LOWopenpilot/system/camerad/sensors/sensor.h1#pragma onceCOMMENT
LOWopenpilot/system/camerad/cameras/spectra.h1#pragma onceCOMMENT
LOWopenpilot/system/camerad/cameras/spectra.h21COMMENT
LOWopenpilot/system/camerad/cameras/nv12_info.h1#pragma onceCOMMENT
LOWopenpilot/system/qcomgpsd/nmeaport.py41 # constellation enum:COMMENT
LOWopenpilot/common/swaglog.h1#pragma onceCOMMENT
LOWopenpilot/common/swaglog.h61 } else { \COMMENT
LOWopenpilot/common/util.h1#pragma onceCOMMENT
LOWopenpilot/common/hardware/hw.h1#pragma onceCOMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py301#��0�H!O7�S�m��_- ��I2�\�I�����#��f(��4��jsq�A����59=���גeГC<��??��?0?0���}�zܸ���ˣT���岭V���romɵ�ч$���H�E����COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py321#�ɨ���U����� ��4İ�;Dۺ���n���G�}Xϳ�2'���_Ќ�XQ;��3�LF *7o����DK��y�&�?0�MF�/��Yfqh4��NVY=qo�qԚ��i&��U&Y$V���>COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py341#�;�;�^l��y��/��^���1�t��o{Y��j������'���ɣ�l����j��0�֨���>��8�J����6m��/�d�������--$���%��2�# p~�[s�U�"?r�E??�ns�COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py361#����w6�����N�N����t���F??o�7E�U�Ւ�[ ��E����M��N]UN�c���ueB/PØ�?0q�|������k xfD�-���݇�=�|?nD�Q���I͵��BVs-�9COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py381#��i�+�mڟ@��-���uo��??�r:\t �X���K?0:�m��J�$Kfk_ �6KC)?0=-7��ė��++�#���� �3<J�-�B��6Ae��(u�X�h�*�x���1< �yf�COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py401#(�:�� ??Nˈfd�Qt�2����q�1Q56ᒸ�p��V�C0v�`�dc��fs����Hк(C9|k�!H�֚�p��9�>�[�� Ͻ���{p+T1���;w?r����Ińh��COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py421#�/v�3�ܙ��|z��R���#�������*�2I�2{�d‘G��3N�]��Z�g�ġ�1��5ۢ���~��0���^?n7j'�Ju=�< :���h��|D�(/�#4�SuY/9���I9x�i9F�COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py441#?n�������M���� ��{dLG��7#Th�G4Z�z�F���&EZv�η��t�5�nHO�ַP?r�:�?r���{��f��D �s3lf8G��#R���x8���t1xW|!����COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py461#fX�?rV�E�?0Ͱ��Q�Z�![�5 ]�sA`6���-�%�X�ƃV��w�`�9���\j��m����e�ԏ��\?0�+;��_���x�#1��Xv�`��J?r()�#��(c"��Ȧ��R�YCOMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py481#1w� �s�<���� �| �?r�Z� G �K�%�%��]S8v�^�=˝mi��_(6�|�?n��(�8��I�/��Q���ԭ���n�"��G�N�@�u!�p� =W�>>55�4�%��s$%�O�COMMENT
LOWopenpilot/third_party/copyparty/copyparty-sfx.py501#b�'�vC��z-߫-�ZEܧ藯����?n��X��:|�RygW� �}X���d�s|g�LF�2kw(���߿���0h��q���3���@z7۾(��)�05:|����fS'�l��ƚ���;?0;�COMMENT
1 more matches not shown…
Redundant / Tautological Comments35 hits · 52 pts
SeverityFileLineSnippetContext
LOWlaunch_chffrplus.sh20 # Check if AGNOS update is requiredCOMMENT
LOWtools/scripts/test_fw_query_on_routes.py85 # Check if fuzzy match was correctCOMMENT
LOWrelease/ci/squash_and_merge_prs.py74 # Check if checks have passedCOMMENT
LOWrelease/ci/squash_and_merge_prs.py93 # Check if all checks are successful except for our reset-and-squash checkCOMMENT
LOWrelease/ci/squash_and_merge.py33 # Check if the target branch exists. If not, create it from the base branch.COMMENT
LOWopenpilot/selfdrive/ui/onroad/cameraview.py313 # Check if target has frames readyCOMMENT
LOWopenpilot/selfdrive/ui/onroad/augmented_road_view.py144 # Check if camera calibration data is available and validCOMMENT
LOWopenpilot/selfdrive/ui/onroad/augmented_road_view.py162 # Check if we can use cached matrixCOMMENT
LOWopenpilot/selfdrive/ui/onroad/alert_renderer.py88 # Check if selfdriveState messages have stopped arrivingCOMMENT
LOWopenpilot/selfdrive/ui/onroad/model_renderer.py92 # Check if data is up-to-dateCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/cameraview.py360 # Check if target has frames readyCOMMENT
LOW…npilot/selfdrive/ui/mici/onroad/augmented_road_view.py273 # Check if camera calibration data is available and validCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/alert_renderer.py128 # Check if selfdriveState messages have stopped arrivingCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/model_renderer.py113 # Check if data is up-to-dateCOMMENT
LOWopenpilot/selfdrive/ui/layouts/settings/software.py157 # Check if we should start checking or start downloadingCOMMENT
LOWopenpilot/selfdrive/locationd/paramsd.py214 # Check if car model matchesCOMMENT
LOWopenpilot/selfdrive/locationd/paramsd.py218 # Check if starting values are saneCOMMENT
LOWopenpilot/selfdrive/selfdrived/state.py92 # Check if openpilot is engaged and actuators are enabledCOMMENT
LOWopenpilot/system/ui/sunnypilot/widgets/list_view.py195 # Check if this specific button is enabledCOMMENT
LOWopenpilot/system/ui/lib/wrap_text.py75 # Check if word alone exceeds max width (need to break the word)COMMENT
LOWopenpilot/system/ui/lib/wrap_text.py90 # Check if word fits on current lineCOMMENT
LOWopenpilot/system/ui/widgets/label.py361 # Check if cache is still validCOMMENT
LOWopenpilot/system/ui/widgets/label.py492 # Check if this line fitsCOMMENT
LOWopenpilot/system/hardware/hardwared.py454 # Check if we need to shut downCOMMENT
LOWopenpilot/system/sensord/sensors/lsm6ds3_gyro.py62 # Check if gyroscope data is ready, since it's shared with accelerometerCOMMENT
LOWopenpilot/system/sensord/sensors/lsm6ds3_gyro.py110 # Set ODR to 208Hz, FS to 2000dpsCOMMENT
LOWopenpilot/system/sensord/sensors/lsm6ds3_accel.py56 # Set ODR to 104 Hz, FS to ±2g (default)COMMENT
LOWopenpilot/system/sensord/sensors/lsm6ds3_accel.py67 # Check if data is ready since IRQ is shared with gyroCOMMENT
LOWopenpilot/system/updated/updated.py106 # Set protocol to the new version (default after git 2.26) to reduce dataCOMMENT
LOWopenpilot/system/updated/updated.py411 # Check if we just performed an updateCOMMENT
LOWopenpilot/system/athena/athenad.py297 # Check if uploading over metered connection is allowedCOMMENT
LOWopenpilot/system/athena/athenad.py760 # Set TOS to keep connection responsive while under load.COMMENT
LOWopenpilot/system/athena/athenad.py878 # Check if the file is emptyCOMMENT
LOW.github/workflows/sunnypilot-master-dev-prep.yaml90 # Check if source branch existsCOMMENT
LOW.github/workflows/sunnypilot-master-dev-prep.yaml99 # Check if target branch existsCOMMENT
Decorative Section Separators13 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUM⚡pyproject.toml11# ------------------------------------------COMMENT
MEDIUM⚡pyproject.toml13# ------------------------------------------COMMENT
MEDIUM⚡pyproject.toml16# ------------------------------------------COMMENT
MEDIUMtools/setup_dependencies.sh41 # ------------------------------------------------COMMENT
MEDIUMtools/setup_dependencies.sh49 # ------------------------------------------------COMMENT
MEDIUM⚡…npilot/system/ui/lib/tests/test_handle_state_change.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…npilot/system/ui/lib/tests/test_handle_state_change.py52# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…npilot/system/ui/lib/tests/test_handle_state_change.py337# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…npilot/system/ui/lib/tests/test_handle_state_change.py342# ---------------------------------------------------------------------------COMMENT
MEDIUM…npilot/system/ui/lib/tests/test_handle_state_change.py416# ---------------------------------------------------------------------------COMMENT
MEDIUM…npilot/system/ui/lib/tests/test_handle_state_change.py418# ---------------------------------------------------------------------------COMMENT
MEDIUM…npilot/system/ui/lib/tests/test_handle_state_change.py841# ---------------------------------------------------------------------------COMMENT
MEDIUM…npilot/system/ui/lib/tests/test_handle_state_change.py843# ---------------------------------------------------------------------------COMMENT
Unused Imports41 hits · 40 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/sim/lib/simulated_sensors.py11CODE
LOWopenpilot/tools/sim/lib/simulated_sensors.py11CODE
LOWopenpilot/tools/sim/lib/keyboard_ctrl.py10CODE
LOW…sunnypilot/sunnylink/tools/generate_settings_schema.py8CODE
LOWopenpilot/sunnypilot/sunnylink/tools/apply_macros.py22CODE
LOW…ilot/sunnypilot/sunnylink/tools/extract_settings_ui.py17CODE
LOW…ilot/sunnypilot/sunnylink/tools/compile_settings_ui.py30CODE
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py14CODE
LOW…npilot/sunnypilot/sunnylink/tests/test_capabilities.py13CODE
LOW…ot/sunnypilot/sunnylink/tests/test_settings_changes.py12CODE
LOW…sunnypilot/sunnylink/tests/test_compile_settings_ui.py16CODE
LOWopenpilot/sunnypilot/sunnylink/athena/sunnylinkd.py8CODE
LOWopenpilot/selfdrive/ui/mici/layouts/home.py1CODE
LOWopenpilot/selfdrive/ui/mici/layouts/offroad_alerts.py1CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay_script.py1CODE
LOWopenpilot/selfdrive/test/process_replay/__init__.py1CODE
LOWopenpilot/selfdrive/test/process_replay/__init__.py1CODE
LOWopenpilot/selfdrive/test/process_replay/__init__.py1CODE
LOWopenpilot/selfdrive/test/process_replay/__init__.py1CODE
LOWopenpilot/selfdrive/test/process_replay/__init__.py1CODE
LOWopenpilot/selfdrive/pandad/__init__.py1CODE
LOWopenpilot/selfdrive/pandad/__init__.py1CODE
LOWopenpilot/system/ui/widgets/__init__.py1CODE
LOWopenpilot/system/ui/widgets/nav_widget.py1CODE
LOWopenpilot/system/athena/athenad.py2CODE
LOWopenpilot/common/esim/__init__.py1CODE
LOWopenpilot/common/esim/__init__.py1CODE
LOWopenpilot/common/esim/__init__.py1CODE
LOWopenpilot/common/esim/__init__.py1CODE
LOWopenpilot/third_party/copyparty/copyparty-sfx.py3CODE
LOWopenpilot/third_party/copyparty/copyparty-sfx.py3CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOWopenpilot/cereal/messaging/__init__.py2CODE
LOW…/cereal/messaging/tests/validate_sp_cereal_upstream.py13CODE
Self-Referential Comments10 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMopenpilot/sunnypilot/models/helpers.py200# The following method(s) are modeld helper methodsCOMMENT
MEDIUMopenpilot/sunnypilot/selfdrive/controls/lib/dec/dec.py21# Define the valid mode typesCOMMENT
MEDIUMopenpilot/selfdrive/ui/onroad/cameraview.py103 # Create a 1x1 pixel placeholder texture for EGL image bindingSTRING
MEDIUMopenpilot/selfdrive/ui/onroad/model_renderer.py62 # Initialize ModelPoints objectsCOMMENT
MEDIUMopenpilot/selfdrive/ui/mici/onroad/cameraview.py146 # Create a 1x1 pixel placeholder texture for EGL image bindingSTRING
MEDIUMopenpilot/selfdrive/ui/mici/onroad/model_renderer.py68 # Initialize ModelPoints objectsCOMMENT
MEDIUMopenpilot/selfdrive/ui/body/layouts/onroad.py19# This class is used both in BIG (tizi) and small (mici) UIsCOMMENT
MEDIUMopenpilot/system/ui/lib/egl.py61# Create a single instance of the stateCOMMENT
MEDIUMopenpilot/system/updated/updated.py392 # Create the finalized, ready-to-swap updateCOMMENT
MEDIUMopenpilot/common/transformations/model.py64# This function is verified to give similar results to xx.uncommon.utils.transform_imgCOMMENT
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHopenpilot/selfdrive/ui/translations/potools.py289 'uk': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);',CODE
HIGHopenpilot/selfdrive/ui/translations/potools.py289 'uk': 'nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);',CODE
HIGHopenpilot/system/ui/lib/shader_polygon.py60 if (t >= a && t <= b) {CODE
HIGHopenpilot/system/updated/updated.py199 updated_version = run(["bash", "-c", r"unset AGNOS_VERSION && source launch_env.sh && \CODE
AI Slop Vocabulary6 hits · 12 pts
SeverityFileLineSnippetContext
LOWopenpilot/selfdrive/ui/widgets/offroad_alerts.py115 # TODO: just use a Scroller?COMMENT
MEDIUMopenpilot/selfdrive/selfdrived/events.py795 # When the relay in the harness box opens the CAN bus between the LKAS cameraCOMMENT
LOWopenpilot/system/ui/lib/scroll_panel2.py212 # TODO: we should just set velocity and let autoscroll go back to steady. delays one frame but who caresCOMMENT
LOWopenpilot/system/ui/widgets/list_view.py145 # TODO: just use the generic Widget click callbacks everywhere, no returning from renderCOMMENT
LOWopenpilot/system/ui/widgets/network.py114 # AdvancedNetworkSettings needs the full openpilot environment, standalone apps just use WifiManagerUICOMMENT
MEDIUM…enpilot/system/hardware/tests/test_power_monitoring.py166 # Test to check policy of not stopping charging when harness is not connectedCOMMENT
AI Structural Patterns10 hits · 10 pts
SeverityFileLineSnippetContext
LOW…/selfdrive/controls/lib/tests/test_lane_turn_desire.py74CODE
LOW…enpilot/selfdrive/test/longitudinal_maneuvers/plant.py17CODE
LOWopenpilot/selfdrive/locationd/lagd.py177CODE
LOWopenpilot/selfdrive/controls/radard.py109CODE
LOWopenpilot/system/ui/sunnypilot/widgets/list_view.py376CODE
LOWopenpilot/system/ui/sunnypilot/widgets/list_view.py208CODE
LOWopenpilot/system/ui/sunnypilot/widgets/tree_dialog.py88CODE
LOWopenpilot/system/ui/widgets/button.py82CODE
LOWopenpilot/system/ui/widgets/label.py78CODE
LOWopenpilot/system/ui/widgets/label.py210CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALopenpilot/selfdrive/controls/controlsd.py31ACTUATOR_FIELDS = tuple(car.CarControl.Actuators.schema.fields.keys())CODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/lib/bootlog.py47 # TODO: implement an API endpoint for thisCOMMENT
LOWopenpilot/system/ui/widgets/mici_keyboard.py12CHAR_CAPS_FONT_SIZE = 38 # TODO: implement thisCODE
LOWopenpilot/system/ui/widgets/layouts.py7 # TODO: implementCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWopenpilot/selfdrive/ui/mici/layouts/main.py62 # Start onboarding if terms or training not completed, make sure to push after selfCOMMENT
LOWopenpilot/selfdrive/ui/layouts/main.py52 # Start onboarding if terms or training not completed, make sure to push after selfCOMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWopenpilot/system/loggerd/tests/loggerd_tests_common.py45 return "fake-token"CODE
LOWopenpilot/system/loggerd/tests/loggerd_tests_common.py55 return "fake-token"CODE
LOWopenpilot/system/athena/tests/helpers.py42 return "fake-token"CODE