The modern video player for macOS.
This report presents the forensic synthetic code analysis of iina/iina, a Swift project with 45,555 GitHub stars. SynthScan v2.0 examined 89,174 lines of code across 394 source files, recording 188 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 2.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).
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.
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.
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.
The scanner identified 188 distinct pattern matches across 5 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | iina/write_info_plist_header.sh | 1 | #!/bin/sh | COMMENT |
| LOW | iina/JavascriptAPIEvent.swift | 1 | // | COMMENT |
| LOW | iina/PlayerCore.swift | 1 | // | COMMENT |
| LOW | iina/PlayerCore.swift | 161 | /// As one job of the timer is to update the Touch Bar on Macs that have one, IINA needs information such as: | COMMENT |
| LOW | iina/PlayerCore.swift | 261 | /// loop point to zero disables looping, so this method will adjust the value so it is not equal to zero in order to | COMMENT |
| LOW | iina/PlayerCore.swift | 521 | /// Open the given media in the main window. | COMMENT |
| LOW | iina/PlayerCore.swift | 681 | guard mainWindow.loaded else { return } | COMMENT |
| LOW | iina/PlayerCore.swift | 721 | COMMENT | |
| LOW | iina/PlayerCore.swift | 841 | } | COMMENT |
| LOW | iina/PlayerCore.swift | 921 | mpv.setFlag(MPVOption.PlaybackControl.pause, false, level: .verbose) | COMMENT |
| LOW | iina/PlayerCore.swift | 1041 | /// | COMMENT |
| LOW | iina/PlayerCore.swift | 1581 | /// Play the next or the previous entry in the playlist. | COMMENT |
| LOW | iina/PlayerCore.swift | 1761 | /// If the filter is not labeled then removing using a `MPVFilter` object can be problematic if the filter has multipl | COMMENT |
| LOW | iina/PlayerCore.swift | 1841 | /// Filters that support multiple parameters have more than one valid string representation due to there being no requ | COMMENT |
| LOW | iina/PlayerCore.swift | 1861 | func removeAudioFilter(_ filter: String) -> Bool { | COMMENT |
| LOW | iina/PlayerCore.swift | 1881 | /// ``` | COMMENT |
| LOW | iina/FFmpegController.m | 1 | // | COMMENT |
| LOW | iina/FFmpegController.m | 481 | return NULL; | COMMENT |
| LOW | iina/MainWindowController.swift | 681 | // Catalina and Big Sur. The problem was not reproducible in early versions of Monterey. It | COMMENT |
| LOW | iina/MainWindowController.swift | 1501 | setWindowFloatingOnTop(isOntop, updateOnTopStatus: false) | COMMENT |
| LOW | iina/MainWindowController.swift | 1541 | /// | COMMENT |
| LOW | iina/MainWindowController.swift | 2041 | // Workaround for issue #3543, IINA crashes reporting: | COMMENT |
| LOW | iina/MainWindowController.swift | 2181 | /// Normally the OSC's thumbnail preview is shown above the time preview. This is the preferred location. However the | COMMENT |
| LOW | iina/HistoryController.swift | 1 | // | COMMENT |
| LOW | iina/VideoTime.swift | 21 | /// Return this time as a string with the given precision. | COMMENT |
| LOW | iina/PlaySlider.swift | 1 | // | COMMENT |
| LOW | iina/PlaySlider.swift | 61 | /// The [NSSlider](https://developer.apple.com/documentation/appkit/nsslider) method is being overridden | COMMENT |
| LOW | iina/OpenSubClient.swift | 1 | // | COMMENT |
| LOW | iina/OpenSubClient.swift | 21 | /// Thus this is more than a switch from a XMLRPC API to a REST API, it also involves a migration from `opensubtitles.or | COMMENT |
| LOW | iina/OpenSubClient.swift | 41 | /// request header is hardcoded to IINA's key | COMMENT |
| LOW | iina/OpenSubClient.swift | 61 | case contentMissing(statusCode: Int?) | COMMENT |
| LOW | iina/OpenSubClient.swift | 101 | COMMENT | |
| LOW | iina/OpenSubClient.swift | 141 | private var rateLimiter = RateLimiter() | COMMENT |
| LOW | iina/OpenSubClient.swift | 161 | /// | COMMENT |
| LOW | iina/OpenSubClient.swift | 261 | } | COMMENT |
| LOW | iina/OpenSubClient.swift | 341 | } | COMMENT |
| LOW | iina/OpenSubClient.swift | 461 | /// Form the base URL to append a REST API method to. | COMMENT |
| LOW | iina/OpenSubClient.swift | 601 | /// REST API call rate limiter. | COMMENT |
| LOW | iina/OpenSubClient.swift | 621 | /// credentials if user fail to authenticate. | COMMENT |
| LOW | iina/OpenSubClient.swift | 761 | /// [Subtitle](https://opensubtitles.stoplight.io/docs/opensubtitles-api/573f76acc1493-subtitle) model. | COMMENT |
| LOW | iina/OpenSubClient.swift | 801 | #endif | COMMENT |
| LOW | iina/MemoryUsage.swift | 1 | // | COMMENT |
| LOW | iina/VolumeSliderCell.swift | 21 | /// [NSSliderCell.drawBar](https://developer.apple.com/documentation/appkit/nsslidercell/drawbar(inside:flipped:)) | COMMENT |
| LOW | iina/KeyCodeHelper.swift | 101 | // 0x37: ("Command", nil), | COMMENT |
| LOW | iina/HardwareDecodeCapabilities.swift | 1 | // | COMMENT |
| LOW | iina/MiniPlaySlider.swift | 1 | // | COMMENT |
| LOW | iina/OSDMessage.swift | 1 | // | COMMENT |
| LOW | iina/OSDMessage.swift | 541 | // switch self { | COMMENT |
| LOW | iina/AccessibilityPreferences.swift | 1 | // | COMMENT |
| LOW | iina/AccessibilityPreferences.swift | 21 | /// | COMMENT |
| LOW | iina/FFmpegLogger.swift | 1 | // | COMMENT |
| LOW | iina/LanguageTokenField.swift | 1 | // | COMMENT |
| LOW | iina/Logger.swift | 1 | // | COMMENT |
| LOW | iina/Logger.swift | 241 | /// Emit a message to the log file if logging is enabled and logging is configured to log messages at the given level. | COMMENT |
| LOW | iina/Logger.swift | 261 | /// written to the log file and not discarded due to logging either being disabled or configured to not emit messa | COMMENT |
| LOW | iina/DisplayController.swift | 1 | // | COMMENT |
| LOW | iina/VolumeSlider.swift | 1 | // | COMMENT |
| LOW | iina/Sysctl.swift | 1 | // | COMMENT |
| LOW | iina/SleepPreventer.swift | 1 | // | COMMENT |
| LOW | iina/SleepPreventer.swift | 21 | /// [#3478](https://github.com/iina/iina/issues/3478) to see if they explain the failure. | COMMENT |
| 122 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | deps/include/libavformat/avformat.h | 1435 | #define AVFMT_FLAG_AUTO_BSF 0x200000 ///< Add bitstream filters as requested by the muxer | COMMENT |
| HIGH | deps/include/libavformat/avformat.h | 1435 | #define AVFMT_FLAG_AUTO_BSF 0x200000 ///< Add bitstream filters as requested by the muxer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | iina/PlayerCore.swift | 2638 | /// that call for an app to avoid needless energy use. [Minimizing Timer Usage](https://developer.apple.com/library/ar | STRING |
| LOW | deps/include/libavformat/avformat.h | 1417 | #define AVFMT_FLAG_NOFILLIN 0x0010 ///< Do not infer any values from other values, just return what is stored in the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | iina/write_info_plist_header.sh | 30 | # Check if git is on the path. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | other/l10n_xib_to_strings.rb | 3 | # Usage: | COMMENT |