AI Slop Code Risk Monitor

lz4/lz4

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

Extremely Fast Compression algorithm

2.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for lz4/lz4, a C project with 12,193 GitHub stars. SynthScan examined 45,401 lines of code across 145 source files, recording 100 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.5
Adjusted Signal
2.5
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
12.2K
Stars
C
Language
45.4K
Lines of Code
145
Files
100
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 6.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.4/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 11.5/100 · LOW

Which changes need focused human review? 100 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 1MEDIUM 3LOW 96

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 100 distinct pattern matches across 7 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 Block61 hits · 61 pts
SeverityFileLineSnippetContext
LOWtests/bench/test-lz4-speed.py1#!/usr/bin/env python3COMMENT
LOWtests/bench/fullbench.c41#include <sys/stat.h> /* stat64 */COMMENT
LOWtests/unit/unittest_lz4frame.c21 You can contact the author at :COMMENT
LOWtests/unit/unittest.h61# define UT_PRINTF(f, a)COMMENT
LOWtests/unit/unittest.h101# define UT_CONSTRUCTOR(f) \COMMENT
LOWtests/unit/unittest_lz4.c21 You can contact the author at :COMMENT
LOWtests/tools/checkFrame.c41#include <string.h> /* strcmp */COMMENT
LOWtests/compat/check_stdvars.sh1#!/usr/bin/env shCOMMENT
LOWtests/compat/abiTest.c21#include <stdlib.h> /* malloc, free, exit */COMMENT
LOWtests/compat/freestanding.c1// Basic test for LZ4_FREESTANDINGCOMMENT
LOWtests/fuzz/fuzzer.c41# undef _GNU_SOURCE /* in case it's already defined */COMMENT
LOWtests/fuzz/fuzzer.c61#define LZ4_STATIC_LINKING_ONLYCOMMENT
LOWtests/fuzz/frametest.c41#include <string.h> /* strcmp */COMMENT
LOWprograms/lz4io.c41# define _DEFAULT_SOURCE /* madvise(), MADV_* : see LZ4IO_releaseInput() */COMMENT
LOWprograms/lz4io.c61#include "lz4io.h"COMMENT
LOWprograms/lz4io.c81# include <unistd.h> /* write, _exit */COMMENT
LOWprograms/lz4io.c101COMMENT
LOWprograms/util.h21#define UTIL_H_MODULECOMMENT
LOWprograms/util.h41# include <sys/utime.h> /* utime */COMMENT
LOWprograms/util.h101******************************************/COMMENT
LOWprograms/util.h121# endifCOMMENT
LOWprograms/util.h141# define UTIL_STAT_MODE_ISREG(st_mode) ((st_mode) & S_IFREG)COMMENT
LOWprograms/util.h161***************************************/COMMENT
LOWprograms/lz4cli.c41COMMENT
LOWprograms/lz4cli.c61* ConstantsCOMMENT
LOWprograms/bench.c41#include <string.h> /* memset */COMMENT
LOWprograms/bench.c61***************************************/COMMENT
LOWprograms/platform.h61/* *********************************************************COMMENT
LOWprograms/platform.h81* PLATFORM_POSIX_VERSION >= 1 is equal to found _POSIX_VERSIONCOMMENT
LOWprograms/platform.h101# endifCOMMENT
LOWprograms/platform.h141# define SET_SPARSE_FILE_MODE(file) { DWORD dw; DeviceIoControl((HANDLE) _get_osfhandle(_fileno(file)), FSCTL_SET_SPACOMMENT
LOWexamples/blockStreaming_lineByLine.c1// LZ4 streaming API example : line-by-line logfile compressionCOMMENT
LOWexamples/bench_functions.c61COMMENT
LOWexamples/bench_functions.c161 run_screaming("Couldn't run LZ4_compress_fast_extState()... error code received is in exit code.", rv);COMMENT
LOWexamples/blockStreaming_doubleBuffer.c1// LZ4 streaming API example : double bufferCOMMENT
LOWexamples/dictionaryRandomAccess.c1// LZ4 API example : Dictionary Random AccessCOMMENT
LOWlib/xxhash.h121 * Note that no change is required within the calling program as long as it includes `xxhash.h` :COMMENT
LOWlib/lz4frame.c61#ifndef LZ4F_HEAPMODECOMMENT
LOWlib/lz4frame.c261}COMMENT
LOWlib/lz4frame.c1461}COMMENT
LOWlib/lz4frame.c1481# include <windows.h>COMMENT
LOWlib/lz4frame.c1501# define LZ4F_mutex_destroy(m) pthread_mutex_destroy(m)COMMENT
LOWlib/lz4.h81* Export parametersCOMMENT
LOWlib/lz4.h121# error "LZ4_FREESTANDING requires macro 'LZ4_memcpy'."COMMENT
LOWlib/lz4.h161#ifndef LZ4_MEMORY_USAGECOMMENT
LOWlib/lz4.h801 * Another method is to define LZ4_DISABLE_DEPRECATE_WARNINGSCOMMENT
LOWlib/xxhash.c121* Compiler Specific OptionsCOMMENT
LOWlib/xxhash.c181#endif /* XXH_FORCE_DIRECT_MEMORY_ACCESS */COMMENT
LOWlib/lz4.c101COMMENT
LOWlib/lz4.c121#ifndef LZ4_FORCE_INLINECOMMENT
LOWlib/lz4.c161 */COMMENT
LOWlib/lz4.c221# define ALLOC_AND_ZERO(s) LZ4_calloc(1,s)COMMENT
LOWlib/lz4.c241**************************************/COMMENT
LOWlib/lz4.c261#define ML_MASK ((1U<<ML_BITS)-1)COMMENT
LOWlib/lz4.c341 * environments, the compiler can't assume the implementation of memcpy() isCOMMENT
LOWlib/lz4frame.h81#elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)COMMENT
LOWdoc/lz4_manual.html601# if defined (__cplusplus) && (__cplusplus >= 201402) </b>/* C++14 or greater */<b>COMMENT
LOWossfuzz/fuzz_helpers.h21#include <stdio.h>COMMENT
LOWossfuzz/fuzz_helpers.h41 */COMMENT
LOW.circleci/config.yml1# This configuration was automatically generated from a CircleCI 1.0 config.COMMENT
1 more matches not shown…
Fake / Example Data26 hits · 32 pts
SeverityFileLineSnippetContext
LOWtests/unit/unittest_lz4hc.c750 current[i] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[i % 27];CODE
LOWtests/unit/unittest_lz4hc.c750 current[i] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[i % 27];CODE
LOWtests/unit/unittest_lz4.c869 sample[n] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[n % 27];CODE
LOWtests/unit/unittest_lz4.c869 sample[n] = ((seed >> 16) % 8 == 0) ? (char)(seed >> 8) : "lorem ipsum dolor sit amet "[n % 27];CODE
LOWtests/tools/loremOut.h2 loremOut.h - lorem ipsum generator to stdoutCODE
LOWtests/tools/loremOut.h28 * Generate @size bytes of compressible data using lorem ipsum generator into stdout.COMMENT
LOWtests/tools/loremOut.c2 lorem.c - lorem ipsum generator to stdoutCODE
LOWtests/tools/loremOut.c27 * Generates a stream of Lorem ipsum paragraphs to stdout,COMMENT
LOWtests/compat/cmake/decompress-partial.c6 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n"CODE
LOWtests/compat/cmake/decompress-partial.c6 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\n"CODE
LOWtests/compat/cmake/decompress-partial.c19 "porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,\n"CODE
LOWtests/compat/cmake/decompress-partial.c19 "porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur,\n"CODE
LOWprograms/lorem.h2 lorem.h - lorem ipsum generatorCODE
LOWprograms/lorem.h31 * Generate @size bytes of compressible data using lorem ipsum generatorCOMMENT
LOWprograms/README.md60When no file is provided, uses an internal Lorem Ipsum generator instead.CODE
LOWprograms/lorem.c2 lorem.c - lorem ipsum generatorCODE
LOW⚡programs/lorem.c28 * This is a very simple lorem ipsum generatorCOMMENT
LOW⚡programs/lorem.c35 * The resulting compression / ratio curve of the lorem ipsum generatorCOMMENT
LOW⚡programs/lorem.c40 * The compression ratio achievable on the generated lorem ipsumCOMMENT
LOWprograms/lorem.c320/* It's "common" for lorem ipsum generators to start with the same firstCOMMENT
LOWprograms/bench.c666 "Lorem ipsum",CODE
LOWexamples/bench_functions.c238 * Test suite A) Uses generic Lorem Ipsum text which should be generally compressible insomuch as basic human text isCOMMENT
LOWexamples/bench_functions.c253 const char src[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus purus et risus vulputate, eCODE
LOWexamples/bench_functions.c253 const char src[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed luctus purus et risus vulputate, eCODE
LOWexamples/simple_buffer.c41 const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat.";CODE
LOWexamples/simple_buffer.c41 const char* const src = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor site amat.";CODE
Excessive Try-Catch Wrapping5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/bench/test-lz4-speed.py71 except Exception:CODE
LOWtests/bench/test-lz4-speed.py343 except Exception as e:CODE
MEDIUMtests/bench/test-lz4-speed.py68def does_command_exist(command):CODE
MEDIUMtests/compat/test-lz4-abi.py48 print('Error Code:', s.poll())CODE
MEDIUMtests/compat/test-lz4-versions.py53 print('Error Code:', s.poll())CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/bench/test-lz4-speed.py209 'make clean && CPPFLAGS="-DLZ4_GIT_COMMIT=%s" make -C programs lz4 lz4c32 ' % version)CODE
Unused Imports4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/bench/test-lz4-speed.py18CODE
LOWtests/compat/test-lz4-abi.py11CODE
LOWtests/compat/test-lz4-abi.py13CODE
LOWtests/compat/test-lz4-abi.py15CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/cli/test-lz4-list.py65CODE
LOWtests/cli/test-lz4-list.py117CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/bench/test-lz4-speed.py89def send_email_with_attachments(branch, commit, last_commit, args, text, results_files,CODE