A dead simple 2D game engine for Go
This report presents the forensic synthetic code analysis of hajimehoshi/ebiten, a Go project with 13,333 GitHub stars. SynthScan v2.0 examined 173,653 lines of code across 803 source files, recording 911 pattern matches distributed across 3 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 911 distinct pattern matches across 3 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 | // SetWindowSize does nothing on other environments. | COMMENT |
| LOW | window.go | 241 | // | COMMENT |
| LOW | window.go | 261 | // | COMMENT |
| LOW | window.go | 301 | } | COMMENT |
| LOW | window.go | 321 | // SetWindowClosingHandled works only on desktops. | COMMENT |
| LOW | window.go | 341 | // in order to make the mouse cursor passthrough the window. | COMMENT |
| LOW | window.go | 361 | // | 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 | func SetCursorMode(mode CursorModeType) { | COMMENT |
| LOW | run.go | 461 | // | COMMENT |
| LOW | run.go | 481 | // IsFocused is concurrent-safe. | COMMENT |
| LOW | run.go | 501 | // | COMMENT |
| LOW | run.go | 561 | // Be careful that FPSModeVsyncOffMaximum might consume a lot of battery power. | COMMENT |
| LOW | run.go | 581 | ) | COMMENT |
| LOW | run.go | 601 | COMMENT | |
| LOW | run.go | 621 | // Deprecated: as of v2.4. Use TPS instead. | COMMENT |
| LOW | run.go | 641 | return ActualTPS() | COMMENT |
| LOW | run.go | 681 | return screenTransparent.Load() | COMMENT |
| LOW | run.go | 761 | COMMENT | |
| LOW | run.go | 781 | 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 |
| 849 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/atlas/image_test.go | 916 | // 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 | 330 | // NOTE: This function must not call any X11 functions, as it is called | COMMENT |