🐚 A powerful relational ORM for Rust
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).
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.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sea-orm-macros/src/lib.rs | 21 | } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 41 | /// # pub id: i32, | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 61 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 81 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 101 | /// use sea_orm::entity::prelude::*; | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 121 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 221 | COMMENT | |
| LOW | sea-orm-macros/src/lib.rs | 241 | /// # fn table_name(&self) -> &'static str { | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 261 | /// # impl ColumnTrait for Column { | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 281 | /// # fn def(&self) -> RelationDef { | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 301 | /// The EnumIter is also derived, allowing iteration over all enum variants. | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 321 | Err(e) => e.to_compile_error().into(), | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 341 | /// # pub struct Entity; | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 361 | /// # type ValueType = i32; | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 381 | /// # | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 401 | COMMENT | |
| LOW | sea-orm-macros/src/lib.rs | 421 | /// # "cake" | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 441 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 481 | /// an entity's ActiveModel but may omit some fields or provide optional values with defaults. | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 501 | /// | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 521 | /// # pub cake_id: Option<i32>, | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 541 | /// # use sea_orm::entity::prelude::*; | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 561 | /// name: Option<String>, | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 581 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 601 | /// Models that a user can override | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 621 | /// # "cake" | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 641 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 661 | /// # } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 681 | /// # Macro Attributes | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 701 | /// - For `string_value`, value should be passed as string, i.e. `string_value = "A"` | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 721 | #[proc_macro_derive(DeriveActiveEnum, attributes(sea_orm))] | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 741 | /// For more complete examples, please refer to https://github.com/SeaQL/sea-orm/blob/master/tests/from_query_result_tes | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 761 | /// title: String, | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 781 | #[proc_macro_derive(FromQueryResult, attributes(sea_orm))] | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 801 | /// #[sea_orm( | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 821 | .into() | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 841 | /// #[sea_orm(entity = "super::rental::Entity")] | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 861 | /// | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 901 | /// | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 921 | /// # impl ActiveModelBehavior for ActiveModel {} | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 941 | /// | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 961 | /// # #[sea_orm(primary_key)] | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 981 | /// # impl ActiveModelBehavior for ActiveModel {} | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1001 | /// } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1021 | /// ``` | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1041 | /// LEFT JOIN "bakery" AS "factory" ON "cake"."bakery_id" = "factory"."id" | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1061 | /// # pub enum Relation {} | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1081 | /// struct Worker { | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1101 | /// .join_as(JoinType::LeftJoin, bakery::Relation::Cashier.def(), "cashier") | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1121 | /// ```compile_fail | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1201 | strum::enum_iter::enum_iter_inner(&ast) | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1221 | /// | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1241 | /// Soft, | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1261 | /// Ok(match s { | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1281 | /// )] | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1321 | } | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1341 | /// struct MyOther; | COMMENT |
| LOW | sea-orm-macros/src/lib.rs | 1361 | /// that returns an Apache Arrow schema from a SeaORM entity definition. | COMMENT |
| LOW | sea-orm-macros/src/derives/util.rs | 241 | } | COMMENT |
| LOW | sea-orm-macros/src/derives/util.rs | 261 | /// - `"A_ B"` | COMMENT |
| 643 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sea-orm-sync/src/entity/mod.rs | 24 | //! # Defining an Entity (2.0 dense format) | COMMENT |
| MEDIUM | sea-orm-sync/src/entity/mod.rs | 66 | //! # Defining an Entity (1.0 compact format) | COMMENT |
| MEDIUM | examples/loco_seaography/config/development.yaml | 11 | # Define the logging format. options: compact, pretty or Json | COMMENT |
| MEDIUM | examples/loco_starter/config/development.yaml | 11 | # Define the logging format. options: compact, pretty or Json | COMMENT |
| MEDIUM | examples/loco_example/config/development.yaml | 9 | # Define the logging format. options: compact, pretty or Json | COMMENT |
| MEDIUM | examples/react_admin/backend/config/development.yaml | 11 | # Define the logging format. options: compact, pretty or Json | COMMENT |
| MEDIUM | src/entity/mod.rs | 24 | //! # Defining an Entity (2.0 dense format) | COMMENT |
| MEDIUM | src/entity/mod.rs | 66 | //! # Defining an Entity (1.0 compact format) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 230 | .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"), | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 230 | .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"), | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 248 | assert!(bob.posts[0].title.starts_with("Lorem ipsum")); | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 289 | assert!(posts[0].title.starts_with("Lorem ipsum")); | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 304 | post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten it | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 304 | post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten it | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 315 | assert_eq!(post.title, "Lorem ipsum dolor sit amet"); | CODE |
| LOW | sea-orm-sync/examples/quickstart/src/main.rs | 315 | assert_eq!(post.title, "Lorem ipsum dolor sit amet"); | CODE |
| LOW | sea-orm-sync/src/value.rs | 105 | match V::try_from(V::null().dummy_value()) { | CODE |
| LOW | examples/quickstart/src/main.rs | 237 | .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"), | CODE |
| LOW | examples/quickstart/src/main.rs | 237 | .set_title("Lorem ipsum dolor sit amet, consectetur adipiscing elit"), | CODE |
| LOW | examples/quickstart/src/main.rs | 256 | assert!(bob.posts[0].title.starts_with("Lorem ipsum")); | CODE |
| LOW | examples/quickstart/src/main.rs | 299 | assert!(posts[0].title.starts_with("Lorem ipsum")); | CODE |
| LOW | examples/quickstart/src/main.rs | 314 | post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten it | CODE |
| LOW | examples/quickstart/src/main.rs | 314 | post.title = Set("Lorem ipsum dolor sit amet".into()); // shorten it | CODE |
| LOW | examples/quickstart/src/main.rs | 326 | assert_eq!(post.title, "Lorem ipsum dolor sit amet"); | CODE |
| LOW | examples/quickstart/src/main.rs | 326 | assert_eq!(post.title, "Lorem ipsum dolor sit amet"); | CODE |
| LOW | examples/react_admin/frontend/src/users.json | 7 | "fullName": "Jane Doe", | CODE |
| LOW | examples/react_admin/frontend/src/users.json | 14 | "fullName": "John Doe", | CODE |
| LOW | src/value.rs | 105 | match V::try_from(V::null().dummy_value()) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sea-orm-sync/examples/pi_spigot/README.md | 24 | ### Step 1: Define your state as a SeaORM entity | COMMENT |
| LOW | sea-orm-sync/examples/pi_spigot/README.md | 52 | ### Step 2: Write `to_state` / `from_state` | COMMENT |
| LOW | sea-orm-sync/examples/pi_spigot/README.md | 77 | ### Step 3: Checkpoint with transactions | COMMENT |
| LOW | sea-orm-sync/examples/pi_spigot/README.md | 91 | ### Step 4: Resume on startup | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 34 | // Step 1: Generate 100 random rows | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 63 | // Step 2: Convert to Arrow RecordBatch and write to Parquet | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 83 | // Step 3: Read the Parquet file back into a RecordBatch | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 105 | // Step 4: Dump into SQLite | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 35 | // Step 1: Generate 100 random rows | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 64 | // Step 2: Convert to Arrow RecordBatch and write to Parquet | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 84 | // Step 3: Read the Parquet file back into a RecordBatch | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 106 | // Step 4: Dump into SQLite | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | examples/rocket_okapi_example/Rocket.toml | 6 | # make sure to enable "sqlx-mysql" feature in Cargo.toml, i.e default = ["sqlx-mysql"] | COMMENT |
| LOW⚡ | examples/rocket_okapi_example/Rocket.toml | 10 | # make sure to enable "sqlx-postgres" feature in Cargo.toml, i.e default = ["sqlx-postgres"] | COMMENT |
| LOW⚡ | examples/rocket_okapi_example/Rocket.toml | 14 | # make sure to enable "sqlx-sqlite" feature in Cargo.toml, i.e default = ["sqlx-sqlite"] | COMMENT |
| LOW⚡ | examples/rocket_example/Rocket.toml | 6 | # make sure to enable "sqlx-mysql" feature in Cargo.toml, i.e default = ["sqlx-mysql"] | COMMENT |
| LOW⚡ | examples/rocket_example/Rocket.toml | 10 | # make sure to enable "sqlx-postgres" feature in Cargo.toml, i.e default = ["sqlx-postgres"] | COMMENT |
| LOW⚡ | examples/rocket_example/Rocket.toml | 14 | # make sure to enable "sqlx-sqlite" feature in Cargo.toml, i.e default = ["sqlx-sqlite"] | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 34 | // Step 1: Generate 100 random rows | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 63 | // Step 2: Convert to Arrow RecordBatch and write to Parquet | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 83 | // Step 3: Read the Parquet file back into a RecordBatch | COMMENT |
| LOW | sea-orm-sync/examples/parquet_example/src/main.rs | 105 | // Step 4: Dump into SQLite | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 35 | // Step 1: Generate 100 random rows | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 64 | // Step 2: Convert to Arrow RecordBatch and write to Parquet | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 84 | // Step 3: Read the Parquet file back into a RecordBatch | COMMENT |
| LOW | examples/parquet_example/src/main.rs | 106 | // Step 4: Dump into SQLite | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sea-orm-macros/src/derives/attributes.rs | 106 | /// will utilize `impl Related` trait | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/rust.yml | 3 | # -------------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sea-orm-macros/src/lib.rs | 483 | /// ## Usage: | COMMENT |