Repository Analysis

gyscos/cursive

A Text User Interface library for the Rust programming language

6.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gyscos/cursive, a Rust project with 4,829 GitHub stars. SynthScan v2.0 examined 43,666 lines of code across 221 source files, recording 263 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 6.0 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).

6.0
Adjusted Score
6.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.8K
Stars
Rust
Language
43.7K
Lines of Code
221
Files
263
Pattern Hits
2026-07-14
Scan Date
0.00
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 0MEDIUM 0LOW 263

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 263 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.

Over-Commented Block256 hits · 254 pts
SeverityFileLineSnippetContext
LOWcursive/examples/colors.rs1use cursive::Printer;COMMENT
LOWcursive/examples/builder.rs1use cursive::views::{BoxedView, Button, EditView, Panel, TextView};COMMENT
LOWcursive/examples/assets/style.toml1# Every field in a theme file is optional.COMMENT
LOWcursive/src/cursive_runnable.rs81COMMENT
LOWcursive/src/cursive_runnable.rs121 /// Used to manually control the event loop. In most cases, runningCOMMENT
LOWcursive/src/cursive_runnable.rs161COMMENT
LOWcursive/src/cursive_ext.rs1/// Extension trait for the `Cursive` root to simplify initialization.COMMENT
LOWcursive/src/cursive_ext.rs21/// #[cfg(feature = "termion-backend")]COMMENT
LOWcursive/src/cursive_ext.rs41 fn run_ncurses(&mut self) -> std::io::Result<()>;COMMENT
LOWcursive/src/lib.rs1//! # CursiveCOMMENT
LOWcursive/src/lib.rs21//! use cursive::{Cursive, CursiveExt};COMMENT
LOWcursive/src/lib.rs41//! Cursive is callback-driven: it reacts to events generated by user input.COMMENT
LOWcursive/src/lib.rs81///COMMENT
LOWcursive/src/backends/mod.rs1//! Define backends using common libraries.COMMENT
LOWcursive/src/backends/termion.rs41 events: Events<File>,COMMENT
LOWcursive/src/backends/termion.rs61/// Permission is hereby granted, free of charge, to any person obtaining a copyCOMMENT
LOWcursive-macros/src/lib.rs1use proc_macro::TokenStream;COMMENT
LOWcursive-macros/src/lib.rs21/// to be cloneable).COMMENT
LOWcursive-macros/src/lib.rs41/// constructor method.COMMENT
LOWcursive-macros/src/lib.rs61/// }COMMENT
LOWcursive-macros/src/lib.rs81COMMENT
LOWcursive-macros/src/builder/blueprint.rs641 syn::Item::Enum(item) => {COMMENT
LOWcursive-macros/src/builder/callback_helper.rs281///COMMENT
LOWcursive-macros/src/builder/callback_helper.rs301///COMMENT
LOWcursive-macros/src/builder/callback_helper.rs321///COMMENT
LOWcursive-macros/src/builder/callback_helper.rs341///COMMENT
LOWcursive-core/src/logger.rs1//! Logging utilities.COMMENT
LOWcursive-core/src/logger.rs21/// ```COMMENT
LOWcursive-core/src/logger.rs121}COMMENT
LOWcursive-core/src/direction.rs1//! Direction-related structures.COMMENT
LOWcursive-core/src/direction.rs21//! Usually, "front" refers to the "forward" direction, or the "next"COMMENT
LOWcursive-core/src/direction.rs81 // }COMMENT
LOWcursive-core/src/direction.rs121COMMENT
LOWcursive-core/src/backend.rs1//! Define the backend trait for actual terminal interaction.COMMENT
LOWcursive-core/src/backend.rs21/// or termion, or it can entirely simulate a terminal and show it as aCOMMENT
LOWcursive-core/src/backend.rs41 ///COMMENT
LOWcursive-core/src/backend.rs61 /// The next call to `print()` will start at this place.COMMENT
LOWcursive-core/src/xy.rs61 /// Returns `f(self.x, self.y)`COMMENT
LOWcursive-core/src/xy.rs81 ///COMMENT
LOWcursive-core/src/xy.rs101 ///COMMENT
LOWcursive-core/src/xy.rs121 /// Returns `None` otherwise.COMMENT
LOWcursive-core/src/xy.rs141 /// # ExamplesCOMMENT
LOWcursive-core/src/xy.rs161 /// # use cursive_core::XY;COMMENT
LOWcursive-core/src/xy.rs181 /// assert_eq!((x, y), (1, 2));COMMENT
LOWcursive-core/src/xy.rs201 /// let xy = XY::new(String::from("a"), String::from("bbb"));COMMENT
LOWcursive-core/src/xy.rs221 /// let vec: Vec<bool> = xy.iter().map(|&i| i > 1).collect();COMMENT
LOWcursive-core/src/xy.rs241 Orientation::Horizontal => &self.x,COMMENT
LOWcursive-core/src/xy.rs261 Orientation::Vertical => &mut self.y,COMMENT
LOWcursive-core/src/xy.rs281 ///COMMENT
LOWcursive-core/src/xy.rs301 /// # use cursive_core::XY;COMMENT
LOWcursive-core/src/xy.rs321 /// # use cursive_core::XY;COMMENT
LOWcursive-core/src/xy.rs341COMMENT
LOWcursive-core/src/xy.rs361 ///COMMENT
LOWcursive-core/src/xy.rs381 ///COMMENT
LOWcursive-core/src/xy.rs401 /// # use cursive_core::XY;COMMENT
LOWcursive-core/src/xy.rs421 /// # use cursive_core::direction::Orientation;COMMENT
LOWcursive-core/src/xy.rs441 /// ```COMMENT
LOWcursive-core/src/xy.rs481 }COMMENT
LOWcursive-core/src/xy.rs501COMMENT
LOWcursive-core/src/xy.rs521 /// # ExamplesCOMMENT
196 more matches not shown…
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcursive/examples/assets/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sit amet porttitor ex. Vivamus ultricies nec massa egCODE
LOWcursive/examples/assets/lorem.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sit amet porttitor ex. Vivamus ultricies nec massa egCODE
LOWcursive/examples/assets/lorem.txt15Praesent dui lectus, commodo eget nulla ut, maximus facilisis ligula. Aliquam ultricies augue ac pellentesque pellentesqCODE
LOWcursive/examples/assets/lorem.txt15Praesent dui lectus, commodo eget nulla ut, maximus facilisis ligula. Aliquam ultricies augue ac pellentesque pellentesqCODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcursive/src/backends/blt.rs280 // TODO: implement this correctly.COMMENT
LOWcursive-macros/src/builder/callback_helper.rs403 // TODO: implement itCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcursive-core/src/utils/lines/spans/chunk_iterator.rs97 // We need to check if the last segment ended with a space.COMMENT