A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
This report presents the forensic synthetic code analysis of gotify/server, a Go project with 15,264 GitHub stars. SynthScan v2.0 examined 28,132 lines of code across 231 source files, recording 102 pattern matches distributed across 1 syntactic category. The overall adjusted score of 3.6 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 102 distinct pattern matches across 1 syntactic category. 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 | ui/vite-env.d.ts | 1 | // Example: vite-env.d.ts | COMMENT |
| LOW | docs/package.go | 1 | // Package docs Gotify REST-API. | COMMENT |
| LOW | docs/package.go | 21 | // License: MIT https://github.com/gotify/server/blob/master/LICENSE | COMMENT |
| LOW | docs/package.go | 41 | // in: header | COMMENT |
| LOW | model/version.go | 1 | package model | COMMENT |
| LOW | model/error.go | 1 | package model | COMMENT |
| LOW | model/gotifyinfo.go | 1 | package model | COMMENT |
| LOW | model/user.go | 21 | // The User holds information about permission and other stuff. | COMMENT |
| LOW | model/user.go | 41 | // The date the user was created. | COMMENT |
| LOW | model/user.go | 61 | // | COMMENT |
| LOW | model/user.go | 81 | // example: unicorn | COMMENT |
| LOW | model/user.go | 101 | // required: true | COMMENT |
| LOW | model/user.go | 121 | // | COMMENT |
| LOW | model/oidc.go | 1 | package model | COMMENT |
| LOW | model/oidc.go | 21 | // required: true | COMMENT |
| LOW | model/oidc.go | 41 | State string `json:"state"` | COMMENT |
| LOW | model/oidc.go | 61 | // required: true | COMMENT |
| LOW | model/pluginconf.go | 21 | // | COMMENT |
| LOW | model/pluginconf.go | 41 | Name string `json:"name"` | COMMENT |
| LOW | model/pluginconf.go | 61 | // read only: true | COMMENT |
| LOW | model/message.go | 21 | // | COMMENT |
| LOW | model/message.go | 41 | // The title of the message. | COMMENT |
| LOW | model/message.go | 61 | // | COMMENT |
| LOW | model/message.go | 81 | // example: **Backup** was successfully finished. | COMMENT |
| LOW | model/security.go | 1 | package model | COMMENT |
| LOW | model/security.go | 21 | // The response to the regenerate token action. Only present if the regenerate token action was requested. | COMMENT |
| LOW | model/client.go | 1 | package model | COMMENT |
| LOW | model/client.go | 21 | Token string `gorm:"type:varchar(180);uniqueIndex:uix_clients_token" json:"token,omitempty"` | COMMENT |
| LOW | model/health.go | 1 | package model | COMMENT |
| LOW | model/application.go | 1 | package model | COMMENT |
| LOW | model/application.go | 21 | Token string `gorm:"type:varchar(180);uniqueIndex:uix_applications_token" json:"token,omitempty"` | COMMENT |
| LOW | model/application.go | 41 | // read only: true | COMMENT |
| LOW | model/paging.go | 1 | package model | COMMENT |
| LOW | model/paging.go | 21 | // The ID of the last message returned in the current request. Use this as alternative to the next link. | COMMENT |
| LOW | model/paging.go | 41 | // | COMMENT |
| LOW | api/user.go | 61 | type UserAPI struct { | COMMENT |
| LOW | api/user.go | 81 | // schema: | COMMENT |
| LOW | api/user.go | 101 | } | COMMENT |
| LOW | api/user.go | 141 | if client != nil { | COMMENT |
| LOW | api/user.go | 161 | // consumes: [application/json] | COMMENT |
| LOW | api/user.go | 241 | // GetUserByID returns the user by id | COMMENT |
| LOW | api/user.go | 261 | // description: Ok | COMMENT |
| LOW | api/user.go | 301 | // --- | COMMENT |
| LOW | api/user.go | 361 | // Requires elevated authentication. | COMMENT |
| LOW | api/user.go | 401 | // UpdateUserByID updates and user by id | COMMENT |
| LOW | api/user.go | 421 | // description: the updated user | COMMENT |
| LOW | api/oidc.go | 101 | // Redirects the user to the OIDC provider's authorization endpoint. | COMMENT |
| LOW | api/oidc.go | 141 | // the requested duration. | COMMENT |
| LOW | api/oidc.go | 181 | // Exchanges the authorization code for tokens, resolves the user, | COMMENT |
| LOW | api/oidc.go | 281 | // produces: [application/json] | COMMENT |
| LOW | api/oidc.go | 321 | // swagger:operation POST /auth/oidc/external/token oidc externalToken | COMMENT |
| LOW | api/message.go | 41 | COMMENT | |
| LOW | api/message.go | 61 | // minimum: 1 | COMMENT |
| LOW | api/message.go | 121 | func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) { | COMMENT |
| LOW | api/message.go | 141 | // type: integer | COMMENT |
| LOW | api/message.go | 161 | // schema: | COMMENT |
| LOW | api/message.go | 201 | // swagger:operation DELETE /message message deleteMessages | COMMENT |
| LOW | api/message.go | 221 | successOrAbort(ctx, 500, a.DB.DeleteMessagesByUser(userID)) | COMMENT |
| LOW | api/message.go | 241 | // description: Ok | COMMENT |
| LOW | api/message.go | 281 | // - name: id | COMMENT |
| 42 more matches not shown… | ||||