Repository Analysis

tstack/lnav

Log file navigator

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tstack/lnav, a C++ project with 10,441 GitHub stars. SynthScan v2.0 examined 249,845 lines of code across 653 source files, recording 651 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 2.5 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.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.4K
Stars
C++
Language
249.8K
Lines of Code
653
Files
651
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 1HIGH 0MEDIUM 15LOW 635

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 651 distinct pattern matches across 16 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 Block582 hits · 522 pts
SeverityFileLineSnippetContext
LOWtools/bin2c.c1// bin2c.cCOMMENT
LOWtest/parser_debugger.py1#! /usr/bin/env python3COMMENT
LOWdocs/_config.yml1# Welcome to Jekyll!COMMENT
LOWdocs/_config.yml41 syntax_highlighter: rougeCOMMENT
LOWdocs/_config.yml61# - Gemfile.lockCOMMENT
LOWdocs/screenshots/generate.sh1#!/usr/bin/env bashCOMMENT
LOWdocs/source/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/source/conf.py241# The suffix of source filenames.COMMENT
LOWdocs/source/conf.py261release = '0.14.1'COMMENT
LOWdocs/source/conf.py281# add_function_parentheses = TrueCOMMENT
LOWdocs/source/conf.py301html_theme = 'furo'COMMENT
LOWdocs/source/conf.py321# html_logo = NoneCOMMENT
LOWdocs/source/conf.py341# ],COMMENT
LOWdocs/source/conf.py361COMMENT
LOWdocs/source/conf.py401# Grouping the document tree into LaTeX files. List of tuplesCOMMENT
LOWexample-scripts/log_to_csv.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/tailer/tailer.main.c21 * DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANYCOMMENT
LOWsrc/tailer/tailer.main.py1#!/usr/bin/env python3COMMENT
LOWsrc/spookyhash/SpookyV2.h1//COMMENT
LOWsrc/spookyhash/SpookyV2.h21// Google's CityHash has similar specs to SpookyHash, and CityHash is fasterCOMMENT
LOWsrc/spookyhash/SpookyV2.h41# define INLINE inlineCOMMENT
LOWsrc/spookyhash/SpookyV2.h121 // Final: compute the hash for the current SpookyHash stateCOMMENT
LOWsrc/spookyhash/SpookyV2.h141 //COMMENT
LOWsrc/spookyhash/SpookyV2.h181 s1 ^= s9; s10 ^= s11; s11 = Rot64(s11,46); s10 += s0;COMMENT
LOWsrc/spookyhash/SpookyV2.h241COMMENT
LOWsrc/spookyhash/SpookyV2.cpp1// Spooky HashCOMMENT
LOWsrc/fmtlib/fmt/ostream.h1// Formatting library for C++ - std::ostream supportCOMMENT
LOWsrc/fmtlib/fmt/format-inl.h1// Formatting library for C++ - implementationCOMMENT
LOWsrc/fmtlib/fmt/format-inl.h201} div_small_pow10_infos[] = {{10, 16}, {100, 16}};COMMENT
LOWsrc/fmtlib/fmt/format-inl.h1281 // 29711844 * 2^-82COMMENT
LOWsrc/fmtlib/fmt/ranges.h1// Formatting library for C++ - experimental range supportCOMMENT
LOWsrc/fmtlib/fmt/xchar.h1// Formatting library for C++ - optional wchar_t and exotic character supportCOMMENT
LOWsrc/fmtlib/fmt/core.h1// Formatting library for C++ - the core API for char/UTF-8COMMENT
LOWsrc/fmtlib/fmt/core.h21#define FMT_VERSION 100101COMMENT
LOWsrc/fmtlib/fmt/core.h41# define FMT_GCC_PRAGMA(arg)COMMENT
LOWsrc/fmtlib/fmt/core.h61#ifdef _MSVC_LANGCOMMENT
LOWsrc/fmtlib/fmt/core.h81#elseCOMMENT
LOWsrc/fmtlib/fmt/core.h101#endifCOMMENT
LOWsrc/fmtlib/fmt/core.h121# endifCOMMENT
LOWsrc/fmtlib/fmt/core.h141COMMENT
LOWsrc/fmtlib/fmt/core.h161# elseCOMMENT
LOWsrc/fmtlib/fmt/core.h181COMMENT
LOWsrc/fmtlib/fmt/core.h201#ifndef FMT_APICOMMENT
LOWsrc/fmtlib/fmt/core.h221 (!defined(__apple_build_version__) || \COMMENT
LOWsrc/fmtlib/fmt/core.h281// shorter symbols: https://godbolt.org/z/sWw4vP. Extra parentheses are neededCOMMENT
LOWsrc/fmtlib/fmt/core.h2921#endifCOMMENT
LOWsrc/fmtlib/fmt/locale.h1#include "xchar.h"COMMENT
LOWsrc/fmtlib/fmt/chrono.h1// Formatting library for C++ - chrono supportCOMMENT
LOWsrc/fmtlib/fmt/chrono.h21#include "format.h"COMMENT
LOWsrc/fmtlib/fmt/chrono.h41#endifCOMMENT
LOWsrc/fmtlib/fmt/chrono.h541 a | (b << 24) | (static_cast<unsigned long long>(c) << 48);COMMENT
LOWsrc/fmtlib/fmt/os.h1// Formatting library for C++ - optional OS-specific functionalityCOMMENT
LOWsrc/fmtlib/fmt/os.h21COMMENT
LOWsrc/fmtlib/fmt/os.h41# define FMT_POSIX(call) _##callCOMMENT
LOWsrc/fmtlib/fmt/args.h1// Formatting library for C++ - dynamic argument listsCOMMENT
LOWsrc/fmtlib/fmt/printf.h1// Formatting library for C++ - legacy printf implementationCOMMENT
LOWsrc/fmtlib/fmt/format.h41#include <memory> // std::uninitialized_copyCOMMENT
LOWsrc/fmtlib/fmt/format.h61#elif FMT_GCC_VERSION >= 700 && \COMMENT
LOWsrc/fmtlib/fmt/format.h81COMMENT
LOWsrc/fmtlib/fmt/format.h101COMMENT
522 more matches not shown…
Decorative Section Separators5 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h3921// ╭──────────────────────────╮COMMENT
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h3923// ╭──────────────────────this is the secondary header──────╮COMMENT
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h3932// ╰────────────────────────────────────here's the footer───╯COMMENT
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h4004// ╭───────────────────╮COMMENT
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h4019//╰────────────────────────press q to exit (there is sartrev("no exit"))─╯COMMENT
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMsrc/fmtlib/fmt/format.h3503 // Compilers are not aware of how to leverage the maximum value ofCOMMENT
MEDIUMsrc/third-party/md4c/md4c.c2522#define MD_MARK_OPENER 0x04 /* Definitely opener. */COMMENT
MEDIUMsrc/third-party/md4c/md4c.c2523#define MD_MARK_CLOSER 0x08 /* Definitely closer. */COMMENT
MEDIUMsrc/third-party/notcurses/include/notcurses/notcurses.h1890// Essentially, the kept material does not move. It serves to anchor theCOMMENT
MEDIUMsrc/third-party/notcurses/src/lib/render.c716 // we're also in that case working with hopefully more robust terminals.COMMENT
MEDIUMsrc/third-party/notcurses/src/lib/render.c752 // we're also in that case working with hopefully more robust terminals.COMMENT
Fake / Example Data10 hits · 12 pts
SeverityFileLineSnippetContext
LOWdemo/loggen.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
LOWdemo/loggen.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
LOWtest/textfile_0.md45Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtest/textfile_0.md45Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtest/textfile_0.md47<span style="white-space: nowrap">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididCODE
LOWtest/textfile_0.md47<span style="white-space: nowrap">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididCODE
LOWrelease/loggen.py62PATH_COMPS = "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolorCODE
LOWrelease/loggen.py62PATH_COMPS = "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolorCODE
LOWrelease/loggen2.py57PATH_COMPS = "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolorCODE
LOWrelease/loggen2.py57PATH_COMPS = "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolorCODE
Unused Imports10 hits · 10 pts
SeverityFileLineSnippetContext
LOWtest/parser_debugger.py31CODE
LOWrelease/loggen.py4CODE
LOWrelease/loggen2.py4CODE
LOWrelease/loggen2.py7CODE
LOWdocs/screenshots/animate.py5CODE
LOWdocs/screenshots/animate.py8CODE
LOWdocs/screenshots/render.py12CODE
LOWdocs/source/conf.py32CODE
LOWdocs/source/conf.py32CODE
LOWdocs/source/conf.py32CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALsrc/formats/java_log.json192 "line": "[2022-06-01T13:37:36,371] WARN574240[Thread-35] - com.vmware.observability.observer.Observer.exCODE
Excessive Try-Catch Wrapping8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/log2src/python/log_example.py26 except Exception:CODE
LOWdocs/screenshots/render.py184 except Exception as exc:CODE
LOWcrashd/app.py130 except Exception as e:STRING
MEDIUMcrashd/app.py127def remove_zip(response):CODE
LOWsrc/tailer/tailer.main.py259 except Exception as e:CODE
LOWsrc/tailer/tailer.main.py483 except Exception:CODE
LOWsrc/tailer/tailer.main.py502 except Exception as e:CODE
LOWsrc/tailer/tailer.main.py634 except Exception:CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/parser_debugger.py97CODE
LOWdocs/screenshots/render.py342CODE
LOWdocs/screenshots/render.py56CODE
LOWsrc/format2csv.py7CODE
LOWsrc/tailer/tailer.main.py97CODE
LOWsrc/tailer/tailer.main.py220CODE
LOWsrc/tailer/tailer.main.py486CODE
LOWsrc/tailer/tailer.main.py626CODE
Self-Referential Comments3 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_sql.sh698# Create a dummy database for the next couple of tests to consume.COMMENT
MEDIUMdocs/source/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMcrashd/app.py116 # Create a new zip fileSTRING
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/fmtlib/fmt/format-inl.h1238 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWsrc/fmtlib/fmt/format-inl.h1293 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWsrc/fmtlib/fmt/format-inl.h1325 // Step 3: Find the significand with the smaller divisor.COMMENT
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/fmtlib/fmt/format-inl.h1238 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOWsrc/fmtlib/fmt/format-inl.h1293 // Step 2: Try larger divisor; remove trailing zeros if necessary.COMMENT
LOWsrc/fmtlib/fmt/format-inl.h1325 // Step 3: Find the significand with the smaller divisor.COMMENT
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/tailer/tailer.main.py184 def set_client_path_state_error(self, cps: ClientPathState, op: str, error_msg: Optional[str]):CODE
LOWsrc/tailer/tailer.main.py486 def handle_load_preview_request(self, path: str, preview_id: int):CODE
LOWsrc/tailer/tailer.main.py557 def handle_complete_path_request(self, path: str):CODE
LOWsrc/static-files/assets/js/lnav-markdown-magic.js1function updateElementFromResponse(element, result) {CODE
Redundant / Tautological Comments5 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrashd/app.py49 # Check if header 'lnav-secret' exists and has the correct valueSTRING
LOWcrashd/app.py51 # Check if content length is providedSTRING
LOWcrashd/app.py58 # Check if content length is zeroSTRING
LOWcrashd/app.py62 # Check if content length exceeds 10MBSTRING
LOWcrashd/app.py105 # Check if header 'lnav-secret' exists and has the correct value for downloadingSTRING
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocs/screenshots/generate.sh15# Usage:COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/screenshots/render.py506CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/lnavlexer.py2__all__ = ['LnavCommandLexer']CODE