Repository Analysis

getlantern/lantern

Open-source VPN for speed, privacy, and censorship circumvention. Free to download on Android, iOS, Windows, macOS, and Linux.

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of getlantern/lantern, a Dart project with 15,790 GitHub stars. SynthScan v2.0 examined 91,251 lines of code across 537 source files, recording 129 pattern matches distributed across 11 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-14
Last Push
15.8K
Stars
Dart
Language
91.3K
Lines of Code
537
Files
129
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 46LOW 83

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 129 distinct pattern matches across 11 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.

Decorative Section Separators43 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMscripts/radiance-env.sh47# ─── platform-specific socket path ──────────────────────────────────────────COMMENT
MEDIUMscripts/generate_appcast.py29# --------------------------------COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart12 // ── Text ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart38 // ── Background ──────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart67 // ── Border ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart87 // ── Status ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart152 // ── Action / Primary ────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart174 // ── Action / Secondary ──────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart201 // ── Action / Tertiary ───────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart213 // ── Action / Tonal ──────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart239 // ── Action / Toggle ─────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_semantic_colors.dart258 // ── Action / Tabbar ─────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart186 // ── Bottom Sheet ─────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart196 // ── ListTile (used by AppTile) ───────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart204 // ── TextButton (used by AppTextButton) ───────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart211 // ── Radio ───────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart218 // ── ElevatedButton (PrimaryButton) ───────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart400 // ── Bottom Sheet ─────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart410 // ── ListTile (used by AppTile) ───────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart418 // ── TextButton (used by AppTextButton) ───────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart425 // ── Radio ───────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart432 // ── ElevatedButton (PrimaryButton) ───────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart8// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart12// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart27// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart30 // ── Light ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart77 // ── Text ────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart101 // ── AppBar ──────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart121 // ── Card ────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart133 // ── Divider ─────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart139 // ── Input / TextField ────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart175 // ── Dialog ──────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart239 // ── Dark ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart289 // ── Text ────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart315 // ── AppBar ──────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart335 // ── Card ────────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart347 // ── Divider ─────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart353 // ── Input / TextField ────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/common/app_theme.dart389 // ── Dialog ──────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/services/local_storage_service.dart29 // ── AppSetting ────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/services/local_storage_service.dart49 // ── PlansData ─────────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/services/local_storage_service.dart67 // ── ServerLocation ────────────────────────────────────────────────────────COMMENT
MEDIUMlib/core/services/local_storage_service.dart87 // ── DeveloperMode ─────────────────────────────────────────────────────────COMMENT
Over-Commented Block52 hits · 52 pts
SeverityFileLineSnippetContext
LOWpubspec.yaml1name: lanternCOMMENT
LOWanalysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code toCOMMENT
LOWanalysis_options.yaml21 # and their documentation is published at https://dart.dev/lints.COMMENT
LOWmacos/PacketTunnel/SingBox/ExtensionProvider.swift1//COMMENT
LOW…/PacketTunnel/SingBox/ExtensionPlatformInterface.swift1//COMMENT
LOWios/Classes/native_add.c1// Relative import to be able to reuse the C sources.COMMENT
LOWios/Tunnel/Tunnel-Bridging-Header.h1// vpn_bridging.hCOMMENT
LOWios/Tunnel/SingBox/ExtensionProvider.swift1//COMMENT
LOWios/Tunnel/SingBox/ExtensionPlatformInterface.swift1//COMMENT
LOWlinux/flutter/generated_plugin_registrant.h1//COMMENT
LOW…in/org/getlantern/lantern/service/LanternVpnService.kt61 private const val LAST_RESET_APK_UPDATE_TIME = "last_reset_apk_update_time"COMMENT
LOW…in/org/getlantern/lantern/service/LanternVpnService.kt181 // Only the TUN fd close stays synchronous on the main thread — it'sCOMMENT
LOW…in/org/getlantern/lantern/service/LanternVpnService.kt241 override fun postServiceClose() {COMMENT
LOW…in/org/getlantern/lantern/service/LanternVpnService.kt361 DefaultNetworkMonitor.setNetworkChangeCallback { updateUnderlyingNetworks() }COMMENT
LOWscripts/radiance-env.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/ci/version.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/ci/generate-release-notes.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/ci/format.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/ci/publish-to-s3.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/android-compile-check.yml1name: Android Compile CheckCOMMENT
LOWlib/core/common/app_theme.dart1import 'package:flutter/material.dart';COMMENT
LOW…tures/home/provider/radiance_settings_providers.g.dart1// GENERATED CODE - DO NOT MODIFY BY HANDCOMMENT
LOW…tures/home/provider/radiance_settings_providers.g.dart21/// Holds radiance-backed VPN preferences in memory.COMMENT
LOWlib/features/home/provider/app_event_notifier.g.dart1// GENERATED CODE - DO NOT MODIFY BY HANDCOMMENT
LOW…es/developer/notifier/developer_daemon_notifier.g.dart1// GENERATED CODE - DO NOT MODIFY BY HANDCOMMENT
LOWlib/lantern/protos/protos/auth.pbenum.dart1// This is a generated file - do not edit.COMMENT
LOWlantern-core/core.go201func (lc *LanternCore) initialize(opts *utils.Opts, eventEmitter utils.FlutterEventEmitter) error {COMMENT
LOWlantern-core/core.go361/////////////////COMMENT
LOWlantern-core/vpn_tunnel/vpn_tunnel.go21// → lantern.startVPN() → Mobile.StartVPN, which expects "switch back toCOMMENT
LOWlantern-core/vpn_tunnel/vpn_tunnel_test.go1package vpn_tunnelCOMMENT
LOWlantern-core/ffi/ffi_test.go1package mainCOMMENT
LOWlantern-core/ffi/ffi_nonlinux.go1//go:build !linuxCOMMENT
LOWlantern-core/ffi/ffi_nonlinux.go21// precision when the daemon really is dead. The preflight on theseCOMMENT
LOWlantern-core/mobile/mobile.go101 if err := os.Setenv("TZ", tz); err != nil {COMMENT
LOWlantern-core/mobile/mobile_test.go1package mobileCOMMENT
LOWlantern-core/mobile/mobile_test.go21// // func TestStartVPN(t *testing.T) {COMMENT
LOWlantern-core/mobile/mobile_test.go41// func TestSubscriptionRedirect(t *testing.T) {COMMENT
LOWlantern-core/mobile/mobile_test.go61// assert.Nil(t, err)COMMENT
LOWlantern-core/mobile/mobile_test.go81// assert.Nil(t, err)COMMENT
LOWlantern-core/dart_api_dl/include/dart_api.h21#define __STDC_FORMAT_MACROSCOMMENT
LOWlantern-core/dart_api_dl/include/dart_api.h41#if defined(DART_SHARED_LIB)COMMENT
LOWlantern-core/dart_api_dl/include/dart_api.h3941 void** write_callback_data,COMMENT
LOWlantern-core/dart_api_dl/include/dart_api.h3961#elseCOMMENT
LOWlantern-core/dart_api_dl/include/dart_embedder_api.h1// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS fileCOMMENT
LOWlantern-core/dart_api_dl/include/dart_api_dl.h21 * Link `dart_api_dl.c` file into your library and invokeCOMMENT
LOWlantern-core/dart_api_dl/include/dart_api_dl.h121 F(Dart_UpdateFinalizableExternalSize, void, \COMMENT
LOWlantern-core/dart_api_dl/include/dart_api_dl.h141// functions in the VM. If we were to use function declarations instead, weCOMMENT
LOWlantern-core/apps/apps_windows.go861// - Drop entries under known system / vestigial paths.COMMENT
LOWwindows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWwindows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWwindows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWwindows/flutter/generated_plugin_registrant.h1//COMMENT
Hyper-Verbose Identifiers20 hits · 20 pts
SeverityFileLineSnippetContext
LOW…n/kotlin/org/getlantern/lantern/apps/AppDataHandler.kt60internal class AppDataHandler(CODE
LOWscripts/stealth/generate_profile_test.py12 def test_generates_profile_outputs_and_redacts_seed_metadata(self):CODE
LOWscripts/stealth/generate_profile_test.py69 def test_go_tags_suffix_from_profile(self):CODE
LOWscripts/stealth/generate_profile_test.py96 def test_accepts_mode_aliases(self):CODE
LOWscripts/stealth/generate_profile_test.py110 def test_go_tags_suffix_requires_input(self):CODE
LOWscripts/stealth/generate_profile_test.py115 def test_rejects_invalid_package_name(self):CODE
LOWscripts/stealth/generate_profile_test.py128 def test_rejects_unsupported_schema_version(self):CODE
LOWscripts/stealth/generate_profile_test.py142 def test_rejects_boolean_denylist_version(self):CODE
LOWscripts/stealth/generate_profile_test.py155 def test_rejects_float_denylist_version(self):CODE
LOWscripts/stealth/generate_profile_test.py168 def test_rejects_denylist_version_outside_android_int_range(self):CODE
LOWscripts/stealth/generate_profile_test.py181 def test_write_json_wraps_os_errors(self):CODE
LOWscripts/stealth/generate_profile_test.py186 def test_rejects_manifest_placeholder_xml_characters(self):CODE
LOWscripts/stealth/generate_profile_test.py199 def test_rejects_manifest_placeholder_iso_control_characters(self):CODE
LOWscripts/stealth/generate_profile_test.py212 def test_default_package_name_is_neutral(self):CODE
LOWscripts/stealth/generate_profile_test.py221 def test_stealth_build_requires_app_name(self):CODE
LOWscripts/stealth/generate_profile_test.py238 def test_stealth_build_requires_session_name(self):CODE
LOWscripts/stealth/generate_profile_test.py255 def test_stealth_build_rejects_branded_app_name(self):CODE
LOWscripts/stealth/generate_profile_test.py274 def test_stealth_build_rejects_branded_session_name(self):CODE
LOWscripts/stealth/generate_profile.py122def validate_manifest_placeholder_text(field: str, value: str) -> str:CODE
LOWscripts/stealth/generate_profile.py135def validate_non_branded_text(field: str, value: str) -> str:CODE
TODO Padding4 hits · 8 pts
SeverityFileLineSnippetContext
LOWlib/lantern/lantern_ffi_service.dart1633 // TODO: implement openSystemExtensionCOMMENT
LOWlib/lantern/lantern_ffi_service.dart1639 // TODO: implement watchSystemExtensionStatusCOMMENT
LOWlib/lantern/lantern_ffi_service.dart1645 // TODO: implement isSystemExtensionInstalledCOMMENT
LOWlib/lantern/lantern_ffi_service.dart1741 // TODO: implement diagnosticLogFilesCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpubspec.yaml79 # dependency injectionCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpubspec.yaml146# The following section is specific to Flutter packages.COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpubspec.yaml149 # included with your application, so that you can use the icons inCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/radiance-env.sh9# Usage:COMMENT
LOWscripts/ci/version.sh6# Usage:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/ci/format.sh45# Check if a platform should be includedCOMMENT
LOWscripts/ci/publish-to-s3.sh51# Check if a platform should be uploaded based on the platforms listCOMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/stealth/generate_profile_test.py218CODE
LOWscripts/stealth/generate_profile.py4CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/generate_appcast.py47CODE