A dead simple 2D game engine for Go
This report presents the forensic synthetic code analysis of hajimehoshi/ebiten, a Go project with 13,428 GitHub stars. SynthScan v2.0 examined 189,414 lines of code across 863 source files, recording 993 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 5.2 places this repository in the Low AI signal 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).
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.
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.
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.
The scanner identified 993 distinct pattern matches across 4 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | geom_test.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | generate.go | 1 | // Copyright 2015 Hajime Hoshi | COMMENT |
| LOW | generate.go | 21 | // | COMMENT |
| LOW | window.go | 1 | // Copyright 2019 The Ebiten Authors | COMMENT |
| LOW | window.go | 41 | COMMENT | |
| LOW | window.go | 61 | func SetWindowDecorated(decorated bool) { | COMMENT |
| LOW | window.go | 121 | } | COMMENT |
| LOW | window.go | 141 | // If no images are specified, the window reverts to its default icon. | COMMENT |
| LOW | window.go | 161 | // | COMMENT |
| LOW | window.go | 201 | COMMENT | |
| LOW | window.go | 221 | // A negative value indicates the size is not limited. | COMMENT |
| LOW | window.go | 241 | func IsWindowFloating() bool { | COMMENT |
| LOW | window.go | 261 | func MaximizeWindow() { | COMMENT |
| LOW | window.go | 281 | // | COMMENT |
| LOW | window.go | 321 | // If the window closing is handled, the window is not closed immediately and | COMMENT |
| LOW | window.go | 341 | } | COMMENT |
| LOW | colorm.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | colorm.go | 21 | ) | COMMENT |
| LOW | colorm.go | 121 | // hueTheta is a radian value to rotate hue. | COMMENT |
| LOW | shader_test.go | 1 | // Copyright 2020 The Ebiten Authors | COMMENT |
| LOW | mousebuttons.go | 1 | // Copyright 2015 Hajime Hoshi | COMMENT |
| LOW | gameforui.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | monitor.go | 1 | // Copyright 2023 The Ebitengine Authors | COMMENT |
| LOW | shader.go | 1 | // Copyright 2020 The Ebiten Authors | COMMENT |
| LOW | ebiten_test.go | 1 | // Copyright 2024 The Ebitengine Authors | COMMENT |
| LOW | imagetobytes_test.go | 1 | // Copyright 2016 The Ebiten Authors | COMMENT |
| LOW | colormode.go | 1 | // Copyright 2026 The Ebitengine Authors | COMMENT |
| LOW | colormode.go | 41 | // | COMMENT |
| LOW | run.go | 1 | // Copyright 2014 Hajime Hoshi | COMMENT |
| LOW | run.go | 41 | // An actual TPS is available by ActualTPS(), and the result might slightly differ from your expected TPS, | COMMENT |
| LOW | run.go | 61 | // Draw draws the game screen by one frame. | COMMENT |
| LOW | run.go | 81 | // It is ensured that Layout is invoked before Update is called in the first frame. | COMMENT |
| LOW | run.go | 121 | // even if the Ebitengine major version is not updated. | COMMENT |
| LOW | run.go | 141 | // ActualFPS returns the current number of FPS (frames per second), that represents | COMMENT |
| LOW | run.go | 181 | // SetScreenFilterEnabled enables/disables the use of the "screen" filter Ebitengine uses. | COMMENT |
| LOW | run.go | 201 | func IsScreenFilterEnabled() bool { | COMMENT |
| LOW | run.go | 221 | // RunGame must be called on the main thread. | COMMENT |
| LOW | run.go | 241 | } | COMMENT |
| LOW | run.go | 261 | COMMENT | |
| LOW | run.go | 281 | COMMENT | |
| LOW | run.go | 301 | // This is useful for GUI applications, but some APIs like [AppendInputChars]'s behavior is changed: | COMMENT |
| LOW | run.go | 321 | // When the game runs as a virtualization guest, GraphicsLibrary is ignored, and the graphics | COMMENT |
| LOW | run.go | 341 | // If game does not implement FinalScreenDrawer, the default rendering for the final screen is used. | COMMENT |
| LOW | run.go | 401 | } | COMMENT |
| LOW | run.go | 421 | // | COMMENT |
| LOW | run.go | 441 | // CursorModeCaptured also works on browsers. | COMMENT |
| LOW | run.go | 461 | // | COMMENT |
| LOW | run.go | 481 | // SetFullscreen does nothing on macOS when the window is fullscreened natively by the macOS desktop | COMMENT |
| LOW | run.go | 501 | // | COMMENT |
| LOW | run.go | 521 | func SetRunnableOnUnfocused(runnableOnUnfocused bool) { | COMMENT |
| LOW | run.go | 561 | // Deprecated: as of v2.5. Use SetVsyncEnabled instead. | COMMENT |
| LOW | run.go | 581 | COMMENT | |
| LOW | run.go | 601 | func FPSMode() FPSModeType { | COMMENT |
| LOW | run.go | 661 | // | COMMENT |
| LOW | run.go | 701 | // SetScreenTransparent does nothing on mobiles. | COMMENT |
| LOW | run.go | 781 | // | COMMENT |
| LOW | run.go | 801 | // Tick is concurrent-safe. | COMMENT |
| LOW | blend.go | 1 | // Copyright 2022 The Ebitengine Authors | COMMENT |
| LOW | blend.go | 21 | ) | COMMENT |
| LOW | blend.go | 101 | // BlendFactorOne is a factor: | COMMENT |
| 930 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | exp/vmhost/guestsession.go | 1135 | // The guest releases a session before starting the next one, but be robust to a missing end: a new | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/atlas/image_test.go | 921 | // TODO: Add tests to extend image on an atlas out of the main loop | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/glfw/glx_context_linbsd.go | 329 | // NOTE: This function must not call any X11 functions, as it is called | COMMENT |