Repository Analysis

tinygo-org/tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.

3.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tinygo-org/tinygo, a Go project with 17,568 GitHub stars. SynthScan v2.0 examined 201,039 lines of code across 1606 source files, recording 620 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.1 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.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
17.6K
Stars
Go
Language
201.0K
Lines of Code
1.6K
Files
620
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 4LOW 616

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 620 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 Block590 hits · 571 pts
SeverityFileLineSnippetContext
LOWdiff.go21//COMMENT
LOWtestdata/corpus.yaml1# This contains code from https://github.com/dgryski/tinygo-test-corpusCOMMENT
LOWtestdata/corpus.yaml241 - pkg: stat/distmatCOMMENT
LOWtestdata/corpus.yaml261 #- pkg: spatial/vptree # panic: unimplemented: (reflect.Value).MapKeys()COMMENT
LOWtestdata/errors/compiler.go21// ERROR: compiler.go:4:6: can only use //go:wasmimport on declarationsCOMMENT
LOWtestdata/errors/interp.go21// ERROR: # mainCOMMENT
LOWtools/gen-device-svd/gen-device-svd.go941}COMMENT
LOWinterp/memory.go1package interpCOMMENT
LOWinterp/memory.go61// A memoryView is bound to a function activation. Loads are done from this viewCOMMENT
LOWinterp/memory.go601 // If a particular LLVM type is requested, cast to it.COMMENT
LOWinterp/interpreter.go81 // There may be PHI nodes that need to be resolved. Resolve all PHICOMMENT
LOWinterp/interpreter.go261 // which case this call won't even get to this point but willCOMMENT
LOWinterp/interpreter.go281 err := r.runAtRuntime(fn, inst, locals, &mem, indent)COMMENT
LOWinterp/interp.go81COMMENT
LOWtests/text/template/smoke/smoke_test.go41 t := template.Must(template.New("letter").Parse(letter))COMMENT
LOWtests/text/template/smoke/smoke_test.go61 //COMMENT
LOWtests/text/template/smoke/smoke_test.go101 // Output:COMMENT
LOWdocs/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/conf.py21# sys.path.insert(0, os.path.abspath('.'))COMMENT
LOWdocs/conf.py61# The full version, including alpha/beta/rc tags.COMMENT
LOWdocs/conf.py81# directories to ignore when looking for source files.COMMENT
LOWdocs/conf.py101#COMMENT
LOWdocs/conf.py121#COMMENT
LOWdocs/conf.py141COMMENT
LOWdocs/conf.py161COMMENT
LOWdocs/conf.py181# html_sidebars = {}COMMENT
LOWdocs/conf.py201#COMMENT
LOWdocs/conf.py221# Language to be used for generating the HTML full-text search index.COMMENT
LOWdocs/conf.py241COMMENT
LOWdocs/conf.py261COMMENT
LOWdocs/conf.py281#COMMENT
LOWdocs/conf.py321# dir menu entry, description, category)COMMENT
LOWdocs/conf.py341#COMMENT
LOWcgo/libclang_config_llvm16.go1//go:build !byollvm && llvm16COMMENT
LOWcgo/libclang_config_llvm17.go1//go:build !byollvm && llvm17COMMENT
LOWcgo/libclang_config_llvm18.go1//go:build !byollvm && llvm18COMMENT
LOWcgo/security.go1// Copyright 2018 The Go Authors. All rights reserved.COMMENT
LOWcgo/libclang_config_llvm19.go1//go:build !byollvm && llvm19COMMENT
LOWcgo/libclang.go21)COMMENT
LOWcgo/libclang.go661 // Source:COMMENT
LOWcgo/cgo.go621 Type: unionFieldType,COMMENT
LOWcgo/cgo.go1361 return nodeCOMMENT
LOWcgo/libclang_config_llvm20.go1//go:build !byollvm && !llvm15 && !llvm16 && !llvm17 && !llvm18 && !llvm19COMMENT
LOWcgo/libclang_config_llvm15.go1//go:build !byollvm && llvm15COMMENT
LOWcgo/testdata/flags.go1package mainCOMMENT
LOWcgo/testdata/errors.out.go1// CGo errors:COMMENT
LOWcgo/testdata/errors.go21#define SOME_CONST_b 3 ) // const with lots of weird whitespace (to test error locations)COMMENT
LOWloader/goroot.go301// always creates a symlink. On Windows, it tries to create a symlink and ifCOMMENT
LOWloader/loader.go221 // unmodified package) have a suffix added to the import path, forCOMMENT
LOWloader/loader.go301// before the packages they depend upon.COMMENT
LOWbuilder/library.go41 librarySources func(target string, libcNeedsMalloc bool) ([]string, error)COMMENT
LOWbuilder/buildid.go81 // Normally we would have found a build ID by now. But not on Nix,COMMENT
LOWbuilder/cc.go21 "tinygo.org/x/go-llvm"COMMENT
LOWbuilder/cc.go41// return outfileCOMMENT
LOWbuilder/cc.go241}COMMENT
LOWbuilder/sizes_test.go21}COMMENT
LOWbuilder/build.go41type BuildResult struct {COMMENT
LOWbuilder/build.go61 // ImportPath is the import path of the main package. This is useful forCOMMENT
LOWbuilder/build.go1461 // If the stack isn't a multiple of 8, it means the leafCOMMENT
LOWbuilder/cc1as.h1// Source: https://github.com/llvm/llvm-project/blob/main/clang/tools/driver/cc1as_main.cppCOMMENT
530 more matches not shown…
TODO Padding14 hits · 21 pts
SeverityFileLineSnippetContext
LOWsrc/reflect/type.go397 // TODO: implement canRangeFuncCOMMENT
LOWsrc/reflect/type.go411 // TODO: implement canRangeFunc2COMMENT
LOWsrc/internal/cm/stream.go15// TODO: implement methods on type streamCOMMENT
LOWsrc/internal/cm/future.go15// TODO: implement methods on type futureCOMMENT
LOWsrc/testing/testing_test.go3// TODO: implement readdir for windows, then enable this fileCOMMENT
LOWsrc/machine/machine_mimxrt1062_i2c.go165 // TODO: implementCOMMENT
LOWsrc/machine/machine_stm32f103.go334// TODO: implement SPI2 and SPI3.COMMENT
LOWsrc/machine/machine_stm32f103.go381// TODO: implement I2C2.COMMENT
LOWsrc/machine/machine_stm32u031.go178 // TODO: implement output channelsCOMMENT
LOWsrc/machine/board_stm32f469disco.go60// TODO: implement SPI2 and SPI3.COMMENT
LOWsrc/machine/board_stm32f4disco.go87// TODO: implement SPI2 and SPI3.COMMENT
LOWsrc/machine/machine_stm32_i2c_reva.go162 // TODO: implementCOMMENT
LOWsrc/device/arm/semihosting.go62// TODO: implement it here using inline assembly.COMMENT
LOWsrc/os/removeall_test.go3// TODO: implement ReadDir on windowsCOMMENT
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/machine/machine_nrf52840.go83 // Step 1: wait for new sampling to start for target bufferCOMMENT
LOWsrc/machine/machine_nrf52840.go88 // Step 2: swap out buffers for next recording so we don't continue toCOMMENT
LOWsrc/machine/machine_nrf52840.go94 // Step 3: wait for original event to endCOMMENT
LOWsrc/machine/machine_nrf52840.go98 // Step 4: wait for default buffer to start recording before proceedingCOMMENT
Structural Annotation Overuse4 hits · 9 pts
SeverityFileLineSnippetContext
LOWsrc/machine/machine_nrf52840.go83 // Step 1: wait for new sampling to start for target bufferCOMMENT
LOWsrc/machine/machine_nrf52840.go88 // Step 2: swap out buffers for next recording so we don't continue toCOMMENT
LOWsrc/machine/machine_nrf52840.go94 // Step 3: wait for original event to endCOMMENT
LOWsrc/machine/machine_nrf52840.go98 // Step 4: wait for default buffer to start recording before proceedingCOMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMsrc/machine/machine_esp32c6_adc.go79// ── regI2C: internal I2C-bus (LP_I2C_ANA_MST) for SAR ADC calibration ───────COMMENT
MEDIUMsrc/machine/machine_esp32c6_adc.go306// ── Self-calibration ──────────────────────────────────────────────────────────COMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/tgtestjson.sh6# TODO: let's just add -json support to tinygo test.COMMENT
MEDIUMsrc/runtime/complex.go24 // Algorithm for robust complex division as described inCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcompiler/llvm.go22// This is useful for creating temporary allocas for intrinsics. Don't forget toCOMMENT
LOWcompiler/llvmutil/llvm.go38// This is useful for creating temporary allocas for intrinsics. Don't forget toCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py123CODE