Sends your logs to files, sockets, inboxes, databases and various web services
This report presents the forensic synthetic code analysis of Seldaek/monolog, a PHP project with 21,397 GitHub stars. SynthScan v2.0 examined 30,840 lines of code across 238 source files, recording 282 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 9.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 282 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Monolog/UtilsTest.php | 41 | public static function providePathsToCanonicalize() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 55 | public function testHandleJsonErrorFailure(int $code, string $msg) | CODE |
| LOW | tests/Monolog/UtilsTest.php | 61 | public static function providesHandleJsonErrorFailure() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 104 | public static function provideIniValuesToConvertToBytes() | CODE |
| LOW | tests/Monolog/UtilsTest.php | 139 | public function testExpandIniShorthandBytes(string|null|bool $input, int|false $expected) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 95 | public function testRegisterSignalHandler() | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 132 | public function testRegisterDefaultPreviousSignalHandler($signo, $callPrevious, $expected) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 182 | public function testRegisterCallablePreviousSignalHandler($callPrevious) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 214 | public function testRegisterSyscallRestartingSignalHandler($restartSyscalls) | CODE |
| LOW | tests/Monolog/SignalHandlerTest.php | 267 | public function testRegisterAsyncSignalHandler($initialAsync, $desiredAsync, $expectedBefore, $expectedAfter) | CODE |
| LOW | tests/Monolog/RegistryTest.php | 121 | public function testFailsOnNonExistentLogger() | CODE |
| LOW | tests/Monolog/RegistryTest.php | 145 | public function testFailsOnUnspecifiedReplacement() | CODE |
| LOW | tests/Monolog/PsrLogCompatTest.php | 124 | public function testContextCanContainAnything() | CODE |
| LOW | tests/Monolog/PsrLogCompatTest.php | 147 | public function testContextExceptionKeyCanBeExceptionOrOtherValues() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 106 | public function testLogPreventsCircularLogging() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 144 | public function testLogAlwaysHandledIfNoProcessorsArePresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 160 | public function testLogNotHandledIfProcessorsArePresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 263 | public function testProcessorsAreExecuted() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 281 | public function testProcessorsAreCalledOnlyOnce() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 312 | public function testProcessorsNotCalledWhenNotHandled() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 331 | public function testHandlersNotCalledBeforeFirstHandlingWhenProcessorsPresent() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 374 | public function testHandlersNotCalledBeforeFirstHandlingWhenProcessorsPresentWithAssocArray() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 412 | public function testBubblingWhenTheHandlerReturnsFalse() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 444 | public function testNotBubblingWhenTheHandlerReturnsTrue() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 561 | public function testTimezoneIsRespectedInUTC() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 583 | public function testTimezoneIsRespectedInOtherTimezone() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 612 | public function testUseMicrosecondTimestamps($micro, $assert, $assertFormat) | CODE |
| LOW | tests/Monolog/LoggerTest.php | 628 | public static function useMicrosecondTimestampsProvider() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 638 | public function testProcessorsDoNotInterfereBetweenHandlers() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 669 | public function testDefaultHandleException() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 692 | public function testCustomHandleException() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 818 | public function testLogCycleDetectionWithFibersWithoutCycle() | CODE |
| LOW | tests/Monolog/LoggerTest.php | 843 | public function testLogCycleDetectionWithFibersWithCycle() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 21 | public function testFlushPassthruIfAllRecordsUnderTrigger() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 41 | public function testFlushPassthruIfEmptyLog() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 63 | public function testFlushSkipsIfLogExists() | CODE |
| LOW | tests/Monolog/Handler/DeduplicationHandlerTest.php | 84 | public function testFlushPassthruIfLogTooOld() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 22 | public function testConstructorOnlyTakesHandler() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 94 | public function testHandleBatchUsesProcessors() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 140 | public function testProcessorsDoNotInterfereBetweenHandlers() | CODE |
| LOW | tests/Monolog/Handler/WhatFailureGroupHandlerTest.php | 156 | public function testProcessorsDoNotInterfereBetweenHandlersWithBatch() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 123 | public function testInitWithDefaultConnector() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 129 | public function testInitWithCustomConnector() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 141 | public function testDebugContextInMessage() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 208 | public function testWrongOptionsThrowsException() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 221 | public function testOptionDebugTagsKeysInContext() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 226 | public function testOptionUseOwnErrorsAndExceptionsHandler() | CODE |
| LOW | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 240 | public static function provideConnectorMethodsOptionsSets() | CODE |
| LOW⚡ | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 254 | public function testOptionCallsConnectorMethod($option, $method, $value, $isArgument = true) | CODE |
| LOW⚡ | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 263 | public function testOptionDetectDumpTraceAndSource() | CODE |
| LOW⚡ | tests/Monolog/Handler/PHPConsoleHandlerTest.php | 269 | public static function provideDumperOptionsValues() | CODE |
| LOW | tests/Monolog/Handler/FleepHookHandlerTest.php | 51 | public function testConstructorSetsExpectedDefaults() | CODE |
| LOW | tests/Monolog/Handler/FleepHookHandlerTest.php | 60 | public function testHandlerUsesLineFormatterWhichIgnoresEmptyArrays() | CODE |
| LOW | tests/Monolog/Handler/FleepHookHandlerTest.php | 76 | public function testConnectionStringisConstructedCorrectly() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 44 | public function testHandleStopsBufferingAfterTrigger() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 60 | public function testHandleResetBufferingAfterReset() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 79 | public function testHandleResetBufferingAfterBeingTriggeredWhenStopBufferingIsDisabled() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 132 | public function testHandleWithBadCallbackThrowsException() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 158 | public function testErrorLevelActivationStrategy() | CODE |
| LOW | tests/Monolog/Handler/FingersCrossedHandlerTest.php | 174 | public function testErrorLevelActivationStrategyWithPsrLevel() | CODE |
| 211 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 49 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', "receiver@example.org\r\nFrom: faked@att | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 56 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 64 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 72 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 80 | $mailer = new NativeMailerHandler('spammer@example.org', 'dear victim', 'receiver@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 86 | $to = 'spammer@example.org'; | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 88 | $from = 'receiver@example.org'; | CODE |
| LOW | tests/Monolog/Handler/NativeMailerHandlerTest.php | 113 | $mailer = $this->newNativeMailerHandler('to@example.org', 'Alert: %level_name% %message%', 'from@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 125 | $mailer = new NativeMailerHandler('to@example.org', 'subject', 'from@example.org'); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 133 | $this->assertSame('to@example.org', $params[0]); | CODE |
| LOW⚡ | tests/Monolog/Handler/NativeMailerHandlerTest.php | 136 | $this->assertStringContainsString('From: from@example.org', $params[3]); | CODE |