Repository Analysis

ocaml/ocaml

The core OCaml system: compilers, runtime system, base libraries

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ocaml/ocaml, a OCaml project with 6,600 GitHub stars. SynthScan v2.0 examined 102,819 lines of code across 507 source files, recording 353 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 4.0 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.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-11
Last Push
6.6K
Stars
OCaml
Language
102.8K
Lines of Code
507
Files
353
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 0MEDIUM 85LOW 268

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 353 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.

Over-Commented Block249 hits · 228 pts
SeverityFileLineSnippetContext
LOWappveyor.yml1#**************************************************************************COMMENT
LOWbuild-aux/ltmain.sh1#! /usr/bin/env shCOMMENT
LOWbuild-aux/ltmain.sh21# same distribution terms that you use for the rest of that program.COMMENT
LOWbuild-aux/ltmain.sh41COMMENT
LOWbuild-aux/ltmain.sh61## -------------------------- ##COMMENT
LOWbuild-aux/ltmain.sh81# the files within it. See the URLs above, or the file `LICENSE`COMMENT
LOWbuild-aux/ltmain.sh181COMMENT
LOWbuild-aux/ltmain.sh401 doneCOMMENT
LOWbuild-aux/ltmain.sh421# overwrite any of the functions or variables defined here beforeCOMMENT
LOWbuild-aux/ltmain.sh501# warnings, or a space delimited list of some subset ofCOMMENT
LOWbuild-aux/ltmain.sh561## ----------------- ##COMMENT
LOWbuild-aux/ltmain.sh721# func_dirname FILE APPEND NONDIR_REPLACEMENTCOMMENT
LOWbuild-aux/ltmain.sh1261# quotes backslashified. Available only if 'unquoted' is specified.COMMENT
LOWbuild-aux/ltmain.sh1281# " | \" | \"COMMENT
LOWbuild-aux/ltmain.sh1521}COMMENT
LOWbuild-aux/ltmain.sh1541# This file is dual licensed under the terms of the MIT licenseCOMMENT
LOWbuild-aux/ltmain.sh1561# of too.COMMENT
LOWbuild-aux/ltmain.sh1581# The default options also support '--debug', which will turn on shellCOMMENT
LOWbuild-aux/ltmain.sh1721 eval set dummy "$func_run_hooks_result"; shiftCOMMENT
LOWbuild-aux/ltmain.sh1741# function unnecessarily because it can be an expensive operation on someCOMMENT
LOWbuild-aux/ltmain.sh1761# {COMMENT
LOWbuild-aux/ltmain.sh1781# ;;COMMENT
LOWbuild-aux/ltmain.sh1801#COMMENT
LOWbuild-aux/ltmain.sh2161COMMENT
LOWbuild-aux/ltmain.sh3081 func_convert_core_file_wine_to_w32_result=COMMENT
LOWbuild-aux/ltmain.sh3121}COMMENT
LOWbuild-aux/ltmain.sh3241}COMMENT
LOWbuild-aux/ltmain.sh3381 fiCOMMENT
LOWbuild-aux/ltmain.sh5381COMMENT
LOWbuild-aux/ltmain.sh5441 s/^====MARK====//COMMENT
LOWbuild-aux/ltmain.sh5461# Platform-specific function to extract theCOMMENT
LOWbuild-aux/ltmain.sh5601# func_emit_wrapper [arg=no]COMMENT
LOWbuild-aux/ltmain.sh5621COMMENT
LOWbuild-aux/ltmain.sh5941# include <io.h>COMMENT
LOWbuild-aux/ltmain.sh5961#if defined __MINGW32__COMMENT
LOWbuild-aux/ltmain.sh5981# define S_IXUSR _S_IEXECCOMMENT
LOWbuild-aux/ltmain.sh6001COMMENT
LOWbuild-aux/ltmain.sh6021# endifCOMMENT
LOWbuild-aux/ltmain.sh7701 # -F/path path to uninstalled frameworks, gcc on darwinCOMMENT
LOWbuild-aux/ltmain.sh9061 case $deplib inCOMMENT
LOWbuild-aux/ltmain.sh11501# The TAGs below are defined such that we never get into a situationCOMMENT
LOWbuild-aux/ltmain.sh11521# Local Variables:COMMENT
LOWtools/ocaml.py1#**************************************************************************COMMENT
LOWtools/ocaml.py21#COMMENT
LOWtools/ocaml.py41#COMMENT
LOWtools/ocaml.py61# value(): the value cast to the "value" Caml runtime type.COMMENT
LOWtools/ocaml.py81# number which can have any value, including negative.COMMENT
LOWtools/gdb_ocamlrun.py1#**************************************************************************COMMENT
LOWtools/git-dev-options.sh1#! /bin/shCOMMENT
LOWtools/gdb.py1#**************************************************************************COMMENT
LOWtools/check-parser-uptodate-or-warn.sh1#!/bin/shCOMMENT
LOWtools/lldb.py1#**************************************************************************COMMENT
LOWtools/opam/process.sh1#!/bin/shCOMMENT
LOWtools/opam/process.sh21if (set -o pipefail 2> /dev/null); thenCOMMENT
LOWtools/ci/actions/check-manual-modified.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/actions/deepen-fetch.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/actions/deepen-fetch.sh21# - FETCH_HEAD - the merge commit for a PR or the tip of the branch of a pushCOMMENT
LOWtools/ci/actions/check-configure.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/actions/check-no-ignored-files.sh1#!/usr/bin/env bashCOMMENT
LOWtools/ci/actions/check-typo.sh1#!/usr/bin/env bashCOMMENT
189 more matches not shown…
Decorative Section Separators68 hits · 129 pts
SeverityFileLineSnippetContext
MEDIUMbuild-aux/ltmain.sh157# --------------COMMENT
MEDIUMbuild-aux/ltmain.sh183# ----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh192# --------------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh378# ---------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh523# -------------------COMMENT
MEDIUMbuild-aux/ltmain.sh572# ---------------------COMMENT
MEDIUMbuild-aux/ltmain.sh618# ----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh641# --------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh665# ------------------COMMENT
MEDIUMbuild-aux/ltmain.sh689# ------------------COMMENT
MEDIUMbuild-aux/ltmain.sh722# -------------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh734# --------------------------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh755# ----------------COMMENT
MEDIUMbuild-aux/ltmain.sh774# --------------------COMMENT
MEDIUMbuild-aux/ltmain.sh783# ------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh819# -----------------COMMENT
MEDIUMbuild-aux/ltmain.sh832# -----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh844# -----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh855# ---------------COMMENT
MEDIUMbuild-aux/ltmain.sh881# ---------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh929# -------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh967# ------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1057# --------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1073# --------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1138# ----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1218# -----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1253# ------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1264# ----------------COMMENT
MEDIUMbuild-aux/ltmain.sh1317# ------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1338# ---------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1368# -----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1393# ------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1422# ----------COMMENT
MEDIUMbuild-aux/ltmain.sh1443# -------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1456# -----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1469# ----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1494# -----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1511# ---------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1640# -----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1652# ---------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1669# ------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1681# ---------------------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1699# ---------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1813# ----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1825# ---------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1858# --------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1879# ---------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh1999# ------------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2028# ----------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2056# ------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2069# ------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2105# -----------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2131# ----------COMMENT
MEDIUMbuild-aux/ltmain.sh2144# ------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2164# ------------COMMENT
MEDIUMbuild-aux/ltmain.sh2221# ------------COMMENT
MEDIUMbuild-aux/ltmain.sh2245# ----------------COMMENT
MEDIUMbuild-aux/ltmain.sh2336# ---------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2353 # ---------------------------COMMENT
MEDIUMbuild-aux/ltmain.sh2375# -------------------------------COMMENT
8 more matches not shown…
Self-Referential Comments13 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMbuild-aux/ltmain.sh77# This file is dual licensed under the terms of the MIT licenseCOMMENT
MEDIUMbuild-aux/ltmain.sh1541# This file is dual licensed under the terms of the MIT licenseCOMMENT
MEDIUMbuild-aux/ltmain.sh1559# This file is a library for parsing options in your shell scripts alongCOMMENT
MEDIUMbuild-aux/ltmain.sh2807# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMbuild-aux/ltmain.sh2817# This function implements the same check as func_lalib_p withoutCOMMENT
MEDIUMbuild-aux/ltmain.sh2840# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMbuild-aux/ltmain.sh2850# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMbuild-aux/ltmain.sh2875# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMbuild-aux/ltmain.sh3015# Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMbuild-aux/ltmain.sh7938 # Create the object directory.COMMENT
MEDIUMbuild-aux/ltmain.sh10519 # Create the old-style object.COMMENT
MEDIUMbuild-aux/ltmain.sh10539 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMtools/ocaml.py15# This file contains any debugger-agnostic code for debugger plugins.COMMENT
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMbuild-aux/ltmain.sh345# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMbuild-aux/ltmain.sh5631# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMtools/check-parser-uptodate-or-warn.sh22# is not robust to clone/checkout refreshing the files in an arbitraryCOMMENT
MEDIUMtestsuite/tests/backtrace/filter-locations.sh3# to be robust to different inlining choices made by different compiler settings.COMMENT
Redundant / Tautological Comments8 hits · 7 pts
SeverityFileLineSnippetContext
LOWbuild-aux/ltmain.sh379# Check if we can use backslash as IFS='\' separator, and setCOMMENT
LOWbuild-aux/ltmain.sh666# Set func_arith_result to the result of evaluating TERMs.COMMENT
LOWbuild-aux/ltmain.sh690# Set func_basename_result to FILE with everything up to and includingCOMMENT
LOWbuild-aux/ltmain.sh856# Set func_len_result to the length of STRING. STRING may notCOMMENT
LOWbuild-aux/ltmain.sh1074# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.COMMENT
LOWbuild-aux/ltmain.sh4294 # Check if any of the arguments is a wrapper script.COMMENT
LOWbuild-aux/ltmain.sh10242 # Loop over the list of objects to be linked.COMMENT
LOWtools/ci/actions/check-changes-modified.sh35# Check if Changes has been updated in the PRCOMMENT
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtools/ocaml.py220CODE
LOWtools/ocaml.py355CODE
LOWtools/ocaml.py407CODE
LOWtools/gdb_ocamlrun.py91CODE
LOWtestsuite/tests/native-debugger/lldb_test.py13CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtestsuite/tests/native-debugger/gdb_test.py48# Usage:COMMENT
LOWtestsuite/tests/native-debugger/lldb_test.py30# Usage:COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWruntime/weak.c125/* If we are in Phase_sweep_ephe we need to check if the keyCOMMENT
Fake / Example Data1 hit · 2 pts
SeverityFileLineSnippetContext
LOWruntime/intern.c728 /* Use the code pointer from the "placeholder" function */COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtestsuite/tests/native-debugger/lldb_test.py3CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWruntime/caml/weak.h65 If fields are added, don't forget to update weak.ml, [additional_values],CODE