Repository Analysis

actix/actix-web

Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

5.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of actix/actix-web, a Rust project with 24,731 GitHub stars. SynthScan v2.0 examined 93,917 lines of code across 381 source files, recording 508 pattern matches distributed across 6 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-07-11
Last Push
24.7K
Stars
Rust
Language
93.9K
Lines of Code
381
Files
508
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 1MEDIUM 11LOW 496

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 508 distinct pattern matches across 6 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 Block480 hits · 472 pts
SeverityFileLineSnippetContext
LOWactix-http/examples/tls_rustls.rs1//! Demonstrates TLS configuration (via Rustls) for HTTP/1.1 and HTTP/2 connections.COMMENT
LOWactix-http/src/error.rs181COMMENT
LOWactix-http/src/error.rs261COMMENT
LOWactix-http/src/config.rs21/// Default HTTP/1 response write buffer size.COMMENT
LOWactix-http/src/config.rs81COMMENT
LOWactix-http/src/lib.rs1//! HTTP types and services for the Actix ecosystem.COMMENT
LOWactix-http/src/service.rs41/// # Automatic HTTP Version SelectionCOMMENT
LOWactix-http/src/keep_alive.rs1use std::time::Duration;COMMENT
LOWactix-http/src/extensions.rs41 pub fn new() -> Extensions {COMMENT
LOWactix-http/src/extensions.rs61 .insert(TypeId::of::<T>(), Box::new(val))COMMENT
LOWactix-http/src/extensions.rs81 /// ```COMMENT
LOWactix-http/src/extensions.rs101 pub fn get_mut<T: 'static>(&mut self) -> Option<&mut T> {COMMENT
LOWactix-http/src/extensions.rs121 pub fn get_or_insert<T: 'static>(&mut self, value: T) -> &mut T {COMMENT
LOWactix-http/src/extensions.rs141 .entry(TypeId::of::<T>())COMMENT
LOWactix-http/src/extensions.rs161 pub fn remove<T: 'static>(&mut self) -> Option<T> {COMMENT
LOWactix-http/src/builder.rs101 /// Set client request timeout (for first request).COMMENT
LOWactix-http/src/builder.rs141 #[deprecated(since = "3.0.0", note = "Renamed to `client_disconnect_timeout`.")]COMMENT
LOWactix-http/src/responses/builder.rs21///COMMENT
LOWactix-http/src/responses/builder.rs61 ///COMMENT
LOWactix-http/src/responses/builder.rs101 }COMMENT
LOWactix-http/src/body/size.rs1/// Body size hint.COMMENT
LOWactix-http/src/body/size.rs21COMMENT
LOWactix-http/src/body/message_body.rs21/// - Empty body: `()`COMMENT
LOWactix-http/src/body/message_body.rs41/// fn size(&self) -> BodySize {COMMENT
LOWactix-http/src/body/message_body.rs61COMMENT
LOWactix-http/src/body/message_body.rs81 /// method again may panic, block forever, or cause other kinds of problems; this trait placesCOMMENT
LOWactix-http/src/body/either.rs21 /// middleware's own error responses use the default `Right` variant of `BoxBody`. Of course,COMMENT
LOWactix-http/src/body/utils.rs21/// use bytes::Bytes;COMMENT
LOWactix-http/src/body/utils.rs41#[display("limit exceeded while collecting body bytes")]COMMENT
LOWactix-http/src/body/utils.rs61/// assert!(bytes.is_empty());COMMENT
LOWactix-http/src/requests/request.rs181COMMENT
LOWactix-http/src/h1/decoder.rs501 ///COMMENT
LOWactix-http/src/h1/dispatcher.rs1021 "dispatcher should not be in keep-alive phase if state is not none: {:?}",COMMENT
LOWactix-http/src/h1/dispatcher.rs1101 return Ok(false);COMMENT
LOWactix-http/src/header/map.rs1//! A multi-value [`HeaderMap`] and its iterators.COMMENT
LOWactix-http/src/header/map.rs21///COMMENT
LOWactix-http/src/header/map.rs81COMMENT
LOWactix-http/src/header/map.rs101 HeaderMap::default()COMMENT
LOWactix-http/src/header/map.rs161 /// map.insert(header::ACCEPT, HeaderValue::from_static("text/plain"));COMMENT
LOWactix-http/src/header/map.rs181 ///COMMENT
LOWactix-http/src/header/map.rs201 /// map.insert(header::ACCEPT, HeaderValue::from_static("text/plain"));COMMENT
LOWactix-http/src/header/map.rs241 /// consistent for each call to `get` if the map has not changed.COMMENT
LOWactix-http/src/header/map.rs261 /// assert!(map.get(header::HOST).is_none());COMMENT
LOWactix-http/src/header/map.rs281 /// let mut map = HeaderMap::new();COMMENT
LOWactix-http/src/header/map.rs301 /// Returns an iterator over all values associated with a header name.COMMENT
LOWactix-http/src/header/map.rs321 /// assert!(set_cookies_iter.next().is_none());COMMENT
LOWactix-http/src/header/map.rs341 ///COMMENT
LOWactix-http/src/header/map.rs361 /// # use actix_http::header::{self, HeaderMap, HeaderValue};COMMENT
LOWactix-http/src/header/map.rs381 /// let removed = map.insert(header::ACCEPT, HeaderValue::from_static("text/plain"));COMMENT
LOWactix-http/src/header/map.rs401 /// let mut map = HeaderMap::new();COMMENT
LOWactix-http/src/header/map.rs421 }COMMENT
LOWactix-http/src/header/map.rs441 /// assert!(removed.next().is_none());COMMENT
LOWactix-http/src/header/map.rs461 Ok(Cow::Borrowed(name)) => self.inner.remove(name),COMMENT
LOWactix-http/src/header/map.rs481 /// assert!(map.is_empty());COMMENT
LOWactix-http/src/header/map.rs501 ///COMMENT
LOWactix-http/src/header/map.rs521 /// let mut iter = map.iter();COMMENT
LOWactix-http/src/header/map.rs541 }COMMENT
LOWactix-http/src/header/map.rs561 /// assert_eq!(keys.len(), 2);COMMENT
LOWactix-http/src/header/map.rs601COMMENT
LOWactix-http/src/header/common.rs1//! Common header names not defined in [`http`].COMMENT
420 more matches not shown…
Decorative Section Separators8 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMactix-web/src/middleware/mod.rs87//! ╭────────────────────┼────╮COMMENT
MEDIUMactix-web/src/middleware/mod.rs89//! │ ╭──────────────────┼───╮│COMMENT
MEDIUMactix-web/src/middleware/mod.rs91//! │ │ ╭────────────────┼──╮││COMMENT
MEDIUMactix-web/src/middleware/mod.rs93//! │ │ │ ╭──────────────┼─╮│││COMMENT
MEDIUMactix-web/src/middleware/mod.rs99//! │ │ │ ╰──────────────┼─╯│││COMMENT
MEDIUMactix-web/src/middleware/mod.rs100//! │ │ ╰────────────────┼──╯││COMMENT
MEDIUMactix-web/src/middleware/mod.rs101//! │ ╰──────────────────┼───╯│COMMENT
MEDIUMactix-web/src/middleware/mod.rs102//! ╰────────────────────┼────╯COMMENT
Fake / Example Data15 hits · 21 pts
SeverityFileLineSnippetContext
LOWactix-multipart/src/test.rs66/// Bytes::from_static(b"Lorem ipsum."),COMMENT
LOWactix-multipart/src/test.rs72/// assert!(find(&body, b"Lorem ipsum.").is_some());COMMENT
LOWactix-multipart/src/test.rs267 Bytes::from_static(b"Lorem ipsum dolor\nsit ame."),CODE
LOWactix-multipart/src/test.rs281 Lorem ipsum dolor\n\CODE
LOWactix-multipart/src/test.rs291 Bytes::from_static(b"Lorem ipsum dolor\nsit ame."),CODE
LOWactix-multipart/src/test.rs301 Lorem ipsum dolor\n\CODE
LOWactix-multipart/src/test.rs309 TestFormField::new("foo", Bytes::from_static(b"Lorem ipsum dolor\nsit ame.")),CODE
LOWactix-multipart/src/test.rs320 Lorem ipsum dolor\n\CODE
LOWactix-multipart/src/test.rs338 Bytes::from_static(b"Lorem ipsum dolor\nsit ame."),CODE
LOWactix-web/src/types/readlines.rs185 b"Lorem Ipsum is simply dummy text of the printing and typesetting\n\CODE
LOWactix-web/src/types/readlines.rs186 industry. Lorem Ipsum has been the industry's standard dummy\n\CODE
LOWactix-web/src/types/readlines.rs187 Contrary to popular belief, Lorem Ipsum is not simply random text.",CODE
LOWactix-web/src/types/readlines.rs194 "Lorem Ipsum is simply dummy text of the printing and typesetting\n"CODE
LOWactix-web/src/types/readlines.rs199 "industry. Lorem Ipsum has been the industry's standard dummy\n"CODE
LOWactix-web/src/types/readlines.rs204 "Contrary to popular belief, Lorem Ipsum is not simply random text."CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMactix-web/src/extract.rs22/// leverage extractors when implementing middlewares.COMMENT
MEDIUMactix-web/src/app.rs69 /// Any [`Data<T>`] type added here can utilize its extractor implementation in handlers.COMMENT
MEDIUMactix-web/src/guard/mod.rs9//! Fundamentally, a guard is a predicate function that receives a reference to a request contextCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHactix-web/src/web.rs107 #[doc = concat!(" In this example, one `", stringify!($method_const), " /{project_id}` route is set up:")]COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWactix-web/src/info.rs121 // TODO: implement https://datatracker.ietf.org/doc/html/rfc7239#section-5.1COMMENT