Repository Analysis

nextcloud/all-in-one

📦 The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of nextcloud/all-in-one, a PHP project with 10,106 GitHub stars. SynthScan v2.0 examined 34,725 lines of code across 334 source files, recording 101 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.0 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.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.1K
Stars
PHP
Language
34.7K
Lines of Code
334
Files
101
Pattern Hits
2026-07-14
Scan Date
0.01
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 2MEDIUM 8LOW 91

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 101 distinct pattern matches across 7 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 Identifiers56 hits · 59 pts
SeverityFileLineSnippetContext
LOWapp/composer/composer/InstalledVersions.php58 public static function getInstalledPackagesByType($type)CODE
LOWphp/public/containers-form-submit.js54 function checkForOptionContainerChanges() {CODE
LOWphp/public/containers-form-submit.js100 function checkForCommunityContainerChanges() {CODE
LOWphp/public/containers-form-submit.js134 function handleDockerSocketProxyWarning() {CODE
LOWphp/src/Docker/DockerActionManager.php70 public function GetContainerRestartingState(Container $container): ContainerState {CODE
LOWphp/src/Docker/DockerActionManager.php113 public function GetContainerStartingState(Container $container): ContainerState {CODE
LOWphp/src/Docker/DockerActionManager.php625 private function isContainerUpdateAvailable(string $id): string {CODE
LOWphp/src/Docker/DockerActionManager.php684 private function GetAllNextcloudExecCommands(): string {CODE
LOWphp/src/Docker/DockerActionManager.php689 private function GetRepoDigestsOfContainer(string $containerName): ?array {CODE
LOWphp/src/Docker/DockerActionManager.php784 public function IsMastercontainerUpdateAvailable(): bool {CODE
LOWphp/src/Docker/DockerActionManager.php874 private function DisconnectContainerFromBridgeNetwork(string $id): void {CODE
LOWphp/src/Docker/DockerActionManager.php894 private function ConnectContainerIdToNetwork(string $id, string $internalPort, string $network = 'nextcloud-aio', boCODE
LOWphp/src/Docker/DockerActionManager.php946 public function ConnectMasterContainerToNetwork(): void {CODE
LOWphp/src/Docker/DockerActionManager.php952 public function ConnectContainerToNetwork(Container $container): void {CODE
LOWphp/src/Docker/DockerActionManager.php984 public function GetBackupcontainerExitCode(): int {CODE
LOWphp/src/Docker/DockerActionManager.php1006 public function GetDatabasecontainerExitCode(): int {CODE
LOWphp/src/Docker/DockerActionManager.php1046 private function GetCreatedTimeOfNextcloudImage(string $imageName): ?string {CODE
LOWphp/src/Docker/DockerActionManager.php1063 public function GetAndGenerateSecretWrapper(string $secretId): string {CODE
LOWphp/src/Docker/DockerActionManager.php1095 public function RunNextcloudUpgradeToLatestMajor(\Closure $addToStreamingResponseBody): void {CODE
LOWphp/src/Controller/DockerController.php28 private function PerformRecursiveContainerStart(string $id, bool $pullImage = true, ?\Closure $addToStreamingResponsCODE
LOWphp/src/Controller/DockerController.php51 private function PerformRecursiveImagePull(string $id) : void {CODE
LOWphp/src/Controller/DockerController.php92 public function StartBackupContainerBackup(Request $request, Response $response, array $args) : Response {CODE
LOWphp/src/Controller/DockerController.php115 public function StartBackupContainerCheck(Request $request, Response $response, array $args) : Response {CODE
LOWphp/src/Controller/DockerController.php153 public function StartBackupContainerRestore(Request $request, Response $response, array $args) : Response {CODE
LOWphp/src/Controller/DockerController.php176 public function StartBackupContainerCheckRepair(Request $request, Response $response, array $args) : Response {CODE
LOWphp/src/Controller/DockerController.php295 private function PerformRecursiveContainerStop(string $id, bool $forceStopNextcloud = false, ?\Closure $addToStreamiCODE
LOWphp/src/Controller/DockerController.php342 public function RunNextcloudUpgradeToLatestMajor(Request $request, Response $response, array $args) : Response {CODE
LOWphp/src/Controller/DockerController.php379 public function StartDomaincheckContainer() : voidCODE
LOWphp/src/Controller/DockerController.php421 private function getStreamingResponseHtmlStart() : string {CODE
LOWphp/src/Controller/DockerController.php456 private function getAddToStreamingResponseBody(Response $nonbufResp) : \Closure {CODE
LOWphp/src/Controller/DockerController.php479 private function finalizeStreamingResponse(Response $nonbufResp) : void {CODE
LOWphp/src/Controller/DockerController.php483 private function getStreamingResponseHtmlEnd() : string {CODE
LOWphp/src/Controller/DockerController.php487 private function getTimestampForDockerLogsApiSince(string $input) : stringCODE
LOWphp/src/Data/DataConst.php39 public static function GetAdditionalBackupDirectoriesFile() : string {CODE
LOWphp/src/Data/DataConst.php59 public static function GetCommunityContainersDirectory() : string {CODE
LOWphp/src/Data/DataConst.php63 public static function GetCollaboraSeccompProfilePath() : string {CODE
LOWphp/src/Data/DataConst.php67 public static function GetContainersDefinitionPath() : string {CODE
LOWphp/src/Data/ConfigurationManager.php284 public function isDesecAwaitingVerification(): bool {CODE
LOWphp/src/Data/ConfigurationManager.php439 public function getAndGenerateSecret(string $secretId) : string {CODE
LOWphp/src/Data/ConfigurationManager.php537 private function isOtherOfficeThanEuroOfficeEnabled() : bool {CODE
LOWphp/src/Data/ConfigurationManager.php726 public function deleteBorgBackupLocationItems() : void {CODE
LOWphp/src/Data/ConfigurationManager.php744 public function setBorgRestoreLocationVarsAndPassword(string $location, string $repo, string $password) : void {CODE
LOWphp/src/Data/ConfigurationManager.php822 private function getEnvironmentalVariableOrConfig(string $envVariableName, string $configName, string $defaultValue)CODE
LOWphp/src/Data/ConfigurationManager.php849 public function getCollaboraSeccompPolicy() : string {CODE
LOWphp/src/Data/ConfigurationManager.php884 private function getDailyBackupFileContent() : string {CODE
LOWphp/src/Data/ConfigurationManager.php915 public function areAutomaticUpdatesEnabled() : bool {CODE
LOWphp/src/Data/ConfigurationManager.php936 public function setAdditionalBackupDirectories(string $additionalBackupDirectories) : void {CODE
LOWphp/src/Data/ConfigurationManager.php957 public function getAdditionalBackupDirectoriesString() : string {CODE
LOWphp/src/Data/ConfigurationManager.php964 public function getAdditionalBackupDirectoriesArray() : array {CODE
LOWphp/src/Data/ConfigurationManager.php995 public function shouldDomainValidationBeSkipped(bool $skipDomainValidation) : bool {CODE
LOWphp/src/Data/ConfigurationManager.php1002 public function getApacheAdditionalNetwork() : string {CODE
LOWphp/src/Data/ConfigurationManager.php1021 private function validateCollaboraDictionaries(string $CollaboraDictionaries) : void {CODE
LOWphp/src/Data/ConfigurationManager.php1034 public function deleteCollaboraDictionaries() : void {CODE
LOWphp/src/Data/ConfigurationManager.php1041 private function validateCollaboraAdditionalOptions(string $additionalCollaboraOptions) : void {CODE
LOWphp/src/Data/ConfigurationManager.php1054 public function deleteAdditionalCollaboraOptions() : void {CODE
LOWphp/src/Data/ConfigurationManager.php1058 public function listAvailableCommunityContainers() : array {CODE
Redundant / Tautological Comments22 hits · 35 pts
SeverityFileLineSnippetContext
LOWContainers/nextcloud/entrypoint.sh67 # Check if variable is an actual certCOMMENT
LOWContainers/nextcloud/entrypoint.sh187 # Check if it skips a major versionCOMMENT
LOWContainers/nextcloud/entrypoint.sh591 # Check if appdata is presentCOMMENT
LOWContainers/nextcloud/start.sh50# Check if /dev/dri device is present and apply correct permissionsCOMMENT
LOWContainers/postgresql/start.sh31# Check if dump dir is writeableCOMMENT
LOWContainers/postgresql/start.sh107 # Check if the line we grep for later on is thereCOMMENT
LOWContainers/borgbackup/backupscript.sh40# Check if target is mountpointCOMMENT
LOWContainers/borgbackup/backupscript.sh46# Check if repo is uninitializedCOMMENT
LOWContainers/mastercontainer/daily-backup.sh9# Check if initial configuration has been done, otherwise this script should do nothing.COMMENT
LOWContainers/mastercontainer/daily-backup.sh29# Check if apache is running/stopped, watchtower is stopped and backupcontainer is stoppedCOMMENT
LOWContainers/mastercontainer/cron.sh57 # Check if AIO is outdatedCOMMENT
LOWContainers/mastercontainer/start.sh27# Check if running as root userCOMMENT
LOWContainers/mastercontainer/start.sh39# Check if socket is available and readableCOMMENT
LOWContainers/mastercontainer/start.sh62 # Check if a group with the same group name of /var/run/docker.socket already exists in the containerCOMMENT
LOWContainers/mastercontainer/start.sh90# Check if DOCKER_API_VERSION is set globallyCOMMENT
LOWContainers/mastercontainer/start.sh110# Check if docker info can be usedCOMMENT
LOWContainers/mastercontainer/start.sh147# Check if vfs is used: https://github.com/nextcloud/all-in-one/discussions/1467COMMENT
LOWContainers/mastercontainer/start.sh156# Check if snap installCOMMENT
LOWContainers/mastercontainer/start.sh163# Check if startup command was executed correctlyCOMMENT
LOWContainers/mastercontainer/start.sh356# Check if ghcr.io is reachableCOMMENT
LOWContainers/mastercontainer/start.sh392# Check if unsupported env are set (but don't exit as it would break many instances)COMMENT
LOWContainers/watchtower/start.sh7# Check if socket is available and readableCOMMENT
Slop Phrases8 hits · 14 pts
SeverityFileLineSnippetContext
LOWcompose.yaml10 - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applCODE
LOWcompose.yaml10 - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applCODE
MEDIUMnextcloud-aio-helm-chart/values.yaml44STORAGE_CLASS: # By setting this, you can adjust the storage class for your volumes. This should be a fast storagCODE
MEDIUMnextcloud-aio-helm-chart/values.yaml59NAMESPACE: default # By changing this, you can adjust the namespace of the installation which allows to install mCODE
MEDIUMnextcloud-aio-helm-chart/values.yaml60NAMESPACE_DISABLED: "no" # By setting this to "yes", you can disabled the creation of the namespace so that you cCODE
MEDIUMnextcloud-aio-helm-chart/update-helm.sh414echo 'STORAGE_CLASS: # By setting this, you can adjust the storage class for your volumes. This should be a fast CODE
MEDIUMnextcloud-aio-helm-chart/update-helm.sh425NAMESPACE: default # By changing this, you can adjust the namespace of the installation which allows to install mCODE
MEDIUMnextcloud-aio-helm-chart/update-helm.sh426NAMESPACE_DISABLED: "no" # By setting this to "yes", you can disabled the creation of the namespace so that you cCODE
Synthetic Comment Markers2 hits · 12 pts
SeverityFileLineSnippetContext
HIGHAGENTS.md90See [HowToApplyALicense.md](https://github.com/nextcloud/server/blob/master/contribute/HowToApplyALicense.md) for detailCODE
HIGHphp/src/Docker/DockerActionManager.php1115 // Special-case images prune to include the dangling filter as requestedCOMMENT
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWcompose.yaml21 # APACHE_PORT: 11000 # Needed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, CloudfCOMMENT
LOWcompose.yaml41 # TALK_PORT: 3478 # This allows to adjust the port that the talk container is using which is exposed on the host. COMMENT
LOWcompose.yaml61# configs:COMMENT
LOWcompose.yaml81# driver_opts:COMMENT
LOWreverse-proxy.md501COMMENT
LOWphp/tests/tests/desec-existing.spec.js1import { test, expect } from '@playwright/test';COMMENT
LOWphp/tests/tests/desec-register.spec.js1import { test, expect } from '@playwright/test';COMMENT
LOWphp/src/Docker/DockerActionManager.php441 // This is needed due to a bug in libwebsockets used in Janus which cannot handle unlimited ulimitsCOMMENT
LOW.github/workflows/desec-api-version-watch.yml1name: deSEC API version watchCOMMENT
LOW.github/workflows/dependency-updates.yml21 cd ./phpCOMMENT
LOWContainers/collabora/healthcheck.sh1#!/bin/bashCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMContainers/borgbackup/backupscript.sh220 # Create the backupCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMContainers/borgbackup/backupscript.sh477 # More robust than e.g. xargs as I got a ~"args line too long" error while testing that, but it's slowerCOMMENT