Repository Analysis

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.

19.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of sunnypilot/sunnypilot, a Python project with 2,068 GitHub stars. SynthScan v2.0 examined 131,494 lines of code across 1084 source files, recording 1592 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 19.1 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

19.1
Adjusted Score
19.1
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.1K
Stars
Python
Language
131.5K
Lines of Code
1.1K
Files
1.6K
Pattern Hits
2026-08-29
Scan Date
0.17
HC Hit Rate

What These Metrics Mean

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

Score History

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

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

Severity Breakdown

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

CRITICAL 1HIGH 181MEDIUM 62LOW 1348

Directory Score Breakdown

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

Pattern Findings

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

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

Cross-File Repetition177 hits · 885 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/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/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
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/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
HIGH…fdrive/controls/lib/dec/tests/test_dec_planner_gate.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…drive/controls/lib/speed_limit/speed_limit_resolver.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/speed_limit/__init__.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…unnypilot/selfdrive/controls/lib/speed_limit/common.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
HIGH…nnypilot/selfdrive/controls/lib/speed_limit/helpers.py0copyright (c) 2021-, rav4kumar, sunnypilot, and a number of other contributors. this file is part of sunnypilot and is lSTRING
117 more matches not shown…
Hyper-Verbose Identifiers559 hits · 620 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.py309def 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
499 more matches not shown…
Excessive Try-Catch Wrapping282 hits · 322 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
MEDIUMrelease/ci/squash_and_merge_prs.py175 print(f"Error processing PR #{pr_number}:")CODE
MEDIUMrelease/ci/squash_and_merge_prs.py178 print(f"Error output: {output}")CODE
LOWrelease/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.py75 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/logreader.py188 except Exception as e:CODE
LOWopenpilot/tools/lib/auth_config.py15 except Exception:CODE
MEDIUMopenpilot/tools/lib/auth_config.py10def get_token():CODE
LOWopenpilot/tools/lib/route.py201 except Exception as e:CODE
LOWopenpilot/tools/lib/route.py315 except Exception as e:CODE
LOWopenpilot/tools/lib/file_downloader.py40 except Exception as e:CODE
LOWopenpilot/tools/lib/file_downloader.py91 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
LOWopenpilot/sunnypilot/sunnylink/backups/utils.py165 except Exception as e:CODE
222 more matches not shown…
Deep Nesting288 hits · 281 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/logreader.py152CODE
LOWopenpilot/tools/lib/logreader.py205CODE
LOWopenpilot/tools/lib/route.py99CODE
LOWopenpilot/tools/lib/file_downloader.py104CODE
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
LOW…lot/sunnypilot/sunnylink/tools/validate_settings_ui.py428CODE
228 more matches not shown…
Modern Structural Boilerplate105 hits · 116 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
LOWopenpilot/sunnypilot/selfdrive/car/cruise_helpers.py36 def update_button_frame_counts(self, CS) -> None:CODE
LOWopenpilot/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
LOWopenpilot/sunnypilot/selfdrive/car/cruise_ext.py111 def update_speed_limit_assist(self, is_metric, LP_SP: custom.LongitudinalPlanSP) -> None:CODE
LOWopenpilot/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.py29def 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.py154 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py184 def _update_status(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py215 def _update_chestnut_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py237 def update_params(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py282 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
LOWopenpilot/selfdrive/ui/mici/widgets/button.py149 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/widgets/button.py209 def set_position(self, x: float, y: float) -> 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
LOWopenpilot/selfdrive/ui/widgets/ssh_key.py93 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
45 more matches not shown…
Over-Commented Block57 hits · 57 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/mainwin.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/detailwidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/videowidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/messageswidget.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/signalview.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/cameraview.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/panda.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/tools/findsignal.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/streams/abstractstream.h1#pragma onceCOMMENT
LOWopenpilot/tools/cabana/chart/chartswidget.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
LOWscripts/waste.c1// gcc -O2 waste.c -lpthread -owasteCOMMENT
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.py390 # Check if cache is still validCOMMENT
LOWopenpilot/system/ui/widgets/label.py521 # Check if this line fitsCOMMENT
LOWopenpilot/system/hardware/hardwared.py445 # 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
MEDIUMpyproject.toml11# ------------------------------------------COMMENT
MEDIUMpyproject.toml13# ------------------------------------------COMMENT
MEDIUMpyproject.toml16# ------------------------------------------COMMENT
MEDIUMtools/setup_dependencies.sh41 # ------------------------------------------------COMMENT
MEDIUMtools/setup_dependencies.sh45 # ------------------------------------------------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 Imports37 hits · 37 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/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/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.py231# 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.py87CODE
LOWopenpilot/system/ui/widgets/button.py82CODE
LOWopenpilot/system/ui/widgets/label.py107CODE
LOWopenpilot/system/ui/widgets/label.py239CODE
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