Repository Analysis

amnezia-vpn/amnezia-client

Amnezia VPN Client (Desktop+Mobile)

3.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of amnezia-vpn/amnezia-client, a C++ project with 12,912 GitHub stars. SynthScan v2.0 examined 155,522 lines of code across 719 source files, recording 332 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 3.0 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).

3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
12.9K
Stars
C++
Language
155.5K
Lines of Code
719
Files
332
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 68LOW 264

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 332 distinct pattern matches across 7 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 Block256 hits · 230 pts
SeverityFileLineSnippetContext
LOWdeploy/data/linux/update-resolv-conf.sh1#!/usr/bin/env bashCOMMENT
LOWcommon/crypto/cryptoUtils.h1#ifndef CRYPTOUTILS_HCOMMENT
LOWcommon/logger/logger.cpp1#include "logger.h"COMMENT
LOWrecipes/openvpn/include/openssl/applink.c21#define APPLINK_FOPEN 11 /* solely for completeness */COMMENT
LOWipc/ipcserver.h1#ifndef IPCSERVER_HCOMMENT
LOWipc/ipcserver.cpp1#include "ipcserver.h"COMMENT
LOWservice/server/helper_route_mac.c61#include <sys/cdefs.h>COMMENT
LOWservice/server/helper_route_mac.c81#include <netdb.h>COMMENT
LOWservice/server/helper_route_mac.c861 return;COMMENT
LOWservice/server/xray.cpp1#include "xray.h"COMMENT
LOWservice/server/xray.cpp21 #include <netinet/in.h>COMMENT
LOWservice/server/router_win.h1#ifndef ROUTERWIN_HCOMMENT
LOWservice/server/router.cpp1#include "router.h"COMMENT
LOWservice/server/localserver.h1#ifndef LOCALSERVER_HCOMMENT
LOWservice/server/router_linux.cpp1#include "router_linux.h"COMMENT
LOWservice/server/killswitch.cpp1#include "killswitch.h"COMMENT
LOWservice/server/localserver.cpp1#include "localserver.h"COMMENT
LOWservice/src/qtservice.cpp41#include "qtservice.h"COMMENT
LOWservice/src/qtservice_unix.cpp41#include "qtservice.h"COMMENT
LOWservice/src/qtservice.h41#ifndef QTSERVICE_HCOMMENT
LOWservice/src/qtservice_win.cpp41#include "qtservice.h"COMMENT
LOWclient/vpnConnection.cpp1#include "vpnConnection.h"COMMENT
LOWclient/amneziaApplication.h1#ifndef AMNEZIA_APPLICATION_HCOMMENT
LOWclient/secureQSettings.cpp1#include "secureQSettings.h"COMMENT
LOWclient/amneziaApplication.cpp1#include "amneziaApplication.h"COMMENT
LOWclient/amneziaApplication.cpp161 m_coreController->setQmlRoot();COMMENT
LOWclient/vpnConnection.h1#ifndef VPNCONNECTION_HCOMMENT
LOWclient/main.cpp1#include <QDebug>COMMENT
LOWclient/ui/utils/macosUtil.mm1#include "macosUtil.h"COMMENT
LOWclient/ui/utils/systemTrayNotificationHandler.cpp161// if (engine->window()->isVisible()) {COMMENT
LOWclient/ui/utils/qAutoStart.h1// The MIT License (MIT)COMMENT
LOWclient/ui/utils/qAutoStart.cpp1// The MIT License (MIT)COMMENT
LOWclient/ui/utils/qAutoStart.cpp21// THE SOFTWARE.COMMENT
LOWclient/ui/utils/macosUtil.h1#ifndef OSXUTIL_HCOMMENT
LOWclient/ui/models/protocolsModel.cpp1#include "protocolsModel.h"COMMENT
LOWclient/ui/models/newsModel.cpp1#include "ui/models/newsModel.h"COMMENT
LOWclient/ui/models/serversModel.cpp1#include "serversModel.h"COMMENT
LOWclient/ui/models/services/mtProxyConfigModel.cpp1#include "mtProxyConfigModel.h"COMMENT
LOWclient/ui/controllers/systemController.cpp1#include "systemController.h"COMMENT
LOWclient/ui/controllers/importUiController.cpp1#include "importUiController.h"COMMENT
LOWclient/ui/controllers/settingsUiController.cpp1#include "settingsUiController.h"COMMENT
LOWclient/ui/controllers/allowedDnsUiController.cpp1#include "allowedDnsUiController.h"COMMENT
LOWclient/ui/controllers/serversUiController.h1#ifndef SERVERSUICONTROLLER_HCOMMENT
LOWclient/ui/controllers/selfhosted/installUiController.h1#ifndef INSTALLUICONTROLLER_HCOMMENT
LOWclient/ui/controllers/selfhosted/installUiController.h21#include "ui/models/protocols/wireguardConfigModel.h"COMMENT
LOW…ient/ui/controllers/selfhosted/installUiController.cpp1#include "installUiController.h"COMMENT
LOW…ient/ui/controllers/selfhosted/installUiController.cpp21#include "core/utils/constants/protocolConstants.h"COMMENT
LOWclient/ui/controllers/qml/pageController.cpp1#include "pageController.h"COMMENT
LOWclient/ui/controllers/api/subscriptionUiController.cpp1#include "subscriptionUiController.h"COMMENT
LOWclient/ui/controllers/api/subscriptionUiController.h1#ifndef SUBSCRIPTIONUICONTROLLER_HCOMMENT
LOWclient/mozilla/localsocketcontroller.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/mozilla/networkwatcher.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/mozilla/networkwatcher.cpp21# include "platforms/linux/linuxnetworkwatcher.h"COMMENT
LOWclient/mozilla/pingsenderfactory.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/mozilla/dnspingsender.cpp21 quint16 flags;COMMENT
LOWclient/platforms/macos/macospingsender.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/platforms/macos/daemon/macosroutemonitor.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/platforms/macos/daemon/macosdaemon.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/platforms/macos/daemon/wireguardutilsmacos.cpp1/* This Source Code Form is subject to the terms of the Mozilla PublicCOMMENT
LOWclient/platforms/macos/daemon/macosfirewall.h1// Copyright (c) 2023 Private Internet Access, Inc.COMMENT
196 more matches not shown…
Decorative Section Separators68 hits · 225 pts
SeverityFileLineSnippetContext
MEDIUMdeploy/data/macos/post_uninstall.sh101# -----------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml63# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml137# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml170# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml263# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml306# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml407# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml454# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml547# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml594# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml684# ------------------------------------------------------COMMENT
MEDIUM.github/workflows/deploy.yml738# ------------------------------------------------------COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp46 // ── Main ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp58 // ── Security ──────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp66 // ── XHTTP ─────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp112 // ── mKCP ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp126 // ── xPadding ──────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp142 // ── xmux ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp193 // ── Main ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp200 // ── Security ──────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp205 // ── XHTTP ─────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp230 // ── mKCP ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp238 // ── xPadding ──────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.cpp247 // ── xmux ──────────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h20 // ── Main page ─────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h27 // ── Security ──────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h32 // ── Transport — XHTTP ─────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h59 // ── Transport — mKCP ──────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h67 // ── xPadding ──────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h76 // ── xmux ──────────────────────────────────────────────────────COMMENT
MEDIUMclient/ui/models/protocols/xrayConfigModel.h98 // ── Static option lists (for QML DropDown models) ─────────────────COMMENT
MEDIUMclient/server_scripts/check_server.sh34# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh36# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh58# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh60# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh147# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh149# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh164# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh166# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh191# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh193# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh258# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh260# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh300# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh302# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh318# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh320# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh373# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh375# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh428# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh430# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh509# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/server_scripts/check_server.sh511# ------------------------------------------------------------------------------COMMENT
MEDIUMclient/core/utils/constants/configKeys.h137 // ── Xray-specific keys ────────────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h12// ── xPadding ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h26// ── xmux ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h46// ── XHTTP transport ───────────────────────────────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h82// ── mKCP transport ────────────────────────────────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h95// ── Server config (settings editable by user) ─────────────────────────────────COMMENT
MEDIUMclient/core/models/protocols/xrayProtocolConfig.h120// ── Client config (generated, not edited by user) ─────────────────────────────COMMENT
8 more matches not shown…
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWrecipes/awg-go/conanfile.py80CODE
LOWrecipes/tun2socks/conanfile.py99CODE
LOWrecipes/openssl/conanfile.py513CODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWrecipes/openssl/conanfile.py590 def _create_cmake_module_variables(self, module_file):CODE
LOWclient/android/src/org/amnezia/vpn/AmneziaActivity.kt1207private class PermissionRequestHandler(CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWclient/platforms/windows/daemon/windowssplittunnel.cpp430 // Step 1: Calculate how much size the buffer will needCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWclient/platforms/windows/daemon/windowssplittunnel.cpp430 // Step 1: Calculate how much size the buffer will needCOMMENT
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippetContext
LOWclient/server_scripts/check_server.sh221# Check if password is required for sudoCOMMENT