Repository Analysis

lwouis/alt-tab-macos

Windows alt-tab on macOS

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of lwouis/alt-tab-macos, a Swift project with 16,219 GitHub stars. SynthScan v2.0 examined 77,836 lines of code across 364 source files, recording 330 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 4.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).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-08-19
Last Push
16.2K
Stars
Swift
Language
77.8K
Lines of Code
364
Files
330
Pattern Hits
2026-08-29
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 1HIGH 0MEDIUM 2LOW 327

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 330 distinct pattern matches across 10 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 Block300 hits · 282 pts
SeverityFileLineSnippetContext
LOWalt-tab-macos-Bridging-Header.h1#import "AppCenterApplication.h"COMMENT
LOWscripts/copy_sparkle_helpers.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/copy_sparkle_helpers.sh101# those are pre-signed with the maintainer's Developer ID at vendor time (seeCOMMENT
LOWscripts/assets/pdf_textconv.sh1#!/bin/shCOMMENT
LOWscripts/assets/encode_heic.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/assets/pdf_diff_intellij.sh1#!/bin/shCOMMENT
LOWsrc/App.swift481 Logger.initialize()COMMENT
LOWsrc/preferences/PreferencesPersistenceProbe.swift1import FoundationCOMMENT
LOWsrc/preferences/Preferences.swift341 }COMMENT
LOWsrc/preferences/PreferencesPersistenceCheck.swift1import AppKitCOMMENT
LOWsrc/preferences/PreferencesMigrationsTests.swift1import CocoaCOMMENT
LOWsrc/preferences/PreferencesMigrationsTests.swift281COMMENT
LOWsrc/preferences/settings-window/SettingsWindow.swift321 // gap. They're intentionally asymmetric because `TableGroupView`'s ~10pt internal paddingCOMMENT
LOW…/preferences/settings-window/SettingsSearchIndex.swift1import CocoaCOMMENT
LOW…ces/settings-window/SettingsSearchHighlightTests.swift1import XCTestCOMMENT
LOW…ferences/settings-window/SettingsSearchHighlight.swift61 guard !textField.stringValue.isEmpty else { return nil }COMMENT
LOW…ces/settings-window/SettingsSectionSearchContent.swift1import CocoaCOMMENT
LOW…ettings-window/SettingsSectionSearchContentTests.swift1import XCTestCOMMENT
LOWsrc/preferences/settings-window/SidebarListTests.swift1import XCTestCOMMENT
LOWsrc/preferences/settings-window/SidebarList.swift181 toolTip = summary.isEmpty ? title : "\(title)\n\(summary)"COMMENT
LOW…es/settings-window/tabs/appearance/AppearanceTab.swift21 static let padding = CGFloat(4)COMMENT
LOW…-window/tabs/controls/OverrideClickResolverTests.swift1import XCTestCOMMENT
LOW…ttings-window/tabs/controls/NativeHotkeyResolver.swift1import Carbon.HIToolbox.EventsCOMMENT
LOW…tings-window/tabs/controls/OverrideClickResolver.swift1import FoundationCOMMENT
LOW…rences/settings-window/tabs/controls/ControlsTab.swift1import CocoaCOMMENT
LOW…rences/settings-window/tabs/controls/ControlsTab.swift921 /// the on-screen shortcut in `shortcutControls`). Returns nil for ids with no known action.COMMENT
LOW…ces/settings-window/tabs/controls/ShortcutEditor.swift1import CocoaCOMMENT
LOW…ces/settings-window/tabs/controls/ShortcutEditor.swift81 tabControl = NSSegmentedControl(labels: labels, trackingMode: .selectOne, target: nil, action: nil)COMMENT
LOWsrc/macos/PermissionCalloutResolver.swift1import FoundationCOMMENT
LOWsrc/macos/PermissionCalloutResolver.swift41COMMENT
LOWsrc/macos/SystemPermissions.swift1import CocoaCOMMENT
LOWsrc/macos/SystemPermissions.swift141 // The user opted out of the prompt (#5548), so we must not call isGrantedOnSomeDisplay()COMMENT
LOWsrc/macos/CGSCallScheduler.swift1import CocoaCOMMENT
LOWsrc/macos/CGSCallScheduler.swift41 /// Synchronous form for callers ALREADY off-main: the Space(s) a single window belongs to. Used by theCOMMENT
LOWsrc/macos/PermissionCalloutResolverTests.swift1import XCTestCOMMENT
LOWsrc/macos/AXCallScheduler.swift1import FoundationCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift21 static let fullSize = CGSWindowCaptureOptions(rawValue: 1 << 19)COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift41/// /!\ only returns correct values if the user has checked the checkbox in Preferences > Mission Control > "Displays haCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift61/// "Current Space" = {COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift81/// id64 = 4;COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift181/// * macOS 10.12+COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift201/// https://github.com/NUIKit/CGSInternal/blob/master/CGSEvent.hCOMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift221 /// window's BOTTOM-RIGHT corner, which is the only region no failure has come from:COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift261// MARK: - WindowServer notification tap (see WindowServerEvents.swift)COMMENT
LOWsrc/macos/api-wrappers/SkyLight.framework.swift281/// register `proc` to be called when `event` fires on `cid`. macOS 10.10+COMMENT
LOW…os/api-wrappers/ResizedCopyWithCoreGraphicsTests.swift1import XCTestCOMMENT
LOWsrc/macos/api-wrappers/AXUIElement.swift201 /// the only way to reach windows absent from every CGS list: other-Space windows and inactive OS tabs) andCOMMENT
LOWsrc/macos/api-wrappers/AXUIElement.swift301 ///COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift1// Tabbed Window Detection — Investigation ResultsCOMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift21//COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift41// and other-space windows. Not a reliable tab-specific signal.COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift61// 10. Frame-based clustering (CGWindowListCopyWindowInfo frame comparison)COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift81// - kAXValueAttribute: 1 for active tab, 0 for inactive tabCOMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift101//COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift121// this is the expected answer and the >= 2 AXTabButton test already rejects itCOMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift141// the element you pick, which is why it can show what a downward walk cannot reach. The toolbar host is notCOMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift161// SLSCopyAssociatedWindows(35416) → [35420, 35416]COMMENT
LOWsrc/experimentations/TabbedWindowDetection.swift181//COMMENT
LOWsrc/experimentations/PrivateApis.swift61COMMENT
LOWsrc/experimentations/PrivateApis.swift221// returns the PSN for the provided connection IDCOMMENT
240 more matches not shown…
Structural Annotation Overuse9 hits · 16 pts
SeverityFileLineSnippetContext
LOW.claude/skills/assets-optimization/SKILL.md21## Step 1: InventoryCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md50## Step 2: Vector PDFs — Figma exportsCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md85## Step 3: SF Symbols via font subsetCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md113## Step 4: Raster → HEIC at q50COMMENT
LOW.claude/skills/assets-optimization/SKILL.md156## Step 5: pbxproj registrationCOMMENT
LOW.claude/skills/assets-optimization/SKILL.md169## Step 6: VerifyCOMMENT
LOWsrc/switcher/state/SelectionResolverTests.swift197 // Step 1: user picks "b" at slot 1.COMMENT
LOWsrc/switcher/state/SelectionResolverTests.swift202 // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2.COMMENT
LOWsrc/switcher/state/SelectionResolverTests.swift207 // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/switcher/state/TestReducerRunnerTests.swift372 XCTAssertEqual(harness.state.groups.representativeByGroup.values.sorted(), [20])CODE
Excessive Try-Catch Wrapping9 hits · 9 pts
SeverityFileLineSnippetContext
LOWscripts/assets/optimize_figma_pdf.py45 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py55 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py76 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py95 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py108 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py157 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py190 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py196 except Exception:CODE
LOWscripts/assets/optimize_figma_pdf.py233 except Exception:CODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWsrc/switcher/state/SelectionResolverTests.swift197 // Step 1: user picks "b" at slot 1.COMMENT
LOWsrc/switcher/state/SelectionResolverTests.swift202 // Step 2: c steals focus. List reorders: c=0, a=1, b=2. Target now at index 2.COMMENT
LOWsrc/switcher/state/SelectionResolverTests.swift207 // Step 3: a steals focus back. List reorders: a=0, c=1, b=2. Target stays at index 2.COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/assets/optimize_figma_pdf.py59CODE
LOWscripts/assets/optimize_figma_pdf.py115CODE
LOWscripts/assets/optimize_figma_pdf.py224CODE
LOWscripts/assets/optimize_figma_pdf.py86CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/events/PreferencesEvents.swift7/// should subscribe directly to its own preference; this file is a transition scaffold.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/assets/encode_heic.sh9# Usage:COMMENT
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMscripts/build_readme_svg.py6that hands GitHub visitors off to https://alt-tab.app/. To stay seamless acrossSTRING
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/install_swiftformat.js64function handleAppleSiliconSymlink() {CODE