AI Slop Code Risk Monitor

libevent/libevent

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

Event notification library

2.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for libevent/libevent, a C project with 11,982 GitHub stars. SynthScan examined 109,852 lines of code across 206 source files, recording 228 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.2 (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.2
Adjusted Signal
2.2
Raw Pattern Score
100%
Time Factor
2026-09-01
Last Push
12.0K
Stars
C
Language
109.9K
Lines of Code
206
Files
228
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 9.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 10.6/100 · LOW

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

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 228 distinct pattern matches across 8 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 Block216 hits · 216 pts
SeverityFileLineSnippetContext
LOWevent_rpcgen.py1#!/usr/bin/env pythonCOMMENT
LOWevent_rpcgen.py1761#include <event2/event-config.h>COMMENT
LOWlog.c41#include "evconfig-private.h"COMMENT
LOWbufferevent_ssl.c41#include <errno.h>COMMENT
LOWevmap.c21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYCOMMENT
LOWevmap.c41#include <stdlib.h>COMMENT
LOWbuffer.c41#endifCOMMENT
LOWbuffer.c61#endifCOMMENT
LOWbuffer.c81#include "event2/buffer_compat.h"COMMENT
LOWbuffer.c101#define USE_SENDFILE 1COMMENT
LOWbuffer.c2201 */COMMENT
LOWbuffer.c2221#endifCOMMENT
LOWevent-internal.h41#include "minheap-internal.h"COMMENT
LOWevent-internal.h421#define LIST_END(head) NULLCOMMENT
LOWCMakeLists.txt1#COMMENT
LOWCMakeLists.txt1341 # doing this, we can remove all the DISABLE_TESTS stuff, and simplyCOMMENT
LOWwepoll.c61#define EPOLLERR (1U << 3)COMMENT
LOWwepoll.c121COMMENT
LOWwepoll.c141#endifCOMMENT
LOWbufferevent_filter.c41#include <stdlib.h>COMMENT
LOWevutil_rand.c121#endifCOMMENT
LOWwin32select.c21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUTCOMMENT
LOWwin32select.c41#include <string.h>COMMENT
LOWbufferevent_pair.c21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYCOMMENT
LOWpoll.c41#include <limits.h>COMMENT
LOWevport.c61#include <sys/time.h>COMMENT
LOWselect.c41#ifdef EVENT__HAVE_SYS_TIME_HCOMMENT
LOWevthread-internal.h301 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), (tv)) : 0 )COMMENT
LOWevthread-internal.h321#define EVLOCK_ASSERT_LOCKED(lock) EVUTIL_NIL_STMT_COMMENT
LOWtime-internal.h41COMMENT
LOWbufferevent-internal.h21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYCOMMENT
LOWbufferevent-internal.h41#include "ratelim-internal.h"COMMENT
LOWutil-internal.h21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYCOMMENT
LOWutil-internal.h41#ifdef EVENT__HAVE_SYS_EVENTFD_HCOMMENT
LOWutil-internal.h61# undef EVUTIL_HAS_ATTRIBUTECOMMENT
LOWutil-internal.h161#endifCOMMENT
LOWutil-internal.h481#if defined(_MSC_VER) && _MSC_VER < 1400COMMENT
LOWutil-internal.h501COMMENT
LOWutil-internal.h541#define EVUTIL_SOCK_NONBLOCK SOCK_NONBLOCKCOMMENT
LOWlog-internal.h41#define EV_NORETURNCOMMENT
LOWevrpc.c21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,COMMENT
LOWevrpc.c41#ifdef EVENT__HAVE_SYS_TIME_HCOMMENT
LOWbufferevent_async.c41#include <stdarg.h>COMMENT
LOWevent.c21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,COMMENT
LOWevent.c41#ifdef EVENT__HAVE_SYS_SOCKET_HCOMMENT
LOWevent.c61#include "event2/event_compat.h"COMMENT
LOWevent.c81#ifdef EVENT__HAVE_EVENT_PORTSCOMMENT
LOWevent.c101#endifCOMMENT
LOWstrlcpy-internal.h1#ifndef STRLCPY_INTERNAL_H_INCLUDED_COMMENT
LOWdevpoll.c21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,COMMENT
LOWdevpoll.c41#include <stdlib.h>COMMENT
LOWhttp.c41#include <sys/ioccom.h>COMMENT
LOWhttp.c61#ifdef EVENT__HAVE_SYS_UN_HCOMMENT
LOWhttp.c81#include <winsock2.h>COMMENT
LOWhttp.c101#undef timeout_initializedCOMMENT
LOWlistener.c41#include <winerror.h>COMMENT
LOWlistener.c61#include "event2/event.h"COMMENT
LOWmm-internal.h81#elseCOMMENT
LOWbufferevent.c41#ifdef EVENT__HAVE_STDARG_HCOMMENT
LOWsignal.c21 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,COMMENT
156 more matches not shown…
Cross-Language Confusion3 hits · 10 pts
SeverityFileLineSnippetContext
HIGHevent_rpcgen.py390 if (evtag_unmarshal(evbuf, &tag, tmp) == -1 || tag != need_tag)STRING
HIGHevent_rpcgen.py1247 if (!msg->%(name)s_set || offset < 0 || offset >= msg->%(name)s_length)CODE
HIGHevent_rpcgen.py1264 " if (!msg->%(name)s_set || off < 0 || off >= msg->%(name)s_length)",STRING
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWevent_rpcgen.py341 # Check if it was decoded completelyCOMMENT
LOWtest-export/test-export.py3# Check if find_package(Libevent COMPONENTS xxx) can get the correct library.COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMevent_rpcgen.py1530 # Create the right entryCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWevent_rpcgen.py1476CODE
LOWevent_rpcgen.py1613CODE
LOWextra/release/changelog.py29CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest-export/test-export.py5# Usage:COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWevent_rpcgen.py1678CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/check-dumpevents.py6CODE