Repository Analysis

commaai/opendbc

a Python API for your car

9.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of commaai/opendbc, a Python project with 3,262 GitHub stars. SynthScan v2.0 examined 52,491 lines of code across 304 source files, recording 376 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 9.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).

9.5
Adjusted Score
9.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
3.3K
Stars
Python
Language
52.5K
Lines of Code
304
Files
376
Pattern Hits
2026-07-14
Scan Date
0.07
HC Hit Rate

What These Metrics Mean

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

Score History

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

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

Severity Breakdown

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

CRITICAL 0HIGH 20MEDIUM 15LOW 341

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 376 distinct pattern matches across 14 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 Identifiers189 hits · 205 pts
SeverityFileLineSnippetContext
LOWopendbc/car/interfaces.py171 def get_steer_feedforward_default(desired_angle, v_ego):CODE
LOWopendbc/car/interfaces.py175 def get_steer_feedforward_function(self):CODE
LOWopendbc/car/interfaces.py178 def torque_from_lateral_accel_linear(self, lateral_acceleration: float, torque_params: structs.CarParams.LateralTorqueCODE
LOWopendbc/car/interfaces.py182 def torque_from_lateral_accel(self) -> TorqueFromLateralAccelCallbackType:CODE
LOWopendbc/car/interfaces.py185 def lateral_accel_from_torque_linear(self, torque: float, torque_params: structs.CarParams.LateralTorqueTuning) -> floCODE
LOWopendbc/car/interfaces.py188 def lateral_accel_from_torque(self) -> LateralAccelFromTorqueCallbackType:CODE
LOWopendbc/car/interfaces.py321 def update_blinker_from_stalk(self, blinker_time: int, left_blinker_stalk: bool, right_blinker_stalk: bool):CODE
LOWopendbc/car/lateral.py70def apply_driver_steer_torque_limits(apply_torque: int, apply_torque_last: int, driver_torque: float, LIMITS, steer_max:CODE
LOWopendbc/car/lateral.py93def apply_dist_to_meas_limits(val, val_last, val_meas,CODE
LOWopendbc/car/lateral.py115def apply_meas_steer_torque_limits(apply_torque, apply_torque_last, motor_torque, LIMITS):CODE
LOWopendbc/car/lateral.py121def apply_std_steer_angle_limits(apply_angle: float, apply_angle_last: float, v_ego: float, steering_angle: float,CODE
LOWopendbc/car/lateral.py150def apply_steer_angle_limits_vm(apply_angle: float, apply_angle_last: float, v_ego_raw: float, steering_angle: float,CODE
LOWopendbc/car/ccp.py205 def set_memory_transfer_address(self, mta_num: int, addr_ext: int, addr: int) -> None:CODE
LOWopendbc/car/ccp.py368 def start_stop_synchronised_transmission(self, mode: int) -> None:CODE
LOWopendbc/car/ccp.py374 def get_active_calibration_page(self):CODE
LOWopendbc/car/docs.py53def build_sorted_car_docs_list(platforms, footnotes=None):CODE
LOWopendbc/car/vehicle_model.py170def create_dyn_state_matrices(u: float, VM: VehicleModel) -> tuple[np.ndarray, np.ndarray]:CODE
LOWopendbc/car/uds.py679 def diagnostic_session_control(self, session_type: SESSION_TYPE):CODE
LOWopendbc/car/uds.py724 def secured_data_transmission(self, data: bytes):CODE
LOWopendbc/car/uds.py792 def read_scaling_data_by_identifier(self, data_identifier_type: DATA_IDENTIFIER_TYPE):CODE
LOWopendbc/car/uds.py800 def read_data_by_periodic_identifier(self, transmission_mode_type: TRANSMISSION_MODE_TYPE, periodic_data_identifier: iCODE
LOWopendbc/car/uds.py805 def dynamically_define_data_identifier(self, dynamic_definition_type: DYNAMIC_DEFINITION_TYPE, dynamic_data_identifierCODE
LOWopendbc/car/uds.py855 def clear_diagnostic_information(self, dtc_group_type: DTC_GROUP_TYPE):CODE
LOWopendbc/car/uds.py897 def input_output_control_by_identifier(self, data_identifier_type: DATA_IDENTIFIER_TYPE, control_parameter_type: CONTRCODE
LOWopendbc/car/ecu_addrs.py9def _is_tester_present_response(msg: CanData, subaddr: int | None = None) -> bool:CODE
LOWopendbc/car/fingerprints.py28def eliminate_incompatible_cars(msg, candidate_cars):CODE
LOWopendbc/car/fingerprints.py52def all_legacy_fingerprint_cars():CODE
LOWopendbc/car/volkswagen/mlbcan.py21def create_acc_buttons_control(packer, bus, gra_stock_values, cancel=False, resume=False):CODE
LOWopendbc/car/volkswagen/carstate.py390 def parse_mlb_mqb_steering_state(self, ret, pt_cp, drive_mode=True):CODE
LOWopendbc/car/volkswagen/pqcan.py35def create_acc_buttons_control(packer, bus, gra_stock_values, cancel=False, resume=False):CODE
LOWopendbc/car/volkswagen/mqbcan.py55def create_acc_buttons_control(packer, bus, gra_stock_values, cancel=False, resume=False):CODE
LOWopendbc/car/volkswagen/mqbcan.py175def volkswagen_mqb_meb_checksum(address: int, sig, d: bytearray) -> int:CODE
LOWopendbc/car/volkswagen/mqbcan.py188def volkswagen_mqb_meb_dyn_len_checksum(address: int, sig, d: bytearray, length: int, const: list[int]) -> int:CODE
LOWopendbc/car/volkswagen/mqbcan.py200def volkswagen_meb_alt_crc_checksum(address: int, sig, d: bytearray) -> int:CODE
LOWopendbc/car/volkswagen/mebcan.py54def create_acc_buttons_control(packer, bus, gra_stock_values, cancel=False, resume=False, up=False, down=False):CODE
LOWopendbc/car/volkswagen/mebcan.py262def create_capacitive_wheel_touch(packer, bus, lat_active, klr_stock_values):CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py21 def test_same_torque_mitigation(self):CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py33 def test_spare_part_fw_pattern(self):CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py56 def test_custom_fuzzy_fingerprinting(self):CODE
LOWopendbc/car/ford/values.py268def ford_asbuilt_block_request(block_id: int):CODE
LOWopendbc/car/ford/values.py272def ford_asbuilt_block_response(block_id: int):CODE
LOWopendbc/car/ford/radar_interface.py72def _create_delphi_esr_radar_can_parser(CP) -> CANParser:CODE
LOWopendbc/car/ford/radar_interface.py79def _create_delphi_mrr_radar_can_parser(CP) -> CANParser:CODE
LOWopendbc/car/ford/tests/test_ford.py71 def test_platform_codes_fuzzy_fw(self, data):CODE
LOWopendbc/car/ford/tests/test_ford.py77 def test_platform_codes_spot_check(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py76 def test_fuzzy_match_ecu_count(self, brand, car_model, ecus):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py109 def test_all_addrs_map_to_one_ecu(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py119 def test_data_collection_ecus(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py142 def test_missing_versions_and_configs(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py160 def test_fw_request_ecu_whitelist(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py174 def test_request_ecus_in_versions(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py211 def fake_set_obd_multiplexing(self, obd_multiplexing):CODE
LOWopendbc/car/tests/test_vehicle_model.py26 def test_dyn_ss_sol_against_yaw_rate(self):CODE
LOWopendbc/car/tesla/teslacan.py31 def create_longitudinal_command(self, acc_state, accel, counter, v_ego, active):CODE
LOWopendbc/car/hyundai/carstate.py66 def recent_button_interaction(self) -> bool:CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py109 def test_correct_ecu_response_database(self):CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py123 def test_platform_codes_fuzzy_fw(self, data):CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py129 def test_expected_platform_codes(self):CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py148 def test_platform_code_ecus_available(self):CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py194 def test_platform_codes_spot_check(self):CODE
129 more matches not shown…
Deep Nesting94 hits · 92 pts
SeverityFileLineSnippetContext
LOWopendbc/car/interfaces.py382CODE
LOWopendbc/car/ccp.py136CODE
LOWopendbc/car/vin.py32CODE
LOWopendbc/car/fw_versions.py54CODE
LOWopendbc/car/fw_versions.py104CODE
LOWopendbc/car/fw_versions.py173CODE
LOWopendbc/car/fw_versions.py252CODE
LOWopendbc/car/uds.py366CODE
LOWopendbc/car/uds.py474CODE
LOWopendbc/car/uds.py498CODE
LOWopendbc/car/uds.py805CODE
LOWopendbc/car/xcp.py150CODE
LOWopendbc/car/ecu_addrs.py31CODE
LOWopendbc/car/isotp_parallel_query.py76CODE
LOWopendbc/car/isotp.py69CODE
LOWopendbc/car/car_helpers.py42CODE
LOWopendbc/car/volkswagen/values.py71CODE
LOWopendbc/car/volkswagen/interface.py15CODE
LOWopendbc/car/volkswagen/mebcan.py110CODE
LOWopendbc/car/volkswagen/carcontroller.py62CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py33CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py41CODE
LOWopendbc/car/volkswagen/tests/test_volkswagen.py56CODE
LOWopendbc/car/ford/interface.py31CODE
LOWopendbc/car/ford/fordcan.py148CODE
LOWopendbc/car/ford/fordcan.py227CODE
LOWopendbc/car/tests/test_docs.py34CODE
LOWopendbc/car/tests/test_docs.py50CODE
LOWopendbc/car/tests/test_fw_fingerprint.py100CODE
LOWopendbc/car/tests/test_fw_fingerprint.py127CODE
LOWopendbc/car/tests/test_fw_fingerprint.py238CODE
LOWopendbc/car/tests/test_vehicle_model.py41CODE
LOWopendbc/car/tests/car_diff.py35CODE
LOWopendbc/car/tests/car_diff.py250CODE
LOWopendbc/car/hyundai/values.py645CODE
LOWopendbc/car/hyundai/values.py18CODE
LOWopendbc/car/hyundai/carstate.py25CODE
LOWopendbc/car/hyundai/carstate.py72CODE
LOWopendbc/car/hyundai/hyundaicanfd.py236CODE
LOWopendbc/car/hyundai/carcontroller.py128CODE
LOWopendbc/car/hyundai/carcontroller.py174CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py95CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py129CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py148CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py163CODE
LOWopendbc/car/toyota/values.py404CODE
LOWopendbc/car/toyota/interface.py25CODE
LOWopendbc/car/toyota/radar_interface.py59CODE
LOWopendbc/car/toyota/carcontroller.py78CODE
LOWopendbc/car/toyota/tests/test_toyota.py67CODE
LOWopendbc/car/toyota/tests/test_toyota.py84CODE
LOWopendbc/car/toyota/tests/test_toyota.py95CODE
LOWopendbc/car/nissan/carstate.py27CODE
LOWopendbc/car/subaru/interface.py14CODE
LOWopendbc/car/subaru/carcontroller.py26CODE
LOWopendbc/car/rivian/tests/test_rivian.py8CODE
LOWopendbc/car/gm/interface.py88CODE
LOWopendbc/car/gm/carcontroller.py40CODE
LOWopendbc/car/chrysler/interface.py18CODE
LOWopendbc/car/chrysler/chryslercan.py76CODE
34 more matches not shown…
Cross-File Repetition17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHopendbc/car/volkswagen/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/ford/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/mazda/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/body/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/tesla/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/hyundai/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/toyota/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/nissan/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/subaru/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/rivian/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/gm/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/chrysler/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/psa/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGHopendbc/car/honda/fingerprints.py0auto-formatted using opendbc/car/debug/format_fingerprints.py, edit structure there.STRING
HIGH…dbc/generator/hyundai/hyundai_kia_mando_front_radar.py0version "" ns_ : ns_desc_ cm_ ba_def_ ba_ val_ cat_def_ cat_ filter ba_def_def_ ev_data_ envvar_data_ sgtype_ sgtype_valSTRING
HIGH…bc/generator/hyundai/hyundai_kia_mando_corner_radar.py0version "" ns_ : ns_desc_ cm_ ba_def_ ba_ val_ cat_def_ cat_ filter ba_def_def_ ev_data_ envvar_data_ sgtype_ sgtype_valSTRING
HIGH…endbc/dbc/generator/rivian/rivian_mando_front_radar.py0version "" ns_ : ns_desc_ cm_ ba_def_ ba_ val_ cat_def_ cat_ filter ba_def_def_ ev_data_ envvar_data_ sgtype_ sgtype_valSTRING
AI Slop Vocabulary15 hits · 37 pts
SeverityFileLineSnippetContext
MEDIUMopendbc/car/lateral.py71 # some safety modes utilize a dynamic max steerCOMMENT
MEDIUMopendbc/car/docs_definitions.py40 CUSTOM = "Custom" # Upstream, but don't have a harness available or need an unusual custom installCODE
MEDIUMopendbc/car/docs_definitions.py97 has_connector: bool = True # without are hidden on the harness connector pageCODE
LOWopendbc/car/volkswagen/values.py317# chassis code is already listed below, don't add a new CAR, just add to theCOMMENT
MEDIUMopendbc/car/volkswagen/interface.py41 ret.dashcamOnly = is_release # Release support needs HCA timeout fix, safety validation, revised J533 harnessCODE
MEDIUMopendbc/car/volkswagen/interface.py72 # only allow gateway harness to escalate Emergency AssistCOMMENT
MEDIUMopendbc/car/volkswagen/mebcan.py155 acceleration = ACCEL_OVERRIDE # original ACC still sends active accel in this case (seamless experience)CODE
MEDIUMopendbc/car/hyundai/values.py573 # TODO: 2021 MY harness is unknownCOMMENT
MEDIUMopendbc/car/hyundai/values.py583 # TODO: Hyundai P is likely the correct harness for HDA II for 2.5T (unsupported due to missing ADAS ECU, is that COMMENT
MEDIUMopendbc/car/hyundai/hyundaicanfd.py15 # have a different harness than the LFA steering variants in order to splitCOMMENT
MEDIUMopendbc/car/toyota/values.py73 # these cars can utilize 2.0 m/s^2COMMENT
LOWopendbc/car/toyota/tests/test_toyota.py17 # TODO: just use the FW patterns, need to support all chunksCOMMENT
MEDIUMopendbc/car/gm/values.py113 # Don't show in docs until the harness is sold. See https://github.com/commaai/openpilot/issues/32471COMMENT
MEDIUMopendbc/car/gm/values.py275# We're integrated at the camera with VOACC on these cars (instead of ASCM w/ OBD-II harness)COMMENT
MEDIUMopendbc/car/gm/interface.py127 else: # ASCM, OBD-II harnessCODE
Over-Commented Block23 hits · 23 pts
SeverityFileLineSnippetContext
LOWopendbc/car/tesla/tests/test_tesla.py21# After the comma, the version string decomposes into:COMMENT
LOWopendbc/car/hyundai/values.py81# message, ADAS DRV ECU forwards it as LFA to MDPS. For longitudinal, disable ADASCOMMENT
LOWopendbc/car/hyundai/hyundaican.py41 CAR.HYUNDAI_SANTA_FE_PHEV_2022, CAR.KIA_STINGER_2022, CAR.KIA_K5_HEV_2020, CAR.KIA_CEED,COMMENT
LOWopendbc/car/toyota/values.py481COMMENT
LOWopendbc/car/toyota/values.py501# - fwdCamera: describes actual features related to ADAS. For example, on the Avalon it describesCOMMENT
LOWopendbc/car/toyota/values.py541 bus=0,COMMENT
LOWopendbc/car/toyota/values.py561 # - Steering Angle Sensor (0x7b3)COMMENT
LOWopendbc/car/rivian/carstate.py61 # * ACM_FaultStatus will stay 0 since ACM itself isn't faultedCOMMENT
LOWopendbc/safety/declarations.h1#pragma onceCOMMENT
LOWopendbc/safety/declarations.h21#define SAFETY_ALLOUTPUT 17UCOMMENT
LOWopendbc/safety/declarations.h301 int steer_power_last;COMMENT
LOWopendbc/safety/safety.h1#pragma onceCOMMENT
LOWopendbc/safety/safety.h21#include "opendbc/safety/modes/subaru_preglobal.h"COMMENT
LOWopendbc/safety/modes/chrysler.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/chrysler.h21#define CHRYSLER_RAM_DT_DAS_3 0x99COMMENT
LOWopendbc/safety/modes/volkswagen_common.h21COMMENT
LOWopendbc/safety/modes/volkswagen_pq.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/ford.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/volkswagen_meb.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/subaru_preglobal.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/mazda.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/psa.h1#pragma onceCOMMENT
LOWopendbc/safety/modes/subaru.h21COMMENT
Cross-Language Confusion3 hits · 10 pts
SeverityFileLineSnippetContext
HIGHopendbc/car/vehicle_model.py50 If the speed is too low we can't use the dynamic model (tire slip is undefined),STRING
HIGHopendbc/car/vehicle_model.py153 At low speeds the tire slip is undefined, so a kinematicSTRING
HIGHopendbc/safety/tests/misra/test_mutation.py27 ("misra-c2012-13.5", lambda s: s + "\nvoid test(int tmp) { if (true && tmp++) {;} }\n"),CODE
Excessive Try-Catch Wrapping10 hits · 10 pts
SeverityFileLineSnippetContext
LOWopendbc/car/vin.py70 except Exception:CODE
LOWopendbc/car/fw_versions.py317 except Exception:CODE
LOWopendbc/car/disable_ecu.py31 except Exception:CODE
LOWopendbc/car/ecu_addrs.py54 except Exception:CODE
LOWopendbc/car/isotp_parallel_query.py108 except Exception:CODE
LOWopendbc/car/tests/car_diff.py108 except Exception:CODE
LOWopendbc/safety/tests/mutation.py487 except Exception as exc:STRING
LOWopendbc/safety/tests/mutation.py561 except Exception:STRING
LOWopendbc/safety/tests/mutation.py570 except Exception:STRING
MEDIUMopendbc/safety/tests/mutation.py479def eval_mutant(site, targets, lib_path, verbose):CODE
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWopendbc/car/ccp.py205 def set_memory_transfer_address(self, mta_num: int, addr_ext: int, addr: int) -> None:CODE
LOWopendbc/car/ccp.py256 def set_daq_list_pointer(self, list_num: int, odt_num: int, element_num: int) -> None:CODE
LOWopendbc/car/ccp.py295 def set_session_status(self, status: int) -> None:CODE
LOWopendbc/car/vehicle_model.py41 def update_params(self, stiffness_factor: float, steer_ratio: float) -> None:CODE
LOWopendbc/can/dbc.py220def set_signal_type(sig: Signal, chk: ChecksumState | None, dbc_name: str, line_num: int) -> None:CODE
LOWopendbc/can/__init__.py4__all__ = [CODE
LOWopendbc/can/packer.py58def set_value(msg: bytearray, sig: Signal, ival: int) -> None:CODE
LOWexamples/kbhit.py14 def set_kbhit_terminal(self) -> None:CODE
LOWexamples/kbhit.py26 def set_normal_term(self) -> None:CODE
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOWopendbc/car/secoc.py15 # Step 1: Build Freshness Value (48 bits)COMMENT
LOWopendbc/car/secoc.py19 # Step 2: Build data to authenticate (96 bits)COMMENT
LOWopendbc/car/secoc.py23 # Step 3: Calculate CMAC (28 bit)COMMENT
LOWopendbc/car/secoc.py28 # Step 4: Build messageCOMMENT
Structural Annotation Overuse4 hits · 9 pts
SeverityFileLineSnippetContext
LOWopendbc/car/secoc.py15 # Step 1: Build Freshness Value (48 bits)COMMENT
LOWopendbc/car/secoc.py19 # Step 2: Build data to authenticate (96 bits)COMMENT
LOWopendbc/car/secoc.py23 # Step 3: Calculate CMAC (28 bit)COMMENT
LOWopendbc/car/secoc.py28 # Step 4: Build messageCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWopendbc/car/mazda/carstate.py98 # Check if LKAS is disabled due to lack of driver torque when all other states indicateCOMMENT
LOWopendbc/car/hyundai/interface.py47 # Check if the car is hybrid. Only HEV/PHEV cars have 0xFA on E-CAN.COMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMopendbc/car/rivian/radar_interface.py56 # Rivian's Short Range Radar (SSR) detects close stationary objects like guardrails, which cause phantom braking.COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWopendbc/car/honda/carcontroller.py82 # TODO: implement separate available LDW alertCOMMENT
LOWopendbc/safety/modes/volkswagen_mlb.h13 // TODO: implement checksum validationCOMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWopendbc/can/__init__.py1CODE
LOWopendbc/can/__init__.py2CODE
LOWopendbc/can/__init__.py2CODE