Repository Analysis

AssemblyScript/assemblyscript

A TypeScript-like language for WebAssembly.

2.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of AssemblyScript/assemblyscript, a WebAssembly project with 17,948 GitHub stars. SynthScan v2.0 examined 125,664 lines of code across 881 source files, recording 122 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 2.3 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.3
Adjusted Score
2.3
Raw Score
100%
Time Factor
2026-07-02
Last Push
17.9K
Stars
WebAssembly
Language
125.7K
Lines of Code
881
Files
122
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 51LOW 71

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 122 distinct pattern matches across 6 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.

Decorative Section Separators50 hits · 218 pts
SeverityFileLineSnippetContext
MEDIUMstd/assembly/iterator.ts14 // ╒═══════════════════ Iterator layout (32-bit) ══════════════════╕COMMENT
MEDIUMstd/assembly/iterator.ts19 // ├─────────────────────────────────────────────────────────┬───┬─┤COMMENT
MEDIUMstd/assembly/iterator.ts21 // └─────────────────────────────────────────────────────────┴───┴─┘COMMENT
MEDIUMstd/assembly/shared/typeinfo.ts3// ╒═══════════════════ Typeinfo interpretation ═══════════════════╕COMMENT
MEDIUMstd/assembly/shared/typeinfo.ts8// ╞═══════════════════════════════════════════════════════════════╡ ┐COMMENT
MEDIUMstd/assembly/shared/typeinfo.ts10// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/itcms.ts9// ╒═════════════╤══════════════ Colors ═══════════════════════════╕COMMENT
MEDIUMstd/assembly/rt/itcms.ts11// ├─────────────┼─────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/itcms.ts16// └─────────────┴─────────────────────────────────────────────────┘COMMENT
MEDIUMstd/assembly/rt/itcms.ts64// ╒═══════════════ Managed object layout (32-bit) ════════════════╕COMMENT
MEDIUMstd/assembly/rt/itcms.ts69// ╞═══════════════════════════════════════════════════════════╤═══╡COMMENT
MEDIUMstd/assembly/rt/itcms.ts71// ├───────────────────────────────────────────────────────────┴───┤COMMENT
MEDIUMstd/assembly/rt/itcms.ts73// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/itcms.ts75// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/itcms.ts77// ╞>ptr═══════════════════════════════════════════════════════════╡COMMENT
MEDIUMstd/assembly/rt/common.ts23// ╒════════════ Memory manager block layout (32-bit) ═════════════╕COMMENT
MEDIUMstd/assembly/rt/common.ts28// ╞>ptr═══════════════════════════════════════════════════════════╡COMMENT
MEDIUMstd/assembly/rt/common.ts45// ╒══════════ Garbage collector object layout (32-bit) ═══════════╕COMMENT
MEDIUMstd/assembly/rt/common.ts50// ╞═══════════════════════════════════════════════════════════════╡COMMENT
MEDIUMstd/assembly/rt/common.ts52// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/common.ts54// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/common.ts56// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/common.ts58// ╞>ptr═══════════════════════════════════════════════════════════╡COMMENT
MEDIUMstd/assembly/rt/tlsf.ts55// ╒════════════════════ Block layout (32-bit) ════════════════════╕COMMENT
MEDIUMstd/assembly/rt/tlsf.ts60// ╞>ptr═══════════════════════════════════════════════════════╧═╧═╡ │ ┘COMMENT
MEDIUMstd/assembly/rt/tlsf.ts62// ├───────────────────────────────────────────────────────────────┤ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts64// ├───────────────────────────────────────────────────────────────┤ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts66// ├───────────────────────────────────────────────────────────────┤ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts68// └───────────────────────────────────────────────────────────────┘ >= MIN SIZECOMMENT
MEDIUMstd/assembly/rt/tlsf.ts100// ╒═════════════════════ Root layout (32-bit) ════════════════════╕COMMENT
MEDIUMstd/assembly/rt/tlsf.ts105// ╞═══════════════════════════════════════════════════════════════╡ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts107// ├───────────────────────────────────────────────────────────────┤ │ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts109// ├───────────────────────────────────────────────────────────────┤ u32 │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts111// ╞═══════════════════════════════════════════════════════════════╡ usizeCOMMENT
MEDIUMstd/assembly/rt/tlsf.ts113// ├───────────────────────────────────────────────────────────────┤ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts115// ├───────────────────────────────────────────────────────────────┤ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts117// ╞═══════════════════════════════════════════════════════════════╡ │COMMENT
MEDIUMstd/assembly/rt/tlsf.ts119// └───────────────────────────────────────────────────────────────┘ SIZE ┘COMMENT
MEDIUMstd/assembly/rt/tlsf.ts11// ╒══════════════ Block size interpretation (32-bit) ═════════════╕COMMENT
MEDIUMstd/assembly/rt/tlsf.ts16// └───────────────────────────────────────────────┴───────╨───────┘COMMENT
MEDIUMstd/assembly/rt/tcms.ts7// ╒═════════════╤══════════════ Colors ═══════════════════════════╕COMMENT
MEDIUMstd/assembly/rt/tcms.ts9// ├─────────────┼─────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/tcms.ts13// └─────────────┴─────────────────────────────────────────────────┘COMMENT
MEDIUMstd/assembly/rt/tcms.ts44// ╒═══════════════ Managed object layout (32-bit) ════════════════╕COMMENT
MEDIUMstd/assembly/rt/tcms.ts49// ╞═══════════════════════════════════════════════════════════╤═══╡COMMENT
MEDIUMstd/assembly/rt/tcms.ts51// ├───────────────────────────────────────────────────────────┴───┤COMMENT
MEDIUMstd/assembly/rt/tcms.ts53// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/tcms.ts55// ├───────────────────────────────────────────────────────────────┤COMMENT
MEDIUMstd/assembly/rt/tcms.ts57// ╞>ptr═══════════════════════════════════════════════════════════╡COMMENT
MEDIUMsrc/compiler.ts2613 // (?block $continue │ │ if loops: (incrementor) ─────┘COMMENT
Over-Commented Block41 hits · 40 pts
SeverityFileLineSnippetContext
LOWutil/browser/path.js1import * as process from "./process.js";COMMENT
LOWutil/browser/process.js21// Redistribution and use in source and binary forms, with or withoutCOMMENT
LOWtests/parser/class.ts.fixture.ts21}COMMENT
LOWtests/parser/literals.ts.fixture.ts121// ERROR 6188: "Numeric separators are not allowed here." in literals.ts(103,2+0)COMMENT
LOWtests/parser/union.ts.fixture.ts1export let a = 1;COMMENT
LOW…sts/parser/definite-assignment-assertion.ts.fixture.ts21// ERROR 1263: "Declarations with initializers cannot also have definite assignment assertions." in definite-assignment-COMMENT
LOWtests/parser/interface-errors.ts.fixture.ts21// ERROR 1176: "Interface declaration cannot have 'implements' clause." in interface-errors.ts(8,15+10)COMMENT
LOWtests/parser/numeric-separators.ts.fixture.ts41// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts(21,6+0)COMMENT
LOWtests/parser/tuple-errors.ts.fixture.ts1// ERROR 2456: "Type alias 'Loop' circularly references itself." in tuple-errors.ts(1,13+4)COMMENT
LOWtests/compiler/call-inferred.ts41COMMENT
LOWtests/compiler/features/relaxed-simd.ts81// r = i32x4.relaxed_dot_i8x16_i7x16_add_s(v, v, v);COMMENT
LOWtests/compiler/std/string.ts801// Expected: 2.98023223876953125e-8COMMENT
LOWtests/compiler/std/math.ts361// assert(test_acosh(1.00183940730320464, 0.0606439391272710696, -0.27641335129737854, INEXACT));COMMENT
LOWtests/compiler/std/math.ts501// assert(test_asinh(0.24297705017513252, 0.240647613714979003, 0.464605927467346191, INEXACT));COMMENT
LOWstd/assembly/iterator.ts1export abstract class Iterable<T> {COMMENT
LOWstd/assembly/rt.ts61// // @ts-ignore: decoratorCOMMENT
LOWstd/assembly/rt.ts81// // @ts-ignore: decoratorCOMMENT
LOWstd/assembly/object.ts21 }COMMENT
LOWstd/assembly/util/math.ts661 } else {COMMENT
LOWstd/assembly/util/math.ts701 let scale = reinterpret<f64>(sbits);COMMENT
LOWstd/assembly/util/math.ts1821 // #elif EXP_USE_TOINT_NARROWCOMMENT
LOWstd/assembly/rt/itcms.ts1import { BLOCK, BLOCK_OVERHEAD, OBJECT_OVERHEAD, OBJECT_MAXSIZE, TOTAL_OVERHEAD, DEBUG, TRACE, RTRACE, PROFILE } from ".COMMENT
LOWstd/assembly/rt/itcms.ts61// @ts-ignore: decoratorCOMMENT
LOWstd/assembly/rt/common.ts41@inline export const BLOCK_MAXSIZE: usize = (1 << 30) - BLOCK_OVERHEAD;COMMENT
LOWstd/assembly/rt/tlsf.ts1import { AL_BITS, AL_SIZE, AL_MASK, DEBUG, BLOCK, BLOCK_OVERHEAD, BLOCK_MAXSIZE } from "./common";COMMENT
LOWstd/assembly/rt/tlsf.ts21// @ts-ignore: decoratorCOMMENT
LOWstd/assembly/rt/tlsf.ts41// [09]: < 128K [21]: < 512MCOMMENT
LOWstd/assembly/rt/tlsf.ts61// │ if free: ◄ prev │ ◄─┤ usizeCOMMENT
LOWstd/assembly/rt/tlsf.ts101// 3 2 1COMMENT
LOWstd/assembly/rt/tcms.ts1import { BLOCK, BLOCK_OVERHEAD, OBJECT_OVERHEAD, OBJECT_MAXSIZE, TOTAL_OVERHEAD, DEBUG, TRACE, RTRACE } from "./common";COMMENT
LOWstd/assembly/rt/tcms.ts41// @ts-ignore: decoratorCOMMENT
LOWlib/loader/tests/index.js241 // assert.strictEqual(fn(2), 4);COMMENT
LOWsrc/module.ts81 export const Noneref = binaryen._BinaryenTypeNullref();COMMENT
LOWsrc/module.ts1401 }COMMENT
LOWsrc/program.ts21// │ ├─TypedElement Base class of elements resolving to a typeCOMMENT
LOWsrc/program.ts2881 // case BuiltinSymbols.Uint16Array: return Type.u16;COMMENT
LOWsrc/compiler.ts2481 let outerFlow = this.currentFlow;COMMENT
LOWsrc/compiler.ts2601 /** Statement to compile. */COMMENT
LOWsrc/compiler.ts3281COMMENT
LOWsrc/bindings/js.ts61//COMMENT
LOWsrc/bindings/js.ts81// - Interface Types `string` will be incompatible with JavaScript `String` andCOMMENT
Hyper-Verbose Identifiers27 hits · 28 pts
SeverityFileLineSnippetContext
LOWtests/parser/parameter-order.ts8function optionalCannotPrecedeRequired(a?: i32, b: i32): void {}CODE
LOWtests/parser/parameter-order.ts11function optionalWithInitializerCannotPrecedeRequired(a: i32 = 1, b: i32): void {}CODE
LOWtests/parser/parameter-order.ts.fixture.ts4function optionalCannotPrecedeRequired(a?: i32, b: i32): void {}CODE
LOWtests/parser/parameter-order.ts.fixture.ts5function optionalWithInitializerCannotPrecedeRequired(a: i32 = 1, b: i32): void {}CODE
LOWtests/compiler/possibly-null.ts55export function testNotNeNullContinuation(a: Ref | null): void {CODE
LOWtests/compiler/do.ts63function testAlwaysTrueNeverBreaks(): i32 {CODE
LOWtests/compiler/while.ts65function testAlwaysTrueNeverBreaks(): i32 {CODE
LOWtests/compiler/while.ts179function testIfImplicitContinueThen(): void {CODE
LOWtests/compiler/while.ts195function testIfImplicitContinueElse(): void {CODE
LOWtests/compiler/switch.ts77function doSwitchFallThroughDefault(n: i32): i32 {CODE
LOWtests/compiler/switch.ts285function doSwitchClassInstanceWithOverload(foo: BarClass | null): i32 {CODE
LOWtests/compiler/managed-cast.ts46function testDowncastFromToNullable(animal: Animal | null): void {CODE
LOWtests/compiler/std/array.ts971function createReverseOrderedArray(size: i32): Array<i32> {CODE
LOWtests/compiler/std/array.ts989function createReverseOrderedNestedArray(size: i32): Array<Array<i32>> {CODE
LOWtests/compiler/std/array.ts1008function createReverseOrderedElementsArray(size: i32): Array<Proxy<i32>> {CODE
LOWtests/compiler/std/array.ts1065function assertStableSortedForComplexObjects(): void {CODE
LOWtests/compiler/std/array-access.ts5export function stringArrayPropertyAccess(a: string[]): i32 {CODE
LOWtests/compiler/std/array-access.ts13export function stringArrayArrayPropertyAccess(a: string[][]): i32 {CODE
LOWtests/compiler/std/array-access.ts17export function stringArrayArrayMethodCall(a: string[][]): i32 {CODE
LOWlib/loader/index.js291 function attachTypedArrayFunctions(ctor, name, align) {CODE
LOWlib/loader/umd/index.js348 function attachTypedArrayFunctions(ctor, name, align) {CODE
LOWsrc/tokenizer.ts380export function isIllegalVariableIdentifier(name: string): bool {CODE
LOWsrc/index-wasm.ts285export function getDiagnosticRelatedRange(diagnostic: DiagnosticMessage): Range | null {CODE
LOWsrc/diagnostics.ts87export function diagnosticCategoryToString(category: DiagnosticCategory): string {CODE
LOWsrc/diagnostics.ts101export function diagnosticCategoryToColor(category: DiagnosticCategory): string {CODE
LOWsrc/bindings/js.ts1525export function liftRequiresExportRuntime(type: Type): bool {CODE
LOWsrc/bindings/js.ts1556export function lowerRequiresExportRuntime(type: Type): bool {CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWstd/assembly/string.ts188 // TODO: implement full locale comparison with locales and Collator optionsCOMMENT
LOWsrc/module.ts3811 // TODO: implement and use String.fromCodePointsCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/compiler.ts983 // utilize varargs stub to fill in omitted argumentsCOMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbin/asinit.js170 "Don't forget to install dependencies before you start:",CODE