AI Slop Code Risk Monitor

mayocream/koharu

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

ML-powered manga translator, written in Rust.

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for mayocream/koharu, a Rust project with 6,553 GitHub stars. SynthScan examined 180,055 lines of code across 656 source files, recording 251 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.3 (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.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
6.6K
Stars
Rust
Language
180.1K
Lines of Code
656
Files
251
Pattern Hits
2026-10-31
Scan Date
0.00
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.0/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.5/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 6.7/100 · LOW

Which changes need focused human review? 251 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 0LOW 251

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 251 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 Block228 hits · 216 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-canvas/src/lib.rs1//! Browser WebGPU canvas for prepared Koharu frames.COMMENT
LOWcrates/koharu/src/tracing.rs181fn gutter_vis(depth: usize) -> usize {COMMENT
LOWcrates/koharu-llama/src/llama_batch.rs101 /// tokens will be initialized and can be read from after the next decode.COMMENT
LOWcrates/koharu-llama/src/llama_batch.rs201}COMMENT
LOWcrates/koharu-llama/src/token.rs21COMMENT
LOWcrates/koharu-llama/src/lib.rs1//! Bindings to the llama.cpp library.COMMENT
LOWcrates/koharu-llama/src/lib.rs61 DecodeError(#[from] DecodeError),COMMENT
LOWcrates/koharu-llama/src/lib.rs81 /// Failed to convert the backend path to a Rust str. This means the path was not valid unicode.COMMENT
LOWcrates/koharu-llama/src/lib.rs161pub enum EncodeError {COMMENT
LOWcrates/koharu-llama/src/lib.rs181 LogitsNotEnabled,COMMENT
LOWcrates/koharu-llama/src/lib.rs241#[derive(Debug, Eq, PartialEq, thiserror::Error)]COMMENT
LOWcrates/koharu-llama/src/lib.rs261COMMENT
LOWcrates/koharu-llama/src/lib.rs281}COMMENT
LOWcrates/koharu-llama/src/lib.rs301/// ```COMMENT
LOWcrates/koharu-llama/src/lib.rs321#[derive(Debug, thiserror::Error, Clone)]COMMENT
LOWcrates/koharu-llama/src/lib.rs341 #[error("{0}")]COMMENT
LOWcrates/koharu-llama/src/lib.rs361 #[error("{0}")]COMMENT
LOWcrates/koharu-llama/src/lib.rs381/// std::thread::sleep(Duration::from_micros(10));COMMENT
LOWcrates/koharu-llama/src/lib.rs401/// println!("mlock is not supported!");COMMENT
LOWcrates/koharu-llama/src/lib.rs421 Unknown,COMMENT
LOWcrates/koharu-llama/src/llama_backend.rs21 match LLAMA_BACKEND_INITIALIZED.compare_exchange(false, true, SeqCst, SeqCst) {COMMENT
LOWcrates/koharu-llama/src/llama_backend.rs41 /// assert_eq!(Err(LlamaCppError::BackendAlreadyInitialized), LlamaBackend::init());COMMENT
LOWcrates/koharu-llama/src/llama_backend.rs161 NumaStrategy::DISTRIBUTE => koharu_llama_sys::GGML_NUMA_STRATEGY_DISTRIBUTE,COMMENT
LOWcrates/koharu-llama/src/sampling.rs101COMMENT
LOWcrates/koharu-llama/src/sampling.rs121 /// use koharu_llama::llama_backend::LlamaBackend;COMMENT
LOWcrates/koharu-llama/src/sampling.rs141 /// ```COMMENT
LOWcrates/koharu-llama/src/sampling.rs161 /// LlamaTokenData::new(LlamaToken(0), 0., 0.),COMMENT
LOWcrates/koharu-llama/src/sampling.rs181 pub fn temp_ext(t: f32, delta: f32, exponent: f32) -> Self {COMMENT
LOWcrates/koharu-llama/src/sampling.rs201 /// LlamaTokenData::new(LlamaToken(2), 2., 0.),COMMENT
LOWcrates/koharu-llama/src/sampling.rs221 ///COMMENT
LOWcrates/koharu-llama/src/sampling.rs501 /// - ``seed``: Seed to initialize random generation with.COMMENT
LOWcrates/koharu-llama/src/sampling.rs521 /// # Parameters:COMMENT
LOWcrates/koharu-llama/src/sampling.rs541COMMENT
LOWcrates/koharu-llama/src/sampling.rs561 /// assert_eq!(data_array.selected_token(), Some(LlamaToken(1)));COMMENT
LOWcrates/koharu-llama/src/mtmd.rs1//! Safe wrapper around multimodal (MTMD) functionality in llama.cpp.COMMENT
LOWcrates/koharu-llama/src/mtmd.rs21/// use koharu_llama::mtmd::MtmdInputChunkType;COMMENT
LOWcrates/koharu-llama/src/mtmd.rs61/// let params = MtmdContextParams {COMMENT
LOWcrates/koharu-llama/src/mtmd.rs141/// text: "Describe this image.".to_string(),COMMENT
LOWcrates/koharu-llama/src/mtmd.rs161pub struct MtmdContext {COMMENT
LOWcrates/koharu-llama/src/mtmd.rs241 (rate > 0).then_some(rate.unsigned_abs())COMMENT
LOWcrates/koharu-llama/src/mtmd.rs261 /// # ReturnsCOMMENT
LOWcrates/koharu-llama/src/mtmd.rs321 }COMMENT
LOWcrates/koharu-llama/src/mtmd.rs361/// Represents bitmap data for images or audio that can be processedCOMMENT
LOWcrates/koharu-llama/src/mtmd.rs381 ///COMMENT
LOWcrates/koharu-llama/src/mtmd.rs421 ///COMMENT
LOWcrates/koharu-llama/src/mtmd.rs441 pub fn from_audio_data(data: &[f32]) -> Result<Self, MtmdBitmapError> {COMMENT
LOWcrates/koharu-llama/src/mtmd.rs461 /// * `placeholder` - If `true`, build a data-less bitmap (dimensions/length only, with noCOMMENT
LOWcrates/koharu-llama/src/mtmd.rs501 }COMMENT
LOWcrates/koharu-llama/src/mtmd.rs601COMMENT
LOWcrates/koharu-llama/src/mtmd.rs661 ///COMMENT
LOWcrates/koharu-llama/src/mtmd.rs721 unsafe { koharu_llama_sys::mtmd_helper_get_n_pos(self.chunks.as_ptr()) }COMMENT
LOWcrates/koharu-llama/src/mtmd.rs901///COMMENT
LOWcrates/koharu-llama/src/mtmd.rs941/// Errors that can occur when working with MTMD bitmapsCOMMENT
LOWcrates/koharu-llama/src/mtmd.rs961}COMMENT
LOWcrates/koharu-llama/src/mtmd.rs981 #[error("Failed to create CString from text: {0}")]COMMENT
LOWcrates/koharu-llama/src/model.rs301 ///COMMENT
LOWcrates/koharu-llama/src/model.rs381 pub fn token_attr(&self, LlamaToken(id): LlamaToken) -> LlamaTokenAttrs {COMMENT
LOWcrates/koharu-llama/src/model.rs421 Ok(decode_piece(decoder, &bytes))COMMENT
LOWcrates/koharu-llama/src/model.rs501 None,COMMENT
LOWcrates/koharu-llama/src/model.rs721 koharu_llama_sys::LLAMA_ROPE_TYPE_MROPE => Some(RopeType::MRope),COMMENT
168 more matches not shown…
Fake / Example Data15 hits · 16 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-llama-sys/include/mtmd-helper.h30 // TODO @ngxson : allow "placeholder" bitmap output for counting tokensCOMMENT
LOW…ges/koharu/tests/components/editor-components.test.tsx686 expect(screen.getByTestId('type-size')).toHaveAttribute('placeholder', 'Auto')CODE
LOW…ges/koharu/tests/components/editor-components.test.tsx1501 expect(input).toHaveAttribute('placeholder', 'Configured')CODE
LOWpackages/koharu/public/locales/tr-TR/translation.json35 "placeholder": "Koharu’dan bu proje üzerinde çalışmasını isteyin…",CODE
LOWpackages/koharu/public/locales/wuu/translation.json35 "placeholder": "让 Koharu 帮侬处理箇个项目…",CODE
LOWpackages/koharu/public/locales/fr-FR/translation.json35 "placeholder": "Demandez à Koharu de travailler sur ce projet…",CODE
LOWpackages/koharu/public/locales/es-ES/translation.json35 "placeholder": "Pide a Koharu que trabaje en este proyecto…",CODE
LOWpackages/koharu/public/locales/ru-RU/translation.json35 "placeholder": "Попросите Koharu поработать над проектом…",CODE
LOWpackages/koharu/public/locales/ja-JP/translation.json35 "placeholder": "Koharuにこのプロジェクトの作業を依頼…",CODE
LOWpackages/koharu/public/locales/zh-CN/translation.json35 "placeholder": "让 Koharu 处理此项目…",CODE
LOWpackages/koharu/public/locales/zh-TW/translation.json35 "placeholder": "讓 Koharu 處理此專案…",CODE
LOWpackages/koharu/public/locales/ar/translation.json35 "placeholder": "اطلب من Koharu العمل على هذا المشروع...",CODE
LOWpackages/koharu/public/locales/ko-KR/translation.json35 "placeholder": "Koharu에게 이 프로젝트 작업 요청…",CODE
LOWpackages/koharu/public/locales/pt-BR/translation.json35 "placeholder": "Peça ao Koharu para trabalhar neste projeto…",CODE
LOWpackages/koharu/public/locales/en-US/translation.json35 "placeholder": "Ask Koharu to work on this project...",CODE
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-llama-sys/include/ggml-backend.h215 typedef ggml_backend_buffer_type_t (*ggml_backend_split_buffer_type_t)(int main_device, const float * tensor_splitCODE
LOWpackages/ui/src/components/chart.tsx330function getPayloadConfigFromPayload(CODE
LOW…ges/koharu/tests/components/editor-components.test.tsx246function SettingsNavigationHarness() {CODE
LOW…ges/koharu/tests/components/editor-components.test.tsx907 function installLayerSelectionFixture() {CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-torch/src/vision/export_model.py2CODE
LOWcrates/koharu-torch/src/vision/export_model.py3CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-llama-sys/include/llama.h1089 // TODO: implement get_embeddings() and get_logits() for llama_batch_extCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcrates/koharu-llama-sys/include/llama.h1321 /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: httpsCOMMENT