Repository Analysis

nextcloud/server

☁️ Nextcloud server, a safe home for all your data

3.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of nextcloud/server, a PHP project with 36,138 GitHub stars. SynthScan v2.0 examined 1,534,044 lines of code across 10493 source files, recording 4850 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 3.3 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).

3.3
Adjusted Score
3.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
36.1K
Stars
PHP
Language
1.5M
Lines of Code
10.5K
Files
4.8K
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 3HIGH 10MEDIUM 31LOW 4806

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 4850 distinct pattern matches across 13 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 Identifiers4495 hits · 4545 pts
SeverityFileLineSnippetContext
LOWcypress/support/commonUtils.ts23export function getNextcloudUserMenuToggle() {CODE
LOWcypress/support/utils/deleteDownloadsFolder.ts9export function deleteDownloadsFolderBeforeEach() {CODE
LOWcypress/e2e/core-utils.ts18export function handlePasswordConfirmation(adminPassword = 'admin') {CODE
LOWcypress/e2e/settings/usersUtils.ts14export function assertNotExistOrNotVisible(element: JQuery<HTMLElement>) {CODE
LOWcypress/e2e/theming/themingUtils.ts65export function validateUserThemingDefaultCss(expectedColor = defaultPrimary, expectedBackground: string | null = defaulCODE
LOWcypress/e2e/files/FilesUtils.ts52export function getInlineActionEntryForFileId(fileid: number, actionId: string) {CODE
LOWcypress/e2e/files/FilesUtils.ts61export function getInlineActionEntryForFile(file: string, actionId: string) {CODE
LOWcypress/e2e/files/FilesUtils.ts102export function triggerInlineActionForFileId(fileid: number, actionId: string) {CODE
LOWcypress/e2e/files/FilesUtils.ts113export function triggerInlineActionForFile(filename: string, actionId: string) {CODE
LOWcypress/e2e/files_versions/filesVersionsUtils.ts86export function setupTestSharedFileFromUser(owner: User, randomFileName: string, shareOptions: Partial<ShareSetting>) {CODE
LOWcore/Migrations/Version32000Date20250731062008.php41 private function cleanupDuplicateCategories(IOutput $output): void {CODE
LOWcore/Migrations/Version32000Date20250731062008.php110 private function cleanupDuplicateAssignments(IOutput $output, int $categoryId, int $keepId): void {CODE
LOWcore/Controller/CollaborationResourcesController.php205 public function createCollectionOnResource(string $baseResourceType, string $baseResourceId, string $name): DataResponsCODE
LOWcore/Controller/AppPasswordController.php209 public function getAppPasswordWithOneTimePassword(): DataResponse {CODE
LOWcore/Controller/LoginController.php209 private function setPasswordResetInitialState(?string $username): void {CODE
LOWcore/Controller/LoginController.php385 private function createLoginFailedResponse(CODE
LOWcore/Controller/TwoFactorChallengeController.php58 private function splitProvidersAndBackupCodes(array $providers): array {CODE
LOWcore/Controller/TaskProcessingApiController.php164 private function handleScheduleTaskInternal(CODE
LOWcore/Controller/TaskProcessingApiController.php810 public function getNextScheduledTaskBatch(array $providerIds, array $taskTypeIds, int $numberOfTasks = 1): DataResponseCODE
LOWcore/Controller/TaskProcessingApiController.php873 private function intersectTaskTypesAndProviders(array $taskTypeIds, array $providerIds): array {CODE
LOWcore/Controller/ClientFlowLoginController.php85 private function stateTokenForbiddenResponse(): StandaloneTemplateResponse {CODE
LOWcore/Controller/ClientFlowLoginV2Controller.php325 private function stateTokenMissingResponse(): StandaloneTemplateResponse {CODE
LOWcore/Controller/ClientFlowLoginV2Controller.php338 private function stateTokenForbiddenResponse(): StandaloneTemplateResponse {CODE
LOWcore/Controller/ClientFlowLoginV2Controller.php365 private function loginTokenForbiddenResponse(): StandaloneTemplateResponse {CODE
LOWcore/Controller/ClientFlowLoginV2Controller.php378 private function loginTokenForbiddenClientResponse(): StandaloneTemplateResponse {CODE
LOWcore/Command/Base.php98 protected function writeStreamingTableInOutputFormat(InputInterface $input, OutputInterface $output, \Iterator $items, CODE
LOWcore/Command/Encryption/EncryptAll.php37 protected function forceMaintenanceAndTrashbin(): void {CODE
LOWcore/Command/Encryption/EncryptAll.php46 protected function resetMaintenanceAndTrashbin(): void {CODE
LOWcore/Command/Encryption/DecryptAll.php38 protected function forceMaintenanceAndTrashbin(): void {CODE
LOWcore/Command/Encryption/DecryptAll.php48 protected function resetMaintenanceAndTrashbin(): void {CODE
LOWcore/Command/TwoFactorAuth/State.php64 private function filterEnabledDisabledUnknownProviders(array $providerStates): array {CODE
LOWcore/Command/User/AuthTokens/ListCommand.php73 public function formatTokenForPlainOutput(array $token): array {CODE
LOWcore/Command/Db/Migrations/GenerateMetadataCommand.php59 private function extractMigrationMetadataFromCore(): array {CODE
LOWcore/Command/Db/Migrations/GenerateMetadataCommand.php69 private function extractMigrationMetadataFromApps(): array {CODE
LOWcore/Command/Preview/Cleanup.php52 private function deletePreviewFromPreviewTable(OutputInterface $output): int {CODE
LOWcore/Command/Preview/Cleanup.php66 private function deletePreviewFromFileCacheTable(OutputInterface $output): int {CODE
LOWcore/Command/Maintenance/RepairShareOwnership.php120 protected function getWrongShareOwnershipForUser(IUser $user): array {CODE
LOWcore/AppInfo/Application.php115 public function registerNavigationEntries(CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php108 public function testBeforeControllerNotLoggedIn(): void {CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php122 public function testBeforeSetupController(): void {CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php136 public function testBeforeControllerNoTwoFactorCheckNeeded(): void {CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php156 public function testBeforeControllerTwoFactorAuthRequired(): void {CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php182 public function testBeforeControllerUserAlreadyLoggedIn(): void {CODE
LOWtests/Core/Middleware/TwoFactorMiddlewareTest.php208 public function testAfterExceptionTwoFactorAuthRequired(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php60 public function testShareActionApiDisabled(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php71 public function testShareActionDisabledForUser(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php90 public function testShareActionUserReceiverGroupMembersOnly(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php111 public function testShareActionUserReceiverGroupMembersOnlyExclude(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php135 public function testShareActionGroupReceiverGroupMembersOnly(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php151 public function testShareActionGroupReceiverGroupMembersOnlyExclude(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php170 public function testShareActionGroupReceiverGroupSharingDisabled(): void {CODE
LOWtests/Core/Listener/RestrictInteractionListenerTest.php187 public function testShareActionLinkEmailReceiverLinkSharingDisabled(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php168 public function testResetFormTokenErrorWithDisabledLink(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php323 public function testEmailWithMailSuccessful(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php385 public function testEmailCantSendException(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php445 public function testSetPasswordUnsuccessful(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php471 public function testSetPasswordSuccessful(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php506 public function testSetPasswordExpiredToken(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php525 public function testSetPasswordInvalidDataInDb(): void {CODE
LOWtests/Core/Controller/LostControllerTest.php545 public function testIsSetPasswordWithoutTokenFailing(): void {CODE
4435 more matches not shown…
Fake / Example Data254 hits · 296 pts
SeverityFileLineSnippetContext
LOW…/components/UnifiedSearch/SearchResultPlaceholders.vue30 <li v-for="placeholder in [1, 2, 3]" :key="placeholder">CODE
LOWtests/Core/Controller/LostControllerTest.php573 ->willReturn('random@example.org');CODE
LOWtests/playwright/e2e/settings/personal-info.spec.ts240 await page.getByRole('textbox', { name: 'Full name' }).fill('Jane Doe')CODE
LOWtests/playwright/e2e/settings/personal-info.spec.ts245 await expect(page.getByRole('textbox', { name: 'Full name' })).toHaveValue('Jane Doe')CODE
LOWtests/playwright/e2e/settings/personal-info.spec.ts253 await expect(page.getByRole('heading', { name: 'Jane Doe' })).toBeVisible()CODE
LOWtests/playwright/e2e/users/users.spec.ts44 await dialog.getByLabel(/Email/).fill('john@example.org')CODE
LOWtests/playwright/e2e/users/users-modify.spec.ts22 await displayNameInput.fill('John Doe')CODE
LOWtests/playwright/e2e/users/users-modify.spec.ts32 expect(info?.display_name).toBe('John Doe')CODE
LOWtests/lib/ImageTest.php57 $text = base64_encode('Lorem ipsum dolor sir amet …');CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php115 'placeholder' => 'Enter text setting', // placeholderCODE
LOWtests/lib/Settings/DeclarativeManagerTest.php123 'placeholder' => 'Enter email',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php131 'placeholder' => 'Enter your tel',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php139 'placeholder' => 'Enter url',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php147 'placeholder' => 'Enter number value',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php155 'placeholder' => 'Set secure value',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php164 'placeholder' => 'Select some option setting',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php228 'placeholder' => 'Set secure value',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php238 'placeholder' => 'Set secure value',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php248 'placeholder' => 'Set secure value',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php81 'placeholder' => 'Select some multiple options', // input placeholderCODE
LOWtests/lib/Settings/DeclarativeManagerTest.php89 'placeholder' => 'Select single option, test interval',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php386 'placeholder' => 'Select some multiple options',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php411 'placeholder' => 'Some invalid field placeholder',CODE
LOWtests/lib/Settings/DeclarativeManagerTest.php474 'placeholder' => 'Select some multiple options',CODE
LOW…s/lib/Collaboration/Collaborators/RemotePluginTest.php209 'FN' => 'John Doe',CODE
LOW…sts/lib/Collaboration/Collaborators/MailPluginTest.php453 'EMAIL' => ['test@example.org'],CODE
LOW…sts/lib/Collaboration/Collaborators/MailPluginTest.php491 'EMAIL' => ['test@example.org'],CODE
LOW…sts/lib/Collaboration/Collaborators/MailPluginTest.php787 'EMAIL' => ['test@example.org'],CODE
LOW…sts/lib/Collaboration/Collaborators/MailPluginTest.php827 'EMAIL' => ['test@example.org'],CODE
LOWtests/lib/Comments/CommentTest.php168 ['type' => 'user', 'id' => 'foo@bar.com'],CODE
LOW…/lib/Install/Events/InstallationCompletedEventTest.php18 $adminEmail = 'admin@example.com';CODE
LOW…/lib/Install/Events/InstallationCompletedEventTest.php54 $adminEmail = 'admin@example.com';CODE
LOW…/lib/Install/Events/InstallationCompletedEventTest.php65 $event = new InstallationCompletedEvent('/path/to/data', null, 'admin@example.com');CODE
LOW…/lib/Install/Events/InstallationCompletedEventTest.php69 $this->assertEquals('admin@example.com', $event->getAdminEmail());CODE
LOW…/lib/Install/Events/InstallationCompletedEventTest.php81 $email = 'admin@example.com';CODE
LOWtests/lib/Config/UserConfigMigrationFallbackTest.php99 ['appid' => 'settings', 'configkey' => 'email', 'configvalue' => 'user@example.com'],CODE
LOWtests/lib/Config/UserConfigMigrationFallbackTest.php114 $this->assertSame('user@example.com', $value);CODE
LOWtests/lib/Config/UserConfigMigrationFallbackTest.php170 $userConfig->setValueString('user1', 'settings', 'email', 'user@example.com');CODE
LOWtests/lib/Security/CryptoTest.php20 ['Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.'],CODE
LOWtests/lib/Security/CryptoTest.php20 ['Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.'],CODE
LOWtests/lib/Security/CryptoTest.php45 $stringToEncrypt = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.';CODE
LOWtests/lib/Security/CryptoTest.php45 $stringToEncrypt = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.';CODE
LOWtests/lib/Security/CryptoTest.php51 $stringToEncrypt = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.';CODE
LOWtests/lib/Security/CryptoTest.php51 $stringToEncrypt = 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.';CODE
LOWtests/lib/Security/CryptoTest.php94 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.',CODE
LOWtests/lib/Security/CryptoTest.php94 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.',CODE
LOWtests/lib/Mail/MailerTest.php131 ->willReturn((new Email())->to('foo@bar.com')->from('bar@foo.com')->text(''));CODE
LOWtests/lib/Contacts/ContactsMenu/EntryTest.php38 $this->entry->addEMailAddress('user@example.com');CODE
LOWtests/lib/Contacts/ContactsMenu/EntryTest.php39 $this->assertEquals(['user@example.com'], $this->entry->getEMailAddresses());CODE
LOWtests/lib/Contacts/ContactsMenu/EntryTest.php87 'emailAddresses' => ['user@example.com'],CODE
LOWtests/lib/Contacts/ContactsMenu/EntryTest.php100 $this->entry->addEMailAddress('user@example.com');CODE
LOWtests/lib/Contacts/ContactsMenu/ActionFactoryTest.php39 $href = 'user@example.com';CODE
LOWtests/lib/Contacts/ContactsMenu/ContactsStoreTest.php781 'FN' => 'John Doe',CODE
LOWtests/lib/Contacts/ContactsMenu/ContactsStoreTest.php868 'FN' => 'John Doe',CODE
LOW…/Contacts/ContactsMenu/Providers/EMailproviderTest.php51 'user@example.com',CODE
LOW…/Contacts/ContactsMenu/Providers/EMailproviderTest.php55 ->with($this->equalTo($iconUrl), $this->equalTo('user@example.com'), $this->equalTo('user@example.com'))CODE
LOW…s/lib/Contacts/ContactsMenu/Actions/LinkActionTest.php34 $name = 'Jane Doe';CODE
LOWtests/lib/User/UserTest.php607 'foo@bar.com'CODE
LOWtests/lib/User/UserTest.php611 $user->setSystemEMailAddress('foo@bar.com');CODE
LOWtests/lib/User/UserTest.php594 $test->assertEquals('foo@bar.com', $value);CODE
194 more matches not shown…
Decorative Section Separators23 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMtests/playwright/support/sections/SettingsUsersPage.ts30 // ── Sidebar navigation ──────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/support/sections/SettingsUsersPage.ts50 // ── User list ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/support/sections/SettingsUsersPage.ts60 // ── Dialogs ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts13// ── Visibility scope labels exactly as rendered in the UI ─────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts22// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts45// ── Fixture ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts56// ── Spec ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts74 // ── Profile ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts102 // ── Language ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts118 // ── Locale ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts133 // ── Primary email ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts184 // ── Additional emails ─────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts234 // ── Full name ─────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts256 // ── Phone number ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts321 // ── Social media ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts345 // ── Website ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts373 // ── Generic properties (any value, all visibility levels) ─────────────────COMMENT
MEDIUMtests/playwright/e2e/settings/personal-info.spec.ts409 // ── Non-federated properties (Local and Private only) ─────────────────────COMMENT
MEDIUMtests/playwright/e2e/users/users-groups.spec.ts15// ── Create group ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/users/users-groups.spec.ts38// ── Assign user to group ──────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/users/users-groups.spec.ts82// ── Delete an empty group ─────────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/users/users-groups.spec.ts120// ── Delete a non-empty group ──────────────────────────────────────────────────COMMENT
MEDIUMtests/playwright/e2e/users/users-groups.spec.ts160// ── Sort groups ───────────────────────────────────────────────────────────────COMMENT
Synthetic Comment Markers8 hits · 59 pts
SeverityFileLineSnippetContext
HIGHAGENTS.md91See [HowToApplyALicense.md](https://github.com/nextcloud/server/blob/master/contribute/HowToApplyALicense.md) for detailCODE
HIGHlib/public/SystemTag/ISystemTagObjectMapper.php86 * Assign the "Generated by AI" tag to the given object.COMMENT
HIGHlib/public/SystemTag/ISystemTag.php43 public const GENERATED_BY_AI = 'Generated by AI';CODE
HIGHapps/theming/lib/Themes/DefaultTheme.php197 // Assistant colors (marking AI generated content)COMMENT
HIGHapps/theming/lib/Themes/DefaultTheme.php198 '--color-background-assistant' => '#F6F5FF', // Background for AI generated contentCODE
HIGHapps/theming/lib/Themes/DefaultTheme.php198 '--color-background-assistant' => '#F6F5FF', // Background for AI generated contentCODE
HIGHapps/theming/lib/Themes/DefaultTheme.php199 '--color-border-assistant' => 'linear-gradient(125deg, #7398FE 50%, #6104A4 125%)', // Border for AI generated contenCODE
HIGHapps/theming/lib/Themes/DefaultTheme.php199 '--color-border-assistant' => 'linear-gradient(125deg, #7398FE 50%, #6104A4 125%)', // Border for AI generated contenCODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICAL…datenotification/src/components/UpdateNotification.vue434 this.groups = response.data.ocs.data.groups.sort(function(a, b) {CODE
CRITICALapps/files/src/store/sidebar.ts157 window.OCP.Files.Router._router.afterEach((to, from) => {CODE
CRITICAL…kflowengine/src/components/Checks/RequestUserGroup.vue108 response.data.ocs.data.groups.forEach((group) => {CODE
Verbosity Indicators14 hits · 28 pts
SeverityFileLineSnippetContext
LOWlib/private/RedisFactory.php157 * We need to check if the current version supports extra connection parameters, otherwise the connect method will throCOMMENT
LOWlib/private/L10N/Factory.php186 // Step 1: Forced language always has precedence over anything elseCOMMENT
LOWlib/private/L10N/Factory.php192 // Step 2: Return cached languageCOMMENT
LOWlib/private/L10N/Factory.php222 // Step 4: Check the request headersCOMMENT
LOWlib/private/L10N/Factory.php238 // Step 5: fall back to EnglishCOMMENT
LOWlib/private/L10N/Factory.php244 // Step 1: Forced language always has precedence over anything elseCOMMENT
LOWlib/private/L10N/Factory.php250 // Step 2: Check if we have a default languageCOMMENT
LOWlib/private/L10N/Factory.php256 // Step 3: fall back to EnglishCOMMENT
LOWlib/private/Lock/DBLockingProvider.php186 // since we only keep one shared lock in the db we need to check if we have more than one shared lock locally manuallCOMMENT
LOWlib/private/legacy/OC_Helper.php113 // We need to check if the program is in one of these dirs :COMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php139 // Step 1: Delete ALL mappings from duplicate tags that conflict with keepIdCOMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php143 // Step 2: Update all remaining mappings from duplicates to keepIdCOMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php151 // Step 3: Delete duplicate tags in bulk (safe now that mappings are gone)COMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php157 // Step 4: Sanitize the kept tag name if neededCOMMENT
Over-Commented Block27 hits · 27 pts
SeverityFileLineSnippetContext
LOWautotest-external.sh241#COMMENT
LOWautotest-external.sh261#COMMENT
LOWautotest.sh421 doneCOMMENT
LOWautotest.sh441# NOTES on pgsql:COMMENT
LOWcore/Migrations/Version24000Date20220404230027.php21class Version24000Date20220404230027 extends SimpleMigrationStep {COMMENT
LOWcore/Migrations/Version24000Date20220404230027.php41 // ]);COMMENT
LOWcore/Migrations/Version27000Date20230309104325.php61 /** @var ISchemaWrapper $schema */COMMENT
LOWcore/Migrations/Version23000Date20210906132259.php21 * @param array $optionsCOMMENT
LOWcore/Migrations/Version23000Date20210906132259.php41 // ]);COMMENT
LOWcore/Migrations/Version28000Date20231126110901.php41 // if ($table->hasColumn('lazy')) {COMMENT
LOWcore/Migrations/Version29000Date20231126110901.php41 // // type=2 means value is typed as MIXEDCOMMENT
LOWcore/Migrations/Version13000Date20170718121200.php881 // $table = $schema->createTable('credentials');COMMENT
LOWtests/lib/Encryption/ManagerTest.php201 $this->assertTrue($this->manager->setDefaultEncryptionModule('ID1'));COMMENT
LOWtests/lib/Encryption/ManagerTest.php221 // $m->registerEncryptionModule($em);COMMENT
LOWtests/lib/Encryption/ManagerTest.php241 // * @expectedExceptionMessage Module with ID: unknown does not exist.COMMENT
LOW.devcontainer/entrypoint.sh1#!/bin/bashCOMMENT
LOWlib/OC.php421 // TODO: See https://github.com/nextcloud/server/issues/37277#issuecomment-1476366147 and the other commentsCOMMENT
LOWlib/private/DB/QueryBuilder/QueryBuilder.php181 // likely an error during conversion of $value to stringCOMMENT
LOWapps/encryption/lib/Crypto/Encryption.php281 // next write round, and added to the start ofCOMMENT
LOWapps/user_ldap/lib/Access.php1861 // The format of a SID binary string is as follows:COMMENT
LOW…sting/lib/Migration/Version30000Date20240102030405.php21use OCP\Migration\IOutput;COMMENT
LOWapps/files/src/components/VirtualList.vue361 let scrollTop = this.indexToScrollPos(Math.min(index, clampedIndex))COMMENT
LOWapps/files/src/components/FileEntryMixin.ts481 returnCOMMENT
LOWapps/dav/lib/Connector/Sabre/ExceptionLoggerPlugin.php41 // (e.g. propfind for tags with string instead of int)COMMENT
LOWapps/dav/lib/CalDAV/Schedule/IMipService.php521 // Relative: Every Month on the First Sunday, Saturday for the entire dayCOMMENT
LOWapps/dav/lib/CalDAV/Schedule/IMipService.php581 $startTime = $this->l10n->l('time', $er->startDateTime(), ['width' => 'short']);COMMENT
LOWapps/dav/lib/CalDAV/Schedule/IMipService.php681 // store following occurrence valueCOMMENT
Structural Annotation Overuse11 hits · 24 pts
SeverityFileLineSnippetContext
LOWlib/private/L10N/Factory.php186 // Step 1: Forced language always has precedence over anything elseCOMMENT
LOWlib/private/L10N/Factory.php192 // Step 2: Return cached languageCOMMENT
LOWlib/private/L10N/Factory.php222 // Step 4: Check the request headersCOMMENT
LOWlib/private/L10N/Factory.php238 // Step 5: fall back to EnglishCOMMENT
LOWlib/private/L10N/Factory.php244 // Step 1: Forced language always has precedence over anything elseCOMMENT
LOWlib/private/L10N/Factory.php250 // Step 2: Check if we have a default languageCOMMENT
LOWlib/private/L10N/Factory.php256 // Step 3: fall back to EnglishCOMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php139 // Step 1: Delete ALL mappings from duplicate tags that conflict with keepIdCOMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php143 // Step 2: Update all remaining mappings from duplicates to keepIdCOMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php151 // Step 3: Delete duplicate tags in bulk (safe now that mappings are gone)COMMENT
LOWlib/private/Repair/RepairSanitizeSystemTags.php157 // Step 4: Sanitize the kept tag name if neededCOMMENT
Cross-Language Confusion (JS/TS)2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHapps/files/src/utils/permissions.ts15 * @return True if downloadable, false otherwiseCOMMENT
HIGHapps/files/src/utils/permissions.ts44 * @return True if syncable, false otherwiseCOMMENT
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/data/emails/new-account-email.html72 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
MEDIUMtests/data/emails/new-account-email-custom.html72 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
MEDIUMtests/data/emails/new-account-email-single-button.html72 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
MEDIUMapps/settings/tests/Mailer/NewUserMailHelperTest.php222 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
MEDIUMapps/settings/tests/Mailer/NewUserMailHelperTest.php476 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
MEDIUMapps/settings/tests/Mailer/NewUserMailHelperTest.php734 <p style="Margin:0;Margin-bottom:10px;color:#777;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,OxCODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/update-min-supported-desktop.yml27 # Create a temporary directory for the downloaded fileCOMMENT
MEDIUM.github/workflows/update-min-supported-desktop.yml74 # Define the files to updateCOMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOW.github/workflows/update-min-supported-desktop.yml78 # Check if files existCOMMENT
LOW.github/workflows/update-min-supported-desktop.yml99 # Check if any changes were madeCOMMENT
LOW.github/workflows/command-compile.yml159 # Check if there are any changes after resolving conflictsCOMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWapps/dav/lib/CalDAV/CalDavBackend.php1602 // TODO: implement custom event for federated calendarsCOMMENT
LOWapps/dav/lib/CalDAV/CalDavBackend.php1685 // TODO: implement custom event for federated calendarsCOMMENT