Repository Analysis

ampache/ampache

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.

4.1 Likely human-written View on GitHub

Analysis Overview

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).

4.1
Adjusted Score
4.1
Raw Score
100%
Time Factor
2026-08-09
Last Push
3.8K
Stars
PHP
Language
496.0K
Lines of Code
3.0K
Files
1.9K
Pattern Hits
2026-08-09
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 2MEDIUM 27LOW 1855

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 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.

Hyper-Verbose Identifiers1806 hits · 1902 pts
SeverityFileLineSnippetContext
LOWresources/scripts/api-docs/generate_openapi_schemas.py113def build_collection_items_schema(collection: dict) -> dict:CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py136def build_playlist_folder_items_schema(folder: dict) -> dict:CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py802def apply_property_descriptions(object_name: str, schema: dict) -> None:CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1279def document_binary_responses(spec: dict) -> list[str]:CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1380def apply_parameter_components(spec: dict) -> list[str]:CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1508def apply_operation_descriptions(spec: dict) -> list[str]:CODE
LOWresources/scripts/api-docs/lint_openapi.py79def check_no_additional_false(spec: dict) -> list[str]:CODE
LOWresources/scripts/api-docs/lint_openapi.py109def check_shared_params_not_inline(spec: dict) -> list[str]:CODE
LOWresources/scripts/api-docs/lint_openapi.py128def check_no_identical_schemas(spec: dict) -> list[str]:CODE
LOWtests/PluginFactoryMockTrait.php44 protected function buildWithMockedDependencies(string $className): objectCODE
LOWtests/Repository/MetadataRepositoryTest.php44 public function testCollectGarbageExecutesQuery(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php53 public function testFindByIdReturnsFoundObject(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php83 public function testFindByIdReturnsNullIfNothingWasFound(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php111 public function testFindByObjectIdAndFieldAndTypeReturnsFoundObject(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php150 public function testFindByObjectIdAndFieldAndTypeReturnsNullIfNothingWasFound(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php187 public function testFindByObjectIdAndTypeReturnsFoundObject(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php241 public function testPersistUpdatesExistingItem(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php288 public function testPersistWritesNewItemAndReturnsId(): voidCODE
LOWtests/Repository/MetadataRepositoryTest.php335 public function testPrototypeReturnsObject(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php51 public function testCollectGarbageCollects(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php94 public function testFindIdByFileReturnsTheEpisode(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php104 public function testGetEpisodeCountReturnsValue(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php129 public function testGetEpisodeEligibleForDeletionReturnsNothingIfDisabled(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php142 public function testGetEpisodeEligibleForDeletionYieldsEpisodes(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php187 public function testGetEpisodeEligibleForDownloadYieldsEpisodes(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php249 public function testGetEpisodeEligibleForDownloadYieldsEpisodesWithoutLimit(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php310 public function testGetEpisodesReturnsEpisodesWithoutStateFilterAndDisabledCatalogs(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php345 public function testGetEpisodesReturnsEpisodesWithStateFilter(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php381 public function testGetNewestIdsByCatalogAppliesTheCountAsALimit(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php400 public function testGetNewestIdsByCatalogOmitsTheLimitForACountOfZero(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php428 public function testSetPlayedFlagsTheEpisode(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php437 public function testSetUpdateTimeStampsTheEpisode(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php446 public function testUpdateAllCountsClearsEachTotalAgainstItsOwnCountType(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php467 public function testUpdateAllCountsRunsTheSixEpisodeSweeps(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php486 public function testUpdateDescriptionWritesTheDescription(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php495 public function testUpdateFromTagsFallsBackToVbrForAnUnknownMode(): voidCODE
LOWtests/Repository/PodcastEpisodeRepositoryTest.php533 public function testUpdateWritesTheEditableProperties(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php47 public function testDeleteByCatalogRemovesTheCatalogsPodcasts(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php76 public function testFindAllReturnsAllItems(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php105 public function testFindByFeedUrlReturnsFoundPodcast(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php133 public function testFindByFeedUrlReturnsNullIfNothingWasFound(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php152 public function testFindByIdReturnsNullIfNotFound(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php172 public function testFindByIdReturnsObject(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php193 public function testGetIdsByCatalogReadsTheCatalogsPodcasts(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php305 public function testPersistUpdatesItemIfNotNew(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php393 public function testPrototypeReturnsNewObject(): voidCODE
LOWtests/Repository/PodcastRepositoryTest.php401 public function testUpdateAllCountsRollsBothTotalsUpFromTheEpisodes(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php73 public function testDeleteSubTypeRowNamesTheBackendsOwnTable(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php82 public function testDeleteSubTypeRowReportsAFailure(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php91 public function testDropSubTypeTableToleratesATableThatIsAlreadyGone(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php101 public function testFindEnabledSeparatesADisabledCatalogFromAMissingOne(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php112 public function testFindNameFallsBackToAnEmptyString(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php122 public function testFindSubTypeIdReturnsNullWhenTheBackendsTableIsGone(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php132 public function testFindTypeReturnsNullForAMissingCatalog(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php142 public function testGetIdsAppliesNoWhereClauseWithoutNarrowing(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php276 public function testSetFieldNamesOnlyABoundedColumn(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php285 public function testSubTypeTableExistsAsksForTheBackendsOwnTable(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php295 public function testSubTypeValueExistsChecksTheBackendsOwnTable(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php45 public function testCreateSubTypeTableRefusesAColumnNoBackendDeclares(): voidCODE
LOWtests/Repository/CatalogRepositoryTest.php57 public function testCreateSubTypeTableWrapsTheBackendsColumnsAndCollatesTheStrings(): voidCODE
1746 more matches not shown…
Decorative Section Separators26 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py52# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py578# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py580# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py615# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py617# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py781# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py783# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py1201# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_openapi_schemas.py1203# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py282# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/generate_api_methods_md.py284# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py233# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py280# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py282# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py348# ---------------------------------------------------------------------------COMMENT
MEDIUMresources/scripts/api-docs/verify_openapi_shapes.py350# ---------------------------------------------------------------------------COMMENT
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippetContext
LOWlocale/base/gather-messages.sh1#!/bin/bashCOMMENT
LOWresources/scripts/tests/spec_refresh.php21 * You should have received a copy of the GNU Affero General Public LicenseCOMMENT
LOWtests/Module/User/Tracking/UserTrackerTest.php61COMMENT
LOWdocs/examples/inotifywait.sh1#!/bin/bashCOMMENT
LOWdocs/examples/inotifywait.sh21# Perform catalog actions for a single fileCOMMENT
LOWdocs/examples/update_from_git.sh41COMMENT
LOWdocs/examples/catalog_update.sh1#!/bin/shCOMMENT
LOWdocs/examples/catalog_update.sh21# Arguments:COMMENT
LOWdocs/examples/catalog_update.sh41#COMMENT
LOWdocs/examples/catalog_update.sh61php bin/cli run:updateCatalog -tCOMMENT
LOWpublic/templates/jplayer.midnight.black-iframed.css1321#jp_container_1 .jp-controls-holder a.jp-volume-max { order: 7; }COMMENT
LOWpublic/themes/reborn/templates/dark.css241#sidebar_preferences,COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-analysis.yml41 # Initializes the CodeQL tools for scanning.COMMENT
Fake / Example Data12 hits · 14 pts
SeverityFileLineSnippetContext
LOWtests/Repository/UserRepositoryTest.php234 ->with('UPDATE `user` SET `email` = ? WHERE `id` = ?', ['some@example.org', 666]);CODE
LOWtests/Repository/UserRepositoryTest.php236 static::assertTrue($this->subject->setField(666, UserFieldEnum::EMAIL, 'some@example.org'));CODE
LOWtests/Module/User/NewPasswordSenderTest.php48 ->with('admin@example.com')CODE
LOWtests/Module/User/NewPasswordSenderTest.php54 static::assertFalse($this->subject->send('admin@example.com', '127.0.0.1'));CODE
LOWtests/Fixtures/Api/subsonic/getUser.xml3 <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloaCODE
LOWtests/Fixtures/Api/subsonic/getUsers.json9 "email": "admin@example.com",CODE
LOWtests/Fixtures/Api/subsonic/getUsers.xml4 <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downlCODE
LOWtests/Fixtures/Api/subsonic/getUser.json7 "email": "admin@example.com",CODE
LOWtests/Fixtures/Api/opensubsonic/getUser.xml3 <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downloaCODE
LOWtests/Fixtures/Api/opensubsonic/getUsers.json12 "email": "admin@example.com",CODE
LOWtests/Fixtures/Api/opensubsonic/getUsers.xml4 <user username="admin" email="admin@example.com" scrobblingEnabled="true" adminRole="true" settingsRole="true" downlCODE
LOWtests/Fixtures/Api/opensubsonic/getUser.json10 "email": "admin@example.com",CODE
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWresources/scripts/xss-probe/xss_probe.py14CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py27CODE
LOWresources/scripts/api-docs/generate_api_methods_md.py24CODE
LOWresources/scripts/api-docs/capture_reads.py11CODE
LOWresources/scripts/api-docs/format_md_tables.py21CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py31CODE
LOWresources/scripts/api-docs/lint_openapi.py25CODE
LOWresources/scripts/api-docs/generate_browse_docs.py22CODE
LOWresources/scripts/api-docs/check_openapi_examples.py23CODE
LOWresources/scripts/api-docs/browse_reference.py21CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWresources/scripts/xss-probe/xss_probe.py285CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1380CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1483CODE
LOWresources/scripts/api-docs/generate_openapi_schemas.py1586CODE
LOWresources/scripts/api-docs/generate_api_methods_md.py72CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py353CODE
LOWresources/scripts/api-docs/generate_browse_docs.py121CODE
LOWresources/scripts/api-docs/check_openapi_examples.py54CODE
Magic Placeholder Names1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHdocs/API.md131* ampache://yourapikey@localhost:993/ampache#ssl=trueCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWresources/scripts/api-docs/capture_reads.py47 except Exception:CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py163 except Exception:CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py254 except Exception:CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py401 except Exception as exc:CODE
LOWresources/scripts/api-docs/verify_openapi_shapes.py427 except Exception as exc:CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHresources/scripts/api-docs/generate_openapi_schemas.py659 Json8_Data: array{...}, array<int, T>, array<string, T>, unions with null,CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocker/data/bin/run.sh77 # Create an initial admin account if requestedCOMMENT