:snowflake: A PHP library for generating universally unique identifiers (UUIDs).
This report presents the forensic synthetic code analysis of ramsey/uuid, a PHP project with 12,630 GitHub stars. SynthScan v2.0 examined 25,294 lines of code across 215 source files, recording 252 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 10.6 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).
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 252 distinct pattern matches across 4 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⚡ | tests/UuidTest.php | 129 | public function testFromStringWithCurlyBraces(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 135 | public function testFromStringWithInvalidUuidString(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 143 | public function testFromStringWithLeadingNewLine(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 151 | public function testFromStringWithTrailingNewLine(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 362 | public function testGetLeastSignificantBits(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 370 | public function testGetLeastSignificantBitsHex(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 377 | public function testGetMostSignificantBits(): void | CODE |
| LOW⚡ | tests/UuidTest.php | 385 | public function testGetMostSignificantBitsHex(): void | CODE |
| LOW | tests/UuidTest.php | 97 | public function testFromHexadecimalThrowsWhenMethodDoesNotExist(): void | CODE |
| LOW | tests/UuidTest.php | 165 | public function testFromStringWithEmptyString(): void | CODE |
| LOW | tests/UuidTest.php | 179 | public function testFromStringLazyUuidFromUppercase(): void | CODE |
| LOW | tests/UuidTest.php | 184 | public function testFromStringWithNilUuid(): void | CODE |
| LOW | tests/UuidTest.php | 196 | public function testFromStringWithMaxUuid(): void | CODE |
| LOW | tests/UuidTest.php | 215 | public function testGetClockSeqHiAndReserved(): void | CODE |
| LOW | tests/UuidTest.php | 222 | public function testGetClockSeqHiAndReservedHex(): void | CODE |
| LOW | tests/UuidTest.php | 411 | public function testGetTimeHiAndVersionHex(): void | CODE |
| LOW | tests/UuidTest.php | 501 | public function testGetVariantForVariousVariantUuids(string $uuid, int $variant): void | CODE |
| LOW | tests/UuidTest.php | 510 | public function provideVariousVariantUuids(): array | CODE |
| LOW | tests/UuidTest.php | 1084 | public function testCompareToReturnsZeroWhenDifferentCases(): void | CODE |
| LOW | tests/UuidTest.php | 1095 | public function testEqualsReturnsTrueWhenDifferentCases(): void | CODE |
| LOW | tests/UuidTest.php | 1152 | public function testCalculateUuidTimeUpperLowerBounds(): void | CODE |
| LOW | tests/UuidTest.php | 1275 | public function testGuidBytesMatchesUuidWithSameString(): void | CODE |
| LOW | tests/UuidTest.php | 1295 | public function testGuidBytesProducesSameGuidString(): void | CODE |
| LOW | tests/UuidTest.php | 1308 | public function testFromBytesArgumentTooShort(): void | CODE |
| LOW | tests/UuidTest.php | 1315 | public function testFromBytesArgumentTooLong(): void | CODE |
| LOW | tests/UuidTest.php | 1359 | public function testUuidPassesPythonTests( | CODE |
| LOW | tests/UuidTest.php | 1735 | public function testSerializeWithOldStringFormat(): void | CODE |
| LOW | tests/UuidTest.php | 1849 | public function testGetDateTimeThrowsExceptionWhenDateTimeCannotParseDate(): void | CODE |
| LOW | tests/UuidTest.php | 1880 | public function testStaticCreationMethodsReturnSpecificUuidInstances( | CODE |
| LOW | tests/UuidTest.php | 1892 | public function testUuidInstancesBuiltFromStringAreEquivalentToTheirGeneratedCounterparts( | CODE |
| LOW | tests/UuidTest.php | 1910 | public function testUuidInstancesBuiltFromBytesAreEquivalentToTheirGeneratedCounterparts( | CODE |
| LOW | tests/UuidFactoryTest.php | 52 | public function testFromStringParsesUuidInLowercase(): void | CODE |
| LOW | tests/UuidFactoryTest.php | 63 | public function testGettersReturnValueFromFeatureSet(): void | CODE |
| LOW | tests/UuidFactoryTest.php | 117 | public function testSettersSetValueForGetters(): void | CODE |
| LOW | tests/UuidFactoryTest.php | 211 | public function testFactoryReturnsDefaultNameGenerator(): void | CODE |
| LOW | tests/UuidFactoryTest.php | 218 | public function testFactoryReturnsSetNameGenerator(): void | CODE |
| LOW⚡ | tests/FeatureSetTest.php | 21 | public function testGuidBuilderIsSelected(): void | CODE |
| LOW⚡ | tests/FeatureSetTest.php | 28 | public function testFallbackBuilderIsSelected(): void | CODE |
| LOW⚡ | tests/FeatureSetTest.php | 35 | public function testSetValidatorSetsTheProvidedValidator(): void | CODE |
| LOW | tests/FeatureSetTest.php | 53 | public function testDefaultNameGeneratorIsSelected(): void | CODE |
| LOW | tests/FeatureSetTest.php | 60 | public function testPeclUuidTimeGeneratorIsSelected(): void | CODE |
| LOW | tests/DeprecatedUuidMethodsTraitTest.php | 37 | public function testGetDateTimeThrowsException(): void | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 40 | public function testStaticCreationMethodsAndStandardBehavior($method, $args) | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 126 | public function provideStaticCreationMethods() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 247 | public function testSerializationWithOrderedTimeCodec($string) | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 438 | public function testFactoryProvidesFunctionality() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 467 | public function testUsingDegradedFeatures() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 517 | public function testUsingCustomRandomGenerator() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 537 | public function testUsingCustomTimeGenerator() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 557 | public function testUsingDefaultTimeGeneratorWithCustomProviders() | CODE |
| LOW | tests/ExpectedBehaviorTest.php | 627 | public function testUseOfTimestampFirstCombCodec() | CODE |
| LOW | tests/benchmark/NonLazyUuidConversionBench.php | 35 | public function benchStringConversionOfUuid(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 169 | public function benchCreationOfTinyUuidFromString(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 174 | public function benchCreationOfHugeUuidFromString(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 179 | public function benchCreationOfUuidFromString(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 184 | public function benchCreationOfPromiscuousUuidsFromString(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 189 | public function benchCreationOfTinyUuidFromBytes(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 194 | public function benchCreationOfHugeUuidFromBytes(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 199 | public function benchCreationOfUuidFromBytes(): void | CODE |
| LOW⚡ | tests/benchmark/UuidStringConversionBench.php | 204 | public function benchCreationOfPromiscuousUuidsFromBytes(): void | CODE |
| 187 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/merge-me.yml | 24 | # Create a token with repository permissions: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Converter/Time/GenericTimeConverterTest.php | 61 | // This is the last possible time supported by the GenericTimeConverter: | COMMENT |
| LOW | .github/workflows/merge-me.yml | 21 | # This must be used as the GitHub Actions token does not support pushing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 14 | CODE | |
| LOW | docs/conf.py | 15 | CODE |