Repository Analysis

tokio-rs/toasty

An async ORM for Rust

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tokio-rs/toasty, a Rust project with 2,733 GitHub stars. SynthScan v2.0 examined 171,328 lines of code across 938 source files, recording 1098 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 6.5 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).

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.7K
Stars
Rust
Language
171.3K
Lines of Code
938
Files
1.1K
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 23LOW 1075

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 1098 distinct pattern matches across 7 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 Block992 hits · 939 pts
SeverityFileLineSnippetContext
LOWcompose.yaml1# Docker Compose file to start all database management systems supported by Toasty.COMMENT
LOWcrates/toasty-cli/src/config.rs1use crate::migration::MigrationConfig;COMMENT
LOWcrates/toasty-cli/src/config.rs21/// MigrationConfig::new()COMMENT
LOWcrates/toasty-cli/src/lib.rs1#![warn(missing_docs)]COMMENT
LOWcrates/toasty-cli/src/lib.rs21//! read and write the TOML history that tracks which migrations exist.COMMENT
LOWcrates/toasty-cli/src/lib.rs41pub use migration::{COMMENT
LOWcrates/toasty-cli/src/migration/config.rs1use serde::{Deserialize, Serialize};COMMENT
LOWcrates/toasty-cli/src/migration/config.rs21/// .prefix_style(MigrationPrefixStyle::Timestamp);COMMENT
LOWcrates/toasty-cli/src/migration/config.rs41 /// Style of migration file prefixesCOMMENT
LOWcrates/toasty-cli/src/migration/config.rs61/// # ExamplesCOMMENT
LOWcrates/toasty-cli/src/migration/generate.rs21/// the most recent snapshot. If there are differences, generates a SQLCOMMENT
LOWcrates/toasty-core/tests/stmt_eval_project.rs241 expr.eval(ConstInput::new()).unwrap(),COMMENT
LOWcrates/toasty-core/tests/stmt_eval_unimplemented.rs1//! Tests for expression variants that either:COMMENT
LOWcrates/toasty-core/src/stmt.rs1//! Statement AST types for Toasty's query compilation pipeline.COMMENT
LOWcrates/toasty-core/src/stmt.rs321/// A `Statement` is the primary input to the query engine's compilationCOMMENT
LOWcrates/toasty-core/src/error.rs41use invalid_type_conversion::InvalidTypeConversion;COMMENT
LOWcrates/toasty-core/src/error.rs61///COMMENT
LOWcrates/toasty-core/src/error.rs81/// This is used by [`Error::context`] to accept either an `Error` directly orCOMMENT
LOWcrates/toasty-core/src/error.rs121 ReadOnlyTransaction(ReadOnlyTransaction),COMMENT
LOWcrates/toasty-core/src/error.rs141 /// Panics if `consequent` already has a cause attached.COMMENT
LOWcrates/toasty-core/src/lib.rs1//! Core types and abstractions for the Toasty ORM.COMMENT
LOWcrates/toasty-core/src/lib.rs41COMMENT
LOWcrates/toasty-core/src/schema.rs1//! Schema representation for Toasty, split into three layers.COMMENT
LOWcrates/toasty-core/src/schema.rs41mod name;COMMENT
LOWcrates/toasty-core/src/schema.rs61/// for (id, model) in &schema.app.models {COMMENT
LOWcrates/toasty-core/src/schema.rs81 ///COMMENT
LOWcrates/toasty-core/src/schema.rs101 /// ```ignoreCOMMENT
LOWcrates/toasty-core/src/driver.rs1//! Database driver interface for Toasty.COMMENT
LOWcrates/toasty-core/src/driver.rs21//! ```textCOMMENT
LOWcrates/toasty-core/src/driver.rs41//!COMMENT
LOWcrates/toasty-core/src/driver.rs81/// can apply configuration at construction time rather than through separateCOMMENT
LOWcrates/toasty-core/src/driver.rs101///COMMENT
LOWcrates/toasty-core/src/driver.rs141 ///COMMENT
LOWcrates/toasty-core/src/driver.rs161#[async_trait]COMMENT
LOWcrates/toasty-core/src/driver.rs181 ///COMMENT
LOWcrates/toasty-core/src/driver.rs201 /// signal stay on this default and rely on the active path: anCOMMENT
LOWcrates/toasty-core/src/driver.rs221 /// any other error variant from `ping` will leak a dead connectionCOMMENT
LOWcrates/toasty-core/src/macros.rs1/// Constructs a [`stmt::Path`](crate::stmt::Path) from a dot-separatedCOMMENT
LOWcrates/toasty-core/src/stmt/expr_all_op.rs1use super::{BinaryOp, Expr};COMMENT
LOWcrates/toasty-core/src/stmt/source_table.rs1use crate::stmt::{ExprArg, Source, SourceTableId, TableFactor};COMMENT
LOWcrates/toasty-core/src/stmt/func_json_extract.rs1use super::{Expr, ExprFunc, Type};COMMENT
LOWcrates/toasty-core/src/stmt/join.rs1use super::{Expr, SourceTableId};COMMENT
LOWcrates/toasty-core/src/stmt/join.rs21 pub table: SourceTableId,COMMENT
LOWcrates/toasty-core/src/stmt/func_count.rs1use super::{Expr, ExprFunc};COMMENT
LOWcrates/toasty-core/src/stmt/expr_func.rs1use super::{Expr, FuncCount, FuncJsonExtract, FuncLastInsertId};COMMENT
LOWcrates/toasty-core/src/stmt/limit.rs1use super::Expr;COMMENT
LOWcrates/toasty-core/src/stmt/limit.rs21/// Cursor-based pagination parameters.COMMENT
LOWcrates/toasty-core/src/stmt/expr_set_op.rs1use super::{ExprSet, SetOp};COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs1use crate::{COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs21 /// A reference to a column in a database-level statement.COMMENT
LOWcrates/toasty-core/src/stmt/expr_reference.rs41 ///COMMENT
LOWcrates/toasty-core/src/stmt/num.rs1//! Numeric type support for [`Value`], [`Expr`], and [`Type`].COMMENT
LOWcrates/toasty-core/src/stmt/op_set.rs1use std::fmt;COMMENT
LOWcrates/toasty-core/src/stmt/document_storage_text.rs1use std::fmt;COMMENT
LOWcrates/toasty-core/src/stmt/document_storage_text.rs41COMMENT
LOWcrates/toasty-core/src/stmt/order_by_expr.rs1use super::{Direction, Expr};COMMENT
LOWcrates/toasty-core/src/stmt/insert_table.rs1use super::InsertTarget;COMMENT
LOWcrates/toasty-core/src/stmt/value_stream.rs21/// [`typed`](ValueStream::typed), every yielded value is checked atCOMMENT
LOWcrates/toasty-core/src/stmt/value_stream.rs221 assert!(self.stream.is_none());COMMENT
LOWcrates/toasty-core/src/stmt/expr_or.rs1use super::Expr;COMMENT
932 more matches not shown…
Fake / Example Data77 hits · 87 pts
SeverityFileLineSnippetContext
LOWREADME.md80 name: "John Doe",CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs151 number: "555-0100".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs160 number: "555-0100".into()CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs209 number: "555-0100".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs218 number: "555-0100".into()CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs265 number: "555-0200".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs283 number: "555-0200".into()CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs291 number: "555-0300".into(),CODE
LOW…tion-suite/src/tests/embed_enum_string_discriminant.rs300 number: "555-0300".into()CODE
LOW…river-integration-suite/src/tests/crud_batch_create.rs138 .item(User::create().email("user@example.com"))CODE
LOW…river-integration-suite/src/tests/crud_batch_create.rs139 .item(User::create().email("user@example.com"))CODE
LOW…r-integration-suite/src/tests/relation_has_one_crud.rs8 let user = User::create().name("Jane Doe").exec(&mut db).await?;CODE
LOW…r-integration-suite/src/tests/relation_has_one_crud.rs302 let user = User::create().name("Jane Doe").exec(&mut db).await?;CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs120 number: "555-1234".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs138 number: "555-1234".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs406 email: "user@example.com".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs414 street: "123 Main St".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs425 email: "user@example.com".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs434 street: "123 Main St".to_string(),CODE
LOW…ion-suite/src/tests/embed_enum_filter_variant_field.rs20 number: "555-1234".to_string(),CODE
LOW…ion-suite/src/tests/embed_enum_filter_variant_field.rs51 .matches(|e| e.number().eq("555-1234")),CODE
LOW…ion-suite/src/tests/embed_enum_filter_variant_field.rs111 number: "555-1234".to_string(),CODE
LOW…driver-integration-suite/src/tests/embed_enum_index.rs121 number: "555-1234".to_string(),CODE
LOW…integration-suite/src/tests/select_projection_embed.rs30 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs963 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs973 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs983 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs162 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs170 assert_eq!(found.address.street, "123 Main St");CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs258 ("USA", "Alice", "123 Main St", "Seattle", "98101"),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs555 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs564 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs577 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs585 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs601 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs609 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1052 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1074 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1094 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1114 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1132 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1149 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1166 street: "123 Main St",CODE
LOW…ration-suite/src/tests/embed_enum_filter_comparison.rs81 number: "555-1234".to_string(),CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs400 .email("user@example.com")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs401 .name("John Doe")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs409 user.update().name("Jane Doe").exec(&mut db).await?;CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs411 assert_eq!("Jane Doe", user.name);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs427 email: "user@example.com",CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs428 name: "John Doe",CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs437 .email("user@example.com")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs438 .name("Jane Doe")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs442 assert_eq!("user@example.com", user.email);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs443 assert_eq!("Jane Doe", user.name);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs461 .name("John Doe")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs468 .name("Jane Doe")CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs473 assert_eq!("Jane Doe", user.name);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs477 assert_eq!("Jane Doe", user.name);CODE
LOW…oasty-driver-integration-suite/src/tests/crud_basic.rs498 let user = User::create().name("John Doe").exec(&mut db).await?;CODE
LOW…y-driver-integration-suite/src/tests/deferred_embed.rs123 number: "555-0100".to_string(),CODE
17 more matches not shown…
Decorative Section Separators21 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUMcrates/toasty/src/engine/index/tests.rs294// ── key_values extraction ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/toasty/src/engine/lower/include.rs32//! └────────────────────────────────── └── enum → process_enum_armsCOMMENT
MEDIUMtests/tests/dynamodb.rs93// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs107// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs109// ── Base table tests (composite partition + sort key) ────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs228// ── GSI tests (non-unique index on a UUID-keyed model) ───────────────────────COMMENT
MEDIUMscripts/claude-triage-pr.sh5# ------------COMMENT
MEDIUMscripts/claude-triage-pr.sh51# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh53# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh56# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh63# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh83# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh87# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh136# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh139# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh162# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh164# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh177# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh180# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh199# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/claude-triage-pr.sh201# ---------------------------------------------------------------------------COMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/toasty-driver-postgresql/src/lib.rs277 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs289 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs310 // Step 3: Connect back to the target and clean up the temp DBCOMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/toasty-driver-postgresql/src/lib.rs277 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs289 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs310 // Step 3: Connect back to the target and clean up the temp DBCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/toasty/src/engine/plan/statement.rs579 // If targeting SQL, leverage the SQL query engine to handle most of the rewrite details.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/labels.yml3# This file is the source of truth for repository labels. It is synced byCOMMENT