Repository Analysis

floooh/sokol

minimal cross-platform standalone C headers

4.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of floooh/sokol, a C project with 10,165 GitHub stars. SynthScan v2.0 examined 87,693 lines of code across 115 source files, recording 266 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 4.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).

4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-08-02
Last Push
10.2K
Stars
C
Language
87.7K
Lines of Code
115
Files
266
Pattern Hits
2026-08-02
Scan Date
0.13
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 15MEDIUM 19LOW 232

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 266 distinct pattern matches across 8 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 Block192 hits · 182 pts
SeverityFileLineSnippetContext
LOWsokol_args.h361#ifdef __cplusplusCOMMENT
LOWsokol_args.h381#if defined(__EMSCRIPTEN__)COMMENT
LOWsokol_args.h401 #elseCOMMENT
LOWsokol_audio.h541COMMENT
LOWsokol_audio.h721#ifdef SOKOL_AUDIO_IMPLCOMMENT
LOWsokol_audio.h741 #include <assert.h>COMMENT
LOWsokol_audio.h761 #define _SAUDIO_APPLE (1)COMMENT
LOWsokol_audio.h781 #define _SAUDIO_VITA (1)COMMENT
LOWsokol_audio.h801 #endifCOMMENT
LOWsokol_audio.h821 static const IID _saudio_IID_IMMDeviceEnumerator = { 0xa95664d2, 0x9614, 0x4f35, {0xa7, 0x46,COMMENT
LOWsokol_audio.h841 #pragma warning(disable:4505) /* unreferenced local function has been removed */COMMENT
LOWsokol_audio.h861 #define _SAUDIO_PTHREADS (1)COMMENT
LOWsokol_audio.h881COMMENT
LOWsokol_audio.h1081}COMMENT
LOWsokol_audio.h2041 _saudio_aaudio_backend_shutdown();COMMENT
LOWsokol_audio.h2441 #if defined(SOKOL_DUMMY_BACKEND)COMMENT
LOWsokol_audio.h2581}COMMENT
LOWsokol_log.h101 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_log.h141// ██ ███ ███ ██████ ██ ███████ ███ ███ ███████ ███ ██ ████████ █████ ████████ ██ ██████ ███ ██COMMENT
LOWsokol_log.h161 #define SOKOL_ASSERT(c) assert(c)COMMENT
LOWsokol_log.h181#elif defined(_WIN32)COMMENT
LOWsokol_log.h201#ifndef NOMINMAXCOMMENT
LOWsokol_app.h1341 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_app.h2301inline void sapp_run(const sapp_desc& desc) { return sapp_run(&desc); }COMMENT
LOWsokol_app.h2321#include <stdlib.h> // malloc, freeCOMMENT
LOWsokol_app.h2341#if defined(__APPLE__)COMMENT
LOWsokol_app.h2361 #endifCOMMENT
LOWsokol_app.h2381 #endifCOMMENT
LOWsokol_app.h2401 #define _SAPP_GLX (1)COMMENT
LOWsokol_app.h2421#ifndef SOKOL_API_IMPLCOMMENT
LOWsokol_app.h2441 #define _SOKOL_PRIVATE staticCOMMENT
LOWsokol_app.h2461 #if defined(SOKOL_METAL)COMMENT
LOWsokol_app.h2481 #endifCOMMENT
LOWsokol_app.h2501 #define WIN32_LEAN_AND_MEANCOMMENT
LOWsokol_app.h2521 #elseCOMMENT
LOWsokol_app.h2541 #if defined(SOKOL_D3D11)COMMENT
LOWsokol_app.h2561 #include <android/looper.h>COMMENT
LOWsokol_app.h2581 #endifCOMMENT
LOWsokol_app.h2981COMMENT
LOWsokol_app.h3101COMMENT
LOWsokol_app.h3321 #if defined(_SAPP_MACOS)COMMENT
LOWsokol_app.h3361// >>loggingCOMMENT
LOWsokol_app.h4361// ██ ██ ██ ██ ██ █████ ███████ ██ ██ ██COMMENT
LOWsokol_app.h5181#endif // SOKOL_VULKANCOMMENT
LOWsokol_app.h8261COMMENT
LOWsokol_app.h14221//COMMENT
LOWsokol_time.h101COMMENT
LOWsokol_time.h141#endifCOMMENT
LOWsokol_fetch.h921 3. This notice may not be removed or altered from any sourceCOMMENT
LOWsokol_fetch.h1121inline sfetch_handle_t sfetch_send(const sfetch_request_t& request) { return sfetch_send(&request); }COMMENT
LOWsokol_fetch.h1141#include <string.h> /* memset, memcpy */COMMENT
LOWsokol_fetch.h1161#ifndef SOKOL_ASSERTCOMMENT
LOWsokol_fetch.h1181 #define _SFETCH_PLATFORM_WINDOWS (0)COMMENT
LOWsokol_fetch.h1201 #define _SFETCH_PLATFORM_WINDOWS (0)COMMENT
LOWsokol_fetch.h1361 sfetch_desc_t desc;COMMENT
LOWsokol_fetch.h1381//COMMENT
LOWsokol_glue.h81 distribution.COMMENT
LOWsokol_glue.h121#endifCOMMENT
LOWutil/sokol_gfx_imgui.h181#include <stdbool.h>COMMENT
LOWutil/sokol_gfx_imgui.h281 #if !defined(IMGUI_VERSION)COMMENT
132 more matches not shown…
Cross-Language Confusion15 hits · 108 pts
SeverityFileLineSnippetContext
HIGHbindgen/gen_odin.py373 l(f' when USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py374 l(f' else when USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py375 l(f' else when USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py376 l(f' else when USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py377 l(f' else when !USE_GL && ODIN_ARCH == .arm64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py378 l(f' else when !USE_GL && ODIN_ARCH == .arm64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py379 l(f' else when !USE_GL && ODIN_ARCH == .amd64 && DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py380 l(f' else when !USE_GL && ODIN_ARCH == .amd64 && !DEBUG {{ foreign import {clib_import} {{ "../dylib/sokol_dyCODE
HIGHbindgen/gen_odin.py408 l( '} else when ODIN_ARCH == .wasm32 || ODIN_ARCH == .wasm64p32 {')CODE
HIGHbindgen/gen_zig.py329 l(f" {field_name}: [*c]const u8 = null,")CODE
HIGHbindgen/gen_zig.py331 l(f" {field_name}: ?*const anyopaque = null,")CODE
HIGHbindgen/gen_zig.py333 l(f" {field_name}: ?*anyopaque = null,")CODE
HIGHbindgen/gen_zig.py335 l(f" {field_name}: ?[*]const {as_zig_prim_type(util.extract_ptr_type(field_type))} = null,")CODE
HIGHbindgen/gen_zig.py337 l(f" {field_name}: ?*const fn ({funcptr_args_c(field_type, prefix)}) callconv(.c) {funcptr_result_c(fieldCODE
HIGHbindgen/gen_zig.py357 l(f" {field_name}: [{array_sizes[0]}]?*const anyopaque = @splat(null),")CODE
Decorative Section Separators18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMutil/gen_sokol_color.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMutil/gen_sokol_color.py3#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_odin.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_odin.py5#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_d.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_d.py9#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_c3.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_c3.py5#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_zig.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_zig.py8#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_jai.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_jai.py5#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_rust.py1# -------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_rust.py7# -------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_ir.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_ir.py3#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_nim.py1#-------------------------------------------------------------------------------COMMENT
MEDIUMbindgen/gen_nim.py7#-------------------------------------------------------------------------------COMMENT
Deep Nesting31 hits · 31 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_odin.py230CODE
LOWbindgen/gen_odin.py323CODE
LOWbindgen/gen_odin.py487CODE
LOWbindgen/gen_odin.py510CODE
LOWbindgen/gen_d.py288CODE
LOWbindgen/gen_d.py417CODE
LOWbindgen/gen_c3.py245CODE
LOWbindgen/gen_c3.py372CODE
LOWbindgen/gen_c3.py393CODE
LOWbindgen/gen_zig.py189CODE
LOWbindgen/gen_zig.py215CODE
LOWbindgen/gen_zig.py266CODE
LOWbindgen/gen_zig.py314CODE
LOWbindgen/gen_zig.py405CODE
LOWbindgen/gen_zig.py444CODE
LOWbindgen/gen_zig.py507CODE
LOWbindgen/gen_jai.py216CODE
LOWbindgen/gen_jai.py293CODE
LOWbindgen/gen_jai.py447CODE
LOWbindgen/gen_jai.py468CODE
LOWbindgen/gen_rust.py243CODE
LOWbindgen/gen_rust.py273CODE
LOWbindgen/gen_rust.py324CODE
LOWbindgen/gen_rust.py397CODE
LOWbindgen/gen_rust.py705CODE
LOWbindgen/gen_rust.py788CODE
LOWbindgen/gen_ir.py58CODE
LOWbindgen/gen_ir.py129CODE
LOWbindgen/gen_nim.py284CODE
LOWbindgen/gen_nim.py437CODE
LOWbindgen/gen_nim.py579CODE
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_odin.py159def make_odin_module_directory(mod_name):CODE
LOWbindgen/gen_c3.py170def as_module_name_for_enum_type(enum_name, prefix):CODE
LOWbindgen/gen_c3.py180def as_parent_module_name_for_enum_type(enum_name, prefix):CODE
LOWbindgen/gen_c3.py366def gen_function_pointer_aliases():CODE
LOWbindgen/gen_jai.py154def make_jai_module_directory(mod_name):CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsokol_fetch.h754 Here's a simple example of sending 4 requests without upfront bufferCODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWutil/sokol_gl.h2922 sg_pipeline dummy_id = { SG_INVALID_ID };CODE
LOWutil/sokol_gl.h2923 return dummy_id;CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbindgen/gen_zig.py9CODE
LOWbindgen/gen_rust.py8CODE