Repository Analysis

azahar-emu/azahar

An open-source 3DS emulator project based on Citra.

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of azahar-emu/azahar, a C++ project with 7,624 GitHub stars. SynthScan v2.0 examined 369,145 lines of code across 1617 source files, recording 892 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 2.5 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.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
7.6K
Stars
C++
Language
369.1K
Lines of Code
1.6K
Files
892
Pattern Hits
2026-07-14
Scan Date
0.01
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 12HIGH 0MEDIUM 12LOW 868

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 892 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 Block841 hits · 739 pts
SeverityFileLineSnippetContext
LOWtools/verify-release.sh1#!/usr/bin/env bashCOMMENT
LOWexternals/getopt/getopt.h41#ifdef _GETOPT_APICOMMENT
LOWexternals/getopt/getopt.h61#define _END_EXTERN_C }COMMENT
LOWexternals/getopt/getopt.h121#undef _GETOPT_APICOMMENT
LOWexternals/httplib/httplib.h1//COMMENT
LOWexternals/httplib/httplib.h21#ifndef CPPHTTPLIB_KEEPALIVE_MAX_COUNTCOMMENT
LOWexternals/httplib/httplib.h41#ifndef CPPHTTPLIB_WRITE_TIMEOUT_SECONDCOMMENT
LOWexternals/httplib/httplib.h61#ifndef CPPHTTPLIB_REQUEST_URI_MAX_LENGTHCOMMENT
LOWexternals/httplib/httplib.h81#ifndef CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTHCOMMENT
LOWexternals/httplib/httplib.h101 : 0))COMMENT
LOWexternals/httplib/httplib.h121#ifndef _CRT_SECURE_NO_WARNINGSCOMMENT
LOWexternals/httplib/httplib.h141#endif // _MSC_VERCOMMENT
LOWexternals/httplib/httplib.h161#endifCOMMENT
LOWexternals/httplib/httplib.h181#define NI_MAXHOST 1025COMMENT
LOWexternals/httplib/httplib.h201COMMENT
LOWexternals/httplib/httplib.h221#include <iostream>COMMENT
LOWexternals/httplib/httplib.h241// these are defined in wincrypt.h and it breaks compilation if BoringSSL isCOMMENT
LOWexternals/httplib/httplib.h261#include <CoreFoundation/CoreFoundation.h>COMMENT
LOWexternals/json/json.hpp21#include <algorithm> // all_of, find, for_eachCOMMENT
LOWexternals/json/json.hpp41// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>COMMENT
LOWexternals/json/json.hpp61#ifndef JSON_SKIP_LIBRARY_VERSION_CHECKCOMMENT
LOWexternals/json/json.hpp81#if JSON_DIAGNOSTICSCOMMENT
LOWexternals/json/json.hpp141 {COMMENT
LOWexternals/json/json.hpp161#include <algorithm> // transformCOMMENT
LOWexternals/json/json.hpp181COMMENT
LOWexternals/json/json.hpp201#include <array> // arrayCOMMENT
LOWexternals/json/json.hpp221// | | |__ | | | | | | version 3.11.2COMMENT
LOWexternals/json/json.hpp321// | | |__ | | | | | | version 3.11.2COMMENT
LOWexternals/json/json.hpp341#define JSON_HEDLEY_STRINGIFY_EX(x) #xCOMMENT
LOWexternals/json/json.hpp361#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##cCOMMENT
LOWexternals/json/json.hpp381#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)COMMENT
LOWexternals/json/json.hpp401 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(maCOMMENT
LOWexternals/json/json.hpp421 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexternals/json/json.hpp441#endifCOMMENT
LOWexternals/json/json.hpp461 #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexternals/json/json.hpp481 #undef JSON_HEDLEY_SUNPRO_VERSIONCOMMENT
LOWexternals/json/json.hpp501COMMENT
LOWexternals/json/json.hpp521#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)COMMENT
LOWexternals/json/json.hpp541#elif defined(__xlC__) && defined(__xlC_ver__)COMMENT
LOWexternals/json/json.hpp561 ( \COMMENT
LOWexternals/json/json.hpp581 #undef JSON_HEDLEY_TI_CL2000_VERSIONCOMMENT
LOWexternals/json/json.hpp601#endifCOMMENT
LOWexternals/json/json.hpp621#endifCOMMENT
LOWexternals/json/json.hpp641 #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexternals/json/json.hpp661 #undef JSON_HEDLEY_TI_CLPRU_VERSIONCOMMENT
LOWexternals/json/json.hpp681 #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)COMMENT
LOWexternals/json/json.hpp701 #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VECOMMENT
LOWexternals/json/json.hpp721#endifCOMMENT
LOWexternals/json/json.hpp741#endifCOMMENT
LOWexternals/json/json.hpp761 #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexternals/json/json.hpp781 #undef JSON_HEDLEY_MCST_LCC_VERSIONCOMMENT
LOWexternals/json/json.hpp821#if defined(JSON_HEDLEY_GCC_VERSION)COMMENT
LOWexternals/json/json.hpp841 #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTECOMMENT
LOWexternals/json/json.hpp861#if \COMMENT
LOWexternals/json/json.hpp881#elseCOMMENT
LOWexternals/json/json.hpp901#endifCOMMENT
LOWexternals/json/json.hpp921#if defined(JSON_HEDLEY_GCC_HAS_BUILTIN)COMMENT
LOWexternals/json/json.hpp941#endifCOMMENT
LOWexternals/json/json.hpp961 #define JSON_HEDLEY_HAS_EXTENSION(extension) __has_extension(extension)COMMENT
LOWexternals/json/json.hpp981 #define JSON_HEDLEY_GCC_HAS_EXTENSION(extension,major,minor,patch) JSON_HEDLEY_GCC_VERSION_CHECK(major,minor,patch)COMMENT
781 more matches not shown…
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippetContext
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp642 tag.file.settings.settings.font_region.Assign(0);CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp643 tag.file.settings.settings.amiibo_initialized.Assign(0);CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp721 if (tag.file.settings.settings.appdata_initialized.Value() == 0) {CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp748 if (tag.file.settings.settings.appdata_initialized.Value() == 0) {CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp773 if (tag.file.settings.settings.appdata_initialized.Value() == 0) {CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp812 if (tag.file.settings.settings.appdata_initialized.Value() == 0) {CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp845 if (tag.file.settings.settings.appdata_initialized.Value() != 0) {CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp894 tag.file.settings.settings.appdata_initialized.Assign(1);CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp937 tag.file.settings.settings.appdata_initialized.Assign(0);CODE
CRITICALsrc/core/hle/service/nfc/nfc_device.cpp957 has_application_area = tag.file.settings.settings.appdata_initialized.Value() != 0;CODE
CRITICALsrc/video_core/pica/pica_core.cpp421 const auto lut_table = regs.internal.texturing.proctex_lut_config.ref_table.Value();CODE
CRITICALsrc/video_core/pica/pica_core.cpp677 find_info.paddr = regs.internal.framebuffer.framebuffer.color_buffer_address.Value() * 8;CODE
Decorative Section Separators11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt229# =======================================================================COMMENT
MEDIUMCMakeLists.txt237# =======================================================================COMMENT
MEDIUMCMakeLists.txt253# =======================================================================COMMENT
MEDIUMCMakeLists.txt269# =======================================================================COMMENT
MEDIUMCMakeLists.txt299# =======================================================================COMMENT
MEDIUMCMakeLists.txt338# ===========================COMMENT
MEDIUMCMakeLists.txt359# ======================COMMENT
MEDIUMCMakeLists.txt405# ======================================COMMENT
MEDIUMCMakeLists.txt444# =======================================================================COMMENT
MEDIUMCMakeLists.txt493# ===================COMMENT
MEDIUMCMakeLists.txt585# =========================COMMENT
Verbosity Indicators6 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/common/android_utils.cpp292 // Step 1: Create directory named after UUID inside /tmp to house the moved file.COMMENT
LOWsrc/common/android_utils.cpp298 // Step 2: Attempt to move to allocated temporary directory.COMMENT
LOWsrc/common/android_utils.cpp302 // Step 3: Rename to desired file name.COMMENT
LOWsrc/common/android_utils.cpp305 // Step 4: If a file with the desired name in the destination exists, remove it.COMMENT
LOWsrc/common/android_utils.cpp308 // Step 5: Attempt to move file to desired location.COMMENT
LOWsrc/common/android_utils.cpp316 // Step 6: Clean up the allocated temp directory.COMMENT
Structural Annotation Overuse6 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/common/android_utils.cpp292 // Step 1: Create directory named after UUID inside /tmp to house the moved file.COMMENT
LOWsrc/common/android_utils.cpp298 // Step 2: Attempt to move to allocated temporary directory.COMMENT
LOWsrc/common/android_utils.cpp302 // Step 3: Rename to desired file name.COMMENT
LOWsrc/common/android_utils.cpp305 // Step 4: If a file with the desired name in the destination exists, remove it.COMMENT
LOWsrc/common/android_utils.cpp308 // Step 5: Attempt to move file to desired location.COMMENT
LOWsrc/common/android_utils.cpp316 // Step 6: Clean up the allocated temp directory.COMMENT
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOWexternals/microprofile/microprofile_html.h1155"function PreprocessCalculateAllTimers()\n"CODE
LOWexternals/microprofile/microprofile_html.h2084"function PreprocessContextSwitchCacheItem(ThreadId)\n"CODE
LOWexternals/microprofile/microprofile_html.h2130"function PreprocessContextSwitchCache()\n"CODE
LOWexternals/microprofile/microprofile_html.h3429"function PreprocessBuildSplitArray()\n"CODE
LOWexternals/microprofile/microprofile_html.h3519"function PreprocessBuildDurationArray()\n"CODE
LOWexternals/microprofile/microprofile_html.h3722"function PreprocessFindFirstFrames()\n"CODE
LOWsrc/core/hle/service/sm/sm.h27class SessionRequestHandler;CODE
LOWsrc/core/hle/kernel/hle_ipc.h47class SessionRequestHandler : public std::enable_shared_from_this<SessionRequestHandler> {CODE
LOWsrc/core/hle/kernel/server_port.h21class SessionRequestHandler;CODE
LOWsrc/core/hle/kernel/server_session.h25class SessionRequestHandler;CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/core/hle/service/apt/applet_manager.cpp1262 // TODO: Add error description name when the parameter is known.COMMENT
LOWsrc/tests/core/core_timing.cpp199// TODO: Add tests for multiple timersCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/core/hle/service/fs/file.h38// TODO: File is not a real service, but it can still utilize ServiceFramework::RegisterHandlers.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/core/hle/service/nwm/uds_beacon.cpp103 constexpr std::array<u8, 3> dummy_data = {0x0A, 0x00, 0x00};CODE
LOWsrc/core/hle/service/nwm/uds_beacon.cpp110 tag.data = dummy_data;CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtools/verify-release.sh9# Usage:COMMENT