A web based audio/video streaming application and file manager allowing you to access your music & videos from anywhere, using almost any internet enabled device.
This report presents the forensic synthetic code analysis of ampache/ampache, a PHP project with 3,816 GitHub stars. SynthScan v2.0 examined 496,004 lines of code across 2987 source files, recording 1884 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.1 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).
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.
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 1884 distinct pattern matches across 10 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 | resources/scripts/api-docs/generate_openapi_schemas.py | 113 | def build_collection_items_schema(collection: dict) -> dict: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 136 | def build_playlist_folder_items_schema(folder: dict) -> dict: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 802 | def apply_property_descriptions(object_name: str, schema: dict) -> None: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1279 | def document_binary_responses(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1380 | def apply_parameter_components(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1508 | def apply_operation_descriptions(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 79 | def check_no_additional_false(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 109 | def check_shared_params_not_inline(spec: dict) -> list[str]: | CODE |
| LOW | resources/scripts/api-docs/lint_openapi.py | 128 | def check_no_identical_schemas(spec: dict) -> list[str]: | CODE |
| LOW | tests/PluginFactoryMockTrait.php | 44 | protected function buildWithMockedDependencies(string $className): object | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 44 | public function testCollectGarbageExecutesQuery(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 53 | public function testFindByIdReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 83 | public function testFindByIdReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 111 | public function testFindByObjectIdAndFieldAndTypeReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 150 | public function testFindByObjectIdAndFieldAndTypeReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 187 | public function testFindByObjectIdAndTypeReturnsFoundObject(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 241 | public function testPersistUpdatesExistingItem(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 288 | public function testPersistWritesNewItemAndReturnsId(): void | CODE |
| LOW | tests/Repository/MetadataRepositoryTest.php | 335 | public function testPrototypeReturnsObject(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 51 | public function testCollectGarbageCollects(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 94 | public function testFindIdByFileReturnsTheEpisode(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 104 | public function testGetEpisodeCountReturnsValue(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 129 | public function testGetEpisodeEligibleForDeletionReturnsNothingIfDisabled(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 142 | public function testGetEpisodeEligibleForDeletionYieldsEpisodes(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 187 | public function testGetEpisodeEligibleForDownloadYieldsEpisodes(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 249 | public function testGetEpisodeEligibleForDownloadYieldsEpisodesWithoutLimit(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 310 | public function testGetEpisodesReturnsEpisodesWithoutStateFilterAndDisabledCatalogs(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 345 | public function testGetEpisodesReturnsEpisodesWithStateFilter(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 381 | public function testGetNewestIdsByCatalogAppliesTheCountAsALimit(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 400 | public function testGetNewestIdsByCatalogOmitsTheLimitForACountOfZero(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 428 | public function testSetPlayedFlagsTheEpisode(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 437 | public function testSetUpdateTimeStampsTheEpisode(): void | CODE |
| LOW⚡ | tests/Repository/PodcastEpisodeRepositoryTest.php | 446 | public function testUpdateAllCountsClearsEachTotalAgainstItsOwnCountType(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 467 | public function testUpdateAllCountsRunsTheSixEpisodeSweeps(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 486 | public function testUpdateDescriptionWritesTheDescription(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 495 | public function testUpdateFromTagsFallsBackToVbrForAnUnknownMode(): void | CODE |
| LOW | tests/Repository/PodcastEpisodeRepositoryTest.php | 533 | public function testUpdateWritesTheEditableProperties(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 47 | public function testDeleteByCatalogRemovesTheCatalogsPodcasts(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 76 | public function testFindAllReturnsAllItems(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 105 | public function testFindByFeedUrlReturnsFoundPodcast(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 133 | public function testFindByFeedUrlReturnsNullIfNothingWasFound(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 152 | public function testFindByIdReturnsNullIfNotFound(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 172 | public function testFindByIdReturnsObject(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 193 | public function testGetIdsByCatalogReadsTheCatalogsPodcasts(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 305 | public function testPersistUpdatesItemIfNotNew(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 393 | public function testPrototypeReturnsNewObject(): void | CODE |
| LOW | tests/Repository/PodcastRepositoryTest.php | 401 | public function testUpdateAllCountsRollsBothTotalsUpFromTheEpisodes(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 73 | public function testDeleteSubTypeRowNamesTheBackendsOwnTable(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 82 | public function testDeleteSubTypeRowReportsAFailure(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 91 | public function testDropSubTypeTableToleratesATableThatIsAlreadyGone(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 101 | public function testFindEnabledSeparatesADisabledCatalogFromAMissingOne(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 112 | public function testFindNameFallsBackToAnEmptyString(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 122 | public function testFindSubTypeIdReturnsNullWhenTheBackendsTableIsGone(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 132 | public function testFindTypeReturnsNullForAMissingCatalog(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 142 | public function testGetIdsAppliesNoWhereClauseWithoutNarrowing(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 276 | public function testSetFieldNamesOnlyABoundedColumn(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 285 | public function testSubTypeTableExistsAsksForTheBackendsOwnTable(): void | CODE |
| LOW⚡ | tests/Repository/CatalogRepositoryTest.php | 295 | public function testSubTypeValueExistsChecksTheBackendsOwnTable(): void | CODE |
| LOW | tests/Repository/CatalogRepositoryTest.php | 45 | public function testCreateSubTypeTableRefusesAColumnNoBackendDeclares(): void | CODE |
| LOW | tests/Repository/CatalogRepositoryTest.php | 57 | public function testCreateSubTypeTableWrapsTheBackendsColumnsAndCollatesTheStrings(): void | CODE |
| 1746 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 578 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 580 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 615 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 617 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 781 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 783 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 1201 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_openapi_schemas.py | 1203 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 56 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 58 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 108 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/generate_api_methods_md.py | 284 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 172 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 231 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 280 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 282 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 348 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | resources/scripts/api-docs/verify_openapi_shapes.py | 350 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locale/base/gather-messages.sh | 1 | #!/bin/bash | COMMENT |
| LOW | resources/scripts/tests/spec_refresh.php | 21 | * You should have received a copy of the GNU Affero General Public License | COMMENT |
| LOW | tests/Module/User/Tracking/UserTrackerTest.php | 61 | COMMENT | |
| LOW | docs/examples/inotifywait.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/examples/inotifywait.sh | 21 | # Perform catalog actions for a single file | COMMENT |
| LOW | docs/examples/update_from_git.sh | 41 | COMMENT | |
| LOW | docs/examples/catalog_update.sh | 1 | #!/bin/sh | COMMENT |
| LOW | docs/examples/catalog_update.sh | 21 | # Arguments: | COMMENT |
| LOW | docs/examples/catalog_update.sh | 41 | # | COMMENT |
| LOW | docs/examples/catalog_update.sh | 61 | php bin/cli run:updateCatalog -t | COMMENT |
| LOW | public/templates/jplayer.midnight.black-iframed.css | 1321 | #jp_container_1 .jp-controls-holder a.jp-volume-max { order: 7; } | COMMENT |
| LOW | public/themes/reborn/templates/dark.css | 241 | #sidebar_preferences, | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 41 | # Initializes the CodeQL tools for scanning. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Repository/UserRepositoryTest.php | 234 | ->with('UPDATE `user` SET `email` = ? WHERE `id` = ?', ['some@example.org', 666]); | CODE |
| LOW⚡ | tests/Repository/UserRepositoryTest.php | 236 | static::assertTrue($this->subject->setField(666, UserFieldEnum::EMAIL, 'some@example.org')); | CODE |
| LOW⚡ | tests/Module/User/NewPasswordSenderTest.php | 48 | ->with('admin@example.com') | CODE |
| LOW⚡ | tests/Module/User/NewPasswordSenderTest.php | 54 | static::assertFalse($this->subject->send('admin@example.com', '127.0.0.1')); | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUser.xml | 3 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloa | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUsers.json | 9 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUsers.xml | 4 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downl | CODE |
| LOW | tests/Fixtures/Api/subsonic/getUser.json | 7 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUser.xml | 3 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloa | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUsers.json | 12 | "email": "admin@example.com", | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUsers.xml | 4 | <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downl | CODE |
| LOW | tests/Fixtures/Api/opensubsonic/getUser.json | 10 | "email": "admin@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/xss-probe/xss_probe.py | 14 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 27 | CODE | |
| LOW | resources/scripts/api-docs/generate_api_methods_md.py | 24 | CODE | |
| LOW | resources/scripts/api-docs/capture_reads.py | 11 | CODE | |
| LOW | resources/scripts/api-docs/format_md_tables.py | 21 | CODE | |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 31 | CODE | |
| LOW | resources/scripts/api-docs/lint_openapi.py | 25 | CODE | |
| LOW | resources/scripts/api-docs/generate_browse_docs.py | 22 | CODE | |
| LOW | resources/scripts/api-docs/check_openapi_examples.py | 23 | CODE | |
| LOW | resources/scripts/api-docs/browse_reference.py | 21 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/xss-probe/xss_probe.py | 285 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1380 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1483 | CODE | |
| LOW | resources/scripts/api-docs/generate_openapi_schemas.py | 1586 | CODE | |
| LOW | resources/scripts/api-docs/generate_api_methods_md.py | 72 | CODE | |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 353 | CODE | |
| LOW | resources/scripts/api-docs/generate_browse_docs.py | 121 | CODE | |
| LOW | resources/scripts/api-docs/check_openapi_examples.py | 54 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/API.md | 131 | * ampache://yourapikey@localhost:993/ampache#ssl=true | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/api-docs/capture_reads.py | 47 | except Exception: | CODE |
| LOW⚡ | resources/scripts/api-docs/verify_openapi_shapes.py | 163 | except Exception: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 254 | except Exception: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 401 | except Exception as exc: | CODE |
| LOW | resources/scripts/api-docs/verify_openapi_shapes.py | 427 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | resources/scripts/api-docs/generate_openapi_schemas.py | 659 | Json8_Data: array{...}, array<int, T>, array<string, T>, unions with null, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker/data/bin/run.sh | 77 | # Create an initial admin account if requested | COMMENT |