Repository Analysis

emilk/egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

5.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of emilk/egui, a Rust project with 30,211 GitHub stars. SynthScan v2.0 examined 136,178 lines of code across 545 source files, recording 743 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 5.8 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.8
Adjusted Score
5.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
30.2K
Stars
Rust
Language
136.2K
Lines of Code
545
Files
743
Pattern Hits
2026-08-29
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

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

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 743 distinct pattern matches across 9 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 Block697 hits · 664 pts
SeverityFileLineSnippetContext
LOWlychee.toml1################################################################################COMMENT
LOWdeny.toml1# Copied from https://github.com/rerun-io/rerun_templateCOMMENT
LOWclippy.toml21COMMENT
LOWcrates/eframe/Cargo.toml41COMMENT
LOWcrates/eframe/Cargo.toml81]COMMENT
LOWcrates/eframe/src/lib.rs1//! eframe - the [`egui`] framework crateCOMMENT
LOWcrates/eframe/src/lib.rs21//! If your app is only for native, and you don't need advanced features like state persistence,COMMENT
LOWcrates/eframe/src/lib.rs41//! // for e.g. egui::PaintCallback.COMMENT
LOWcrates/eframe/src/lib.rs61//! # #[cfg(target_arch = "wasm32")]COMMENT
LOWcrates/eframe/src/lib.rs81//! }COMMENT
LOWcrates/eframe/src/lib.rs101//! }COMMENT
LOWcrates/eframe/src/lib.rs121//!COMMENT
LOWcrates/eframe/src/lib.rs241/// This is how you start a native (desktop) app.COMMENT
LOWcrates/eframe/src/lib.rs261/// #[derive(Default)]COMMENT
LOWcrates/eframe/src/lib.rs281/// ```COMMENT
LOWcrates/eframe/src/lib.rs321 #[cfg(feature = "wgpu_no_default_features")]COMMENT
LOWcrates/eframe/src/lib.rs341/// eventloop.set_control_flow(ControlFlow::Poll);COMMENT
LOWcrates/eframe/src/lib.rs361/// }COMMENT
LOWcrates/eframe/src/lib.rs441/// The simplest way to get started when writing a native app.COMMENT
LOWcrates/eframe/src/lib.rs461/// ui.text_edit_singleline(&mut name)COMMENT
LOWcrates/eframe/src/icon_data.rs1//! Helpers for loading [`egui::IconData`].COMMENT
LOWcrates/eframe/src/epi.rs21#[cfg(not(target_arch = "wasm32"))]COMMENT
LOWcrates/eframe/src/epi.rs61 pub integration_info: IntegrationInfo,COMMENT
LOWcrates/eframe/src/epi.rs81 ///COMMENT
LOWcrates/eframe/src/epi.rs141 ///COMMENT
LOWcrates/eframe/src/epi.rs161 /// [`egui::InputState::viewport`], but the rest of [`egui::Context::input`]COMMENT
LOWcrates/eframe/src/epi.rs181 /// (A "viewport" in egui means an native OS window).COMMENT
LOWcrates/eframe/src/epi.rs201 NoneCOMMENT
LOWcrates/eframe/src/epi.rs221 #[cfg(feature = "glow")]COMMENT
LOWcrates/eframe/src/epi.rs241 ///COMMENT
LOWcrates/eframe/src/epi.rs261 }COMMENT
LOWcrates/eframe/src/epi.rs281COMMENT
LOWcrates/eframe/src/epi.rs301 /// If you don't set an icon, a default egui icon will be used.COMMENT
LOWcrates/eframe/src/epi.rs321 /// Sets the number of bits in the stencil buffer.COMMENT
LOWcrates/eframe/src/epi.rs341 /// When `false`, [`winit::event_loop::EventLoop::run`] is used.COMMENT
LOWcrates/eframe/src/epi.rs361COMMENT
LOWcrates/eframe/src/epi.rs381 /// The folder where `eframe` will store the app state. If not set, eframe will use a defaultCOMMENT
LOWcrates/eframe/src/epi.rs481 #[cfg(any(feature = "glow", feature = "wgpu_no_default_features"))]COMMENT
LOWcrates/eframe/src/epi.rs501 #[cfg(feature = "wgpu_no_default_features")]COMMENT
LOWcrates/eframe/src/epi.rs581/// What rendering backend to use.COMMENT
LOWcrates/eframe/src/epi.rs761COMMENT
LOWcrates/eframe/src/epi.rs781 /// and run eframe using [`Renderer::Glow`].COMMENT
LOWcrates/eframe/src/epi.rs841/// Information about the URL.COMMENT
LOWcrates/eframe/src/epi.rs861COMMENT
LOWcrates/eframe/src/epi.rs881 ///COMMENT
LOWcrates/eframe/src/native/app_icon.rs41 /// We did not set it or failed to do it. In any case we won't try again.COMMENT
LOWcrates/eframe/src/native/winit_integration.rs141 /// so that multiple input events can be handled in one frame. Does notCOMMENT
LOWcrates/eframe/src/native/winit_integration.rs181 // Because we can't provide the initial tree synchronouslyCOMMENT
LOWcrates/eframe/src/native/macos.rs1use egui::Vec2;COMMENT
LOWcrates/eframe/src/native/run.rs201 // On Windows, invisible windows don't receive RedrawRequestedCOMMENT
LOWcrates/eframe/src/native/wgpu_integration.rs901 // event handler. If this is not done, the compositor will assume that the window does not wantCOMMENT
LOWcrates/eframe/src/native/glow_integration.rs81}COMMENT
LOWcrates/eframe/src/native/glow_integration.rs881 &mut self,COMMENT
LOWcrates/eframe/src/web/web_painter.rs1use egui::{Event, UserData};COMMENT
LOWcrates/eframe/src/web/web_logger.rs81COMMENT
LOWcrates/eframe/src/web/web_logger.rs101COMMENT
LOWcrates/eframe/src/web/text_agent.rs201 /// completions (e.g., `tex|` -> `Texas`) to work correctly. In theseCOMMENT
LOWcrates/eframe/src/web/web_painter_glow.rs181COMMENT
LOWcrates/egui_glow/src/painter.rs101 /// Stores outdated OpenGL textures that are yet to be deletedCOMMENT
LOWcrates/egui_glow/src/painter.rs121impl CallbackFn {COMMENT
637 more matches not shown…
Decorative Section Separators24 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMclippy.toml3# -----------------------------------------------------------------------------COMMENT
MEDIUMclippy.toml22# -----------------------------------------------------------------------------COMMENT
MEDIUMclippy.toml60# -----------------------------------------------------------------------------COMMENT
MEDIUMcrates/eframe/Cargo.toml155# -------------------------------------------COMMENT
MEDIUMcrates/eframe/Cargo.toml210# -------------------------------------------COMMENT
MEDIUMcrates/emath/src/rect_align.rs10/// ┌───────────┐ ┌────────┐ ┌─────────┐COMMENT
MEDIUMcrates/emath/src/rect_align.rs12/// └───────────┘ └────────┘ └─────────┘COMMENT
MEDIUMcrates/emath/src/rect_align.rs13/// ┌──────────┐ ┌────────────────────────────────────┐ ┌───────────┐COMMENT
MEDIUMcrates/emath/src/rect_align.rs15/// └──────────┘ │ │ └───────────┘COMMENT
MEDIUMcrates/emath/src/rect_align.rs16/// ┌──────────┐ │ │ ┌───────────┐COMMENT
MEDIUMcrates/emath/src/rect_align.rs18/// └──────────┘ │ │ └───────────┘COMMENT
MEDIUMcrates/emath/src/rect_align.rs19/// ┌──────────┐ │ │ ┌───────────┐COMMENT
MEDIUMcrates/emath/src/rect_align.rs21/// └──────────┘ └────────────────────────────────────┘ └───────────┘COMMENT
MEDIUMcrates/emath/src/rect_align.rs22/// ┌────────────┐ ┌──────┐ ┌──────────┐COMMENT
MEDIUMcrates/emath/src/rect_align.rs24/// └────────────┘ └──────┘ └──────────┘COMMENT
MEDIUMscripts/check.sh81# ------------------------------------------------------------COMMENT
MEDIUMscripts/clippy_wasm/clippy.toml6# -----------------------------------------------------------------------------COMMENT
MEDIUMscripts/clippy_wasm/clippy.toml25# -----------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml67 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml124 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml156 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml178 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml199 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/rust.yml218 # ---------------------------------------------------------------------------COMMENT
AI Slop Vocabulary4 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMcrates/eframe/src/native/glow_integration.rs1091 // Create GL display. This may probably create a window too on most platforms. Definitely on `MS windows`. NeverCOMMENT
MEDIUMcrates/egui_kittest/src/lib.rs789 /// See also: <https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field>COMMENT
MEDIUMcrates/egui_kittest/src/lib.rs823 See: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field"CODE
MEDIUMcrates/egui_kittest/src/snapshot.rs851/// # let harness = MockHarness;COMMENT
Fake / Example Data8 hits · 10 pts
SeverityFileLineSnippetContext
LOWcrates/egui_demo_lib/src/lib.rs59pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWcrates/egui_demo_lib/src/lib.rs59pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWcrates/egui_demo_lib/src/lib.rs61pub const LOREM_IPSUM_LONG: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incidCODE
LOWcrates/egui_demo_lib/src/lib.rs61pub const LOREM_IPSUM_LONG: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incidCODE
LOWcrates/egui_demo_lib/src/demo/text_layout.rs132 ui.selectable_value(lorem_ipsum, true, "Lorem Ipsum");CODE
LOWcrates/egui_demo_lib/src/demo/modals.rs21 name: "John Doe".to_owned(),CODE
LOWexamples/custom_font_style/src/main.rs73pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
LOWexamples/custom_font_style/src/main.rs73pub const LOREM_IPSUM: &str = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididuntCODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMscripts/accept_snapshots.sh3# Its main use is in the update_kittest_snapshots CI job, but you can also use it locally.COMMENT
MEDIUMscripts/build_demo_web.sh99# if this fails with "error: cannot import from modules (`env`) with `--no-modules`", you can use:COMMENT
LOW.vscode/settings.json24 // Don't forget to put it in a comment again before committing.COMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/generate_changelog.py136CODE
LOWscripts/generate_changelog.py244CODE
LOWscripts/lint.py153CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/enforce_branch_name.yml20 # Check if PR is from a forkCOMMENT
LOW.github/workflows/enforce_branch_name.yml22 # Check if PR is from the master/main branch of a forkCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/egui_kittest/src/snapshot.rs61/// Example usage:COMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/generate_changelog.py49def fetch_pr_info_from_commit_info(commit_info: CommitInfo) -> Optional[PrInfo]:CODE