Repository Analysis

macports/macports-ports

The MacPorts ports tree

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of macports/macports-ports, a Tcl project with 1,811 GitHub stars. SynthScan v2.0 examined 68,357 lines of code across 621 source files, recording 287 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 4.3 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).

4.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
1.8K
Stars
Tcl
Language
68.4K
Lines of Code
621
Files
287
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 5LOW 282

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 287 distinct pattern matches across 9 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 · 246 pts
SeverityFileLineSnippetContext
LOWdevel/libsockets/files/create-dylib.sh1#!/bin/bashCOMMENT
LOW…bazel/files/xcode_locator_fixes/Xcode6-xcode_locator.m1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOW…bazel/files/xcode_locator_fixes/Xcode7-xcode_locator.m1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOW…bazel/files/xcode_locator_fixes/Xcode8-xcode_locator.m1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWdevel/libgit2-devel/files/copyfile.h61COMMENT
LOWdevel/libgit2-devel/files/copyfile.h81#define COPYFILE_PACK (1<<22)COMMENT
LOWdevel/libgit2/files/copyfile.h61COMMENT
LOWdevel/libgit2/files/copyfile.h81#define COPYFILE_PACK (1<<22)COMMENT
LOWdevel/libpdel/files/Darwin/hacks.h1#include <sys/param.h>COMMENT
LOW…es/mysql55-connector-cpp/files/examples-CMakeLists.txt1# MacPorts MySQL Connector/C++ examples CMake buildCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h21#ifndef DEFAULT_TEXMFLOCALCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h41#ifndef DEFAULT_TEXMFCONFIGCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h61#ifndef DEFAULT_WEB2CCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h81#ifndef DEFAULT_TEXFORMATSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h101#ifndef DEFAULT_MPPOOLCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h121#ifndef DEFAULT_GLYPHFONTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h141#ifndef DEFAULT_MLBIBINPUTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h161#ifndef DEFAULT_TEXPSHEADERSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h181#ifndef DEFAULT_OPENTYPEFONTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h201#ifndef DEFAULT_ENCFONTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h221#ifndef DEFAULT_PDFTEXCONFIGCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h241#ifndef DEFAULT_FONTCONFIG_FILECOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h261#ifndef DEFAULT_WEBINPUTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h281#ifndef DEFAULT_OVPFONTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h301#ifndef DEFAULT_TEX4HTINPUTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h321#ifndef DEFAULT_CLUAINPUTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h341#ifndef DEFAULT_RUBYINPUTSCOMMENT
LOWtex/texlive-bin/files/texk_kpathsea_paths.h361#ifndef DEFAULT_TEXCOMMENT
LOWnet/junkbuster/files/patch-junkbstr.ini21 # the logfile is where all logging and error messages are writtenCOMMENT
LOWnet/junkbuster/files/patch-junkbstr.ini41 # files specify locations of "for information about trusted referers, see.."COMMENT
LOWnet/libdnsres/files/patch-gethostnamadr.c1--- gethostnamadr.c.org 2005-07-13 17:14:28.000000000 -0700COMMENT
LOWnet/libdnsres/files/patch-getaddrinfo.c1--- getaddrinfo.c.org 2005-07-13 17:14:28.000000000 -0700COMMENT
LOWnet/dnsa/files/patch-sniffid.c1--- sniffid.c.orig Fri Oct 15 13:47:13 2004COMMENT
LOWnet/clash/files/options.yaml1# Port of HTTP(S) proxy server on the local endCOMMENT
LOWnet/clash/files/options.yaml21# Set to true to allow connections to the local-end server fromCOMMENT
LOWnet/clash/files/options.yaml41# When set to false, resolver won't translate hostnames to IPv6 addressesCOMMENT
LOWnet/clash/files/options.yaml61routing-mark: 6666COMMENT
LOWnet/clash/files/options.yaml101 # real IP addressesCOMMENT
LOWnet/clash/files/options.yaml121 # - tcp://1.1.1.1COMMENT
LOWnet/clash/files/options.yaml141 # - '+.facebook.com'COMMENT
LOWnet/clash/files/options.yaml201 cipher: autoCOMMENT
LOWnet/clash/files/options.yaml261 # socks5COMMENT
LOWnet/clash/files/options.yaml321 server: serverCOMMENT
LOWnet/pidgin/files/autogen.sh1#! /bin/shCOMMENT
LOWnet/pidgin/files/autogen.sh21###############################################################################COMMENT
LOWnet/rsync-lart/files/copyfile.h61COMMENT
LOWnet/rsync-lart/files/copyfile.h81#define COPYFILE_PACK (1<<22)COMMENT
LOWsecurity/lastpass-cli/files/version.h1#define LASTPASS_CLI_VERSION "1.5.0.GIT"COMMENT
LOW…-server/files/prefix/etc/dovecot/imap.keytab.README.sh81# kadmin> ext_keytab -k @PREFIX@/etc/dovecot/imap.keytab imap/@host@.@domain@.@tld@COMMENT
LOW…-server/files/prefix/etc/dovecot/imap.keytab.README.sh101# c list "" *COMMENT
LOW…-server/files/prefix/etc/postfix/smtp.keytab.README.sh81# kadmin> ext_keytab -k @PREFIX@/etc/postfix/smtp.keytab smtp/@host@.@domain@.@tld@COMMENT
LOW…-server/files/prefix/etc/postfix/smtp.keytab.README.sh121# (After postfix configured and loaded)COMMENT
LOW…-server/files/prefix/etc/postfix/smtp.keytab.README.sh141## COMMENT
LOW…-server/files/prefix/etc/postfix/smtp.keytab.README.sh161# Use the actual base64 value here:COMMENT
LOWscience/chemical-mime-data/files/autogen.sh1#!/bin/shCOMMENT
LOWscience/libstree/files/create-dylib.sh1#!/bin/bashCOMMENT
LOWscience/sbsat/files/slider3_base.py81 sys.stdout.write("add_state%d" % test)COMMENT
LOWgnome/conglomerate/files/autogen.sh21# Ensure that we always configure with --enable-werror when building from CVS:COMMENT
LOWgnome/gtk4/files/old_appkit_compat/AppKit/AppKit.h101#define NSAlphaNonpremultipliedBitmapFormat NSBitmapFormatAlphaNonpremultipliedCOMMENT
LOWgnome/gtk4/files/old_appkit_compat/AppKit/AppKit.h121#define NSCompositeCopy NSCompositingOperationCopyCOMMENT
196 more matches not shown…
Unused Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWpython/py-pyobjc/files/multiinstall.py8CODE
LOWpython/py-pyobjc/files/multiinstall.py9CODE
LOWpython/py-pyobjc/files/multiinstall.py16CODE
LOWpython/py-testfixtures/files/conftest.py4CODE
LOWpython/py-tkinter/files/setup.py1CODE
LOWpython/py-tkinter/files/setup.py1CODE
LOWpython/py-tkinter/files/setup.py4CODE
LOWpython/py-tkinter/files/setup.py5CODE
LOWpython/py-tkinter/files/setup.py6CODE
LOWpython/py-gdbm/files/setup-py3k.py2CODE
LOWpython/py-gdbm/files/setup-py3k.py3CODE
LOWpython/py-gdbm/files/setup-py3k.py4CODE
LOWgis/orfeotoolbox/files/__init__.py5CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMscience/chemical-mime-data/files/autogen.sh9# This file is free software. The copyright owner gives unlimitedCOMMENT
MEDIUMx11/xinit/files/font_cache.sh6# This file contains Original Code and/or Modifications of Original CodeCOMMENT
MEDIUMx11/xinit/files/font_cache.sh50 # Create a list of all files in the dirCOMMENT
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWaudio/gmpc/files/autogen.sh50# Usage:COMMENT
LOWaudio/gmpc/files/autogen.sh70# Usage:COMMENT
LOWaudio/gmpc/files/autogen.sh123# Usage:COMMENT
LOWaudio/gmpc/files/autogen.sh140# Usage:COMMENT
LOWaudio/gmpc/files/autogen.sh150# Usage:COMMENT
LOWaudio/gmpc/files/autogen.sh161# Usage:COMMENT
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWgnome/grisbi/files/autogen.sh9# Check if autoconf and automake are installedCOMMENT
LOWgnome/grisbi/files/autogen.sh84# Check if the configure script is createdCOMMENT
LOWsysutils/backuppc/files/backuppc_config_template.rb123 # Check if the generated user['uid'] is valid, if not raise an errorCOMMENT
LOWx11/xinit/files/font_cache.sh39# Check if the data in the given directory is newer than its cacheCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMnet/clash/files/options.yaml399 # you can use RESTful API to switch proxy is recommended for use in GUI.COMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMgraphics/field3d/files/patch-BuildSupport.py4 # ------------------------------------------------------------------------------COMMENT
Structural Annotation Overuse2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsysutils/collectd/files/dep-gen.sh9# ( awk '/^# WARNING: This list is generated/ { exit } { print }' < Portfile | sed '$d' ; ./files/dep-gen.sh ) > PortfilCOMMENT
LOWsysutils/collectd/files/dep-gen.sh362echo "# WARNING: This list is generated by files/dep-gen.sh #"CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWnet/pidgin/files/autogen.sh42# variable in 'autogen.args'. For example, say you're using distcc, just addCOMMENT