Small self-contained pure-Go web server with Lua, Teal, Markdown, Ollama, HTTP/2, QUIC, Redis, TypeScript, SQLite and PostgreSQL support ++
This report presents the forensic synthetic code analysis of xyproto/algernon, a JavaScript project with 3,020 GitHub stars. SynthScan v2.0 examined 50,878 lines of code across 343 source files, recording 53 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.0 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).
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 53 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | samples/react_db/js/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | samples/react_db/js/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| CRITICAL | samples/react_db/js/marked.umd.js | 52 | `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byt | CODE |
| CRITICAL | samples/bootstrap/flatly/jquery/jquery-1.10.2.min.js | 5 | }({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e. | CODE |
| CRITICAL | samples/react_simple/js/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | samples/react_simple/js/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| CRITICAL | samples/react_simple/js/marked.umd.js | 52 | `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byt | CODE |
| CRITICAL | samples/react_jsonfile/js/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | samples/react_jsonfile/js/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?def | CODE |
| CRITICAL | samples/react_jsonfile/js/marked.umd.js | 52 | `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):t.push(r);continue}if(e){let s="Infinite loop on byt | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 961 | ~~~c | COMMENT |
| LOW | gencert.sh | 1 | #!/bin/sh | COMMENT |
| LOW | api_test.go | 61 | // if err := New("permissionsql", permissionsql.Version, 2.0).Check(); err != nil { | COMMENT |
| LOW | system/fedora/build.sh | 1 | #!/bin/bash | COMMENT |
| LOW | engine/jsxcache.go | 61 | return api.LoaderJS | COMMENT |
| LOW | engine/pongo_test.go | 61 | for range n { | COMMENT |
| LOW | engine/pongo_test.go | 81 | // for i := 0; i < 10; i++ { | COMMENT |
| LOW | engine/basic.go | 281 | // TODO: Set up the HTTP/QUIC/HTTP/2 Server structs with a ConnContext | COMMENT |
| LOW | engine/help.go | 41 | list:clear() -> bool | COMMENT |
| LOW | engine/help.go | 61 | // Get all keys of the hash map | COMMENT |
| LOW | engine/help.go | 141 | JFile(filename) -> userdata | COMMENT |
| LOW | engine/help.go | 161 | // Create a JSON document node. | COMMENT |
| LOW | engine/help.go | 181 | // The second argument is an optional authentication token that is used for the | COMMENT |
| LOW | engine/help.go | 201 | // Create a new HTTP Client object | COMMENT |
| LOW | engine/help.go | 221 | GET(string, [table], [table]) -> string | COMMENT |
| LOW | engine/help.go | 281 | // Given two prompts, return how similar they are. The first opt. string is the metric for the distance: | COMMENT |
| LOW | engine/help.go | 301 | // Return the version string for the server | COMMENT |
| LOW | engine/help.go | 321 | // Query a SQLite database with a query and a filename. | COMMENT |
| LOW | engine/help.go | 421 | // Get the existing confirmation code for a given user, | COMMENT |
| LOW | engine/help.go | 461 | // Takes a string | COMMENT |
| LOW | engine/help.go | 481 | // Takes a confirmation code | COMMENT |
| LOW | engine/help.go | 501 | // Finish a WebAuthn login ceremony. Takes a username, reads the assertion | COMMENT |
| LOW | engine/help.go | 541 | print_nonl(...) | COMMENT |
| LOW | engine/help.go | 561 | // is given, then the path to where the script is running, joined with a path | COMMENT |
| LOW | engine/help.go | 601 | // For IPv6, use brackets: [::1]:3000 or [2001:db8::1]:443 | COMMENT |
| LOW | themes/assets/werc.css | 1 | #side-bar a,ul.sitemap-list a{text-transform:capitalize}body{color:#000;background-color:#fff;font-family:Helvetica,Verd | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | engine/rendering.go | 1116 | // TODO: Consider making a more robust (and slower) check that splits the data into words first | COMMENT |
| MEDIUM | engine/assets/react19/react-dom.production.min.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeo | CODE |
| MEDIUM | engine/assets/react19/react-dom.production.min.js | 1 | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("react")):"function"==typeo | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | samples/bootstrap/flatly/index.html | 401 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> | CODE |
| LOW⚡ | samples/bootstrap/flatly/index.html | 401 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> | CODE |
| LOW⚡ | samples/bootstrap/flatly/index.html | 409 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> | CODE |
| LOW⚡ | samples/bootstrap/flatly/index.html | 409 | <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | samples/bootstrap/flatly/theme/variables.less | 257 | //## Define the breakpoints at which your layout will change, adapting to different screen sizes. | COMMENT |
| MEDIUM | samples/bootstrap/flatly/theme/variables.less | 306 | //## Define the maximum width of `.container` for different screen sizes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | engine/assets/reactrefresh/react-refresh-runtime.js | 105 | function collectCustomHooksForSignature(type) { | CODE |
| LOW | engine/assets/react19/react.development.js | 195 | function defineKeyPropWarningGetter(props, displayName) { | CODE |
| LOW | engine/assets/react19/react.development.js | 210 | function elementRefGetterWithDeprecationWarning() { | CODE |
| LOW | engine/assets/react19/react.development.js | 581 | function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/py/main.py | 4 | CODE | |
| LOW | plugins/py/main.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | welcome.sh | 11 | # Check if $kernmax is present and not in the valid format | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/py/main.py | 128 | except Exception as e: | CODE |