Repository Analysis

emilk/egui

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

5.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of emilk/egui, a Rust project with 29,639 GitHub stars. SynthScan v2.0 examined 132,080 lines of code across 530 source files, recording 733 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 5.9 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.9
Adjusted Score
5.9
Raw Score
100%
Time Factor
2026-07-08
Last Push
29.6K
Stars
Rust
Language
132.1K
Lines of Code
530
Files
733
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

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 703

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 733 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 Block687 hits · 654 pts
SeverityFileLineSnippetContext
LOWlychee.toml1################################################################################COMMENT
LOWdeny.toml1# Copied from https://github.com/rerun-io/rerun_templateCOMMENT
LOWclippy.toml21COMMENT
LOWcrates/eframe/Cargo.toml41# Allow crates to choose an android-activity backend via WinitCOMMENT
LOWcrates/eframe/Cargo.toml81## Enable [`wgpu`](https://docs.rs/wgpu) for painting (via [`egui-wgpu`](https://github.com/emilk/egui/tree/main/crates/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 fn logic(&mut self, ctx: &egui::Context, frame: &mut Frame) {COMMENT
LOWcrates/eframe/src/epi.rs181 ///COMMENT
LOWcrates/eframe/src/epi.rs201 ///COMMENT
LOWcrates/eframe/src/epi.rs221 #[cfg(not(feature = "glow"))]COMMENT
LOWcrates/eframe/src/epi.rs241 /// You can use [`egui::Color32::to_normalized_gamma_f32`] for this.COMMENT
LOWcrates/eframe/src/epi.rs261 /// It can be used to prevent specific keyboard shortcuts or mouse events from being processed by egui.COMMENT
LOWcrates/eframe/src/epi.rs281///COMMENT
LOWcrates/eframe/src/epi.rs301 /// Must be a power-of-two. Higher = more smooth 3D.COMMENT
LOWcrates/eframe/src/epi.rs321 #[cfg(any(feature = "glow", feature = "wgpu_no_default_features"))]COMMENT
LOWcrates/eframe/src/epi.rs341 /// event loop before it is run.COMMENT
LOWcrates/eframe/src/epi.rs381 /// Dithering assumes an sRGB output and thus will apply noise to any input value that lies betweenCOMMENT
LOWcrates/eframe/src/epi.rs481 /// Unused by webgl context as of writing.COMMENT
LOWcrates/eframe/src/epi.rs501 /// two 8bit values after applying the sRGB OETF function, i.e. if it's not a whole 8bit value in "gamma space".COMMENT
LOWcrates/eframe/src/epi.rs761 self.window.as_ref()COMMENT
LOWcrates/eframe/src/epi.rs781 /// Register your own [`glow::Texture`],COMMENT
LOWcrates/eframe/src/epi.rs841 /// The full URL (`location.href`) without the hash, percent-decoded.COMMENT
LOWcrates/eframe/src/epi.rs861 /// `location.port`COMMENT
LOWcrates/eframe/src/epi.rs881 /// "foo=hello&bar%20&foo=world" is parsed as `{"bar ": [""], "foo": ["hello", "world"]}`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.rs121 /// be used in special situations if the window must be repainted whileCOMMENT
LOWcrates/eframe/src/native/winit_integration.rs141 /// # WarningCOMMENT
LOWcrates/eframe/src/native/macos.rs1use egui::Vec2;COMMENT
LOWcrates/eframe/src/native/wgpu_integration.rs841COMMENT
LOWcrates/eframe/src/native/glow_integration.rs801COMMENT
LOWcrates/eframe/src/web/web_runner.rs221 };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.rs61 // We do this instead of setting the `autofocus` attribute,COMMENT
LOWcrates/egui_glow/src/painter.rs101 /// Stores outdated OpenGL textures that are yet to be deletedCOMMENT
LOWcrates/egui_glow/src/painter.rs121impl CallbackFn {COMMENT
LOWcrates/egui_glow/src/painter.rs281 self.max_texture_sideCOMMENT
LOWcrates/egui_glow/src/painter.rs381 /// The following OpenGL features will be set:COMMENT
LOWcrates/egui_glow/src/lib.rs21COMMENT
LOWcrates/egui_glow/src/lib.rs101#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]COMMENT
627 more matches not shown…
Decorative Section Separators24 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMclippy.toml3# -----------------------------------------------------------------------------COMMENT
MEDIUMclippy.toml22# -----------------------------------------------------------------------------COMMENT
MEDIUMclippy.toml60# -----------------------------------------------------------------------------COMMENT
MEDIUMcrates/eframe/Cargo.toml145# -------------------------------------------COMMENT
MEDIUMcrates/eframe/Cargo.toml201# -------------------------------------------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.rs1013 // Create GL display. This may probably create a window too on most platforms. Definitely on `MS windows`. NeverCOMMENT
MEDIUMcrates/egui_kittest/src/lib.rs767 /// See also: <https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field>COMMENT
MEDIUMcrates/egui_kittest/src/lib.rs801 See: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-harness-field"CODE
MEDIUMcrates/egui_kittest/src/snapshot.rs755/// # 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.rs44/// 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