Repository Analysis

bdring/FluidNC

The next generation of motion control firmware

3.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bdring/FluidNC, a C++ project with 2,465 GitHub stars. SynthScan v2.0 examined 96,561 lines of code across 634 source files, recording 252 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 3.1 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.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-07-12
Last Push
2.5K
Stars
C++
Language
96.6K
Lines of Code
634
Files
252
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 0MEDIUM 15LOW 237

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 252 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 Block186 hits · 186 pts
SeverityFileLineSnippetContext
LOWplatformio.ini301# Coverage environment - generates .gcda/.gcno files for gcovr/lcovCOMMENT
LOWFluidNC/posix/Console.cpp41COMMENT
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/capture/Capture.h1#pragma onceCOMMENT
LOWFluidNC/capture/localfs.cpp1#include "Driver/localfs.h"COMMENT
LOWFluidNC/capture/Platform.h1#pragma onceCOMMENT
LOWFluidNC/capture/Platform.h21COMMENT
LOWFluidNC/capture/freertos/task.h41COMMENT
LOWFluidNC/test/TestFramework.h61 statement; COMMENT
LOWFluidNC/test/TestFramework.h81# include "gtest/gtest.h"COMMENT
LOWFluidNC/test/Pins/GPIO.cpp321COMMENT
LOWFluidNC/test/Extender/I2CExtenderTests.cpp1#include "../TestFramework.h"COMMENT
LOWFluidNC/include/ArduinoIDFHack/sdkconfig.h1#include "../../build/config/sdkconfig.h"COMMENT
LOWFluidNC/include/ArduinoIDFHack/sdkconfig.h21#undef CONFIG_TINYUSB_MSC_ENABLEDCOMMENT
LOWFluidNC/include/Driver/step_engine.h1// Copyright (c) 2024 - Mitch BradleyCOMMENT
LOWFluidNC/include/Driver/i2s_out.h1// Copyright (c) 2020 - Michiyasu OdakiCOMMENT
LOWFluidNC/tests/Logging.h21};COMMENT
LOWFluidNC/tests/Logging.h61#define log_info(x) do { } while (0)COMMENT
LOWFluidNC/tests/test_unit/LinuxCNCParser.cpp1// LinuxCNCParser.cpp - Extracted from LinuxCNC interp_read.ccCOMMENT
LOWFluidNC/tests/test_unit/LinuxCNCParser.h1#pragma onceCOMMENT
LOWFluidNC/esp32/coredump.c1// Copyright 2022 Mitch BradleyCOMMENT
LOWFluidNC/esp32/fnc_idf_uart.h21#include "esp_err.h"COMMENT
LOWFluidNC/esp32/localfs.cpp1#include "Driver/localfs.h"COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.h1#include <esp_idf_version.h>COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.h61// uart_parity_t parity; /*!< UART parity mode*/COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.h81//typedef struct {COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.h101// UART_WAKEUP, /*!< UART wakeup event */COMMENT
LOWFluidNC/esp32/spi.cpp1// Copyright (c) 2022 Mitch BradleyCOMMENT
LOWFluidNC/esp32/tmc_spi_support.c1// Copyright (c) 2022 Mitch BradleyCOMMENT
LOWFluidNC/esp32/sdspi.cpp1// Copyright (c) 2022 Mitch BradleyCOMMENT
LOWFluidNC/esp32/fnc_idf_uart.c1/*COMMENT
LOWFluidNC/esp32/fnc_idf_uart.c21#include "soc/uart_periph.h"COMMENT
LOWFluidNC/esp32/fnc_idf_uart.c41#endifCOMMENT
LOWFluidNC/esp32/fnc_idf_uart.c81#define UART_EXIT_CRITICAL_SAFE(mux) portEXIT_CRITICAL_SAFE(mux)COMMENT
LOWFluidNC/esp32/delay_usecs.cpp1#include "Driver/delay_usecs.h"COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.c1#include "fnc_idf_uart_idfbuild.h"COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.c21# include "freertos/queue.h"COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.c41# if SOC_LP_GPIO_MATRIX_SUPPORTEDCOMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.c61// - ESP32-C6, H2 and later chips: Protect core clock. Run in light-sleep hasn't been developed yet (TODO: IDF-8349),COMMENT
LOWFluidNC/esp32/fnc_idf_uart_idfbuild.c81# define UART_THRESHOLD_NUM(uart_num, field_name) ((uart_num < SOC_UART_HP_NUM) ? field_name : LP_##field_name)COMMENT
LOWFluidNC/esp32/tmc_spi.cpp1// Copyright (c) 2022 Mitch BradleyCOMMENT
LOWFluidNC/esp32/tmc_spi.cpp21// interface, which is basically direct access to the hardware registersCOMMENT
LOWFluidNC/esp32/PwmPin.cpp1// Copyright 2022 - Mitch Bradley, Stefan de BruijnCOMMENT
LOWFluidNC/esp32/PwmPin.cpp21# include <esp32s3/rom/gpio.h>COMMENT
LOWFluidNC/esp32/PwmPin.cpp141COMMENT
LOWFluidNC/esp32/esp32/i2s_engine.c1// Copyright (c) 2024 - Mitch BradleyCOMMENT
LOWFluidNC/esp32/esp32/i2s_engine.c121COMMENT
LOWFluidNC/esp32/esp32/Platform.h1#pragma onceCOMMENT
LOWFluidNC/esp32/esp32/Platform.h21// The number that we support, regardless of how many the chip hasCOMMENT
LOWFluidNC/esp32/esp32/Platform.h41inline void platform_preinit() {COMMENT
LOWFluidNC/esp32/esp32s3/i2s_engine_dedicated.c1// Copyright (c) 2024 - Mitch Bradley, adjusted by Stefan de Bruijn for S3COMMENT
LOWFluidNC/esp32/esp32s3/USBCDCChannel.cpp1// Copyright (c) 2023 - Stefan de BruijnCOMMENT
126 more matches not shown…
Decorative Section Separators9 hits · 27 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
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.cpp332// NOTE: This function is called from the main loop, buffer sync, and mc_move_motors() only and executesCOMMENT
Verbosity Indicators8 hits · 16 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/WebUI/WSChannel.cpp78 // in the response (>32KB of json), so we need to check if the websocket buffer is full before continuingCOMMENT
Deep Nesting15 hits · 15 pts
SeverityFileLineSnippetContext
LOWgenerate_vcxproj.py132CODE
LOWtools/fluidnc_validate_core.py125CODE
LOWtools/fluidnc_validate_core.py454CODE
LOWtools/fluidnc_validate_core.py180CODE
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
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
Excessive Try-Catch Wrapping7 hits · 13 pts
SeverityFileLineSnippetContext
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
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.ini302# Usage:COMMENT