Repository Analysis

tock/tock

A secure embedded operating system for microcontrollers

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tock/tock, a Rust project with 6,375 GitHub stars. SynthScan v2.0 examined 461,427 lines of code across 2146 source files, recording 2514 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 5.9 places this repository in the Low AI signal band.

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

5.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.4K
Stars
Rust
Language
461.4K
Lines of Code
2.1K
Files
2.5K
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 0HIGH 4MEDIUM 113LOW 2397

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

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

Over-Commented Block2320 hits · 2206 pts
SeverityFileLineSnippetContext
LOWCargo.toml161# 1. The first section are lints we don't want with a comment explaining our useCOMMENT
LOWCargo.toml221# Sometimes the borrow checker works better with `match` instead of `.map()`.COMMENT
LOWrustfmt.toml1# Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/repo-maintenance/update_rust_version.sh1#!/usr/bin/env bashCOMMENT
LOWtools/repo-maintenance/check-all-links.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/netlify-build.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/toc.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/check_format.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/tockbot/maint_nightly.yaml41 # Any such PRs must not already have a review by a core teamCOMMENT
LOWtools/ci/flux-ci-runner/deps.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/license-checker/testdata/no_spdx.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/testdata/many_errors.rs1// Licensed under the Apache License, Version 2.0 or the MIT License. [*]COMMENT
LOWtools/ci/license-checker/testdata/error_missing.rs1//! This test file should result in a "license missing" error, as the tool seesCOMMENT
LOWtools/ci/license-checker/testdata/no_copyright.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/testdata/blank_is_comment.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/src/fallback_syntax.yaml1# Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/src/main.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/src/main.rs21//! This ignore file handling is modelled after the `ripgrep` tool. UnlikeCOMMENT
LOWtools/ci/license-checker/src/main.rs41//! ```COMMENT
LOWtools/ci/license-checker/src/main.rs61//! // Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/src/parser.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWtools/ci/license-checker/src/parser.rs141COMMENT
LOWtools/ci/litex-ci-runner/src/main.rs21// const LED5: u64 = 5;COMMENT
LOWtools/ci/litex-ci-runner/src/main.rs201 // This tests two things:COMMENT
LOWtools/svd2regs/svd2regs.py1#!/usr/bin/env pythonCOMMENT
LOWtools/svd2regs/svd2regs.py21# rustfmt:COMMENT
LOW…s/debugging-and-development/print_tock_memory_usage.py1#!/usr/bin/env python3COMMENT
LOW…s/debugging-and-development/print_tock_memory_usage.py41# A map of section name -> sizeCOMMENT
LOW…s/debugging-and-development/print_tock_memory_usage.py61# the same address). The one with the largest reported size will haveCOMMENT
LOW…s/debugging-and-development/print_tock_memory_usage.py321COMMENT
LOWtools/debugging-and-development/find_panics.py1#!/usr/bin/env python3COMMENT
LOWtools/debugging-and-development/find_panics.py21# - finding and removing panics in a Tock kernel binaryCOMMENT
LOWtools/debugging-and-development/find_panics.py41# `no_info_panic_list`. If this list contains some panics, that is a sign that someCOMMENT
LOWtools/debugging-and-development/svd2regs/svd2regs.py1#!/usr/bin/env pythonCOMMENT
LOWtools/debugging-and-development/svd2regs/svd2regs.py21# rustfmt:COMMENT
LOW…debugging-and-development/usb/control-test/src/main.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOW…ls/debugging-and-development/usb/bulk-echo/src/main.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOW…ls/debugging-and-development/usb/bulk-echo/src/main.rs21//! \ / | Tock usbc_clientCOMMENT
LOW…ls/debugging-and-development/usb/bulk-test/src/main.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOW…ls/debugging-and-development/usb/bulk-test/src/main.rs21//! The expected output of this program (after listing USB devices) is:COMMENT
LOWchips/stm32f303xc/src/wdt.rs41 /// Timer baseCOMMENT
LOWchips/stm32f303xc/src/adc.rs721 }COMMENT
LOWchips/stm32f303xc/src/gpio.rs421///COMMENT
LOWchips/stm32f303xc/src/gpio.rs521 AlternateFunctionMode = 0b10,COMMENT
LOWchips/stm32f303xc/src/flash.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWchips/stm32f303xc/src/flash.rs41 /// Address offset 0x08COMMENT
LOWchips/stm32f303xc/src/flash.rs81 /// Flash or option byte keyCOMMENT
LOWchips/stm32f303xc/src/flash.rs101 /// BusyCOMMENT
LOWchips/stm32f303xc/src/flash.rs121 /// When set, the option bytes can be programmed. This bit is set onCOMMENT
LOWchips/stm32f303xc/src/flash.rs221const KEY1: u32 = 0x45670123;COMMENT
LOWchips/msp432/src/dma.rs421 /// Peripheral scatter-gather mode, which uses the alternate data-structureCOMMENT
LOWchips/msp432/src/adc.rs361 /// Interrupt enable for the falling short of the lower limit interrupt of the windowCOMMENT
LOWchips/msp432/src/adc.rs581///COMMENT
LOWchips/rp2040/src/pio_spi.rs21// Since auto push / pull is set to 8 for the purposes of writing in bytesCOMMENT
LOWchips/rp2040/src/timer.rs21 /// timeh is the top 32 bits of time & timel is the bottom 32 bits\nCOMMENT
LOWchips/rp2040/src/timer.rs41 /// Arm alarm 0, and configure the time it will fire.\nCOMMENT
LOWchips/rp2040/src/timer.rs61 /// Indicates the armed/disarmed status of each alarm.\nCOMMENT
LOWchips/rp2040/src/i2c.rs321 // TODO: as per the comments in the pico-sdk, this block is not 100% correctCOMMENT
LOWchips/rp2040/src/pwm.rs1// Licensed under the Apache License, Version 2.0 or the MIT License.COMMENT
LOWchips/rp2040/src/pwm.rs41 // Invert output BCOMMENT
2260 more matches not shown…
Decorative Section Separators89 hits · 323 pts
SeverityFileLineSnippetContext
MEDIUMcapsules/core/src/process_console.rs585 \r\n ╚{:#010X}═╪══════════════════════════════╝\CODE
MEDIUMcapsules/core/src/process_console.rs604 \r\n {:#010X} ┼─────────────────────────────── S\CODE
MEDIUMcapsules/core/src/process_console.rs622 \r\n {:#010X} ┼─────────────────────────────── A\CODE
MEDIUMcapsules/core/src/process_console.rs624 \r\n {:#010X} ┼───────────────────────────────",CODE
MEDIUMcapsules/core/src/process_console.rs642 \r\n {:#010X} ┼─────────────────────────────── F\CODE
MEDIUMcapsules/core/src/process_console.rs660 \r\n {:#010X} ┼─────────────────────────────── A\CODE
MEDIUMcapsules/core/src/process_console.rs662 \r\n {:#010X} ┼─────────────────────────────── H\CODE
MEDIUMcapsules/system/src/process_printer.rs107 \r\n ╚{:#010X}═╪══════════════════════════════════════════╝\CODE
MEDIUMcapsules/system/src/process_printer.rs111 \r\n {:#010X} ┼───────────────────────────────────────────\CODE
MEDIUMcapsules/system/src/process_printer.rs113 \r\n {:#010X} ┼───────────────────────────────────────────\CODE
MEDIUMcapsules/system/src/process_printer.rs115 \r\n {:#010X} ┼───────────────────────────────────────────",CODE
MEDIUMcapsules/system/src/process_printer.rs139 \r\n {:#010X} ┼─────────────────────────────────────────── R",CODE
MEDIUMcapsules/system/src/process_printer.rs185 \r\n {:#010X} ┼─────────────────────────────────────────── M\CODE
MEDIUMcapsules/system/src/process_printer.rs209 \r\n {:#010X} ┼───────────────────────────────────────────\CODE
MEDIUMcapsules/system/src/process_printer.rs211 \r\n {:#010X} ┴───────────────────────────────────────────\CODE
MEDIUMcapsules/system/src/process_printer.rs213 \r\n {:#010X} ┬─────────────────────────────────────────── F\CODE
MEDIUMcapsules/system/src/process_printer.rs215 \r\n {:#010X} ┼─────────────────────────────────────────── A\CODE
MEDIUMcapsules/system/src/process_printer.rs217 \r\n {:#010X} ┴─────────────────────────────────────────── H\CODE
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs18//! ┌───────────────────────────────────────┐COMMENT
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs23//! └───────────────────────────────────────┘COMMENT
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs25//! ┌─────────────────────────────┐ │COMMENT
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs30//! └─────────────────────────────┘ │COMMENT
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs32//! ┌───────────────────────────────────────┐COMMENT
MEDIUMcapsules/extra/src/signature_verify_in_memory_keys.rs37//! └───────────────────────────────────────┘COMMENT
MEDIUMcapsules/extra/src/nonvolatile_to_pages.rs16//! ┌─────────────┐COMMENT
MEDIUMcapsules/extra/src/nonvolatile_to_pages.rs20//! └─────────────┘COMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs20//! ╒════════ ← Start of nonvolatile regionCOMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs21//! ├──────── ← Start of App 1's region headerCOMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs25//! ├──────── ← Start of App 1's Region ═╗COMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs33//! ├──────── ← Start of App 2's region headerCOMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs37//! ├──────── ← Start of App 2's Region ═╗COMMENT
MEDIUM…sules/extra/src/isolated_nonvolatile_storage_driver.rs47//! ╘════════ ← End of userspace regionCOMMENT
MEDIUMkernel/src/process_standard.rs449 /// ╒════════ ← memory_start + memory_lenCOMMENT
MEDIUMkernel/src/process_standard.rs451 /// ║ │ ──────COMMENT
MEDIUMkernel/src/process_standard.rs453 /// ║ │ ──────COMMENT
MEDIUMkernel/src/process_standard.rs455 /// D │ ──────COMMENT
MEDIUMkernel/src/process_standard.rs459 /// M │ ────── ← kernel_memory_breakCOMMENT
MEDIUMkernel/src/process_standard.rs461 /// C │ ────── ← app_break ═╗COMMENT
MEDIUMkernel/src/process_standard.rs465 /// ╠═ │ ────── ← app_heap_start R CCOMMENT
MEDIUMkernel/src/process_standard.rs467 /// F │ ────── ← data_start_pointer C SCOMMENT
MEDIUMkernel/src/process_standard.rs471 /// D │ ────── ← current_stack_pointer LCOMMENT
MEDIUMkernel/src/process_standard.rs473 /// ╚═ ╘════════ ← memory_start ═╝COMMENT
MEDIUMkernel/src/process_standard.rs1973 // ┌───────────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMkernel/src/process_standard.rs1975 // └───────────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMkernel/src/process_standard.rs1977 // ┌────────────────────────────────────────────────────────────────────────┬──────────────COMMENT
MEDIUMkernel/src/process_standard.rs1979 // └────────────────────────────────────────────────────────────────────────┴──────────────COMMENT
MEDIUMkernel/src/process_standard.rs1981 // ┌────────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMkernel/src/process_standard.rs1983 // ↑ └────────────────────────────────────────────────────────────────────┘COMMENT
MEDIUMkernel/src/process_standard.rs1985 // ┌─────────────────────────┬──────────────────────────────────────────┐COMMENT
MEDIUMkernel/src/process_standard.rs1987 // └─────────────────────────┴──────────────────────────────────────────┘COMMENT
MEDIUMkernel/src/process_standard.rs1992 // ┆ ┌───────┬──────────┬──────────────┐COMMENT
MEDIUMkernel/src/process_standard.rs1994 // ┆ └───────┴──────────┴──────────────┘COMMENT
MEDIUMkernel/src/process_standard.rs1996 // possible alignment padding┄┴┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┴┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘COMMENT
MEDIUMkernel/src/grant.rs43//! ┌──────────────────┐COMMENT
MEDIUMkernel/src/grant.rs47//! └─┬────────────────┘COMMENT
MEDIUMkernel/src/grant.rs52//! ┌──────────────────┐COMMENT
MEDIUMkernel/src/grant.rs56//! ┌────────────────────────┐ │ grant_num: 1 │COMMENT
MEDIUMkernel/src/grant.rs58//! │ ... │ └───┬─────────────┬┘COMMENT
MEDIUMkernel/src/grant.rs59//! ├────────────────────────┤ │Each Grant │COMMENT
MEDIUMkernel/src/grant.rs64//! ├──────────────────────┼─┤ │COMMENT
29 more matches not shown…
AI Slop Vocabulary17 hits · 48 pts
SeverityFileLineSnippetContext
LOW…s/debugging-and-development/print_tock_memory_usage.py173 # Not a Rust symbol name, just return it unchanged.COMMENT
MEDIUMchips/virtio/src/queues/mod.rs28/// Fundamentally, every Virtqueue refers to three distinct regions in memory:COMMENT
MEDIUMchips/psc3/src/gpio_registers.rs98 /// Indicates presence or absence of VDDIO supplies (i.e. other than VDDD, VDDA) on the device (supplies are numbereCOMMENT
MEDIUMchips/psc3/src/gpio_registers.rs113 /// This bit indicates presence of the VDDD supply. This bit will always read-back 1. The VDDD supply has robust bCOMMENT
MEDIUMchips/psc3/src/srss_registers.rs937 /// Indicates the REGHC circuit is enabled and operating. It does not indicate that the voltage and current are witCOMMENT
MEDIUMchips/earlgrey/src/epmp.rs575 // `pmpaddr15` region, we first utilize another higher-priority CSR toCOMMENT
MEDIUMchips/earlgrey/src/epmp.rs734 // `pmpaddr15` region, we first utilize another higher-priority CSR toCOMMENT
MEDIUMchips/litex/src/litex_registers.rs14//! Essentially, the bus data width (default 32 bit), the CSR dataCOMMENT
MEDIUMcapsules/extra/src/net/thread/driver.rs198 // A parent request can only begin from a detached state. We utilizeCOMMENT
MEDIUMcapsules/extra/src/screen/screen_on_led.rs56 /// Essentially only [`ScreenOnLed`].COMMENT
MEDIUMboards/sma_q3/src/main.rs324 // should use a const reference to rtt_memory and leverage interior mutability instead.COMMENT
MEDIUM.github/workflows/ci.yml77 # Essentially there's two ways in which the Cargo.lockCOMMENT
MEDIUMkernel/src/process_standard.rs550 /// Essentially a list of upcalls that want to call functions in theCOMMENT
MEDIUMkernel/src/deferred_call.rs11//! devices that are supposed to work like hardware devices. Essentially, thisCOMMENT
MEDIUMkernel/src/utilities/single_thread_value.rs50 /// `usize` types can utilize `bind_to_thread_unsafe` instead: this methodCOMMENT
MEDIUMkernel/src/hil/uart.rs380/// provide useful abstractions that capsules may want to be able to leverage.COMMENT
MEDIUMkernel/src/hil/uart.rs385/// leverage that efficiency, and by placing the interfaces here in the HIL theyCOMMENT
Structural Annotation Overuse14 hits · 23 pts
SeverityFileLineSnippetContext
LOWchips/virtio/src/devices/virtio_gpu/mod.rs183 // Step 1: Create host resourceCOMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs225 // Step 2: Attach backing memory (our framebuffer)COMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs274 // Step 3: Set scanoutCOMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs318 // Step 4: Detach resourceCOMMENT
LOWchips/stm32f4xx/src/flash.rs185 // NOTE: This method is pub(crate) to prevent modifying the flash latency from board files.COMMENT
LOWcapsules/extra/src/net/sixlowpan/sixlowpan_state.rs569 // NOTE: This function will not work for headers that span past the firstCOMMENT
LOW.github/CONTRIBUTING.md83### Step 1: ForkCOMMENT
LOW.github/CONTRIBUTING.md94### Step 2: BranchCOMMENT
LOW.github/CONTRIBUTING.md106### Step 3: CommitCOMMENT
LOW.github/CONTRIBUTING.md160### Step 4: RebaseCOMMENT
LOW.github/CONTRIBUTING.md169### Step 5: PushCOMMENT
LOW.github/CONTRIBUTING.md178### Step 6: Discuss and updateCOMMENT
LOW.github/CONTRIBUTING.md206### Step 7: StyleCOMMENT
LOW.github/CONTRIBUTING.md218### Step 8: LandingCOMMENT
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/ci/diff_memory_usage.py11CODE
LOWtools/ci/check-capsule-readme.py28CODE
LOWtools/ci/check-capsule-readme.py40CODE
LOW…ls/debugging-and-development/embedded_data_analyzer.py86CODE
LOW…ls/debugging-and-development/embedded_data_analyzer.py113CODE
LOW…ls/debugging-and-development/embedded_data_analyzer.py221CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py140CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py167CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py237CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py336CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py608CODE
LOWtools/debugging-and-development/find_panics.py213CODE
LOWtools/debugging-and-development/find_panics.py386CODE
LOW…ols/debugging-and-development/check_process_console.py93CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py402CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py496CODE
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippetContext
LOWtools/repo-maintenance/update_chip_support.py112 # Check if this chip or if any chip it subsumes implements this HIL.COMMENT
LOWtools/ci/tockbot/tockbot.py81# Assign maintainers to stale PRs when they haven't seen any review /COMMENT
LOWtools/ci/tockbot/tockbot.py257 # Check if we're being passed a GitHub access token in an environment var:COMMENT
LOWchips/stm32f4xx/src/clocks/hsi.rs31//! ## Check if the clock is enabledCOMMENT
LOWchips/stm32f4xx/src/clocks/pll.rs90//! ## Check if the PLL48CLK output is calibrated.COMMENT
LOWchips/stm32f4xx/src/clocks/hse.rs34//! ## Check if the clock is enabledCOMMENT
LOWboards/apollo3/ambiq/ambiq_bin2board.py87 # Open the file, and read it into an array of integers.COMMENT
LOWboards/apollo3/ambiq/ambiq_bin2board.py264 # Open the file, and read it into an array of integers.COMMENT
LOWboards/apollo3/ambiq/ambiq_bin2board.py507 #Check if response failedCOMMENT
LOWboards/apollo3/ambiq/ambiq_bin2board.py666 #Check if response failedCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHchips/psc3/src/srss_registers.rs619 /// 1: Normal operation. DEEPSLEEP and low power circuits operate as requested in other registers.COMMENT
HIGHcapsules/extra/src/hmac_sha256.rs48 /// The current mode of operation as requested by a call to eitherCOMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtools/ci/check-boards-readme.py45 # Create the filepath to the board readme.COMMENT
MEDIUMboards/apollo3/ambiq/am_defines.py3# This file is part of the AmbiqSuite SDK, accessible underCOMMENT
MEDIUMboards/apollo3/ambiq/ambiq_bin2board.py3# This file is part of the AmbiqSuite SDK, accessible underCOMMENT
MEDIUMboards/apollo3/ambiq/keys_info.py3# This file is part of the AmbiqSuite SDK, accessible underCOMMENT
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtools/ci/check-capsule-readme.py40def find_implemented_capsules(root_path, implemented_list):CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py129def trim_vendor_suffix_from_symbol(symbol):CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py294def print_section_information():CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py472def split_text_into_data_and_functions():CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py513def print_all_symbol_information():CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py527def print_grouped_symbol_information():CODE
LOWtools/debugging-and-development/find_panics.py126def linkage_or_origin_all_parents(elf, addr, linkage=False):CODE
LOWtools/debugging-and-development/find_panics.py146def any_origin_matches_panic_func(elf, addr):CODE
LOWtools/debugging-and-development/find_panics.py158def any_linkage_matches_panic_func(elf, addr):CODE
LOWtools/debugging-and-development/find_panics.py170def check_for_source_in_parent(elf, addr):CODE
LOW…ols/debugging-and-development/check_process_console.py185def test_fill_command_history(port: SerialPort):CODE
LOW…ols/debugging-and-development/check_process_console.py483def test_command_history_edit(port: SerialPort):CODE
Unused Imports12 hits · 12 pts
SeverityFileLineSnippetContext
LOWtools/ci/tockbot/tockbot.py16CODE
LOW…s/debugging-and-development/print_tock_memory_usage.py31CODE
LOWboards/apollo3/ambiq/am_defines.py42CODE
LOWboards/apollo3/ambiq/am_defines.py50CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py50CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py51CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py52CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py53CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py54CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py56CODE
LOWboards/apollo3/ambiq/ambiq_bin2board.py63CODE
LOWboards/apollo3/ambiq/keys_info.py39CODE
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMchips/earlgrey/src/epmp.rs601 // Now, onto `pmpcfg3`. As discussed above, we want to use a temporaryCOMMENT
MEDIUMchips/earlgrey/src/epmp.rs752 // Now, onto `pmpcfg3`. As discussed above, we want to use a temporaryCOMMENT
LOWcapsules/core/src/console.rs464 // Whatever happens, we want to make sure to replace the rx_buffer for future transactionsCOMMENT
LOWcapsules/core/src/console_ordered.rs549 // Whatever happens, we want to make sure to replace the rx_buffer for future transactionsCOMMENT
LOWarch/x86/src/interrupts/poller.rs120 /// Don't forget to call this method after servicing an interrupt.COMMENT
Verbosity Indicators5 hits · 8 pts
SeverityFileLineSnippetContext
LOWchips/virtio/src/devices/virtio_gpu/mod.rs183 // Step 1: Create host resourceCOMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs225 // Step 2: Attach backing memory (our framebuffer)COMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs274 // Step 3: Set scanoutCOMMENT
LOWchips/virtio/src/devices/virtio_gpu/mod.rs318 // Step 4: Detach resourceCOMMENT
LOWarch/riscv/src/syscall.rs543 // Now we need to check if this was an interrupt, and if it was,COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHchips/stm32f4xx/src/dma.rs1528/// > We could have these checks at runtime, with the Peripheral reporting which Dma it belongs to and the system panickCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…/debugging-and-development/embedded_data_visualizer.py142 if (getComputedStyle( x, null ).getPropertyValue( 'font-family' ) === "monospace, monospace"CODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWchips/stm32wle5xx/src/clocks/phclk.rs123 //TODO: implement clock frequency retrieval for RTC and PWR peripheralsCOMMENT
LOWchips/stm32f4xx/src/clocks/phclk.rs118 //TODO: implement clock frequency retrieval for RTC and PWR peripheralsCOMMENT
LOWarch/riscv/src/pmp.rs1224 // TODO: implement more test cases, such as:COMMENT
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtools/svd2regs/svd2regs.py334 print('Error: no peripheral found.')CODE
MEDIUMtools/debugging-and-development/svd2regs/svd2regs.py334 print('Error: no peripheral found.')CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…s/debugging-and-development/print_tock_memory_usage.py565CODE