Repository Analysis

zephyrproject-rtos/zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.

3.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of zephyrproject-rtos/zephyr, a C project with 15,891 GitHub stars. SynthScan v2.0 examined 4,871,529 lines of code across 29482 source files, recording 17858 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.3 places this repository in the Likely human-written 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).

3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
15.9K
Stars
C
Language
4.9M
Lines of Code
29.5K
Files
17.9K
Pattern Hits
2026-07-14
Scan Date
0.00
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 2HIGH 71MEDIUM 329LOW 17456

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 17858 distinct pattern matches across 21 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.

Over-Commented Block15572 hits · 13207 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# SPDX-License-Identifier: Apache-2.0COMMENT
LOWCMakeLists.txt41# details.COMMENT
LOWCMakeLists.txt61#COMMENT
LOWCMakeLists.txt201 zephyr_compile_options("$<$<COMPILE_LANGUAGE:CXX>:$<TARGET_PROPERTY:compiler,security_canaries_all>>")COMMENT
LOWCMakeLists.txt741# matters so we need to be careful about how we order the processingCOMMENT
LOWMAINTAINERS.yml1# This file contains information on who maintains what. It is parsed byCOMMENT
LOWMAINTAINERS.yml21# The area contains deprecated or legacy code that has beenCOMMENT
LOWMAINTAINERS.yml41# If a path or glob pattern ends in a '/', it matches all files withinCOMMENT
LOWMAINTAINERS.yml61# files-regex-exclude:COMMENT
LOWMAINTAINERS.yml81# - <file path>COMMENT
LOWMAINTAINERS.yml101# used for assignment as normal.COMMENT
LOWMAINTAINERS.yml121# are the ones used in test case definitions, and in test suite definitions inCOMMENT
LOWMAINTAINERS.yml141# the pull requestCOMMENT
LOWMAINTAINERS.yml161# Changes to MAINTAINERS.yml need to be approved as follows:COMMENT
LOWzephyr-env.sh1#COMMENT
LOWwest.yml1# The west manifest file for upstream Zephyr.COMMENT
LOWmisc/llext_edk/CMakeLists.txt1# Copyright 2025 Arduino SACOMMENT
LOWdts/binding-template.yaml1# The contents of this file have been moved to the documentation.COMMENT
LOWdts/bindings/binding-types.txt1# SPDX-FileCopyrightText: Copyright (c) 2025 The Linux FoundationCOMMENT
LOWdts/bindings/vendor-prefixes.txt1# SPDX-FileCopyrightText: Copyright (c) 2026 The Linux FoundationCOMMENT
LOWdts/bindings/pwm/renesas,rx-mtu-pwm.yaml1# Copyright (c) 2025 Renesas Electronics CorporationCOMMENT
LOWdts/bindings/pwm/renesas,rx-mtu-pwm.yaml21 // | | MTU2.TGRB | | MTIOC2B |COMMENT
LOWdts/bindings/usb/uac2/zephyr,uac2.yaml1# Copyright (c) 2023 Nordic Semiconductor ASACOMMENT
LOWdts/bindings/adc/gd,gd32-adc.yaml1# Copyright (c) 2022 BrainCo Inc.COMMENT
LOWdts/bindings/dma/atmel,sam0-dmac.yaml21# The 2nd cell defines the peripheral trigger which is the source of the transfer.COMMENT
LOWdts/bindings/dma/microchip,dmac-g2-dma.yaml41# DMAC instance.COMMENT
LOWdts/bindings/dma/microchip,dmac-g3-dma.yaml41# DMAC instance.COMMENT
LOWdts/bindings/dma/microchip,xec-dmac.yaml41# #dma-cells : Must be <2>.COMMENT
LOWdts/bindings/dma/snps,designware-dma-axi.yaml21 const: 1COMMENT
LOWdts/bindings/dma/microchip,dmac-g1-dma.yaml61# #dma-cells : Must be <2>.COMMENT
LOWdts/bindings/mtd/jedec,jesd216.yaml1# Copyright (c) 2018 Peter Bigot Consulting, LLCCOMMENT
LOWdts/bindings/mtd/jedec,spi-nor-common.yaml1# Copyright (c) 2018 Peter Bigot Consulting, LLCCOMMENT
LOWdts/bindings/gpio/nxp,pca_series.yaml1# Copyright 2024 NXPCOMMENT
LOWdts/bindings/clock/nuvoton,m4-pll-clock.yaml21# TODO: Bypass controlCOMMENT
LOWdts/arm/broadcom/valkyrie-irq.h1/* SPDX-License-Identifier: Apache-2.0 */COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h21#define SPI_RESERVED6_9 227COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h41#define IRQ_APB_LS2_PINS_BUS 207COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h61#define MIIM_PAUSE_SCAN_STATUS_CHANGE 187COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h81#define SPI_RESERVED5_7 167COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h101#define SRAM_TZC_INTERRUPT 147COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h121#define PAXB1_MSIX_INTR13 127COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h141#define PAXB1_GIC_INTR0 107COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h161#define PAXB0_GIC_INTR4 87COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h181#define SSIM0_AFBC_IRQ_CONFIG_SWAP 67COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h201#define PCIE1_INB_PERSTB_EVENT 47COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h221#define RESERVED_27 27COMMENT
LOWdts/arm/broadcom/valkyrie-irq.h241#define MCU_TIMER_INTR 7COMMENT
LOWdts/arm/infineon/cat1a/legacy/pinctrl_cypress_psoc6.h21#define HSIOM_SEL_amuxb 5COMMENT
LOWdrivers/tee/optee/optee_smc.h21#define OPTEE_SMC_64 U(0x40000000)COMMENT
LOWdrivers/tee/optee/optee_smc.h41COMMENT
LOWdrivers/tee/optee/optee_msg.h21 *****************************************************************************/COMMENT
LOWdrivers/tee/optee/optee_msg.h341#define OPTEE_MSG_CMD_REGISTER_SHM U(4)COMMENT
LOWdrivers/usb_c/tcpc/fusb307.h1/*COMMENT
LOWdrivers/usb_c/tcpc/fusb307.h21#define FUSB307_REG_GPIO2_CFG 0xA5COMMENT
LOWdrivers/usb_c/tcpc/fusb307.h41#define FUSB307_REG_SRC_FRSWAP_MANUAL_SNK_EN BIT(1)COMMENT
LOWdrivers/usb_c/tcpc/rt1715.h21#define RT1715_REG_SYS_CTRL_1_BMCIO_OSC_EN BIT(0)COMMENT
LOWdrivers/usb_c/tcpc/rt1715.h41/** Low power mode exited */COMMENT
LOWdrivers/usb_c/tcpc/ucpd_stm32.c1/*COMMENT
LOWdrivers/usb_c/tcpc/ucpd_numaker.c1/*COMMENT
LOWdrivers/haptics/haptics_shell.c21#define HAPTICS_GET_HELP SHELL_HELP("Get monitor reading", "<device> <monitor> <type>")COMMENT
15512 more matches not shown…
Hyper-Verbose Identifiers882 hits · 750 pts
SeverityFileLineSnippetContext
LOWsoc/intel/intel_adsp/tools/cavstool.py763def debug_slot_offset_by_type(the_type, timeout_s=0.2):CODE
LOWsoc/intel/intel_adsp/tools/cavstool.py786def read_from_shell_memwindow_winstream(last_seq):CODE
LOWsoc/intel/intel_adsp/tools/cavstool.py798def write_to_shell_memwindow_winstream():CODE
LOWsoc/sifli/sf32/gen_ftab.py134def _build_image_descriptions(sec_index: int, code_size: int) -> bytes:CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py259def _check_firmware_header_offset(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py299def _set_spi_flash_maximum_clock(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py418def _set_error_detection_configuration(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py442def _set_firmware_load_start_address(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py505def _set_firmware_entry_point(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py560def _set_firmware_crc_start_and_size(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py712def _set_firmware_header_crc_signature(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py748def _set_firmware_image_crc_signature(output, ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py824def _merge_file_with_bt_header(ecst_args):CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py952def _exit_with_failure_delete_file(output, message):CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost.py177def _set_firmware_load_start_address(output, esiost_args):CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost.py266def _set_firmware_entry_point(output, esiost_args):CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost.py450def _set_firmware_segment_hash(output, esiost_args):CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost.py544def _exit_with_failure_delete_file(output, message):CODE
LOWsoc/infineon/cat1b/cyw20829/gen_app_header.py48def generate_platform_headers(CODE
LOWinclude/zephyr/drivers/lora.h313 * @typedef lora_api_recv_duty_cycle_async()COMMENT
LOW…it_priorities/validate_check_init_priorities_output.py40def normalize_initlevel_output(line):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py317 def test_packages_have_valid_spdx_ids(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py324 def test_has_multiple_relationship_types(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py331 def test_has_external_document_refs(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py336 def test_app_package_excludes_generated_files(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py43def get_relationships_for_element(doc, spdx_id, rel_type):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py116 def test_describes_relationship(self, doc_with_name):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py128 def test_app_sources_package_exists(self, app_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py171 def test_contains_relationships(self, app_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py219 def test_main_c_license_correct(self, app_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py230 def test_main_c_copyright_correct(self, app_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py253 def test_zephyr_sources_package_exists(self, zephyr_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py260 def test_zephyr_sources_spdx_id(self, zephyr_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py287 def test_files_have_apache_license(self, zephyr_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py355 def test_describes_relationship_if_packages(self, modules_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py366 def test_packages_have_valid_spdx_ids(self, modules_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py377 def test_external_ref_to_zephyr(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py395 def test_external_refs_have_checksums(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py410 def test_external_ref_checksums_match_final_documents(CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py450 def test_cross_doc_ref_targets_exist(self, app_doc, zephyr_doc, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py508 def test_libapp_exists_in_build(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py513 def test_libapp_generated_from_main_c(self, build_doc, app_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py547 def test_zephyr_elf_exists_in_build(self, build_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py557 def test_zephyr_elf_static_links(self, build_doc, lib_file):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py577 def test_libkernel_generated_from_kernel_sources(self, build_doc, zephyr_doc):CODE
LOW…ment/software_bill_of_materials/verify_spdx_content.py604 def test_libkernel_generated_from_specific_sources(self, build_doc, expected_source):CODE
LOW…et/lib/lwm2m/interop/pytest/test_observe_attributes.py20def test_attribute_gt_lt_st_wrong_res_type(leshan: Leshan, endpoint: str):CODE
LOW…et/lib/lwm2m/interop/pytest/test_observe_attributes.py71def test_attribute_greater_than(shell: Shell, leshan: Leshan, endpoint: str):CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_lwm2m.py178def verify_setting_basic_in_format(shell, leshan, endpoint, format):CODE
LOWtests/net/lib/lwm2m/interop/pytest/leshan.py411 def passive_cancel_composite_observe(self, endpoint: str, paths: list[str]):CODE
LOW…ocket/tls_configurations/pytest/test_app_vs_openssl.py15def get_arguments_from_server_type(server_type, port):CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py70def verify_upgrade_after_reset(CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py117def test_upgrade_ble_with_revert(CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py124def test_upgrade_with_confirm(CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py155def test_downgrade_prevention(CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py185def test_upgrade_wrong_signature(CODE
LOW…sys/testsuite/no_self_build/pytest/test_hello_world.py13def test_hello_world_with_platform(dut: DeviceAdapter):CODE
LOW…subsys/testsuite/multidut/pytest/test_multiple_duts.py13def test_multidut_check_history(shells: list[Shell]):CODE
LOW…subsys/testsuite/multidut/pytest/test_multiple_duts.py39def test_multidut_different_apps(duts: list[DeviceAdapter]):CODE
LOW…tive_mount_cmdline/pytest/test_native_mount_cmdline.py50def test_native_mount_cmdline(dut: DeviceAdapter):CODE
822 more matches not shown…
Decorative Section Separators224 hits · 581 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt506# ==========================================================================COMMENT
MEDIUMCMakeLists.txt513# ==========================================================================COMMENT
MEDIUMsoc/nordic/nrf71/uicr/gen_uicr/gen_uicr.py19# ── Field table ──────────────────────────────────────────────────────COMMENT
MEDIUMsoc/nordic/nrf71/wicr/gen_wicr/gen_wicr.py20# ── Field table ──────────────────────────────────────────────────────COMMENT
MEDIUM…tooth/ll/edtt/tests_scripts/_controller_tests_inner.sh7# =========================COMMENT
MEDIUM…tooth/ll/edtt/tests_scripts/_controller_tests_inner.sh13# ---------------------COMMENT
MEDIUM…tooth/ll/edtt/tests_scripts/_controller_tests_inner.sh29# ----------------COMMENT
MEDIUM…flite-micro/magic_wand/train/data_augmentation_test.py15# ==============================================================================COMMENT
MEDIUM…odules/tflite-micro/magic_wand/train/data_load_test.py15# ==============================================================================COMMENT
MEDIUM…dules/tflite-micro/magic_wand/train/data_split_test.py15# ==============================================================================COMMENT
MEDIUM…les/tflite-micro/magic_wand/train/data_prepare_test.py15# ==============================================================================COMMENT
MEDIUM…les/tflite-micro/magic_wand/train/data_split_person.py16# ==============================================================================COMMENT
MEDIUM…es/modules/tflite-micro/magic_wand/train/train_test.py15# ==============================================================================COMMENT
MEDIUM…es/modules/tflite-micro/magic_wand/train/data_split.py16# ==============================================================================COMMENT
MEDIUM…flite-micro/magic_wand/train/data_split_person_test.py15# ==============================================================================COMMENT
MEDIUMsamples/modules/tflite-micro/magic_wand/train/train.py15# ==============================================================================COMMENT
MEDIUM…les/tflite-micro/magic_wand/train/data_augmentation.py15# ==============================================================================COMMENT
MEDIUM…/modules/tflite-micro/magic_wand/train/data_prepare.py16# ==============================================================================COMMENT
MEDIUM…les/modules/tflite-micro/magic_wand/train/data_load.py15# ==============================================================================COMMENT
MEDIUMsamples/modules/tflite-micro/tflm_ethosu/CMakeLists.txt58# -----------------------------------------------------------------------------COMMENT
MEDIUMsamples/modules/tflite-micro/tflm_ethosu/CMakeLists.txt60# -----------------------------------------------------------------------------COMMENT
MEDIUMscripts/dts/python-devicetree/src/devicetree/edtlib.py32# --------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py592# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py594# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py757# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py759# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py825# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/tracing/trace_viewer.py827# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/west_commands/tests/test_nrf.py75 # -------------------------------------------------------------------------COMMENT
MEDIUMscripts/west_commands/tests/test_nrf.py124 # -------------------------------------------------------------------------COMMENT
MEDIUMscripts/west_commands/tests/test_nrf.py175 # -------------------------------------------------------------------------COMMENT
MEDIUMscripts/west_commands/tests/test_nrf.py221 # -------------------------------------------------------------------------COMMENT
MEDIUMscripts/west_commands/tests/test_nrf.py267 # -------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1194# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1196# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1422# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1424# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1614 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py1616 # ------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py2042# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py2044# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py2788# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py2790# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py2792# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py3330# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py3332# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py188# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py190# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py275# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py277# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py323# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py325# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py377# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/ci/test_plan_v2.py379# ---------------------------------------------------------------------------COMMENT
164 more matches not shown…
Deep Nesting389 hits · 350 pts
SeverityFileLineSnippetContext
LOWcmake/sca/polyspace/polyspace-print-console.py15CODE
LOWsoc/intel/intel_ish/utils/build_ish_firmware_v1p1.py141CODE
LOWsoc/intel/intel_ish/utils/build_ish_firmware.py56CODE
LOWsoc/intel/intel_adsp/tools/cavstool.py832CODE
LOWsoc/intel/intel_adsp/tools/remote-fw-service.py128CODE
LOWsoc/intel/intel_adsp/tools/remote-fw-service.py199CODE
LOWsoc/mediatek/mt8xxx/mtk_adsp_load.py314CODE
LOWsoc/mediatek/mt8xxx/gen_img.py59CODE
LOWsoc/microchip/mec/common/spigen/mec_spi_gen.py311CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst_args.py125CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py299CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py370CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py651CODE
LOWsoc/nuvoton/npcx/common/ecst/ecst.py824CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost.py177CODE
LOWsoc/nuvoton/npcm/common/esiost/esiost_args.py78CODE
LOWsoc/silabs/silabs_sim3/sim3u/gen_crossbar_config.py245CODE
LOWsoc/silabs/silabs_sim3/sim3u/gen_crossbar_config.py83CODE
LOWsoc/silabs/silabs_sim3/sim3u/gen_crossbar_config.py220CODE
LOWtests/net/lib/lwm2m/interop/pytest/leshan.py253CODE
LOWtests/net/lib/lwm2m/interop/pytest/leshan.py270CODE
LOWtests/net/lib/lwm2m/interop/pytest/leshan.py445CODE
LOW…ocket/tls_configurations/pytest/test_app_vs_openssl.py15CODE
LOW…s/logging/dictionary/pytest/test_logging_dictionary.py161CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py44CODE
LOW…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py41CODE
LOW…ts/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py58CODE
LOW…ts/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py249CODE
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py29CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py323CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py62CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py74CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py75CODE
LOW…ts/bluetooth/classic/rfcomm_s/pytest/rfcomm_utility.py261CODE
LOW…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py36CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py54CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/test_smp.py43CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/test_smp.py89CODE
LOW…/bluetooth/classic/l2cap_s/pytest/test_l2cap_common.py44CODE
LOWtests/bluetooth/classic/a2dp_source/pytest/test_a2dp.py73CODE
LOWtests/bluetooth/classic/gap_s/pytest/test_gap_s.py29CODE
LOWtests/bluetooth/classic/smp_general/pytest/test_smp.py142CODE
LOWtests/bluetooth/classic/sdp_s/pytest/test_sdp.py92CODE
LOWtests/bluetooth/classic/sdp_s/pytest/test_sdp.py318CODE
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py129CODE
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py269CODE
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py364CODE
LOW…dules/tflite-micro/magic_wand/train/data_split_test.py45CODE
LOW…les/tflite-micro/magic_wand/train/data_split_person.py41CODE
LOW…es/modules/tflite-micro/magic_wand/train/data_split.py51CODE
LOW…les/tflite-micro/magic_wand/train/data_augmentation.py43CODE
LOW…/modules/tflite-micro/magic_wand/train/data_prepare.py46CODE
LOWarch/x86/gen_mmu.py685CODE
LOWscripts/list_shields.py67CODE
LOWscripts/list_boards.py302CODE
LOWscripts/zephyr_module.py200CODE
LOWscripts/zephyr_module.py572CODE
LOWscripts/zephyr_module.py754CODE
LOWscripts/snippets.py62CODE
LOWscripts/list_hardware.py43CODE
329 more matches not shown…
Cross-Language Confusion41 hits · 218 pts
SeverityFileLineSnippetContext
HIGHsoc/microchip/mec/common/spigen/mec_spi_gen.py427 print("SHA-384 digest (paddedFW || ec_info_block || cosig)")CODE
HIGHtests/drivers/can/host/pytest/test_can.py72 if not tx.equals(rx, timestamp_delta=None, check_channel=False, check_direction=False):CODE
HIGHscripts/gen_test_matrix_dashboard.py135 th.classList.toggle('asc', th.dataset.k === sortKey && sortDir === 1);CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1355 or1 = < (0 || 0) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1356 or2 = < (0 || 1) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1357 or3 = < (1 || 0) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1358 or4 = < (1 || 1) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1359 and1 = < (0 && 0) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1360 and2 = < (0 && 1) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1361 and3 = < (1 && 0) >;CODE
HIGHscripts/dts/python-devicetree/tests/test_dtlib.py1362 and4 = < (1 && 1) >;CODE
HIGHscripts/kconfig/kconfiglib.py4185 properties. For example, 'default A && B if C || D' is represented asCODE
HIGHscripts/kconfig/kconfiglib.py4185 properties. For example, 'default A && B if C || D' is represented asCODE
HIGHscripts/kconfig/kconfiglib.py4194 For example, 'select A if B && C' is represented as (A, (AND, B, C)). IfCODE
HIGHscripts/kconfig/kconfiglib.py6292 split_expr( A && B , OR ) -> [A && B]CODE
HIGHscripts/kconfig/kconfiglib.py6293 split_expr( A || B , OR ) -> [A, B]CODE
HIGHscripts/kconfig/kconfiglib.py6294 split_expr( A || B , AND ) -> [A || B]CODE
HIGHscripts/kconfig/kconfiglib.py6295 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGHscripts/kconfig/kconfiglib.py6295 split_expr( A || B || (C && D) , OR ) -> [A, B, C && D]CODE
HIGHscripts/kconfig/kconfiglib.py6298 split_expr( A || (B && (C || D)) , OR ) -> [A, B && (C || D)]CODE
HIGHscripts/kconfig/kconfiglib.py6302 split_expr( (A || B) || C , OR ) -> [A, B, C]CODE
HIGHscripts/kconfig/kconfiglib.py6303 split_expr( A || (B || C) , OR ) -> [A, B, C]CODE
HIGHscripts/kconfig/kconfiglib.py1962 which has the value y, then eval_string("y && (FOO || BAR)") returnsCODE
HIGHscripts/kconfig/kconfiglib.py1971 the C implementation. m is rewritten to 'm && MODULES', soCODE
HIGHscripts/kconfig/kconfiglib.py4053 (A, !A, A && B, A || B).CODE
HIGHscripts/kconfig/kconfiglib.py4053 (A, !A, A && B, A || B).CODE
HIGHscripts/kconfig/kconfiglib.py4168 If the symbol is undefined, the location is given as "(undefined)".CODE
HIGHscripts/kconfig/kconfiglib.py4211 Gotcha: 1 and 2 above will be represented as (undefined) Symbols ratherCODE
HIGHscripts/kconfig/kconfiglib.py5234 example, 'default A if B && C' is represented as (A, (AND, B, C)). IfCODE
HIGHscripts/kconfig/kconfiglib.py188 tristate "foo" if A && B && C && DSTRING
HIGHscripts/kconfig/kconfiglib.py189 default y if A && B && CSTRING
HIGHscripts/kconfig/kconfiglib.py193In this example, A && B && C && D (the prompt condition) needs to be non-n forSTRING
HIGHscripts/kconfig/kconfiglib.py306A && B (AND, A, B)STRING
HIGHscripts/kconfig/kconfiglib.py307A && B && C (AND, A, (AND, B, C))STRING
HIGHscripts/kconfig/kconfiglib.py308A || B (OR, A, B)STRING
HIGHscripts/kconfig/kconfiglib.py309A || (B && C && D) (OR, A, (AND, B, (AND, C, D)))STRING
HIGHscripts/kconfig/kconfiglib.py312A && B = C && D (AND, A, (AND, (EQUAL, B, C), D))STRING
HIGHscripts/kconfig/kconfiglib.py329 - The value of A && B is min(A.tri_value, B.tri_value)STRING
HIGHscripts/kconfig/kconfiglib.py331 - The value of A || B is max(A.tri_value, B.tri_value)STRING
HIGHscripts/kconfig/kconfiglib.py338 For constant (as well as undefined) symbols, str_value matches the name ofSTRING
HIGHscripts/kconfig/kconfiglib.py6580 return "(undefined)"STRING
Excessive Try-Catch Wrapping191 hits · 203 pts
SeverityFileLineSnippetContext
LOWsoc/intel/intel_adsp/tools/cavstool.py409 except Exception as e:CODE
LOWsoc/intel/intel_adsp/tools/cavstool.py512 except Exception as e:CODE
LOWsoc/intel/intel_adsp/tools/cavstool.py968 except Exception as e:CODE
MEDIUMsoc/intel/intel_adsp/tools/cavstool.py217def map_regs(log_only):CODE
MEDIUMsoc/intel/intel_adsp/tools/cavstool.py506def load_firmware_ace(fw_file):CODE
MEDIUMsoc/intel/intel_adsp/tools/cavstool.py664def win_read(base, start, length):CODE
LOWsoc/intel/intel_adsp/tools/remote-fw-service.py75 except Exception as e:CODE
LOWsoc/renesas/ra/tools/gen_rpd.py61 except Exception as e:CODE
LOWsoc/renesas/ra/tools/gen_rpd.py98 except Exception as e:CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_blockwise.py57 except Exception as e:CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py40 except Exception:CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py57 except Exception as e:CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py84 except Exception as e:CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py103 except Exception as e:CODE
MEDIUM…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py100def bumble_l2cap_disconnect(shell, dut, incoming_channel, iut_id=L2CAP_CHAN_IUT_CODE
LOW…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py36 except Exception:CODE
LOW…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py62 except Exception as e:CODE
LOW…ts/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py68 except Exception as e:CODE
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py24 except Exception:CODE
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py52 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py336 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py347 except Exception:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py374 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py409 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py468 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py540 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py575 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py645 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py680 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py725 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py770 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py816 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py851 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py907 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py972 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py1007 except Exception as e:CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py1089 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py44 except Exception:CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py55 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py94 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py121 except Exception as e:CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py70 except Exception:CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py88 except Exception as e:CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py116 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py57 except Exception:CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py68 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py107 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py134 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py235 except Exception as error:CODE
MEDIUMtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py228def reply() -> None:CODE
LOW…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py31 except Exception:CODE
LOW…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py57 except Exception as e:CODE
LOW…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py267 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py36 except Exception:CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py47 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py86 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py113 except Exception as e:CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py370 except Exception as e:CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/test_smp.py39 except Exception:CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/test_smp.py78 except Exception as e:CODE
131 more matches not shown…
Self-Referential Comments55 hits · 163 pts
SeverityFileLineSnippetContext
MEDIUMMAINTAINERS.yml1# This file contains information on who maintains what. It is parsed byCOMMENT
MEDIUMdts/bindings/sensor/adi,ad2s1210.yaml4# This file contains the binding for ad2s1210 sensorCOMMENT
MEDIUMdts/bindings/rtc/adi,max31331.yaml4# This file contains the binding for MAX31331 RTC from Analog Devices.COMMENT
MEDIUMsoc/intel/intel_adsp/tools/cavstool_client.py21# Define the command and itsCOMMENT
MEDIUMsoc/intel/intel_adsp/tools/cavstool_client.py27# Define the header format and size forCOMMENT
MEDIUMsoc/intel/intel_adsp/tools/remote-fw-service.py28# Define the command and the max sizeCOMMENT
MEDIUMsoc/intel/intel_adsp/tools/remote-fw-service.py33# Define the return value in handle functionCOMMENT
MEDIUMsoc/intel/intel_adsp/tools/remote-fw-service.py36# Define the header format and size forCOMMENT
MEDIUMsoc/mediatek/mt8xxx/mtk_adsp_load.py77 # Create a Regs object for the registersCOMMENT
MEDIUMsoc/nuvoton/npcx/common/ecst/ecst_args.py7# This file contains general functions for ECST applicationCOMMENT
MEDIUMsoc/nuvoton/npcm/common/esiost/esiost_args.py7# This file contains general functions for ESIOST applicationCOMMENT
MEDIUMsoc/infineon/cat1b/cyw20829/gen_app_header.py21# Define the structuresCOMMENT
MEDIUMtests/net/lib/lwm2m/interop/pytest/leshan.py21 """This class represents a Leshan client that interacts with demo server's REAT API"""STRING
MEDIUMtests/drivers/sensor/generic/src/main.c89 * -# Define a device and bind to dummy sensor.COMMENT
MEDIUMtests/drivers/sensor/generic/src/main.c173 * -# Define a device and bind to dummy sensor andCOMMENT
MEDIUMtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py647 # Create a listener to wait for AVDTP connectionsCOMMENT
MEDIUMtests/bluetooth/classic/a2dp_source/pytest/test_a2dp.py636 # Create a listener to wait for AVDTP connectionsCOMMENT
MEDIUMtests/kernel/poll/src/test_poll.c397 * -# Create a thread to put FIFO,COMMENT
MEDIUM…s/net/sockets/http_server/src/certs/gen_server_cert.sh18# Create a file containing server CSR extensionsCOMMENT
MEDIUM…s/net/sockets/http_server/src/certs/gen_server_cert.sh26# Create a server certificate by signing the server CSR using the CA cert/keyCOMMENT
MEDIUMscripts/bindings_properties_allowlist.yaml1# This file is a YAML allowlist of property names that are allowed toCOMMENT
MEDIUMscripts/checkpatch.pl617#Create a search pattern for all these functions to speed up a loop belowCOMMENT
MEDIUMscripts/checkpatch.pl638#Create a search pattern for all these strings to speed up a loop belowCOMMENT
MEDIUMscripts/checkpatch.pl673#Create a search pattern for all these strings to speed up a loop belowCOMMENT
MEDIUMscripts/zephyr_module.py886# This file contains build system settings derived from your modules.COMMENT
MEDIUMscripts/snippets.py150# This file contains build system settings derived from your snippets.COMMENT
MEDIUMscripts/dts/gen_defines.py53 # Create the generated header.COMMENT
MEDIUMscripts/dts/python-devicetree/src/devicetree/edtlib.py38# This module is not meant to have any global state. It should be possible toCOMMENT
MEDIUM…ts/pylib/display-twister-harness/camera_shield/main.py30 # Create a template and substitute environment variablesCOMMENT
MEDIUMscripts/pylib/twister/twisterlib/harness.py865 # Create the test instance and set the contextCOMMENT
MEDIUMscripts/pylib/twister/twisterlib/testplan.py463 # Create a list of board roots as defined by the build system in generalCOMMENT
MEDIUMscripts/pylib/zspdx/serializers/spdx3/serializer.py144 # Create a SoftwareAgent representing the automated SBOM generation processCOMMENT
MEDIUMscripts/pylib/zspdx/serializers/spdx3/serializer.py147 # Create the creator agent (required by createdBy)COMMENT
MEDIUMscripts/pylib/zspdx/serializers/spdx3/serializer.py153 # Create the tool (for createdUsing)COMMENT
MEDIUMscripts/west_commands/run_common.py480 # Create the RunnerConfig from runners.yaml and any command lineCOMMENT
MEDIUMscripts/west_commands/completion/west-completion.bash10# The following function is based on code from:COMMENT
MEDIUMscripts/west_commands/completion/west-completion.bash303# This function is needed for key-specific completions.COMMENT
MEDIUMscripts/west_commands/runners/mpcli.py173 # Create the configuration file and execute mpcli using itSTRING
MEDIUMscripts/ci/tags.yaml1# This file contains information on what files are associated with whichCOMMENT
MEDIUMscripts/kconfig/guiconfig.py334 # Create the root window. This initializes Tkinter and makes e.g.STRING
MEDIUMscripts/kconfig/guiconfig.py343 # Create the pane with the Kconfig tree and description textSTRING
MEDIUMscripts/dashboard/dashboard.py843 # Create the pygments CSS file.COMMENT
MEDIUMscripts/dashboard/dashboard.py850 # Create the plotly.js file if plotly was found.COMMENT
MEDIUMscripts/dashboard/dashboard.py432 # Create the memory reports if they are stale.COMMENT
MEDIUMscripts/dashboard/dashboard.py526 # Create the output location for the report files.COMMENT
MEDIUMscripts/dashboard/dashboard.py829 # Create the output directory tree.COMMENT
MEDIUMscripts/coredump/gdbstubs/arch/xtensa.py233# The following classes map registers to their index used byCOMMENT
MEDIUM…rds/infineon/cyw920829m2evk_02/support/qspi_config.cfg5# This file contains a SMIF Bank layout for use with OpenOCD.COMMENT
MEDIUMdoc/_scripts/gen_boards_catalog.py31# Initialize the Maintainers object for looking up board maintenance statusCOMMENT
MEDIUMdoc/_extensions/zephyr/application.py188 # Create the nodes.STRING
MEDIUMdoc/_extensions/zephyr/kconfig/__init__.py309 # Create a reference to the search page with the regex as a fragmentCOMMENT
MEDIUMdoc/_extensions/zephyr/domain/__init__.py185 # Create a new sectionCOMMENT
MEDIUMdoc/_extensions/zephyr/domain/__init__.py652 # Create a node for description and populate it with parsed contentSTRING
MEDIUMdoc/_extensions/zephyr/domain/__init__.py667 # Create an instance of the custom nodeSTRING
MEDIUMdoc/_extensions/zephyr/domain/__init__.py1064 # Create a reference to the first node in the listCOMMENT
Redundant / Tautological Comments88 hits · 137 pts
SeverityFileLineSnippetContext
LOWsoc/mediatek/mt8xxx/mtk_adsp_load.py121 self.cfg.IO_CONFIG |= 1 << 31 # Set RUNSTALL to stop coreCODE
LOWtests/misc/llext-edk/pytest/test_edk.py87 # Check if the extension was builtCOMMENT
LOW…ment/software_bill_of_materials/verify_spdx_content.py190 # Read file once for computing both hashesCOMMENT
LOW…tooth/ll/edtt/tests_scripts/_controller_tests_inner.sh77#Check if rr was requested and is availableCOMMENT
LOWtests/net/lib/lwm2m/interop/pytest/test_blockwise.py53 # Set timeout to 1 second to force Leshan to stop sendingCOMMENT
LOWtests/drivers/hwinfo/api/src/main.c19 * -# Check if to many bytes are written to the bufferCOMMENT
LOWtests/drivers/hwinfo/api/src/main.c20 * -# Check if UID is plausibleCOMMENT
LOWtests/drivers/hwinfo/api/src/main.c80 * -# Check if target buffer has been alteredCOMMENT
LOWtests/drivers/hwinfo/api/src/main.c119 * -# Check if the two readings matchCOMMENT
LOWtests/drivers/hwinfo/api/src/main.c170 * -# Check if target buffer has been alteredCOMMENT
LOWtests/drivers/watchdog/wdt_basic_api/src/test_wdt.c24 * -# Check if the state was changed and test should be finished.COMMENT
LOWtests/drivers/watchdog/wdt_basic_api/src/test_wdt.c25 * -# Set callback to NULL value.COMMENT
LOWtests/drivers/watchdog/wdt_basic_api/src/test_wdt.c35 * -# Check if the state was changed. If so check testvalue if interruptCOMMENT
LOWtests/drivers/watchdog/wdt_basic_api/src/test_wdt.c48 * -# Check if the state was changed. If so check testvalue if interruptCOMMENT
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py272 await device.set_connectable(True) # Set peripheral to reject connectionsCODE
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py429 await device.set_connectable(True) # Set peripheral to reject connectionsCODE
LOW…arks/data_structure_perf/rbtree_perf/src/rbtree_perf.c56 * -# Check if the inserted nodes are contained in theCOMMENT
LOW…arks/data_structure_perf/rbtree_perf/src/rbtree_perf.c168 * -# Check if the recorded heights are less than the worstCOMMENT
LOWtests/lib/ringbuffer/src/main.c73 * -# Check if an error will be seen when the ringbuffer is full.COMMENT
LOWtests/lib/ringbuffer/src/main.c75 * -# Check if the data put are equal to the data got.COMMENT
LOWtests/lib/ringbuffer/src/main.c77 * -# Check if an error will be seen when the ringbuffer is empty.COMMENT
LOWtests/lib/ringbuffer/src/main.c263 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c354 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c356 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c359 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c410 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c412 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c415 * -# Check if data items pushed are equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c463 * -# Check if data size pushed is equal to what are gotten.COMMENT
LOWtests/lib/ringbuffer/src/main.c797 * -# Check if the address stored by ringbuf is contiguous.COMMENT
LOWtests/kernel/multiprocessing/smp/src/main.c642 * -# Check if cpu_id is not equaled to bsp_id that we pass into thread.COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py465 # Check if modem responded immediatelyCOMMENT
LOW…s/boards/nordic/nrf_sys_event/pytest/test_reg_event.py54 # Check if RRAMC standby mode results in faster code executionCOMMENT
LOW…s/boards/nordic/nrf_sys_event/pytest/test_reg_event.py58 # Check if RRAMC waken by PPI results in faster code executionCOMMENT
LOWarch/x86/gen_mmu.py752 # Check if addresses have already been mapped.STRING
LOWscripts/checkpatch.pl2650# Check if the commit log has what seems like a diff which can confuse patchCOMMENT
LOWscripts/checkpatch.pl2798# Check if the commit log is in a possible stack dumpCOMMENT
LOWscripts/checkpatch.pl2928# Check if it's the start of a commit logCOMMENT
LOWscripts/checkpatch.pl2938# Check if there is UTF-8 in a commit log when a mail header has explicitlyCOMMENT
LOWscripts/checkpatch.pl3877 # Check if either of these lines are modified, elseCOMMENT
LOWscripts/checkpatch.pl5586 # Check if the current line is a single-line macroCOMMENT
LOWscripts/checkpatch.pl5605 # Check if previous line ends with backslash (i.e., continuation)COMMENT
LOWscripts/zephyr_module.py665 # Check if modules is not in projectsSTRING
LOWscripts/dts/python-devicetree/src/devicetree/edtlib.py3845 # Check if the original was hexadecimal (0x prefix, possibly with sign)COMMENT
LOWscripts/pylib/power-twister-harness/test_power.py113 # Check if the measured value is within the range of expected ± toleranceCOMMENT
LOW…/pylib/power-twister-harness/utils/UtilityFunctions.py112 # Check if we have enough peaks, otherwise raise an exceptionCOMMENT
LOW…lib/power-twister-harness/stm32l562e_dk/PowerShield.py71 # Check if the response contains the expected acknowledgmentCOMMENT
LOW…lib/power-twister-harness/stm32l562e_dk/PowerShield.py311 # Check if it's metadataCOMMENT
LOW…ster-harness/camera_shield/plugins/signature_plugin.py355 # Check if fingerprints use the same methodCOMMENT
LOWscripts/pylib/twister/twisterlib/runner.py2221 # Check if cmake package_helper script can be run in advance.COMMENT
LOWscripts/pylib/twister/twisterlib/harness.py843 # Check if we started running a new testCOMMENT
LOWscripts/pylib/twister/twisterlib/harness.py872 # Check if the test run finishedCOMMENT
LOWscripts/pylib/twister/twisterlib/harness.py893 # Check if the individual test finishedCOMMENT
LOWscripts/pylib/twister/twisterlib/handlers.py465 # Set capture_coverage to True to indicate that right afterCOMMENT
LOWscripts/pylib/zspdx/serializers/spdx3/serializer.py715 # Check if it's a standard license IDCOMMENT
LOWscripts/west_commands/run_common.py149 # Check if the build directory is part of a sysbuild (multi-image build).COMMENT
LOWscripts/west_commands/run_common.py304 # Check if there is a matching board for this regexCOMMENT
LOWscripts/west_commands/run_common.py352 # Check if there are any commands that should only be ran once per boardCOMMENT
LOWscripts/west_commands/run_common.py360 # Check if board is hereCOMMENT
LOWscripts/west_commands/run_common.py364 # Check if there is a matching board for this regexCOMMENT
28 more matches not shown…
Fake / Example Data96 hits · 119 pts
SeverityFileLineSnippetContext
LOWdrivers/spi/spi_mchp_sercom_g1.c394 static const uint8_t dummy_data;CODE
LOWdrivers/spi/spi_mchp_sercom_g1.c396 dma_blk.source_address = (uint32_t)&dummy_data;CODE
LOWdrivers/spi/spi_mchp_sercom_g1.c443 static uint8_t dummy_data;CODE
LOWdrivers/spi/spi_mchp_sercom_g1.c445 dma_blk.dest_address = (uint32_t)&dummy_data;CODE
LOWdrivers/audio/codec_dummy.c122 struct dummy_codec_data *dummy_data = dev->data;CODE
LOWdrivers/audio/codec_dummy.c128 if (!dummy_data->started) {CODE
LOWdrivers/pcie/endpoint/pcie_ep_common.c178 uint32_t dummy_data; /* For explicit dummy PCIe read */CODE
LOWdrivers/pcie/endpoint/pcie_ep_common.c211 (uintptr_t *)&dummy_data,CODE
LOWdrivers/pcie/endpoint/pcie_ep_common.c212 sizeof(dummy_data),CODE
LOWdrivers/pcie/endpoint/pcie_ep_common.c270 (uintptr_t *)&dummy_data,CODE
LOWdrivers/pcie/endpoint/pcie_ep_common.c271 sizeof(dummy_data),CODE
LOWdrivers/serial/uart_sy1xx.c93 uint8_t dummy_data[10];CODE
LOWdrivers/serial/uart_sy1xx.c97 .data = (uint8_t *)dummy_data,CODE
LOWinclude/zephyr/misc/lorem_ipsum.h21 * 1 paragraph, 69 words, 445 bytes of Lorem IpsumCOMMENT
LOWinclude/zephyr/misc/lorem_ipsum.h24 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " \CODE
LOWinclude/zephyr/misc/lorem_ipsum.h24 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, " \CODE
LOWinclude/zephyr/misc/lorem_ipsum.h37 * 2 paragraphs, 173 words, 1160 bytes of Lorem IpsumCOMMENT
LOWinclude/zephyr/misc/lorem_ipsum.h40 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a varius sapien. " \CODE
LOWinclude/zephyr/misc/lorem_ipsum.h40 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a varius sapien. " \CODE
LOWinclude/zephyr/misc/lorem_ipsum.h60 * 14 paragraphs, 1215 words, 8192 bytes of Lorem IpsumCOMMENT
LOWinclude/zephyr/misc/lorem_ipsum.h63 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque viverra " \CODE
LOWinclude/zephyr/misc/lorem_ipsum.h63 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque viverra " \CODE
LOWsubsys/ipc/rpmsg_service/rpmsg_backend.c153 uint32_t dummy_data = 0x55005500;CODE
LOWsubsys/ipc/rpmsg_service/rpmsg_backend.c155 status = ipm_send(ipm_handle, 0, 0, &dummy_data, sizeof(dummy_data));CODE
LOWtests/unit/cbprintf/main.c1194 static const char *test_str1 = "lorem ipsum";CODE
LOWtests/unit/cbprintf/main.c1261 const char *test_str1 = "lorem ipsum";CODE
LOWtests/net/npf/src/main.c39static const char dummy_data[] =CODE
LOWtests/net/npf/src/main.c70 zassert_true((size - sizeof(eth_hdr)) <= sizeof(dummy_data), "");CODE
LOWtests/net/npf/src/main.c71 ret = net_pkt_write(pkt, dummy_data, size - sizeof(eth_hdr));CODE
LOWtests/net/npf/src/main.c96 zassert_true((size - sizeof(eth_hdr)) <= sizeof(dummy_data), "");CODE
LOWtests/net/npf/src/main.c97 ret = net_pkt_write(pkt, dummy_data, size - sizeof(eth_hdr));CODE
LOWtests/net/lib/mcp/src/main.c1272 char fake_token[UUID_STR_LEN];CODE
LOWtests/net/lib/mcp/src/main.c1274 mcp_safe_strcpy(fake_token, sizeof(fake_token), "99999");CODE
LOWtests/net/lib/mcp/src/main.c1276 ret = mcp_server_submit_tool_message(server, &tool_msg, fake_token);CODE
LOWtests/net/socket/websocket/src/main.c22 * 2 paragraphs, 178 words, 1160 bytes of Lorem IpsumCOMMENT
LOWtests/net/socket/offload_dispatcher/src/main.c571 uint8_t dummy_data = 0;CODE
LOWtests/net/socket/offload_dispatcher/src/main.c574 ret = zsock_sendto(test_sock, &dummy_data, 1, 0,CODE
LOWtests/net/socket/offload_dispatcher/src/main.c589 uint8_t dummy_data = 0;CODE
LOWtests/net/socket/offload_dispatcher/src/main.c591 ret = zsock_recvfrom(test_sock, &dummy_data, 1, 0, NULL, 0);CODE
LOWtests/net/socket/offload_dispatcher/src/main.c690 uint8_t dummy_data = 0;CODE
LOWtests/net/socket/offload_dispatcher/src/main.c712 ret = zsock_sendto(test_sock, &dummy_data, 1, 0,CODE
LOWtests/net/socket/offload_dispatcher/src/main.c725 uint8_t dummy_data = 0;CODE
LOWtests/net/socket/offload_dispatcher/src/main.c744 ret = zsock_sendto(test_sock, &dummy_data, 1, 0,CODE
LOWtests/drivers/mbox/mbox_error_cases/src/main.c11int dummy_value;CODE
LOWtests/drivers/mbox/mbox_error_cases/src/main.c161 data_msg.data = &dummy_value;CODE
LOWtests/drivers/mbox/mbox_error_cases/src/main.c272 ret = mbox_register_callback_dt(&rx_channel, dummy_callback_2, &dummy_value);CODE
LOWtests/drivers/sensor/generic/src/dummy_sensor.c14static struct dummy_sensor_data dummy_data;CODE
LOWtests/drivers/sensor/generic/src/dummy_sensor.c181 NULL, &dummy_data, &dummy_config, POST_KERNEL,CODE
LOWtests/drivers/sensor/generic/src/dummy_sensor.c185 NULL, &dummy_data, &dummy_config, POST_KERNEL,CODE
LOWtests/drivers/ipm/tests.yaml18 - "ipm_console: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, \CODE
LOWtests/drivers/ipm/tests.yaml18 - "ipm_console: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, \CODE
LOW…s/subsys/settings/functional/src/settings_basic_test.c915 uint8_t dummy_value = 0xff;CODE
LOW…s/subsys/settings/functional/src/settings_basic_test.c926 settings_save_one("first/value1", &dummy_value, sizeof(dummy_value));CODE
LOW…s/subsys/settings/functional/src/settings_basic_test.c927 settings_save_one("first/value2", &dummy_value, sizeof(dummy_value));CODE
LOW…s/subsys/settings/functional/src/settings_basic_test.c928 settings_save_one("first/other/value3", &dummy_value, sizeof(dummy_value));CODE
LOW…s/subsys/settings/functional/src/settings_basic_test.c929 settings_save_one("first/expected_fail/value4", &dummy_value, sizeof(dummy_value));CODE
LOWtests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c1660 uint8_t dummy_value;CODE
LOWtests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c1663 dummy_value = DUMMY_VALUE_FIRST;CODE
LOWtests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c1664 settings_save_one("first/value1", &dummy_value, sizeof(dummy_value));CODE
LOWtests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c1665 dummy_value = DUMMY_VALUE_SECOND;CODE
36 more matches not shown…
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGH…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py0_wait_for_shell_response() is used to wait for shell response. it will return after finding a specific 'response' or waiSTRING
HIGHtests/bluetooth/classic/gap_c/pytest/test_gap_c.py0_wait_for_shell_response() is used to wait for shell response. it will return after finding a specific 'response' or waiSTRING
HIGH…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py0_wait_for_shell_response() is used to wait for shell response. it will return after finding a specific 'response' or waiSTRING
HIGHtests/bluetooth/classic/gap_s/pytest/test_gap_s.py0_wait_for_shell_response() is used to wait for shell response. it will return after finding a specific 'response' or waiSTRING
HIGH…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py0send_cmd_to_iut() is used to send shell cmd to dut and monitor the response. it can choose whether to monitor the shell STRING
HIGH…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py0send_cmd_to_iut() is used to send shell cmd to dut and monitor the response. it can choose whether to monitor the shell STRING
HIGHtests/bluetooth/classic/gap_c/pytest/test_gap_c.py0send_cmd_to_iut() is used to send shell cmd to dut and monitor the response. it can choose whether to monitor the shell STRING
HIGHtests/bluetooth/classic/gap_s/pytest/test_gap_s.py0send_cmd_to_iut() is used to send shell cmd to dut and monitor the response. it can choose whether to monitor the shell STRING
HIGHscripts/west_commands/tests/test_blackmagicprobe.py0test commands using a runner created by constructor.STRING
HIGHscripts/west_commands/tests/test_dediprog.py0test commands using a runner created by constructor.STRING
HIGHscripts/west_commands/tests/test_dfu_util.py0test commands using a runner created by constructor.STRING
HIGHscripts/west_commands/tests/test_blackmagicprobe.py0test commands using a runner created from command line parameters.STRING
HIGHscripts/west_commands/tests/test_dediprog.py0test commands using a runner created from command line parameters.STRING
HIGHscripts/west_commands/tests/test_dfu_util.py0test commands using a runner created from command line parameters.STRING
HIGHscripts/tests/twister_blackbox/test_coverage.py0blackbox tests for twister's command line functionsSTRING
HIGHscripts/tests/twister_blackbox/test_report.py0blackbox tests for twister's command line functionsSTRING
HIGHscripts/tests/twister_blackbox/test_printouts.py0blackbox tests for twister's command line functionsSTRING
HIGHscripts/tests/twister_blackbox/test_runner.py0blackbox tests for twister's command line functionsSTRING
HIGHscripts/tests/twister_blackbox/test_hardwaremap.py0blackbox tests for twister's command line functionsSTRING
HIGH…l_nordic/ironside/se/scripts/gen_periphconf_entries.py0copyright (c) 2025 nordic semiconductor asa spdx-license-identifier: apache-2.0STRING
HIGH…/hal_nordic/ironside/se/scripts/periphconf/__init__.py0copyright (c) 2025 nordic semiconductor asa spdx-license-identifier: apache-2.0STRING
HIGH…s/hal_nordic/ironside/se/scripts/periphconf/builder.py0copyright (c) 2025 nordic semiconductor asa spdx-license-identifier: apache-2.0STRING
Modern Structural Boilerplate96 hits · 97 pts
SeverityFileLineSnippetContext
LOWtests/misc/llext-edk/pytest/test_edk.py16logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_nosec.py24logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_blockwise.py23logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/conftest.py28logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_portfolio.py25logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_lwm2m.py30logger = logging.getLogger(__name__)CODE
LOWtests/net/lib/lwm2m/interop/pytest/test_bootstrap.py24logger = logging.getLogger(__name__)CODE
LOW…ocket/tls_configurations/pytest/test_app_vs_openssl.py13logger = logging.getLogger(__name__)CODE
LOWtests/drivers/can/host/pytest/conftest.py17logger = logging.getLogger(__name__)CODE
LOWtests/drivers/can/host/pytest/can_shell.py17logger = logging.getLogger(__name__)CODE
LOWtests/drivers/can/host/pytest/can_shell.py69 def _set_mode(self, mode: str) -> None:CODE
LOWtests/drivers/can/host/pytest/test_can.py18logger = logging.getLogger(__name__)CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py15logger = logging.getLogger(__name__)CODE
LOW…sys/testsuite/no_self_build/pytest/test_hello_world.py10logger = logging.getLogger(__name__)CODE
LOW…subsys/testsuite/multidut/pytest/test_multiple_duts.py10logger = logging.getLogger(__name__)CODE
LOW…tive_mount_cmdline/pytest/test_native_mount_cmdline.py20logger = logging.getLogger(__name__)CODE
LOW…s/logging/dictionary/pytest/test_logging_dictionary.py22logger = logging.getLogger(__name__)CODE
LOWtests/subsys/debug/gdbstub/pytest/test_gdbstub.py18logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/shell/pytest/test_demo.py11logger = logging.getLogger(__name__)CODE
LOW…/bluetooth/classic/l2cap_c/pytest/test_l2cap_common.py14logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/rfcomm_c/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOW…sts/bluetooth/classic/rfcomm_c/pytest/test_rfcomm_c.py21logger = logging.getLogger(__name__)CODE
LOW…ts/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py73logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/gap_c/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/gap_c/pytest/test_gap_c.py16logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/sdp_c/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/sdp_c/pytest/test_sdp.py42logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_sc_only/pytest/test_smp.py33logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/conftest.py11logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/a2dp_sink/pytest/test_a2dp.py62logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_io_cap/pytest/test_smp.py41logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/rfcomm_s/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOW…ts/bluetooth/classic/rfcomm_s/pytest/rfcomm_utility.py72logger = logging.getLogger(__name__)CODE
LOW…sts/bluetooth/classic/rfcomm_s/pytest/test_rfcomm_s.py21logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_bonding/pytest/test_smp.py25logger = logging.getLogger(__name__)CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOW…s/bluetooth/classic/smp_key_persist/pytest/test_smp.py30logger = logging.getLogger(__name__)CODE
LOW…/bluetooth/classic/l2cap_s/pytest/test_l2cap_common.py14logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/a2dp_source/pytest/conftest.py11logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/a2dp_source/pytest/test_a2dp.py61logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/gap_s/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/gap_s/pytest/test_gap_s.py16logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_general/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/smp_general/pytest/test_smp.py56logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/sdp_s/pytest/conftest.py12logger = logging.getLogger(__name__)CODE
LOWtests/bluetooth/classic/sdp_s/pytest/test_sdp.py28logger = logging.getLogger(__name__)CODE
LOW…memory_region_flags/pytest/test_memory_region_flags.py16logger = logging.getLogger(__name__)CODE
LOWtests/kernel/timer/timer_behavior/pytest/test_timer.py11logger = logging.getLogger(__name__)CODE
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py61logger = logging.getLogger(__name__)CODE
LOW…les/subsys/testsuite/pytest/shell/pytest/test_shell.py9logger = logging.getLogger(__name__)CODE
LOWsamples/subsys/profiling/perf/pytest/test_perf.py12logger = logging.getLogger(__name__)CODE
LOWsamples/sensor/sensor_shell/pytest/test_sensor_shell.py8logger = logging.getLogger(__name__)CODE
LOWsamples/bluetooth/peripheral_ht/pytest/test_demo.py8logger = logging.getLogger(__name__)CODE
LOW…ds/nordic/coresight_stm_shell/pytest/test_stm_shell.py18logger = logging.getLogger(__name__)CODE
LOWsamples/boards/nordic/coresight_stm/pytest/test_stm.py17logger = logging.getLogger(__name__)CODE
LOW…imxrt1170_evk_cm7/magic_addr/pytest/test_magic_addr.py9logger = logging.getLogger(__name__)CODE
LOW…ripts/dts/python-devicetree/src/devicetree/__init__.py4__all__ = ['edtlib', 'dtlib']CODE
36 more matches not shown…
Unused Imports95 hits · 94 pts
SeverityFileLineSnippetContext
LOWsoc/sifli/sf32/gen_ftab.py11CODE
LOWtests/net/lib/lwm2m/interop/pytest/leshan.py11CODE
LOWtests/boot/with_mcumgr/pytest/test_upgrade.py4CODE
LOW…sys/testsuite/no_self_build/pytest/test_hello_world.py4CODE
LOW…ts/bluetooth/classic/rfcomm_c/pytest/rfcomm_utility.py5CODE
LOW…ts/bluetooth/classic/rfcomm_s/pytest/rfcomm_utility.py5CODE
LOW…mples/subsys/pmci/mctp/usb_endpoint/usb_host_tester.py11CODE
LOW…ds/nordic/coresight_stm_shell/pytest/test_stm_shell.py11CODE
LOW…flite-micro/magic_wand/train/data_augmentation_test.py20CODE
LOW…flite-micro/magic_wand/train/data_augmentation_test.py21CODE
LOW…flite-micro/magic_wand/train/data_augmentation_test.py22CODE
LOW…odules/tflite-micro/magic_wand/train/data_load_test.py20CODE
LOW…odules/tflite-micro/magic_wand/train/data_load_test.py21CODE
LOW…odules/tflite-micro/magic_wand/train/data_load_test.py22CODE
LOW…dules/tflite-micro/magic_wand/train/data_split_test.py19CODE
LOW…dules/tflite-micro/magic_wand/train/data_split_test.py20CODE
LOW…dules/tflite-micro/magic_wand/train/data_split_test.py21CODE
LOW…les/tflite-micro/magic_wand/train/data_prepare_test.py19CODE
LOW…les/tflite-micro/magic_wand/train/data_prepare_test.py20CODE
LOW…les/tflite-micro/magic_wand/train/data_prepare_test.py21CODE
LOW…les/tflite-micro/magic_wand/train/data_split_person.py31CODE
LOW…les/tflite-micro/magic_wand/train/data_split_person.py32CODE
LOW…les/tflite-micro/magic_wand/train/data_split_person.py33CODE
LOW…es/modules/tflite-micro/magic_wand/train/train_test.py19CODE
LOW…es/modules/tflite-micro/magic_wand/train/train_test.py20CODE
LOW…es/modules/tflite-micro/magic_wand/train/train_test.py21CODE
LOW…es/modules/tflite-micro/magic_wand/train/data_split.py30CODE
LOW…es/modules/tflite-micro/magic_wand/train/data_split.py31CODE
LOW…es/modules/tflite-micro/magic_wand/train/data_split.py32CODE
LOW…flite-micro/magic_wand/train/data_split_person_test.py19CODE
LOW…flite-micro/magic_wand/train/data_split_person_test.py20CODE
LOW…flite-micro/magic_wand/train/data_split_person_test.py21CODE
LOWsamples/modules/tflite-micro/magic_wand/train/train.py20CODE
LOWsamples/modules/tflite-micro/magic_wand/train/train.py21CODE
LOWsamples/modules/tflite-micro/magic_wand/train/train.py22CODE
LOW…les/tflite-micro/magic_wand/train/data_augmentation.py20CODE
LOW…les/tflite-micro/magic_wand/train/data_augmentation.py21CODE
LOW…les/tflite-micro/magic_wand/train/data_augmentation.py22CODE
LOW…/modules/tflite-micro/magic_wand/train/data_prepare.py28CODE
LOW…/modules/tflite-micro/magic_wand/train/data_prepare.py29CODE
LOW…/modules/tflite-micro/magic_wand/train/data_prepare.py30CODE
LOW…les/modules/tflite-micro/magic_wand/train/data_load.py20CODE
LOW…les/modules/tflite-micro/magic_wand/train/data_load.py21CODE
LOW…les/modules/tflite-micro/magic_wand/train/data_load.py22CODE
LOWarch/x86/gen_mmu.py85CODE
LOWscripts/pylint/checkers/argparse-checker.py4CODE
LOWscripts/pylib/pytest-twister-harness/tests/conftest.py5CODE
LOW…ytest-twister-harness/tests/resources/zen_of_python.py5CODE
LOW…pytest-twister-harness/src/twister_harness/__init__.py18CODE
LOW…pytest-twister-harness/src/twister_harness/__init__.py19CODE
LOW…pytest-twister-harness/src/twister_harness/__init__.py19CODE
LOW…pytest-twister-harness/src/twister_harness/__init__.py20CODE
LOW…b/pytest-twister-harness/src/twister_harness/plugin.py5CODE
LOW…-harness/src/twister_harness/twister_harness_config.py5CODE
LOW…ter-harness/src/twister_harness/device/fifo_handler.py5CODE
LOW…r-harness/src/twister_harness/device/device_adapter.py5CODE
LOW…r-harness/src/twister_harness/device/binary_adapter.py5CODE
LOW…-twister-harness/src/twister_harness/device/factory.py5CODE
LOW…harness/src/twister_harness/device/hardware_adapter.py5CODE
LOW…st-twister-harness/src/twister_harness/device/utils.py5CODE
35 more matches not shown…
AI Slop Vocabulary23 hits · 43 pts
SeverityFileLineSnippetContext
MEDIUMdts/bindings/usb/uac2/zephyr,uac2-feature-unit.yaml9# channel(s). The "not-present" value is allowed to facilitate having controlsCOMMENT
LOWsoc/mediatek/mt8xxx/gen_img.py13# term we should probably just use rimage, but that's significantlyCOMMENT
MEDIUMtests/modules/tf-m/regression/tests.yaml16 # strips ANSI sequences, which is why it looks clean there. But harness.handle() receivesCOMMENT
LOWscripts/dts/python-devicetree/setup.py18 # TBD, just use these for now.STRING
MEDIUMscripts/dts/python-devicetree/src/devicetree/dtlib.py2194 # Hacky but robust way to avoid double-escaping any '\' spit out bySTRING
MEDIUMscripts/pylib/build_helpers/domains.py98 # Now that self._domains has been initialized, we can leverageSTRING
MEDIUM…ster-harness/camera_shield/plugins/signature_plugin.py44 """Generate a robust signature for a given frame using multiple techniquesSTRING
MEDIUMscripts/pylib/twister/twisterlib/runner.py1910 # If the harness does not handle execution itself, delegate to the handler.COMMENT
MEDIUMscripts/pylib/twister/twisterlib/harness.py626 # Save test parameters to YAML file for pytest-harnessCOMMENT
MEDIUMscripts/pylib/twister/twisterlib/handlers.py1215 # Need to wait for harness to finish processingCOMMENT
MEDIUMscripts/pylib/twister/twisterlib/testplan.py1421 # keep path to required build directory to use it in harness moduleCOMMENT
LOWscripts/west_commands/sign.py324 # separate intermediates to use. Other platforms just useCOMMENT
MEDIUMscripts/ci/check_compliance.py1929 # Only scan text files for now, in the future we may want to leverage REUSE standard'sCOMMENT
LOWscripts/kconfig/guiconfig.py955 # just use whatever prompt we can find for itSTRING
LOWscripts/kconfig/kconfiglib.py3453 # EQUAL, UNEQUAL, etc., so we can just use the token directlySTRING
LOWscripts/kconfig/kconfiglib.py6729 # to _check_dep_loop_sym(). We just return immediately.STRING
LOWscripts/kconfig/menuconfig.py2378 # information dialog just return, to avoid a confusing recursive invocationSTRING
LOWscripts/kconfig/menuconfig.py3017 # just use whatever prompt we can find for itSTRING
MEDIUMscripts/tests/twister_blackbox/test_addon.py192 # It installs and uninstalls pytest-twister-harness using pipCOMMENT
MEDIUMscripts/release/bug_bash.py128 # the PyGithub API and v3 REST API do not facilitate 'until'COMMENT
MEDIUM.github/workflows/clang.yaml77 # and start over. (Workaround until we implement more robust moduleCOMMENT
MEDIUMdoc/package-lock.json1077 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMdoc/develop/twister/sample_blackbox_test.py51 # * Control whether to only build or build and run aforementioned testsCOMMENT
Docstring Block Structure8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHtests/net/lib/lwm2m/interop/pytest/leshan.py38 Handle the response received from the server. Parameters: - response: The response object receSTRING
HIGHscripts/pylib/zspdx/model.py45Return a relationship type from either an enum value or raw SPDX string. Args: value: Existing enumSTRING
HIGHscripts/pylib/zspdx/model.py87Classify a raw external reference locator. Args: locator: Raw external reference string from moduleSTRING
HIGHscripts/pylib/zspdx/model.py181Add an external reference. Args: reference: Structured external reference or raw locator string. RaSTRING
HIGHscripts/pylib/zspdx/model.py463Add a relationship and attach it to the source element. Cross-document relationships automatically register theSTRING
HIGHdoc/_extensions/zephyr/manifest_projects_table.py50Return URL for a revision. Notes: Revision format is assumed to be a git hash or a tag. URL is STRING
HIGHdoc/_extensions/zephyr/doxyrunner.py83Obtain the value of a Doxygen option. Args: doxyfile: Content of the Doxyfile. option: Option to beSTRING
HIGHdoc/_extensions/zephyr/doxyrunner.py142Process Doxyfile. Notes: OUTPUT_DIRECTORY, WARN_FORMAT and QUIET are overridden to satisfy extensioSTRING
Verbosity Indicators20 hits · 37 pts
SeverityFileLineSnippetContext
LOWdrivers/mbox/mbox_renesas_rz_mhu.c144 * blocking indefinitely, we need to check if the remote clears the messageCOMMENT
LOWdrivers/flash/flash_stm32f7x.c221 * In case of 24 sectors we need to check if the SoC is runningCOMMENT
LOWdrivers/dma/dma_intel_adsp_gpdma.c177 /* We need to power-up device before using it. So in case of a GPDMA, we need to check ifCOMMENT
LOWinclude/zephyr/drivers/counter.h1321 * The purpose of this function is to return the interruptCOMMENT
LOWinclude/zephyr/drivers/uart.h675 * The purpose of this function is:COMMENT
LOWinclude/zephyr/drivers/gpio.h1909 * The purpose of this function is to return the interruptCOMMENT
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h38 * // Step 1: Disable Bluetooth stackCOMMENT
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h45 * // Step 2: Trigger Independent ResetCOMMENT
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h52 * // Step 3: Re-enable Bluetooth stackCOMMENT
LOWsubsys/net/ip/net_if.c3376 * For the VPN interface, we need to check ifCOMMENT
LOWsubsys/net/ip/net_if.c4166 * For the VPN interface, we need to check if the IPv4COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py518 # Step 0: Check and enable WDSI indicationsCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py522 # Step 1: Send AT+WDSD command using helperCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py524 # Step 2: Wait for XMODEM ready signal from modemCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py532 # Step 3: Perform XMODEM-1K transferCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py537 # Step 4: Wait for OK and +WDSI: 3COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py547 # Step 5: Send AT+WDSR=4 to start installationCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py563 # Step 6: Wait for installation result using helperCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py405 # Step 1: Query WDSI range with AT+WDSI=?COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py421 # Step 2: Set WDSI to maximum value to enable all indicationsCOMMENT
Slop Phrases14 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMdts/bindings/gpio/nxp,siul2-gpio.yaml34 as the interrupt controller for the corresponding GPIO. It's worth noting thatCODE
MEDIUMdrivers/display/display_st7796s.c118 * For RGB565, Blue is placed in byte 0 as mentioned earlier.COMMENT
MEDIUMdrivers/counter/counter_smartbond_timer.c82 * during sleep by PDC. It's worth noting that during sleep the clock source ofCOMMENT
MEDIUMinclude/zephyr/devicetree.h7 * Not a generated file. Feel free to modify.COMMENT
MEDIUMtests/bsim/bluetooth/host/misc/sample_test/src/main.c46 * Here we just print a dummy string for demonstration purposes.COMMENT
MEDIUMsamples/net/sockets/txtime/src/main.c551 /* The VLAN in this example is created for demonstration purposes.COMMENT
MEDIUMsamples/userspace/prod_consumer/src/sample_driver_foo.c15 * Fake sample driver for demonstration purposesCOMMENT
MEDIUMsamples/userspace/prod_consumer/src/sample_driver_foo.c17 * This is fake driver for demonstration purposes, showing how an applicationCOMMENT
MEDIUMsamples/userspace/prod_consumer/src/sample_driver_foo.c83 /* Just for demonstration purposes; the data payload is full of junk */COMMENT
MEDIUMsamples/userspace/prod_consumer/src/app_b.c31 * This is just for demonstration purposes, processor_thread could just asCOMMENT
MEDIUMsamples/userspace/prod_consumer/src/app_syscall.c16 * 42. This is just for demonstration purposes to show how syscalls can beCOMMENT
LOWscripts/dts/gen_defines.py956 # make sure to update the doxygen string for that macro, and makeSTRING
LOWscripts/dts/python-devicetree/src/devicetree/edtlib.py2378 # If you change this, make sure to update __deepcopy__() too,COMMENT
LOWscripts/west_commands/spdx.py37 # If you update these options, make sure to keep the docs inCOMMENT
Structural Annotation Overuse15 hits · 27 pts
SeverityFileLineSnippetContext
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h38 * // Step 1: Disable Bluetooth stackCOMMENT
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h45 * // Step 2: Trigger Independent ResetCOMMENT
LOWinclude/zephyr/drivers/bluetooth/hci_nxp_setup.h52 * // Step 3: Re-enable Bluetooth stackCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py518 # Step 0: Check and enable WDSI indicationsCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py522 # Step 1: Send AT+WDSD command using helperCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py524 # Step 2: Wait for XMODEM ready signal from modemCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py532 # Step 3: Perform XMODEM-1K transferCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py537 # Step 4: Wait for OK and +WDSI: 3COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py547 # Step 5: Send AT+WDSR=4 to start installationCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py563 # Step 6: Wait for installation result using helperCOMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py405 # Step 1: Query WDSI range with AT+WDSI=?COMMENT
LOW…m/at_client/script/hl78xx_firmware_update_xmodem_1k.py421 # Step 2: Set WDSI to maximum value to enable all indicationsCOMMENT
LOWscripts/ci/test_plan_v2.py1674 # Step 1 - find vendor dtsi files that define the peripheralCOMMENT
LOWscripts/ci/test_plan_v2.py1697 # Step 2 - find board files that #include any of those dtsi filesCOMMENT
LOWscripts/ci/test_plan_v2.py1730 # Step 3 - extract board identifiers from .yaml filesCOMMENT
AI Structural Patterns22 hits · 21 pts
SeverityFileLineSnippetContext
LOWsoc/silabs/silabs_siwx91x/siwx91x_isp_prepare.py63CODE
LOWarch/x86/gen_idt.py74CODE
LOWarch/x86/gen_idt.py83CODE
LOWscripts/dts/python-devicetree/src/devicetree/edtlib.py2316CODE
LOW…/pylib/power-twister-harness/utils/UtilityFunctions.py44CODE
LOWscripts/west_commands/runners/jlink.py50CODE
LOWscripts/west_commands/runners/openocd.py55CODE
LOWscripts/west_commands/runners/pyocd.py19CODE
LOWscripts/west_commands/runners/teensy.py39CODE
LOWscripts/west_commands/runners/stm32flash.py19CODE
LOWscripts/west_commands/runners/nrfutil.py18CODE
LOWscripts/west_commands/runners/intel_cyclonev.py23CODE
LOWscripts/west_commands/runners/canopen_program.py49CODE
LOWscripts/west_commands/runners/linkserver.py24CODE
LOWscripts/west_commands/runners/nrf_common.py57CODE
LOWscripts/west_commands/runners/lldbac.py17CODE
LOWscripts/west_commands/runners/probe_rs.py14CODE
LOWscripts/west_commands/runners/rfp.py39CODE
LOWscripts/west_commands/runners/nrfjprog.py20CODE
LOWscripts/tests/twister/conftest.py27CODE
LOWscripts/tests/twister/test_runner.py669CODE
LOWscripts/logging/dictionary/parserlib.py58CODE
Hallucination Indicators2 hits · 15 pts
SeverityFileLineSnippetContext
CRITICALscripts/dashboard/static/js/dts.js111 let nodeId = event.target.attributes.href.value.substring(1);CODE
CRITICALdoc/_extensions/zephyr/application.py61 self.state.document.settings.env.note_dependency(__file__)STRING
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…ost/gatt/notify_multiple/test_scripts/_notify-debug.sh5# Usage:COMMENT
LOWscripts/checkstack.pl19# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/snippets.py62 def process_data(self, pathobj: Path, snippet_data: dict, sysbuild: bool):CODE