Repository Analysis

CrossPaste/crosspaste-desktop

Universal Pasteboard Across Devices

2.4 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of CrossPaste/crosspaste-desktop, a Kotlin project with 2,231 GitHub stars. SynthScan v2.0 examined 124,440 lines of code across 1141 source files, recording 117 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 2.4 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).

2.4
Adjusted Score
2.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.2K
Stars
Kotlin
Language
124.4K
Lines of Code
1.1K
Files
117
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 72LOW 45

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 117 distinct pattern matches across 9 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.

Decorative Section Separators66 hits · 213 pts
SeverityFileLineSnippetContext
MEDIUMi18n_batch_update.sh3# ==========================================COMMENT
MEDIUMi18n_batch_update.sh5# ==========================================COMMENT
MEDIUMi18n_batch_update.sh16# ==========================================COMMENT
MEDIUMi18n_batch_update.sh18# ==========================================COMMENT
MEDIUMi18n_batch_update.sh37# ==========================================COMMENT
MEDIUMi18n_batch_update.sh39# ==========================================COMMENT
MEDIUMi18n_batch_update.sh95# ==========================================COMMENT
MEDIUMi18n_batch_update.sh97# ==========================================COMMENT
MEDIUMi18n_batch_update.sh116# ==========================================COMMENT
MEDIUMi18n_batch_update.sh118# ==========================================COMMENT
MEDIUMi18n_batch_update.sh157# ==========================================COMMENT
MEDIUMi18n_batch_update.sh159# ==========================================COMMENT
MEDIUMi18n_batch_update.sh229# ==========================================COMMENT
MEDIUMi18n_batch_update.sh231# ==========================================COMMENT
MEDIUMi18n_batch_update.sh238# ==========================================COMMENT
MEDIUMi18n_batch_update.sh240# ==========================================COMMENT
MEDIUMi18n_batch_update.sh302# ==========================================COMMENT
MEDIUMi18n_batch_update.sh305# ==========================================COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt181 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt185 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt506 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt508 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt539 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt541 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt755 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt757 // ──────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts38// ─── Per-device runtime facts (source of truth) ───────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts91// ─── WebSocket manager (initialized in initialize()) ────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts95// ─── Current connection attempt ─────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts104// ─── Clipboard monitoring ───────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts327// ─── Identity ───────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts344// ─── Device status helpers ──────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts363// ─── Sync & heartbeat ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts478// ─── Migration from legacy single-device format ────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts510// ─── Startup ────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts605// ─── Alarm handler ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts620// ─── Broadcast ──────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/background/service-worker.ts660// ─── Message handling ───────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/i18n/use-i18n.ts19// ─── Language detection ─────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/i18n/use-i18n.ts29// ─── Context ────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/i18n/use-i18n.ts39// ─── Provider ───────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/i18n/use-i18n.ts72// ─── Hooks ──────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/paste/paste-type-detector.ts66// ─── URL detection ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/paste/paste-type-detector.ts84// ─── Color detection ────────────────────────────────────────────────────COMMENT
MEDIUM…src/shared/paste/__tests__/paste-type-detector.test.ts5// ─── Helper: ARGB integer from components ─────────────────────────────COMMENT
MEDIUM…src/shared/paste/__tests__/paste-type-detector.test.ts10// ─── parseColor ───────────────────────────────────────────────────────COMMENT
MEDIUM…src/shared/paste/__tests__/paste-type-detector.test.ts159// ─── detectPasteType ──────────────────────────────────────────────────COMMENT
MEDIUM…hared/paste/__tests__/remove-html-image-plugin.test.ts8// ─── isSingleImgInBody ───────────────────────────────────────────────COMMENT
MEDIUM…hared/paste/__tests__/remove-html-image-plugin.test.ts59// ─── RemoveHtmlImagePlugin.process ───────────────────────────────────COMMENT
MEDIUMweb/src/shared/ws/ws-manager.ts189 // ─── Reconnection ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/ws/ws-client.ts188 // ─── Frame parsing ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/ws/ws-client.ts248 // ─── Heartbeat ──────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/ws/ws-client.ts281 // ─── Send queue ─────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/shared/ws/ws-client.ts311 // ─── Cleanup ────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/AboutView.tsx25// ─── Divider ────────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/AboutView.tsx35// ─── Link Item ──────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/AboutView.tsx78// ─── About View ─────────────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/SettingsView.tsx23// ─── Segmented Control ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/SettingsView.tsx61// ─── Language Dropdown ──────────────────────────────────────────────────COMMENT
MEDIUMweb/src/components/settings/SettingsView.tsx96// ─── Download Banner ────────────────────────────────────────────────────COMMENT
6 more matches not shown…
Verbosity Indicators10 hits · 19 pts
SeverityFileLineSnippetContext
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt227 // Step 1: Write paste.data file (simulating export)COMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt242 // Step 2: CompressCOMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt252 // Step 3: Decompress (simulating import)COMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt260 // Step 4: Read and verify paste.dataCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt697 // Step 1: Exchange keysCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt716 // Step 2: Compute local SAS and compare with user-entered tokenCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt728 // Step 3: Confirm trustCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt740 // Step 4: Save remote key locally and send heartbeatCOMMENT
LOW…osspaste/image/coil/AppSourceIconCropTransformation.kt32 // Step 1: normalize by symmetrically trimming transparent padding.COMMENT
LOW…osspaste/image/coil/AppSourceIconCropTransformation.kt38 // Step 2: apply the fixed crop ratios relative to the trimmed content.COMMENT
Structural Annotation Overuse10 hits · 19 pts
SeverityFileLineSnippetContext
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt227 // Step 1: Write paste.data file (simulating export)COMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt242 // Step 2: CompressCOMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt252 // Step 3: Decompress (simulating import)COMMENT
LOW…n/com/crosspaste/paste/PasteExportImportServiceTest.kt260 // Step 4: Read and verify paste.dataCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt697 // Step 1: Exchange keysCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt716 // Step 2: Compute local SAS and compare with user-entered tokenCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt728 // Step 3: Confirm trustCOMMENT
LOW…/commonMain/kotlin/com/crosspaste/sync/SyncResolver.kt740 // Step 4: Save remote key locally and send heartbeatCOMMENT
LOW…osspaste/image/coil/AppSourceIconCropTransformation.kt32 // Step 1: normalize by symmetrically trimming transparent padding.COMMENT
LOW…osspaste/image/coil/AppSourceIconCropTransformation.kt38 // Step 2: apply the fixed crop ratios relative to the trimmed content.COMMENT
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOWsmoke-test.sh1#!/usr/bin/env bashCOMMENT
LOW…ste/ui/paste/side/preview/SkiaAnimatedImageViewTest.kt101COMMENT
LOW…t/kotlin/com/crosspaste/sync/GeneralSyncHandlerTest.kt581 assertNull(address)COMMENT
LOW…c/commonMain/kotlin/com/crosspaste/net/TelnetHelper.kt61 }COMMENT
LOW…nMain/kotlin/com/crosspaste/net/routing/SyncRouting.kt161 // Address push (#4509 phase 3): the probe may carry the caller's subnet-matchedCOMMENT
LOW…sspaste/ui/paste/side/preview/SkiaAnimatedImageView.kt81COMMENT
LOWweb/src/vite-env.d.ts1/// <reference types="vite/client" />COMMENT
LOWscripts/build-test-windows-zip.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/serve-fake-update.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/build-oss-test-update.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/build-beta-linux.yml1name: "Build Beta (Linux)"COMMENT
LOW.github/scripts/package_appimage.sh1#!/bin/bashCOMMENT
Self-Referential Comments2 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMapp/script/mac_start.sh3# Define the application path relative to this scriptCOMMENT
MEDIUMapp/script/linux_start.sh3# Define the application path relative to this scriptCOMMENT
Redundant / Tautological Comments4 hits · 9 pts
SeverityFileLineSnippetContext
LOWapp/script/mac_start.sh6# Check if a PID is provided and if it is a numberCOMMENT
LOWapp/script/mac_start.sh10 # Check if the process exists and wait for it to stopCOMMENT
LOWapp/script/linux_start.sh6# Check if a PID is provided and if it is a numberCOMMENT
LOWapp/script/linux_start.sh10 # Check if the process exists and wait for it to stopCOMMENT
Hyper-Verbose Identifiers9 hits · 9 pts
SeverityFileLineSnippetContext
LOWweb/src/background/service-worker.ts54function getOrCreateRuntime(targetId: string): RuntimeFacts {CODE
LOWweb/src/shared/app/ui-support.ts20export async function openCrossPasteWebInBrowser(path = ""): Promise<void> {CODE
LOWweb/src/shared/utils/html-color.ts93function parseBackgroundColorFromStyle(style: string): number | null {CODE
LOWweb/src/shared/hooks/use-oversize-notice.ts20export function useOversizeNoticeListener(): void {CODE
LOWweb/src/shared/i18n/i18n-core.ts55export async function buildTranslatorFromStorage(): Promise<TranslateFn> {CODE
LOWweb/src/shared/ws/ws-message-handler.ts284 async function handlePasteRejectedOversize(CODE
LOWweb/src/shared/clipboard/clipboard-sync-writer.ts22export async function writeRemotePasteToClipboard(pasteData: PasteData): Promise<boolean> {CODE
LOW.github/scripts/processJarFiles.js102function removeTesseractFilesFromJar(jarPath) {CODE
LOW.github/scripts/validateAndUpdateVersion.js7async function validateAndUpdateVersion() {CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…ommonMain/kotlin/com/crosspaste/ui/base/FontManager.kt100 * This is for demonstration purposes of a fontCOMMENT
MEDIUM.github/scripts/processJarFiles.js94 // You can modify this to extract specific parts using regex groupsCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…m/crosspaste/ui/paste/edit/PasteHtmlEditContentView.kt141 // Track the annotated string at the last save point for robust change detectionCOMMENT
MEDIUMweb/src/shared/utils/html-color.ts94 // Use a temp element to leverage browser CSS parsingCOMMENT