Repository Analysis

MichaIng/DietPi

Lightweight justice for your single-board computer!

10.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of MichaIng/DietPi, a Shell project with 6,233 GitHub stars. SynthScan v2.0 examined 11,714 lines of code across 56 source files, recording 63 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 10.1 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).

10.1
Adjusted Score
10.1
Raw Score
100%
Time Factor
2026-09-02
Last Push
6.2K
Stars
Shell
Language
11.7K
Lines of Code
56
Files
63
Pattern Hits
2026-09-02
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 23LOW 40

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 63 distinct pattern matches across 4 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.

Decorative Section Separators22 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUMdietpi.txt140#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt142#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt147#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt149#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt354#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt356#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt360#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt362#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt5#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt7#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt242#------------------------------------------------------------------------------------------------------COMMENT
MEDIUMdietpi.txt244#------------------------------------------------------------------------------------------------------COMMENT
MEDIUM.build/software/shairport-sync/build.bash25# -------------------------COMMENT
MEDIUM.build/software/shairport-sync/build.bash27# -------------------------COMMENT
MEDIUM.build/software/shairport-sync/build.bash449# -------------------------COMMENT
MEDIUM.build/software/shairport-sync/build.bash451# -------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/dietpi-firstboot.bash341 #-----------------------------------------------------------------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/dietpi-firstboot.bash343 #-----------------------------------------------------------------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/fs_partition_resize.sh40 # ---------------------------------------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/fs_partition_resize.sh178 # ---------------------------------------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/dietpi-wifi-monitor.sh15 #-------------------------------------------------------------------------------------COMMENT
MEDIUMrootfs/var/lib/dietpi/services/dietpi-wifi-monitor.sh17 #-------------------------------------------------------------------------------------COMMENT
Over-Commented Block39 hits · 36 pts
SeverityFileLineSnippetContext
LOWdietpi.txt1# IMPORTANT:COMMENT
LOWdietpi.txt61# Serial console: Set to "0" if you do not require a serial console. It will then be disabled automatically on first booCOMMENT
LOWdietpi.txt81# - Option 0 = Copy your script to /boot/Automation_Custom_Script.sh and it will be executed automatically.COMMENT
LOWdietpi.txt101AUTO_SETUP_DESKTOP=noneCOMMENT
LOWdietpi.txt121# Autologin user nameCOMMENT
LOWdietpi.txt141##### Misc DietPi program settings #####COMMENT
LOWdietpi.txt161# - Set a specific path to override, e.g.: /sys/class/hwmon/hwmon1/temp1_inputCOMMENT
LOWdietpi.txt181# - amdCOMMENT
LOWdietpi.txt221# LCD Panel addonCOMMENT
LOWdietpi.txt241COMMENT
LOWdietpi.txt301# X11COMMENT
LOWdietpi.txt321# https://rancher.com/docs/k3s/latest/en/installation/install-options/#options-for-installation-with-scriptCOMMENT
LOWdietpi.txt341# - Uncomment and set to "2" to install experimental AirPlay 2 build: https://github.com/mikebrady/shairport-sync/blob/mCOMMENT
LOWdietpi.txt361##### Settings, automatically added by dietpi-update #####COMMENT
LOW.build/images/RPi/config.txt1# Docs: https://www.raspberrypi.com/documentation/computers/config_txt.htmlCOMMENT
LOW.build/images/RPi/config.txt21COMMENT
LOW.build/images/RPi/config.txt61#-------SPI-------------COMMENT
LOW.build/images/RPi/config.txt81COMMENT
LOW.build/software/shairport-sync/build.bash81{COMMENT
LOW.build/software/shairport-sync/build.bash101// interpolation = "auto"; // aka "stuffing". Default is "auto". Alternatives are "vernier", "basic" or "soxr". Choose "COMMENT
LOW.build/software/shairport-sync/build.bash121// If "off", or if there is no device channel map, audio channels are output to the device channels in order.COMMENT
LOW.build/software/shairport-sync/build.bash141// run_this_when_volume_is_set = "/full/path/to/application/and/args"; // Run the specified application whenever the volCOMMENT
LOW.build/software/shairport-sync/build.bash161// resend_control_check_interval_time = 0.25; // Use this optional advanced setting to set the time in seconds between COMMENT
LOW.build/software/shairport-sync/build.bash181// Many of these "unfixable" problems are caused by malfunctioning output devices, and sometimes it is necessary to reCOMMENT
LOW.build/software/shairport-sync/build.bash201// (Settings are static by default on the STDOUT and pipe backends, as there is no obvious way to signal a downstreaCOMMENT
LOW.build/software/shairport-sync/build.bash221alsa =COMMENT
LOW.build/software/shairport-sync/build.bash241COMMENT
LOW.build/software/shairport-sync/build.bash261stdout =COMMENT
LOW.build/software/shairport-sync/build.bash281// socket_address = "226.0.0.1"; // if set to a host name or IP address, UDP packets containing metadata will be sent toCOMMENT
LOW.build/software/shairport-sync/build.bash301// cafile = NULL; //this may be used as an (exclusive) alternative to capath with a single file for all ca-certificatesCOMMENT
LOW.build/software/shairport-sync/build.bash321{COMMENT
LOW.build/software/unbound/build.bash81cat << '_EOF_' > "$DIR/etc/unbound/unbound.conf.d/dietpi.conf" || exit 1COMMENT
LOWrootfs/etc/bashrc.d/dietpi.bash1#!/bin/bashCOMMENT
LOWrootfs/etc/bashrc.d/readme.txt1# /etc/bashrc.d/ is implemented by DietPi to source custom scripts user-wide on interactive bash session starts.COMMENT
LOWrootfs/etc/cron.minutely/readme.txt1# /etc/cron.minutely/ is implemented by DietPi and allows to run scripts every chosen amount of minutes.COMMENT
LOWrootfs/var/lib/dietpi/postboot.d/readme.txt1# /var/lib/dietpi/postboot.d is implemented by DietPi and allows to run scripts at the end of the boot process:COMMENT
LOWrootfs/var/lib/dietpi/services/dietpi-firstboot.bash1#!/bin/bashCOMMENT
LOW.conf/desktop/lxde/lxde-rc.xml661 class="second element of window's WM_CLASS property (see xprop)"COMMENT
LOW.conf/desktop/lxde/lxde-rc.xml681 # make the window shaded when it appears, or notCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.conf/desktop/lxde/lxde-rc.xml668 # used by a shell. you can use * to match any characters and ? to matchCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrootfs/var/lib/dietpi/services/dietpi-fs_automount.sh24 # Check if this UUID already has an /etc/fstab entryCOMMENT