Repository Analysis

onevcat/Kingfisher

A lightweight, pure-Swift library for downloading and caching images from the web.

9.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of onevcat/Kingfisher, a Swift project with 24,370 GitHub stars. SynthScan v2.0 examined 47,849 lines of code across 295 source files, recording 431 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 9.9 places this repository in the Low AI signal 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).

9.9
Adjusted Score
9.9
Raw Score
100%
Time Factor
2026-07-13
Last Push
24.4K
Stars
Swift
Language
47.8K
Lines of Code
295
Files
431
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 21LOW 410

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 431 distinct pattern matches across 6 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.

Over-Commented Block393 hits · 386 pts
SeverityFileLineSnippetContext
LOWDemo/Demo/Kingfisher-macOS-Demo/ViewController.swift1//COMMENT
LOW…emo/Kingfisher-macOS-Demo/GIFHeavyViewController.swift1//COMMENT
LOW…Demo/Kingfisher-macOS-Demo/SwiftUIViewController.swift1//COMMENT
LOWDemo/Demo/Kingfisher-macOS-Demo/AppDelegate.swift1//COMMENT
LOWDemo/Demo/Kingfisher-Demo/AppDelegate.swift1//COMMENT
LOWDemo/Demo/Kingfisher-Demo/Resources/ImageLoader.swift1//COMMENT
LOW…o/Kingfisher-Demo/SwiftUIViews/AnimatedImageDemo.swift1//COMMENT
LOW…/Kingfisher-Demo/SwiftUIViews/GeometryReaderDemo.swift1//COMMENT
LOW…Kingfisher-Demo/SwiftUIViews/ProgressiveJPEGDemo.swift1//COMMENT
LOW…Kingfisher-Demo/SwiftUIViews/SizingAnimationDemo.swift1//COMMENT
LOWDemo/Demo/Kingfisher-Demo/SwiftUIViews/GridDemo.swift1//COMMENT
LOW…Demo/Kingfisher-Demo/SwiftUIViews/SingleViewDemo.swift1//COMMENT
LOW…Demo/Kingfisher-Demo/SwiftUIViews/LazyVStackDemo.swift1//COMMENT
LOWDemo/Demo/Kingfisher-Demo/SwiftUIViews/ListDemo.swift1//COMMENT
LOWDemo/Demo/Kingfisher-Demo/SwiftUIViews/MainView.swift1//COMMENT
LOW…/Kingfisher-Demo/SwiftUIViews/TransitionViewDemo.swift1//COMMENT
LOW…/Kingfisher-Demo/SwiftUIViews/LoadingFailureDemo.swift1//COMMENT
LOW…mo/Kingfisher-Demo/SwiftUIViews/PhotosPickerDemo.swift1//COMMENT
LOW…/Kingfisher-Demo/SwiftUIViews/LoadTransitionDemo.swift1//COMMENT
LOW…isher-Demo/SwiftUIViews/Regression/Issue2035View.swift1//COMMENT
LOW…isher-Demo/SwiftUIViews/Regression/Issue1998View.swift1//COMMENT
LOW…isher-Demo/SwiftUIViews/Regression/Issue2295View.swift1//COMMENT
LOW…isher-Demo/SwiftUIViews/Regression/Issue2352View.swift1//COMMENT
LOW…/Extensions/UIViewController+KingfisherOperation.swift1//COMMENT
LOW…sher-Demo/ViewControllers/GIFHeavyViewController.swift1//COMMENT
LOW…ViewControllers/InfinityCollectionViewController.swift1//COMMENT
LOW…iewControllers/IndicatorCollectionViewController.swift1//COMMENT
LOW…isher-Demo/ViewControllers/SwiftUIViewController.swift1//COMMENT
LOW…ngfisher-Demo/ViewControllers/MainViewController.swift1//COMMENT
LOW…r-Demo/ViewControllers/DetailImageViewController.swift1//COMMENT
LOW…wControllers/AVAssetImageGeneratorViewController.swift1//COMMENT
LOW…emo/ViewControllers/TextAttachmentViewController.swift1//COMMENT
LOW…iewControllers/ProcessorCollectionViewController.swift1//COMMENT
LOW…mo/ViewControllers/ProgressiveJPEGViewController.swift1//COMMENT
LOW…ollers/ImageDataProviderCollectionViewController.swift1//COMMENT
LOW…her-Demo/ViewControllers/LivePhotoViewController.swift1//COMMENT
LOW…mo/ViewControllers/AutoSizingTableViewController.swift1//COMMENT
LOW…emo/ViewControllers/PHPickerResultViewController.swift1//COMMENT
LOW…her-Demo/ViewControllers/ImageCollectionViewCell.swift1//COMMENT
LOW…ntrollers/HighResolutionCollectionViewController.swift1//COMMENT
LOW…/ViewControllers/OrientationImagesViewController.swift1//COMMENT
LOW…er-Demo/ViewControllers/TransitionViewController.swift1//COMMENT
LOW…Demo/ViewControllers/NormalLoadingViewController.swift1//COMMENT
LOW…ingfisher-Demo/ViewControllers/GIFViewController.swift1//COMMENT
LOW…isher-watchOS-Demo Extension/InterfaceController.swift1//COMMENT
LOW…gfisher-watchOS-Demo Extension/ExtensionDelegate.swift1//COMMENT
LOWDemo/Demo/Kingfisher-tvOS-Demo/AppDelegate.swift1//COMMENT
LOWTests/KingfisherTests/KingfisherTestHelper.swift1//COMMENT
LOWTests/KingfisherTests/ImageModifierTests.swift1//COMMENT
LOWTests/KingfisherTests/ImageDownloaderTests.swift1//COMMENT
LOWTests/KingfisherTests/RetryStrategyTests.swift1//COMMENT
LOWTests/KingfisherTests/KingfisherManagerTests.swift1//COMMENT
LOWTests/KingfisherTests/MemoryStorageTests.swift1//COMMENT
LOWTests/KingfisherTests/ImageCacheTests.swift1//COMMENT
LOWTests/KingfisherTests/ImageCacheTests.swift1041 ///COMMENT
LOWTests/KingfisherTests/KingfisherTests-Bridging-Header.h1//COMMENT
LOW…ngfisherTests/ImageDataProviderCancellationTests.swift1//COMMENT
LOW…ngfisherTests/ImageDataProviderCancellationTests.swift21// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THECOMMENT
LOWTests/KingfisherTests/ImageExtensionTests.swift1//COMMENT
LOWTests/KingfisherTests/NSButtonExtensionTests.swift1//COMMENT
333 more matches not shown…
Excessive Try-Catch Wrapping12 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md695 .onFailure { err in print("Error: \(err)") }CODE
MEDIUMDemo/Demo/Kingfisher-Demo/SwiftUIViews/ListDemo.swift62 print("Error \(self.index): \(e)")CODE
MEDIUM…/ViewControllers/OrientationImagesViewController.swift66 .onFailure { err in print("Error: \(err)") }CODE
MEDIUM…emo/ViewControllers/NetworkMetricsViewController.swift234 print("Error: \(error)")CODE
MEDIUM…Demo/ViewControllers/NormalLoadingViewController.swift65 .onFailure { err in print("Error: \(err)") }CODE
MEDIUMSources/Extensions/PHLivePhotoView+Kingfisher.swift132 /// print("Error: \(error)")COMMENT
MEDIUMSources/Extensions/PHLivePhotoView+Kingfisher.swift176 /// print("Error: \(error)")COMMENT
MEDIUMSources/Documentation.docc/CHANGELOG.md695 .onFailure { err in print("Error: \(err)") }CODE
MEDIUM…ation.docc/Resources/code-files/02-ContentView-6.swift25 print("Error: \(error)")CODE
MEDIUM…on.docc/Resources/code-files/01-ViewController-9.swift7 print("Error: \(error)")CODE
MEDIUMSources/Documentation.docc/Topics/Topic_LivePhoto.md43 print("Error: \(error)")CODE
MEDIUMSources/Documentation.docc/Topics/Topic_LivePhoto.md88 print("Error: \(error)")CODE
AI Slop Vocabulary9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMSources/General/KFOptionsSetter.swift125 /// Kingfisher will utilize the associated ``ImageCache`` object when performing related operations,COMMENT
MEDIUMSources/General/KFOptionsSetter.swift162 /// Kingfisher will utilize the specified ``ImageDownloader`` instance to download requested images.COMMENT
MEDIUMSources/General/KingfisherManager.swift137/// You can utilize this class to retrieve an image via a specified URL from the web or cache.COMMENT
MEDIUMSources/General/KingfisherOptionsInfo.swift35/// You can utilize the enum of option items with values to control certain behaviors of Kingfisher.COMMENT
MEDIUMSources/General/KingfisherOptionsInfo.swift45 /// Kingfisher will utilize the associated ``ImageCache`` object when performing related operations, such asCOMMENT
MEDIUMSources/General/KingfisherOptionsInfo.swift64 /// Kingfisher will utilize the associated ``ImageDownloader`` object to download the requested images.COMMENT
MEDIUMSources/General/KingfisherOptionsInfo.swift269 /// for all items. If this option is set, the ``MemoryStorage/Backend`` will utilize the associated value toCOMMENT
MEDIUMSources/General/KingfisherOptionsInfo.swift288 /// for all items. If this option is set, the ``DiskStorage/Backend`` will utilize the associated value to overrideCOMMENT
MEDIUMSources/Networking/SessionDataTask.swift31/// Essentially, a ``SessionDataTask`` wraps a `URLSessionDataTask` and manages the download data.COMMENT
Structural Annotation Overuse12 hits · 22 pts
SeverityFileLineSnippetContext
LOWTests/KingfisherTests/StaleCacheTests.swift591 // Step 1: Start url1's retrieval. Its ioQueue block will enter theCOMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift607 // Step 2: Wait (on background) for url1's serializer to start,COMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift613 // Step 3: url1's token is now cancelled by the second setImage.COMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift623 // Step 4: Let url1's serializer proceed. CHECK 3 will detectCOMMENT
LOWdocs/issue-2495-analysis.md435### Step 1: Add `sourceTaskIdentifierChecker` to `KingfisherParsedOptionsInfo`COMMENT
LOWdocs/issue-2495-analysis.md450### Step 2: Store `referenceTaskIdentifierChecker` into optionsCOMMENT
LOWdocs/issue-2495-analysis.md478### Step 3: Insert cancellation checks in `retrieveImageInDiskCache`COMMENT
LOWdocs/issue-2495-analysis.md550### Step 4: Prevent spurious download in `retrieveImageFromCache` path 2COMMENT
LOWdocs/issue-2495-analysis.md607### Step 5: TestingCOMMENT
LOWSources/Documentation.docc/Topics/Topic_LivePhoto.md61### Step 1: Import Required Frameworks and Set Up PHLivePhotoViewCOMMENT
LOWSources/Documentation.docc/Topics/Topic_LivePhoto.md71### Step 2: Prepare URLsCOMMENT
LOWSources/Documentation.docc/Topics/Topic_LivePhoto.md79### Step 3: Load the Live PhotoCOMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWTests/KingfisherTests/StaleCacheTests.swift591 // Step 1: Start url1's retrieval. Its ioQueue block will enter theCOMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift607 // Step 2: Wait (on background) for url1's serializer to start,COMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift613 // Step 3: url1's token is now cancelled by the second setImage.COMMENT
LOWTests/KingfisherTests/StaleCacheTests.swift623 // Step 4: Let url1's serializer proceed. CHECK 3 will detectCOMMENT
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWSources/Networking/ImageDataProcessor.swift33final class ImageDataProcessor: Sendable {CODE