Repository Analysis

ptitSeb/box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64, RV64 and LoongArch Linux devices

4.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ptitSeb/box64, a C project with 5,552 GitHub stars. SynthScan v2.0 examined 537,282 lines of code across 1377 source files, recording 2806 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.6 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.6
Adjusted Score
4.6
Raw Score
100%
Time Factor
2026-08-02
Last Push
5.6K
Stars
C
Language
537.3K
Lines of Code
1.4K
Files
2.8K
Pattern Hits
2026-08-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 2MEDIUM 0LOW 2804

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 2806 distinct pattern matches across 10 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 Block2756 hits · 2420 pts
SeverityFileLineSnippetContext
LOWrebuild_wrappers.py1001 // E = current x86emu structCOMMENT
LOWrebuild_wrappers.py1041 #ifndef __{filename}UNDEFS_H_COMMENT
LOWrebuild_wrappers_32.py1221 files_header = {COMMENT
LOWrebuild_wrappers_32.py1321 typedef struct x64emu_s x64emu_t;COMMENT
LOWrebuild_wrappers_32.py1341 // O = libc O_ flags bitfieldCOMMENT
LOWrebuild_wrappers_32.py1361 """,COMMENT
LOWrebuild_wrappers_32.py1481 #if any(c in 'PG' for c in args):COMMENT
LOWCMakeLists.txt221 add_definitions(-DSD8EG5)COMMENT
LOWtests32/test28.c21#define I8_MAX 0x7FCOMMENT
LOWtests32/test17.c1// build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 test17.c -o test17COMMENT
LOWtests32/test25.c1// build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -msse4.2 -m32 test25.c -o test25COMMENT
LOWtests32/benchfloat.c21**COMMENT
LOWtests/test28.c1// build with gcc -O0 -g -msha -msse4.2 test28.c -o test28COMMENT
LOWtests/test17.c1// build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 test17.c -o test17COMMENT
LOWtests/benchfloat.c21**COMMENT
LOWtests/test34.c21#define I8_MAX 0x7FCOMMENT
LOWtests/test30.c1// build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -mavx test30.c -o test30 -march=nativeCOMMENT
LOWtests/test27.c1// build with gcc -O0 -g -msse -msse2 -mssse3 -msse4.1 -msse4.2 test27.c -o test27COMMENT
LOWwine/wow64/wowbox64.c1/*COMMENT
LOWsystem/kde/box64_profile_propertiesplugin.cpp1#include <KPropertiesDialogPlugin>COMMENT
LOWwrapperhelper/example-libc.h1#define _GNU_SOURCE 1COMMENT
LOWwrapperhelper/example-libc.h21#include <fcntl.h>COMMENT
LOWwrapperhelper/example-libc.h41#include <math.h>COMMENT
LOWwrapperhelper/example-libc.h61#include <sched.h>COMMENT
LOWwrapperhelper/example-libc.h81#include <sys/mount.h>COMMENT
LOWwrapperhelper/example-libc.h101#include <sys/syscall.h>COMMENT
LOWwrapperhelper/example-libc.h121#include <ulimit.h>COMMENT
LOWwrapperhelper/include-override/common/stdc-predef.h1// Ignore all attributesCOMMENT
LOWwrapperhelper/include-override/common/stdint.h81# define __INT64_C(c) c ## LLCOMMENT
LOWwrapperhelper/include-override/common/stdint.h101# define UINT32_MAX (4294967295U)COMMENT
LOWwrapperhelper/include-override/common/stdint.h121COMMENT
LOWwrapperhelper/include-override/common/stdint.h161# define SIG_ATOMIC_MIN (-__SIG_ATOMIC_MAX__-1)COMMENT
LOWwrapperhelper/include-override/common/stdint.h181# define INT32_C(c) __INT32_C(c)COMMENT
LOWwrapperhelper/include-override/common/stdint.h201# define UINT32_WIDTH 32COMMENT
LOWwrapperhelper/include-override/common/stdint.h221# define UINT_FAST64_WIDTH 64COMMENT
LOWwrapperhelper/include-override/common/bits/types.h81 we used `long' when it's 64 bits where `long long' is expected, then theCOMMENT
LOWwrapperhelper/include-override/common/bits/floatn.h61# elseCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h1// C standardCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h21#define linux 1COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h41//#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h61#define __REGISTER_PREFIX__COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h81#define __ATOMIC_ACQ_REL 4COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h101#define __SIZEOF_LONG_DOUBLE__ 12COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h121//#define __INT_FAST8_TYPE__ signed charCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h141#define __INT_LEAST64_MAX__ 0x7fffffffffffffffLLCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h161#define __SCHAR_WIDTH__ 8COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h181#define __UINT64_MAX__ 0xffffffffffffffffULLCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h201//#define __UINTMAX_TYPE__ long long unsigned intCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h221//#define __BFLT16_MANT_DIG__ 8COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h241#define __DBL_MIN_10_EXP__ (-307)COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h261//#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DLCOMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h281//#define __FLT16_MIN_10_EXP__ (-4)COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h301//#define __FLT32X_DECIMAL_DIG__ 17COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h321//#define __FLT64_HAS_DENORM__ 1COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h341//#define __FLT64X_MANT_DIG__ 64COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h361//#define __FLT128_MIN_10_EXP__ (-4931)COMMENT
LOWwrapperhelper/include-override/x86/stdc-predef.h381#define __FLT_MIN_EXP__ (-125)COMMENT
LOW…erhelper/include-override/x86/bits/pthreadtypes-arch.h21#include <bits/wordsize.h>COMMENT
LOW…erhelper/include-override/x86/bits/pthreadtypes-arch.h41#define __SIZEOF_PTHREAD_MUTEXATTR_T 4COMMENT
LOWwrapperhelper/include-override/aarch64/stdc-predef.h1// C standardCOMMENT
2696 more matches not shown…
Deep Nesting17 hits · 17 pts
SeverityFileLineSnippetContext
LOWrebuild_wrappers.py354CODE
LOWrebuild_wrappers.py633CODE
LOWrebuild_wrappers.py804CODE
LOWrebuild_wrappers.py879CODE
LOWrebuild_wrappers.py381CODE
LOWrebuild_wrappers.py1453CODE
LOWrebuild_wrappers.py1497CODE
LOWrebuild_wrappers_32.py810CODE
LOWrebuild_wrappers_32.py1077CODE
LOWrebuild_wrappers_32.py1118CODE
LOWrebuild_wrappers_32.py348CODE
LOWrebuild_wrappers_32.py471CODE
LOWrebuild_wrappers_32.py500CODE
LOWrebuild_wrappers_32.py538CODE
LOWrebuild_wrappers_32.py831CODE
LOWdocs/gen/gen.py141CODE
LOWconfigurator/configurator.py208CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWwine/override_wine_builtin.py3CODE
LOWconfigurator/box64rc.py1CODE
LOWconfigurator/model.py1CODE
LOWconfigurator/configurator.py2CODE
LOWconfigurator/usage.py1CODE
LOWconfigurator/build_standalone.py2CODE
Hyper-Verbose Identifiers8 hits · 6 pts
SeverityFileLineSnippetContext
LOWconfigurator/model.py347 def _apply_matching_wildcards(self, states: Dict[str, ValueState], entry: EntryRecord) -> None:CODE
LOWconfigurator/configurator.py208def detect_supported_executable(path: Path) -> Optional[str]:STRING
LOWconfigurator/configurator.py662 def _on_entry_list_button_press(self, _listbox: Gtk.ListBox, event) -> bool:STRING
LOWconfigurator/configurator.py999 def _remove_selected_option_editor(self) -> None:STRING
LOWconfigurator/configurator.py1009 def _insert_option_editor_after(STRING
LOWconfigurator/configurator.py1073 def _on_editor_choice_changed(STRING
LOWconfigurator/usage.py94def load_default_usage_catalog() -> UsageCatalog:CODE
LOWconfigurator/usage.py110def load_usage_catalog_from_data(CODE
Excessive Try-Catch Wrapping9 hits · 6 pts
SeverityFileLineSnippetContext
LOWrebuild_wrappers_32.py993 except Exception as e:CODE
LOWconfigurator/configurator.py630 except Exception as error:STRING
LOWconfigurator/configurator.py646 except Exception as error:STRING
LOWconfigurator/configurator.py652 except Exception as error:STRING
LOWconfigurator/configurator.py1029 except Exception as error:STRING
LOWconfigurator/configurator.py1043 except Exception as error:STRING
LOWconfigurator/configurator.py1173 except Exception as error:STRING
LOWconfigurator/configurator.py1185 except Exception as error:STRING
LOWconfigurator/configurator.py1223 except Exception as error:STRING
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md8Code that is initially generated by AI and subsequently edited will still be considered AI-generated. AI assistance is pCODE
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWrebuild_wrappers.py768 # Check if there was any new functions compared to last runCOMMENT
LOWrebuild_wrappers_32.py1078 # Check if there was any new functions compared to last runCOMMENT
LOWrebuild_wrappers_32.py1635 # Check if there was any new functionsSTRING
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHconfigurator/configurator.py1266 self.status.push(self.status_context, text)STRING
Modern Structural Boilerplate4 hits · 2 pts
SeverityFileLineSnippetContext
LOWconfigurator/configurator.py172def set_style(widget: Gtk.Widget, css_class: str, active: bool) -> None:STRING
LOWconfigurator/configurator.py297def set_profile_from_menu(store: ConfigStore, executable: Path, profile: str) -> None:STRING
LOWconfigurator/configurator.py445 def set_selected(self, selected: bool) -> None:STRING
LOWconfigurator/configurator.py1261 def _update_actions(self) -> None:STRING
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/emu/x64syscall.c375 // TODO: implement fallback if __NR_statx is not definedCOMMENT