Repository Analysis

bdring/FluidNC

The next generation of motion control firmware

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bdring/FluidNC, a C++ project with 2,526 GitHub stars. SynthScan v2.0 examined 144,998 lines of code across 785 source files, recording 509 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 3.9 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.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.5K
Stars
C++
Language
145.0K
Lines of Code
785
Files
509
Pattern Hits
2026-08-29
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 0MEDIUM 18LOW 491

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 509 distinct pattern matches across 11 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 Block438 hits · 438 pts
SeverityFileLineSnippetContext
LOWplatformio.ini601# These are disabled for now, pending further workCOMMENT
LOWtools/gen_config_docs.py61# concrete type.COMMENT
LOWtools/gen_config_docs.py81# (spi/i2s/uart/i2c) stands alone for a field that IS one of that bus's ownCOMMENT
LOWtools/gen_config_docs.py481 # Strip a trailing array subscript (e.g. "_analogOutput[0]" -> "_analogOutput")COMMENT
LOWtools/gen_config_docs.py521 if extra[0] in enum_arrays:COMMENT
LOWtools/gen_config_docs.py561 # would spuriously warn, since the annotation naturally omits it.COMMENT
LOWtools/build_config_docs.py341 entries, _, _, _, _ = g.process_class(SRC / rel_file, class_name, method_name)COMMENT
LOWFluidNC/posix/SimulatorWebSocketServer.h1#pragma onceCOMMENT
LOWFluidNC/posix/SimulatorWebSocketServer.h21COMMENT
LOWFluidNC/posix/Console.cpp1#include <iostream>COMMENT
LOWFluidNC/posix/Console.cpp21# undef B110COMMENT
LOWFluidNC/posix/Console.cpp41#ifdef B1800COMMENT
LOWFluidNC/posix/Console.cpp61#endifCOMMENT
LOWFluidNC/posix/Console.cpp81# undef B1000000COMMENT
LOWFluidNC/posix/Console.cpp101#ifdef B4000000COMMENT
LOWFluidNC/posix/simulator_engine.cpp1// Simulator stepping engine - tracks motion and sends position updates via WebSocketCOMMENT
LOWFluidNC/posix/Platform.h1#pragma onceCOMMENT
LOWFluidNC/rp2040/StepTimer.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/AsyncTCP.h1#pragma onceCOMMENT
LOWFluidNC/rp2040/nvs.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/FreeRTOS_Compat.cpp1// FreeRTOS compatibility for RP2040COMMENT
LOWFluidNC/rp2040/WifiImpl.cpp1#ifdef PICO_RP2350COMMENT
LOWFluidNC/rp2040/tud_cdc_line_coding_wrapper.cpp1/*COMMENT
LOWFluidNC/rp2040/tud_cdc_line_coding_wrapper.cpp41#endifCOMMENT
LOWFluidNC/rp2040/littlefs.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/localfs.cpp1// Copyright 2025 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/ws2812.h1// --------- //COMMENT
LOWFluidNC/rp2040/gpio.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/pio_engine_delayed.cpp1// Copyright (c) 2024 - Mitch BradleyCOMMENT
LOWFluidNC/rp2040/pio_engine_delayed.cpp161 if (ticks) {COMMENT
LOWFluidNC/rp2040/spi.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/timed_engine.cpp1// Copyright (c) 2024 - Mitch BradleyCOMMENT
LOWFluidNC/rp2040/StepTimer.h1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/rp2040.h1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/sdspi.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/uart.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/delay_usecs.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/Platform.h1// Copyright (c) 2024 - FluidNC RP2040 Port - Platform DefinitionCOMMENT
LOWFluidNC/rp2040/Platform.h21COMMENT
LOWFluidNC/rp2040/Platform.h41inline bool should_exit() {COMMENT
LOWFluidNC/rp2040/fnc_uart.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/VFS.cpp21COMMENT
LOWFluidNC/rp2040/rp2040.cpp1// Copyright (c) 2024 - FluidNC RP2040 PortCOMMENT
LOWFluidNC/rp2040/sys/statvfs.h1#pragma onceCOMMENT
LOWFluidNC/stdfs/std-path.cpp1// Class filesystem::path -*- C++ -*-COMMENT
LOWFluidNC/stdfs/std-dir.cpp1// Class filesystem::directory_entry etc. -*- C++ -*-COMMENT
LOWFluidNC/stdfs/std-dir.cpp21# define _GLIBCXX_USE_CXX11_ABI 1COMMENT
LOWFluidNC/stdfs/ops-common.h1// Filesystem operation utilities -*- C++ -*-COMMENT
LOWFluidNC/stdfs/std-ops.cpp1// Filesystem operations -*- C++ -*-COMMENT
LOWFluidNC/stdfs/std-ops.cpp21# include "fluidnc_vfs_ops.h"COMMENT
LOWFluidNC/stdfs/std-ops.cpp41# include <sys/stat.h> // stat, utimensat, fchmodatCOMMENT
LOWFluidNC/stdfs/dir-common.h1// Filesystem directory iterator utilities -*- C++ -*-COMMENT
LOWFluidNC/stdfs/dir-common.h21// a copy of the GCC Runtime Library Exception along with this program;COMMENT
LOWFluidNC/stdfs/include/bits/fs_path.h1// Class filesystem::path -*- C++ -*-COMMENT
LOWFluidNC/stdfs/include/bits/fs_path.h21// a copy of the GCC Runtime Library Exception along with this program;COMMENT
LOWFluidNC/stdfs/include/bits/fs_fwd.h1// Filesystem declarations -*- C++ -*-COMMENT
LOWFluidNC/stdfs/include/bits/fs_ops.h1// Filesystem operational functions -*- C++ -*-COMMENT
LOWFluidNC/stdfs/include/bits/fs_dir.h1// Filesystem directory utilities -*- C++ -*-COMMENT
LOWFluidNC/capture/Capture.h1#pragma onceCOMMENT
LOWFluidNC/capture/localfs.cpp1#include "Driver/localfs.h"COMMENT
378 more matches not shown…
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMstack-trace-decoder.html282// ── State ──────────────────────────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html299// ── Address extraction ─────────────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html335// ── Binary search in sorted symbol table ───────────────────────────COMMENT
MEDIUMstack-trace-decoder.html374// ── Decode ─────────────────────────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html463// ── Load .addrinfo from GitHub release ─────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html515// ── Load local .addrinfo file ──────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html538// ── Load GitHub releases list ──────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html569// ── Helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMstack-trace-decoder.html595// ── Init ───────────────────────────────────────────────────────────COMMENT
MEDIUMplatformio.ini291# ==========================================COMMENT
MEDIUMplatformio.ini293# ==========================================COMMENT
Structural Annotation Overuse9 hits · 18 pts
SeverityFileLineSnippetContext
LOWcoverage.py50 # Step 1: Clean previous coverage dataCOMMENT
LOWcoverage.py55 # Step 2: Build and run testsCOMMENT
LOWcoverage.py61 # Step 3: Generate coverage reportCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py237 # Step 1: Get all text symbolsCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py244 # Step 2: Get source info for all symbol addressesCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py253 # Step 3: Build the addrinfo structureCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py276 # Step 4: Write outputCOMMENT
LOWFluidNC/src/GCode.cpp253 // Step 0 - remove whitespace and comments and convert to upper caseCOMMENT
LOWFluidNC/src/Protocol.cpp369// NOTE: This function is called from the main loop, buffer sync, and mc_move_motors() only and executesCOMMENT
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWgenerate_vcxproj.py132CODE
LOWtools/gen_config_docs.py138CODE
LOWtools/gen_config_docs.py468CODE
LOWtools/build_config_docs.py345CODE
LOWtools/fluidnc_validate_core.py132CODE
LOWtools/fluidnc_validate_core.py463CODE
LOWtools/fluidnc_validate_core.py187CODE
LOWtools/stack_trace_decoder/server.py76CODE
LOWtools/stack_trace_decoder/generate_addrinfo.py30CODE
LOWtools/stack_trace_decoder/generate_addrinfo.py135CODE
LOWfixture_tests/tool/op_entries.py8CODE
LOWexamples/http_command/http_command_server.py44CODE
LOWfluidterm/fluidterm.py1131CODE
LOWfluidterm/fluidterm.py628CODE
LOWfluidterm/fluidterm.py671CODE
LOWfluidterm/fluidterm.py718CODE
LOWfluidterm/fluidterm.py949CODE
LOWfluidterm/fluidterm.py202CODE
Excessive Try-Catch Wrapping8 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMbuild-release.py275 print("Error: failed to generate config_items.yaml", file=sys.stderr)CODE
LOWtools/stack_trace_decoder/server.py125 except Exception as exc:CODE
MEDIUMtools/stack_trace_decoder/generate_addrinfo.py107 print(f"Error running nm: {result.stderr}", file=sys.stderr)CODE
MEDIUMtools/stack_trace_decoder/generate_addrinfo.py216 print(f"Error: ELF file not found: {elf_path}", file=sys.stderr)CODE
MEDIUMtools/stack_trace_decoder/generate_addrinfo.py226 print("Error: Could not find 'nm' tool. Install ESP toolchain or use --toolchain-prefix.", file=sys.stderr)CODE
MEDIUMtools/stack_trace_decoder/generate_addrinfo.py229 print("Error: Could not find 'addr2line' tool. Install ESP toolchain or use --toolchain-prefix.", file=sys.stderCODE
LOWfluidterm/fluidterm.py1043 except Exception as e:STRING
LOWfluidterm/fluidterm.py1075 except Exception as e:STRING
Verbosity Indicators7 hits · 15 pts
SeverityFileLineSnippetContext
LOWcoverage.py50 # Step 1: Clean previous coverage dataCOMMENT
LOWcoverage.py55 # Step 2: Build and run testsCOMMENT
LOWcoverage.py61 # Step 3: Generate coverage reportCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py237 # Step 1: Get all text symbolsCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py244 # Step 2: Get source info for all symbol addressesCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py253 # Step 3: Build the addrinfo structureCOMMENT
LOWtools/stack_trace_decoder/generate_addrinfo.py276 # Step 4: Write outputCOMMENT
Unused Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWbuild-release.py9CODE
LOWbuild-release.py10CODE
LOWcoverage.py20CODE
LOWgit-version.py2CODE
LOWgit-version.py2CODE
LOWtools/fluidnc_config_mcp_server.py74CODE
LOWtools/stack_trace_decoder/server.py2CODE
LOWtools/stack_trace_decoder/generate_addrinfo.py22CODE
LOWfixture_tests/tool/controller.py2CODE
LOWfluidterm/fluidterm.py10CODE
LOWfluidterm/fluidterm.py20CODE
LOWfluidterm/fluidterm.py27CODE
LOWembedded/build.py5CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMFluidNC/src/Planner.cpp377 // from path, but used as a robust way to compute cornering speeds, as it takes into account theCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMfluidterm/fluidterm.py5# This file is part of pySerial. https://github.com/pyserial/pyserialCOMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/fluidnc_config_mcp_server.py157def validate_fluidnc_config_file(path: str, permissive: bool = False) -> dict:CODE
LOWexamples/http_command/http_command_server.py185 def handle_home_assistant_state(self, path):CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWplatformio.ini592# Usage:COMMENT