Repository Analysis

SeaQL/sea-orm

🐚 A powerful relational ORM for Rust

3.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of SeaQL/sea-orm, a Rust project with 9,791 GitHub stars. SynthScan v2.0 examined 218,446 lines of code across 1490 source files, recording 760 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 3.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).

3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
9.8K
Stars
Rust
Language
218.4K
Lines of Code
1.5K
Files
760
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 10LOW 750

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 760 distinct pattern matches across 9 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 Block703 hits · 631 pts
SeverityFileLineSnippetContext
LOWsea-orm-macros/src/lib.rs21}COMMENT
LOWsea-orm-macros/src/lib.rs41/// # pub id: i32,COMMENT
LOWsea-orm-macros/src/lib.rs61/// # }COMMENT
LOWsea-orm-macros/src/lib.rs81/// # }COMMENT
LOWsea-orm-macros/src/lib.rs101/// use sea_orm::entity::prelude::*;COMMENT
LOWsea-orm-macros/src/lib.rs121/// # }COMMENT
LOWsea-orm-macros/src/lib.rs221COMMENT
LOWsea-orm-macros/src/lib.rs241/// # fn table_name(&self) -> &'static str {COMMENT
LOWsea-orm-macros/src/lib.rs261/// # impl ColumnTrait for Column {COMMENT
LOWsea-orm-macros/src/lib.rs281/// # fn def(&self) -> RelationDef {COMMENT
LOWsea-orm-macros/src/lib.rs301/// The EnumIter is also derived, allowing iteration over all enum variants.COMMENT
LOWsea-orm-macros/src/lib.rs321 Err(e) => e.to_compile_error().into(),COMMENT
LOWsea-orm-macros/src/lib.rs341/// # pub struct Entity;COMMENT
LOWsea-orm-macros/src/lib.rs361/// # type ValueType = i32;COMMENT
LOWsea-orm-macros/src/lib.rs381/// #COMMENT
LOWsea-orm-macros/src/lib.rs401COMMENT
LOWsea-orm-macros/src/lib.rs421/// # "cake"COMMENT
LOWsea-orm-macros/src/lib.rs441/// # }COMMENT
LOWsea-orm-macros/src/lib.rs481/// an entity's ActiveModel but may omit some fields or provide optional values with defaults.COMMENT
LOWsea-orm-macros/src/lib.rs501///COMMENT
LOWsea-orm-macros/src/lib.rs521/// # pub cake_id: Option<i32>,COMMENT
LOWsea-orm-macros/src/lib.rs541/// # use sea_orm::entity::prelude::*;COMMENT
LOWsea-orm-macros/src/lib.rs561/// name: Option<String>,COMMENT
LOWsea-orm-macros/src/lib.rs581/// # }COMMENT
LOWsea-orm-macros/src/lib.rs601/// Models that a user can overrideCOMMENT
LOWsea-orm-macros/src/lib.rs621/// # "cake"COMMENT
LOWsea-orm-macros/src/lib.rs641/// # }COMMENT
LOWsea-orm-macros/src/lib.rs661/// # }COMMENT
LOWsea-orm-macros/src/lib.rs681/// # Macro AttributesCOMMENT
LOWsea-orm-macros/src/lib.rs701/// - For `string_value`, value should be passed as string, i.e. `string_value = "A"`COMMENT
LOWsea-orm-macros/src/lib.rs721#[proc_macro_derive(DeriveActiveEnum, attributes(sea_orm))]COMMENT
LOWsea-orm-macros/src/lib.rs741/// For more complete examples, please refer to https://github.com/SeaQL/sea-orm/blob/master/tests/from_query_result_tesCOMMENT
LOWsea-orm-macros/src/lib.rs761/// title: String,COMMENT
LOWsea-orm-macros/src/lib.rs781#[proc_macro_derive(FromQueryResult, attributes(sea_orm))]COMMENT
LOWsea-orm-macros/src/lib.rs801/// #[sea_orm(COMMENT
LOWsea-orm-macros/src/lib.rs821 .into()COMMENT
LOWsea-orm-macros/src/lib.rs841/// #[sea_orm(entity = "super::rental::Entity")]COMMENT
LOWsea-orm-macros/src/lib.rs861///COMMENT
LOWsea-orm-macros/src/lib.rs901///COMMENT
LOWsea-orm-macros/src/lib.rs921/// # impl ActiveModelBehavior for ActiveModel {}COMMENT
LOWsea-orm-macros/src/lib.rs941///COMMENT
LOWsea-orm-macros/src/lib.rs961/// # #[sea_orm(primary_key)]COMMENT
LOWsea-orm-macros/src/lib.rs981/// # impl ActiveModelBehavior for ActiveModel {}COMMENT
LOWsea-orm-macros/src/lib.rs1001/// }COMMENT
LOWsea-orm-macros/src/lib.rs1021/// ```COMMENT
LOWsea-orm-macros/src/lib.rs1041/// LEFT JOIN "bakery" AS "factory" ON "cake"."bakery_id" = "factory"."id"COMMENT
LOWsea-orm-macros/src/lib.rs1061/// # pub enum Relation {}COMMENT
LOWsea-orm-macros/src/lib.rs1081/// struct Worker {COMMENT
LOWsea-orm-macros/src/lib.rs1101/// .join_as(JoinType::LeftJoin, bakery::Relation::Cashier.def(), "cashier")COMMENT
LOWsea-orm-macros/src/lib.rs1121/// ```compile_failCOMMENT
LOWsea-orm-macros/src/lib.rs1201 strum::enum_iter::enum_iter_inner(&ast)COMMENT
LOWsea-orm-macros/src/lib.rs1221///COMMENT
LOWsea-orm-macros/src/lib.rs1241/// Soft,COMMENT
LOWsea-orm-macros/src/lib.rs1261/// Ok(match s {COMMENT
LOWsea-orm-macros/src/lib.rs1281/// )]COMMENT
LOWsea-orm-macros/src/lib.rs1321 }COMMENT
LOWsea-orm-macros/src/lib.rs1341/// struct MyOther;COMMENT
LOWsea-orm-macros/src/lib.rs1361/// that returns an Apache Arrow schema from a SeaORM entity definition.COMMENT
LOWsea-orm-macros/src/derives/util.rs241}COMMENT
LOWsea-orm-macros/src/derives/util.rs261/// - `"A_ B"`COMMENT
643 more matches not shown…
Self-Referential Comments8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMsea-orm-sync/src/entity/mod.rs24//! # Defining an Entity (2.0 dense format)COMMENT
MEDIUMsea-orm-sync/src/entity/mod.rs66//! # Defining an Entity (1.0 compact format)COMMENT
MEDIUMexamples/loco_seaography/config/development.yaml11 # Define the logging format. options: compact, pretty or JsonCOMMENT
MEDIUMexamples/loco_starter/config/development.yaml11 # Define the logging format. options: compact, pretty or JsonCOMMENT
MEDIUMexamples/loco_example/config/development.yaml9 # Define the logging format. options: compact, pretty or JsonCOMMENT
MEDIUMexamples/react_admin/backend/config/development.yaml11 # Define the logging format. options: compact, pretty or JsonCOMMENT
MEDIUMsrc/entity/mod.rs24//! # Defining an Entity (2.0 dense format)COMMENT
MEDIUMsrc/entity/mod.rs66//! # Defining an Entity (1.0 compact format)COMMENT
Fake / Example Data20 hits · 20 pts
SeverityFileLineSnippetContext
LOWsea-orm-sync/examples/quickstart/src/main.rs230 .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"),CODE
LOWsea-orm-sync/examples/quickstart/src/main.rs230 .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"),CODE
LOWsea-orm-sync/examples/quickstart/src/main.rs248 assert!(bob.posts[0].title.starts_with("Lorem ipsum"));CODE
LOWsea-orm-sync/examples/quickstart/src/main.rs289 assert!(posts[0].title.starts_with("Lorem ipsum"));CODE
LOWsea-orm-sync/examples/quickstart/src/main.rs304 post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten itCODE
LOWsea-orm-sync/examples/quickstart/src/main.rs304 post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten itCODE
LOWsea-orm-sync/examples/quickstart/src/main.rs315 assert_eq!(post.title, "Lorem ipsum dolor sit amet");CODE
LOWsea-orm-sync/examples/quickstart/src/main.rs315 assert_eq!(post.title, "Lorem ipsum dolor sit amet");CODE
LOWsea-orm-sync/src/value.rs105 match V::try_from(V::null().dummy_value()) {CODE
LOWexamples/quickstart/src/main.rs237 .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"),CODE
LOWexamples/quickstart/src/main.rs237 .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"),CODE
LOWexamples/quickstart/src/main.rs256 assert!(bob.posts[0].title.starts_with("Lorem ipsum"));CODE
LOWexamples/quickstart/src/main.rs299 assert!(posts[0].title.starts_with("Lorem ipsum"));CODE
LOWexamples/quickstart/src/main.rs314 post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten itCODE
LOWexamples/quickstart/src/main.rs314 post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten itCODE
LOWexamples/quickstart/src/main.rs326 assert_eq!(post.title, "Lorem ipsum dolor sit amet");CODE
LOWexamples/quickstart/src/main.rs326 assert_eq!(post.title, "Lorem ipsum dolor sit amet");CODE
LOWexamples/react_admin/frontend/src/users.json7 "fullName": "Jane Doe",CODE
LOWexamples/react_admin/frontend/src/users.json14 "fullName": "John Doe",CODE
LOWsrc/value.rs105 match V::try_from(V::null().dummy_value()) {CODE
Structural Annotation Overuse12 hits · 18 pts
SeverityFileLineSnippetContext
LOWsea-orm-sync/examples/pi_spigot/README.md24### Step 1: Define your state as a SeaORM entityCOMMENT
LOWsea-orm-sync/examples/pi_spigot/README.md52### Step 2: Write `to_state` / `from_state`COMMENT
LOWsea-orm-sync/examples/pi_spigot/README.md77### Step 3: Checkpoint with transactionsCOMMENT
LOWsea-orm-sync/examples/pi_spigot/README.md91### Step 4: Resume on startupCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs34 // Step 1: Generate 100 random rowsCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs63 // Step 2: Convert to Arrow RecordBatch and write to ParquetCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs83 // Step 3: Read the Parquet file back into a RecordBatchCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs105 // Step 4: Dump into SQLiteCOMMENT
LOWexamples/parquet_example/src/main.rs35 // Step 1: Generate 100 random rowsCOMMENT
LOWexamples/parquet_example/src/main.rs64 // Step 2: Convert to Arrow RecordBatch and write to ParquetCOMMENT
LOWexamples/parquet_example/src/main.rs84 // Step 3: Read the Parquet file back into a RecordBatchCOMMENT
LOWexamples/parquet_example/src/main.rs106 // Step 4: Dump into SQLiteCOMMENT
Slop Phrases6 hits · 14 pts
SeverityFileLineSnippetContext
LOWexamples/rocket_okapi_example/Rocket.toml6# make sure to enable "sqlx-mysql" feature in Cargo.toml, i.e default = ["sqlx-mysql"]COMMENT
LOWexamples/rocket_okapi_example/Rocket.toml10# make sure to enable "sqlx-postgres" feature in Cargo.toml, i.e default = ["sqlx-postgres"]COMMENT
LOWexamples/rocket_okapi_example/Rocket.toml14# make sure to enable "sqlx-sqlite" feature in Cargo.toml, i.e default = ["sqlx-sqlite"]COMMENT
LOWexamples/rocket_example/Rocket.toml6# make sure to enable "sqlx-mysql" feature in Cargo.toml, i.e default = ["sqlx-mysql"]COMMENT
LOWexamples/rocket_example/Rocket.toml10# make sure to enable "sqlx-postgres" feature in Cargo.toml, i.e default = ["sqlx-postgres"]COMMENT
LOWexamples/rocket_example/Rocket.toml14# make sure to enable "sqlx-sqlite" feature in Cargo.toml, i.e default = ["sqlx-sqlite"]COMMENT
Verbosity Indicators8 hits · 12 pts
SeverityFileLineSnippetContext
LOWsea-orm-sync/examples/parquet_example/src/main.rs34 // Step 1: Generate 100 random rowsCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs63 // Step 2: Convert to Arrow RecordBatch and write to ParquetCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs83 // Step 3: Read the Parquet file back into a RecordBatchCOMMENT
LOWsea-orm-sync/examples/parquet_example/src/main.rs105 // Step 4: Dump into SQLiteCOMMENT
LOWexamples/parquet_example/src/main.rs35 // Step 1: Generate 100 random rowsCOMMENT
LOWexamples/parquet_example/src/main.rs64 // Step 2: Convert to Arrow RecordBatch and write to ParquetCOMMENT
LOWexamples/parquet_example/src/main.rs84 // Step 3: Read the Parquet file back into a RecordBatchCOMMENT
LOWexamples/parquet_example/src/main.rs106 // Step 4: Dump into SQLiteCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsea-orm-macros/src/derives/attributes.rs106 /// will utilize `impl Related` traitCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/rust.yml3# --------------------------------------------------------------------------------COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsea-orm-macros/src/lib.rs483/// ## Usage:COMMENT