Repository Analysis

copy/v86

x86 PC emulator and x86-to-wasm JIT, running in the browser

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of copy/v86, a JavaScript project with 23,237 GitHub stars. SynthScan v2.0 examined 139,548 lines of code across 341 source files, recording 229 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 2.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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-05
Last Push
23.2K
Stars
JavaScript
Language
139.5K
Lines of Code
341
Files
229
Pattern Hits
2026-07-14
Scan Date
0.04
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 9HIGH 6MEDIUM 1LOW 213

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 229 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 Block206 hits · 192 pts
SeverityFileLineSnippetContext
LOWtests/qemu/compiler.h21#elseCOMMENT
LOWtests/qemu/compiler.h41#endifCOMMENT
LOWtests/qemu/compiler.h61#ifndef container_ofCOMMENT
LOWtests/qemu/compiler.h81 struct { \COMMENT
LOWtests/qemu/compiler.h101# elseCOMMENT
LOWtests/qemu/config-host.h1/* Automatically generated by create_config - do not modify */COMMENT
LOWtests/qemu/config-host.h21 NULLCOMMENT
LOWtests/qemu/config-host.h41#define CONFIG_EPOLL_CREATE1 1COMMENT
LOWtests/qemu/config-host.h61#define CONFIG_LINUX_MAGIC_H 1COMMENT
LOWtests/qemu/test-i386.c21#include <assert.h>COMMENT
LOWtests/qemu/test-i386.c41//#ifdef __SSE__COMMENT
LOWtests/qemu/test-i386.c61COMMENT
LOWtests/qemu/test-i386.c101#define OP xorCOMMENT
LOWtests/qemu/test-i386.c121#define OP incCOMMENT
LOWtests/qemu/test-i386.c141#undef CC_MASKCOMMENT
LOWtests/qemu/test-i386.c161#include "test-i386-shift.h"COMMENT
LOWtests/qemu/test-i386.c181#define OP btCOMMENT
LOWtests/qemu/test-i386.c1901 printf("VM86 end\n");COMMENT
LOWtests/kvm-unit-tests/x86/hyperv_connections.c1#include "libcflat.h"COMMENT
LOWtests/kvm-unit-tests/x86/hyperv_synic.c1#include "libcflat.h"COMMENT
LOWtests/kvm-unit-tests/x86/pmu.c1COMMENT
LOWtests/kvm-unit-tests/x86/pmu.c21#define EVNTSEL_PC_SHIFT 19COMMENT
LOWtests/kvm-unit-tests/x86/types.h1#ifndef __TYPES_HCOMMENT
LOWtests/kvm-unit-tests/x86/access.c21COMMENT
LOWtests/kvm-unit-tests/x86/access.c81#define AC_PTE_ACCESSED_MASK (1 << AC_PTE_ACCESSED_BIT)COMMENT
LOWtests/kvm-unit-tests/x86/ioram.h1#ifndef __IO_RAM_HCOMMENT
LOWtests/kvm-unit-tests/x86/svm.h101#define V_INTR_PRIO_MASK (0x0f << V_INTR_PRIO_SHIFT)COMMENT
LOWtests/kvm-unit-tests/x86/svm.h181};COMMENT
LOWtests/kvm-unit-tests/x86/svm.h201#define SVM_SELECTOR_L_MASK (1 << SVM_SELECTOR_L_SHIFT)COMMENT
LOWtests/kvm-unit-tests/x86/svm.h221#define INTERCEPT_DR7_MASK (1 << 7)COMMENT
LOWtests/kvm-unit-tests/x86/svm.h241#define SVM_EXITINTINFO_TYPE_EXEPT SVM_EVTINJ_TYPE_EXEPTCOMMENT
LOWtests/kvm-unit-tests/x86/svm.h261#define SVM_EXIT_READ_DR2 0x022COMMENT
LOWtests/kvm-unit-tests/x86/svm.h281#define SVM_EXIT_CR0_SEL_WRITE 0x065COMMENT
LOWtests/kvm-unit-tests/x86/svm.h301#define SVM_EXIT_INVLPG 0x079COMMENT
LOWtests/kvm-unit-tests/x86/vmexit.c1#include "libcflat.h"COMMENT
LOWtests/kvm-unit-tests/x86/hyperv.h1#ifndef __HYPERV_HCOMMENT
LOWtests/kvm-unit-tests/x86/hyperv.h21#define HV_X64_MSR_SVERSION 0x40000081COMMENT
LOWtests/kvm-unit-tests/x86/hyperv.h41COMMENT
LOWtests/kvm-unit-tests/x86/hyperv_stimer.c1#include "libcflat.h"COMMENT
LOWtests/kvm-unit-tests/x86/vmx.h481 "xchg %%r11, regs+0x58\n\t" \COMMENT
LOWtests/kvm-unit-tests/x86/vmx.h501COMMENT
LOWtests/kvm-unit-tests/x86/vmx.h521#define EPT_MEM_TYPE_WP 5ulCOMMENT
LOWtests/kvm-unit-tests/x86/vmx.h541#define EPT_CAP_INVEPT (1ull << 20)COMMENT
LOWtests/kvm-unit-tests/x86/vmx.h561#define EPT_VLT_RD 1COMMENT
LOWtests/kvm-unit-tests/x86/vmx_tests.c1/*COMMENT
LOWtests/kvm-unit-tests/x86/eventinj.c1#include "libcflat.h"COMMENT
LOWtests/kvm-unit-tests/lib/libcflat.h21#define __LIBCFLAT_HCOMMENT
LOWtests/kvm-unit-tests/lib/libcflat.h61# define __PRI32_PREFIXCOMMENT
LOWtests/kvm-unit-tests/lib/pci-edu.h21#define PCI_VENDOR_ID_QEMU 0x1234COMMENT
LOWtests/kvm-unit-tests/lib/virtio-mmio.h1#ifndef _VIRTIO_MMIO_H_COMMENT
LOWtests/kvm-unit-tests/lib/virtio-mmio.h21#define VIRTIO_MMIO_GUEST_FEATURES_SEL 0x024COMMENT
LOWtests/kvm-unit-tests/lib/kbuild.h1#ifndef _KBUILD_H_COMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/page.h21COMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/barrier.h1#ifndef _ASM_BARRIER_H_COMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/barrier.h21#ifndef smp_mbCOMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/io.h101#endifCOMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/pci.h1#ifndef _ASM_GENERIC_PCI_H_COMMENT
LOWtests/kvm-unit-tests/lib/asm-generic/atomic.h1#ifndef __ASM_GENERIC_ATOMIC_H__COMMENT
LOWtests/kvm-unit-tests/lib/libfdt/fdt.h101 size, content */COMMENT
LOWtests/kvm-unit-tests/lib/libfdt/libfdt.h161/**********************************************************************/COMMENT
146 more matches not shown…
Hallucination Indicators9 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALtests/devices/virtio_balloon.js57 emulator.v86.cpu.devices.virtio_balloon.GetStats(s => { console.log(s); });CODE
CRITICALtests/devices/virtio_balloon.js58 emulator.v86.cpu.devices.virtio_balloon.Cleanup(async (zeroed) => {CODE
CRITICALtests/devices/virtio_balloon.js99 emulator.v86.cpu.devices.virtio_balloon.Inflate(30000);CODE
CRITICALsrc/browser/main.js3059 if(emulator.v86.cpu.devices.cdrom.has_disk())CODE
CRITICALsrc/browser/main.js3067 if(emulator.v86.cpu.devices.cdrom.has_disk())CODE
CRITICALsrc/browser/starter.js307 this.screen_adapter = new ScreenAdapter(screen_options, () => this.v86.cpu.devices.vga && this.v86.cpu.devices.vCODE
CRITICALsrc/browser/starter.js1031 this.v86.cpu.devices.cdrom.set_cdrom(new SyncBuffer(result));CODE
CRITICALsrc/browser/starter.js1040 this.v86.cpu.devices.cdrom.set_cdrom(image);CODE
CRITICALsrc/browser/starter.js1051 this.v86.cpu.devices.cdrom.eject();CODE
Cross-Language Confusion (JS/TS)5 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtests/benchmark/arch-python.js38print("fib(", n, ")= ", fib(n))CODE
HIGHtests/api/2g-mem.js38 print(m, " ", collectgarbage("count"))CODE
HIGHtests/api/2g-mem.js41print("memory usage (kB) ", collectgarbage("count"))CODE
HIGHtests/api/2g-mem.js42print("page count ", m)CODE
HIGHtests/api/2g-mem.js47print("ok")CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/buffer.js704 // - loads slices of the file asynchronously as requestedCOMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/fs2json.py108CODE
LOWtools/fs2json.py217CODE
LOWtools/copy-to-sha256.py83CODE
LOWtools/copy-to-sha256.py115CODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtools/copy-to-sha256.py39 print("Error: zstandard module required when using --zstd flag")CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/copy-to-sha256.py11CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/docker/alpine/build-state.js9console.log("Don't forget to run `make all` before running this script");CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/browser/serial.js331export function VirtioConsoleAdapterXtermJS(element, bus, xterm_lib)CODE