AI Slop Code Risk Monitor

google/brotli

SlopCodeMonitor badge for google/brotli Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Brotli compression format

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for google/brotli, a TypeScript project with 15,070 GitHub stars. SynthScan examined 112,352 lines of code across 275 source files, recording 136 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
15.1K
Stars
TypeScript
Language
112.4K
Lines of Code
275
Files
136
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.7/100 · LOW

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

Agent Over-Engineering Ratio 3.4/100 · LOW

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

PR Review Velocity Impact 7.3/100 · LOW

Which changes need focused human review? 136 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 1HIGH 2MEDIUM 8LOW 125

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 136 distinct pattern matches across 11 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 Block72 hits · 72 pts
SeverityFileLineSnippetContext
LOWresearch/brotli_decoder.c1/* Copyright 2018 Google Inc. All Rights Reserved.COMMENT
LOWresearch/brotlidump.py1341 #chop it up, and check if the colon is properly placedCOMMENT
LOWpython/_brotli.c1#include <assert.h>COMMENT
LOWscripts/dictionary/step-04-generate-java-literals.py1# Step 04 - generate Java literals.COMMENT
LOW.github/workflows/fuzz.yml41 # fuzz-seconds: 600COMMENT
LOW.github/workflows/scorecard.yml41 with:COMMENT
LOWcsharp/org/brotli/dec/BrotliInputStream.cs21 private int remainingBufferBytes;COMMENT
LOWcsharp/org/brotli/dec/BrotliInputStream.cs41 /// <exception cref="System.IO.IOException">in case of corrupted data or source stream problems</exception>COMMENT
LOWcsharp/org/brotli/dec/BrotliInputStream.cs61 /// </param>COMMENT
LOWcsharp/org/brotli/dec/Dictionary.cs1/* Copyright 2015 Google Inc. All Rights Reserved.COMMENT
LOWcsharp/org/brotli/dec/Context.cs41 // UTF8 continuation byte range.COMMENT
LOWc/tools/brotli.c21#include <sys/types.h>COMMENT
LOWc/tools/brotli.c41#define S_IWUSR S_IWRITECOMMENT
LOWc/tools/brotli.c81#define HAVE_UTIMENSAT 1COMMENT
LOWc/include/brotli/port.h21#define BROTLI_GNUC_VERSION \COMMENT
LOWc/include/brotli/port.h41 BROTLI_MAKE_VERSION((_MSC_FULL_VER / 1000000), \COMMENT
LOWc/include/brotli/port.h61COMMENT
LOWc/include/brotli/port.h81#define BROTLI_PGI_VERSION \COMMENT
LOWc/include/brotli/port.h121#endifCOMMENT
LOWc/include/brotli/port.h141COMMENT
LOWc/include/brotli/port.h161#if defined(__TI_COMPILER_VERSION__)COMMENT
LOWc/include/brotli/port.h181#elseCOMMENT
LOWc/include/brotli/port.h201#elseCOMMENT
LOWc/include/brotli/port.h221#if defined(__has_feature)COMMENT
LOWc/include/brotli/port.h261#define BROTLI_ARRAY_PARAM(name) (name)COMMENT
LOWc/include/brotli/port.h281#define BROTLI_ENC_API __declspec(dllexport)COMMENT
LOWc/enc/backward_references_hq.c1/* Copyright 2013 Google Inc. All Rights Reserved.COMMENT
LOWc/enc/block_splitter.c81static BROTLI_INLINE double BitCost(size_t count) {COMMENT
LOWc/enc/hash_longest_match_quickly_inc.h261}COMMENT
LOWc/enc/encode.c1/* Copyright 2013 Google Inc. All Rights Reserved.COMMENT
LOWc/enc/encode.c21#include "compound_dictionary.h"COMMENT
LOWc/enc/encoder_dict.c1/* Copyright 2017 Google Inc. All Rights Reserved.COMMENT
LOWc/enc/cluster.c41#undef FNCOMMENT
LOWc/enc/backward_references.c141#define EXPAND_CAT(a, b) CAT(a, b)COMMENT
LOWc/enc/backward_references.c161#include "backward_references_inc.h"COMMENT
LOWc/enc/backward_references.c181#include "backward_references_inc.h"COMMENT
LOWc/enc/backward_references.c201#include "backward_references_inc.h"COMMENT
LOWc/enc/backward_references.c221/* NOLINTNEXTLINE(build/include) */COMMENT
LOWc/enc/backward_references.c241#include "backward_references_inc.h"COMMENT
LOWc/enc/backward_references.c261#include "backward_references_inc.h"COMMENT
LOWc/enc/histogram.h21COMMENT
LOWc/enc/memory.h21#endifCOMMENT
LOWc/enc/bit_cost.c41 }COMMENT
LOWc/enc/state.h1/* Copyright 2022 Google Inc. All Rights Reserved.COMMENT
LOWc/enc/hash.h241COMMENT
LOWc/enc/hash.h261#define HASH_LEN 5COMMENT
LOWc/enc/hash.h281#include "hash_longest_match_quickly_inc.h" /* NOLINT(build/include) */COMMENT
LOWc/enc/hash.h301#define HASHER() H59COMMENT
LOWc/enc/hash.h321#define HASHER() H41COMMENT
LOWc/enc/hash.h341#define BUCKET_BITS 20COMMENT
LOWc/enc/hash.h361#undef HASHERCOMMENT
LOWc/enc/hash.h381#define HASHER() H55COMMENT
LOWc/common/static_init.h21#define THIRD_PARTY_BROTLI_COMMON_STATIC_INIT_H_COMMENT
LOWc/common/static_init.h41 (BROTLI_STATIC_INIT != BROTLI_STATIC_INIT_EARLY) && \COMMENT
LOWc/common/version.h41#endifCOMMENT
LOWc/common/platform.h21 * BROTLI_ENABLE_DUMP overrides default "dump" behaviourCOMMENT
LOWc/common/platform.h121#elif BROTLI_MSVC_VERSION_CHECK(12, 0, 0)COMMENT
LOWc/common/platform.h141#elif BROTLI_PGI_VERSION_CHECK(10, 2, 0)COMMENT
LOWc/common/platform.h161#define BROTLI_ALIGNED(N) __attribute__((aligned(N)))COMMENT
LOWc/common/platform.h181#endif /* ARMv8 */COMMENT
12 more matches not shown…
Decorative Section Separators8 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM⚡csharp/transpile.sh25#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh33#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh42#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh49#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh64#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh73#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh83#-------------------------------------------------------------------------------COMMENT
MEDIUM⚡csharp/transpile.sh90#-------------------------------------------------------------------------------COMMENT
Hyper-Verbose Identifiers34 hits · 36 pts
SeverityFileLineSnippetContext
LOWpython/tests/decompressor_test.py37def test_decompress_with_limit(compressed_name, original_name):CODE
LOW⚡python/tests/decompressor_test.py114def _thread_concurrent_process(decompressor, results):CODE
LOW⚡python/tests/decompressor_test.py122def _thread_concurrent_can_accept_more_data(decompressor, results):CODE
LOW⚡python/tests/decompressor_test.py130def _thread_concurrent_is_finished(decompressor, results):CODE
LOWpython/tests/compressor_test.py45def test_multiple_process_and_flush(quality, text_name):CODE
LOWpython/tests/compressor_test.py97def _thread_concurrent_process(compressor, results):CODE
LOWpython/tests/compressor_test.py113def _thread_concurrent_finish(compressor, results):CODE
LOWjs/decode.ts39function calculateDistanceAlphabetSize(npostfix: number, ndirect: number, maxndistbits: number): number {CODE
LOWjs/decode.ts42function calculateDistanceAlphabetLimit(s: State, maxDistance: number, npostfix: number, ndirect: number): number {CODE
LOWjs/decode.ts277function inverseMoveToFrontTransform(v: Int8Array, vLen: number): void {CODE
LOWjs/decode.ts581function decodeDistanceBlockSwitch(s: State): void {CODE
LOWjs/decode.ts585function maybeReallocateRingBuffer(s: State): void {CODE
LOWjs/decode.ts704function readMetablockHuffmanCodesAndContextMaps(s: State): number {CODE
LOWjs/decode.ts856function huffmanTreeGroupAllocSize(alphabetSizeLimit: number, n: number): number {CODE
LOWjs/decode.ts921function initializeCompoundDictionary(s: State): void {CODE
LOWjs/decode.ts939function initializeCompoundDictionaryCopy(s: State, address: number, length: number): number {CODE
LOWjs/decode.ts959function copyFromCompoundDictionary(s: State, fence: number): number {CODE
LOWjs/decode.js67 function calculateDistanceAlphabetSize(npostfix, ndirect, maxndistbits) {CODE
LOWjs/decode.js77 function calculateDistanceAlphabetLimit(s, maxDistance, npostfix, ndirect) {CODE
LOWjs/decode.js371 function inverseMoveToFrontTransform(v, vLen) {CODE
LOWjs/decode.js736 function decodeDistanceBlockSwitch(s) {CODE
LOWjs/decode.js744 function maybeReallocateRingBuffer(s) {CODE
LOWjs/decode.js882 function readMetablockHuffmanCodesAndContextMaps(s) {CODE
LOWjs/decode.js1047 function huffmanTreeGroupAllocSize(alphabetSizeLimit, n) {CODE
LOWjs/decode.js1133 function initializeCompoundDictionary(s) {CODE
LOWjs/decode.js1157 function initializeCompoundDictionaryCopy(s, address, length) {CODE
LOWjs/decode.js1182 function copyFromCompoundDictionary(s, fence) {CODE
LOWtests/regression/t01/copystat_regression_test.py98 def test_modes_propagate_on_compress_and_decompress(self):CODE
LOWtests/regression/t01/copystat_regression_test.py121 def test_special_mode_bits_are_masked(self):CODE
LOWtests/regression/t01/copystat_regression_test.py138 def test_no_copy_stat_flag_suppresses_mode_copy(self):CODE
LOWtests/regression/t01/copystat_regression_test.py168 def test_stdin_input_has_no_path_to_copy_from(self):CODE
LOWtests/regression/t01/copystat_regression_test.py178 def test_stdout_path_skips_copystat(self):CODE
LOWtests/regression/t01/copystat_regression_test.py214 def test_fclose_swap_does_not_redirect_copystat(self):CODE
LOWtests/regression/t01/copystat_regression_test.py224 def test_fclose_swap_with_no_copy_stat_leaves_target_unchanged(self):CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALcsharp/org/brotli/dec/Dictionary.cs61 string[] chunks = new string[] { Org.Brotli.Dec.Dictionary.DataHolder0.GetData(), Org.Brotli.Dec.Dictionary.DataHoldCODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWresearch/brotlidump.py25CODE
LOWresearch/brotlidump.py1217CODE
LOWresearch/brotlidump.py1390CODE
LOWresearch/brotlidump.py1463CODE
LOWresearch/brotlidump.py1786CODE
LOWpython/tests/compressor_test.py59CODE
LOWtests/regression/t01/copystat_regression_test.py186CODE
LOWscripts/dictionary/step-04-generate-java-literals.py50CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/dictionary/step-01-download-rfc.py1# Step 01 - download RFC7932.COMMENT
LOWscripts/dictionary/step-04-generate-java-literals.py1# Step 04 - generate Java literals.COMMENT
LOWscripts/dictionary/step-02-rfc-to-bin.py1# Step 02 - parse RFC.COMMENT
LOWscripts/dictionary/step-03-validate-bin.py1# Step 03 - validate raw dictionary file.COMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHresearch/brotlidump.py2366except ImportError: passCODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpython/brotli.py26Compress a byte string. Args: string (bytes): The input data. mode (int, optional): The compression modSTRING
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWresearch/brotlidump.py12CODE
LOWresearch/brotlidump.py13CODE
LOWresearch/brotlidump.py13CODE
LOWresearch/brotlidump.py14CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/cli_test.sh16 echo "Lorem ipsum dolor sit amet. " > ipsum.origCODE
LOWtests/cli_test.sh16 echo "Lorem ipsum dolor sit amet. " > ipsum.origCODE
Slop Phrases1 hit · 0 pts
SeverityFileLineSnippetContext
LOWresearch/brotlidump.py352 """Don't forget to set either alphabetSize or decodeTableSTRING