Repository Analysis

raphamorim/rio

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

5.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of raphamorim/rio, a Rust project with 7,022 GitHub stars. SynthScan v2.0 examined 188,070 lines of code across 485 source files, recording 875 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 5.5 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).

5.5
Adjusted Score
5.5
Raw Score
100%
Time Factor
2026-07-12
Last Push
7.0K
Stars
Rust
Language
188.1K
Lines of Code
485
Files
875
Pattern Hits
2026-07-14
Scan Date
0.05
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 22HIGH 2MEDIUM 4LOW 847

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 875 distinct pattern matches across 8 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 Block841 hits · 759 pts
SeverityFileLineSnippetContext
LOWmisc/scripts/drawable-chars.sh1#!/bin/bashCOMMENT
LOWcorcovado/test/test_udp_socket.rs1// use bytes::{Buf, MutBuf, RingBuf, SliceBuf};COMMENT
LOWcorcovado/test/test_udp_socket.rs21// }COMMENT
LOWcorcovado/test/test_udp_socket.rs41COMMENT
LOWcorcovado/test/test_udp_socket.rs61// info!("Registering SENDER");COMMENT
LOWcorcovado/test/test_udp_socket.rs81// let cnt = unsafe {COMMENT
LOWcorcovado/test/test_udp_socket.rs101// let cnt = if !handler.connected {COMMENT
LOWcorcovado/test/test_udp_socket.rs121// let rx = UdpSocket::bind(&addr).unwrap();COMMENT
LOWcorcovado/test/test_udp_socket.rs141// }COMMENT
LOWcorcovado/test/test_udp_socket.rs161// let rx_addr = rx.local_addr().unwrap();COMMENT
LOWcorcovado/test/test_udp_socket.rs181COMMENT
LOWcorcovado/test/test_udp_socket.rs201// poll.register(&rx, LISTENER, Ready::readable(), PollOpt::edge())COMMENT
LOWcorcovado/test/test_udp_socket.rs221// let times = 5;COMMENT
LOWcorcovado/test/test_udp_socket.rs241// .cloned()COMMENT
LOWcorcovado/test/test_udp_socket.rs261// wtimes += 1;COMMENT
LOWcorcovado/test/test_oneshot.rs1// use std::net::{TcpListener, TcpStream};COMMENT
LOWcorcovado/test/test_oneshot.rs21COMMENT
LOWcorcovado/test/test_oneshot.rs41// let res = s1.write(b"foo").unwrap();COMMENT
LOWcorcovado/test/test_oneshot.rs61// poll.reregister(COMMENT
LOWcorcovado/test/test_oneshot.rs81// assert!(COMMENT
LOWcorcovado/test/test_smoke.rs1// extern crate corcovadoCOMMENT
LOWcorcovado/test/test_smoke.rs21// &l,COMMENT
LOWcorcovado/test/test_multicast.rs1// // TODO: This doesn't pass on android 64bit CI...COMMENT
LOWcorcovado/test/test_multicast.rs21// localhost: IpAddr,COMMENT
LOWcorcovado/test/test_multicast.rs41// debug!("We are receiving a datagram now...");COMMENT
LOWcorcovado/test/test_multicast.rs61// }COMMENT
LOWcorcovado/test/test_multicast.rs81COMMENT
LOWcorcovado/test/test_multicast.rs101// poll.poll(&mut events, None).unwrap();COMMENT
LOWcorcovado/test/test_close_on_drop.rs1// use bytes::ByteBuf;COMMENT
LOWcorcovado/test/test_close_on_drop.rs21// shutdown: bool,COMMENT
LOWcorcovado/test/test_close_on_drop.rs41// }COMMENT
LOWcorcovado/test/test_close_on_drop.rs61// }COMMENT
LOWcorcovado/test/test_close_on_drop.rs81// #[test]COMMENT
LOWcorcovado/test/test_close_on_drop.rs101COMMENT
LOWcorcovado/test/test_close_on_drop.rs121// }COMMENT
LOWcorcovado/test/test_write_then_drop.rs1// use std::io::{Read, Write};COMMENT
LOWcorcovado/test/test_write_then_drop.rs21COMMENT
LOWcorcovado/test/test_write_then_drop.rs41// s2.write_all(&[1, 2, 3, 4]).unwrap();COMMENT
LOWcorcovado/test/test_write_then_drop.rs61COMMENT
LOWcorcovado/test/test_write_then_drop.rs81COMMENT
LOWcorcovado/test/test_write_then_drop.rs101// assert_eq!(events.len(), 1);COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs1// use std::collections::HashMap;COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs21// }COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs41// return Err("not ready");COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs61// *self.buf.get_mut(&token).unwrap() -= ready;COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs81// Ok(_) => {}COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs101// assert_ready!($poll, Token(0), Ready::from(UnixReady::hup()))COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs121// }COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs141// Ok(v) => v,COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs161// Ready::readable() | Ready::writable(),COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs181// }COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs201// let (mut socket, _) = assert_ok!(listener.accept());COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs221// target_os = "ios",COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs241// let listener = assert_ok!(net::TcpListener::bind("127.0.0.1:0"));COMMENT
LOWcorcovado/test/test_tcp_shutdown.rs261// #[cfg(not(any(COMMENT
LOWcorcovado/test/test_register_deregister.rs1// use bytes::SliceBuf;COMMENT
LOWcorcovado/test/test_register_deregister.rs21// client: cli,COMMENT
LOWcorcovado/test/test_register_deregister.rs41// PollOpt::level(),COMMENT
LOWcorcovado/test/test_register_deregister.rs61// #[test]COMMENT
LOWcorcovado/test/test_register_deregister.rs81// .unwrap();COMMENT
781 more matches not shown…
Hallucination Indicators22 hits · 235 pts
SeverityFileLineSnippetContext
CRITICALfrontends/rioterm/src/application.rs247 if route.window.screen.renderer.scrollbar.needs_redraw() {CODE
CRITICALfrontends/rioterm/src/application.rs1009 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs1033 route.window.screen.renderer.scrollbar.end_drag();CODE
CRITICALfrontends/rioterm/src/application.rs1264 if route.window.screen.renderer.scrollbar.is_dragging() {CODE
CRITICALfrontends/rioterm/src/application.rs1341 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs1348 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs1379 if route.window.screen.renderer.command_palette.is_enabled() {CODE
CRITICALfrontends/rioterm/src/application.rs1398 if route.window.screen.renderer.search.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs1465 if route.window.screen.renderer.scrollbar.is_dragging() {CODE
CRITICALfrontends/rioterm/src/application.rs1655 || route.window.screen.renderer.confirm_quit.is_active()CODE
CRITICALfrontends/rioterm/src/application.rs1743 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/application.rs1836 if route.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs128 self.window.screen.renderer.assistant.clear();CODE
CRITICALfrontends/rioterm/src/router/mod.rs134 self.window.screen.renderer.confirm_quit.set_active(true);CODE
CRITICALfrontends/rioterm/src/router/mod.rs166 if self.window.screen.renderer.command_palette.is_enabled() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs277 self.window.screen.renderer.command_palette.query.clone();CODE
CRITICALfrontends/rioterm/src/router/mod.rs317 if self.window.screen.renderer.confirm_quit.is_active() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs321 self.window.screen.renderer.confirm_quit.set_active(false);CODE
CRITICALfrontends/rioterm/src/router/mod.rs325 self.window.screen.renderer.confirm_quit.set_active(false);CODE
CRITICALfrontends/rioterm/src/router/mod.rs345 if self.window.screen.renderer.assistant.is_active() {CODE
CRITICALfrontends/rioterm/src/router/mod.rs348 self.window.screen.renderer.assistant.clear();CODE
CRITICALrio-backend/src/crosswords/mod.rs2208 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
MEDIUMfrontends/rioterm/src/grid_emit.rs1738 // sprite (crisp + seamless in any font) instead of the fontCOMMENT
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.rs55 /// `memory/project_sugarloaf_content_drop.md`. Phase 1a: scaffoldCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsugarloaf/src/font/loader.rs402 // Step 1: collect all font faces from additional sources (user directories)COMMENT
LOWsugarloaf/src/font/loader.rs486 // Step 3: apply CSS-spec matching algorithm to select the best faceCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsugarloaf/src/font/loader.rs402 // Step 1: collect all font faces from additional sources (user directories)COMMENT
LOWsugarloaf/src/font/loader.rs486 // Step 3: apply CSS-spec matching algorithm to select the best faceCOMMENT