Repository Analysis

dolphin-emu/dolphin

Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.

2.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of dolphin-emu/dolphin, a C++ project with 15,259 GitHub stars. SynthScan v2.0 examined 1,012,354 lines of code across 5527 source files, recording 3043 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 2.8 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.8
Adjusted Score
2.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
15.3K
Stars
C++
Language
1.0M
Lines of Code
5.5K
Files
3.0K
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 5MEDIUM 18LOW 3020

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 3043 distinct pattern matches across 15 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 Block2983 hits · 2704 pts
SeverityFileLineSnippetContext
LOWBuildMacOSUniversalBinary.py41 "dst_app": "universal/",COMMENT
LOWTools/perf-disassemble.sh1#!/bin/bashCOMMENT
LOWTools/symbolicate-ppc.py1#!/usr/bin/pythonCOMMENT
LOWTools/symbolicate-ppc.py21# 0.57% JIT_PPC_zz_044141c_ (/tmp/perf-15936.map)COMMENT
LOWSource/PCH/pch.h1// Copyright 2013 Dolphin Emulator ProjectCOMMENT
LOWSource/PCH/pch.h21#undef STRINGIFY_HELPERCOMMENT
LOWSource/PCH/pch.h41#include <errno.h>COMMENT
LOWSource/PCH/pch.h61#include <list>COMMENT
LOWSource/PCH/pch.h81#include <stdlib.h>COMMENT
LOWSource/PCH/pch.cpp1// Copyright 2014 Dolphin Emulator ProjectCOMMENT
LOWSource/PCH/nopch/pch.h1// dummy include to help with disabling pch for a single fileCOMMENT
LOWSource/DSPTool/DSPTool.cpp1// Copyright 2009 Dolphin Emulator ProjectCOMMENT
LOWSource/DSPTool/DSPTool.cpp361COMMENT
LOWSource/Core/Core/CheatSearch.cpp1// Copyright 2021 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/PatchEngine.cpp1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/PatchEngine.cpp21#include "Common/Assert.h"COMMENT
LOWSource/Core/Core/NetPlayCommon.h1// Copyright 2021 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/Core.h1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/NetworkCaptureLogger.cpp1// Copyright 2021 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/NetworkCaptureLogger.h1// Copyright 2021 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/Host.h1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/MachineContext.h1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/MachineContext.h21#define CTX_RDX RdxCOMMENT
LOWSource/Core/Core/MachineContext.h41#error No context definition for architectureCOMMENT
LOWSource/Core/Core/MachineContext.h61#define CTX_R9 __r9COMMENT
LOWSource/Core/Core/MachineContext.h81#if _M_X86_64COMMENT
LOWSource/Core/Core/MachineContext.h101#define CTX_LR __ss.__lrCOMMENT
LOWSource/Core/Core/MachineContext.h121#define CTX_RSP gregs[REG_RSP]COMMENT
LOWSource/Core/Core/MachineContext.h141typedef ucontext_t SContext;COMMENT
LOWSource/Core/Core/MachineContext.h161#define CTX_REG(x) sc_x[x]COMMENT
LOWSource/Core/Core/MachineContext.h181#define CTX_R9 __gregs[_REG_R9]COMMENT
LOWSource/Core/Core/MachineContext.h201#define CTX_RSI mc_rsiCOMMENT
LOWSource/Core/Core/MachineContext.h221#elif defined(__HAIKU__)COMMENT
LOWSource/Core/Core/Core.cpp1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/Core.cpp21#endifCOMMENT
LOWSource/Core/Core/Core.cpp41#include "Core/Boot/Boot.h"COMMENT
LOWSource/Core/Core/Core.cpp61#include "Core/HW/Wiimote.h"COMMENT
LOWSource/Core/Core/Core.cpp81COMMENT
LOWSource/Core/Core/NetPlayCommon.cpp1// Copyright 2021 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/Movie.h1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/State.cpp1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/State.cpp21#include <lzo/lzo1x.h>COMMENT
LOWSource/Core/Core/State.cpp41#include "Core/CoreTiming.h"COMMENT
LOWSource/Core/Core/NetPlayServer.h1// Copyright 2013 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/BootManager.cpp1// Copyright 2011 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/BootManager.cpp21COMMENT
LOWSource/Core/Core/AchievementManager.cpp1// Copyright 2023 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/AchievementManager.cpp21#include "Common/StringUtil.h"COMMENT
LOWSource/Core/Core/CoreTiming.cpp1// Copyright 2008 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/CoreTiming.cpp21#include "Core/CPUThreadConfigCallback.h"COMMENT
LOWSource/Core/Core/DolphinAnalytics.cpp1// Copyright 2016 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/DolphinAnalytics.cpp21#include <functional>COMMENT
LOWSource/Core/Core/AchievementManager.h1// Copyright 2023 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/AchievementManager.h21#include <picojson.h>COMMENT
LOWSource/Core/Core/NetPlayClient.cpp1// Copyright 2010 Dolphin Emulator ProjectCOMMENT
LOWSource/Core/Core/NetPlayClient.cpp21#include <fmt/ranges.h>COMMENT
LOWSource/Core/Core/NetPlayClient.cpp41#include "Core/Config/NetplaySettings.h"COMMENT
LOWSource/Core/Core/NetPlayClient.cpp61#include "Core/HW/WiimoteEmu/DesiredWiimoteState.h"COMMENT
LOWSource/Core/Core/NetPlayClient.cpp1941// called from ---CPU--- threadCOMMENT
LOWSource/Core/Core/NetPlayClient.cpp2201{COMMENT
2923 more matches not shown…
Synthetic Comment Markers4 hits · 30 pts
SeverityFileLineSnippetContext
HIGHExternals/mbedtls/library/error.c226 /* Begin Auto-Generated Code. */COMMENT
HIGHExternals/mbedtls/library/error.c569 /* End Auto-Generated Code. */COMMENT
HIGHExternals/mbedtls/library/error.c590 /* Begin Auto-Generated Code. */COMMENT
HIGHExternals/mbedtls/library/error.c887 /* End Auto-Generated Code. */COMMENT
AI Slop Vocabulary8 hits · 22 pts
SeverityFileLineSnippetContext
LOWBuildMacOSUniversalBinary.py56 # be cryptographically signed/notarized but will instead just use aCOMMENT
MEDIUMBuildMacOSUniversalBinary.py79# 2) Single architecture builds should utilize the normal generated cmakeCOMMENT
MEDIUMSource/Core/Core/HW/GCMemcard/GCMemcard.cpp156 // whichever block has the higher value. Essentially, if (0.update_ctr >= 1.update_ctr) { use 0 }COMMENT
MEDIUMSource/Core/Core/HLE/HLE_Misc.cpp44 // robust alternative would be to actually detect memory writes, but thatCOMMENT
MEDIUMSource/Core/Core/FifoPlayer/FifoRecorder.cpp224 // The video thread may call into functions that utilize theseCOMMENT
MEDIUMSource/Core/VideoCommon/ShaderCache.cpp1235 // - AMD, Nvidia: Definitely keyed on dual source blend, but the others seem more randomCOMMENT
MEDIUMSource/Core/VideoCommon/AbstractTexture.cpp47 // Use a temporary staging texture for the download. Certainly not optimal,COMMENT
MEDIUMSource/Core/DolphinQt/Debugger/EditSymbolDialog.cpp101 // Not sure what the max size should be. Definitely not a full 8, so set to 7.COMMENT
Fake / Example Data16 hits · 22 pts
SeverityFileLineSnippetContext
LOWSource/Core/Core/WiiUtils.cpp115 const std::array<u8, 32> dummy_data{};CODE
LOWSource/Core/Core/WiiUtils.cpp131 if (!new_handle || !new_handle->Write(dummy_data.data(), dummy_data.size()))CODE
LOWSource/Core/Core/Debugger/BranchWatch.h163 static void HitVirtualTrue_fk(BranchWatch* branch_watch, u64 fake_key, u32 inst)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h165 branch_watch->m_collection_vt[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWSource/Core/Core/Debugger/BranchWatch.h169 static void HitPhysicalTrue_fk(BranchWatch* branch_watch, u64 fake_key, u32 inst)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h171 branch_watch->m_collection_pt[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWSource/Core/Core/Debugger/BranchWatch.h175 static void HitVirtualFalse_fk(BranchWatch* branch_watch, u64 fake_key, u32 inst)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h177 branch_watch->m_collection_vf[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWSource/Core/Core/Debugger/BranchWatch.h181 static void HitPhysicalFalse_fk(BranchWatch* branch_watch, u64 fake_key, u32 inst)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h183 branch_watch->m_collection_pf[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWSource/Core/Core/Debugger/BranchWatch.h187 static void HitVirtualTrue_fk_n(BranchWatch* branch_watch, u64 fake_key, u32 inst, u32 n)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h189 branch_watch->m_collection_vt[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWSource/Core/Core/Debugger/BranchWatch.h193 static void HitPhysicalTrue_fk_n(BranchWatch* branch_watch, u64 fake_key, u32 inst, u32 n)CODE
LOWSource/Core/Core/Debugger/BranchWatch.h195 branch_watch->m_collection_pt[{std::bit_cast<FakeBranchWatchCollectionKey>(fake_key), inst}]CODE
LOWdocs/ResourcePacks.md61"authors": ["John Doe", "Jane Doe"],CODE
LOWdocs/ResourcePacks.md61"authors": ["John Doe", "Jane Doe"],CODE
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMExternals/mbedtls/include/psa/crypto.h967 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h1341 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h1402 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h1761 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h1825 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h2290 * -# Initialize the operation object with one of the methods described in theCOMMENT
MEDIUMExternals/mbedtls/include/psa/crypto.h2360 * -# Initialize the operation object with one of the methods described in theCOMMENT
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMExternals/liblzma/CMakeLists.txt54#============================================================================COMMENT
MEDIUMExternals/liblzma/CMakeLists.txt56#============================================================================COMMENT
MEDIUMExternals/bzip2/CMakeLists.txt52#============================================================================COMMENT
MEDIUMExternals/bzip2/CMakeLists.txt54#============================================================================COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHSource/Core/Core/HW/DSPHLE/UCodes/Zelda.h227 // command buffer. In this implementation, the synchronous+interrupts flowCOMMENT
Structural Annotation Overuse4 hits · 7 pts
SeverityFileLineSnippetContext
LOWSource/Core/Core/Core.cpp985 // NOTE: This function is potentially re-entrant. If a job callsCOMMENT
LOWSource/Core/Core/PowerPC/PPCAnalyst.cpp395 // Step 1: Find all functionsCOMMENT
LOWExternals/liblzma/common/index_hash.c184 // NOTE: This function has many similarities to index_encode() andCOMMENT
LOWExternals/liblzma/common/block_util.c51 // NOTE: This function is used for validation too, so it isCOMMENT
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWSource/Core/Core/State.cpp99// Don't forget to increase this after doing changes on the savestate systemCOMMENT
LOWSource/Core/DolphinQt/Config/SettingsWindow.cpp193 // If you change the order, don't forget to update the SettingsWindowPaneIndex enum.COMMENT
LOWExternals/mbedtls/include/mbedtls/blowfish.h40#define MBEDTLS_BLOWFISH_ROUNDS 16 /**< Rounds to use. When increasing this value, make sure to extend the COMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWSource/Core/Core/PowerPC/PPCAnalyst.cpp395 // Step 1: Find all functionsCOMMENT
LOWSource/Core/Core/PowerPC/PPCAnalyst.cpp400 // Step 2:COMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWTools/test-updater.py56CODE
LOWExternals/mbedtls/scripts/config.py439CODE
LOWExternals/discord-rpc/build.py255CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWTools/perf-disassemble.sh11# Example usage:COMMENT
LOWSource/Core/Common/Analytics.h31// Example usage:COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWSource/Core/Core/HW/DSPHLE/UCodes/AXStructs.h35 // TODO: implement and comment it in the mixerCOMMENT
LOWSource/Core/VideoBackends/Software/SWEfbInterface.cpp494 // TODO: implement support for multisampling.COMMENT
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWTools/test-updater.py55class HTTPRequestHandler(http.server.BaseHTTPRequestHandler):CODE
LOWTools/find-includes-cycles.py23def strongly_connected_components(graph):CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWTools/test-updater.py19CODE
LOWdocs/DSP/free_dsp_rom/generate_coefs.py1CODE