Repository Analysis

koel/koel

Music streaming solution that works.

5.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of koel/koel, a PHP project with 17,194 GitHub stars. SynthScan v2.0 examined 152,337 lines of code across 2297 source files, recording 785 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 5.4 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).

5.4
Adjusted Score
5.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
17.2K
Stars
PHP
Language
152.3K
Lines of Code
2.3K
Files
785
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 1LOW 784

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 785 distinct pattern matches across 5 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 Identifiers743 hits · 776 pts
SeverityFileLineSnippetContext
LOWapp/Providers/AppServiceProvider.php117 private static function enableOnDeleteCascadeForSqliteConnections(DatabaseManager $db): voidCODE
LOWapp/Providers/AppServiceProvider.php124 private static function grantAllPermissionsToSuperAdminRole(): voidCODE
LOWapp/Enums/SongStorageType.php21 public function supportsFolderStructureExtraction(): boolCODE
LOWapp/Values/SongZipArchive.php69 private function generateZipContentFileNameFromPath(string $path): stringCODE
LOWapp/Values/SongZipArchive.php84 private static function generateRandomArchivePath(): stringCODE
LOWapp/Values/User/UserPreferences.php165 private function requirePreferenceByProperty(string $property): PreferenceCODE
LOWapp/Values/SmartPlaylist/SmartPlaylistQueryModifier.php105 private static function generateEloquentParameters(string $column, Operator $operator, array $value): array|ClosureCODE
LOWapp/Repositories/SongRepository.php322 public function getManyInCollaborativeContext(array $ids, ?User $scopedUser = null): CollectionCODE
LOWapp/Repositories/UserRepository.php18 public function getOrCreateFirstAdmin(): UserCODE
LOWapp/Repositories/UserRepository.php44 public function findOneBySubsonicApiKeyHash(#[SensitiveParameter] string $hash): ?UserCODE
LOWapp/Models/Album.php94 public static function getOrCreate(Artist $artist, ?string $name = null): staticCODE
LOWapp/Models/Artist.php107 public static function getOrCreate(User $user, ?string $name = null): selfCODE
LOW…ttp/Middleware/Concerns/ChecksControllerAttributes.php13 private static function getAttributeUsageFromRequest(Request $request, string $attributeClass): ?arrayCODE
LOWapp/Http/Resources/EmbedResource.php54 private function transformEmbeddableToResource(): JsonResourceCODE
LOWapp/Helpers/Encoding/TagFixer.php53 private static function recoverFromDoubleMojibake(string $value): stringCODE
LOWapp/Services/MediaBrowser.php66 public function maybeCreateFolderStructureForSong(Song $song): voidCODE
LOWapp/Services/EmbedService.php16 public function resolveEmbedForEmbeddable(Embeddable $embeddable, User $user): EmbedCODE
LOWapp/Services/AlbumService.php59 public function trySetAlbumCoverFromDirectory(Album $album, string $directory): voidCODE
LOWapp/Services/AlbumService.php94 public function getOrCreateAlbumThumbnail(Album $album): ?stringCODE
LOWapp/Services/AlbumService.php94 public function getOrCreateAlbumThumbnail(Album $album): ?stringCODE
LOWapp/Services/DownloadService.php32 public function assertWithinDownloadLimit(CODE
LOWapp/Services/DownloadService.php82 public function getLocalPathOrDownloadableUrl(Song $song): ?stringCODE
LOWapp/Services/SongService.php216 public function createOrUpdateSongFromScan(CODE
LOWapp/Services/UserService.php44 public function createOrUpdateUserFromSso(SsoUser $ssoUser): UserCODE
LOWapp/Services/Playlist/PlaylistFolderService.php124 private static function movingFolderWouldCreateCycle(CODE
LOWapp/Services/Playlist/PlaylistFolderService.php142 private static function ensureParentBelongsToUser(?PlaylistFolder $parent, User $user): voidCODE
LOWapp/Services/Playlist/PlaylistService.php152 public function removePlayablesFromPlaylist(Playlist $playlist, Collection|Playable|array $playables): voidCODE
LOWapp/Services/Playlist/PlaylistService.php157 public function makePlaylistContentPublic(Playlist $playlist): voidCODE
LOWapp/Services/License/LicenseService.php110 private function updateOrCreateLicenseFromApiResponseBody(object $body): LicenseCODE
LOWapp/Services/Auth/AuthenticationService.php50 public function generateTwoFactorLoginToken(User $user): stringCODE
LOWapp/Services/Auth/AuthenticationService.php58 public function loginViaTwoFactorChallenge(CODE
LOWapp/Services/Auth/AuthenticationService.php89 public function tryResetPasswordUsingBroker(CODE
LOWapp/Services/Auth/TokenManager.php49 public function deleteTokenByPlainTextToken(#[SensitiveParameter] string $plainTextToken): voidCODE
LOWapp/Services/Auth/TokenManager.php54 public function getUserFromPlainTextToken(#[SensitiveParameter] string $plainTextToken): ?UserCODE
LOWapp/Services/Auth/ProxyAuthService.php30 public function tryGetProxyAuthenticatedUserFromRequest(Request $request): ?UserCODE
LOWapp/Services/Transcoding/TranscodingStrategy.php18 protected function findTranscodeBySongAndBitRate(Song $song, int $bitRate): ?TranscodeCODE
LOWapp/Services/Image/ImageStorage.php57 private static function generateRandomStoragePath(string $extension = 'webp'): stringCODE
LOWapp/Services/Integrations/YouTubeService.php23 public function searchVideosRelatedToSong(Song $song, string $pageToken = ''): ?objectCODE
LOWapp/Services/Streamer/Streamer.php85 private static function hasValidFfmpegInstallation(): boolCODE
LOWapp/Services/Scanners/WatchRecordScanner.php66 private function handleNewOrModifiedFileRecord(string $path, ScanConfiguration $config): voidCODE
LOWapp/Services/Scanners/WatchRecordScanner.php77 private function handleDeletedDirectoryRecord(string $path): voidCODE
LOWapp/Services/Scanners/WatchRecordScanner.php88 private function handleNewOrModifiedDirectoryRecord(string $path, ScanConfiguration $config): voidCODE
LOWapp/Services/Podcast/PodcastService.php208 public function unsubscribeUserFromPodcast(User $user, Podcast $podcast): voidCODE
LOW…p/Services/SongStorages/Concerns/MovesUploadedFile.php12 protected function moveUploadedFileToTemporaryLocation(UploadedFile $file): FileCODE
LOWapp/Console/Commands/InitCommand.php362 private function maybeCompileFrontEndAssets(): voidCODE
LOWapp/Console/Commands/ReleaseCommand.php87 private function acquireReleaseVersionInteractively(): stringCODE
LOWapp/Console/Commands/ReleaseCommand.php146 private static function ensureCleanWorkingDirectory(): voidCODE
LOWapp/Console/Commands/DoctorCommand.php337 private function checkDirectoryPermissions(): voidCODE
LOWapp/Console/Commands/DoctorCommand.php377 private function assertDirectoryPermissions(string $path, string $name): voidCODE
LOWresources/assets/js/utils/typeGuards.ts13export function getPlayableCollectionContentType(playables: Playable[]): Song['type'] | Episode['type'] | 'mixed' {CODE
LOWtests/Unit/ApplicationTest.php11 public function staticUrlsWithoutCdnAreConstructedCorrectly(): voidCODE
LOWtests/Unit/ApplicationTest.php20 public function staticUrlsWithCdnAreConstructedCorrectly(): voidCODE
LOWtests/Unit/KoelPlus/Values/EmbedOptionsTest.php12 public function themeAndPreviewCanBeCustomizedForCommunityLicense(): voidCODE
LOWtests/Unit/KoelPlus/Models/UserTest.php19 public function adminCanAssignAllRolesOrderedByLevel(): voidCODE
LOWtests/Unit/KoelPlus/Models/UserTest.php32 public function managerCannotAssignAdminRole(): voidCODE
LOWtests/Unit/KoelPlus/Models/AlbumTest.php13 public function getOrCreate(): voidCODE
LOWtests/Unit/KoelPlus/Models/ArtistTest.php14 public function getOrCreate(): voidCODE
LOWtests/Unit/Enums/SongStorageTypeTest.php22 public function supportsFolderStructureExtraction(): voidCODE
LOWtests/Unit/Values/EmbedOptionsTest.php36 public function themeAndPreviewCannotBeCustomizedForCommunityLicense(): voidCODE
LOWtests/Unit/Values/EmbedOptionsTest.php47 public function invalidEncryptedResolvesIntoDefault(): voidCODE
683 more matches not shown…
Fake / Example Data38 hits · 46 pts
SeverityFileLineSnippetContext
LOWresources/assets/js/composables/useKoelPlus.spec.ts10 customer_name: 'John Doe',CODE
LOWresources/assets/js/composables/useKoelPlus.spec.ts31 expect(license.customerName).toBe('John Doe')CODE
LOWresources/assets/js/stores/userStore.spec.ts53 name: 'Jane Doe',CODE
LOWresources/assets/js/stores/userStore.spec.ts73 name: 'Jane Doe',CODE
LOWresources/assets/js/components/ui/ProfileAvatar.spec.ts10 name: 'John Doe',CODE
LOW…es/assets/js/components/auth/ResetPasswordForm.spec.ts19 expect(resetMock).toHaveBeenCalledWith('foo@bar.com', 'new-password', 'my-token')CODE
LOW…es/assets/js/components/auth/ResetPasswordForm.spec.ts20 expect(loginMock).toHaveBeenCalledWith('foo@bar.com', 'new-password')CODE
LOW…s/assets/js/components/auth/ForgotPasswordForm.spec.ts13 await h.type(screen.getByPlaceholderText('Your email address'), 'foo@bar.com')CODE
LOW…s/assets/js/components/auth/ForgotPasswordForm.spec.ts16 expect(requestMock).toHaveBeenCalledWith('foo@bar.com')CODE
LOW…ents/profile-preferences/EditableProfileAvatar.spec.ts12 profile: { name: 'John Doe', avatar: 'https://example.com/avatar.png' },CODE
LOW…rces/assets/js/components/utils/AppInitializer.spec.ts41 currentUser: ref({ id: '1', email: 'test@test.com' }),CODE
LOWresources/assets/js/components/user/AddUserForm.spec.ts24 name: 'John Doe',CODE
LOWresources/assets/js/components/user/AddUserForm.spec.ts33 await h.type(screen.getByRole('textbox', { name: 'name' }), 'John Doe')CODE
LOWresources/assets/js/components/user/AddUserForm.spec.ts41 name: 'John Doe',CODE
LOWresources/assets/js/components/user/AddUserForm.spec.ts47 expect(toasterMock).toHaveBeenCalledWith('New user "John Doe" created.')CODE
LOW…sources/assets/js/components/user/EditUserForm.spec.ts37 await h.type(screen.getByRole('textbox', { name: 'name' }), 'Jane Doe')CODE
LOW…sources/assets/js/components/user/EditUserForm.spec.ts44 name: 'Jane Doe',CODE
LOWresources/assets/js/components/ai/AiChatMessage.spec.ts14 const user = { name: 'John Doe', avatar: 'https://example.com/avatar.jpg' }CODE
LOWresources/assets/js/__tests__/TestHarness.ts148 customer_name: 'John Doe',CODE
LOWresources/assets/js/services/authService.spec.ts174 name: 'John Doe',CODE
LOWresources/assets/js/services/authService.spec.ts179 name: 'Jane Doe',CODE
LOWresources/assets/js/services/authService.spec.ts186 name: 'Jane Doe',CODE
LOWresources/assets/js/services/authService.spec.ts193 expect(userStore.current.name).toBe('Jane Doe')CODE
LOWtests/Unit/Services/Auth/AuthenticationServiceTest.php54 ->with(['email' => 'foo@bar.com'])CODE
LOWtests/Unit/Services/Auth/AuthenticationServiceTest.php57 $this->assertTrue($this->service->trySendResetPasswordLink('foo@bar.com'));CODE
LOW…sts/Integration/Services/UserInvitationServiceTest.php34 $emails = ['foo@bar.com', 'bar@baz.io'];CODE
LOWtests/Feature/ForgotPasswordTest.php23 ->with('foo@bar.com')CODE
LOWtests/Feature/ForgotPasswordTest.php26 $this->postJson('/api/forgot-password', ['email' => 'foo@bar.com'])->assertNoContent();CODE
LOWtests/Feature/ForgotPasswordTest.php35 ->with('foo@bar.com')CODE
LOWtests/Feature/ForgotPasswordTest.php38 $this->postJson('/api/forgot-password', ['email' => 'foo@bar.com'])->assertNotFound();CODE
LOWtests/Feature/SongTest.php194 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/SongTest.php213 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/SongTest.php234 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/SongTest.php302 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/SongTest.php337 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/SongTest.php358 'lyrics' => 'Lorem ipsum dolor sic amet.',CODE
LOWtests/Feature/KoelPlus/UserTest.php19 'email' => 'foo@bar.com',CODE
LOWtests/Feature/KoelPlus/UserTest.php36 'email' => 'foo@bar.com',CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…es/assets/js/visualizers/asteroid/shaders/blob.frag.ts71 // http://the-witness.net/news/2012/02/seamless-cube-map-filtering/COMMENT
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…es/assets/js/visualizers/asteroid/shaders/blob.vert.ts41#endifCOMMENT
LOWresources/assets/js/stores/userStore.ts61 // Didn't mean to make you cryCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocs/.vitepress/check-frontmatter.sh11 # Check if file starts with --- (has frontmatter) and contains a description fieldCOMMENT