Repository Analysis

commaai/openpilot

openpilot is an operating system for robotics. Currently, it upgrades the driver assistance system on 300+ supported cars.

10.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of commaai/openpilot, a Python project with 63,285 GitHub stars. SynthScan v2.0 examined 88,581 lines of code across 746 source files, recording 801 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 10.5 places this repository in the Low 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).

10.5
Adjusted Score
10.5
Raw Score
100%
Time Factor
2026-08-01
Last Push
63.3K
Stars
Python
Language
88.6K
Lines of Code
746
Files
801
Pattern Hits
2026-08-02
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 4MEDIUM 49LOW 747

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

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

Hyper-Verbose Identifiers223 hits · 232 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
LOWopenpilot/selfdrive/ui/ui_state.py100 def add_offroad_transition_callback(self, callback: Callable[[], None]):CODE
LOWopenpilot/selfdrive/ui/ui_state.py103 def add_engaged_transition_callback(self, callback: Callable[[], None]):CODE
LOWopenpilot/selfdrive/ui/ui_state.py106 def add_on_body_changed_callbacks(self, callback: Callable[[], None]):CODE
LOWopenpilot/selfdrive/ui/ui_state.py237 def set_override_interactive_timeout(self, timeout: int | None) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py250 def _reset_interactive_timeout(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py253 def add_interactive_timeout_callback(self, callback: Callable):CODE
LOWopenpilot/selfdrive/ui/soundd.py52def check_selfdrive_timeout_alert(sm):CODE
LOWopenpilot/selfdrive/ui/onroad/driver_state.py163 def _pre_calculate_drawing_elements(self):CODE
LOWopenpilot/selfdrive/ui/onroad/model_renderer.py190 def _update_experimental_gradient(self):CODE
LOWopenpilot/selfdrive/ui/mici/onroad/cameraview.py322 def _update_texture_color_filtering(self):CODE
LOWopenpilot/selfdrive/ui/mici/onroad/model_renderer.py220 def _update_experimental_gradient(self):CODE
LOWopenpilot/selfdrive/ui/mici/layouts/settings/device.py65def _engaged_confirmation_click(callback: Callable, action_text: str, icon: rl.Texture, exit_on_confirm: bool = True, reCODE
LOWopenpilot/selfdrive/ui/mici/layouts/settings/device.py171 def reset_calibration_callback():CODE
LOW…enpilot/selfdrive/ui/mici/layouts/settings/software.py261 def uninstall_openpilot_callback():CODE
LOW…ive/ui/mici/layouts/settings/network/network_layout.py25 def tethering_toggle_callback(checked: bool):CODE
LOW…ive/ui/mici/layouts/settings/network/network_layout.py33 def tethering_password_callback(password: str):CODE
LOW…ive/ui/mici/layouts/settings/network/network_layout.py39 def tethering_password_clicked():CODE
LOWopenpilot/selfdrive/ui/tests/test_translations.py52 def test_translation_file_exists(self, language_code: str):CODE
LOWopenpilot/selfdrive/ui/tests/test_translations.py57 def test_translation_placeholders_are_preserved(self, po_path: Path):CODE
LOWopenpilot/selfdrive/ui/tests/test_translations.py94 def test_translation_refs_do_not_include_line_numbers(self, po_path: Path):CODE
LOWopenpilot/selfdrive/ui/tests/test_translations.py101 def test_translation_entities_are_valid(self, po_path: Path):CODE
LOWopenpilot/selfdrive/ui/tests/test_soundd.py12 def test_check_selfdrive_timeout_alert(self, mocker):CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay_script.py354 def setup_offroad_alerts_and_refresh() -> None:CODE
LOWopenpilot/selfdrive/ui/layouts/sidebar.py121 def _update_temperature_status(self, device_state):CODE
LOWopenpilot/selfdrive/ui/layouts/sidebar.py129 def _update_connection_status(self, device_state):CODE
LOWopenpilot/selfdrive/ui/layouts/main.py77 def _handle_onroad_transition(self):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py82 def handle_language_selection(result: DialogResult):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py93 def _reset_calibration_prompt(self):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py113 def _update_calib_description(self):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py190 def _on_review_training_guide(self):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/toggles.py211 def _update_experimental_mode_icon(self):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/toggles.py215 def _handle_experimental_mode_toggle(self, state: bool):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/toggles.py244 def _set_longitudinal_personality(self, button_index: int):CODE
LOWopenpilot/selfdrive/ui/layouts/settings/software.py169 def handle_uninstall_confirmation(result: DialogResult):CODE
LOWopenpilot/selfdrive/ui/widgets/prime.py23 def _render_for_non_prime_users(self, rect: rl.Rectangle):CODE
LOWopenpilot/selfdrive/ui/widgets/setup.py24 def set_open_settings_callback(self, callback):CODE
LOWopenpilot/selfdrive/ui/widgets/exp_mode_button.py34 def _draw_gradient_background(self, rect):CODE
LOWopenpilot/selfdrive/ui/widgets/offroad_alerts.py99 def excessive_actuation_callback():CODE
LOWopenpilot/selfdrive/ui/widgets/offroad_alerts.py155 def _render_scrollable_content(self):CODE
LOWopenpilot/selfdrive/car/tests/test_cruise_speed.py98 def test_resume_in_standstill(self):CODE
LOWopenpilot/selfdrive/test/test_onroad.py183 def test_manager_starting_time(self):CODE
LOWopenpilot/selfdrive/test/test_onroad.py301 def test_camera_frame_timings(self, subtests):CODE
163 more matches not shown…
Excessive Try-Catch Wrapping187 hits · 214 pts
SeverityFileLineSnippetContext
LOWtools/test_runner.py166 except Exception:CODE
LOWtools/test_runner.py223 except Exception:CODE
MEDIUMtools/scripts/setup_ssh_keys.py23 print("Error getting public keys from github")CODE
LOWtools/scripts/test_fw_query_on_routes.py151 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
LOWdocs/serve.py540 except Exception as e:CODE
LOWopenpilot/tools/clip/run.py188 except Exception as e:CODE
MEDIUMopenpilot/tools/clip/run.py182def _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.py186 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.py109 except Exception:CODE
LOWopenpilot/tools/camerastream/ffmpeg_decoder.py147 except Exception:CODE
LOW…enpilot/selfdrive/ui/mici/layouts/settings/firehose.py65 except Exception:CODE
LOW…enpilot/selfdrive/ui/mici/layouts/settings/firehose.py78 except Exception:CODE
LOW…enpilot/selfdrive/ui/mici/layouts/settings/firehose.py212 except Exception as e:CODE
MEDIUM…enpilot/selfdrive/ui/mici/layouts/settings/firehose.py201def _fetch_firehose_stats(self):CODE
LOWopenpilot/selfdrive/ui/mici/widgets/pairing_dialog.py33 except Exception as e:CODE
LOWopenpilot/selfdrive/ui/mici/widgets/pairing_dialog.py58 except Exception as e:CODE
MEDIUMopenpilot/selfdrive/ui/mici/widgets/pairing_dialog.py29def _get_pairing_url(self) -> str:CODE
MEDIUMopenpilot/selfdrive/ui/mici/widgets/pairing_dialog.py38def _generate_qr_code(self) -> None:CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py126 except Exception:CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py134 except Exception:CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py152 except Exception:CODE
LOWopenpilot/selfdrive/ui/lib/prime_state.py62 except Exception as e:CODE
LOWopenpilot/selfdrive/ui/widgets/ssh_key.py66 except Exception:CODE
LOWopenpilot/selfdrive/ui/widgets/pairing_dialog.py35 except Exception:CODE
LOWopenpilot/selfdrive/ui/widgets/pairing_dialog.py60 except Exception:CODE
MEDIUMopenpilot/selfdrive/ui/widgets/pairing_dialog.py31def _get_pairing_url(self) -> str:CODE
MEDIUMopenpilot/selfdrive/ui/widgets/pairing_dialog.py40def _generate_qr_code(self) -> None:CODE
LOWopenpilot/selfdrive/car/card.py127 except Exception:CODE
LOWopenpilot/selfdrive/test/process_replay/regen_all.py24 except Exception as e:CODE
LOW…npilot/selfdrive/test/process_replay/test_processes.py83 except Exception:CODE
LOW…npilot/selfdrive/test/process_replay/test_processes.py102 except Exception as e:CODE
LOW…npilot/selfdrive/test/process_replay/test_processes.py117 except Exception as e:CODE
LOW…npilot/selfdrive/test/process_replay/test_processes.py222 except Exception:CODE
LOWopenpilot/selfdrive/test/process_replay/model_replay.py109 except Exception:CODE
LOWopenpilot/selfdrive/test/process_replay/model_replay.py208 except Exception as e:CODE
LOWopenpilot/selfdrive/test/process_replay/model_replay.py292 except Exception as e:CODE
LOWopenpilot/selfdrive/test/process_replay/model_replay.py303 except Exception as e:CODE
LOWopenpilot/selfdrive/locationd/paramsd.py230 except Exception as e:CODE
LOWopenpilot/selfdrive/locationd/lagd.py380 except Exception as e:CODE
LOWopenpilot/selfdrive/locationd/calibrationd.py86 except Exception:CODE
LOWopenpilot/selfdrive/locationd/torqued.py120 except Exception:CODE
LOWopenpilot/selfdrive/pandad/pandad.py75 except Exception:CODE
LOWopenpilot/selfdrive/pandad/pandad.py110 except Exception:CODE
127 more matches not shown…
Deep Nesting200 hits · 198 pts
SeverityFileLineSnippetContext
LOWtools/test_runner.py138CODE
LOWtools/test_runner.py261CODE
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
LOWdocs/serve.py120CODE
LOWdocs/serve.py283CODE
LOWdocs/serve.py524CODE
LOWopenpilot/tools/clip/run.py138CODE
LOWopenpilot/tools/clip/run.py284CODE
LOW…npilot/tools/longitudinal_maneuvers/generate_report.py22CODE
LOWopenpilot/tools/cabana/dbc/generate_dbc_json.py9CODE
LOWopenpilot/tools/lib/logreader.py150CODE
LOWopenpilot/tools/lib/logreader.py203CODE
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.py26CODE
LOWopenpilot/selfdrive/ui/ui.py16CODE
LOWopenpilot/selfdrive/ui/soundd.py165CODE
LOWopenpilot/selfdrive/ui/onroad/alert_renderer.py84CODE
LOWopenpilot/selfdrive/ui/onroad/hud_renderer.py127CODE
LOWopenpilot/selfdrive/ui/mici/onroad/driver_state.py95CODE
LOW…npilot/selfdrive/ui/mici/onroad/augmented_road_view.py68CODE
LOW…npilot/selfdrive/ui/mici/onroad/augmented_road_view.py88CODE
LOWopenpilot/selfdrive/ui/mici/onroad/alert_renderer.py120CODE
LOWopenpilot/selfdrive/ui/mici/onroad/alert_renderer.py156CODE
LOWopenpilot/selfdrive/ui/mici/onroad/alert_renderer.py265CODE
LOWopenpilot/selfdrive/ui/mici/tests/test_widget_leaks.py47CODE
LOWopenpilot/selfdrive/ui/mici/layouts/offroad_alerts.py253CODE
LOW…enpilot/selfdrive/ui/mici/layouts/settings/software.py119CODE
LOW…/selfdrive/ui/mici/layouts/settings/network/wifi_ui.py207CODE
LOWopenpilot/selfdrive/ui/tests/test_translations.py57CODE
LOWopenpilot/selfdrive/ui/tests/diff/replay.py43CODE
LOWopenpilot/selfdrive/ui/layouts/sidebar.py144CODE
LOWopenpilot/selfdrive/ui/layouts/onboarding.py63CODE
LOWopenpilot/selfdrive/ui/layouts/settings/device.py113CODE
LOWopenpilot/selfdrive/ui/layouts/settings/toggles.py155CODE
LOWopenpilot/selfdrive/ui/layouts/settings/software.py89CODE
LOWopenpilot/selfdrive/ui/translations/potools.py31CODE
LOWopenpilot/selfdrive/ui/translations/potools.py59CODE
LOWopenpilot/selfdrive/ui/translations/potools.py163CODE
LOWopenpilot/selfdrive/ui/translations/potools.py193CODE
LOWopenpilot/selfdrive/car/cruise.py44CODE
LOWopenpilot/selfdrive/car/car_events.py25CODE
140 more matches not shown…
Modern Structural Boilerplate59 hits · 62 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/selfdrive/ui/ui_state.py136 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py166 def _update_status(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py194 def update_params(self) -> None:CODE
LOWopenpilot/selfdrive/ui/ui_state.py237 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/mici/onroad/hud_renderer.py67 def _update_state(self) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/onroad/hud_renderer.py151 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.py150 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/selfdrive/ui/mici/widgets/button.py206 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/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
LOWopenpilot/selfdrive/locationd/calibrationd.py138 def update_status(self) -> None:CODE
LOWopenpilot/selfdrive/selfdrived/alertmanager.py16def set_offroad_alert(alert: str, show_alert: bool, extra_text: str | None = None) -> None:CODE
LOWopenpilot/system/sentry.py40def set_tag(key: str, value: str) -> None:CODE
LOWopenpilot/system/ubloxd/pigeond.py28def set_power(enabled: bool) -> None:CODE
LOWopenpilot/system/ubloxd/pigeond.py81 def set_baud(self, baud: int) -> None:CODE
LOWopenpilot/system/ui/spinner.py44 def set_text(self, text: str) -> None:CODE
LOWopenpilot/system/ui/lib/scroll_panel.py127 def set_offset(self, position: float) -> None:CODE
LOWopenpilot/system/ui/lib/scroll_panel2.py58 def set_enabled(self, enabled: bool | Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/lib/scroll_panel2.py88 def _update_state(self, bounds_size: float, content_size: float, snap_target: float | None) -> None:CODE
LOWopenpilot/system/ui/lib/scroll_panel2.py256 def set_offset(self, value: float) -> None:CODE
LOWopenpilot/system/ui/widgets/scroller_tici.py16 def set_parent_rect(self, parent_rect: rl.Rectangle) -> None:CODE
LOWopenpilot/system/ui/widgets/list_view.py65 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/list_view.py111 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/list_view.py183 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/list_view.py299 def set_description_opened_callback(self, callback: Callable) -> None:CODE
LOWopenpilot/system/ui/widgets/list_view.py302 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/scroller.py157 def set_scrolling_enabled(self, enabled: bool | Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py61 def set_rect(self, rect: rl.Rectangle) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py68 def set_parent_rect(self, parent_rect: rl.Rectangle) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py81 def set_enabled(self, enabled: bool | Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py88 def set_visible(self, visible: bool | Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py91 def set_click_callback(self, click_callback: Callable[[], None] | None) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py95 def set_touch_valid_callback(self, touch_callback: Callable[[], bool]) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py103 def set_position(self, x: float, y: float) -> None:CODE
LOWopenpilot/system/ui/widgets/__init__.py201 def _update_layout_rects(self) -> None:CODE
LOWopenpilot/system/ui/widgets/nav_widget.py32 def set_alpha(self, alpha: float) -> None:CODE
LOWopenpilot/system/ui/widgets/nav_widget.py81 def set_back_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWopenpilot/system/ui/widgets/nav_widget.py84 def set_shown_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWopenpilot/system/loggerd/xattr_cache.py41def _setxattr(path: str, attr_name: str, attr_value: bytes) -> None:CODE
LOWopenpilot/system/updated/updated.py53 def update_now(self, signum: int, frame) -> None:CODE
LOWopenpilot/system/updated/updated.py74def set_consistent_flag(consistent: bool) -> None:CODE
LOWopenpilot/system/updated/updated.py276 def set_params(self, update_success: bool, failed_count: int, exception: str | None) -> None:CODE
LOWopenpilot/system/updated/common.py9def set_consistent_flag(path: str, consistent: bool) -> None:CODE
LOWopenpilot/common/realtime.py36def set_core_affinity(cores: list[int]) -> None:CODE
LOWopenpilot/common/i2c.py51 def _set_address(self, addr: int, force: bool = False) -> None:CODE
LOWopenpilot/common/serial.py270 def _set_line(self, _bit: int, packed: bytes, enabled: bool) -> None:CODE
LOWopenpilot/common/hardware/usb.py64def set_usb_state(device_state, devices: list[dict]) -> None:CODE
LOWopenpilot/common/hardware/tici/amplifier.py82 def _set_configs(self, configs: list[AmpConfig]) -> None:CODE
LOWopenpilot/common/esim/lpa.py399def set_profile_nickname(client: AtClient, iccid: str, nickname: str) -> None:CODE
LOWopenpilot/common/esim/__init__.py3__all__ = ["LPABase", "LPAError", "LPAProfileNotFoundError", "Profile"]CODE
LOWopenpilot/cereal/messaging/__init__.py245 def update_msgs(self, cur_time: float, msgs: list[capnp.lib.capnp._DynamicStructReader]) -> None:CODE
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
Redundant / Tautological Comments28 hits · 42 pts
SeverityFileLineSnippetContext
LOWlaunch_chffrplus.sh20 # Check if AGNOS update is requiredCOMMENT
LOWtools/scripts/test_fw_query_on_routes.py86 # Check if fuzzy match was correctCOMMENT
LOWopenpilot/selfdrive/ui/onroad/cameraview.py312 # Check if target has frames readyCOMMENT
LOWopenpilot/selfdrive/ui/onroad/augmented_road_view.py134 # Check if live calibration data is available and validCOMMENT
LOWopenpilot/selfdrive/ui/onroad/augmented_road_view.py152 # 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.py87 # Check if data is up-to-dateCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/cameraview.py359 # Check if target has frames readyCOMMENT
LOW…npilot/selfdrive/ui/mici/onroad/augmented_road_view.py269 # Check if live calibration data is available and validCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/alert_renderer.py124 # Check if selfdriveState messages have stopped arrivingCOMMENT
LOWopenpilot/selfdrive/ui/mici/onroad/model_renderer.py102 # Check if data is up-to-dateCOMMENT
LOWopenpilot/selfdrive/ui/layouts/settings/software.py155 # 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/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.py377 # 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.py107 # Set protocol to the new version (default after git 2.26) to reduce dataCOMMENT
LOWopenpilot/system/updated/updated.py429 # Check if we just performed an updateCOMMENT
LOWopenpilot/system/athena/athenad.py284 # Check if uploading over metered connection is allowedCOMMENT
LOWopenpilot/system/athena/athenad.py506 # Set TOS to keep connection responsive while under load.COMMENT
Over-Commented Block32 hits · 32 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/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/qcom_decoder.h1#pragma onceCOMMENT
LOWopenpilot/tools/replay/replay.h1#pragma onceCOMMENT
LOWopenpilot/selfdrive/pandad/panda.h1#pragma onceCOMMENT
LOWopenpilot/system/loggerd/loggerd.h1#pragma onceCOMMENT
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
LOWscripts/waste.c1// gcc -O2 waste.c -lpthread -owasteCOMMENT
Unused Imports25 hits · 25 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/sim/lib/simulated_sensors.py11CODE
LOWopenpilot/tools/sim/lib/simulated_sensors.py11CODE
LOWopenpilot/tools/sim/lib/keyboard_ctrl.py10CODE
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/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
Self-Referential Comments8 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMopenpilot/selfdrive/ui/onroad/cameraview.py102 # Create a 1x1 pixel placeholder texture for EGL image bindingSTRING
MEDIUMopenpilot/selfdrive/ui/onroad/model_renderer.py57 # Initialize ModelPoints objectsCOMMENT
MEDIUMopenpilot/selfdrive/ui/mici/onroad/cameraview.py145 # Create a 1x1 pixel placeholder texture for EGL image bindingSTRING
MEDIUMopenpilot/selfdrive/ui/mici/onroad/model_renderer.py64 # 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.py410 # 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.py209 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.py974 # 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.py142 # TODO: just use the generic Widget click callbacks everywhere, no returning from renderCOMMENT
LOWopenpilot/system/ui/widgets/network.py98 # 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
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALopenpilot/selfdrive/controls/controlsd.py29ACTUATOR_FIELDS = tuple(car.CarControl.Actuators.schema.fields.keys())CODE
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOW…enpilot/selfdrive/test/longitudinal_maneuvers/plant.py17CODE
LOWopenpilot/selfdrive/locationd/lagd.py176CODE
LOWopenpilot/selfdrive/controls/radard.py105CODE
LOWopenpilot/system/ui/widgets/button.py82CODE
LOWopenpilot/system/ui/widgets/label.py107CODE
LOWopenpilot/system/ui/widgets/label.py239CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWopenpilot/tools/lib/bootlog.py47 # TODO: implement an API endpoint for thisCOMMENT
LOWopenpilot/system/ubloxd/pigeond.py46 # TODO: implement adding the last known locationCOMMENT
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.py59 # Start onboarding if terms or training not completed, make sure to push after selfCOMMENT
LOWopenpilot/selfdrive/ui/layouts/main.py48 # 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