Repository Analysis

exelban/stats

macOS system monitor in your menu bar

2.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of exelban/stats, a Swift project with 40,426 GitHub stars. SynthScan v2.0 examined 47,525 lines of code across 183 source files, recording 96 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 2.6 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.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-07-12
Last Push
40.4K
Stars
Swift
Language
47.5K
Lines of Code
183
Files
96
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 23LOW 73

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 96 distinct pattern matches across 4 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 Block63 hits · 63 pts
SeverityFileLineSnippetContext
LOWKit/helpers.swift1//COMMENT
LOWKit/plugins/Charts.swift1//COMMENT
LOWKit/lldb/lldb.m1//COMMENT
LOWKit/lldb/lldb.h1//COMMENT
LOWKit/lldb/include/env.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/env.h21#include "export.h"COMMENT
LOWKit/lldb/include/env.h61 // system. Sophisticated users may wish to provide their own EnvCOMMENT
LOWKit/lldb/include/env.h81 // status. Implementations should return a NotFound status when the file doesCOMMENT
LOWKit/lldb/include/env.h101 // returns OK. On failure stores nullptr in *result and returnsCOMMENT
LOWKit/lldb/include/env.h121 // Delete the named file.COMMENT
LOWKit/lldb/include/env.h141 // Create the specified directory.COMMENT
LOWKit/lldb/include/env.h161 // A future release will remove this method.COMMENT
LOWKit/lldb/include/env.h181 // with a failure. I.e., this call does not wait for existing locksCOMMENT
LOWKit/lldb/include/env.h261 // Read up to "n" bytes from the file starting at "offset".COMMENT
LOWKit/lldb/include/env.h401 private:COMMENT
LOWKit/lldb/include/export.h1// Copyright (c) 2017 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/export.h21#define LEVELDB_EXPORT __attribute__((visibility("default")))COMMENT
LOWKit/lldb/include/status.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/db.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/db.h61 virtual ~DB();COMMENT
LOWKit/lldb/include/db.h81 // corresponding value in *value and return OK.COMMENT
LOWKit/lldb/include/db.h101 // snapshot is no longer needed.COMMENT
LOWKit/lldb/include/db.h121 // of the sstables that make up the db contents.COMMENT
LOWKit/lldb/include/db.h141 // be invoked by users who understand the underlying implementation.COMMENT
LOWKit/lldb/include/slice.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/cache.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/cache.h41 // Destroys all existing entries by calling the "deleter"COMMENT
LOWKit/lldb/include/cache.h61 //COMMENT
LOWKit/lldb/include/cache.h81 virtual void Erase(const Slice& key) = 0;COMMENT
LOWKit/lldb/include/write_batch.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/options.h41 // Comparator used to define the order of keys in the table.COMMENT
LOWKit/lldb/include/options.h61COMMENT
LOWKit/lldb/include/options.h81 // Also, a larger write buffer will result in a longer recovery timeCOMMENT
LOWKit/lldb/include/options.h101 size_t block_size = 4 * 1024;COMMENT
LOWKit/lldb/include/options.h121 // Default: kSnappyCompression, which gives lightweight but fastCOMMENT
LOWKit/lldb/include/options.h161 // (which must belong to the DB that is being read and which mustCOMMENT
LOWKit/lldb/include/dumpfile.h1// Copyright (c) 2014 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/filter_policy.h1// Copyright (c) 2012 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/filter_policy.h41 // Warning: do not change the initial contents of *dst. Instead,COMMENT
LOWKit/lldb/include/filter_policy.h61// Note: if you are using a custom comparator that ignores some partsCOMMENT
LOWKit/lldb/include/comparator.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/comparator.h21 public:COMMENT
LOWKit/lldb/include/comparator.h41COMMENT
LOWKit/lldb/include/table.h21class TableCache;COMMENT
LOWKit/lldb/include/table_builder.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/table_builder.h41 // Change the options used by this builder. Note: only some of theCOMMENT
LOWKit/lldb/include/table_builder.h61 Status status() const;COMMENT
LOWKit/lldb/include/iterator.h1// Copyright (c) 2011 The LevelDB Authors. All rights reserved.COMMENT
LOWKit/lldb/include/iterator.h41 // Position at the last key in the source. The iterator isCOMMENT
LOWKit/lldb/include/iterator.h61 // the returned slice is valid only until the next modification ofCOMMENT
LOWKit/Supporting Files/Kit.h1//COMMENT
LOWKit/scripts/SMJobBlessUtil.py1#! /usr/bin/python3COMMENT
LOWKit/scripts/SMJobBlessUtil.py21# original Apple software (the "Apple Software"), to use,COMMENT
LOWKit/scripts/SMJobBlessUtil.py41# COMBINATION WITH YOUR PRODUCTS.COMMENT
LOWModules/Sensors/bridge.h1//COMMENT
LOWModules/Sensors/readers.swift401 var eventType: Int32 = kIOHIDEventTypeTemperatureCOMMENT
LOWModules/Sensors/reader.m1//COMMENT
LOWModules/GPU/bridge.h1//COMMENT
LOWModules/Net/readers.swift1//COMMENT
LOWModules/Net/popup.swift1//COMMENT
3 more matches not shown…
Excessive Try-Catch Wrapping25 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMKit/helpers.swift810 print("Error IOServiceGetMatchingServices(): " + (String(cString: mach_error_string(result), encoding: String.EnCODE
MEDIUMKit/helpers.swift846 print("Error IORegistryEntryGetName(): " + (String(cString: mach_error_string(result), encoding: String.EncodingCODE
MEDIUMKit/helpers.swift1231 print("Error while installing the Helper: \(blessError.localizedDescription)")CODE
MEDIUMKit/plugins/SystemKit.swift364 print("Error find AppleARMPE: " + (String(cString: mach_error_string(result), encoding: String.Encoding.asciCODE
MEDIUMKit/plugins/SystemKit.swift497 print("Error find AppleARMIODevice: " + (String(cString: mach_error_string(result), encoding: String.EncodinCODE
MEDIUMKit/plugins/SystemKit.swift603 print("Error parsing diskutil output: \(error)")CODE
MEDIUMKit/plugins/SystemStats.swift993 print("Error sending MQTT CONNECT: \(error)")CODE
MEDIUMKit/plugins/SystemStats.swift1007 print("Error sending MQTT PINGREQ: \(error)")CODE
MEDIUMKit/plugins/SystemStats.swift1026 print("Error publishing MQTT message: \(error)")CODE
MEDIUMKit/plugins/SystemStats.swift1038 print("Error subscribing to MQTT topic: \(error)")CODE
LOWKit/scripts/i18n.py12except Exception:CODE
LOWKit/scripts/i18n.py272 except Exception:CODE
LOWKit/scripts/i18n.py475 except Exception:CODE
MEDIUMSMC/smc.swift173 print("Error IOServiceGetMatchingServices(): " + (String(cString: mach_error_string(result), encoding: StrinCODE
MEDIUMSMC/smc.swift180 print("Error IOIteratorNext(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascCODE
MEDIUMSMC/smc.swift187 print("Error IOServiceOpen(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.asciCODE
MEDIUMSMC/smc.swift209 print("Error read(\(key)): " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) CODE
MEDIUMSMC/smc.swift280 print("Error read(): " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unCODE
MEDIUMSMC/smc.swift416 print("Error read fan mode: " + (String(cString: mach_error_string(result), encoding: String.Encoding.asCODE
MEDIUMSMC/smc.swift429 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? CODE
MEDIUMSMC/smc.swift464 print("Error read fan mode: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii)CODE
MEDIUMSMC/smc.swift477 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unkCODE
MEDIUMSMC/smc.swift493 print("Error read fan mode: " + (String(cString: mach_error_string(modeResult), encoding: String.Encoding.asCODE
MEDIUMSMC/smc.swift506 print("Error read fan value: " + (String(cString: mach_error_string(result), encoding: String.Encoding.asciiCODE
MEDIUMSMC/smc.swift530 print("Error write: " + (String(cString: mach_error_string(result), encoding: String.Encoding.ascii) ?? "unkCODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWKit/scripts/SMJobBlessUtil.py131CODE
LOWKit/scripts/changelog.py43CODE
LOWKit/scripts/i18n.py84CODE
LOWKit/scripts/i18n.py105CODE
LOWKit/scripts/i18n.py203CODE
LOWKit/scripts/i18n.py435CODE
LOWKit/scripts/i18n.py211CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMKit/scripts/SMJobBlessUtil.py233 # Create a map from the tool name (not path) to its designated requirement.COMMENT