Repository Analysis

doctrine/dbal

Doctrine Database Abstraction Layer

17.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of doctrine/dbal, a PHP project with 9,702 GitHub stars. SynthScan v2.0 examined 98,307 lines of code across 735 source files, recording 1694 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 17.4 places this repository in the Moderate 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).

17.4
Adjusted Score
17.4
Raw Score
100%
Time Factor
2026-08-01
Last Push
9.7K
Stars
PHP
Language
98.3K
Lines of Code
735
Files
1.7K
Pattern Hits
2026-08-02
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 0LOW 1694

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 1694 distinct pattern matches across 2 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.

Hyper-Verbose Identifiers1692 hits · 1707 pts
SeverityFileLineSnippetContext
LOWtests/TestUtil.php176 private static function getPrivilegedConnectionParameters(): arrayCODE
LOWtests/TestUtil.php189 private static function getTestConnectionParameters(): arrayCODE
LOWtests/TestUtil.php245 public static function isPdoStringifyFetchesEnabled(): boolCODE
LOWtests/ConnectionTest.php67 public function testNoTransactionActiveByDefault(): voidCODE
LOWtests/ConnectionTest.php72 public function testCommitWithNoActiveTransactionThrowsException(): voidCODE
LOWtests/ConnectionTest.php78 public function testRollbackWithNoActiveTransactionThrowsException(): voidCODE
LOWtests/ConnectionTest.php84 public function testSetRollbackOnlyNoActiveTransactionThrowsException(): voidCODE
LOWtests/ConnectionTest.php90 public function testIsRollbackOnlyNoActiveTransactionThrowsException(): voidCODE
LOWtests/ConnectionTest.php52 private function getExecuteStatementMockConnection(): Connection&MockObjectCODE
LOWtests/ConnectionTest.php103 public function testDriverExceptionIsWrapped(callable $callback): voidCODE
LOWtests/ConnectionTest.php151 public function testConnectStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php166 public function testTransactionIsNotActiveAfterTransactionalInAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php187 public function testTransactionIsActiveAfterTransactionalInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php217 public function testCommitStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php230 public function testBeginTransactionFailureAfterCommitInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php266 public function testRollBackStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php279 public function testSwitchingAutoCommitModeCommitsAllCurrentTransactions(): voidCODE
LOWtests/ConnectionTest.php317 public function testUpdateWithDifferentColumnsInDataAndIdentifiers(): voidCODE
LOWtests/ConnectionTest.php358 public function testUpdateWithSameColumnInDataAndIdentifiers(): voidCODE
LOWtests/ConnectionTest.php568 public function testPlatformDetectionTriggersConnectionIfRequiredByTheDriver(): voidCODE
LOWtests/ConnectionTest.php594 public function testPlatformDetectionDoesNotTriggerConnectionIfNotRequiredByTheDriver(): voidCODE
LOWtests/ConnectionTest.php614 public function testPlatformDetectionFetchedFromParameters(): voidCODE
LOWtests/ConnectionTest.php636 public function testPlatformDetectionFetchedFromPrimaryReplicaParameters(): voidCODE
LOWtests/ConnectionTest.php658 public function testConnectionParamsArePassedToTheQueryCacheProfileInExecuteCacheQuery(): voidCODE
LOWtests/ConnectionTest.php698 public function testCustomSchemaManagerFactory(): voidCODE
LOWtests/ConnectionTest.php711 public function testDefaultSchemaManagerFactory(): voidCODE
LOWtests/ConnectionTest.php717 public function testItPreservesTheOriginalExceptionOnRollbackFailure(): voidCODE
LOWtests/ConnectionTest.php741 public function testItFailsDuringCommitBeforeTouchingDb(): voidCODE
LOWtests/ExceptionTest.php14 public function testDriverRequiredWithUrl(): voidCODE
LOWtests/ConfigurationTest.php28 public function testReturnsDefaultConnectionAutoCommitMode(): voidCODE
LOWtests/ConfigurationTest.php36 public function testSetsDefaultConnectionAutoCommitMode(): voidCODE
LOWtests/FunctionalTestCase.php53 protected function markConnectionNotReusable(): voidCODE
LOWtests/FunctionalTestCase.php198 protected function assertOptionallyQualifiedNameEquals(CODE
LOWtests/FunctionalTestCase.php209 protected function toQuotedOptionallyQualifiedName(OptionallyQualifiedName $name): OptionallyQualifiedNameCODE
LOWtests/FunctionalTestCase.php220 protected function assertUnqualifiedNameEquals(CODE
LOWtests/FunctionalTestCase.php244 protected function assertUnqualifiedNameListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php256 protected function assertUnqualifiedNameListContainsUnquotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php269 protected function assertUnqualifiedNameListContainsQuotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php282 protected function assertUnqualifiedNameListNotContainsUnquotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php291 private function unqualifiedNameListContains(UnqualifiedName $needle): CallbackCODE
LOWtests/FunctionalTestCase.php321 protected function assertOptionallyQualifiedNameListContainsUnquotedName(CODE
LOWtests/FunctionalTestCase.php335 private function optionallyQualifiedNameListContains(OptionallyQualifiedName $needle): CallbackCODE
LOWtests/FunctionalTestCase.php373 protected function toQuotedUnqualifiedNameList(array $names): arrayCODE
LOWtests/FunctionalTestCase.php425 protected function assertIndexedColumnEquals(CODE
LOWtests/FunctionalTestCase.php450 protected function assertIndexedColumnListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php465 protected function toQuotedIndexedColumnList(array $indexedColumns): arrayCODE
LOWtests/FunctionalTestCase.php531 protected function assertPrimaryKeyConstraintEquals(CODE
LOWtests/FunctionalTestCase.php554 protected function toQuotedPrimaryKeyConstraint(PrimaryKeyConstraint $constraint): PrimaryKeyConstraintCODE
LOWtests/FunctionalTestCase.php569 protected function assertForeignKeyConstraintEquals(CODE
LOWtests/FunctionalTestCase.php580 protected function toQuotedForeignKeyConstraint(ForeignKeyConstraint $constraint): ForeignKeyConstraintCODE
LOWtests/FunctionalTestCase.php602 protected function assertForeignKeyConstraintListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php617 protected function toQuotedForeignKeyConstraintList(array $constraints): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php24 public function testReturnsJsonTypeDeclarationSQL(): voidCODE
LOWtests/Platforms/MySQLPlatformTest.php29 public function testInitializesJsonTypeMapping(): voidCODE
LOWtests/Platforms/MySQLPlatformTest.php36 protected function getAlterTableRenameIndexSQL(): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php42 protected function getQuotedAlterTableRenameIndexSQL(): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php51 protected function getAlterTableRenameIndexInSchemaSQL(): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php57 protected function getQuotedAlterTableRenameIndexInSchemaSQL(): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php68 protected function getGeneratesAlterTableRenameIndexUsedByForeignKeySQL(): arrayCODE
LOWtests/Platforms/MySQLPlatformTest.php73 public function testHasCorrectDefaultTransactionIsolationLevel(): voidCODE
1632 more matches not shown…
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/Functional/Driver/OCI8/ResultTest.php101COMMENT
LOWsrc/Driver/Mysqli/Result.php61 $meta->free();COMMENT