A batteries-included framework for building web apps
This report presents the forensic synthetic code analysis of tokio-rs/topcoat, a Rust project with 4,117 GitHub stars. SynthScan v2.0 examined 91,881 lines of code across 791 source files, recording 394 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 4.3 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).
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.
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.
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.
The scanner identified 394 distinct pattern matches across 2 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/topcoat-view/grammar/src/leading_cx.rs | 1 | use proc_macro2::TokenStream; | COMMENT |
| LOW | crates/topcoat-view/grammar/src/props.rs | 1 | use heck::ToSnakeCase; | COMMENT |
| LOW | crates/topcoat-view/grammar/src/props.rs | 41 | /// required fields. | COMMENT |
| LOW | crates/topcoat-view/grammar/src/props.rs | 321 | #[automatically_derived] | COMMENT |
| LOW | crates/topcoat-view/grammar/src/component.rs | 21 | /// | COMMENT |
| LOW | crates/topcoat-view/benches/render.rs | 1 | //! Micro-benchmarks for [`View::render`]. | COMMENT |
| LOW | crates/topcoat-view/src/format.rs | 1 | #[cfg(feature = "http")] | COMMENT |
| LOW | crates/topcoat-view/src/element.rs | 1 | use topcoat_core::context::Cx; | COMMENT |
| LOW | crates/topcoat-view/src/attribute.rs | 21 | COMMENT | |
| LOW | crates/topcoat-view/src/escape.rs | 1 | use core::fmt; | COMMENT |
| LOW | crates/topcoat-view/src/escape.rs | 21 | /// | `AttributeKey` | - | panic | panic | panic | see below | | COMMENT |
| LOW | crates/topcoat-view/src/escape.rs | 141 | COMMENT | |
| LOW | crates/topcoat-view/src/node.rs | 1 | #[cfg(feature = "http")] | COMMENT |
| LOW | crates/topcoat-view/src/node.rs | 101 | } | COMMENT |
| LOW | crates/topcoat-view/src/props.rs | 1 | /// A props struct with a generated typestate builder. | COMMENT |
| LOW | crates/topcoat-view/src/class.rs | 1 | use std::borrow::Cow; | COMMENT |
| LOW | crates/topcoat-view/src/class.rs | 301 | /// | COMMENT |
| LOW | crates/topcoat-view/src/unescaped.rs | 1 | use std::ops::Deref; | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 1 | use core::{fmt, fmt::Write as _}; | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 21 | /// <!-- Invalid: unclosed tag would corrupt the parent document --> | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 81 | /// A view declares response metadata by placing an | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 121 | pub struct RenderedResponse { | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 141 | /// Renders no content. | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 161 | I128(i128), | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 181 | #[non_exhaustive] | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 281 | Self::StatusCode(status_code) => f.record_status_code(*status_code), | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 321 | // Assume some characters escape into multi-byte sequences. | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 421 | ($method:ident, $ty:ty, $variant:ident) => { | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 441 | /// [`ElementNameViewParts`](crate::ElementNameViewParts), or | COMMENT |
| LOW | crates/topcoat-view/src/view.rs | 501 | /// | COMMENT |
| LOW | crates/topcoat-view/src/attribute/key.rs | 1 | use topcoat_core::context::Cx; | COMMENT |
| LOW | crates/topcoat-view/src/attribute/attributes.rs | 21 | impl Attributes { | COMMENT |
| LOW | crates/topcoat-view/src/attribute/value.rs | 1 | use topcoat_core::context::Cx; | COMMENT |
| LOW | crates/topcoat-view/src/attribute/value.rs | 21 | /// For [boolean HTML attributes], a false value must be omitted from the markup entirely. | COMMENT |
| LOW | crates/topcoat-router/src/response.rs | 21 | COMMENT | |
| LOW | crates/topcoat-router/src/response.rs | 41 | /// use topcoat::{ | COMMENT |
| LOW | crates/topcoat-router/src/response.rs | 61 | /// #[route(GET "/api/report.csv")] | COMMENT |
| LOW | crates/topcoat-router/src/response.rs | 81 | /// body element of an [`IntoResponse`] tuple to attach headers or extensions to | COMMENT |
| LOW | crates/topcoat-router/src/page.rs | 21 | /// [`RouterBuilder`](crate::RouterBuilder) alongside [`LayoutFn`]s, which wrap | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 21 | /// yourself for request-specific parsing the built-ins don't cover. | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 41 | /// # fn verify_signature(_signature: &str, _bytes: &[u8]) -> topcoat::Result<()> { Ok(()) } | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 61 | /// let signature = headers(cx) | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 121 | }) | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 141 | /// a value that is present but malformed. | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 161 | /// | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 181 | /// use topcoat::{context::Cx, router::request::method}; | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 201 | /// use topcoat::{context::Cx, router::request::uri}; | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 221 | /// use topcoat::{context::Cx, router::request::version}; | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 241 | /// use topcoat::{context::Cx, router::request::headers}; | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 261 | /// | COMMENT |
| LOW | crates/topcoat-router/src/request.rs | 281 | /// | COMMENT |
| LOW | crates/topcoat-router/src/body_limit.rs | 1 | use std::borrow::Cow; | COMMENT |
| LOW | crates/topcoat-router/src/body_limit.rs | 21 | /// Create the layer with [`max`](Self::max) or [`disable`](Self::disable) and | COMMENT |
| LOW | crates/topcoat-router/src/body_limit.rs | 101 | /// | COMMENT |
| LOW | crates/topcoat-router/src/body_limit.rs | 121 | /// | COMMENT |
| LOW | crates/topcoat-router/src/route.rs | 41 | /// The handler function that produces the response. | COMMENT |
| LOW | crates/topcoat-router/src/compression.rs | 1 | use std::{convert::Infallible, future::ready}; | COMMENT |
| LOW | crates/topcoat-router/src/compression.rs | 21 | /// content type is an image (except SVG), a gRPC message, or an event stream, | COMMENT |
| LOW | crates/topcoat-router/src/compression.rs | 41 | #[derive(Clone, Debug)] | COMMENT |
| LOW | crates/topcoat-router/src/error.rs | 101 | } | COMMENT |
| 333 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/topcoat-runtime/browser/src/view.ts | 12 | export function isAttributeValueViewParts( | CODE |