Repository Analysis

raphamorim/rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.

4.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of raphamorim/rio, a Rust project with 7,417 GitHub stars. SynthScan v2.0 examined 211,611 lines of code across 509 source files, recording 819 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 4.8 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).

4.8
Adjusted Score
4.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
7.4K
Stars
Rust
Language
211.6K
Lines of Code
509
Files
819
Pattern Hits
2026-08-29
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 26HIGH 3MEDIUM 4LOW 786

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 819 distinct pattern matches across 12 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.

Over-Commented Block773 hits · 698 pts
SeverityFileLineSnippetContext
LOWlibrio-wasm/src/lib.rs1//! librio's JS ABI: `librio` (without its `pty` feature) compiled toCOMMENT
LOWlibrio-wasm/src/lib.rs61pub const KEY_ACTION_RELEASE: u32 = 2;COMMENT
LOWlibrio-wasm/src/lib.rs681 /// string in place of the base char so a ZWJ emoji or aCOMMENT
LOWmisc/scripts/drawable-chars.sh1#!/bin/bashCOMMENT
LOWrio-graphics/src/lib.rs1// Copyright (c) 2023-present, Raphael Amorim.COMMENT
LOWrio-graphics/src/lib.rs21#[cfg(feature = "glyph")]COMMENT
LOWrio-graphics/src/lib.rs101/// Key for `Sugarloaf::image_data` and the renderer's per-imageCOMMENT
LOWrio-graphics/src/lib.rs141}COMMENT
LOWrio-graphics/src/glyph/glyf_decode.rs1// OpenType `glyf` simple-glyph decoder.COMMENT
LOWrio-graphics/src/glyph/glyf_decode.rs21// direct dep.COMMENT
LOWrio-graphics/src/glyph/glyph_registry.rs1// Per-terminal registry of glyphs registered over Glyph Protocol.COMMENT
LOWrio-graphics/src/glyph/glyph_registry.rs21COMMENT
LOWrio-graphics/src/glyph/glyph_registry.rs41/// in 21 bits; the remaining 11 bits give 2048 versions beforeCOMMENT
LOWrio-graphics/src/glyph/glyph_registry.rs101/// bump rather than the underlying bytes. A single `ColrV1` payloadCOMMENT
LOWrio-graphics/src/glyph/glyph_registry.rs121 pub insertion_id: u64,COMMENT
LOWrio-graphics/src/glyph/mod.rs1// Copyright (c) 2023-present, Raphael Amorim.COMMENT
LOWcorcovado/src/stream.rs21COMMENT
LOWcorcovado/src/token.rs1// TODO: replace "//" with "///" and fix TcpListener with EventedCOMMENT
LOWcorcovado/src/token.rs21// use std::io::{self, Read};COMMENT
LOWcorcovado/src/token.rs41// let listener = TcpListener::bind(&"127.0.0.1:0".parse()?)?;COMMENT
LOWcorcovado/src/token.rs61// // Event storageCOMMENT
LOWcorcovado/src/token.rs81// if next_socket_index == MAX_SOCKETS {COMMENT
LOWcorcovado/src/token.rs101// }COMMENT
LOWcorcovado/src/token.rs121// e => panic!("err={:?}", e), // Unexpected errorCOMMENT
LOWcorcovado/src/lib.rs1//! A low-level readiness-based IO library focused on what Rio needs from itsCOMMENT
LOWcorcovado/src/lib.rs61/// Unix this scheme is then also extensible to all other file descriptors withCOMMENT
LOWcorcovado/src/lib.rs81/// Also note that for types which represent streams of bytes the mioCOMMENT
LOWcorcovado/src/lib.rs101/// When put together these two types enable custom Windows handles to beCOMMENT
LOWcorcovado/src/event_imp.rs1use crate::{Poll, Token};COMMENT
LOWcorcovado/src/event_imp.rs21/// [`Registration`] and [`SetReadiness`]. In this case, the implementer takesCOMMENT
LOWcorcovado/src/event_imp.rs41// }COMMENT
LOWcorcovado/src/event_imp.rs61// }COMMENT
LOWcorcovado/src/event_imp.rs81// pub fn new(when: Instant) -> Deadline {COMMENT
LOWcorcovado/src/event_imp.rs101// Instant::now() >= self.whenCOMMENT
LOWcorcovado/src/event_imp.rs121// }COMMENT
LOWcorcovado/src/event_imp.rs141 ///COMMENT
LOWcorcovado/src/event_imp.rs241COMMENT
LOWcorcovado/src/event_imp.rs261/// assert!(opts.is_edge());COMMENT
LOWcorcovado/src/event_imp.rs281 ///COMMENT
LOWcorcovado/src/event_imp.rs301 ///COMMENT
LOWcorcovado/src/event_imp.rs321 ///COMMENT
LOWcorcovado/src/event_imp.rs361 /// Returns true if the options include edge-triggered notifications.COMMENT
LOWcorcovado/src/event_imp.rs381 /// Returns true if the options include level-triggered notifications.COMMENT
LOWcorcovado/src/event_imp.rs401 /// Returns true if the options includes oneshot.COMMENT
LOWcorcovado/src/event_imp.rs421 #[inline]COMMENT
LOWcorcovado/src/event_imp.rs441 /// ```COMMENT
LOWcorcovado/src/event_imp.rs461 ///COMMENT
LOWcorcovado/src/event_imp.rs481 /// ```COMMENT
LOWcorcovado/src/event_imp.rs601///COMMENT
LOWcorcovado/src/event_imp.rs621/// ```COMMENT
LOWcorcovado/src/event_imp.rs641 ///COMMENT
LOWcorcovado/src/event_imp.rs661 /// Returns a `Ready` representing readable readiness.COMMENT
LOWcorcovado/src/event_imp.rs681 /// Returns a `Ready` representing writable readiness.COMMENT
LOWcorcovado/src/event_imp.rs701 #[inline]COMMENT
LOWcorcovado/src/event_imp.rs721 /// use corcovado::Ready;COMMENT
LOWcorcovado/src/event_imp.rs741 /// ```COMMENT
LOWcorcovado/src/event_imp.rs761 /// See [`Poll`] for more documentation on polling.COMMENT
LOWcorcovado/src/event_imp.rs781 /// See [`Poll`] for more documentation on polling.COMMENT
LOWcorcovado/src/event_imp.rs801 self.contains(Ready(ERROR))COMMENT
LOWcorcovado/src/event_imp.rs821 /// assert!(readiness.is_readable());COMMENT
713 more matches not shown…
Hallucination Indicators26 hits · 275 pts
SeverityFileLineSnippetContext
CRITICALfrontends/rioterm/src/application.rs390 if route.window.screen.renderer.scrollbar.needs_redraw() {CODE
CRITICALfrontends/rioterm/src/application.rs1230 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs1258 route.window.screen.renderer.scrollbar.end_drag();CODE
CRITICALfrontends/rioterm/src/application.rs1505 if route.window.screen.renderer.scrollbar.is_dragging() {CODE
CRITICALfrontends/rioterm/src/application.rs1522 route.window.screen.mouse.hint_click_latched.take()CODE
CRITICALfrontends/rioterm/src/application.rs1627 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs1634 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs1665 if route.window.screen.renderer.command_palette.is_enabled() {CODE
CRITICALfrontends/rioterm/src/application.rs1684 if route.window.screen.renderer.search.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs1749 if route.window.screen.renderer.scrollbar.is_dragging() {CODE
CRITICALfrontends/rioterm/src/application.rs1781 route.window.screen.renderer.trail_cursor.snap();CODE
CRITICALfrontends/rioterm/src/application.rs1907 if route.window.screen.mouse.hint_click_latched.is_none() {CODE
CRITICALfrontends/rioterm/src/application.rs1926 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs2019 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs2135 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/screen/mod.rs3880 let cursor_row = cursor.state.pos.row.0.max(0) as usize;CODE
CRITICALfrontends/rioterm/src/router/mod.rs129 self.window.screen.renderer.assistant.clear();CODE
CRITICALfrontends/rioterm/src/router/mod.rs135 self.window.screen.renderer.confirm_quit.set_active(true);CODE
CRITICALfrontends/rioterm/src/router/mod.rs167 if self.window.screen.renderer.command_palette.is_enabled() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs278 self.window.screen.renderer.command_palette.query.clone();CODE
CRITICALfrontends/rioterm/src/router/mod.rs318 if self.window.screen.renderer.confirm_quit.is_active() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs322 self.window.screen.renderer.confirm_quit.set_active(false);CODE
CRITICALfrontends/rioterm/src/router/mod.rs326 self.window.screen.renderer.confirm_quit.set_active(false);CODE
CRITICALfrontends/rioterm/src/router/mod.rs346 if self.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs349 self.window.screen.renderer.assistant.clear();CODE
CRITICALrio-vt/src/crosswords/mod.rs3084 let column = self.grid.cursor.pos.col.saturating_sub(cols.0);CODE
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHrio-window/src/platform_impl/macos/window_delegate.rs354 /// will be failed. In this implementation, we will try again by usingCOMMENT
HIGHfrontends/rioterm/src/layout/compute_tests.rs4// I've added some real scenarios so I can make sure it doesn't go off again.COMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMmisc/scripts/drawable-chars.sh9# procedurally and should be crisp + seamless in any font; ranges not yetCOMMENT
MEDIUMrio-window/src/window.rs523 /// the most robust way to track the DPI you need to use to draw.COMMENT
MEDIUMrio-grid/src/lib.rs1910 // sprite (crisp + seamless in any font) instead of the fontCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHrio-vt/src/ansi/graphics.rs53 /// Source rectangle within the image, exactly as requestedCOMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWrio-unicode/scripts/unicode.py98CODE
LOWrio-unicode/scripts/unicode.py147CODE
LOWrio-unicode/scripts/unicode.py325CODE
LOWrio-unicode/scripts/grapheme.py40CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcorcovado/src/lazycell.rs66 /// # Return valueCOMMENT
LOWcorcovado/src/lazycell.rs253 /// # Return valueCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsugarloaf/src/sugarloaf.rs59 /// `memory/project_sugarloaf_content_drop.md`. Phase 1a: scaffoldCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsugarloaf/src/font/loader.rs448 // Step 1: collect all font faces from additional sources (user directories)COMMENT
LOWsugarloaf/src/font/loader.rs476 // Step 3: apply CSS-spec matching algorithm to select the best faceCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsugarloaf/src/font/loader.rs448 // Step 1: collect all font faces from additional sources (user directories)COMMENT
LOWsugarloaf/src/font/loader.rs476 // Step 3: apply CSS-spec matching algorithm to select the best faceCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWrio-vt/benches/vt_input.rs28 "the quick brown fox jumps over the lazy dog 0123456789 lorem ipsum dolor sit amet\r\n";CODE
LOWrio-vt/benches/vt_input.rs28 "the quick brown fox jumps over the lazy dog 0123456789 lorem ipsum dolor sit amet\r\n";CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWrio-unicode/scripts/grapheme.py22CODE