Repository Analysis

openscad/openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller

3.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openscad/openscad, a C++ project with 9,843 GitHub stars. SynthScan v2.0 examined 103,727 lines of code across 531 source files, recording 400 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.4 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.4
Adjusted Score
3.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
9.8K
Stars
C++
Language
103.7K
Lines of Code
531
Files
400
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 1MEDIUM 13LOW 386

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 400 distinct pattern matches across 9 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 Block341 hits · 267 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1#COMMENT
LOW.pre-commit-config.yaml1# OpenSCAD (www.openscad.org)COMMENT
LOWREADME.md341COMMENT
LOW.uncrustify.cfg1#COMMENT
LOWtests/export_import_pngtest.py1#!/usr/bin/env python3COMMENT
LOWtests/diffpng.cpp61//#define DIFFPNG_HEADERONLYCOMMENT
LOWtests/CMakeLists.txt201COMMENT
LOWtests/CMakeLists.txt781#############COMMENT
LOWtests/CMakeLists.txt1081COMMENT
LOWtests/export_pngtest.py1#!/usr/bin/env python3COMMENT
LOWtests/test_pretty_print.py1#!/usr/bin/env python3COMMENT
LOWtests/test_cmdline_tool.py1#!/usr/bin/env python3COMMENT
LOWtests/validatestl.py1#!/usr/bin/env python3COMMENT
LOWscripts/builder.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/builder.sh21# from the openscad github master source code. It will then optionallyCOMMENT
LOWscripts/circleci-download-artifacts.py1#!/usr/bin/env python3COMMENT
LOWscripts/uni-build-dependencies.sh1#!/bin/sh -eCOMMENT
LOWscripts/uni-build-dependencies.sh21# cd somepathCOMMENT
LOWscripts/uni-build-dependencies.sh621# version=$1COMMENT
LOWscripts/uni-build-dependencies.sh701#COMMENT
LOWscripts/wasm-base-docker-run.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/chrpath_linux.c121/* #undef const */COMMENT
LOWscripts/chrpath_linux.c421//# include "config.h"COMMENT
LOWscripts/chrpath_linux.c561COMMENT
LOWscripts/chrpath_linux.c641 *COMMENT
LOWscripts/macosx-build-dependencies.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/macosx-build-dependencies.sh481# # Let Sparkle use the default compilerCOMMENT
LOWscripts/mingw-x-build-dependencies.sh1#!/bin/sh -eCOMMENT
LOWscripts/mingw-x-build-dependencies.sh21# Also see http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Cross-compiling_for_Windows_on_Linux_or_Mac_OS_XCOMMENT
LOWscripts/macosx-sanity-check.py1#!/usr/bin/env python3COMMENT
LOWscripts/setenv-mingw-xbuild.sh1#!/bin/sh -eCOMMENT
LOWscripts/release-common.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/check-dependencies.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/git_merge_fix_false_deletions.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/git_merge_fix_false_deletions.sh21# Instead it attempts to detect them after the fact, through countless semi-functional hacks.COMMENT
LOWsrc/openscad_mimalloc.h1#pragma onceCOMMENT
LOWsrc/FontCache.h21 * You should have received a copy of the GNU General Public LicenseCOMMENT
LOWsrc/core/Settings.h1#pragma onceCOMMENT
LOWsrc/core/FreetypeRenderer.h21 * You should have received a copy of the GNU General Public LicenseCOMMENT
LOWsrc/core/node.h1#pragma onceCOMMENT
LOWsrc/core/Value.h1#pragma onceCOMMENT
LOWsrc/core/Parameters.h1#pragma onceCOMMENT
LOWsrc/core/Expression.h1#pragma onceCOMMENT
LOWsrc/core/CSGTreeEvaluator.h1#pragma onceCOMMENT
LOWsrc/core/NodeDumper.h1#pragma onceCOMMENT
LOWsrc/core/ScopeContext.h1#pragma onceCOMMENT
LOWsrc/core/primitives.h21 * You should have received a copy of the GNU General Public LicenseCOMMENT
LOWsrc/core/function.h1#pragma onceCOMMENT
LOWsrc/python/pyopenscad.h1#include <Python.h>COMMENT
LOWsrc/libsvg/shape.h21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOWsrc/libsvg/util.h21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,COMMENT
LOWsrc/ext/CGAL/OGL_helper.h1// Copyright (c) 1997-2002 Max-Planck-Institute Saarbruecken (Germany).COMMENT
LOWsrc/ext/CGAL/OGL_helper.h21COMMENT
LOWsrc/ext/CGAL/OGL_helper.h41#define CGAL_NEF3_OGL_UNMARKED_FACET_COLOR 249,215,44COMMENT
LOWsrc/ext/CGAL/CGAL_workaround_Mark_bounded_volumes.h1// Copyright (c) 2005 Max-Planck-Institute Saarbruecken (Germany).COMMENT
LOWsrc/ext/CGAL/CGAL_workaround_Mark_bounded_volumes.h21// Rewritten by Oskar Linde <oskar.linde@gmail.com>COMMENT
LOWsrc/ext/libtess2/Include/tesselator.h41enum TessWindingRuleCOMMENT
LOWsrc/ext/libtess2/Include/tesselator.h61// for (int j = 0; j < polySize; j++) {COMMENT
LOWsrc/ext/libtess2/Include/tesselator.h81// while (nstack > 0) {COMMENT
LOWsrc/ext/libtess2/Include/tesselator.h101// const TESSindex base = elems[i * 2];COMMENT
281 more matches not shown…
Excessive Try-Catch Wrapping20 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/test_pretty_print.py42 except Exception as e:CODE
LOWtests/test_pretty_print.py61 except Exception as e:CODE
MEDIUMtests/test_cmdline_tool.py85 print(f"Error: test '{testname}' is missing expected output in {expectedfilename}", file=sys.stderr)CODE
MEDIUMtests/test_cmdline_tool.py99 print("Error running subprocess: ", sys.exc_info()[1], file=sys.stderr)CODE
LOWtests/test_cmdline_tool.py148 except Exception as err:CODE
MEDIUMtests/test_cmdline_tool.py247 print("Error: Error during test image generation", file=sys.stderr)CODE
MEDIUMtests/test_cmdline_tool.py357 print("Error: %s failed with return code %d" % (cmdname, proc.returncode), file=sys.stderr)CODE
MEDIUMtests/test_cmdline_tool.py362 print(f'Error: {err.strerror} "{cmd}"', file=sys.stderr)CODE
LOWtests/test_cmdline_tool.py455 except Exception as e:CODE
MEDIUMscripts/macosx-sanity-check.py87 print("Error: Mixing libc++ and libstdc++")CODE
MEDIUMscripts/macosx-sanity-check.py113 print("Error: Neither LC_VERSION_MIN_MACOSX nor LC_BUILD_VERSION found in " + lib)CODE
MEDIUMscripts/macosx-sanity-check.py116 print("Error: Unsupported deployment target " + m.group(2) + " found: " + lib)CODE
MEDIUMscripts/macosx-sanity-check.py126 print("Error: Reference to mkostemp() found - only supported on macOS 10.12->")CODE
MEDIUMscripts/macosx-sanity-check.py133 print("Error: x86_64 architecture not found in " + lib)CODE
MEDIUMscripts/macosx-sanity-check.py139 print("Error: arm64 architecture not found in " + lib)CODE
MEDIUMscripts/macosx-sanity-check.py155 print('Error otool -l failed on main executable')CODE
MEDIUMscripts/macosx-sanity-check.py180 print("Error: External dependency " + d)CODE
LOWscripts/git-archive-all.py57 except Exception as e:CODE
LOWscripts/git-archive-all.py204 except Exception:CODE
LOWscripts/git-archive-all.py456 except Exception as e:CODE
Unused Imports17 hits · 17 pts
SeverityFileLineSnippetContext
LOWtests/export_import_pngtest.py29CODE
LOWtests/shouldfail.py12CODE
LOWtests/export_pngtest.py18CODE
LOWtests/test_pretty_print.py29CODE
LOWtests/test_pretty_print.py29CODE
LOWtests/test_pretty_print.py31CODE
LOWtests/test_pretty_print.py32CODE
LOWtests/test_pretty_print.py33CODE
LOWtests/test_cmdline_tool.py28CODE
LOWtests/test_cmdline_tool.py32CODE
LOWtests/test_cmdline_tool.py33CODE
LOWtests/test_cmdline_tool.py34CODE
LOWtests/validatestl.py18CODE
LOWtests/validatestl.py18CODE
LOWtests/validatestl.py18CODE
LOWtests/validatestl.py18CODE
LOWtests/stlexportsanitytest.py7CODE
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWscripts/builder.sh5# Usage:COMMENT
LOWscripts/uni-build-dependencies.sh14# Usage:COMMENT
LOWscripts/wasm-base-docker-run.sh6# Example usage:COMMENT
LOWscripts/macosx-build-dependencies.sh454# Usage:COMMENT
LOWscripts/mingw-x-build-dependencies.sh8# Usage:COMMENT
LOWscripts/setenv-mingw-xbuild.sh5# Usage:COMMENT
LOWscripts/publish-macosx.sh3# Usage:COMMENT
LOWscripts/establish_version.sh13# Usage:COMMENT
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/test_pretty_print.py324CODE
LOWtests/test_cmdline_tool.py210CODE
LOWtests/test_cmdline_tool.py300CODE
LOWtests/validatestl.py22CODE
LOWscripts/macosx-sanity-check.py40CODE
LOWscripts/macosx-sanity-check.py65CODE
LOWscripts/git-archive-all.py70CODE
LOWscripts/git-archive-all.py223CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/git-archive-all.py417 help="Force a git submodule init && git submodule update at each level before iterating submodulesCODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/compare-bitmaps.sh20 # Check if $pixelerror contains an integer (it sometimes outputs things like '0 @ 0,0')COMMENT
LOWscripts/macosx-build-homebrew.sh42# Check if there's already an active openscad tap and skipCOMMENT
LOWscripts/establish_version.sh51 # Check if we are in a git repoCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_cmdline_tool.py45def get_runtime_to_test_sources():CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/ext/lodepng/lodepng.cpp70lodepng source code. Don't forget to remove "static" if you copypaste themCODE