Style definitions for nice terminal layouts 👄
This report presents the forensic synthetic code analysis of charmbracelet/lipgloss, a Go project with 11,559 GitHub stars. SynthScan v2.0 examined 17,410 lines of code across 98 source files, recording 88 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 7.3 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 88 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 | query.go | 61 | if bg, err = backgroundColor(f, f); err == nil { | COMMENT |
| LOW | color.go | 41 | ) | COMMENT |
| LOW | color.go | 161 | type ANSIColor = ansi.IndexedColor | COMMENT |
| LOW | color.go | 181 | // myHotColor := lightDark(red, blue) | COMMENT |
| LOW | color.go | 201 | // hasDarkBG := lipgloss.HasDarkBackground(os.Stdin, os.Stdout) | COMMENT |
| LOW | color.go | 241 | // complete := lipgloss.Complete(p) | COMMENT |
| LOW | join.go | 1 | package lipgloss | COMMENT |
| LOW | join.go | 101 | // the right. | COMMENT |
| LOW | writer.go | 21 | // str := NewStyle(). | COMMENT |
| LOW | writer.go | 41 | return fmt.Fprintf(Writer, format, v...) //nolint:wrapcheck | COMMENT |
| LOW | writer.go | 61 | // | COMMENT |
| LOW | writer.go | 81 | func Fprintln(w io.Writer, v ...any) (int, error) { | COMMENT |
| LOW | writer.go | 141 | // Sprintf returns a formatted string for stdout, automatically downsampling | COMMENT |
| LOW | set.go | 321 | // AlignVertical sets a vertical text alignment rule. | COMMENT |
| LOW | set.go | 401 | // Margin is a shorthand method for setting margins on all sides at once. | COMMENT |
| LOW | set.go | 461 | // rendering blocks with a specific character, such as a space or a dot. | COMMENT |
| LOW | set.go | 501 | s.set(borderTopKey, top) | COMMENT |
| LOW | set.go | 601 | s.set(borderBottomForegroundKey, c) | COMMENT |
| LOW | set.go | 641 | COMMENT | |
| LOW | set.go | 661 | // background colors of the borders at once. The arguments work as follows: | COMMENT |
| LOW | set.go | 721 | // only to font rendering and don't want it to change any physical dimensions. | COMMENT |
| LOW | set.go | 741 | // | COMMENT |
| LOW | set.go | 801 | // Transform applies a given function to a string at render time, allowing for | COMMENT |
| LOW | blending.go | 81 | } | COMMENT |
| LOW | blending.go | 101 | // Background(gradient[index]). | COMMENT |
| LOW | tree/example_test.go | 141 | // ├── Bar | COMMENT |
| LOW | tree/tree.go | 1 | // Package tree allows you to build trees, as simple or complicated as you need. | COMMENT |
| LOW | tree/tree.go | 241 | // EnumeratorStyleFunc sets the enumeration style function. Use this function | COMMENT |
| LOW | tree/tree.go | 261 | // Use IndenterStyleFunc to conditionally set styles based on the tree node. | COMMENT |
| LOW | tree/tree.go | 301 | // ItemStyleFunc sets the item style function. Use this for conditional styling. | COMMENT |
| LOW | tree/tree.go | 321 | // for a classic or rounded tree. For example, you can have a rounded tree: | COMMENT |
| LOW | tree/tree.go | 341 | // | COMMENT |
| LOW | tree/enumerator.go | 1 | package tree | COMMENT |
| LOW | tree/enumerator.go | 41 | } | COMMENT |
| LOW | tree/enumerator.go | 61 | // ├── Foo | COMMENT |
| LOW | compat/doc.go | 1 | // Package compat is a compatibility layer for Lip Gloss that provides a way to | COMMENT |
| LOW | table/table_test.go | 1481 | Width(80). | COMMENT |
| LOW | table/table_test.go | 1501 | // │ regione │ 給災レホチ権 │ الأوروبيّون, │ 健必権次覧編 │ 조직·직무범위 │ | COMMENT |
| LOW | table/table_test.go | 1521 | // │ liberavisse. │ ぐドらづ市居 │ دأبوا إحكام │ 省載嗅闘額端 │ │ | COMMENT |
| LOW | table/table_test.go | 1541 | // │ │ う点目ヲウ止 │ │ │ │ | COMMENT |
| LOW | table/resizing.go | 21 | // to the total width. | COMMENT |
| LOW | table/table.go | 21 | // | COMMENT |
| LOW | examples/compat/standalone/main.go | 61 | // isn't a TTY (i.e. we're logging to a file) colors will be stripped | COMMENT |
| LOW | examples/color/standalone/main.go | 61 | COMMENT | |
| LOW | list/list.go | 1 | // Package list allows you to build lists, as simple or complicated as you need. | COMMENT |
| LOW | list/list.go | 21 | // | COMMENT |
| LOW | list/list.go | 41 | // "C", | COMMENT |
| LOW | list/list.go | 61 | // | COMMENT |
| LOW | list/list.go | 121 | // | COMMENT |
| LOW | list/list.go | 161 | // Use this to conditionally set different styles based on the current items, | COMMENT |
| LOW | list/list.go | 181 | // the tree is indented. The default indentor places a border connecting sibling | COMMENT |
| LOW | list/list.go | 221 | // Use this to conditionally set different styles based on the current items, | COMMENT |
| LOW | list/list.go | 261 | for _, item := range items { | COMMENT |
| LOW | list/list.go | 281 | // | COMMENT |
| LOW | list/enumerator.go | 1 | package list | COMMENT |
| LOW | list/enumerator.go | 21 | // - Bullet | COMMENT |
| LOW | list/enumerator.go | 61 | const abcLen = 26 | COMMENT |
| LOW | list/enumerator.go | 101 | // • Bar | COMMENT |
| LOW | list/enumerator.go | 121 | // Example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | set.go | 648 | // ┌──────────┐ | COMMENT |
| MEDIUM | set.go | 653 | // └──────────┘ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1490 | // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1492 | // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1494 | // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1495 | // ┌──────────────┬───────────────┬───────────────┬───────────────┬───────────────┐ | COMMENT |
| MEDIUM⚡ | table/table_test.go | 1497 | // ├──────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | COMMENT |
| MEDIUM | table/table_test.go | 1554 | // └──────────────┴───────────────┴───────────────┴───────────────┴───────────────┘ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 32 | // ┌──────┬───────────────┬──────────┐ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 34 | // ├──────┼───────────────┼──────────┤ | COMMENT |
| MEDIUM⚡ | table/resizing.go | 38 | // └──────┴───────────────┴──────────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | table/table_test.go | 1493 | // │ Lorem ipsum… │ 耐許ヱヨカハ… │ شيء قد للحكو… │ 版応道潟部中… │ 각급 선거관… │ | COMMENT |
| LOW⚡ | table/table_test.go | 1498 | // │ Lorem ipsum │ 耐許ヱヨカハ │ شيء قد │ 版応道潟部中 │ 각급 │ | COMMENT |
| LOW | table/table_test.go | 901 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 901 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1020 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1020 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1113 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1113 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit ne | CODE |
| LOW | table/table_test.go | 1172 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1172 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1468 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| LOW | table/table_test.go | 1468 | "Lorem ipsum dolor sit amet, regione detracto eos an. Has ei quidam hendrerit intellegebat, id tamquam iudicabit nece | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | color.go | 49 | // Example usage: | COMMENT |
| LOW | color.go | 157 | // Example usage: | COMMENT |
| LOW | color.go | 217 | // Example usage: | COMMENT |
| LOW | color.go | 238 | // Example usage: | COMMENT |
| LOW | color.go | 255 | // Example usage: | COMMENT |
| LOW | compat/color.go | 23 | // Example usage: | COMMENT |