Repository Analysis

yewstack/yew

Rust / Wasm framework for creating reliable and efficient web applications

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of yewstack/yew, a Rust project with 32,726 GitHub stars. SynthScan v2.0 examined 95,847 lines of code across 809 source files, recording 199 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 2.4 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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-10
Last Push
32.7K
Stars
Rust
Language
95.8K
Lines of Code
809
Files
199
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 1HIGH 0MEDIUM 3LOW 195

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 199 distinct pattern matches across 10 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 Block175 hits · 175 pts
SeverityFileLineSnippetContext
LOWMakefile.toml1######################COMMENT
LOWtools/ssr-e2e-harness/src/lib.rs121///COMMENT
LOWexamples/function_router/src/lib.rs1// # Implementation Note:COMMENT
LOWexamples/axum_ssr_router/src/bin/ssr_router_server.rs161 let tower_service = app.clone();COMMENT
LOWexamples/.cargo/dummy-min-size-config.toml1# This file is intentionally left empty.COMMENT
LOWexamples/function_todomvc/src/hooks/use_bool_toggle.rs21 fn deref(&self) -> &Self::Target {COMMENT
LOWexamples/function_todomvc/src/hooks/use_bool_toggle.rs41/// move |_| {COMMENT
LOWpackages/yew-router-macro/src/lib.rs1mod routable_derive;COMMENT
LOWpackages/yew-router-macro/src/lib.rs21/// Secure,COMMENT
LOWpackages/yew-macro/tests/derive_props/pass.rs1#![recursion_limit = "128"]COMMENT
LOWpackages/yew-macro/tests/classes_macro/classes-pass.rs1#![no_implicit_prelude]COMMENT
LOW…ro/tests/function_component_attr/without-props-pass.rs1#![no_implicit_prelude]COMMENT
LOW…macro/tests/function_component_attr/with-props-pass.rs1// Shadow primitivesCOMMENT
LOW…s/yew-macro/tests/html_macro/generic-component-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/iterable-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/svg-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-prop-fail.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/block-pass.rs1#![no_implicit_prelude]COMMENT
LOW…-macro/tests/html_macro/component-any-children-pass.rs1// Shadow primitivesCOMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-element-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/for-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/dyn-prop-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/html-match-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/html-node-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/list-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/while-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/node-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/tests/html_macro/component-pass.rs1// Shadow primitivesCOMMENT
LOW…ckages/yew-macro/tests/html_macro/html-element-pass.rs1#![no_implicit_prelude]COMMENT
LOW…ges/yew-macro/tests/html_macro/as-return-value-pass.rs1#![no_implicit_prelude]COMMENT
LOWpackages/yew-macro/src/lib.rs1//! This crate provides Yew's procedural macro `html!` which allows using JSX-like syntaxCOMMENT
LOWpackages/yew-macro/src/lib.rs21//! # unimplemented!()COMMENT
LOWpackages/yew-macro/src/html_tree/mod.rs581/// to it, which lets us fall through cleanly whenever the next token run isCOMMENT
LOWpackages/yew-macro/src/html_tree/html_element.rs601 );COMMENT
LOWpackages/yew/tests/use_state.rs161 // deref_history fix: refcount was 2 → drops to 1 (still in Vec)COMMENT
LOWpackages/yew/tests/use_state.rs221 captured,COMMENT
LOWpackages/yew/src/lib.rs1#![allow(clippy::needless_doctest_main)]COMMENT
LOWpackages/yew/src/lib.rs21//!COMMENT
LOWpackages/yew/src/lib.rs41//! }COMMENT
LOWpackages/yew/src/lib.rs61//! html! {COMMENT
LOWpackages/yew/src/lib.rs81)]COMMENT
LOWpackages/yew/src/lib.rs101/// "three-beans",COMMENT
LOWpackages/yew/src/lib.rs121/// [`html_nested!`]: ./macro.html_nested.htmlCOMMENT
LOWpackages/yew/src/lib.rs141/// struct ListProps {COMMENT
LOWpackages/yew/src/lib.rs161/// # fn view(&self, ctx: &Context<Self>) -> Html { unimplemented!() }COMMENT
LOWpackages/yew/src/lib.rs181/// <ListItem/>COMMENT
LOWpackages/yew/src/lib.rs201/// can only contain elements of type `ListItem` using [`ChildrenRenderer<ListItem>`],COMMENT
LOWpackages/yew/src/lib.rs221/// # ExampleCOMMENT
LOWpackages/yew/src/lib.rs241/// }COMMENT
LOWpackages/yew/src/scheduler.rs361))]COMMENT
LOWpackages/yew/src/platform.rs1//! Yew's compatibility between JavaScript Runtime and Native Runtimes.COMMENT
LOWpackages/yew/src/platform.rs21//! randomly select a worker thread from the internal pool. All tasks spawned with `spawn_local`COMMENT
LOWpackages/yew/src/platform.rs41//! The Yew runtime is implemented with different runtimes depending on the target platform and canCOMMENT
LOWpackages/yew/src/server_renderer.rs41COMMENT
LOWpackages/yew/src/dom_bundle/blist.rs281 // lefts: | SSSSSSSS | ------ | EEEEEEEE |COMMENT
LOWpackages/yew/src/dom_bundle/blist.rs321 // or toCOMMENT
LOWpackages/yew/src/dom_bundle/subtree_root.rs81 NEXT_ROOT_ID.fetch_add(1, Ordering::SeqCst)COMMENT
LOWpackages/yew/src/dom_bundle/subtree_root.rs461 // # More details: When nesting occursCOMMENT
LOWpackages/yew/src/dom_bundle/position.rs201 // clone the terminal next-sibling out of the chain before invoking `f`. Invoking `f` withCOMMENT
LOWpackages/yew/src/dom_bundle/traits.rs21COMMENT
115 more matches not shown…
Verbosity Indicators5 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/yew/tests/use_state.rs148 // Step 1: dispatch. The RefCell now contains a *new* Rc whose onlyCOMMENT
LOWpackages/yew/tests/use_state.rs152 // Step 2: deref. In the original fix the Ref guard is droppedCOMMENT
LOWpackages/yew/tests/use_state.rs158 // Step 3: dispatch again. The RefCell's old Rc is replaced.COMMENT
LOWpackages/yew/tests/use_state.rs165 // Step 4: churn the allocator. Create and drop many heap objectsCOMMENT
LOWpackages/yew/tests/use_state.rs182 // Step 5: read through the potentially-dangling reference.COMMENT
Structural Annotation Overuse5 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/yew/tests/use_state.rs148 // Step 1: dispatch. The RefCell now contains a *new* Rc whose onlyCOMMENT
LOWpackages/yew/tests/use_state.rs152 // Step 2: deref. In the original fix the Ref guard is droppedCOMMENT
LOWpackages/yew/tests/use_state.rs158 // Step 3: dispatch again. The RefCell's old Rc is replaced.COMMENT
LOWpackages/yew/tests/use_state.rs165 // Step 4: churn the allocator. Create and drop many heap objectsCOMMENT
LOWpackages/yew/tests/use_state.rs182 // Step 5: read through the potentially-dangling reference.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALpackages/yew-macro/src/html_tree/mod.rs501 if comp.props.props.special.key.is_none() {CODE
Unused Imports5 hits · 5 pts
SeverityFileLineSnippetContext
LOWci/make_example_size_cmt.py1CODE
LOWci/make_benchmark_ssr_cmt.py1CODE
LOWci/make_benchmark_ssr_cmt.py1CODE
LOWci/collect_sizes.py1CODE
LOWci/collect_sizes.py1CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWwebsite/static/tutorial/data.json5 "speaker": "John Doe",CODE
LOW…ckages/yew-macro/tests/html_macro/html-element-pass.rs58 <input type="text" id="first-name" value="placeholder" />CODE
LOWpackages/yew/src/dom_bundle/position.rs100 /// A new "placeholder" [DomSlot] that should not be used to insert nodesCOMMENT
LOWpackages/yew/src/virtual_dom/vlist.rs235 vlist.add_child(VNode::VText(VText::new("lorem ipsum")));CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexamples/.cargo/dummy-min-size-config.toml1# This file is intentionally left empty.COMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/yew/src/lib.rs14//! - Supports JavaScript interoperability, allowing developers to leverage NPM packages andCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpackages/yew-router/src/hooks.rs28/// If your `Routable` has a `#[not_found]` route, you can use `.unwrap_or_default()` instead ofCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWwebsite/check-translations.js22async function checkSuperfluousTranslations() {CODE