AI Slop Code RIsk Monitor

tesseract-ocr/tesseract

Tesseract Open Source OCR Engine (main repository)

4.5 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tesseract-ocr/tesseract, a C++ project with 76,895 GitHub stars. SynthScan examined 211,643 lines of code across 566 source files, recording 917 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 4.5 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.5
Adjusted Signal
4.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
76.9K
Stars
C++
Language
211.6K
Lines of Code
566
Files
917
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 19.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 909 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

Are imports declared and package/API names verified? 0 finding(s).

Agent Over-Engineering Ratio 0.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 8 finding(s).

PR Review Velocity Impact 19.9/100 · LOW

Which changes need focused human review? 917 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 12LOW 905

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 917 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block891 hits · 891 pts
SeverityFileLineSnippetContext
LOWautogen.sh1#!/bin/shCOMMENT
LOWautogen.sh21# The whole thing is quite complex...COMMENT
LOWautogen.sh101fiCOMMENT
LOWnsis/winpath.cpp1// Copyright (C) 2024 Stefan WeilCOMMENT
LOWunittest/doubleptr.h1// Copyright 2012 Google Inc. All Rights Reserved.COMMENT
LOWunittest/doubleptr.h21COMMENT
LOWunittest/include_gunit.h1// (C) Copyright 2017, Google Inc.COMMENT
LOWunittest/include_gunit.h81# define CHECK_GT(test, value) CHECK((test) > (value))COMMENT
LOWunittest/lstm_test.h1// (C) Copyright 2017, Google Inc.COMMENT
LOWunittest/lstm_test.h21#include "helpers.h"COMMENT
LOWunittest/log.h1///////////////////////////////////////////////////////////////////////COMMENT
LOWunittest/capiexample_c_test.c1///////////////////////////////////////////////////////////////////////COMMENT
LOWunittest/cycletimer.h1// (C) Copyright 2017, Google Inc.COMMENT
LOWunittest/normstrngs_test.h1// (C) Copyright 2017, Google Inc.COMMENT
LOWunittest/util/utf8/unilib.h21// point to exactly the same memory.COMMENT
LOWunittest/util/utf8/unicodetext.h21#include <iterator> // for bidirectional_iterator_tag, etcCOMMENT
LOWunittest/util/utf8/unicodetext.h41// is changed.COMMENT
LOWunittest/util/utf8/unicodetext.h61// UnicodeText tests for interchange-validity, and will substitute aCOMMENT
LOWunittest/util/utf8/unicodetext.h81// validity check. They are used internally and by friend-functionsCOMMENT
LOWunittest/util/utf8/unicodetext.h101//COMMENT
LOWunittest/util/utf8/unicodetext.h321 // interchange-valid, a LOG(WARNING) is issued, and eachCOMMENT
LOWunittest/util/utf8/unicodetext.h401// UnicodeTextRange is a pair of iterators, useful for specifying textCOMMENT
LOWunittest/util/utf8/unicodetext.h421 int byte_capacity) {COMMENT
LOWunittest/util/utf8/unilib_utf8_utils.h21// They are also exported from unilib.h for legacy reasons.COMMENT
LOWunittest/third_party/utf/utf.h41 * utf (7)COMMENT
LOWunittest/third_party/utf/utf.h61COMMENT
LOWunittest/third_party/utf/utf.h81COMMENT
LOWunittest/third_party/utf/utf.h101COMMENT
LOWunittest/third_party/utf/utf.h121// byte terminating a string is considered to be part of the string s.COMMENT
LOWunittest/third_party/utf/utf.h161COMMENT
LOWunittest/fuzzers/oss-fuzz-build.sh1#!/bin/bash -euCOMMENT
LOWunittest/fuzzers/fuzzer-api.cpp1#include <allheaders.h>COMMENT
LOWunittest/syntaxnet/base.h21#include <string>COMMENT
LOWinclude/tesseract/ltrresultiterator.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/ltrresultiterator.h21#include "export.h" // for TESS_APICOMMENT
LOWinclude/tesseract/ltrresultiterator.h41// See tesseract/publictypes.h for the definition of PageIteratorLevel.COMMENT
LOWinclude/tesseract/ltrresultiterator.h81 // object at the given level. Use delete [] to free after use.COMMENT
LOWinclude/tesseract/ltrresultiterator.h181public:COMMENT
LOWinclude/tesseract/ltrresultiterator.h201 // data. If only LSTM traineddata is used the value range is 0.0f - 1.0f. AllCOMMENT
LOWinclude/tesseract/pageiterator.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/pageiterator.h161 * equal to other: 0COMMENT
LOWinclude/tesseract/export.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/export.h21# if defined(TESS_EXPORTS)COMMENT
LOWinclude/tesseract/osdetect.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/renderer.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/publictypes.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/unichar.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/unichar.h81 const char *utf8() const {COMMENT
LOWinclude/tesseract/unichar.h101 // char buf[5];COMMENT
LOWinclude/tesseract/resultiterator.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/baseapi.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/capi.h1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWinclude/tesseract/capi.h21#ifdef __cplusplusCOMMENT
LOWjava/com/google/scrollview/ScrollView.java141 // true or false -> Boolean.COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWdoc/generate_manpages.sh1#!/bin/bashCOMMENT
LOWsrc/svpaint.cpp1// Copyright 2007 Google Inc. All Rights Reserved.COMMENT
LOWsrc/svpaint.cpp21// - A LMB dragging either draws a line, a rectangle or ellipse.COMMENT
LOWsrc/svpaint.cpp221COMMENT
LOWsrc/tesseract.cpp21# include "config_auto.h"COMMENT
831 more matches not shown…
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/check-commit.yml27 # ── Whitelist ──────────────────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml39 # ── Helper: is this author whitelisted? ────────────────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml52 # ── Helper: does the name look like a real person? ─────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml87 # ── Walk commits in this PR ────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml102 # ── Print full author table ────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml127 # ── Summary ───────────────────────────────────────────────────────────COMMENT
MEDIUM.github/workflows/check-commit.yml146 # ── Label-based maintainer override ──────────────────────────────────────COMMENT
MEDIUM.github/workflows/autotools-macos.yml111# ============================================================================================COMMENT
Structural Annotation Overuse7 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/textord/tablerecog.cpp629// NOTE: This function assumes the lists are sorted!COMMENT
LOWsrc/ccmain/resultiterator.cpp146 // Step 1: Scan for and mark European Number sequencesCOMMENT
LOWsrc/ccmain/resultiterator.cpp186 // Step 2: Convert all remaining types to either L or R.COMMENT
LOW⚡src/arch/intsimdmatrix.h43// Step 1: 8x4=32 results are computed,COMMENT
LOW⚡src/arch/intsimdmatrix.h44// Step 2: 8x4=32 again, total 64,COMMENT
LOW⚡src/arch/intsimdmatrix.h45// Step 3: 2x4=8 (since 8x4 is too many, so is 4x4), total 72,COMMENT
LOW⚡src/arch/intsimdmatrix.h46// Step 4: 1x3, total 75.COMMENT
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMsrc/wordrec/lm_pain_points.cpp3// Description: Functions that utilize the knowledge about the propertiesCOMMENT
MEDIUMsrc/wordrec/language_model.h3// Description: Functions that utilize the knowledge about the properties,COMMENT
MEDIUMsrc/wordrec/language_model.cpp3// Description: Functions that utilize the knowledge about the properties,COMMENT
MEDIUMsrc/wordrec/lm_pain_points.h3// Description: Functions that utilize the knowledge about the propertiesCOMMENT
Verbosity Indicators6 hits · 12 pts
SeverityFileLineSnippetContext
LOWsrc/ccmain/resultiterator.cpp146 // Step 1: Scan for and mark European Number sequencesCOMMENT
LOWsrc/ccmain/resultiterator.cpp186 // Step 2: Convert all remaining types to either L or R.COMMENT
LOW⚡src/arch/intsimdmatrix.h43// Step 1: 8x4=32 results are computed,COMMENT
LOW⚡src/arch/intsimdmatrix.h44// Step 2: 8x4=32 again, total 64,COMMENT
LOW⚡src/arch/intsimdmatrix.h45// Step 3: 2x4=8 (since 8x4 is too many, so is 4x4), total 72,COMMENT
LOW⚡src/arch/intsimdmatrix.h46// Step 4: 1x3, total 75.COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinclude/tesseract/ltrresultiterator.h72 // versions, but if new data members are added, don't forget to add them!COMMENT