AI Slop Code Risk Monitor

antirez/ds4

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

DeepSeek 4 Flash and PRO local inference engine for Metal, CUDA and ROCm

0.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for antirez/ds4, a C project with 24,172 GitHub stars. SynthScan examined 5,011,775 lines of code across 3279 source files, recording 438 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 0.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.

0.2
Adjusted Signal
0.2
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
24.2K
Stars
C
Language
5.0M
Lines of Code
3.3K
Files
438
Pattern Hits
2026-10-31
Scan Date
0.03
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 0.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 1.0/100 · LOW

Which changes need focused human review? 438 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 108MEDIUM 34LOW 296

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 438 distinct pattern matches across 13 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.

Cross-Language Confusion105 hits · 539 pts
SeverityFileLineSnippetContext
HIGHtests/test_dspark_window.py111 if (pend_n && pend_start + pend_n == L) catch_up(&g, pend_start, pend_n);CODE
HIGHtests/test_dspark_window.py157 REQUIRE(g.dspark_cache_token_start == 76 && g.dspark_cache_len == 127);CODE
HIGHtests/test_dspark_window.py159 REQUIRE(g.dspark_cache_token_start == 76 && g.dspark_cache_len == 128);CODE
HIGHtests/test_dspark_window.py184 if (start != 0 && p0 % cap) {CODE
HIGHtests/test_dspark_window.py189 if (p1 < end && end - p1 < 128u) seed_tail(g, p0, chunk);CODE
HIGHtests/test_dspark_window.py256 REQUIRE(g.dspark_cache_token_start == 0 && g.dspark_cache_len == 59);CODE
HIGH⚡tests/test_dspark_eos_contract.py127 if(s!=active_session || f->frontier!=start || s->checkpoint.len!=start ||CODE
HIGH⚡tests/test_dspark_eos_contract.py128 rows<1 || rows>DS4_DSPARK_MAX_BLOCK_SIZE) mock_errors++;CODE
HIGH⚡tests/test_dspark_eos_contract.py131 if(s!=active_session || !s->checkpoint_valid || s->checkpoint.len!=s->graph.frontier) mock_errors++;CODE
HIGH⚡tests/test_dspark_eos_contract.py143 if(!tp_leader || ctx!=active_session->engine->tp.ctx || id!=42 ||CODE
HIGH⚡tests/test_dspark_eos_contract.py144 active_session->checkpoint.len!=tp_start || active_session->graph.frontier!=tp_start) mock_errors++;CODE
HIGH⚡tests/test_dspark_eos_contract.py145 if(n==0 || n>16) { mock_errors++; return 0; }CODE
HIGH⚡tests/test_dspark_eos_contract.py204 if(g!=&active_session->graph || w!=&active_session->engine->weights || !n || rows) mock_errors++;CODE
HIGH⚡tests/test_dspark_eos_contract.py210 bytes!=row_bytes || offset%row_bytes || offset/row_bytes>=(uint64_t)verified_width) {CODE
HIGH⚡tests/test_dspark_eos_contract.py220 row!=(uint32_t)selected_row || n!=DS4_N_VOCAB/2) { mock_errors++; return 0; }CODE
HIGH⚡tests/test_dspark_eos_contract.py338 if(tp_proposed && width>(already==0 ? 1 : 0)) {CODE
HIGH⚡tests/test_dspark_eos_contract.py347 if(expected==width && width) {CODE
HIGH⚡tests/test_dspark_eos_contract.py348 if(replayed) CHECK(tp_commit_kind==DS4_TP_VERIFY_ROLLBACK_REPLAY && tp_commit_count==expected);CODE
HIGH⚡tests/test_dspark_eos_contract.py349 else CHECK(tp_commit_kind==DS4_TP_VERIFY_COMMIT_FULL && tp_commit_count==0);CODE
HIGH⚡tests/test_dspark_eos_contract.py351 if(expected<width && expected && prefix_committed) {CODE
HIGH⚡tests/test_dspark_eos_contract.py352 CHECK(tp_commit_kind==DS4_TP_VERIFY_COMMIT_PREFIX && tp_commit_count==expected);CODE
HIGH⚡tests/test_dspark_eos_contract.py354 if(expected<width && expected && !prefix_committed) {CODE
HIGH⚡tests/test_dspark_eos_contract.py355 CHECK(tp_commit_kind==DS4_TP_VERIFY_ROLLBACK_REPLAY && tp_commit_count==expected);CODE
HIGH⚡tests/test_dspark_eos_contract.py357 if(width && !expected) CHECK(tp_commit_kind==DS4_TP_VERIFY_ROLLBACK_REPLAY && tp_commit_count==0);CODE
HIGH⚡tests/test_dspark_eos_contract.py358 CHECK(replay_half_reads==((replayed && engine.tp.vocab_split) ? 1 : 0));CODE
HIGH⚡tests/test_dspark_eos_contract.py425 int expected=(reject>=0 && reject<bounded) ? reject : bounded;CODE
HIGH⚡tests/test_dspark_eos_contract.py426 int width=(bounded==0 || reject==0) ? 0 : bounded;CODE
HIGH⚡tests/test_dspark_eos_contract.py431 if(expected==width && width) CHECK(selected_row==expected-1);CODE
HIGH⚡tests/test_dspark_eos_contract.py432 if(eos<0 || ignore) unaffected_failures+=failures-previous_failures;CODE
HIGH⚡tests/test_dspark_eos_contract.py494 if(width==1 && seed==0) worker_proposal_valid=false;CODE
HIGH⚡tests/test_dspark_eos_contract.py498 CHECK(head_local_reads==split && head_remote_reads==split);CODE
HIGH⚡tests/test_dspark_eos_contract.py507 int reads=(reject<0 || (reject>0 && reject<=4)) ? split : 0;CODE
HIGH⚡tests/test_dspark_eos_contract.py508 CHECK(head_local_reads==reads && head_remote_reads==reads);CODE
HIGH⚡tests/test_dspark_eos_contract.py514 CHECK(head_local_reads==split && head_remote_reads==0);CODE
HIGH⚡tests/test_dspark_eos_contract.py521 CHECK(returned==-1 && tp_sends==1 && tp_width==0 && verified_width==0);CODE
HIGH⚡tests/test_dspark_eos_contract.py522 CHECK(session.checkpoint.len==start && session.graph.frontier==start && session.checkpoint_valid);CODE
HIGH⚡tests/test_dspark_eos_contract.py523 CHECK(!session.dspark_tp_proposal && !session.dspark_draft_valid && session.dspark_draft_len==0);CODE
HIGH⚡tests/test_dspark_eos_contract.py524 CHECK(accepted[0]==-99 && mock_errors==0); cases++;CODE
HIGHtests/test_dspark_eos_contract.py108 (void)e; (void)think; return token == 1 || token == extra_stop;CODE
HIGHtests/test_dspark_eos_contract.py114 if(t->len<0 || t->len>=64) { mock_errors++; return; } t->data[t->len++]=token;CODE
HIGHtests/test_dspark_eos_contract.py158 if(ctx!=active_session->engine->tp.ctx || n!=DS4_N_VOCAB/2 || !replayed) { mock_errors++; return 0; }CODE
HIGHtests/test_dspark_eos_contract.py175 if(n==0 || n>16 || tokens->len!=(int)(start+n) || g->frontier!=(int)start) mock_errors++;CODE
HIGHtests/test_dspark_eos_contract.py231 if(n==0 || n>4 || n>=(uint32_t)verified_width) { mock_errors++; return false; }CODE
HIGHtests/test_dspark_eos_contract.py245 if(g->frontier!=(int)pos || token<0 || token>=DS4_N_VOCAB) { mock_errors++; return false; }CODE
HIGHtests/test_dspark_eos_contract.py279 session.logits[(draft[0]>=0 && draft[0]<DS4_N_VOCAB) ? draft[0] : 0]=100;CODE
HIGHtests/test_dspark_eos_contract.py321 CHECK(!session.dspark_draft_valid && session.dspark_draft_len==0);CODE
HIGHtests/test_dspark_eos_contract.py326 CHECK(accepted[cap]==-99 && accepted[19]==-99);CODE
HIGHtests/test_dspark_eos_contract.py369 if(tp && n>seed) expected|=DS4_TP_VERIFY_DSPARK_TP | (seed ? DS4_TP_VERIFY_DSPARK_SEED : 0);CODE
HIGHtests/test_dspark_eos_contract.py412 observed_negative=(returned==2 && session.checkpoint.len-start==3);CODE
HIGHtests/test_dspark_eos_contract.py472 returned=invoke(8,8,false); check_frontier(returned,5,6,extended,8); CHECK(prefix_committed==4 && replayed==1);CODE
HIGHtests/test_dspark_eos_contract.py536 CHECK(head_local_reads==1 && head_remote_reads==1 && replayed==1 && replay_half_reads==1);CODE
HIGHtests/test_dspark_confidence_input.py103 if (!t || off > t->bytes || n > t->bytes - off) return 0;CODE
HIGHtests/test_dspark_confidence_input.py130 if (!t || t->id != T_W1 || row >= DS4_N_VOCAB) return false;CODE
HIGHtests/test_dspark_confidence_input.py221 REQUIRE(g_reads_cur == 1 && g_reads_norm == 0);CODE
HIGHtests/test_dspark_confidence_input.py233 REQUIRE(plen == BLOCK && clen == BLOCK && cprefix == BLOCK);CODE
HIGH⚡tests/test_dspark_rewind.py132static bool ds4_session_tp_leader(ds4_session *s) { return s->engine->tp.active && s->leader; }CODE
HIGH⚡tests/test_dspark_rewind.py140 MOCK(f==&s->dspark_rewind_frontier && f->epoch==s->epoch);CODE
HIGH⚡tests/test_dspark_rewind.py142 if(wire.in_recent && ds4_session_tp_leader(s)) MOCK(wire.send_calls==1 && wire.wait_calls==0);CODE
HIGH⚡tests/test_dspark_rewind.py149 MOCK(n>0 && n<=DS4_SPEC_PREFIX_SLOTS && n<=s->dspark_rewind_prefixes);CODE
HIGH⚡tests/test_dspark_rewind.py150 MOCK(wire.restored[s->rank]==1 && s->graph.target_pos==s->dspark_rewind_start);CODE
45 more matches not shown…
Over-Commented Block112 hits · 112 pts
SeverityFileLineSnippetContext
LOWrax_malloc.h41#define rax_realloc reallocCOMMENT
LOWds4_ssd.c1#include "ds4_ssd.h"COMMENT
LOWds4_agent.c1#include "ds4.h"COMMENT
LOWds4_agent.c21#include <regex.h>COMMENT
LOWds4_kvstore.h1#ifndef DS4_KVSTORE_HCOMMENT
LOWds4_distributed.c21#include <math.h>COMMENT
LOWds4_distributed.c41 * Protocol Constants And Wire RecordsCOMMENT
LOWds4_tp.c1/* Tensor-parallel transport and lockstep protocol. See ds4_tp.h.COMMENT
LOWds4_tp.c21#include <stdlib.h>COMMENT
LOWds4_tp.c61#define DS4_TP_MBOX_ACK_EVERY 16uCOMMENT
LOWds4_rocm.h1#pragma onceCOMMENT
LOWds4_rocm.h21#define cudaGetErrorString hipGetErrorStringCOMMENT
LOWds4_rocm.h41#define cudaMemcpyAsync hipMemcpyAsyncCOMMENT
LOWds4_rocm.h61#define cudaStreamDestroy hipStreamDestroyCOMMENT
LOWds4_rocm.h81#define CUBLAS_COMPUTE_32F HIPBLAS_COMPUTE_32FCOMMENT
LOWds4_server.c1#include "ds4.h"COMMENT
LOWds4_server.c21#include <errno.h>COMMENT
LOWds4_server.c5841COMMENT
LOWds4_image.c1#include "ds4_image.h"COMMENT
LOWds4_cli.c1#include "ds4.h"COMMENT
LOWlinenoise.c101 * Sequence: ESC [ 2 JCOMMENT
LOWds4_engram.c1#define _DARWIN_C_SOURCECOMMENT
LOWds4_kvstore.c21#include <sys/types.h>COMMENT
LOWds4_web.c1#include "ds4_web.h"COMMENT
LOWds4_eval.c21#include <ctype.h>COMMENT
LOWcuda/mmq/ggml-common.h21// std-c++ do not allow it.COMMENT
LOWcuda/mmq/ggml-common.h61#elif defined(GGML_COMMON_DECL_SYCL)COMMENT
LOWcuda/mmq/ggml-common.h81#define static_assert(cond, msg) struct global_scope_noop_trickCOMMENT
LOWcuda/mmq/ggml-common.h101#define QR4_0 2COMMENT
LOWcuda/mmq/ggml-common.h121#define QI8_1 (QK8_1 / (4 * QR8_1))COMMENT
LOWcuda/mmq/ggml-common.h141COMMENT
LOWcuda/mmq/ggml-common.h161#define QR4_NL 2COMMENT
LOWcuda/mmq/ggml-common.h461COMMENT
LOWcuda/mmq/ggml-common.h481#include <cstdint>COMMENT
LOWcuda/mmq/ds4_ggml_stubs.h1// SPDX-License-Identifier: MITCOMMENT
LOWcuda/mmq/ds4_ggml_stubs.h21// GGML_CUDA_MAX_STREAMS / GGML_LOG_DEBUGCOMMENT
LOWcuda/mmq/ds4_ggml_stubs.h41#include <cstdint>COMMENT
LOWcuda/mmq/ds4_ggml_stubs.h61 abort(); \COMMENT
LOWcuda/mmq/ds4_ggml_stubs.h81#define GGML_UNUSED_VARS_11(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11) GGML_UNUSED_VARS_10(_1,_2,_3,_4,_5,_6,_7,_8,_COMMENT
LOWcuda/mmq/ds4_ggml_stubs.h101#define GGML_MAX_SRC 10COMMENT
LOWcuda/mmq/ds4_ggml_stubs.h121#undef GGML_CUDA_USE_GRAPHSCOMMENT
LOWcuda/mmq/ds4_ggml_stubs.h181// ----------------------------------------------------------------------------COMMENT
LOWcuda/mmq/ggml-cuda.h1// SPDX-License-Identifier: MITCOMMENT
LOWcuda/mmq/ggml-impl.h1// SPDX-License-Identifier: MITCOMMENT
LOWcuda/mmq/ds4_mmq.h1// SPDX-License-Identifier: MITCOMMENT
LOWcuda/mmq/ds4_mmq.h21#endifCOMMENT
LOWcuda/mmq/ds4_mmq.h41// Wraps ggml_cuda_should_use_mmq. type_x uses ds4 quant codes which matchCOMMENT
LOWcuda/mmq/ds4_mmq.h181// Layouts:COMMENT
LOWcuda/mmq/ds4_mmq.h421 cudaStream_t stream);COMMENT
LOWcuda/mmq/ds4_mmq.h501 cudaStream_t stream);COMMENT
LOWcuda/mmq/ds4_mmq.h521COMMENT
LOWcuda/mmq/ds4_mmq.h661// out[token, row] = sum_slot W[ids[token, slot], row, :] @ X[token, slot, :]COMMENT
LOWcuda/mmq/ds4_mmq.h721//COMMENT
LOWcuda/mmq/ds4_mmq.h781//COMMENT
LOWcuda/mmq/ggml.h1// SPDX-License-Identifier: MITCOMMENT
LOWcuda/mmq/vendors/hip.h1#pragma onceCOMMENT
LOWcuda/mmq/vendors/hip.h21#define CUDA_R_16BF HIPBLAS_R_16BCOMMENT
LOWcuda/mmq/vendors/hip.h41#define cublasGemmEx hipblasGemmExCOMMENT
LOWcuda/mmq/vendors/hip.h61#define cudaErrorMemoryAllocation hipErrorOutOfMemoryCOMMENT
LOWcuda/mmq/vendors/hip.h81#define cudaHostUnregister hipHostUnregisterCOMMENT
52 more matches not shown…
Hyper-Verbose Identifiers91 hits · 102 pts
SeverityFileLineSnippetContext
LOWtests/test_model_download.py143 def test_quants_vision_and_existing(self):STRING
LOWtests/test_model_download.py157 def test_truncated_and_corrupt_artifacts(self):STRING
LOW⚡tests/test_model_download.py170 def test_qwen_is_one_verified_file(self):STRING
LOW⚡tests/test_model_download.py180 def test_failure_does_not_replace_link(self):STRING
LOW⚡tests/test_model_download.py187 def test_partial_requires_explicit_cleanup(self):STRING
LOWtests/test_model_download.py245 def test_help_and_invalid_target(self):STRING
LOWtests/test_jpeg_decode.py58 def test_sampling_progression_and_edges(self):CODE
LOWtests/test_deepseek41_vision_conversion.py40 def test_reject_missing_extra_and_wrong_tensors(self):CODE
LOWtests/test_serve_concurrency_bench.py28 def test_counts_tokens_not_chunks(self):CODE
LOWtests/test_serve_concurrency_bench.py34 def test_rejects_incomplete_or_failed_streams(self):CODE
LOW⚡tests/test_qwen4_vision_ref.py10 def test_grid_mismatch_with_identical_shape_fails(self):CODE
LOW⚡tests/test_qwen4_vision_ref.py14 def test_nonfinite_reference_or_actual_fails(self):CODE
LOW⚡tests/test_qwen4_vision_ref.py22 def test_one_bad_token_fails_despite_high_mean(self):CODE
LOW⚡tests/test_qwen4_vision_ref.py31 def test_scaled_vectors_pass_cosine_but_report_absolute_error(self):CODE
LOWtests/test_deepseek41_conversion.py192 def test_invalid_scales_and_float(self):CODE
LOWtests/test_collect_official.py19 def test_temperature_and_record(self):CODE
LOWtests/test_collect_official.py45 def test_system_message_and_resume(self):CODE
LOW⚡tests/test_glm_reference_render.py19 def test_preserves_reasoning_and_whitespace(self):CODE
LOW⚡tests/test_glm_reference_render.py27 def test_missing_reasoning_rejected(self):CODE
LOW⚡tests/test_glm_reference_render.py31 def test_other_model_rejected(self):CODE
LOW⚡tests/test_glm_reference_render.py37 def test_unsupported_effort_rejected(self):CODE
LOWtests/test_deepseek41_dspark_conversion.py43 def test_draft_only_source_shards(self):CODE
LOWtests/test_deepseek41_dspark_conversion.py132 def test_atomic_resume_and_complete_payload_audit(self):CODE
LOWgguf-tools/qwen4_pack.py313def decode_safetensors_header(raw_length: bytes, raw_header: bytes,CODE
LOWgguf-tools/qwen4_pack.py402def read_hub_safetensors_header(repo_id: str, revision: str, filename: str,CODE
LOWgguf-tools/qwen4_pack.py1121def default_quantizer_library() -> Path:CODE
LOWgguf-tools/qwen4_pack.py2004def verify_shard_payload_auth(source_shard: str, auth: dict,CODE
LOWgguf-tools/qwen4_pack.py2219def validate_artifact_tensor_counts(plan: dict[str, list[Action]],CODE
LOWgguf-tools/glm53_quantize.py259def validate_tokenizer_template(hf_dir, template_tokens, vocab_size):CODE
LOWgguf-tools/tests/test_glm53_quantize.py90 def test_conversion_signature_includes_imatrix_contents(self):CODE
LOWgguf-tools/tests/test_glm53_quantize.py102 def test_imatrix_unobserved_expert_uses_fallback(self):CODE
LOWgguf-tools/tests/test_glm53_quantize.py121 def test_imatrix_accepts_full_glm_expert_count(self):CODE
LOWgguf-tools/tests/test_glm53_quantize.py175 def test_full_glm_metadata_keys_are_unique(self):CODE
LOWgguf-tools/tests/test_glm53_quantize.py257 def test_combined_kv_is_split_per_head_and_k_is_transposed(self):CODE
LOWgguf-tools/tests/test_glm53_quantize.py269 def test_full_glm_combined_kv_dimensions(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py288 def test_manifest_records_qtypes_physical_shapes_padding_and_checksums(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py373 def test_legacy_artifacts_are_refused_even_for_a_fresh_conversion(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py381 def test_streamed_conversion_refuses_finalized_output_directory(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py412 def test_conversion_space_admission_counts_artifacts_stage_and_reserve(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py431 def test_random_gguf_writer_is_resumable_and_offset_stable(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py495 def test_completed_tensor_payload_corruption_is_not_resigned(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py556 def test_ple_gguf_writer_resumes_and_preserves_rows_and_aux_tensors(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py615 def test_completed_ple_row_and_aux_corruption_is_not_resigned(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py803 def test_optional_mtp_uses_the_same_qtype_rules(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py948 def test_qwen_gguf_imatrix_validates_normalizes_and_falls_back(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py978 def test_qwen_gguf_imatrix_rejects_missing_or_negative_entries(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py1000 def test_block_quantization_rejects_invalid_width_and_nonfinite_input(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py1008 def test_single_base_contains_every_layer_and_preserves_locality(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py1032 def test_sidecars_are_classified_before_single_base(self):CODE
LOWgguf-tools/tests/test_qwen4_pack.py1051 def test_official_geometry_is_required(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py82 def test_reject_wrong_source_precision(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py89 def test_upstream_geometry_metadata(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py99 def test_source_padding_is_retained(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py118 def test_reuse_verified_native_gguf(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py126 def test_reject_wrong_hash_geometry(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py131 def test_reject_missing_shard(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py136 def test_reject_wrong_row_count(self):CODE
LOW⚡gguf-tools/tests/test_qwen4_native_ngrams.py141 def test_reject_truncated_source(self):CODE
LOW⚡…/quality-testing/tests/test_compare_frontier_logits.py59 def test_complete_identity_and_full_vector_hashes(self):CODE
LOW⚡…/quality-testing/tests/test_compare_frontier_logits.py69 def test_non_argmax_drift_cannot_hide_behind_same_argmax(self):CODE
31 more matches not shown…
Deep Nesting58 hits · 57 pts
SeverityFileLineSnippetContext
LOWtests/deepseek41_dspark_reference.py97CODE
LOWtests/generate_long_context_story_prompt.py134CODE
LOWtests/test_server_speculative_stop.py64CODE
LOWtests/test_jpeg_decode.py58CODE
LOWtests/test_dspark_window.py35CODE
LOWtests/ds4_agent_terminal_test.py58CODE
LOWtests/test_server_batching.py170CODE
LOWtests/test_dspark_eos_contract.py23CODE
LOWtests/test_web_recovery.py13CODE
LOWtests/test_web_recovery.py27CODE
LOWtests/test_qwen4_checkpoint_replay.py41CODE
LOWtests/test_collect_official.py45CODE
LOWtests/test_deepseek41_rope.py15CODE
LOWtests/test_agent_vision.py42CODE
LOWtests/test_deepseek41_http.py14CODE
LOWtests/qwen4_vision_ref.py31CODE
LOWtests/qwen4_vision_ref.py86CODE
LOWtests/test_dspark_confidence_input.py37CODE
LOWtests/test_dspark_rewind.py25CODE
LOWtests/test-vectors/fetch_official_vectors.py190CODE
LOWtests/test-vectors/fetch_openrouter_glm_vectors.py276CODE
LOWgguf-tools/deepseek4_vision.py294CODE
LOWgguf-tools/deepseek41_validate_gguf.py22CODE
LOWgguf-tools/deepseek41_validate_gguf.py54CODE
LOWgguf-tools/merge_deepseek41_shards.py49CODE
LOWgguf-tools/merge_deepseek41_shards.py176CODE
LOWgguf-tools/deepseek41_metadata.py52CODE
LOWgguf-tools/deepseek41_dspark.py196CODE
LOWgguf-tools/deepseek41_dspark.py251CODE
LOWgguf-tools/deepseek41_quantize.py218CODE
LOWgguf-tools/deepseek41_quantize.py161CODE
LOWgguf-tools/qwen4_native_ngrams.py30CODE
LOWgguf-tools/qwen4_native_ngrams.py145CODE
LOWgguf-tools/gen_qwen4_unicode.py20CODE
LOWgguf-tools/qwen4_pack.py295CODE
LOWgguf-tools/qwen4_pack.py360CODE
LOWgguf-tools/qwen4_pack.py1256CODE
LOWgguf-tools/qwen4_pack.py1671CODE
LOWgguf-tools/qwen4_pack.py2402CODE
LOWgguf-tools/qwen4_pack.py2779CODE
LOWgguf-tools/qwen4_pack.py2878CODE
LOWgguf-tools/qwen4_pack.py427CODE
LOWgguf-tools/glm53_vision.py86CODE
LOWgguf-tools/glm53_vision.py249CODE
LOWgguf-tools/glm53_quantize.py190CODE
LOWgguf-tools/glm53_quantize.py561CODE
LOWgguf-tools/glm53_quantize.py1015CODE
LOWgguf-tools/glm53_quantize.py784CODE
LOWgguf-tools/glm53_quantize.py802CODE
LOWgguf-tools/qwen4_iq2.py93CODE
LOWgguf-tools/quality-testing/compare_scores.py18CODE
LOWgguf-tools/quality-testing/collect_official.py225CODE
LOWgguf-tools/quality-testing/compare_frontier_logits.py141CODE
LOW…quality-testing/generate_deepseek4_vision_reference.py62CODE
LOWgguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py157CODE
LOWgguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py872CODE
LOWspeed-bench/serve_concurrency_bench.py68CODE
LOWdir-steering/tools/build_direction.py117CODE
AI Slop Vocabulary26 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUM…ek-v4.1-flash-20260910-general/responses/case_066.json11 "content": "# Testing a Command-Line Parser with Edge Cases\n\nA robust CLI parser needs to handle malformed, amCODE
MEDIUM…eek-v4.1-flash-20260919-router/responses/case_019.json11 "content": "# Handling Clients That Send Valid Headers But Never Finish the Request Body\n\nThis is a classic slCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_076.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "TestareCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_001.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "Here isCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_000.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "Here isCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_061.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "Sorted CODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_046.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "In a MiCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_089.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "A hash CODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_066.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "# TestiCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_066.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "# TestiCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_026.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "Here isCODE
MEDIUM⚡…/data/qwen38-flash-alibaba-100/responses/case_029.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "CompariCODE
MEDIUM⚡…/data/qwen38-flash-alibaba-100/responses/case_029.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "CompariCODE
MEDIUM⚡…/data/qwen38-flash-alibaba-100/responses/case_029.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "CompariCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_009.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "Here arCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_048.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "ValidatCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_090.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "In the CODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_023.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "**BackpCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_003.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "To deriCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_003.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "To deriCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_002.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "CompariCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_080.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "A good CODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_059.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "ValutarCODE
MEDIUM…/data/qwen38-flash-alibaba-100/responses/case_034.json1{"model": "qwen/qwen3.8-flash", "provider": "Alibaba", "choices": [{"message": {"role": "assistant", "content": "SalvareCODE
MEDIUM…3-flash-openrouter-zai-fp8-100/responses/case_029.json17 "content": "# Comparing Two Model Quantizations Without Relying on a Single Answer\n\nEvaluating quantization quCODE
MEDIUM…3-flash-openrouter-zai-fp8-100/responses/case_024.json17 "content": "# Safe Format for Storing Model Checkpoint Headers\n\nA checkpoint header is the metadata at the staCODE
Unused Imports25 hits · 25 pts
SeverityFileLineSnippetContext
LOWmetal/generate_mxfp4_half_lut.py8CODE
LOWtests/generate_long_context_story_prompt.py9CODE
LOWtests/test-vectors/fetch_official_vectors.py9CODE
LOWtests/test-vectors/fetch_openrouter_glm_vectors.py9CODE
LOWgguf-tools/glm53_full_quantize.py4CODE
LOWgguf-tools/deepseek4_vision.py4CODE
LOWgguf-tools/deepseek4_vision.py16CODE
LOWgguf-tools/deepseek4_vision.py16CODE
LOWgguf-tools/glm53_validate_gguf.py4CODE
LOWgguf-tools/glm53_validate_gguf.py10CODE
LOWgguf-tools/qwen4_pack.py18CODE
LOWgguf-tools/glm53_vision.py4CODE
LOWgguf-tools/glm53_vision.py15CODE
LOWgguf-tools/qwen4_exp_convert.py16CODE
LOWgguf-tools/qwen4_pack_to_qwen4exp.py33CODE
LOWgguf-tools/qwen4_pack_to_qwen4exp.py38CODE
LOWgguf-tools/glm53_quantize.py4CODE
LOWgguf-tools/mixed/splice_mixed_expert_layers_gguf.py10CODE
LOWgguf-tools/quality-testing/validate_scores.py4CODE
LOWgguf-tools/quality-testing/compare_scores.py4CODE
LOWgguf-tools/quality-testing/collect_official.py4CODE
LOWgguf-tools/quality-testing/compare_frontier_logits.py4CODE
LOW…quality-testing/generate_deepseek4_vision_reference.py4CODE
LOWgguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py18CODE
LOWdir-steering/tools/build_direction.py13CODE
Decorative Section Separators6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMgguf-tools/qwen4_pack_to_qwen4exp.py149# --------------------------------------------------------------------------COMMENT
MEDIUMgguf-tools/qwen4_pack_to_qwen4exp.py461# --------------------------------------------------------------------------COMMENT
MEDIUMgguf-tools/qwen4_pack_to_qwen4exp.py592# --------------------------------------------------------------------------COMMENT
MEDIUMgguf-tools/qwen4_pack_to_qwen4exp.py687# --------------------------------------------------------------------------COMMENT
MEDIUM…3-flash-openrouter-zai-fp8-100/responses/case_034.json17 "content": "# Formato sicuro per l'header di un checkpoint modello\n\n## Struttura consigliata\n\nUn approccio rCODE
MEDIUM…ols/quality-testing/data/flash/responses/case_001.json11 "content": "Here's a concise design for a TCP echo server that handles slow clients:\n\n## Core Architecture\n\nCODE
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHgguf-tools/qwen4_pack.py2770except OSError:CODE
HIGHgguf-tools/qwen4_pack.py2874except OSError:CODE
HIGHgguf-tools/qwen4_pack.py2965except OSError:CODE
Excessive Try-Catch Wrapping6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_server_speculative_stop.py161 except Exception as exc:CODE
LOWtests/test_server_speculative_stop.py239 except Exception as exc:CODE
LOWtests/test-vectors/fetch_openrouter_glm_vectors.py185 except Exception as e: # noqa: BLE001 - command-line retry wrapper.CODE
LOWgguf-tools/mixed/splice_mixed_expert_layers_gguf.py402 except Exception as exc:CODE
LOWgguf-tools/quality-testing/collect_official.py216 except Exception as e: # noqa: BLE001 - command-line retry wrapper.CODE
LOWspeed-bench/serve_concurrency_bench.py367 except Exception as exc: # noqa: BLE001 - any failure here is fatal and worth showingCODE
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…ek-v4.1-flash-20260910-general/responses/case_004.json11 "content": "# Why KV Cache Checkpointing Helps Agentic Sessions\n\n## The core problem: long context, repeated pCODE
MEDIUM…sion-exp-openrouter-novita-100/responses/case_001.json17 "content": "Here's a concise design for a TCP echo server that handles slow clients:\n\n## Architecture OverviewCODE
Structural Annotation Overuse2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…ek-v4.1-flash-20260910-general/responses/case_005.json11 "content": "# Binary Heap Push (Insert) Operation\n\n## Pseudocode\n\n```\nfunction push(heap, value):\n // SCODE
LOW…v4.1-flash-20260910-general/continuations/case_005.txt7 // Step 1: Add new element at theCOMMENT
Verbosity Indicators1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ek-v4.1-flash-20260910-general/responses/case_005.json11 "content": "# Binary Heap Push (Insert) Operation\n\n## Pseudocode\n\n```\nfunction push(heap, value):\n // SCODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…lash-openrouter-zai-fp8-100/continuations/case_066.txt15- Values containing spaces: `--name "John Doe"`CODE