Repository Analysis

ZigEmbeddedGroup/microzig

MicroZig is a toolbox for building embedded applications in Zig.

12.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ZigEmbeddedGroup/microzig, a Zig project with 2,248 GitHub stars. SynthScan v2.0 examined 14,812 lines of code across 166 source files, recording 198 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 12.4 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).

12.4
Adjusted Score
12.4
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.2K
Stars
Zig
Language
14.8K
Lines of Code
166
Files
198
Pattern Hits
2026-08-09
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

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

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

Severity Breakdown

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

CRITICAL 0HIGH 0MEDIUM 6LOW 192

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 198 distinct pattern matches across 5 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 Block190 hits · 159 pts
SeverityFileLineSnippetContext
LOWtools/sorcerer/README.md81# STM32F103C8 stmicro/stm32 -COMMENT
LOWdrivers/README.md681COMMENT
LOWexamples/espressif/esp/src/lwip/include/lwipopts.h1#ifndef LWIP_LWIPOPTS_HCOMMENT
LOWexamples/espressif/esp/src/lwip/include/lwipopts.h21#define MEMP_MEM_MALLOC 1COMMENT
LOWexamples/espressif/esp/src/lwip/include/arch/cc.h21 } while (0)COMMENT
LOWexamples/espressif/esp/src/lwip/include/arch/cc.h41#define SYS_ARCH_PROTECT(lev) lwip_lock_core_mutex()COMMENT
LOW…errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h1#ifndef _RP2XXX_COMPARISON_TESTS_H_COMMENT
LOW…errypi/rp2xxx/src/hal/pio/assembler/comparison_tests.h21#include "comparison_tests/quadrature_encoder.pio.h"COMMENT
LOW…/hal/pio/assembler/comparison_tests/resistor_dac.pio.h1// -------------------------------------------------- //COMMENT
LOW…xxx/src/hal/pio/assembler/comparison_tests/hub75.pio.h1// -------------------------------------------------- //COMMENT
LOW…l/pio/assembler/comparison_tests/squarewave_fast.pio.h1// -------------------------------------------------- //COMMENT
LOW…l/pio/assembler/comparison_tests/squarewave_wrap.pio.h1// -------------------------------------------------- //COMMENT
LOW…rc/hal/pio/assembler/comparison_tests/squarewave.pio.h1// -------------------------------------------------- //COMMENT
LOW…o/assembler/comparison_tests/nec_carrier_control.pio.h1// -------------------------------------------------- //COMMENT
LOW…pio/assembler/comparison_tests/nec_carrier_burst.pio.h1// -------------------------------------------------- //COMMENT
LOW…pio/assembler/comparison_tests/nec_carrier_burst.pio.h41}COMMENT
LOW…o/assembler/comparison_tests/manchester_encoding.pio.h1// -------------------------------------------------- //COMMENT
LOW…p2xxx/src/hal/pio/assembler/comparison_tests/pwm.pio.h1// -------------------------------------------------- //COMMENT
LOW…al/pio/assembler/comparison_tests/pio_serialiser.pio.h1// -------------------------------------------------- //COMMENT
LOW…io/assembler/comparison_tests/quadrature_encoder.pio.h1// -------------------------------------------------- //COMMENT
LOW…sembler/comparison_tests/differential_manchester.pio.h1// -------------------------------------------------- //COMMENT
LOW…x/src/hal/pio/assembler/comparison_tests/uart_rx.pio.h1// -------------------------------------------------- //COMMENT
LOW…hal/pio/assembler/comparison_tests/clocked_input.pio.h1// -------------------------------------------------- //COMMENT
LOW…/src/hal/pio/assembler/comparison_tests/addition.pio.h1// -------------------------------------------------- //COMMENT
LOW…xx/src/hal/pio/assembler/comparison_tests/ws2812.pio.h1// -------------------------------------------------- //COMMENT
LOW…xx/src/hal/pio/assembler/comparison_tests/apa102.pio.h1// -------------------------------------------------- //COMMENT
LOW…c/hal/pio/assembler/comparison_tests/nec_receive.pio.h1// -------------------------------------------------- //COMMENT
LOW…c/hal/pio/assembler/comparison_tests/nec_receive.pio.h61 // join the FIFOs to make a single large receive FIFOCOMMENT
LOW…rc/hal/pio/assembler/comparison_tests/st7789_lcd.pio.h1// -------------------------------------------------- //COMMENT
LOW…xxx/src/hal/pio/assembler/comparison_tests/blink.pio.h1// -------------------------------------------------- //COMMENT
LOW…x/src/hal/pio/assembler/comparison_tests/uart_tx.pio.h1// -------------------------------------------------- //COMMENT
LOW…xxx/src/hal/pio/assembler/comparison_tests/hello.pio.h1// -------------------------------------------------- //COMMENT
LOW…p2xxx/src/hal/pio/assembler/comparison_tests/i2c.pio.h1// -------------------------------------------------- //COMMENT
LOW…p2xxx/src/hal/pio/assembler/comparison_tests/spi.pio.h1// -------------------------------------------------- //COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h1/**COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h21// -----------------------------------------------------------------------------COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h41#define M0PLUS_SYST_CSR_CLKSOURCE_ACCESS "RW"COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h61#define M0PLUS_SYST_CSR_ENABLE_MSB _u(0)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h81// Description : Value to load into the SysTick Current Value Register when theCOMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h101// COUNTFLAG bit of the SysTick Control and Status Register.COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h121#define M0PLUS_SYST_CALIB_NOREF_MSB _u(31)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h141#define M0PLUS_SYST_CALIB_TENMS_LSB _u(0)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h161// Read:COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h181// 1 = Disable interrupt.COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h201// 0 = No effect.COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h221#define M0PLUS_NVIC_ICPR_BITS _u(0xffffffff)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h241// priority, and 3 is the lowest.COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h261#define M0PLUS_NVIC_IPR0_IP_2_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h281// Register : M0PLUS_NVIC_IPR1COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h301#define M0PLUS_NVIC_IPR1_IP_6_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h321// Register : M0PLUS_NVIC_IPR2COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h341#define M0PLUS_NVIC_IPR2_IP_10_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h361// Register : M0PLUS_NVIC_IPR3COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h381#define M0PLUS_NVIC_IPR3_IP_14_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h401// Register : M0PLUS_NVIC_IPR4COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h421#define M0PLUS_NVIC_IPR4_IP_18_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h441// Register : M0PLUS_NVIC_IPR5COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h461#define M0PLUS_NVIC_IPR5_IP_22_MSB _u(23)COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h481// Register : M0PLUS_NVIC_IPR6COMMENT
LOW…raspberrypi/rp2xxx/src/bootroms/RP2040/shared/m0plus.h501#define M0PLUS_NVIC_IPR6_IP_26_MSB _u(23)COMMENT
130 more matches not shown…
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMmodules/freertos/src/picosdk_stubs.c12// ── IRQ / Panic ─────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/freertos/src/picosdk_stubs.c27// ── Multicore (no-ops for single-core FreeRTOS) ─────────────────────────COMMENT
MEDIUMmodules/freertos/src/picosdk_stubs.c48// ── Clocks ──────────────────────────────────────────────────────────────COMMENT
MEDIUMmodules/freertos/src/picosdk_stubs.c63// ── Spinlocks ───────────────────────────────────────────────────────────COMMENT
Self-Referential Comments2 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/publish-github-pages.yml36 # Create an array to store releases with the artifactCOMMENT
MEDIUM.github/workflows/publish-github-pages.yml45 # Create the target directory if it doesn't existCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.github/workflows/publish-github-pages.yml51 # Check if the tarball was downloaded and unpack itCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmodules/foundation-libc/include/foundation/libc.h30/// NOTE: This function must never return, because otherwise, the undefinedCOMMENT