Repository Analysis

uutils/coreutils

Cross-platform Rust rewrite of the GNU coreutils

2.6 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of uutils/coreutils, a Rust project with 23,772 GitHub stars. SynthScan v2.0 examined 275,838 lines of code across 884 source files, recording 677 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 2.6 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.6
Adjusted Score
2.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
23.8K
Stars
Rust
Language
275.8K
Lines of Code
884
Files
677
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 12LOW 665

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 677 distinct pattern matches across 14 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 Block615 hits · 612 pts
SeverityFileLineSnippetContext
LOWCargo.toml21COMMENT
LOWutil/check-toctou.sh1#!/bin/bashCOMMENT
LOWutil/dwr.sh1#!/usr/bin/env bashCOMMENT
LOWutil/update-version.sh1#!/bin/shCOMMENT
LOWutil/build-run-test-coverage-linux.sh1#!/usr/bin/env bashCOMMENT
LOWutil/android-commands.sh1#!/usr/bin/env bashCOMMENT
LOWutil/android-commands.sh201# finishes a command run with a summary. It returns with the exit code of the probe if specified asCOMMENT
LOWutil/build-gnu.sh341# don't need to replicate that behavior.COMMENT
LOWutil/GHA-delete-GNU-workflow-logs.sh1#!/bin/shCOMMENT
LOWtests/test_uudoc.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_env.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_env.rs1201 }COMMENT
LOWtests/by-util/test_env.rs1221 /// println!("Executing: {}", shell_words::join(args));COMMENT
LOWtests/by-util/test_uptime.rs101COMMENT
LOWtests/by-util/test_mv.rs1881COMMENT
LOWtests/by-util/test_tee.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_ls.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_ls.rs1181 // A line of the output should be:COMMENT
LOWtests/by-util/test_ls.rs1221 .arg("dir")COMMENT
LOWtests/by-util/test_ls.rs1241 // the 1st color is the target color, in a fixed-size array of size 2.COMMENT
LOWtests/by-util/test_ls.rs1261 // ├── ln-file1 -> dir1/file1COMMENT
LOWtests/by-util/test_stdbuf.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_cp.rs3281 } );COMMENT
LOWtests/by-util/test_tail.rs341 .stderr_is("tail: error reading 'standard input': Is a directory\n");COMMENT
LOWtests/by-util/test_tail.rs461COMMENT
LOWtests/by-util/test_tail.rs2461 not(target_os = "openbsd")COMMENT
LOWtests/by-util/test_tail.rs4561 .kill()COMMENT
LOWtests/by-util/test_tail.rs4581// <COMMENT
LOWtests/by-util/test_tail.rs4641#[rstest]COMMENT
LOWtests/by-util/test_touch.rs661#[test]COMMENT
LOWtests/by-util/test_sleep.rs281 .fails()COMMENT
LOWtests/by-util/test_eintr_handling.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_mkdir.rs321 // posix_acl entries are in the form ofCOMMENT
LOWtests/by-util/test_cat.rs821 child.pipe_in("content");COMMENT
LOWtests/by-util/test_id.rs421 // for now, we print clap's standard response for "conflicts_with" instead of:COMMENT
LOWtests/by-util/test_cksum.rs21#[case::crc("crc")]COMMENT
LOWtests/by-util/test_chown.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_chown.rs261 .fails()COMMENT
LOWtests/by-util/test_chown.rs501 .stderr_contains("invalid spec");COMMENT
LOWtests/by-util/test_tac.rs161// FIXME: See https://github.com/uutils/coreutils/issues/4204COMMENT
LOWtests/by-util/test_tac.rs181 // "xx".COMMENT
LOWtests/by-util/test_tac.rs201 // separator, since there are no more characters preceding it.COMMENT
LOWtests/by-util/test_tac.rs361 new_ucmd!()COMMENT
LOWtests/by-util/test_seq.rs1061 // likely not the primary cause, as even double (64-bit) values can differ when compared toCOMMENT
LOWtests/by-util/test_seq.rs1081// GNU `seq` manual states that, when the parameters "all use a fixed pointCOMMENT
LOWtests/by-util/test_seq.rs1121// provided numbers "all use a fixed point decimal representation",COMMENT
LOWtests/by-util/test_mktemp.rs541/// Decide whether a string matches a given template.COMMENT
LOWtests/by-util/test_more.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_nice.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/by-util/test_head.rs561)]COMMENT
LOWtests/by-util/test_head.rs661#[test]COMMENT
LOWtests/uutests/src/lib/random.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/uutests/src/lib/random.rs21/// .sample_iter(AlphanumericNewline)COMMENT
LOWtests/uutests/src/lib/random.rs61/// use crate::common::random::{AlphanumericNewline, RandomizedString};COMMENT
LOWtests/uutests/src/lib/random.rs101 /// * `dist`: A `u8` [`Distribution`]COMMENT
LOWtests/uutests/src/lib/util.rs1// This file is part of the uutils coreutils package.COMMENT
LOWtests/uutests/src/lib/util.rs301 }COMMENT
LOWtests/uutests/src/lib/util.rs481 );COMMENT
LOWtests/uutests/src/lib/util.rs501 self.stderr_str()COMMENT
LOWtests/uutests/src/lib/util.rs581 self.stdout_is(String::from_utf8(contents).unwrap())COMMENT
555 more matches not shown…
AI Slop Vocabulary9 hits · 26 pts
SeverityFileLineSnippetContext
LOWutil/test_compare_test_results.py518 # Instead of assertRaises, just call main() and check its return valueCOMMENT
MEDIUMutil/run-gnu-test.sh38# --- Self-heal: make the shared GNU harness point at THIS checkout ----------COMMENT
MEDIUMutil/run-gnu-test.sh41# PATH, so the harness can silently run a stale/other build. Re-point the PATHCOMMENT
MEDIUMutil/run-gnu-test.sh52# to whatever 'target/*/coreutils' actually exists so the harness adapts to theCOMMENT
MEDIUMtests/by-util/test_ls.rs3632// Essentially the same test as above, but only test symlinks and directories,COMMENT
MEDIUMtests/by-util/test_chmod.rs1470 // Assert on the path only (not the mode bits), so the test is robust to theCOMMENT
MEDIUMsrc/uu/md5sum/Cargo.toml45# harness = falseCOMMENT
MEDIUMsrc/uu/checksum_common/Cargo.toml32# harness = falseCOMMENT
MEDIUMsrc/uucore/src/lib/mods/clap_localization.rs11//! instead of parsing error strings, providing a more robust solution.COMMENT
Hyper-Verbose Identifiers19 hits · 20 pts
SeverityFileLineSnippetContext
LOWutil/test_compare_size_results.py28 def test_load_sizes_date_keyed(self):CODE
LOWutil/test_compare_size_results.py48 def test_load_sizes_flat_fallback(self):CODE
LOWutil/test_compare_size_results.py74 def test_compare_threshold_boundaries(self):CODE
LOWutil/test_compare_size_results.py99 def test_compare_added_removed_and_totals(self):CODE
LOWutil/test_compare_size_results.py109 def test_compare_sort_and_zero_reference(self):CODE
LOWutil/test_compare_size_results.py116 def test_format_report_renders_changes(self):CODE
LOWutil/test_compare_size_results.py137 def test_main_writes_only_when_significant(self):CODE
LOWutil/test_compare_size_results.py156 def test_main_missing_reference_is_not_fatal(self):CODE
LOWutil/test_compare_test_results.py53 def test_log_extension_removal(self):CODE
LOWutil/test_compare_test_results.py93 def test_with_comments_and_blanks(self):CODE
LOWutil/test_compare_test_results.py213 def test_new_and_removed_tests(self):CODE
LOWutil/test_compare_test_results.py249 def test_skip_to_fail_not_regression(self):CODE
LOWutil/test_compare_test_results.py315 def test_main_exit_code_with_real_regressions(self):CODE
LOWutil/test_compare_test_results.py351 def test_filter_intermittent_fixes(self):CODE
LOWutil/test_compare_test_results.py425 def test_console_output_formatting(self, mock_stderr, mock_stdout):CODE
LOWutil/test_compare_test_results.py468 def test_file_output_generation(self):CODE
LOWutil/test_compare_test_results.py506 def test_exit_code_with_no_regressions(self):CODE
LOWutil/test_compare_test_results.py523 def test_exit_code_with_regressions(self):CODE
LOWutil/test_compare_test_results.py547 def test_github_actions_formatting(self):CODE
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWutil/compare_gnu_result.py42 # Check if all failing tests are intermittent based on the environment variableCOMMENT
LOWutil/analyze-gnu-results.py135 # Check if file arguments were providedCOMMENT
LOWutil/analyze-gnu-results.py145 # Check if the first argument is an output file (starts with -)COMMENT
LOWutil/run-gnu-test.sh133 # Check if the file exists with .sh, .pl extension or without any extension in the $path_GNU directoryCOMMENT
LOWutil/build-gnu.sh81# Check if all patches are already appliedCOMMENT
LOW.github/workflows/l10n.yml549 # Check if symlinks existCOMMENT
LOW.github/workflows/manpage-lint.yml69 # Check if manpages were generatedCOMMENT
LOW.github/workflows/manpage-lint.yml92 # Check if mandoc produced any output (errors only, not style warnings)COMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsrc/uu/touch/src/touch.rs502 // we need to check if the path is the path to a directory (ends with a separator)COMMENT
LOWsrc/uu/dirname/src/dirname.rs49 // Step 1: Strip trailing slashes (but not if the entire path is slashes)COMMENT
LOWsrc/uu/dirname/src/dirname.rs59 // Step 2: Check if it ends with `/.` and strip the `/+.` patternCOMMENT
LOWsrc/uu/dirname/src/dirname.rs81 // Step 3: Normal dirname - find last / and remove everything after itCOMMENT
Excessive Try-Catch Wrapping4 hits · 6 pts
SeverityFileLineSnippetContext
LOWutil/remaining-gnu-error.py22except Exception as e:CODE
MEDIUMutil/analyze-gnu-results.py158 print(f"Error: File '{json_files[0]}' not found.", file=sys.stderr)CODE
LOWutil/gnu-json-result.py37 except Exception as e:CODE
MEDIUMutil/gnu-json-result.py38 print(f"Error processing file {path}: {e}", file=sys.stderr)CODE
TODO Padding4 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/by-util/test_tail.rs4030// TODO: Add test for the warning `--pid=PID is not supported on this system`COMMENT
LOWtests/by-util/test_chown.rs269 // TODO: implement once output "failed to change" to stdout is fixedCOMMENT
LOWsrc/uu/cp/src/cp.rs768 // TODO: implement the following argsCOMMENT
LOWsrc/uu/cp/src/cp.rs2674 // TODO: implement something similar to gnu's lchownCOMMENT
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/uu/dirname/src/dirname.rs49 // Step 1: Strip trailing slashes (but not if the entire path is slashes)COMMENT
LOWsrc/uu/dirname/src/dirname.rs59 // Step 2: Check if it ends with `/.` and strip the `/+.` patternCOMMENT
LOWsrc/uu/dirname/src/dirname.rs81 // Step 3: Normal dirname - find last / and remove everything after itCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMutil/test_compare_test_results.py409 # Create an ignore fileCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWutil/analyze-gnu-results.py49CODE
LOWutil/compare_test_results.py44CODE
LOWutil/run-clippy.py34CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMutil/run-gnu-test.sh89# ---------------------------------------------------------------------------COMMENT
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/by-util/test_mv.rs2909 fs::write(&dst_path, "placeholder").expect("Failed to write placeholder dst");CODE
LOWtests/by-util/test_basenc.rs289 let input = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ".repeat(50);CODE
LOWtests/by-util/test_basenc.rs289 let input = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ".repeat(50);CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/uucore/src/lib/features/update_control.rs22//! # Usage exampleCOMMENT
LOWsrc/uucore/src/lib/features/backup_control.rs35//! # Usage exampleCOMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWutil/run-clippy.py6CODE