Repository Analysis

riscv-collab/riscv-gnu-toolchain

GNU toolchain for RISC-V, including GCC

6.6 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of riscv-collab/riscv-gnu-toolchain, a C project with 4,564 GitHub stars. SynthScan v2.0 examined 214,269 lines of code across 995 source files, recording 1456 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 6.6 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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.6K
Stars
C
Language
214.3K
Lines of Code
995
Files
1.5K
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

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 1MEDIUM 0LOW 1455

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 1456 distinct pattern matches across 3 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 Block1451 hits · 1396 pts
SeverityFileLineSnippetContext
LOWtest/benchmarks/dhrystone/dhrystone.h361#undef HZCOMMENT
LOWtest/benchmarks/dhrystone/dhrystone.h381COMMENT
LOWtest/benchmarks/dhrystone/dhrystone.h401#define Stop_Timer() times(&time_info); End_Time = (long)time_info.tms_utimeCOMMENT
LOWlinux-headers/include/drm/ivpu_accel.h1/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */COMMENT
LOWlinux-headers/include/drm/ivpu_accel.h21#define DRM_IVPU_METRIC_STREAMER_START 0x07COMMENT
LOWlinux-headers/include/drm/ivpu_accel.h81#define DRM_IVPU_PARAM_PLATFORM_TYPE 2COMMENT
LOWlinux-headers/include/drm/vc4_drm.h21 * IN THE SOFTWARE.COMMENT
LOWlinux-headers/include/drm/vc4_drm.h41#define DRM_VC4_SET_TILING 0x08COMMENT
LOWlinux-headers/include/drm/radeon_drm.h41COMMENT
LOWlinux-headers/include/drm/radeon_drm.h61#define RADEON_UPLOAD_TEX1 0x00000400COMMENT
LOWlinux-headers/include/drm/radeon_drm.h81#define RADEON_EMIT_PP_LUM_MATRIX 5 /* bumpmap/1 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h101#define R200_EMIT_PP_TXCBLEND_4 25 /* tex4/4 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h121#define R200_EMIT_PP_TXOFFSET_3 45 /* tex3/1 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h141#define R200_EMIT_PP_CUBIC_FACES_2 65COMMENT
LOWlinux-headers/include/drm/radeon_drm.h161#define R200_EMIT_PP_AFS_0 85COMMENT
LOWlinux-headers/include/drm/radeon_drm.h281} drm_r300_cmd_header_t;COMMENT
LOWlinux-headers/include/drm/radeon_drm.h321#define RADEON_GART_TEX_HEAP 1COMMENT
LOWlinux-headers/include/drm/radeon_drm.h481#define DRM_RADEON_FULLSCREEN 0x06COMMENT
LOWlinux-headers/include/drm/radeon_drm.h501#define DRM_RADEON_SURF_ALLOC 0x1aCOMMENT
LOWlinux-headers/include/drm/radeon_drm.h521#define DRM_IOCTL_RADEON_CP_START DRM_IO( DRM_COMMAND_BASE + DRM_RADEON_CP_START)COMMENT
LOWlinux-headers/include/drm/radeon_drm.h541#define DRM_IOCTL_RADEON_IRQ_EMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_RADEON_IRQ_EMIT, drm_radeon_irq_emit_t)COMMENT
LOWlinux-headers/include/drm/radeon_drm.h701/* 1.3: An ioctl to get parameters that aren't available to the 3dCOMMENT
LOWlinux-headers/include/drm/radeon_drm.h841#define RADEON_TILING_SWAP_32BIT 0x8COMMENT
LOWlinux-headers/include/drm/radeon_drm.h921 __u32 op; /* RADEON_GEM_OP_* */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1001#define RADEON_INFO_WANT_CMASK 0x08 /* get access to CMASK on r300 */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1021/* query if a RADEON_CS_RING_* submission is supported */COMMENT
LOWlinux-headers/include/drm/radeon_drm.h1061#define SI_TILE_MODE_COLOR_2D_16BPP 15COMMENT
LOWlinux-headers/include/drm/habanalabs_accel.h821#define HL_INFO_RESET_COUNT 9COMMENT
LOWlinux-headers/include/drm/habanalabs_accel.h841#define HL_INFO_UNDEFINED_OPCODE_EVENT 31COMMENT
LOWlinux-headers/include/drm/i915_drm.h401} drm_i915_sarea_t;COMMENT
LOWlinux-headers/include/drm/i915_drm.h421/*COMMENT
LOWlinux-headers/include/drm/i915_drm.h441#define DRM_I915_SET_VBLANK_PIPE 0x0dCOMMENT
LOWlinux-headers/include/drm/i915_drm.h461#define DRM_I915_GEM_GET_APERTURE 0x23COMMENT
LOWlinux-headers/include/drm/i915_drm.h481#define DRM_I915_PERF_OPEN 0x36COMMENT
LOWlinux-headers/include/drm/i915_drm.h501#define DRM_IOCTL_I915_CMDBUFFER DRM_IOW( DRM_COMMAND_BASE + DRM_I915_CMDBUFFER, drm_i915_cmdbuffer_t)COMMENT
LOWlinux-headers/include/drm/i915_drm.h521#define DRM_IOCTL_I915_GEM_PREAD DRM_IOW (DRM_COMMAND_BASE + DRM_I915_GEM_PREAD, struct drm_i915_gem_pread)COMMENT
LOWlinux-headers/include/drm/i915_drm.h541#define DRM_IOCTL_I915_REG_READ DRM_IOWR (DRM_COMMAND_BASE + DRM_I915_REG_READ, struct drm_i915_reg_read)COMMENT
LOWlinux-headers/include/drm/i915_drm.h601#define I915_PARAM_HAS_GEM 5COMMENT
LOWlinux-headers/include/drm/i915_drm.h621#define I915_PARAM_HAS_EXEC_NO_RELOC 25COMMENT
LOWlinux-headers/include/drm/i915_drm.h1721#define I915_TILING_X 1COMMENT
LOWlinux-headers/include/drm/i915_drm.h1841#define I915_OVERLAY_RGB15 0x3000COMMENT
LOWlinux-headers/include/drm/tegra_drm.h621 /**COMMENT
LOWlinux-headers/include/drm/tegra_drm.h641#define DRM_TEGRA_GEM_GET_TILING 0x0bCOMMENT
LOWlinux-headers/include/drm/tegra_drm.h1041 __u32 value;COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h161#define DRM_FORMAT_RGB332 fourcc_code('R', 'G', 'B', '8') /* [7:0] R:G:B 3:3:2 */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h181#define DRM_FORMAT_ABGR1555 fourcc_code('A', 'B', '1', '5') /* [15:0] A:B:G:R 1:5:5:5 little endian */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h201#define DRM_FORMAT_BGRA8888 fourcc_code('B', 'A', '2', '4') /* [31:0] B:G:R:A 8:8:8:8 little endian */COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h301#define DRM_FORMAT_BGRX8888_A8 fourcc_code('B', 'X', 'A', '8')COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h1621#define AMD_FMT_MOD_TILE_GFX12_256B_2D 1COMMENT
LOWlinux-headers/include/drm/drm_fourcc.h1681#define AMD_FMT_MOD_BANK_XOR_BITS_SHIFT 24COMMENT
LOWlinux-headers/include/drm/lima_drm.h161#define DRM_LIMA_CTX_CREATE 0x05COMMENT
LOWlinux-headers/include/drm/qaic_accel.h21#define QAIC_SEM_OUTSYNCFENCE 1COMMENT
LOWlinux-headers/include/drm/qaic_accel.h41#define QAIC_TRANS_ACTIVATE_TO_DEV 9COMMENT
LOWlinux-headers/include/drm/qaic_accel.h381#define DRM_QAIC_WAIT_BO 0x06COMMENT
LOWlinux-headers/include/drm/panthor_drm.h241 __u32 gpu_id;COMMENT
LOWlinux-headers/include/drm/drm_sarea.h41/* SAREA area needs to be at least a page */COMMENT
LOWlinux-headers/include/drm/drm.h61COMMENT
LOWlinux-headers/include/drm/drm.h1041COMMENT
LOWlinux-headers/include/drm/drm.h1081#define DRM_IOCTL_ADD_MAP DRM_IOWR(0x15, struct drm_map)COMMENT
LOWlinux-headers/include/drm/drm.h1141#define DRM_IOCTL_PRIME_FD_TO_HANDLE DRM_IOWR(0x2e, struct drm_prime_handle)COMMENT
1391 more matches not shown…
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlinux-headers/include/linux/netlink.h67#define NLM_F_DUMP_FILTERED 0x20 /* Dump was filtered as requested */COMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOWlinux-headers/include/drm/drm_mode.h86 * When adding a new stereo mode don't forget to adjust DRM_MODE_FLAGS_3D_MAXCOMMENT
LOWlinux-headers/include/sound/asound.h101 /* Don't forget to change the following: */COMMENT
LOWlinux-headers/include/sound/asound.h153 /* Don't forget to change the following: */COMMENT
LOWlinux-headers/include/sound/asound.h160 /* Don't forget to change the following: */COMMENT