Repository Analysis

tokio-rs/toasty

An async ORM for Rust

6.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tokio-rs/toasty, a Rust project with 3,053 GitHub stars. SynthScan v2.0 examined 184,473 lines of code across 1005 source files, recording 1145 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 6.4 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.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-08-24
Last Push
3.1K
Stars
Rust
Language
184.5K
Lines of Code
1.0K
Files
1.1K
Pattern Hits
2026-08-29
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 4HIGH 0MEDIUM 23LOW 1118

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 1145 distinct pattern matches across 8 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 Block1039 hits · 978 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
LOW…es/toasty-driver-integration-suite-macros/src/parse.rs41/// A `Capability` states what a backend can do, and the engine reads it toCOMMENT
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.rs341COMMENT
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.rs41/// Schema definitions spanning the app layer, database layer, and the mappingCOMMENT
LOWcrates/toasty-core/src/lib.rs61/// return Err(toasty_core::Error::invalid_schema("name must not be empty"));COMMENT
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 ///COMMENT
LOWcrates/toasty-core/src/migration.rs1use crate::{Error, Result};COMMENT
LOWcrates/toasty-core/src/migration.rs21/// ```COMMENT
LOWcrates/toasty-core/src/migration.rs41#[derive(Debug, Clone, Serialize, Deserialize)]COMMENT
LOWcrates/toasty-core/src/migration.rs61///COMMENT
LOWcrates/toasty-core/src/migration.rs121 ///COMMENT
LOWcrates/toasty-core/src/driver.rs1//! Database driver interface for Toasty.COMMENT
LOWcrates/toasty-core/src/driver.rs21//!COMMENT
LOWcrates/toasty-core/src/driver.rs41//! the remaining idle connections and drops any that also fail. AnyCOMMENT
LOWcrates/toasty-core/src/driver.rs81COMMENT
LOWcrates/toasty-core/src/driver.rs101 /// and consult it on every operation.COMMENT
LOWcrates/toasty-core/src/driver.rs121/// assert!(capability.sql());COMMENT
LOWcrates/toasty-core/src/driver.rs141 /// this is `Some(1)` for the in-memory SQLite driver which cannot be pooled.COMMENT
LOWcrates/toasty-core/src/driver.rs161/// # ExamplesCOMMENT
LOWcrates/toasty-core/src/driver.rs181 /// mappings) is an engine concept that a driver never consults.COMMENT
LOWcrates/toasty-core/src/driver.rs201 /// to the idle set. A `false` result causes the slot to be droppedCOMMENT
LOWcrates/toasty-core/src/driver.rs221 /// When `pool_pre_ping` is enabled, the pool also calls it on everyCOMMENT
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
979 more matches not shown…
Fake / Example Data73 hits · 83 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.rs209 .item(User::create().email("user@example.com"))CODE
LOW…river-integration-suite/src/tests/crud_batch_create.rs210 .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.rs186 number: "555-1234".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs204 number: "555-1234".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs472 email: "user@example.com".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs480 street: "123 Main St".to_string(),CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs491 email: "user@example.com".to_string()CODE
LOW…-driver-integration-suite/src/tests/embed_enum_data.rs500 street: "123 Main St".to_string(),CODE
LOW…ion-suite/src/tests/embed_enum_filter_variant_field.rs40 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.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.rs602 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs611 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs624 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs632 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs648 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs656 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1010 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1020 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1030 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1099 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1121 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1141 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1161 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1179 street: "123 Main St".to_string(),CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1196 street: "123 Main St",CODE
LOW…sty-driver-integration-suite/src/tests/embed_struct.rs1213 street: "123 Main St",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
LOW…y-driver-integration-suite/src/tests/deferred_embed.rs150 assert_eq!("555-0100", number);CODE
LOW…river-integration-suite/src/tests/embed_enum_filter.rs19 number: "555-1234".to_string(),CODE
LOW…river-integration-suite/src/tests/embed_enum_filter.rs77 .matches(|e| e.number().eq("555-1234")),CODE
13 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.rs104// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs118// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs120// ── Base table tests (composite partition + sort key) ────────────────────────COMMENT
MEDIUMtests/tests/dynamodb.rs239// ── 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
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALcrates/toasty/src/engine/plan/statement.rs1061 let column = self.planner.engine.schema.db.column(column_id);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs1078 let table = self.planner.engine.schema.db.table(target.table);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs2228 let table = self.planner.engine.schema.db.table(table);CODE
CRITICALcrates/toasty/src/engine/plan/statement.rs2229 let primary_key = self.planner.engine.schema.db.index(table.primary_key.index);CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/toasty-driver-postgresql/src/lib.rs279 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs291 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs312 // 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.rs279 // Step 1: Connect to the target DB and create a temp DBCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs291 // Step 2: Connect to the temp DB, drop and recreate the targetCOMMENT
LOWcrates/toasty-driver-postgresql/src/lib.rs312 // 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.rs666 // 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