Repository Analysis

gabime/spdlog

Fast C++ logging library.

9.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gabime/spdlog, a C++ project with 29,201 GitHub stars. SynthScan v2.0 examined 34,168 lines of code across 163 source files, recording 222 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 9.3 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).

9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-07-11
Last Push
29.2K
Stars
C++
Language
34.2K
Lines of Code
163
Files
222
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 45LOW 177

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 222 distinct pattern matches across 7 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 Block166 hits · 166 pts
SeverityFileLineSnippetContext
LOWbench/async_bench.cpp1//COMMENT
LOWbench/bench.cpp1//COMMENT
LOWbench/latency.cpp1//COMMENT
LOWexample/example.cpp141 [](const spdlog::details::log_msg & /*msg*/) {COMMENT
LOWexample/example.cpp161void async_example() {COMMENT
LOWexample/example.cpp181// {:s} - don't separate each byte with space.COMMENT
LOWinclude/spdlog/pattern_formatter-inl.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/pattern_formatter-inl.h21#include <algorithm>COMMENT
LOWinclude/spdlog/version.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/spdlog.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/spdlog.h41//COMMENT
LOWinclude/spdlog/spdlog.h121// The default logger object can be accessed using the spdlog::default_logger():COMMENT
LOWinclude/spdlog/spdlog.h281// define SPDLOG_ACTIVE_LEVEL to one of those (before including spdlog.h):COMMENT
LOWinclude/spdlog/spdlog.h301 SPDLOG_LOGGER_CALL(logger, SPDLOG_NAMESPACE::level::trace, __VA_ARGS__)COMMENT
LOWinclude/spdlog/spdlog.h321#define SPDLOG_LOGGER_INFO(logger, ...) (void)0COMMENT
LOWinclude/spdlog/spdlog.h341#if SPDLOG_ACTIVE_LEVEL <= SPDLOG_LEVEL_CRITICALCOMMENT
LOWinclude/spdlog/logger-inl.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/common-inl.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/namespace.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/namespace.h21// #define SPDLOG_NAMESPACE_END }COMMENT
LOWinclude/spdlog/async_logger.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/tweakme.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/tweakme.h21COMMENT
LOWinclude/spdlog/tweakme.h41//COMMENT
LOWinclude/spdlog/tweakme.h61COMMENT
LOWinclude/spdlog/tweakme.h81// #define SPDLOG_FMT_EXTERNALCOMMENT
LOWinclude/spdlog/tweakme.h101COMMENT
LOWinclude/spdlog/tweakme.h121///////////////////////////////////////////////////////////////////////////////COMMENT
LOWinclude/spdlog/tweakme.h141// Defaults to __FUNCTION__ (should work on all compilers) if not defined.COMMENT
LOWinclude/spdlog/async.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/common.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/common.h21#if __cpp_lib_format >= 202207LCOMMENT
LOWinclude/spdlog/common.h41#define SPDLOG_APICOMMENT
LOWinclude/spdlog/common.h61#define SPDLOG_FMT_STRING(format_string) format_stringCOMMENT
LOWinclude/spdlog/common.h81#if FMT_USE_CONSTEXPRCOMMENT
LOWinclude/spdlog/common.h101#endifCOMMENT
LOWinclude/spdlog/stopwatch.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/pattern_formatter.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/logger.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/mdc.h1// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.COMMENT
LOWinclude/spdlog/fmt/ranges.h1//COMMENT
LOWinclude/spdlog/fmt/ranges.h21#include <fmt/ranges.h>COMMENT
LOWinclude/spdlog/fmt/xchar.h1//COMMENT
LOWinclude/spdlog/fmt/xchar.h21#include <fmt/xchar.h>COMMENT
LOWinclude/spdlog/fmt/chrono.h1//COMMENT
LOWinclude/spdlog/fmt/chrono.h21#include <fmt/chrono.h>COMMENT
LOWinclude/spdlog/fmt/bin_to_hex.h1//COMMENT
LOWinclude/spdlog/fmt/bin_to_hex.h21//COMMENT
LOWinclude/spdlog/fmt/fmt.h1//COMMENT
LOWinclude/spdlog/fmt/fmt.h21#define FMT_USE_WINDOWS_H 0COMMENT
LOWinclude/spdlog/fmt/compile.h1//COMMENT
LOWinclude/spdlog/fmt/compile.h21#include <fmt/compile.h>COMMENT
LOWinclude/spdlog/fmt/ostr.h1//COMMENT
LOWinclude/spdlog/fmt/ostr.h21#include <fmt/ostream.h>COMMENT
LOWinclude/spdlog/fmt/std.h1//COMMENT
LOWinclude/spdlog/fmt/std.h21#elseCOMMENT
LOWinclude/spdlog/fmt/bundled/ostream.h1// Formatting library for C++ - std::ostream supportCOMMENT
LOWinclude/spdlog/fmt/bundled/ostream.h21#endifCOMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h1// Formatting library for C++ - implementationCOMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h21#endifCOMMENT
106 more matches not shown…
Decorative Section Separators44 hits · 135 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt18# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt20# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt29# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt31# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt218# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt220# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt229# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt231# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt267# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt269# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt275# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt277# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt5# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt7# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt48# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt50# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt162# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt164# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt251# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt253# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt313# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt315# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt327# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt329# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt350# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt352# ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt363 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt365 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt379 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt381 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt411 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt413 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt424 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMCMakeLists.txt426 # ---------------------------------------------------------------------------------------COMMENT
MEDIUMexample/CMakeLists.txt11# ---------------------------------------------------------------------------------------COMMENT
MEDIUMexample/CMakeLists.txt13# ---------------------------------------------------------------------------------------COMMENT
MEDIUMexample/CMakeLists.txt17# ---------------------------------------------------------------------------------------COMMENT
MEDIUMexample/CMakeLists.txt19# ---------------------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml9 # -----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml11 # -----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml64 # -----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml66 # -----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml111 # -----------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/linux.yml113 # -----------------------------------------------------------------------COMMENT
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinclude/spdlog/fmt/bundled/format-inl.h1259 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h1314 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h1346 // Step 3: Find the significand with the smaller divisor.COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWinclude/spdlog/fmt/bundled/format-inl.h1259 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h1314 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWinclude/spdlog/fmt/bundled/format-inl.h1346 // Step 3: Find the significand with the smaller divisor.COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWbench/bench.cpp223 const char *msg = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pharetraCODE
LOWbench/bench.cpp223 const char *msg = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pharetraCODE
LOWbench/latency.cpp21 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pharetra metus cursus "CODE
LOWbench/latency.cpp21 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pharetra metus cursus "CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMinclude/spdlog/fmt/bundled/format.h3359 // Compilers are not aware of how to leverage the maximum value ofCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinclude/spdlog/mdc.h19// Usage example:COMMENT