ML-powered manga translator, written in Rust.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 234 finding(s).
Are imports declared and package/API names verified? 17 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 251 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-canvas/src/lib.rs | 1 | //! Browser WebGPU canvas for prepared Koharu frames. | COMMENT |
| LOW | crates/koharu/src/tracing.rs | 181 | fn gutter_vis(depth: usize) -> usize { | COMMENT |
| LOW | crates/koharu-llama/src/llama_batch.rs | 101 | /// tokens will be initialized and can be read from after the next decode. | COMMENT |
| LOW | crates/koharu-llama/src/llama_batch.rs | 201 | } | COMMENT |
| LOW | crates/koharu-llama/src/token.rs | 21 | COMMENT | |
| LOW | crates/koharu-llama/src/lib.rs | 1 | //! Bindings to the llama.cpp library. | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 61 | DecodeError(#[from] DecodeError), | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 81 | /// Failed to convert the backend path to a Rust str. This means the path was not valid unicode. | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 161 | pub enum EncodeError { | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 181 | LogitsNotEnabled, | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 241 | #[derive(Debug, Eq, PartialEq, thiserror::Error)] | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 261 | COMMENT | |
| LOW | crates/koharu-llama/src/lib.rs | 281 | } | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 301 | /// ``` | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 321 | #[derive(Debug, thiserror::Error, Clone)] | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 341 | #[error("{0}")] | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 361 | #[error("{0}")] | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 381 | /// std::thread::sleep(Duration::from_micros(10)); | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 401 | /// println!("mlock is not supported!"); | COMMENT |
| LOW | crates/koharu-llama/src/lib.rs | 421 | Unknown, | COMMENT |
| LOW | crates/koharu-llama/src/llama_backend.rs | 21 | match LLAMA_BACKEND_INITIALIZED.compare_exchange(false, true, SeqCst, SeqCst) { | COMMENT |
| LOW | crates/koharu-llama/src/llama_backend.rs | 41 | /// assert_eq!(Err(LlamaCppError::BackendAlreadyInitialized), LlamaBackend::init()); | COMMENT |
| LOW | crates/koharu-llama/src/llama_backend.rs | 161 | NumaStrategy::DISTRIBUTE => koharu_llama_sys::GGML_NUMA_STRATEGY_DISTRIBUTE, | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 101 | COMMENT | |
| LOW | crates/koharu-llama/src/sampling.rs | 121 | /// use koharu_llama::llama_backend::LlamaBackend; | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 141 | /// ``` | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 161 | /// LlamaTokenData::new(LlamaToken(0), 0., 0.), | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 181 | pub fn temp_ext(t: f32, delta: f32, exponent: f32) -> Self { | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 201 | /// LlamaTokenData::new(LlamaToken(2), 2., 0.), | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 221 | /// | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 501 | /// - ``seed``: Seed to initialize random generation with. | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 521 | /// # Parameters: | COMMENT |
| LOW | crates/koharu-llama/src/sampling.rs | 541 | COMMENT | |
| LOW | crates/koharu-llama/src/sampling.rs | 561 | /// assert_eq!(data_array.selected_token(), Some(LlamaToken(1))); | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 1 | //! Safe wrapper around multimodal (MTMD) functionality in llama.cpp. | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 21 | /// use koharu_llama::mtmd::MtmdInputChunkType; | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 61 | /// let params = MtmdContextParams { | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 141 | /// text: "Describe this image.".to_string(), | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 161 | pub struct MtmdContext { | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 241 | (rate > 0).then_some(rate.unsigned_abs()) | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 261 | /// # Returns | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 321 | } | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 361 | /// Represents bitmap data for images or audio that can be processed | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 381 | /// | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 421 | /// | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 441 | pub fn from_audio_data(data: &[f32]) -> Result<Self, MtmdBitmapError> { | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 461 | /// * `placeholder` - If `true`, build a data-less bitmap (dimensions/length only, with no | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 501 | } | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 601 | COMMENT | |
| LOW | crates/koharu-llama/src/mtmd.rs | 661 | /// | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 721 | unsafe { koharu_llama_sys::mtmd_helper_get_n_pos(self.chunks.as_ptr()) } | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 901 | /// | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 941 | /// Errors that can occur when working with MTMD bitmaps | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 961 | } | COMMENT |
| LOW | crates/koharu-llama/src/mtmd.rs | 981 | #[error("Failed to create CString from text: {0}")] | COMMENT |
| LOW | crates/koharu-llama/src/model.rs | 301 | /// | COMMENT |
| LOW | crates/koharu-llama/src/model.rs | 381 | pub fn token_attr(&self, LlamaToken(id): LlamaToken) -> LlamaTokenAttrs { | COMMENT |
| LOW | crates/koharu-llama/src/model.rs | 421 | Ok(decode_piece(decoder, &bytes)) | COMMENT |
| LOW | crates/koharu-llama/src/model.rs | 501 | None, | COMMENT |
| LOW | crates/koharu-llama/src/model.rs | 721 | koharu_llama_sys::LLAMA_ROPE_TYPE_MROPE => Some(RopeType::MRope), | COMMENT |
| 168 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-llama-sys/include/mtmd-helper.h | 30 | // TODO @ngxson : allow "placeholder" bitmap output for counting tokens | COMMENT |
| LOW | …ges/koharu/tests/components/editor-components.test.tsx | 686 | expect(screen.getByTestId('type-size')).toHaveAttribute('placeholder', 'Auto') | CODE |
| LOW | …ges/koharu/tests/components/editor-components.test.tsx | 1501 | expect(input).toHaveAttribute('placeholder', 'Configured') | CODE |
| LOW | packages/koharu/public/locales/tr-TR/translation.json | 35 | "placeholder": "Koharu’dan bu proje üzerinde çalışmasını isteyin…", | CODE |
| LOW | packages/koharu/public/locales/wuu/translation.json | 35 | "placeholder": "让 Koharu 帮侬处理箇个项目…", | CODE |
| LOW | packages/koharu/public/locales/fr-FR/translation.json | 35 | "placeholder": "Demandez à Koharu de travailler sur ce projet…", | CODE |
| LOW | packages/koharu/public/locales/es-ES/translation.json | 35 | "placeholder": "Pide a Koharu que trabaje en este proyecto…", | CODE |
| LOW | packages/koharu/public/locales/ru-RU/translation.json | 35 | "placeholder": "Попросите Koharu поработать над проектом…", | CODE |
| LOW | packages/koharu/public/locales/ja-JP/translation.json | 35 | "placeholder": "Koharuにこのプロジェクトの作業を依頼…", | CODE |
| LOW | packages/koharu/public/locales/zh-CN/translation.json | 35 | "placeholder": "让 Koharu 处理此项目…", | CODE |
| LOW | packages/koharu/public/locales/zh-TW/translation.json | 35 | "placeholder": "讓 Koharu 處理此專案…", | CODE |
| LOW | packages/koharu/public/locales/ar/translation.json | 35 | "placeholder": "اطلب من Koharu العمل على هذا المشروع...", | CODE |
| LOW | packages/koharu/public/locales/ko-KR/translation.json | 35 | "placeholder": "Koharu에게 이 프로젝트 작업 요청…", | CODE |
| LOW | packages/koharu/public/locales/pt-BR/translation.json | 35 | "placeholder": "Peça ao Koharu para trabalhar neste projeto…", | CODE |
| LOW | packages/koharu/public/locales/en-US/translation.json | 35 | "placeholder": "Ask Koharu to work on this project...", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-llama-sys/include/ggml-backend.h | 215 | typedef ggml_backend_buffer_type_t (*ggml_backend_split_buffer_type_t)(int main_device, const float * tensor_split | CODE |
| LOW | packages/ui/src/components/chart.tsx | 330 | function getPayloadConfigFromPayload( | CODE |
| LOW | …ges/koharu/tests/components/editor-components.test.tsx | 246 | function SettingsNavigationHarness() { | CODE |
| LOW | …ges/koharu/tests/components/editor-components.test.tsx | 907 | function installLayerSelectionFixture() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-torch/src/vision/export_model.py | 2 | CODE | |
| LOW | crates/koharu-torch/src/vision/export_model.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-llama-sys/include/llama.h | 1089 | // TODO: implement get_embeddings() and get_logits() for llama_batch_ext | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/koharu-llama-sys/include/llama.h | 1321 | /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: https | COMMENT |