Terminal UI library with rich, interactive widgets — written in Golang
This report presents the forensic synthetic code analysis of rivo/tview, a Go project with 14,025 GitHub stars. SynthScan v2.0 examined 19,019 lines of code across 90 source files, recording 77 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 4.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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 77 distinct pattern matches across 2 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 | list.go | 21 | // clicking on them with the mouse. The following key binds are available: | COMMENT |
| LOW | list.go | 161 | l.itemOffset = items | COMMENT |
| LOW | list.go | 321 | // SetWrapAround sets the flag that determines whether navigating the list will | COMMENT |
| LOW | list.go | 361 | return l | COMMENT |
| LOW | list.go | 381 | // | COMMENT |
| LOW | treeview.go | 261 | func (n *TreeNode) GetLevel() int { | COMMENT |
| LOW | treeview.go | 281 | // - J: Move (the selection) up one level (if that node is selectable). | COMMENT |
| LOW | treeview.go | 381 | // selections. Selected nodes must be visible and selectable, or else the | COMMENT |
| LOW | treeview.go | 501 | // is only updated after the tree view has been redrawn. | COMMENT |
| LOW | textarea.go | 41 | ) | COMMENT |
| LOW | textarea.go | 61 | // (3-int array) and an ending position (3-int array). The starting position | COMMENT |
| LOW | textarea.go | 101 | // keys can be used to move the cursor (subject to what the user's terminal | COMMENT |
| LOW | textarea.go | 121 | // | COMMENT |
| LOW | textarea.go | 141 | // - Ctrl-U: Delete the current line, i.e. everything after the last newline | COMMENT |
| LOW | textarea.go | 161 | // global Ctrl-C key and you want to bind it to the "copy to clipboard" | COMMENT |
| LOW | textarea.go | 181 | // | COMMENT |
| LOW | textarea.go | 241 | length int | COMMENT |
| LOW | textarea.go | 281 | // position (see [textAreaSpan]). Not all lines of the text may be contained | COMMENT |
| LOW | textarea.go | 621 | // positions refer to index positions within the entire text string (as a | COMMENT |
| LOW | textarea.go | 901 | // skipped during drawing at the top or on the left, respectively. Note that the | COMMENT |
| LOW | textarea.go | 981 | t.textStyle = tcell.StyleDefault.Foreground(fieldTextColor).Background(fieldBgColor) | COMMENT |
| LOW | textarea.go | 1441 | if fromLine < len(t.lineStarts) { | COMMENT |
| LOW | textarea.go | 1601 | func (t *TextArea) setTransform(transform func(cluster, rest string, boundaries int) (newCluster string, newBoundaries i | COMMENT |
| LOW | box.go | 1 | package tview | COMMENT |
| LOW | box.go | 161 | // (and all primitives which extend it). | COMMENT |
| LOW | box.go | 221 | } | COMMENT |
| LOW | box.go | 281 | } | COMMENT |
| LOW | box.go | 481 | // Call custom draw function. | COMMENT |
| LOW | box.go | 501 | // | COMMENT |
| LOW | grid.go | 21 | // Grid is an implementation of a grid-based layout. It works by defining the | COMMENT |
| LOW | grid.go | 61 | // NewGrid returns a new grid-based layout container with no initial primitives. | COMMENT |
| LOW | grid.go | 81 | // less than or equal to 0 represent proportional column widths or fractions of | COMMENT |
| LOW | grid.go | 101 | // | COMMENT |
| LOW | grid.go | 181 | // If rowSpan or colSpan is 0, the primitive will not be drawn. | COMMENT |
| LOW | textview.go | 61 | // Write() method except that it does not acquire the lock. | COMMENT |
| LOW | textview.go | 81 | // screen columns, but only if the text is left-aligned. If the text is centered | COMMENT |
| LOW | textview.go | 101 | // | COMMENT |
| LOW | textview.go | 121 | // | COMMENT |
| LOW | textview.go | 141 | // text very far down only if really needed. For example, call | COMMENT |
| LOW | textview.go | 501 | if t.regionTags != regions { | COMMENT |
| LOW | textview.go | 621 | t.text.Reset() | COMMENT |
| LOW | textview.go | 721 | } | COMMENT |
| LOW | textview.go | 801 | } | COMMENT |
| LOW | textview.go | 901 | // and [TextView.Clear] do. The lock will be acquired once when BatchWriter is | COMMENT |
| LOW | textview.go | 921 | COMMENT | |
| LOW | semigraphics.go | 181 | // The matching will be sorted ascending by rune value, so you don't need to | COMMENT |
| LOW | util.go | 41 | // not exceeding that box. "align" is one of AlignLeft, AlignCenter, or | COMMENT |
| LOW | primitive.go | 21 | // | COMMENT |
| LOW | primitive.go | 41 | Focus(delegate func(p Primitive)) | COMMENT |
| LOW | primitive.go | 61 | COMMENT | |
| LOW | primitive.go | 81 | // the primitive which newly received focus as well as on all of its | COMMENT |
| LOW | form.go | 41 | // AllowExit returns true if the form may use the given key event to exit | COMMENT |
| LOW | form.go | 221 | } | COMMENT |
| LOW | application.go | 61 | // | COMMENT |
| LOW | application.go | 141 | COMMENT | |
| LOW | application.go | 761 | }} | COMMENT |
| LOW | application.go | 901 | return nil | COMMENT |
| LOW | image.go | 41 | BlockQuadrantUpperRight: 0b0000000000000000000000000000000011110000111100001111000011110000, | COMMENT |
| LOW | image.go | 61 | // settings, none of which are under the control of this package. Results may | COMMENT |
| LOW | image.go | 141 | return i | COMMENT |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demos/table/main.go | 15 | lorem := strings.Split("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt | CODE |
| LOW | demos/table/main.go | 15 | lorem := strings.Split("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt | CODE |