AI Slop Code RIsk Monitor

commaai/opendbc

a Python API for your car

10.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for commaai/opendbc, a Python project with 3,478 GitHub stars. SynthScan examined 53,483 lines of code across 320 source files, recording 396 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 10.2 (Moderate pattern signal); it is not an authorship estimate.

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

10.2
Adjusted Signal
10.2
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
3.5K
Stars
Python
Language
53.5K
Lines of Code
320
Files
396
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 31.3/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 1.2/100 · LOW

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

Agent Over-Engineering Ratio 27.7/100 · MEDIUM

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

PR Review Velocity Impact 40.4/100 · MEDIUM

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 25MEDIUM 16LOW 355

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers200 hits · 218 pts
SeverityFileLineSnippetContext
LOW⚡opendbc/car/interfaces.py172 def get_steer_feedforward_default(desired_angle, v_ego):CODE
LOW⚡opendbc/car/interfaces.py176 def get_steer_feedforward_function(self):CODE
LOW⚡opendbc/car/interfaces.py179 def torque_from_lateral_accel_linear(self, lateral_acceleration: float, torque_params: structs.CarParams.LateralTorqueCODE
LOW⚡opendbc/car/interfaces.py183 def torque_from_lateral_accel(self) -> TorqueFromLateralAccelCallbackType:CODE
LOW⚡opendbc/car/interfaces.py186 def lateral_accel_from_torque_linear(self, torque: float, torque_params: structs.CarParams.LateralTorqueTuning) -> floCODE
LOW⚡opendbc/car/interfaces.py189 def lateral_accel_from_torque(self) -> LateralAccelFromTorqueCallbackType:CODE
LOWopendbc/car/interfaces.py317 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.py52def 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
LOW⚡opendbc/car/uds.py792 def read_scaling_data_by_identifier(self, data_identifier_type: DATA_IDENTIFIER_TYPE):CODE
LOW⚡opendbc/car/uds.py800 def read_data_by_periodic_identifier(self, transmission_mode_type: TRANSMISSION_MODE_TYPE, periodic_data_identifier: iCODE
LOW⚡opendbc/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):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.py248def 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.py271def ford_asbuilt_block_request(block_id: int):CODE
LOWopendbc/car/ford/values.py275def 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.py68 def test_platform_codes_fuzzy_fw(self, fuzzy):CODE
LOWopendbc/car/ford/tests/test_ford.py72 def test_platform_codes_spot_check(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py77 def test_fuzzy_match_ecu_count(self, brand, car_model, ecus):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py118 def test_all_addrs_map_to_one_ecu(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py128 def test_data_collection_ecus(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py151 def test_missing_versions_and_configs(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py169 def test_fw_request_ecu_whitelist(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py183 def test_request_ecus_in_versions(self):CODE
LOWopendbc/car/tests/test_fw_fingerprint.py220 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/tests/test_models.py108 def get_testing_data_from_logreader(cls, lr):CODE
LOWopendbc/car/tests/test_models.py231 def test_panda_safety_rx_checks(self):CODE
LOWopendbc/car/tests/test_models.py284 def test_panda_safety_tx_cases(self):CODE
LOWopendbc/car/tests/test_models.py323 def test_panda_safety_carstate_fuzzy(self, fuzzy):CODE
LOWopendbc/car/tests/test_models.py376 def test_panda_safety_carstate(self):CODE
LOWopendbc/car/tesla/teslacan.py19 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.py123 def test_correct_ecu_response_database(self):CODE
140 more matches not shown…
Deep Nesting98 hits · 96 pts
SeverityFileLineSnippetContext
LOWopendbc/car/interfaces.py378CODE
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.py17CODE
LOWopendbc/car/volkswagen/mebcan.py97CODE
LOWopendbc/car/volkswagen/carcontroller.py63CODE
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.py128CODE
LOWopendbc/car/ford/fordcan.py207CODE
LOWopendbc/car/tests/test_docs.py34CODE
LOWopendbc/car/tests/test_docs.py50CODE
LOWopendbc/car/tests/test_fw_fingerprint.py101CODE
LOWopendbc/car/tests/test_fw_fingerprint.py110CODE
LOWopendbc/car/tests/test_fw_fingerprint.py136CODE
LOWopendbc/car/tests/test_fw_fingerprint.py247CODE
LOWopendbc/car/tests/test_vehicle_model.py41CODE
LOWopendbc/car/tests/test_models.py108CODE
LOWopendbc/car/tests/test_models.py231CODE
LOWopendbc/car/tests/test_models.py376CODE
LOWopendbc/car/tests/car_diff.py35CODE
LOWopendbc/car/tests/car_diff.py250CODE
LOWopendbc/car/hyundai/values.py653CODE
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.py109CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py140CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py159CODE
LOWopendbc/car/hyundai/tests/test_hyundai.py174CODE
LOWopendbc/car/toyota/values.py405CODE
LOWopendbc/car/toyota/interface.py25CODE
LOWopendbc/car/toyota/radar_interface.py57CODE
LOWopendbc/car/toyota/carcontroller.py78CODE
LOWopendbc/car/toyota/tests/test_toyota.py68CODE
LOWopendbc/car/toyota/tests/test_toyota.py82CODE
LOWopendbc/car/toyota/tests/test_toyota.py93CODE
LOWopendbc/car/nissan/carstate.py27CODE
LOWopendbc/car/subaru/interface.py14CODE
LOWopendbc/car/subaru/carcontroller.py26CODE
LOWopendbc/car/rivian/tests/test_rivian.py8CODE
38 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 · 38 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.py322# chassis code is already listed below, don't add a new CAR, just add to theCOMMENT
MEDIUMopendbc/car/volkswagen/interface.py45 ret.dashcamOnly = is_release # Release support needs HCA timeout fix, safety validation, revised J533 harnessCODE
MEDIUMopendbc/car/volkswagen/interface.py78 # only allow gateway harness to escalate Emergency AssistCOMMENT
MEDIUMopendbc/car/volkswagen/radar_interface.py25 # With the MEB gateway harness, we do not have access to the raw points from the radar.COMMENT
MEDIUMopendbc/car/hyundai/values.py581 # TODO: 2021 MY harness is unknownCOMMENT
MEDIUMopendbc/car/hyundai/values.py591 # 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.py74 # these cars can utilize 2.0 m/s^2COMMENT
LOWopendbc/car/toyota/tests/test_toyota.py15 # TODO: just use the FW patterns, need to support all chunksCOMMENT
MEDIUMopendbc/car/gm/values.py118 # Don't show in docs until the harness is sold. See https://github.com/commaai/openpilot/issues/32471COMMENT
MEDIUMopendbc/car/gm/values.py281# We're integrated at the camera with VOACC on these cars (instead of ASCM w/ OBD-II harness)COMMENT
MEDIUMopendbc/car/gm/interface.py125 else: # ASCM, OBD-II harnessCODE
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHopendbc/car/interfaces.py398except (ImportError, OSError):CODE
HIGHopendbc/car/logreader.py60except capnp.lib.capnp.KjException:CODE
HIGHopendbc/car/uds.py397except IndexError:CODE
HIGHopendbc/car/tests/test_models.py65except OSError:CODE
HIGHopendbc/car/tests/test_models.py156except (OSError, AssertionError):CODE
Over-Commented Block21 hits · 21 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, CAR.COMMENT
LOWopendbc/car/toyota/values.py481COMMENT
LOWopendbc/car/toyota/values.py501# List of ECUs that are most unique across openpilot platformsCOMMENT
LOWopendbc/car/toyota/values.py561 # - Telematics ((0x750, 0xc7))COMMENT
LOWopendbc/safety/declarations.h1#pragma onceCOMMENT
LOWopendbc/safety/declarations.h21#define SAFETY_ALLOUTPUT 17UCOMMENT
LOWopendbc/safety/declarations.h301 uint32_t ts_check_last;COMMENT
LOWopendbc/safety/safety.h1#pragma onceCOMMENT
LOWopendbc/safety/safety.h21#include "opendbc/safety/modes/subaru.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
Excessive Try-Catch Wrapping11 hits · 10 pts
SeverityFileLineSnippetContext
LOWopendbc/testing.py119 except Exception as exc:CODE
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.py477 except Exception as exc:STRING
LOWopendbc/safety/tests/mutation.py551 except Exception:STRING
LOWopendbc/safety/tests/mutation.py560 except Exception:STRING
MEDIUMopendbc/safety/tests/mutation.py469def eval_mutant(site, targets, lib_path, verbose):CODE
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
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.py259def set_signal_type(sig: Signal, chk: ChecksumState | None, dbc_name: str, line_num: int, address: 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
LOW⚡opendbc/car/secoc.py15 # Step 1: Build Freshness Value (48 bits)COMMENT
LOW⚡opendbc/car/secoc.py19 # Step 2: Build data to authenticate (96 bits)COMMENT
LOW⚡opendbc/car/secoc.py23 # Step 3: Calculate CMAC (28 bit)COMMENT
LOW⚡opendbc/car/secoc.py28 # Step 4: Build messageCOMMENT
Structural Annotation Overuse4 hits · 9 pts
SeverityFileLineSnippetContext
LOW⚡opendbc/car/secoc.py15 # Step 1: Build Freshness Value (48 bits)COMMENT
LOW⚡opendbc/car/secoc.py19 # Step 2: Build data to authenticate (96 bits)COMMENT
LOW⚡opendbc/car/secoc.py23 # Step 3: Calculate CMAC (28 bit)COMMENT
LOW⚡opendbc/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.py48 # 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.py55 # 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.py81 # TODO: implement separate available LDW alertCOMMENT
LOWopendbc/safety/modes/volkswagen_mlb.h16 // TODO: implement checksum validationCOMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWopendbc/can/__init__.py1CODE
LOWopendbc/can/__init__.py2CODE
LOWopendbc/can/__init__.py2CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMopendbc/safety/tests/libsafety/libsafety_py.py64# This function is generated by mutation.py rather than defined in the sources above.COMMENT