Repository Analysis

akinomyoga/ble.sh

Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.

12.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of akinomyoga/ble.sh, a Shell project with 4,502 GitHub stars. SynthScan v2.0 examined 96,596 lines of code across 185 source files, recording 749 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 12.9 places this repository in the Low AI signal 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).

12.9
Adjusted Score
12.9
Raw Score
100%
Time Factor
2026-07-11
Last Push
4.5K
Stars
Shell
Language
96.6K
Lines of Code
185
Files
749
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 2MEDIUM 378LOW 369

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 749 distinct pattern matches across 6 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 Separators372 hits · 960 pts
SeverityFileLineSnippetContext
MEDIUMmake_command.sh46#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh228#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh246#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh915#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh1058#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh1161#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh1206#------------------------------------------------------------------------------COMMENT
MEDIUMmake_command.sh1218#------------------------------------------------------------------------------COMMENT
MEDIUMmake/color.sample.sh195 #--------------------------------------------------------------------------COMMENT
MEDIUMmake/color.sample.sh242 #--------------------------------------------------------------------------COMMENT
MEDIUMmake/color.sample.sh314 #--------------------------------------------------------------------------COMMENT
MEDIUMmake/color.sample.sh620#------------------------------------------------------------------------------COMMENT
MEDIUMmake/color.sample.sh693#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.c2w.generate-table.sh38#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.c2w.generate-table.sh1168#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.emoji.sh65#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.emoji.sh117#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.emoji.sh200#------------------------------------------------------------------------------COMMENT
MEDIUMmake/canvas.emoji.sh474#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/T0003.debug-trap.sh53#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/T0003.debug-trap.sh76#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1314.bashrc.sh21#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1314.bashrc.sh42#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1522.large-array-passing.sh37#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1522.large-array-passing.sh61#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1522.large-array-passing.sh142#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D2014-complete-mandb-for-command.bash59#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D0628.extract-global-values.sh7#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D0628.extract-global-values.sh34#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D0628.extract-global-values.sh61#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D0628.extract-global-values.sh93#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D0628.extract-global-values.sh118#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1614.bash32-soh-and-del-in-arrays.sh25#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/D1231.ble-measure-calibration.sh51#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh37#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh51#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh96#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh141#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh178#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh227#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh320#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array-reverse.sh369#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array.sh12#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array.sh88#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/array.sh107#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201902-sort.sh44#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201902-sort.sh146#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201902-sort.sh165#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201902-sort.sh205#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh54#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh65#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh114#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh130#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh141#--------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh154#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh167#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201809-test.sh182#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201903-string-build.sh7#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201903-string-build.sh38#------------------------------------------------------------------------------COMMENT
MEDIUMmemo/benchmark/201711-arithmetic.sh7#------------------------------------------------------------------------------COMMENT
312 more matches not shown…
Over-Commented Block368 hits · 252 pts
SeverityFileLineSnippetContext
LOWmake_command.sh1141 }COMMENT
LOWarchive/getopt1.sh1#!/bin/bashCOMMENT
LOWarchive/getopt.sh1# bash source -*- mode:sh; mode:sh-bash -*-COMMENT
LOWarchive/getopt.sh21## #COMMENT
LOWarchive/getopt.sh41## elseCOMMENT
LOWarchive/getopt.sh61## [[ $flagVersion ]] && print-versionCOMMENT
LOWarchive/getopt-test.sh1#!/bin/bashCOMMENT
LOWarchive/cmap/xterm.sh101ble/cmap:xterm/CSI-CMS '2 6' '$' f24COMMENT
LOWarchive/cmap/xterm.sh121# # [96]='`' [97]=a [98]=b [99]=cCOMMENT
LOWmake/canvas.c2w.wcwidth.cpp21 int *old_widths = &widths2[0];COMMENT
LOWmake/canvas.c2w.list-ucsver-detection-codes.sh1#!/usr/bin/env bashCOMMENT
LOWmemo/D1314.bashrc.sh1#!/bin/bashCOMMENT
LOWmemo/D0375.quote-in-param-expansion.sh101 [[ "${digits["1"]}" == 1 ]] || echo Error3COMMENT
LOWmemo/D0375.quote-in-param-expansion.sh121## 2. ${var:offset} の形式では基本的に offset に quote を含めるとCOMMENT
LOWmemo/D1522.large-array-passing.sh141COMMENT
LOWmemo/D1440.suppress-locale-error.sh41# checkB1COMMENT
LOWmemo/D0628.extract-global-values.sh61#------------------------------------------------------------------------------COMMENT
LOWmemo/D1519.posix-option.sh21# set -o posixCOMMENT
LOWmemo/D1782.test.sh1#!/bin/bashCOMMENT
LOWmemo/D1231.ble-measure-calibration.sh21f8; echo $nsecCOMMENT
LOWmemo/D1231.ble-measure-calibration.sh41# S1, S5 ... サブシェルで source した時。COMMENT
LOWmemo/D1231.ble-measure-calibration.sh81# g1 790 429COMMENT
LOWmemo/benchmark/array-access.sh21function sum-random { local s=0; for ((i=0;i<N;i++)); do ((s+=a[RANDOM%N])); done; }COMMENT
LOWmemo/benchmark/array-access.sh41# 135904.300 usec/eval: sum-random 10000 (x1)COMMENT
LOWmemo/benchmark/array-access.sh61# bash-4.4COMMENT
LOWmemo/benchmark/array-reverse.sh21#COMMENT
LOWmemo/benchmark/array-reverse.sh41# 更に逆順にループを回した場合も遅くなる。COMMENT
LOWmemo/benchmark/array-reverse.sh101# # 改行が含まれていると駄目COMMENT
LOWmemo/benchmark/array-reverse.sh141#------------------------------------------------------------------------------COMMENT
LOWmemo/benchmark/array-reverse.sh181# ブレース展開を用いて A=([0]=${S[9]} ... [9]=${S[0]}) などの文字列を生成し、COMMENT
LOWmemo/benchmark/array-reverse.sh221 ble-measure 'ble/array#reverse4.1a A S2' # 12270.00 us 3469.90 us 12270.00 usCOMMENT
LOWmemo/benchmark/array-reverse.sh241# }COMMENT
LOWmemo/benchmark/array-reverse.sh321# 2018-07-15 BASH_ARGV を用いた実装。COMMENT
LOWmemo/benchmark/201902-sort.sh201COMMENT
LOWmemo/benchmark/201809-test.sh21dirverylonglong=/hello/worldCOMMENT
LOWmemo/benchmark/201809-test.sh41COMMENT
LOWmemo/benchmark/201809-test.sh61# # multiple assignCOMMENT
LOWmemo/benchmark/201809-test.sh81# # incrementCOMMENT
LOWmemo/benchmark/201809-test.sh101# ble-measure "((a==1?(x=1):(y=1)))"COMMENT
LOWmemo/benchmark/201809-test.sh121# ble-measure _emptyCOMMENT
LOWmemo/benchmark/201809-test.sh141#--------------------------------------COMMENT
LOWmemo/benchmark/201809-test.sh161# ble-measure 'filter1'COMMENT
LOWmemo/benchmark/array-is-array.sh101# 4.422 usec/eval: ble/is-array5 arr1 (x20000)COMMENT
LOWmemo/benchmark/array-is-array.sh121# 211.200 usec/eval: ble/is-array6 arr2 (x500)COMMENT
LOWmemo/benchmark/201512-setvalue.sh41 ble-measure 'ble/util/set.printf "$var" "$value"'COMMENT
LOWmemo/benchmark/string-split-words.sh101# split4 30.0 30.6 30.8 34.8 30.3 33.2 38.2 38.7 37.1 29.0 26.6 [split3 + change quoting] 一緒に計測すると遅くなる傾向COMMENT
LOWmemo/D2165/reduced.sh1#!/usr/bin/env bashCOMMENT
LOWmemo/D2165/reduced.sh21# fcntl(51, F_GETFD) = 0COMMENT
LOWmemo/D2165/reduced.sh41# fcntl(52, F_GETFD) = 0x1 (flags FD_CLOEXEC)COMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh1#!/bin/bashCOMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh21# bash-4.3 17900.000 usec/eval: arr2=("${arr1[@]}") (x10)COMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh41COMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh61# bash-5.0 4759.662 usec/eval: arr2=({0..10000}) (x50)COMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh81# bash-5.0 15342.200 usec/eval: arr2=({0..10000}); ble/array#push.2 arr2 {1..1000} (x10)COMMENT
LOWmemo/D1302/D1302.benchmark-array-copy.sh101# bash-5.0 15667.830 usec/eval: arr2=({0..1000}); ble/array#push.2 arr2 "${arr1[@]}" (x10)COMMENT
LOWmemo/D1302/D1302.benchmark-c2s-cached.sh81 tester.2/loop1 "${input[@]}"COMMENT
LOWmemo/D1302/D1302.benchmark-c2s-cached.sh101# 603000.000 usec/eval: tester.2 ble/util/c2s.0 100 (x1)COMMENT
LOWmemo/D1302/D1302.benchmark-c2s-cached.sh121COMMENT
LOWlib/vim-surround.sh1#!/bin/bashCOMMENT
LOWlib/vim-surround.sh21# <, t (未対応) タグで囲むCOMMENT
308 more matches not shown…
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHmemo/D1488/D1488.vim-mode-in-status.bash35 # In this example, we put the mode string, date and time, and theCOMMENT
HIGHlib/core-complete.sh6546# In this implementation, we first attempt the pathname expansion withoutCOMMENT
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/build.yml84 # INSTALL (more robust)COMMENT
MEDIUMlib/core-complete.sh3946 # When we want to sort items that may contain newlines, we utilize theCOMMENT
MEDIUMsrc/util.sh3279 # 33>&-. We here utilize another bug in Bash 3.1, where 77>&33- failsCOMMENT
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMlib/core-syntax.sh1947 # This function is a callback for "ble/util/for-global-variables"COMMENT
MEDIUMsrc/util.sh3425 # Initialize the variable as if "ble/fd#alloc _ble_util_fd_null base:inherit"COMMENT
MEDIUMsrc/util.sh3433 # Initialize the variable as if "ble/fd#alloc _ble_util_fd_null base".COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWlib/test-canvas.sh525 30:5 $'hello world\nfoo bar buzz\nA quick brown fox\nLorem ipsum\n1 1 2 3 5 8 13 21 34 55 89 144' \CODE