AI Slop Code RIsk Monitor

raullenchai/Rapid-MLX

Rapid-MLX is an open-source (Apache 2.0) OpenAI- and Anthropic-compatible LLM inference server for Apple Silicon, built on MLX, focused on reliable tool calling for coding agents. Up to 4× faster than Apple's MLX (mlx-lm) on the same weights.

29.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for raullenchai/Rapid-MLX, a Python project with 3,959 GitHub stars. SynthScan examined 1,453,040 lines of code across 3084 source files, recording 34911 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 29.8 (Elevated 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.

29.8
Adjusted Signal
29.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.0K
Stars
Python
Language
1.5M
Lines of Code
3.1K
Files
34.9K
Pattern Hits
2026-10-12
Scan Date
0.23
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 55.7/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 7.8/100 · LOW

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

Agent Over-Engineering Ratio 70.2/100 · HIGH

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

PR Review Velocity Impact 80.1/100 · CRITICAL

Which changes need focused human review? 34911 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 1HIGH 719MEDIUM 4215LOW 29976

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 34911 distinct pattern matches across 24 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.

Hyper-Verbose Identifiers21276 hits · 17832 pts
SeverityFileLineSnippetContext
LOWbench/bench_ltx_video.py550def _wait_for_process_group_exit(process_group_id: int, timeout: float = 10) -> bool:CODE
LOWrapid_mlx/_tempfile_safe.py106def _ensure_atexit_registered() -> None:CODE
LOWrapid_mlx/_mlx_compat.py105 def patched_new_thread_local_stream(device):CODE
LOWrapid_mlx/memory_cache.py195def _vendored_cache_class_names(cache: list[Any]) -> set[str]:CODE
LOWrapid_mlx/memory_cache.py210def _save_prompt_cache_compat(path: str, cache: list[Any], metadata: dict[str, str]):CODE
LOWrapid_mlx/memory_cache.py247def _checkpoints_sidecar_path(entry_path: str) -> str:CODE
LOWrapid_mlx/memory_cache.py252def _save_checkpoints_sidecar(path: str, cache: list[Any]) -> bool:CODE
LOWrapid_mlx/memory_cache.py293def _attach_checkpoints_sidecar(path: str, cache: list[Any], num_tokens: int) -> int:CODE
LOWrapid_mlx/memory_cache.py350def _load_prompt_cache_compat(path: str) -> list[Any]:CODE
LOWrapid_mlx/memory_cache.py640def _probe_write_bytes_per_sec(directory: str) -> float:CODE
LOWrapid_mlx/memory_cache.py676def _resolve_persist_min_free_disk_bytes() -> int:CODE
LOWrapid_mlx/memory_cache.py700def _persist_entry_disk_bytes(persist_cache: list[Any], num_tokens: int) -> int:CODE
LOWrapid_mlx/memory_cache.py937def _safetensors_cache_classes(path: str) -> list[str]:CODE
LOWrapid_mlx/memory_cache.py987def _cache_classes_compatible(CODE
LOWrapid_mlx/memory_cache.py1053def _resolve_env_cache_max_bytes() -> int:CODE
LOWrapid_mlx/memory_cache.py1845def _class_name_lies_about_trim(class_name: str) -> bool:CODE
LOWrapid_mlx/memory_cache.py2059def _turboquant_compress_cache(CODE
LOWrapid_mlx/memory_cache.py2112def _turboquant_decompress_cache(cache: list[Any]) -> list[Any]:CODE
LOWrapid_mlx/memory_cache.py2879 def _enforce_hybrid_bound_locked(self) -> list[tuple[int, ...]]:CODE
LOWrapid_mlx/_download_gate.py225def reap_orphan_incomplete_blobs(CODE
LOWrapid_mlx/_download_gate.py492def _escape_variant_glob_literal(name: str) -> str:CODE
LOWrapid_mlx/_download_gate.py612def estimate_download_size_bytes(repo_id: str) -> int | None:CODE
LOWrapid_mlx/_download_gate.py640def _is_model_weight_filename(name: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py665def _numbered_shards_are_complete(snap_dir: str) -> bool | None:CODE
LOWrapid_mlx/_download_gate.py823def _safe_safetensors_manifest_parts(value: object) -> tuple[str, ...] | None:CODE
LOWrapid_mlx/_download_gate.py967def _is_nonempty_snapshot_manifest_file(path: str, snap_dir: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py996def _root_model_files_all_non_empty(snap_dir: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py1187def _snapshot_is_complete_whisper_model(repo_id: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py1229def _snapshot_is_complete_audio_model(repo_id: str, family: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py1293def _snapshot_is_complete_split_model(repo_id: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py1402def split_model_local_snapshot(repo_id: str) -> str | None:CODE
LOWrapid_mlx/_download_gate.py1432def _snapshot_is_complete_wan_model(repo_id: str) -> bool:CODE
LOWrapid_mlx/_download_gate.py2055def _snapshot_is_complete_mflux_model(repo_id: str) -> bool:CODE
LOW⚡rapid_mlx/model_aliases.py1091def _managed_hub_model_is_runnable(name: str) -> bool:CODE
LOW⚡rapid_mlx/model_aliases.py1103def _resolve_external_model_path(name: str) -> str | None:CODE
LOWrapid_mlx/model_aliases.py517 def _optional_positive_number(key: str) -> float | None:CODE
LOWrapid_mlx/model_aliases.py840def _assert_subfolder_is_unambiguous(profiles: dict[str, AliasProfile]) -> None:CODE
LOWrapid_mlx/model_aliases.py930def _is_explicit_path_spelling(name: str) -> bool:CODE
LOWrapid_mlx/model_aliases.py936def _looks_like_local_model_dir(path: str) -> bool:CODE
LOWrapid_mlx/model_aliases.py1024def raise_if_draft_only_model(model_ref: object) -> None:CODE
LOWrapid_mlx/model_aliases.py1157def _external_model_tree_is_contained(directory: str, roots: list[str]) -> bool:CODE
LOWrapid_mlx/model_aliases.py1190def _external_model_root_values(raw: str) -> list[str]:CODE
LOWrapid_mlx/model_aliases.py1210def _external_model_identifier_parts(name: str) -> list[str] | None:CODE
LOWrapid_mlx/model_aliases.py1249def user_alias_reserved_names() -> frozenset[str]:CODE
LOW⚡rapid_mlx/server.py701async def _finish_primary_demand_load() -> None:CODE
LOW⚡rapid_mlx/server.py719async def _prepare_primary_idle_unload() -> None:CODE
LOW⚡rapid_mlx/server.py726def _mirror_primary_lifecycle_state(engine: object, state: str) -> None:CODE
LOW⚡rapid_mlx/server.py767def _emit_primary_model_served_once(engine: object) -> None:CODE
LOW⚡rapid_mlx/server.py776def _emit_audio_model_served_once(engine: object, model_name: str) -> None:CODE
LOW⚡rapid_mlx/server.py783def _emit_embedding_model_served_once(engine: object, model_name: str) -> None:CODE
LOW⚡rapid_mlx/server.py790async def _finish_primary_demand_load_and_emit(engine: object) -> None:CODE
LOW⚡rapid_mlx/server.py795def _build_primary_model_lifecycle(engine: object) -> PrimaryModelLifecycle:CODE
LOWrapid_mlx/server.py278def _bind_audio_worker_for_engine(engine: object | None) -> bool:CODE
LOWrapid_mlx/server.py417def _automatic_prefix_cache_persistence_enabled() -> bool:CODE
LOWrapid_mlx/server.py429async def _shutdown_save_prefix_cache() -> None:CODE
LOWrapid_mlx/server.py466async def _deferred_load_prefix_cache() -> None:CODE
LOWrapid_mlx/server.py501async def _drain_deferred_prefix_cache_load() -> None:CODE
LOWrapid_mlx/server.py626def _detect_hybrid_for_warmup(engine) -> bool:CODE
LOWrapid_mlx/server.py737def _enqueue_model_served_once(CODE
LOWrapid_mlx/server.py1770def _detect_native_tool_support() -> bool:CODE
21216 more matches not shown…
Decorative Section Separators3630 hits · 12952 pts
SeverityFileLineSnippetContext
MEDIUMinstall.sh16# ── Helpers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMinstall.sh45# ── Interpreter + venv helpers (also sourced by tests/install) ────────────────COMMENT
MEDIUMinstall.sh287# ── Banner ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMinstall.sh296# ── 1. Check platform ───────────────────────────────────────────────────────COMMENT
MEDIUMinstall.sh318# ── 2. Detect RAM → recommend model ──────────────────────────────────────────COMMENT
MEDIUMinstall.sh332# ── 3. Find or install Python 3.10+ ─────────────────────────────────────────COMMENT
MEDIUMinstall.sh413# ── 4. Migrate from old install location ─────────────────────────────────────COMMENT
MEDIUMinstall.sh421# ── 5. Create or update venv + install ───────────────────────────────────────COMMENT
MEDIUMinstall.sh463# ── 6. Create symlinks ──────────────────────────────────────────────────────COMMENT
MEDIUMinstall.sh479# ── 7. Ensure ~/.local/bin is in PATH ────────────────────────────────────────COMMENT
MEDIUMinstall.sh500# ── 8. Verify + done ────────────────────────────────────────────────────────COMMENT
MEDIUMrapid_mlx/memory_cache.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py131# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py1751# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py1753# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py1806# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py1808# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py3081 # -----------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/memory_cache.py3083 # -----------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py100# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py102# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py260# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py262# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py440# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py442# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py509# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/front_door.py511# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/_download_gate.py374# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/_download_gate.py390# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/server.py3547# =============================================================================COMMENT
MEDIUM⚡rapid_mlx/server.py3550# =============================================================================COMMENT
MEDIUMrapid_mlx/server.py1749# ── Wire the unified exception handlers onto the production app ─────COMMENT
MEDIUMrapid_mlx/server.py3397# =============================================================================COMMENT
MEDIUMrapid_mlx/server.py3399# =============================================================================COMMENT
MEDIUMrapid_mlx/server.py3642# =============================================================================COMMENT
MEDIUMrapid_mlx/server.py3644# =============================================================================COMMENT
MEDIUMrapid_mlx/first_run.py69# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/first_run.py71# --------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/first_run.py125# --------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/first_run.py127# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/first_run.py163# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/first_run.py165# --------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/first_run.py211# --------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/first_run.py213# --------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/response_cache.py246# ── Determinism gate ──────────────────────────────────────────────────COMMENT
MEDIUMrapid_mlx/response_cache.py275# ── Cache key ─────────────────────────────────────────────────────────COMMENT
MEDIUMrapid_mlx/response_cache.py397# ── Module singleton ──────────────────────────────────────────────────COMMENT
MEDIUMrapid_mlx/benchmark.py73# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py75# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py223# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py225# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py620# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py622# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py1166# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py1168# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py1737# =============================================================================COMMENT
MEDIUMrapid_mlx/benchmark.py1739# =============================================================================COMMENT
MEDIUM⚡rapid_mlx/turboquant.py754# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡rapid_mlx/turboquant.py756# ---------------------------------------------------------------------------COMMENT
MEDIUMrapid_mlx/turboquant.py141# ---------------------------------------------------------------------------COMMENT
3570 more matches not shown…
Over-Commented Block4068 hits · 3222 pts
SeverityFileLineSnippetContext
LOWpytest.ini21addopts =COMMENT
LOWpyproject.toml41 # default_stream / new_stream / new_thread_local_stream) are materialisedCOMMENT
LOWpyproject.toml61 # (and therefore every serve / gemma-4 / DiffusionGemma launch) raisesCOMMENT
LOWpyproject.toml81 # dedicated bump PR + Phase-0 re-audit rather than pinning here.COMMENT
LOWpyproject.toml101 "certifi>=2024.2.2",COMMENT
LOWpyproject.toml121 # The Homebrew formula handles activation automatically.COMMENT
LOWpyproject.toml141 # mask kernel via ``llguidance.mlx``). PROMOTED FROM THE [guided] EXTRACOMMENT
LOWpyproject.toml161 # imported lazily; tests/test_base_runtime_lazy_imports.py guards the CLICOMMENT
LOWpyproject.toml201 # constraints and can also advance CLI users beyond the Desktop's validatedCOMMENT
LOWpyproject.toml221# assistant-drafter loader inCOMMENT
LOWpyproject.toml301 "tiktoken>=0.5.0",COMMENT
LOWpyproject.toml321# been crashing across multiple fix waves because pytest-asyncioCOMMENT
LOWpyproject.toml341 "prometheus_client>=0.16.0",COMMENT
LOWpyproject.toml361 # Powers pr_validate's ADVISORY diff_coverage step (measure-only, neverCOMMENT
LOWpyproject.toml381# — MLX is legitimate there (it IS the engine).COMMENT
LOWpyproject.toml461 # diff-cover major-pinned (parser couples to its footer) — see [test] note.COMMENT
LOWpyproject.toml481# in guided.py's degrade warning and referenced across docs — keepsCOMMENT
LOWpyproject.toml501 "scipy>=1.10.0",COMMENT
LOWpyproject.toml521 # property-only ``data_path`` accessor — so the legacy APICOMMENT
LOWpyproject.toml541# those families in the full [audio] extra avoids making the public engineCOMMENT
LOWpyproject.toml561 "imageio[ffmpeg]>=2.34.0; platform_system == 'Darwin' and python_version >= '3.11'",COMMENT
LOWpyproject.toml621 # Telemetry v2 release stamp -- written ONLY by the release workflowCOMMENT
LOWpyproject.toml761# and rationale in rapid_mlx/models/gemma4_vendored/__init__.py.COMMENT
LOWpyproject.toml781# lint exceptions local so the Rapid-owned engine integration stays strict.COMMENT
LOWrapid_mlx/_tempfile_safe.py301 # under the same lock). Without this, the prior shapeCOMMENT
LOWrapid_mlx/_tempfile_safe.py321 # Codex round-3 BLOCKING: unlink BEFORE discarding fromCOMMENT
LOWrapid_mlx/_mlx_compat.py61COMMENT
LOWrapid_mlx/memory_cache.py81 headroom = cap - max(0, int(resident_bytes or 0))COMMENT
LOWrapid_mlx/memory_cache.py121 DeepseekV4PoolingCache,COMMENT
LOWrapid_mlx/memory_cache.py141# in every ``entry_K_tokens.bin`` — guarantees the entry file cameCOMMENT
LOWrapid_mlx/memory_cache.py161# previous deploy (legacy-mode tokens.bin), then re-save under v3.COMMENT
LOWrapid_mlx/memory_cache.py1381 # an mlx_lm.load_prompt_cache exception) bumps this counter so theCOMMENT
LOWrapid_mlx/memory_cache.py1441 "memory_utilization": round(self.memory_utilization, 4),COMMENT
LOWrapid_mlx/memory_cache.py1461COMMENT
LOWrapid_mlx/memory_cache.py1481 # Protection is set by the CALLER and is NOT the same for the two disk-loadCOMMENT
LOWrapid_mlx/memory_cache.py1761# differs → every key is a unique superset), so prefix-subset evictionCOMMENT
LOWrapid_mlx/memory_cache.py1781# ``is_trimmable()``, so we match ``class_name`` against a DENYLIST of theCOMMENT
LOWrapid_mlx/memory_cache.py1801 # Lenient substring match for vendor/variant names (e.g. "MambaCache2",COMMENT
LOWrapid_mlx/memory_cache.py1821# advances ``start_position``). Trimming a front-dropped instance back toCOMMENT
LOWrapid_mlx/memory_cache.py2181COMMENT
LOWrapid_mlx/memory_cache.py2201 self._shared_refs: dict[int, list[Any]] = {}COMMENT
LOWrapid_mlx/memory_cache.py2321 return cache_out, []COMMENT
LOWrapid_mlx/memory_cache.py2361 # lookup above, so any terminal we find here is strictlyCOMMENT
LOWrapid_mlx/memory_cache.py2621 # If ANY layer is a non-trimmable recurrent-state cache (ArraysCache /COMMENT
LOWrapid_mlx/memory_cache.py3181 # with a concurrent reader) would silently leave stale entryCOMMENT
LOWrapid_mlx/memory_cache.py3261 # single in-flight ``save_prompt_cache`` call can run past theCOMMENT
LOWrapid_mlx/memory_cache.py3301 )COMMENT
LOWrapid_mlx/memory_cache.py3441 # BEFORE the rename. Open errors are non-fatal —COMMENT
LOWrapid_mlx/memory_cache.py3501 f"or set {PREFIX_CACHE_MIN_FREE_DISK_BYTES_ENV} (bytes, 0 "COMMENT
LOWrapid_mlx/memory_cache.py3521 # in our staging dir that disagrees with what we just claimed inCOMMENT
LOWrapid_mlx/memory_cache.py3621 # wrong both when we aborted early AND when some entry filesCOMMENT
LOWrapid_mlx/memory_cache.py3701 # Catch FileNotFoundError as a final guard against the recheckCOMMENT
LOWrapid_mlx/memory_cache.py3721 # cleanly, not raise a traceback up to the lifespan handler.COMMENT
LOWrapid_mlx/memory_cache.py3741 # cache_dir mid-rename, observed on macOS Spotlight rebuilds)COMMENT
LOWrapid_mlx/memory_cache.py3821 )COMMENT
LOWrapid_mlx/memory_cache.py4041 if version > _TOKENS_FORMAT_VERSION_IN_INDEX:COMMENT
LOWrapid_mlx/memory_cache.py4101 # BLOCKING-1 (#1100 codex round 2): STAGE-then-SWAP for theCOMMENT
LOWrapid_mlx/memory_cache.py4121 # In replace mode dedup + memory-fit are evaluated against theCOMMENT
LOWrapid_mlx/memory_cache.py4141 # forfeit the atomic all-or-nothing contract — not worth it for anCOMMENT
LOWrapid_mlx/memory_cache.py4321 if staged_memory + memory > self._max_memory:COMMENT
4008 more matches not shown…
Empty Error Handlers533 hits · 2615 pts
SeverityFileLineSnippetContext
HIGHbench/bench_ltx_video.py117except (psutil.Error, OSError):CODE
HIGHbench/bench_ltx_video.py492except (json.JSONDecodeError, KeyError, TypeError):CODE
HIGHbench/bench_ltx_video.py595except ProcessLookupError:CODE
HIGHbench/bench_ltx_video.py859except OSError:CODE
HIGHbench/bench_ltx_video.py866except (OSError, ValueError):CODE
HIGHrapid_mlx/_tempfile_safe.py97except FileNotFoundError:CODE
HIGHrapid_mlx/_tempfile_safe.py99except OSError:CODE
HIGHrapid_mlx/_tempfile_safe.py248except OSError:CODE
HIGHrapid_mlx/_tempfile_safe.py273except BaseException: # noqa: BLE001 — best-effortCODE
HIGHrapid_mlx/_tempfile_safe.py279except OSError:CODE
HIGHrapid_mlx/_tempfile_safe.py283except OSError:CODE
HIGHrapid_mlx/_tempfile_safe.py344except OSError:CODE
HIGHrapid_mlx/memory_cache.py451except OSError:CODE
HIGHrapid_mlx/memory_cache.py660except OSError:CODE
HIGHrapid_mlx/memory_cache.py740except OSError:CODE
HIGHrapid_mlx/memory_cache.py287except OSError:CODE
HIGHrapid_mlx/memory_cache.py1232except (TypeError, ValueError):CODE
HIGHrapid_mlx/memory_cache.py4515except Exception: # pragma: no cover — defensiveCODE
HIGHrapid_mlx/_download_gate.py370except OSError:CODE
HIGHrapid_mlx/_download_gate.py474except OSError:CODE
HIGHrapid_mlx/_download_gate.py818except OSError:CODE
HIGHrapid_mlx/_download_gate.py1170except Exception:CODE
HIGHrapid_mlx/_download_gate.py368except FileNotFoundError:CODE
HIGHrapid_mlx/_download_gate.py449except FileNotFoundError:CODE
HIGHrapid_mlx/_download_gate.py458except OSError:CODE
HIGHrapid_mlx/model_aliases.py1202except (TypeError, ValueError):CODE
HIGHrapid_mlx/server.py662except Exception:CODE
HIGHrapid_mlx/server.py2559except Exception: # stale prior identity; current request still owns loadCODE
HIGHrapid_mlx/server.py2940except Exception: # pragma: no cover — defensiveCODE
HIGHrapid_mlx/server.py3667except BaseException:CODE
HIGHrapid_mlx/mllm_cache_compat.py61except ImportError:CODE
HIGHrapid_mlx/user_aliases.py153except FileNotFoundError:CODE
HIGHrapid_mlx/user_aliases.py179except OSError:CODE
HIGHrapid_mlx/benchmark.py101except Exception:CODE
HIGHrapid_mlx/qwen35_fused_gdn_decode.py417except Exception:CODE
HIGHrapid_mlx/optimizations.py92except Exception:CODE
HIGHrapid_mlx/hybrid_state_checkpoints.py226except Exception:CODE
HIGHrapid_mlx/hybrid_state_checkpoints.py238except Exception:CODE
HIGHrapid_mlx/_parent_watchdog.py125except Exception: # pragma: no cover — defensive against broken stderrCODE
HIGHrapid_mlx/_parent_watchdog.py129except Exception: # pragma: no cover — defensiveCODE
HIGHrapid_mlx/_parent_watchdog.py145except OSError: # pragma: no coverCODE
HIGHrapid_mlx/output_router_harmony.py573except TypeError:CODE
HIGHrapid_mlx/_version_check.py189except OSError:CODE
HIGHrapid_mlx/_version_check.py356except Exception: # noqa: BLE001 — never break the CLICODE
HIGHrapid_mlx/engine_core.py1951except Exception:CODE
HIGHrapid_mlx/engine_core.py537except asyncio.CancelledError:CODE
HIGHrapid_mlx/engine_core.py972except asyncio.TimeoutError:CODE
HIGHrapid_mlx/engine_core.py877except Exception:CODE
HIGHrapid_mlx/engine_core.py1076except Exception:CODE
HIGHrapid_mlx/engine_core.py997except Exception:CODE
HIGHrapid_mlx/engine_core.py1122except Exception:CODE
HIGHrapid_mlx/_uvicorn.py141except KeyboardInterrupt:CODE
HIGHrapid_mlx/_uvicorn.py109except Exception:CODE
HIGHrapid_mlx/cli.py132except Exception:CODE
HIGHrapid_mlx/cli.py152except Exception:CODE
HIGHrapid_mlx/cli.py868except BaseException: # noqa: BLE001 — see comment aboveCODE
HIGHrapid_mlx/cli.py1045except Exception: # pragma: no cover — defensiveCODE
HIGHrapid_mlx/cli.py1055except Exception: # pragma: no cover — defensiveCODE
HIGHrapid_mlx/cli.py1552except Exception:CODE
HIGHrapid_mlx/cli.py1652except Exception:CODE
473 more matches not shown…
Unused Imports1750 hits · 1506 pts
SeverityFileLineSnippetContext
LOWbench/repro_mtp_forced_k_parity.py13CODE
LOWbench/bench_continuous_mtp_server.py13CODE
LOWbench/bench_qwen4_prompt_lookup.py4CODE
LOWbench/bench_spec_decode_mtp.py39CODE
LOWbench/repro_ppt_qwen35_9b_colab.py8CODE
LOWbench/bench_ltx_video.py11CODE
LOWbench/bench_radix_vs_hash.py44CODE
LOWrapid_mlx/_tempfile_safe.py65CODE
LOWrapid_mlx/_mlx_compat.py43CODE
LOWrapid_mlx/leaderboard_links.py16CODE
LOWrapid_mlx/_pysample.py12CODE
LOWrapid_mlx/memory_cache.py25CODE
LOWrapid_mlx/memory_cache.py3165CODE
LOWrapid_mlx/memory_cache.py4018CODE
LOWrapid_mlx/front_door.py23CODE
LOWrapid_mlx/_seeded_sampler.py52CODE
LOWrapid_mlx/chat_render.py4CODE
LOWrapid_mlx/_download_gate.py43CODE
LOWrapid_mlx/_banner.py15CODE
LOWrapid_mlx/server.py59CODE
LOWrapid_mlx/server.py89CODE
LOWrapid_mlx/server.py89CODE
LOWrapid_mlx/server.py93CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py94CODE
LOWrapid_mlx/server.py120CODE
LOWrapid_mlx/server.py120CODE
LOWrapid_mlx/server.py120CODE
LOWrapid_mlx/server.py120CODE
LOWrapid_mlx/server.py120CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
LOWrapid_mlx/server.py127CODE
1690 more matches not shown…
Excessive Try-Catch Wrapping1479 hits · 1290 pts
SeverityFileLineSnippetContext
LOWbench/bench_spec_decode_mtp.py679 except Exception as exc: # pragma: no cover — benchCODE
LOWbench/bench_ltx_video.py1347 except Exception as exc:CODE
LOWbench/bench_ltx_video.py1355 except Exception as exc:CODE
LOWbench/bench_ltx_video.py1433 except Exception:CODE
LOWrapid_mlx/mllm_cache.py156 except Exception as e:CODE
LOWrapid_mlx/memory_cache.py283 except Exception as exc:CODE
LOWrapid_mlx/memory_cache.py343 except Exception as exc:CODE
LOWrapid_mlx/memory_cache.py1042 except Exception as e:CODE
LOWrapid_mlx/memory_cache.py1941 except Exception: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py2352 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py2740 except Exception as exc: # pragma: no coverCODE
LOWrapid_mlx/memory_cache.py2782 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py2864 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py2957 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py2990 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py3037 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py3485 except Exception as e:CODE
LOWrapid_mlx/memory_cache.py4406 except Exception as e:CODE
LOWrapid_mlx/memory_cache.py4476 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py4515 except Exception: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py4540 except Exception as exc: # pragma: no cover — defensiveCODE
LOWrapid_mlx/memory_cache.py4570 except Exception as rexc: # pragma: no coverCODE
LOWrapid_mlx/front_door.py125 except Exception:CODE
LOWrapid_mlx/front_door.py158 except Exception:CODE
LOWrapid_mlx/front_door.py180 except Exception:CODE
LOWrapid_mlx/front_door.py212 except Exception:CODE
LOWrapid_mlx/front_door.py373 except Exception:CODE
LOWrapid_mlx/front_door.py730 except Exception as exc:CODE
LOWrapid_mlx/front_door.py766 except Exception as exc: # the foreground server must outlive a bad launchCODE
MEDIUMrapid_mlx/_download_gate.py323def _call() -> None:CODE
MEDIUMrapid_mlx/_download_gate.py538def _call() -> None:CODE
LOWrapid_mlx/_download_gate.py326 except Exception as exc: # pragma: no cover - defensiveCODE
LOWrapid_mlx/_download_gate.py403 except Exception:CODE
LOWrapid_mlx/_download_gate.py541 except Exception as exc: # pragma: no cover - defensiveCODE
LOWrapid_mlx/_download_gate.py594 except Exception:CODE
LOWrapid_mlx/_download_gate.py636 except Exception:CODE
LOWrapid_mlx/_download_gate.py1170 except Exception:CODE
LOWrapid_mlx/_download_gate.py1225 except Exception:CODE
LOWrapid_mlx/_download_gate.py1289 except Exception:CODE
LOWrapid_mlx/_download_gate.py1398 except Exception:CODE
LOWrapid_mlx/_download_gate.py1427 except Exception:CODE
LOWrapid_mlx/_download_gate.py1582 except Exception:CODE
LOWrapid_mlx/_download_gate.py1921 except Exception:CODE
LOWrapid_mlx/_download_gate.py2069 except Exception:CODE
LOWrapid_mlx/_download_gate.py2127 except Exception:CODE
LOW⚡rapid_mlx/model_aliases.py1099 except Exception:CODE
LOWrapid_mlx/model_aliases.py888 except Exception:CODE
LOWrapid_mlx/model_aliases.py965 except Exception: # noqa: BLE001 — the probe must never break resolutionCODE
LOWrapid_mlx/model_aliases.py993 except Exception: # noqa: BLE001 — the gate must never break resolutionCODE
LOWrapid_mlx/model_aliases.py1255 except Exception:CODE
LOWrapid_mlx/model_aliases.py1337 except Exception:CODE
MEDIUMrapid_mlx/server.py3651def wrapped(*args, **kwargs):CODE
LOW⚡rapid_mlx/server.py694 except Exception as exc: # noqa: BLE001CODE
LOW⚡rapid_mlx/server.py696 except Exception as exc: # noqa: BLE001CODE
LOW⚡rapid_mlx/server.py710 except Exception as exc: # noqa: BLE001CODE
LOW⚡rapid_mlx/server.py761 except Exception:CODE
LOW⚡rapid_mlx/server.py3529 except Exception as e: # pragma: no cover - defensiveCODE
LOW⚡rapid_mlx/server.py3537 except Exception as e:CODE
LOWrapid_mlx/server.py497 except Exception as _e: # noqa: BLE001CODE
LOWrapid_mlx/server.py520 except Exception as _e: # noqa: BLE001CODE
1419 more matches not shown…
AI Slop Vocabulary267 hits · 835 pts
SeverityFileLineSnippetContext
MEDIUMinstall.sh271# When sourced by the test harness we only want the definitions above, not theCOMMENT
MEDIUMrapid_mlx/memory_cache.py4627 # historical — but running the enforcer keeps the invariant robust.COMMENT
MEDIUMrapid_mlx/server.py4139 # in-process ``main()`` call (test harness, embedded usage) withoutCOMMENT
LOWrapid_mlx/output_collector.py70 # Replace: just use the new outputCOMMENT
MEDIUMrapid_mlx/benchmark.py441 """Explain quantum computing in comprehensive detail. You should cover all of the following topics thoroughly:STRING
MEDIUMrapid_mlx/benchmark.py448 """Write a comprehensive and detailed guide to building a production-ready REST API with Python Flask. Include aSTRING
MEDIUMrapid_mlx/client_header.py32#: The agent runtime / agent test harness.COMMENT
MEDIUMrapid_mlx/cli.py6344 # in-process ``serve_command`` call (test harness, embedded usage)COMMENT
MEDIUMrapid_mlx/cli.py7730 # produces a partial harness payload (only the filtered keys), whichCOMMENT
MEDIUMrapid_mlx/cli.py7733 # ``--tier harness --base-url`` (no --submit) — but a future callerCOMMENT
MEDIUMrapid_mlx/cli.py7765 # Phase 1: run the tier dispatcher to capture smoke/harness data.COMMENT
MEDIUMrapid_mlx/cli.py8294 # requested smoke/harness work for the schema-v2 sub-objects andCOMMENT
MEDIUMrapid_mlx/cli.py10679 # snapshot_download will retry from HF with its own (more robust)COMMENT
MEDIUMrapid_mlx/cli.py13295 # exceeds the old hardcoded 15 (e.g. "deepseek-harness", 16 chars)COMMENT
MEDIUMrapid_mlx/scheduler.py1588 # (this only happens under bench harness callers, where uids areCOMMENT
MEDIUMrapid_mlx/scheduler.py2039 # behaviour of honouring the disable — under bench-harnessCOMMENT
MEDIUMrapid_mlx/scheduler.py2104 # If ``uid_to_request_id`` is not plumbed (bench harness)COMMENT
MEDIUMrapid_mlx/scheduler.py2293 # bookkeeping map is None (bench-harness path) — theCOMMENT
MEDIUMrapid_mlx/scheduler.py2312 # plumbed (bench harness); the reuse gate treatsCOMMENT
MEDIUMrapid_mlx/scheduler.py4776 # bench harness, embedded test stubs) that constructCOMMENT
MEDIUMrapid_mlx/scheduler.py7818 # this helper is robust against fakes / older cache variantsCOMMENT
MEDIUMrapid_mlx/scheduler.py11598 # Guarded by an import-try so a fresh test harness that doesn'tCOMMENT
MEDIUMrapid_mlx/model_profile.py368 # This is harness metadata only and does not alter serving or parser routing.COMMENT
MEDIUMrapid_mlx/_mxfp4_moe_guardrail.py178 # that is robust against that env contamination AND gives theCOMMENT
MEDIUMrapid_mlx/kv_quant_gate.py226 # Shape mismatch is a harness bug, not a model signal — skip the step.COMMENT
MEDIUMrapid_mlx/mllm_batch_generator.py3249 # hash (robust to the per-request temp-file paths ``all_images`` holds).COMMENT
MEDIUMrapid_mlx/tool_parsers/ui_tars_tool_parser.py143 # The space-and-paren forms make these robust against shuffledCOMMENT
MEDIUMrapid_mlx/tool_parsers/ui_tars_tool_parser.py834 # the Anthropic computer-tool harness) receive the documentedCOMMENT
MEDIUMrapid_mlx/middleware/probe_fastpath.py228 # state (lifespan crash, embedded harness mid-tear-COMMENT
LOWrapid_mlx/middleware/body_size.py103# endpoints have no body and the middleware would just add overhead.COMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_langchain.py11# ``results`` is read by the ``rapid-mlx bench --tier harness`` pathCOMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_langchain.py14# It MUST be defined at module level so the harness can pick it up — PRCOMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_langchain.py16# ``pytest`` collection from triggering ``exit()``, which left the harnessCOMMENT
MEDIUMrapid_mlx/_integration_tests/test_langchain.py209# 2. Harness load: ``rapid-mlx bench --tier harness`` callsCOMMENT
MEDIUMrapid_mlx/_integration_tests/test_langchain.py213# PR #660 fix without re-introducing the empty-results harness bug.COMMENT
MEDIUMrapid_mlx/_integration_tests/test_aider.sh2# Aider CLI integration harness against a running `rapid-mlx serve`.COMMENT
MEDIUMrapid_mlx/_integration_tests/test_aider.sh46# aborts the harness instead of running aider from the wrong directory.COMMENT
MEDIUMrapid_mlx/_integration_tests/test_aider.sh109# could leak a running ``aider``/LiteLLM process past harness exit. WeCOMMENT
MEDIUMrapid_mlx/_integration_tests/test_aider.sh187# of aborting the harness before we can print the diagnostic tail.COMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_hermes.py163 # for this specific harness setup. Caller should SKIP.COMMENT
MEDIUMrapid_mlx/_integration_tests/test_hermes.py40 # The file ships as a runtime doctor harness; pytest is optional there.COMMENT
MEDIUMrapid_mlx/bench/pflash_replication.py92 # opt-in replication harness would be more code than theCOMMENT
MEDIUMrapid_mlx/bench/pflash_replication.py93 # harness itself; the maintainer running the bench can compareCOMMENT
MEDIUM⚡rapid_mlx/bench/tier_runner.py36# ``--tier harness`` and the release_check_m3.sh G7b gate. Keep thisCOMMENT
MEDIUM⚡rapid_mlx/bench/tier_runner.py39# — if a harness is added/removed here, both must be updated too.COMMENT
MEDIUM⚡rapid_mlx/bench/tier_runner.py41# ``deepseek-harness`` is appended rather than slotted in beside the otherCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py144# Per-profile wall-clock cap for the harness sweep. One bad harnessCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py158# Server health-probe timeout used between harness profiles. The probeCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1083 # Render a human-readable summary line per harness.COMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1193 # the active-server release into the harness session and let itCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1203 # NOTE: do NOT swallow exceptions here. The harness sessionCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1220 # outer ``with`` so a tier added after harness sees the rightCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1354 # Hand the harness sweep a session that can health-checkCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1378 # DON'T close the session here even though harness isCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py1390 # adding a tier AFTER harness in the future won't seeCOMMENT
MEDIUMrapid_mlx/bench/tier_runner.py190 name: str # "smoke" | "speed" | "harness"CODE
MEDIUMrapid_mlx/bench/tier_runner.py9 rapid-mlx bench <model> --tier all # smoke → speed → harnessSTRING
MEDIUMrapid_mlx/agents/setup.py417 # 0.2 contract (issues #4040, harness-lab 2026-10-02): the sameCOMMENT
MEDIUM⚡rapid_mlx/agents/testing.py1062 # advertised context window is below what the harness's tool-richCOMMENT
MEDIUM⚡rapid_mlx/agents/testing.py1067 # and report FAIL — which is dishonest, it's a harness-configCOMMENT
207 more matches not shown…
Cross-Language Confusion147 hits · 809 pts
SeverityFileLineSnippetContext
HIGHrapid_mlx/_download_gate.py2034 # A non-string value (list, number, null) is enough to makeCOMMENT
HIGHrapid_mlx/log_file.py63 return "discarded (/dev/null)"CODE
HIGH⚡rapid_mlx/kv_quant_gate.py166 mean_kl: Mean forward KL ``D(P_baseline || P_candidate)`` in nats overSTRING
HIGHrapid_mlx/kv_quant_gate.py323 null). Used to require the candidate to preserve the baseline's structure.STRING
HIGHrapid_mlx/qwen35_moe_router.py61 if (best == group_best && best_i == group_best_i) {CODE
HIGHrapid_mlx/tool_parsers/muse_tool_parser.py325 * ``null`` -> None only when the schema explicitly permits null;STRING
HIGHrapid_mlx/tool_parsers/gemma4_tool_parser.py441 # Try to parse as JSON literal (int, float, bool, null). CatchCOMMENT
HIGHrapid_mlx/middleware/body_size.py579 "code": "request_too_large", "param": null}}STRING
HIGHrapid_mlx/kernels/qsa_indexed_splitk.py193 valid_key = key_index >= 0 && key_index < key_length;CODE
HIGHrapid_mlx/kernels/qsa_block_sparse.py64 if (physical_start < 0 || physical_start > key_length - BLOCK_SIZE) {CODE
HIGHrapid_mlx/kernels/qsa_block_sparse.py113 if (key_index < 0 || key_index >= key_length) {CODE
HIGHrapid_mlx/kernels/qwen4_fused_gdn_decode.py187 return (lo == -inf || hi == inf)CODE
HIGHrapid_mlx/kernels/lane_matmul/matmul.py118 if (m < M && n < N)CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py267 if (n < N && c == 0) OUT[size_t(r) * N + n] = bfloat(v);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py353 if (row < R && n < N) OUT[size_t(row) * N + n] = bfloat(acc[rt][t][e]);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py370 if (row < R && n < N) OUT[size_t(row) * N + n] = bfloat(v[0]);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py540 if (row < R && n < N) OUT[size_t(row) * N + n] = bfloat(acc[rt][t][e]);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py557 if (row < R && n < N) OUT[size_t(row) * N + n] = bfloat(v[0]);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py660 if (n < N && c == 0) OUT[size_t(r) * N + n] = bfloat(v);CODE
HIGHrapid_mlx/kernels/lane_matmul/simd.py743 if (lane == 0 && n0 + u < N) OUT[size_t(r0 + r) * N + n0 + u] = bfloat(total);CODE
HIGHrapid_mlx/headless_service/logs.py77 "note: the service discards server output (--log-file /dev/null); "CODE
HIGHrapid_mlx/headless_service/install.py181 "/dev/null, /dev/stderr or /dev/stdout."CODE
HIGHrapid_mlx/runtime/optional_runtime.py113 f" brew uninstall rapid-mlx && uv tool install {shlex.quote(pinned)}"CODE
HIGHrapid_mlx/runtime/base_runtime.py60 f" brew uninstall rapid-mlx && uv tool install 'rapid-mlx=={version}'"CODE
HIGHrapid_mlx/utils/chat_template.py1429 is undefined, while arbitrary outer conditions make the advertisedSTRING
HIGHrapid_mlx/mcp/types.py41 ``{"mcpServers": null}``) raises rather than silently falling back.STRING
HIGHrapid_mlx/models/gemma4_text.py640 # * ``None`` reaching here means the key was ABSENT (not explicit null,COMMENT
HIGHrapid_mlx/models/gemma4_text.py660 # ``TypeError`` on a ``None`` that reached it via an explicit config null).COMMENT
HIGHrapid_mlx/models/gemma4_vendored/__init__.py8lean; but a fresh `pip install rapid-mlx==0.10.0 && rapid-mlx serveSTRING
HIGH…pid_mlx/models/deepseek_v41_native/affine_route_qmv.py30 if (route >= ROUTES || output_base >= OUT) {CODE
HIGH…pid_mlx/models/deepseek_v41_native/affine_route_qmv.py93 if (lane == 0 && output_base + result < OUT) {CODE
HIGHrapid_mlx/spec_decode/mtp/quantized_argmax.py179 if (simd_gid == 0 && simd_lid == 0) {CODE
HIGHrapid_mlx/community_bench/hardware.py159 submission still ships without it (schema allows null).STRING
HIGHrapid_mlx/api/models.py523# null, garbage like ``"banana"``) with HTTP 200 — the field wasCOMMENT
HIGHrapid_mlx/api/models.py977 # the null, but many existing clients (and the response shapeCOMMENT
HIGHrapid_mlx/api/models.py1877 # bool, null) are rejected with a clear envelope BEFORE Pydantic'sCOMMENT
HIGHrapid_mlx/api/tool_grammar.py1095 * EVERYTHING ELSE (number / integer / boolean / object / array / null) ->STRING
HIGHrapid_mlx/api/responses_adapter.py517 shape). Only a non-null string counts; ``{"effort": null}`` /STRING
HIGHrapid_mlx/service/helpers.py2153 # NON-NULL ``effort`` only: ``reasoning={"effort": null}`` andCOMMENT
HIGHrapid_mlx/routes/models.py716 three-way (text / image / null) shape instead of the documentedSTRING
HIGHrapid_mlx/routes/health.py463 # Always emit an object (never null) so dashboards with strictCOMMENT
HIGHrapid_mlx/routes/chat.py1728 # ABSENT (or null) ``parameters`` == the tool takes NO arguments.COMMENT
HIGHrapid_mlx/routes/anthropic.py1472 # (explicit null) are accepted by the count_tokens contract —COMMENT
HIGHevals/coherence_gate.py108 f"assistant content must be a string or null, got {type(content).__name__}"CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py553 return r.width > 2 && r.height > 2 && s.visibility !== 'hidden' &&CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py554 s.display !== 'none' && r.bottom > 0 && r.right > 0 &&CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py555 r.top < innerHeight && r.left < innerWidth;CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py566 const label = String(e.innerText || e.value || e.getAttribute('aria-label') ||CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py567 e.placeholder || e.title || e.alt || '').trim().replace(/\s+/g, ' ').slice(0, 200);CODE
HIGH⚡tools/gui_verifier_cua_poc/run_poc.py577 sponsored: card ? /(^|\s)Sponsored(\s|$)/i.test(cardText) : null,CODE
HIGHtools/gui_verifier_cua_poc/run_poc.py679 text: String(a.innerText || a.value || a.getAttribute?.('aria-label') || a.placeholder || '').trim().replaceCODE
HIGH⚡tests/test_gemma4_grammar_558.py1009 "code", ["a < b && c > d", "vector<int> v", "obj = {x:1}", "print('ok')"]CODE
HIGHtests/test_gemma4_grammar_558.py796 "a < b && c > d",CODE
HIGHtests/test_reasoning_content_null_rescue.py1023 strict-null, but the sentinel-absence assertion is whatSTRING
HIGHtests/test_envelope_field_extraction.py11 "param":null,"code":null}}STRING
HIGH⚡tests/test_dev_verify.py249 ("synthetic:fail", "lint", "echo before-failure && exit 3"),CODE
HIGH⚡tests/test_dev_verify.py509 command="echo build-boom && exit 1",CODE
HIGHtests/test_dev_verify.py462 monkeypatch.setattr(dev_verify, "LINT_COMMAND", "echo boom-from-test && exit 9")CODE
HIGHtests/test_no_pydantic_error_leak.py15 "v/missing","type":"invalid_request_error","code":null,STRING
HIGHtests/test_no_pydantic_error_leak.py16 "param":null}}STRING
87 more matches not shown…
Deep Nesting913 hits · 682 pts
SeverityFileLineSnippetContext
LOWbench/repro_mtp_forced_k_parity.py200CODE
LOWbench/bench_spec_decode_mtp.py612CODE
LOWbench/bench_ltx_video.py455CODE
LOWbench/bench_ltx_video.py614CODE
LOWbench/bench_ltx_video.py1380CODE
LOWrapid_mlx/_tempfile_safe.py201CODE
LOWrapid_mlx/mllm_cache.py102CODE
LOWrapid_mlx/_pysample.py36CODE
LOWrapid_mlx/_pysample.py50CODE
LOWrapid_mlx/_pysample.py76CODE
LOWrapid_mlx/memory_cache.py293CODE
LOWrapid_mlx/memory_cache.py350CODE
LOWrapid_mlx/memory_cache.py803CODE
LOWrapid_mlx/memory_cache.py1178CODE
LOWrapid_mlx/memory_cache.py1545CODE
LOWrapid_mlx/memory_cache.py2271CODE
LOWrapid_mlx/memory_cache.py2295CODE
LOWrapid_mlx/memory_cache.py2585CODE
LOWrapid_mlx/memory_cache.py3085CODE
LOWrapid_mlx/memory_cache.py3868CODE
LOWrapid_mlx/_download_gate.py708CODE
LOWrapid_mlx/_download_gate.py1293CODE
LOWrapid_mlx/_download_gate.py1432CODE
LOWrapid_mlx/_download_gate.py1735CODE
LOWrapid_mlx/model_aliases.py136CODE
LOWrapid_mlx/model_aliases.py1103CODE
LOWrapid_mlx/model_aliases.py1157CODE
LOWrapid_mlx/server.py2264CODE
LOWrapid_mlx/server.py3026CODE
LOWrapid_mlx/benchmark.py769CODE
LOWrapid_mlx/benchmark.py1837CODE
LOWrapid_mlx/qwen35_fused_gdn_decode.py221CODE
LOWrapid_mlx/coherence.py82CODE
LOWrapid_mlx/request.py44CODE
LOWrapid_mlx/multimodal_processor.py290CODE
LOWrapid_mlx/compiled_decode.py463CODE
LOWrapid_mlx/compiled_decode.py286CODE
LOWrapid_mlx/_version_check.py194CODE
LOWrapid_mlx/engine_core.py755CODE
LOWrapid_mlx/engine_core.py1143CODE
LOWrapid_mlx/engine_core.py1497CODE
LOWrapid_mlx/model_metadata.py353CODE
LOWrapid_mlx/_uvicorn.py47CODE
LOWrapid_mlx/cli_parser.py33CODE
LOWrapid_mlx/gradio_app.py114CODE
LOWrapid_mlx/gradio_app.py258CODE
LOWrapid_mlx/gradio_app.py129CODE
LOWrapid_mlx/cli.py330CODE
LOWrapid_mlx/cli.py540CODE
LOWrapid_mlx/cli.py1659CODE
LOWrapid_mlx/cli.py1946CODE
LOWrapid_mlx/cli.py2543CODE
LOWrapid_mlx/cli.py3050CODE
LOWrapid_mlx/cli.py5111CODE
LOWrapid_mlx/cli.py5390CODE
LOWrapid_mlx/cli.py7835CODE
LOWrapid_mlx/cli.py8664CODE
LOWrapid_mlx/cli.py8904CODE
LOWrapid_mlx/cli.py9149CODE
LOWrapid_mlx/cli.py9430CODE
853 more matches not shown…
Modern AI Meta-Vocabulary196 hits · 592 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml495 # F5-TTS (pure-MLX, no torch): EN+ZH multilingual + zero-shot voice cloning.COMMENT
MEDIUMrapid_mlx/memory_cache.py2483 # This handles the agentic pattern: same system+context prefixCOMMENT
MEDIUMrapid_mlx/memory_cache.py3740 # PermissionError from a fs-event-driven antivirus touchingCOMMENT
MEDIUMrapid_mlx/server.py4299 # Pre-load embedding model if specified. The H-08 guard alreadyCOMMENT
MEDIUMrapid_mlx/coherence.py55# may leave chain-of-thought in the visible message, so the gate strips itCOMMENT
MEDIUMrapid_mlx/multimodal_processor.py127 # then either emit an empty completion (case in #457) or hallucinate plausibleCOMMENT
MEDIUMrapid_mlx/cli.py1266 # ``Model:`` line prints before ``Pre-loading embedding model:``).COMMENT
MEDIUMrapid_mlx/cli.py4573 # no-op for them and every agentic turn re-prefills the whole accumulatedCOMMENT
MEDIUMrapid_mlx/cli.py6464 # Configure --no-thinking: suppress chain-of-thought in chat templateCOMMENT
MEDIUMrapid_mlx/cli.py6887 # Pre-load embedding model if specified.COMMENT
MEDIUMrapid_mlx/cli.py12389 # value, raise the default from 2048 to 4096 so the reasoning trace +COMMENT
MEDIUMrapid_mlx/cli.py12425 # otherwise emit raw chain-of-thought to stdout AND, on the defaultCOMMENT
MEDIUMrapid_mlx/cli.py13386 # Detect model + context window from running server.COMMENT
MEDIUMrapid_mlx/cli.py13394 # Claude Code does not expose the context window in its static profileCOMMENT
MEDIUMrapid_mlx/cli.py13407 # User specified model — look up *that* model's context windowCOMMENT
MEDIUMrapid_mlx/scheduler.py5418 # suffix get a prefix cache hit (critical for agentic multi-turn).COMMENT
MEDIUMrapid_mlx/scheduler.py5974 # batch together, fixing issue where Claude Code's big agentic requestCOMMENT
MEDIUMrapid_mlx/scheduler.py10331 # Extract cache for future reuse (critical for agentic multi-turn)COMMENT
MEDIUMrapid_mlx/model_profile.py367 # agentic sampling; literal false records a measured model-side inability.COMMENT
MEDIUMrapid_mlx/_mxfp4_moe_guardrail.py290 # Both guardrails gate on MoE. Bail early — keeps the pathCOMMENT
MEDIUMrapid_mlx/mllm_batch_generator.py3189 # hallucinate ("a vibrant red jellyfish" for a 404'd URL).COMMENT
MEDIUMrapid_mlx/mllm_batch_generator.py3241 # drop hallucinates; the typed error lets the schedulerCOMMENT
MEDIUMrapid_mlx/mllm_batch_generator.py3297 # to attend to and silently hallucinates a generic reply, soCOMMENT
MEDIUMrapid_mlx/tool_parsers/hermes_tool_parser.py526 for match in lenient_matches[:1]: # Only first to avoid hallucinationsCODE
MEDIUMrapid_mlx/tool_parsers/ui_tars_tool_parser.py402# we strip this preamble out of ``content`` so the same chain-of-thoughtCOMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_hermes.py160 # context window is below what Hermes's full tool-rich promptCOMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_hermes.py167 # literal ``"context window"`` substring would miss whenCOMMENT
MEDIUM⚡rapid_mlx/_integration_tests/test_hermes.py575# Deep agentic tests (requires hermes binary, tests real workflows)COMMENT
MEDIUMrapid_mlx/launch/claude_code.py168 # unknown-model warning from falling back to a guessed context window.COMMENT
MEDIUM⚡rapid_mlx/agents/testing.py1062 # advertised context window is below what the harness's tool-richCOMMENT
MEDIUM⚡rapid_mlx/agents/testing.py1073 # wraps stderr at ~100 cols, so a literal ``"context window"``COMMENT
MEDIUMrapid_mlx/agents/testing.py1967 # SKIP exists so deep agentic tests can signal "the environmentCOMMENT
MEDIUM…els/mlx_vlm_vendored/speculative/drafters/mtp_split.py277 # --- shared orchestration (do not override) ---COMMENT
MEDIUMrapid_mlx/reasoning/think_parser.py611 # chain-of-thought. Without the content correction, theCOMMENT
MEDIUMrapid_mlx/reasoning/qwen3_parser.py21# mode. The model is supposed to emit its chain-of-thought followed byCOMMENT
MEDIUMrapid_mlx/reasoning/qwen3_parser.py32# overwhelmingly signal chain-of-thought, identified by (a) beingCOMMENT
MEDIUMrapid_mlx/reasoning/qwen3_parser.py48# ``thinking process``, ``thought process``, ``chain-of-thought``,COMMENT
MEDIUMrapid_mlx/reasoning/qwen3_parser.py66 # "Here is the chain-of-thought:" / "Here's the scratchpad:".COMMENT
MEDIUMrapid_mlx/reasoning/cohere_command_parser.py220 # Non-streaming orchestration performs extraction and then asks theCOMMENT
MEDIUMrapid_mlx/audio/tts.py627 # path): EN+ZH multilingual, zero-shot voice cloning, no torch. It fillsCOMMENT
MEDIUMrapid_mlx/audio/tts.py754 # ``exaggeration`` and zero-shot cloning throughCOMMENT
MEDIUMrapid_mlx/audio/tts.py789 # Qwen3-TTS Base = zero-shot voice cloning: forward theCOMMENT
MEDIUM⚡rapid_mlx/audio/stt.py38# hallucination. The documented anti-hallucination guards insideCOMMENT
MEDIUMrapid_mlx/audio/stt.py50# post-hoc hallucination detection. We use the bundledCOMMENT
MEDIUMrapid_mlx/audio/stt.py105# lifetime of the server — reintroducing the silence hallucinationCOMMENT
MEDIUMrapid_mlx/audio/stt.py866 # into slow random hallucinations ("hope hope ...", "song songCOMMENT
MEDIUMrapid_mlx/api/models.py1199 # wasted the context window.COMMENT
MEDIUMrapid_mlx/api/models.py2666 # Max prompt-token context window the loaded engine advertisesCOMMENT
MEDIUMrapid_mlx/api/models.py2700 # the configured embedding model with ``"embedding"`` so clientsCOMMENT
MEDIUMrapid_mlx/api/models.py2979 # Rapid-MLX extension for F5-TTS zero-shot cloning. Audio is base64COMMENT
MEDIUMrapid_mlx/api/tool_grammar.py1677 # grammar would let the model hallucinate arbitrary keys into aCOMMENT
MEDIUMrapid_mlx/api/utils.py158#: (``_REASONING_CHANNEL_TAG_RE`` below): inside a reasoning trace aCOMMENT
MEDIUMrapid_mlx/api/utils.py175#: * the rescue-tail copy of the reasoning trace that surfaces inCOMMENT
MEDIUMrapid_mlx/api/anthropic_adapter.py550 # Entire reasoning trace already surfaces in the rescueCOMMENT
MEDIUMrapid_mlx/api/anthropic_adapter.py615 # deliberately promotes a stuck reasoning trace intoCOMMENT
MEDIUMrapid_mlx/speculative/dflash/server.py1264 # let a reasoning trace consume the entire completion budget evenCOMMENT
MEDIUMrapid_mlx/service/helpers.py698 # ``first_parse_was_case4`` here. When an agentic client attachesCOMMENT
MEDIUMrapid_mlx/service/helpers.py1150 # set but is NOT chain-of-thought. Require the route-COMMENT
MEDIUMrapid_mlx/service/helpers.py1170 # ``<channel|>``), the reasoning trace is NOT the final answer —COMMENT
MEDIUMrapid_mlx/service/helpers.py1424 # copy of the reasoning trace (see docstring above), so bare wireCOMMENT
136 more matches not shown…
Modern Structural Boilerplate302 hits · 300 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/_tempfile_safe.py365__all__ = ["managed_tempfile_path"]CODE
LOWrapid_mlx/mllm_cache.py31logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_mlx_compat.py47logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/memory_cache.py50logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/server.py183logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/server.py3254def _set_resident_primary(entry: ModelEntry | None) -> None:CODE
LOWrapid_mlx/vision_embedding_cache.py26logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/output_router.py37logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/gdn_prefill.py43logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/embedding.py15logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/qwen35_fused_gdn_decode.py33logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/qwen35_fused_gdn_decode.py461__all__ = [CODE
LOWrapid_mlx/coherence.py38__all__ = [CODE
LOWrapid_mlx/singleton_cache_fastpath.py77logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/request.py321 def set_finished(self, status: RequestStatus, reason: str | None = None) -> None:CODE
LOWrapid_mlx/turboquant.py52logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/multimodal_processor.py26logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/__init__.py84__all__ = [CODE
LOW⚡rapid_mlx/kv_cache_dtype.py44logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/optimizations.py30logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/hybrid_state_checkpoints.py33logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_parent_watchdog.py61logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/compiled_decode.py38logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/output_router_harmony.py58logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/engine_core.py35logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/fp8_repack.py58logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_uvicorn.py18logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/pflash.py35logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/mllm_scheduler.py62logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/mllm_scheduler.py812 def set_generation_paused(self, paused: bool, *, add_allowance: int = 0) -> None:CODE
LOWrapid_mlx/paged_cache.py34logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/model_auto_config.py34logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_signal_observability.py70logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/prefix_cache.py30logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/scheduler.py171logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/scheduler.py8491 def set_generation_paused(self, paused: bool, *, add_allowance: int = 0) -> None:CODE
LOWrapid_mlx/tool_call_scan.py39__all__ = [CODE
LOWrapid_mlx/gdn_in_proj_fusion.py51logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_mxfp4_moe_guardrail.py76logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/qwen35_moe_router.py26logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/model_registry.py21logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/prompt_token_reuse.py144__all__ = [CODE
LOWrapid_mlx/mllm_batch_generator.py68logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/moe_fusion.py40logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/_process_identity.py27logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/lfm_tool_parser.py33logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/deepseek_v3_tool_parser.py74logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/qwen3coder_tool_parser.py42logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/__init__.py83__all__ = [CODE
LOWrapid_mlx/tool_parsers/k2_horizon_tool_parser.py49 def set_reasoning_sanitized(self, value: bool) -> None:CODE
LOWrapid_mlx/tool_parsers/seed_oss_tool_parser.py32logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/deepseekv31_tool_parser.py51logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/nemotron_tool_parser.py32logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/tool_parsers/ui_tars_tool_parser.py63logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/middleware/auth.py20logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/middleware/probe_fastpath.py67logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/middleware/body_size.py51logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/middleware/body_depth.py56logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/middleware/request_logging.py30logger = logging.getLogger(__name__)CODE
LOWrapid_mlx/kernels/qsa_indexed_splitk.py20logger = logging.getLogger(__name__)CODE
242 more matches not shown…
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHrapid_mlx/_mxfp4_moe_guardrail.py0test-only hook: zero the counters between cases. production code must not call this — prometheus counters are contractuaSTRING
HIGHrapid_mlx/runtime/ubc_evict.py0test-only hook: zero the counters between cases. production code must not call this — prometheus counters are contractuaSTRING
HIGHrapid_mlx/api/response_format_metrics.py0test-only hook: zero the counters between cases. production code must not call this — prometheus counters are contractuaSTRING
HIGHrapid_mlx/_integration_tests/test_hermes.py0streaming mode: tool calls arrive as structured deltas.STRING
HIGHrapid_mlx/agents/testing.py0streaming mode: tool calls arrive as structured deltas.STRING
HIGHtests/integrations/test_hermes.py0streaming mode: tool calls arrive as structured deltas.STRING
HIGHtests/test_forced_alignment_route_hardening.py0mount the audio router on a bare fastapi app, bypassing auth.STRING
HIGHtests/test_audio_routes_bundle.py0mount the audio router on a bare fastapi app, bypassing auth.STRING
HIGHtests/test_stt_response_format.py0mount the audio router on a bare fastapi app, bypassing auth.STRING
HIGHtests/test_audio_music_route.py0mount the audio router on a bare fastapi app, bypassing auth.STRING
HIGHtests/test_chatterbox_expressiveness.py0minimal fake so the tts-lane probe passes without the real extra.STRING
HIGHtests/test_speech_inline_clone_route.py0minimal fake so the tts-lane probe passes without the real extra.STRING
HIGHtests/test_qwen3_tts_audio.py0minimal fake so the tts-lane probe passes without the real extra.STRING
HIGHtests/test_qwen3_tts_voicedesign.py0minimal fake so the tts-lane probe passes without the real extra.STRING
HIGHtests/test_stop_and_timeout_request_schema.py0patch the global config singleton and restore on teardown.STRING
HIGHtests/test_sampling_param_finite_range.py0patch the global config singleton and restore on teardown.STRING
HIGHtests/test_sampling_validation.py0patch the global config singleton and restore on teardown.STRING
HIGH…id-mac/Tests/RapidTests/WireBodyDeterminismTests.swift0data: {"choices":[{"delta":{"content":"ok"},"finish_reason":"stop"}]}\n data: [done]\nSTRING
HIGH…s/RapidTests/DeferredTelemetryConsentWiringTests.swift0data: {"choices":[{"delta":{"content":"ok"},"finish_reason":"stop"}]}\n data: [done]\nSTRING
HIGH…-mac/Tests/RapidTests/ChatStreamRequestBodyTests.swift0data: {"choices":[{"delta":{"content":"ok"},"finish_reason":"stop"}]}\n data: [done]\nSTRING
HIGH…pid-mac/Tests/RapidTests/CustomInstructionsTests.swift0data: {"choices":[{"delta":{"content":"ok"},"finish_reason":"stop"}]}\n data: [done]\nSTRING
HIGH…mac/Tests/RapidTests/CurrentDateTimeContextTests.swift0data: {"choices":[{"delta":{"content":"ok"},"finish_reason":"stop"}]}\n data: [done]\nSTRING
Self-Referential Comments32 hits · 91 pts
SeverityFileLineSnippetContext
MEDIUMrapid_mlx/gdn_prefill.py202 # This function is the single validation authority for the kernel'sSTRING
MEDIUMrapid_mlx/gradio_app.py306 # Create a public share linkCOMMENT
MEDIUMrapid_mlx/cli.py8597 # Create the single mlx-step worker BEFORE loading weights and reuse itCOMMENT
MEDIUMrapid_mlx/mllm_batch_generator.py3980 # Create a fresh KVCache for this request's language model prefillCOMMENT
MEDIUMrapid_mlx/_integration_tests/test_hermes.py670 # Create a test file firstCOMMENT
MEDIUMrapid_mlx/models/mlx_vlm_vendored/cache.py219 # Create an instance of cls without calling __init__COMMENT
MEDIUMrapid_mlx/models/mlx_vlm_vendored/generate/ar.py376 # Create the KV cache for generationCOMMENT
MEDIUMrapid_mlx/api/guided.py207 # Create the model dynamicallyCOMMENT
MEDIUMrapid_mlx/speculative/dflash/server.py1812 # Create the generator on the same worker that will drive it,COMMENT
MEDIUMtests/test_tool_logits.py126 # Create a token ID that corresponds to the last char of '<invoke'COMMENT
MEDIUMtests/test_tool_parsers.py25# This file is the Linux parser-matrix entry point. Import the focusedCOMMENT
MEDIUMtests/test_server.py373 # Create a real temp fileCOMMENT
MEDIUMtests/test_fix_reasoning_mtp_doctor.py97 # Create a small QuantizedSwitchLinearCOMMENT
MEDIUMtests/test_memory_stability.py47 # Create a mock BatchGenerator with close()COMMENT
MEDIUMtests/test_memory_stability.py178 # Create a mock request with extracted cache (dict-state format)COMMENT
MEDIUMtests/test_memory_stability.py225 # Create a mock response with prompt_cacheCOMMENT
MEDIUMtests/test_turboquant.py549 # Create a mix: KVCache + non-KVCacheCOMMENT
MEDIUMtests/test_mtp_gemma4_assistant_inject.py1295 # Create the well-known name AND an "extra" shard.COMMENT
MEDIUMtests/test_mllm_continuous_batching.py980 # Create a request with stop sequencesCOMMENT
MEDIUMtests/test_mllm_cache.py77 # Create a temp file with some contentCOMMENT
MEDIUMtests/test_mlx_vlm_vendored_speculative.py37# This file is part of the explicit Apple-Silicon lane, but the ordinary LinuxCOMMENT
MEDIUMtests/integrations/top10_sequences.yaml7# This file is the single source of truth for the EXACT ordered sequence ofCOMMENT
MEDIUMtests/integrations/test_hermes.py670 # Create a test file firstCOMMENT
MEDIUMexamples/test_openai_compatibility.py63 # Create a simple 100x100 red square imageCOMMENT
MEDIUMexamples/test_openai_compatibility.py490 # Create a simple video with 3 colored frames (red, green, blue)COMMENT
MEDIUMexamples/test_video.py68 # Create a simple video with colored framesCOMMENT
MEDIUMexamples/demo_openai_image.py80# Create a simple red square image for testingCOMMENT
MEDIUMexamples/demo_openai_image.py86 # Create a simple 100x100 red imageCOMMENT
MEDIUMexamples/benchmark_audio.py42 # Create a simple sine wave toneCOMMENT
MEDIUMexamples/demo_curl_image.sh77# Create a simple red PNG using Python (smallest valid PNG)COMMENT
MEDIUMscripts/create_release.sh3# Create a GitHub Release whose tag we atomically claim at $RELEASE_SHA.COMMENT
MEDIUMscripts/pr_validate/steps/targeted_tests.py253 # Create a worktree pointing at base_ref (sha-pinned when given).COMMENT
Docstring Block Structure17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHrapid_mlx/embedding.py346 Generate embeddings for one or more texts. Args: texts: A single string or list of stringsSTRING
HIGHrapid_mlx/embedding.py416Embed pre-tokenized inputs (OpenAI spec input formats 3 and 4). Skips the tokenizer entirely — the caller has aSTRING
HIGHrapid_mlx/paged_cache.py299 Pop n non-pinned blocks from the front. Pinned blocks are skipped to prevent eviction of important STRING
HIGHrapid_mlx/paged_cache.py676 Allocate multiple blocks at once (vLLM style). Args: num_blocks: Number of blocks to allocSTRING
HIGHrapid_mlx/model_registry.py58 Attempt to acquire ownership of a model. Args: model: The MLX model engine: ThSTRING
HIGHrapid_mlx/tool_parsers/abstract_tool_parser.py515 Retrieve a registered ToolParser class by name. Args: name: Parser name (e.g., 'mistral', STRING
HIGHrapid_mlx/runtime/model_registry.py136Get the engine for a model name. Falls back to default. Args: model_name: Model name from request. STRING
HIGHrapid_mlx/mcp/config.py46 Load MCP configuration from file. Search order: 1. Explicit path argument 2. RAPID_MLX_MCP_CONFIG enviSTRING
HIGHrapid_mlx/mcp/config.py132 Validate and parse configuration dictionary. Args: data: Raw configuration dictionary tolerantSTRING
HIGHrapid_mlx/mcp/tools.py50 Parse OpenAI tool call back to MCP format. Args: tool_call: OpenAI tool call from model response STRING
HIGHrapid_mlx/models/mllm.py689 Decode base64 image to bytes. Args: base64_string: Base64 encoded image (optionally with data URL prefSTRING
HIGHrapid_mlx/models/mllm.py1045 Download image from URL and return local path. Args: url: Image URL timeout: Download timeout STRING
HIGHrapid_mlx/models/mllm.py1137 Download video from URL and return local path. Args: url: Video URL (http/https) timeout: DownSTRING
HIGHrapid_mlx/models/mllm.py1240 Decode base64 video to temp file and return path. Supports format: data:video/mp4;base64,AAAA... Args: STRING
HIGHrapid_mlx/reasoning/__init__.py51 Get a reasoning parser class by name. Args: name: Name of the parser (e.g., "qwen3", "deepseek_r1"). STRING
HIGHrapid_mlx/spec_decode/mtp/qwen3_5_inject.py474Inject MTP support into a loaded Qwen3.5 / Qwen3.6 model. Args: model: A model loaded via ``mlx_lm.load()``STRING
HIGHrapid_mlx/audio/music.py162Generate ``seconds`` of audio for ``prompt`` → ``out_path`` (wav). Args: prompt: Natural-language dSTRING
Redundant / Tautological Comments55 hits · 81 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/memory_cache.py2387 # Check if cached_key is a prefix of tokens_keyCOMMENT
LOWrapid_mlx/memory_cache.py2409 # Check if tokens_key is a prefix of cached_keyCOMMENT
LOWrapid_mlx/memory_cache.py2694 # Check if single entry exceeds limitCOMMENT
LOWrapid_mlx/memory_cache.py4319 # Check if it fits against the running (live+staged inCOMMENT
LOWrapid_mlx/gradio_app.py163 # Check if this message had media cachedCOMMENT
LOWrapid_mlx/mllm_scheduler.py1323 # Check if finishedCOMMENT
LOWrapid_mlx/prefix_cache.py155 # Check if we have a shorter prefix with cacheCOMMENT
LOWrapid_mlx/prefix_cache.py224 # Check if cache supports trimmingCOMMENT
LOWrapid_mlx/prefix_cache.py834 # Check if this block already exists (deduplication). A hashCOMMENT
LOWrapid_mlx/scheduler.py6212 # Check if it's a list of cache layersCOMMENT
LOWrapid_mlx/scheduler.py6220 # Check if layer has expected structureCOMMENT
LOWrapid_mlx/scheduler.py10221 # Check if finishedCOMMENT
LOWrapid_mlx/mllm_batch_generator.py1356 # Check if this is actually a VLM with separate language modelCOMMENT
LOWrapid_mlx/tool_parsers/qwen3coder_tool_parser.py1584 # Check if we need to advance to next tool. The tool boundary isCOMMENT
LOWrapid_mlx/tool_parsers/granite_tool_parser.py62 # Check if it starts with JSON arrayCOMMENT
LOWrapid_mlx/tool_parsers/seed_oss_tool_parser.py521 # Check if we need to advance to next toolCOMMENT
LOWrapid_mlx/tool_parsers/seed_oss_tool_parser.py536 # Check if thinking ended (or never started)COMMENT
LOWrapid_mlx/tool_parsers/gemma4_tool_parser.py892 # Check if we're inside a tool call. Either the pristine wireCOMMENT
LOWrapid_mlx/tool_parsers/gemma4_tool_parser.py943 # Check if we have a complete text tool callCOMMENT
LOWrapid_mlx/utils/tokenizer.py1759 # Check if model needs fallback (e.g., Nemotron)COMMENT
LOWrapid_mlx/mcp/security.py207 # Check if command is in whitelistCOMMENT
LOWrapid_mlx/mcp/security.py209 # Check if it's an absolute path to an allowed commandCOMMENT
LOWrapid_mlx/mcp/executor.py459 # Check if tool existsCOMMENT
LOW⚡rapid_mlx/models/mllm.py1312 # Check if it's a local file (confined to regular media files; seeCOMMENT
LOW⚡rapid_mlx/models/mllm.py1318 # Check if it's a URLCOMMENT
LOW⚡rapid_mlx/models/mllm.py1322 # Check if it's base64COMMENT
LOWrapid_mlx/models/mllm.py1401 # Check if it's base64 FIRST (before Path.exists() which fails on long strings)COMMENT
LOWrapid_mlx/models/mllm.py1405 # Check if it's a URLCOMMENT
LOWrapid_mlx/models/deepseek_v4_cache.py801 # Check if all caches are emptyCOMMENT
LOWrapid_mlx/models/mlx_vlm_vendored/cache.py3617 # Check if all caches are emptyCOMMENT
LOWrapid_mlx/models/mlx_vlm_vendored/inputs.py154 # Check if ffmpeg is needed for certain formatsCOMMENT
LOW⚡rapid_mlx/models/mlx_vlm_vendored/models/base.py451 # Check if the shape has 4 dimensionsCOMMENT
LOW⚡rapid_mlx/models/mlx_vlm_vendored/models/base.py454 # Check if out_channels is the largest, and kH and KW are the sameCOMMENT
LOW⚡rapid_mlx/models/mlx_vlm_vendored/models/base.py459 # Check if the shape has 3 dimensionsCOMMENT
LOW⚡rapid_mlx/models/mlx_vlm_vendored/models/base.py462 # Check if out_channels is the largestCOMMENT
LOWrapid_mlx/reasoning/deepseek_r1_parser.py120 # Check if any tags are in the current textCOMMENT
LOWrapid_mlx/reasoning/minimax_parser.py173 # Check if output starts with reasoning patternsCOMMENT
LOW⚡rapid_mlx/reasoning/gemma4_parser.py321 # Check if we just entered thought channelCOMMENT
LOW⚡rapid_mlx/reasoning/gemma4_parser.py326 # Check if we just entered content channelCOMMENT
LOW⚡rapid_mlx/reasoning/gemma4_parser.py331 # Check if thought ended (first <channel|> after thought start)COMMENT
LOWrapid_mlx/api/tool_logits.py353 # Check if we should start tracking a patternCOMMENT
LOWrapid_mlx/routes/chat.py7099 # Check if we should include usage in the final chunkCOMMENT
LOWevals/run_eval.py978 # Check if model called the recovery toolCOMMENT
LOWtests/test_paged_cache_benefits.py341 # Check if root is sharedCOMMENT
LOWtests/test_paged_cache.py208 # Increment refCOMMENT
LOWexamples/video_benchmark.py577 # Print resultsSTRING
LOWexamples/mcp_tool_use.py97 # Check if model wants to use toolsCOMMENT
LOWexamples/mic_realtime.py111 # Check if audio has content (not silence)COMMENT
LOWexamples/test_openai_compatibility.py805 # Check if server is reachableSTRING
LOWexamples/mllm_benchmark.py451 # Print resultsSTRING
LOWexamples/mic_live.py130 # Check if silence long enough to trigger transcriptionCOMMENT
LOWexamples/demo_openai_video.py110 # Check if there's a sample video in the examples directoryCOMMENT
LOWscripts/add_mtp_weights.py296 # Check if MTP weights already existCOMMENT
LOWscripts/benchmark_engines.py500 # Check if tool call was returned in structured formatCOMMENT
LOWscripts/benchmark_engines.py502 # Check if content contains text-format tool calls (degraded)COMMENT
Structural Annotation Overuse37 hits · 68 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/tool_parsers/gemma4_tool_parser.py428 # Step 2: bare KV parseCOMMENT
LOWrapid_mlx/utils/chat_template.py2768 # Step 1: retry without enable_thinking (many templates don't support it).COMMENT
LOWrapid_mlx/utils/chat_template.py2812 # Step 2: template also rejects tools — fall back to prompt injection.COMMENT
LOWrapid_mlx/service/postprocessor.py2673 # Step 1: Separate content from reasoningCOMMENT
LOWrapid_mlx/share/cli.py343 # Step 1: a deliberately-wrong key must NOT return 200. If theCOMMENT
LOWrapid_mlx/share/cli.py354 # Step 2: the real key must return 200.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py351 # Step 1: prose preface — passes through.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py358 # Step 2: opening brace + name/params arrive in one go.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py375 # Step 1: closed prose JSON — flushed as content on close.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py384 # Step 2: trailing prose — must pass through.COMMENT
LOWtests/test_ui_tars_fixes.py740 # Step 1: walk imports to learn what local names refer toCOMMENT
LOWtests/test_ui_tars_fixes.py758 # Step 2: walk the tree looking for Call nodes whose callableCOMMENT
LOW⚡tests/test_metrics_route.py628 # Step 1: hits=10 → exposed 10COMMENT
LOW⚡tests/test_metrics_route.py632 # Step 2: hits=15 → exposed 15COMMENT
LOW⚡tests/test_metrics_route.py637 # Step 3: simulate cache.clear() — raw drops to 0; exposed must stay ≥ 15COMMENT
LOW⚡tests/test_metrics_route.py646 # Step 4: hits=3 — fresh activity after clear; exposed should be 15+3=18COMMENT
LOW⚡tests/test_reasoning_budget_generation.py197 # Step 2: one generated think token → 1/1 spent → force on THIS call.COMMENT
LOW⚡tests/test_grammar_processor_558.py2397 # Step 1: baseline the prompt (1 token), then feed the first generatedCOMMENT
LOW⚡tests/test_grammar_processor_558.py2407 # Step 2: feed the second generated token — the matcher rejects it, soCOMMENT
LOWtests/test_grammar_processor_558.py2420 # Step 3: any subsequent call also stays dropped (logits unchanged).COMMENT
LOWdocs/guides/server.md541# Step 1: Send request with toolsCOMMENT
LOWdocs/guides/server.md557# Step 2: Check if model wants to use toolsCOMMENT
LOWdocs/guides/server.md563# Step 3: Send tool result backCOMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift598 // Step 1: the extraction takes its token and completes its work.COMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift601 // Step 2: the user deletes the document while that publish is pending.COMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift604 // Step 3: the extraction resumes and tries to publish. It must fail.COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift587 // Step 1: cached + safe (only over the known-params subset).COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift592 // Step 2: smallest known-params alias that fits.COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift600 // Step 3: smallest known-params alias overall (.tooBig butCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift605 // Step 4: catalog has zero parseable aliases. Last resort —COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift721 // Step 1: bucketed default is on disk AND runnable. NoCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift727 // Step 2: any cached + fits alternative — prefer it over aCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift740 // Step 3: nothing cached fits, but the canonical pick stillCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift746 // Step 4: bucketed is .tooBig OR missing — hand off to theCOMMENT
LOW⚡…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift507 // Step 1: denylist match (broken takes priority).COMMENT
LOW⚡…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift512 // Step 2: deliberate-unknown overrides shadow the family matchCOMMENT
LOW…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift526 // Step 3: family + size guard. An alias is .known when itsCOMMENT
Verbosity Indicators35 hits · 66 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/tool_parsers/gemma4_tool_parser.py428 # Step 2: bare KV parseCOMMENT
LOWrapid_mlx/utils/chat_template.py2768 # Step 1: retry without enable_thinking (many templates don't support it).COMMENT
LOWrapid_mlx/utils/chat_template.py2812 # Step 2: template also rejects tools — fall back to prompt injection.COMMENT
LOWrapid_mlx/service/postprocessor.py2673 # Step 1: Separate content from reasoningCOMMENT
LOWrapid_mlx/share/cli.py343 # Step 1: a deliberately-wrong key must NOT return 200. If theCOMMENT
LOWrapid_mlx/share/cli.py354 # Step 2: the real key must return 200.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py351 # Step 1: prose preface — passes through.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py358 # Step 2: opening brace + name/params arrive in one go.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py375 # Step 1: closed prose JSON — flushed as content on close.COMMENT
LOW⚡tests/test_llama_tool_parser_bare_json.py384 # Step 2: trailing prose — must pass through.COMMENT
LOWtests/test_ui_tars_fixes.py740 # Step 1: walk imports to learn what local names refer toCOMMENT
LOWtests/test_ui_tars_fixes.py758 # Step 2: walk the tree looking for Call nodes whose callableCOMMENT
LOW⚡tests/test_metrics_route.py628 # Step 1: hits=10 → exposed 10COMMENT
LOW⚡tests/test_metrics_route.py632 # Step 2: hits=15 → exposed 15COMMENT
LOW⚡tests/test_metrics_route.py637 # Step 3: simulate cache.clear() — raw drops to 0; exposed must stay ≥ 15COMMENT
LOW⚡tests/test_metrics_route.py646 # Step 4: hits=3 — fresh activity after clear; exposed should be 15+3=18COMMENT
LOW⚡tests/test_reasoning_budget_generation.py195 # Step 1: [1] is baselined as prompt; 0/1 spent → "free", logits untouched.COMMENT
LOW⚡tests/test_reasoning_budget_generation.py197 # Step 2: one generated think token → 1/1 spent → force on THIS call.COMMENT
LOW⚡tests/test_grammar_processor_558.py2397 # Step 1: baseline the prompt (1 token), then feed the first generatedCOMMENT
LOW⚡tests/test_grammar_processor_558.py2407 # Step 2: feed the second generated token — the matcher rejects it, soCOMMENT
LOWtests/test_grammar_processor_558.py2420 # Step 3: any subsequent call also stays dropped (logits unchanged).COMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift598 // Step 1: the extraction takes its token and completes its work.COMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift601 // Step 2: the user deletes the document while that publish is pending.COMMENT
LOW⚡…mac/Tests/RapidTests/DocumentCacheLifecycleTests.swift604 // Step 3: the extraction resumes and tries to publish. It must fail.COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift587 // Step 1: cached + safe (only over the known-params subset).COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift592 // Step 2: smallest known-params alias that fits.COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift600 // Step 3: smallest known-params alias overall (.tooBig butCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift605 // Step 4: catalog has zero parseable aliases. Last resort —COMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift721 // Step 1: bucketed default is on disk AND runnable. NoCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift727 // Step 2: any cached + fits alternative — prefer it over aCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift740 // Step 3: nothing cached fits, but the canonical pick stillCOMMENT
LOW⚡…apid-mac/Sources/Rapid/Server/RAMBucketedDefault.swift746 // Step 4: bucketed is .tooBig OR missing — hand off to theCOMMENT
LOW⚡…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift507 // Step 1: denylist match (broken takes priority).COMMENT
LOW⚡…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift512 // Step 2: deliberate-unknown overrides shadow the family matchCOMMENT
LOW…rapid-mac/Sources/Rapid/Server/ToolUseCapability.swift526 // Step 3: family + size guard. An alias is .known when itsCOMMENT
AI Structural Patterns80 hits · 64 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/server.py2264CODE
LOWrapid_mlx/engine_core.py1143CODE
LOWrapid_mlx/cli.py11217CODE
LOWrapid_mlx/mllm_scheduler.py635CODE
LOWrapid_mlx/mllm_scheduler.py2166CODE
LOWrapid_mlx/gdn_in_proj_fusion.py230CODE
LOWrapid_mlx/mllm_batch_generator.py1192CODE
LOWrapid_mlx/tool_parsers/muse_tool_parser.py381CODE
LOWrapid_mlx/tool_parsers/harmony_tool_parser.py439CODE
LOWrapid_mlx/kernels/lane_matmul/simd.py434CODE
LOWrapid_mlx/video/engine.py126CODE
LOWrapid_mlx/patches/glm5_next_processor.py190CODE
LOWrapid_mlx/runtime/diffusion_lane.py984CODE
LOWrapid_mlx/runtime/resident_models.py135CODE
LOWrapid_mlx/runtime/resident_models.py1416CODE
LOWrapid_mlx/models/mllm.py2187CODE
LOWrapid_mlx/models/nemotron_labs_diffusion.py209CODE
LOWrapid_mlx/models/gemma4_vendored/language.py615CODE
LOWrapid_mlx/models/mlx_vlm_vendored/inputs.py638CODE
LOWrapid_mlx/models/mlx_vlm_vendored/sample_utils.py10CODE
LOWrapid_mlx/models/mlx_vlm_vendored/apc.py255CODE
LOWrapid_mlx/models/mlx_vlm_vendored/generate/ar.py211CODE
LOWrapid_mlx/models/mlx_vlm_vendored/generate/ar.py930CODE
LOWrapid_mlx/models/mlx_vlm_vendored/generate/ar.py1812CODE
LOWrapid_mlx/models/mlx_vlm_vendored/generate/ar.py2515CODE
LOWrapid_mlx/models/mlx_vlm_vendored/speculative/utils.py173CODE
LOWrapid_mlx/models/deepseek_v41_native/server.py26CODE
LOWrapid_mlx/spec_decode/dspark/server.py267CODE
LOWrapid_mlx/spec_decode/mtp/cache_patch.py424CODE
LOWrapid_mlx/spec_decode/mtp/generator.py379CODE
LOWrapid_mlx/image/sdxl_runtime/pipelines/sdxl.py136CODE
LOWrapid_mlx/image/sd35_runtime/_vendor/t5.py334CODE
LOWrapid_mlx/image/sd35_runtime/_vendor/pipeline.py62CODE
LOWrapid_mlx/image/sd35_runtime/_vendor/pipeline.py294CODE
LOWrapid_mlx/image/sd35_runtime/_vendor/pipeline.py591CODE
LOWrapid_mlx/image/bonsai_runtime/_vendor/transformer.py34CODE
LOWrapid_mlx/audio/tts.py658CODE
LOWrapid_mlx/cua/service.py305CODE
LOWrapid_mlx/cua/loop.py1415CODE
LOWrapid_mlx/cua/loop.py91CODE
LOWrapid_mlx/community_bench/run_builder.py613CODE
LOWrapid_mlx/community_bench/atomic_upload.py215CODE
LOWrapid_mlx/speculative/tensorfold_qwen27_server.py477CODE
LOWrapid_mlx/speculative/native_mtp/server.py52CODE
LOWrapid_mlx/speculative/dflash/server.py658CODE
LOWrapid_mlx/speculative/dflash/server.py1512CODE
LOWrapid_mlx/speculative/dflash/server.py2429CODE
LOWrapid_mlx/computer_use/backend.py1013CODE
LOWrapid_mlx/computer_use/backend.py3067CODE
LOWrapid_mlx/computer_use/ax_driver.py1052CODE
LOWrapid_mlx/engine/batched.py1050CODE
LOWrapid_mlx/engine/batched.py3058CODE
LOWrapid_mlx/routes/responses.py3007CODE
LOWrapid_mlx/routes/images.py582CODE
LOWrapid_mlx/routes/anthropic.py1699CODE
LOWrapid_mlx/routes/audio.py2379CODE
LOWrapid_mlx/routes/video.py1241CODE
LOWtests/test_community_bench_aggregate.py62CODE
LOWtests/test_mergify_batch_queue.py159CODE
LOWtests/test_mergify_batch_queue.py380CODE
20 more matches not shown…
Fake / Example Data34 hits · 29 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/mllm_batch_generator.py2219 # (transient-message boundaries, dummy-user LCP fallbacks), so theCOMMENT
LOWrapid_mlx/computer_use/backend.py883 "placeholder": target.get("placeholder"),CODE
LOWrapid_mlx/computer_use/ax_driver.py788 "placeholder": (CODE
LOWevals/run_eval.py1144 fake_key = f"{prefix}fake_result"CODE
LOWevals/run_eval.py1146 fake_key,CODE
LOWtests/test_community_benchmark_workspace.py2611 file.write(b"placeholder")STRING
LOW⚡tests/test_gemma4_tool_parser.py262 "endpointId": "jane@example.org",CODE
LOWtests/test_gemma4_tool_parser.py76 "endpointId": "jane@example.org",CODE
LOWtests/test_gemma4_tool_parser.py145 "endpointId": "jane@example.org",CODE
LOWtests/test_gemma4_tool_parser.py163 "endpointId": "jane@example.org",CODE
LOWtests/test_computer_use_walk.py114 assert out[1]["placeholder"] == "Full name"CODE
LOWtests/test_computer_use_walk.py651 "placeholder": "Search Mart",CODE
LOWtests/test_computer_use_walk.py679 assert element["states"] == ["focused"] and element["placeholder"] == "Search Mart"CODE
LOWtests/test_tokenizer_gemma4_hybrid.py271 "Lorem ipsum dolor sit amet",CODE
LOWtests/test_tokenizer_gemma4_hybrid.py271 "Lorem ipsum dolor sit amet",CODE
LOW⚡tests/test_release_artifact_matrix.py29 wheel.write_bytes(b"placeholder")CODE
LOW⚡tests/test_ci_github_transport.py56 return transport.PersistentGitHubClient(REPO, "fake-token"), connection, createdCODE
LOW⚡tests/test_ci_github_transport.py67 assert conn.requests[0][2]["Authorization"] == "Bearer fake-token"CODE
LOWtests/test_ci_github_transport.py183 assert "fake-token" not in str(error.value)CODE
LOWtests/test_ci_github_transport.py246 c = transport.PersistentGitHubClient(REPO, "fake-token")CODE
LOW⚡tests/test_tool_param_enforcement_f141a.py135 ("email", "notanemail", "user@example.com"),CODE
LOW⚡tests/test_launch_cli.py740 "placeholder": {"apiKey": "sk-noop"},CODE
LOW⚡tests/test_launch_cli.py749 "placeholder": {"apiKey": "sk-noop"},CODE
LOWtests/test_prefix_boundary_path_parity.py479 """Third-party template drift keeps the conservative dummy-user LCP."""STRING
LOWtests/test_qwen3coder_tool_parser_streaming.py30 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do "CODE
LOWtests/test_qwen3coder_tool_parser_streaming.py30 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do "CODE
LOWtests/test_download_gate.py3520 (snap / "vae.safetensors" / "placeholder").write_bytes(b"x" * 16)CODE
LOWtests/test_download_gate.py3532 (snap / "vae.safetensors" / "placeholder").unlink()CODE
LOWtests/test_upstream_regression.py390 '[TOOL_CALLS] [{"arguments":{"name": "John Doe"}, "name": "get_age"}]',CODE
LOWtests/test_upstream_regression.py392 {"name": "John Doe"},CODE
LOWapps/rapid-mac/CHANGELOG.md4161 "placeholder"; pill HStacks collapsed so VoiceOver doesn'tCODE
LOW…-mac/Sources/Rapid/UI/Markdown/SyntaxHighlighter.swift1235 "width", "height", "alt", "title", "rel", "target", "placeholder",CODE
LOW…wiftMath/Sources/SwiftMath/MathRender/MTMathList.swift358 string += "{\(self.numerator?.description ?? "placeholder")}{\(self.denominator?.description ?? "placeholder")}"CODE
LOW…wiftMath/Sources/SwiftMath/MathRender/MTMathList.swift407 string += "{\(self.radicand?.description ?? "placeholder")}"CODE
Example Usage Blocks15 hits · 24 pts
SeverityFileLineSnippetContext
LOWrapid_mlx/_integration_tests/test_aider.sh18# Usage:COMMENT
LOWtests/integrations/test_aider.sh18# Usage:COMMENT
LOW⚡tests/integrations/test_openhands.sh34# Usage:COMMENT
LOWexamples/demo_curl_text.sh6# Usage:COMMENT
LOWexamples/demo_curl_video.sh6# Usage:COMMENT
LOWexamples/demo_curl_image.sh6# Usage:COMMENT
LOWscripts/run_dogfood_mvp.sh8# Usage:COMMENT
LOW⚡scripts/coherence_sweep.sh26# Usage:COMMENT
LOW⚡apps/rapid-mac/scripts/dogfood-isolate.sh27# Usage:COMMENT
LOWapps/rapid-mac/scripts/build-bootstrapper-dmg.sh84# Usage:COMMENT
LOWapps/rapid-mac/scripts/validate-dmg.sh24# Usage:COMMENT
LOWapps/rapid-mac/scripts/stage-licenses.sh15# Usage:COMMENT
LOW⚡apps/rapid-mac/scripts/share-compute-shots.sh63# Usage:COMMENT
LOWapps/rapid-mac/scripts/build-sidecar.sh24# Usage:COMMENT
LOWapps/rapid-mac/scripts/walkthrough.sh14# Usage:COMMENT
Slop Phrases11 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM…0260617-apple-m3-ultra-qwen3-8b-4bit-e912922f4600.json139 "response_excerpt": "\n\nHello! 2 + 2 equals 4. Let me know if you need help with anything else! 😊"CODE
MEDIUM⚡tests/test_pr_validate_codex.py865 monkeypatch, tmp_path, "I'm unable to review this content."CODE
MEDIUMtests/integrations/conftest.py455# "I cannot provide the current weather in Tokyo as I cannot accessCOMMENT
MEDIUM…ests/RapidTests/GroundingConfabulationRetryTests.swift159 "I cannot provide current data, my knowledge is only up to 2024.",CODE
MEDIUM…ests/RapidTests/GroundingConfabulationRetryTests.swift239 "According to my knowledge cutoff, I cannot provide current data.",CODE
MEDIUM⚡apps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3745 "i can't provide real-time", "i cannot provide real-time",STRING
MEDIUM⚡apps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3746 "i can't provide current", "i cannot provide current",STRING
MEDIUM⚡apps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3753 "i'm unable to access real-time", "i am unable to access real-time",STRING
MEDIUM⚡apps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3754 "i'm unable to access current", "i am unable to access current",STRING
MEDIUM⚡apps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3755 "i'm unable to provide real-time", "i am unable to provide real-time",STRING
MEDIUMapps/rapid-mac/Sources/Rapid/Chat/ChatViewModel.swift3784 /// ("According to my knowledge cutoff, I cannot provide current data") andSTRING
Dead Code10 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_r15_routes_stability_batch.py505CODE
MEDIUMtests/test_r15_routes_stability_batch.py537CODE
MEDIUMtests/test_chat_route_vlm_image.py155CODE
MEDIUMtests/test_api_models.py1240CODE
MEDIUMtests/test_primary_model_lifecycle.py988CODE
MEDIUMtests/test_primary_model_lifecycle.py1048CODE
MEDIUMtests/test_cli_models_json.py258CODE
MEDIUMtests/headless_mlx/test_engine_lifecycle.py1079CODE
MEDIUMtests/headless_mlx/test_engine_lifecycle.py1543CODE
MEDIUMtests/headless_mlx/test_engine_lifecycle.py1559CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/test_prompt_cache_snapshot.py560 scheduler.memory_aware_cache.store.call_args.kwargs.get("evict_prefixes")CODE
Overly Generic Function Names1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtests/test_computer_use.py2202 def perform_action(*args):CODE