Repository Analysis

kvcache-ai/Mooncake

Mooncake is the serving platform for Kimi, a leading LLM service provided by Moonshot AI.

6.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kvcache-ai/Mooncake, a C++ project with 6,426 GitHub stars. SynthScan v2.0 examined 572,675 lines of code across 1595 source files, recording 3248 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 6.3 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

6.3
Adjusted Score
6.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
6.4K
Stars
C++
Language
572.7K
Lines of Code
1.6K
Files
3.2K
Pattern Hits
2026-08-29
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 32MEDIUM 164LOW 3052

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3248 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1346 hits · 1270 pts
SeverityFileLineSnippetContext
LOWdependencies.sh1#!/bin/bashCOMMENT
LOWmooncake-common/include/rpc_client_io_context.h1#pragma onceCOMMENT
LOWmooncake-common/include/environment_value_parser.h1#pragma onceCOMMENT
LOWmooncake-common/include/default_config.h1#pragma onceCOMMENT
LOWmooncake-common/tests/environ_test.cpp1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-common/src/default_config.cpp1#include "default_config.h"COMMENT
LOWmooncake-common/src/asio_impl.cpp1// ASIO separate compilation implementationCOMMENT
LOWpython/tests/ep/test_ep_grid.py81 topk_idx = torch.topk(scores, top_k, dim=-1)[1]COMMENT
LOWmooncake-wheel/pyproject.toml1# mooncake-wheel/pyproject.tomlCOMMENT
LOWmooncake-wheel/mooncake/mooncake_store_service.py301 {"error": "Missing path or size for decode mode"}COMMENT
LOWmooncake-wheel/tests/test_promotion_on_hit.py261 f"and the client's 'ProcessPromotionTasks pulled' log)"COMMENT
LOWmooncake-pg/include/mooncake_pg.h1#ifndef MOONCAKE_PG_H_COMMENT
LOWmooncake-pg/include/mooncake_communicator.h1#ifndef MOONCAKE_PG_COMMUNICATOR_HCOMMENT
LOWmooncake-pg/include/p2p_proxy.h1#ifndef MOONCAKE_P2P_PROXY_HCOMMENT
LOWmooncake-pg/include/p2p_proxy.h21namespace mooncake {COMMENT
LOWmooncake-pg/include/p2p_proxy.h41// | Ack Control Region |COMMENT
LOWmooncake-pg/include/p2p_proxy.h61// - The RECEIVER drives the flow. It allocates chunks from its RecvPool andCOMMENT
LOWmooncake-pg/include/p2p_proxy.h81// function returns false immediately and retries on the next pollingCOMMENT
LOWmooncake-pg/include/p2p_proxy.h101// Step 2 -- Rank 0 stages the user buffer into SendPoolCOMMENT
LOWmooncake-pg/include/p2p_proxy.h121// +---------------------+ +---------------------+COMMENT
LOWmooncake-pg/include/p2p_proxy.h141// | RecvPool |COMMENT
LOWmooncake-pg/include/p2p_proxy.h181 static_cast<ControlToken>(sequence & 0xFFFFFFFFu);COMMENT
LOWmooncake-pg/include/control_plane/agent_host.h1#ifndef MOONCAKE_PG_AGENT_HOST_HCOMMENT
LOWmooncake-pg/include/control_plane/agent_host.h21COMMENT
LOWmooncake-pg/include/control_plane/agent_host.h41// |COMMENT
LOWmooncake-pg/include/control_plane/control_types.h1#ifndef MOONCAKE_PG_CONTROL_PLANE_CONTROL_TYPES_HCOMMENT
LOWmooncake-pg/include/control_plane/control_types.h21// Bootstrap ID: Backend type ("cpu:" or "device:") + PyTorch-assigned group_id.COMMENT
LOWmooncake-pg/include/control_plane/control_types.h81// None ------------(initial group declaration)-----------> ActiveCOMMENT
LOWmooncake-pg/include/control_plane/rpc_runtime.h1#ifndef MOONCAKE_PG_RPC_RUNTIME_HCOMMENT
LOWmooncake-pg/include/control_plane/link_manager.h1#ifndef MOONCAKE_PG_LINK_MANAGER_HCOMMENT
LOWmooncake-pg/include/control_plane/serialized_executor.h1#ifndef MOONCAKE_PG_SERIALIZED_EXECUTOR_HCOMMENT
LOWmooncake-pg/include/control_plane/coordinator_host.h1#ifndef MOONCAKE_PG_COORDINATOR_HOST_HCOMMENT
LOWmooncake-pg/include/control_plane/coordinator_host.h21COMMENT
LOWmooncake-pg/include/control_plane/coordinator_host.h41// +------------------------------------+COMMENT
LOWmooncake-pg/include/control_plane/coordinator.h1#ifndef MOONCAKE_PG_COORDINATOR_HCOMMENT
LOWmooncake-pg/tests/transfer_fault_preload.cpp1// Copyright 2026 KVCache.AICOMMENT
LOWmooncake-pg/torch/include/mooncake_backend.h1#ifndef MOONCAKE_BACKEND_HCOMMENT
LOWmooncake-pg/torch/include/mooncake_backend.h61 // per-operation failedRanks hints, so the caller can decide how toCOMMENT
LOWmooncake-pg/torch/include/work_handles.h1#ifndef MOONCAKE_WORK_HANDLES_HCOMMENT
LOWmooncake-pg/torch/src/mooncake_backend.cpp1#include <mooncake_backend.h>COMMENT
LOWmooncake-pg/torch/src/mooncake_backend.cpp161 .view(outputs[index].sizes()));COMMENT
LOWmooncake-pg/torch/src/work_handles.cpp1#include <work_handles.h>COMMENT
LOWmooncake-pg/torch/src/pg_py.cpp1#include <mooncake_backend.h>COMMENT
LOWmooncake-pg/src/p2p_proxy.cpp1#include <memory>COMMENT
LOWmooncake-pg/src/p2p_proxy.cpp61// Consumer-side reliable read.COMMENT
LOWmooncake-pg/src/p2p_proxy.cpp981COMMENT
LOWmooncake-pg/src/mooncake_pg.cpp1#include <mooncake_pg.h>COMMENT
LOWmooncake-pg/src/mooncake_communicator.cpp1#include <mooncake_communicator.h>COMMENT
LOWmooncake-pg/src/control_plane/link_manager.cpp1#include "control_plane/link_manager.h"COMMENT
LOWmooncake-p2p-store/build.sh1#!/bin/bashCOMMENT
LOWmooncake-p2p-store/src/example/p2p-store-example.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/metadata.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/metadata.go21 "math/rand"COMMENT
LOWmooncake-p2p-store/src/p2pstore/error.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/catalog.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/core.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/transfer_engine.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-p2p-store/src/p2pstore/registered_memory.go1// Copyright 2024 KVCache.AICOMMENT
LOWmooncake-ep/include/mooncake_ep_device.h1#pragma onceCOMMENT
LOWmooncake-ep/include/mooncake_ep_device.h21COMMENT
1286 more matches not shown…
Hyper-Verbose Identifiers1016 hits · 910 pts
SeverityFileLineSnippetContext
LOWmooncake-rl/examples/rl_samples.py119 def init_weight_update_connections(self, rollout_manager):CODE
LOWpython/mooncake/mooncake_ep_buffer.py29def _native_current_stream_ptr() -> int:CODE
LOWpython/mooncake/mooncake_ep_buffer.py33def _wait_native_event_on_current_stream(event: "ep.EventHandle") -> None:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py344 def _atomic_scratch_num_bytes() -> int:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py398 def get_engram_storage_size_hint(CODE
LOWpython/mooncake/mooncake_elastic_buffer.py415 def get_agrs_buffer_size_hint(CODE
LOWpython/mooncake/mooncake_elastic_buffer.py421 def _calculate_physical_domain_size(group: dist.ProcessGroup) -> Tuple[int, int]:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py433 def _calculate_logical_domain_size(CODE
LOWpython/mooncake/mooncake_elastic_buffer.py455 def _hybrid_num_max_tokens_per_channel(CODE
LOWpython/tests/packaging/test_project.py19def test_scikit_build_core_is_the_only_build_backend() -> None:CODE
LOWpython/tests/packaging/test_project.py38def test_dependency_boundaries_are_declared() -> None:CODE
LOWpython/tests/packaging/test_project.py52def test_tracked_source_roots_contain_no_generated_native_artifacts() -> None:CODE
LOWpython/tests/packaging/test_project.py60def test_ep_modules_have_one_authoritative_source() -> None:CODE
LOWpython/tests/packaging/test_project.py92def test_pg_extension_build_stages_outside_the_source_tree(CODE
LOWpython/tests/packaging/test_installed_wheel.py24def test_wheel_imports_outside_the_repository(tmp_path: Path) -> None:CODE
LOWpython/tests/ep/test_regmr_overhead.py29def test_cuda_memset_overhead():CODE
LOWpython/tests/ep/test_regmr_overhead.py92def test_ctrl_buf_init_overhead():CODE
LOWpython/tests/ep/test_regmr_overhead.py174def test_transfer_engine_reg_mr_overhead():CODE
LOWpython/tests/ep/test_regmr_overhead.py268def test_buffer_init_overhead():CODE
LOWpython/tests/ep/test_regmr_overhead.py352 def test_transfer_engine_reg_mr(self):CODE
LOWpython/tests/ep/test_ep_grid.py34def import_torchada_if_needed():CODE
LOWpython/tests/ep/test_elastic_buffer.py42def import_torchada_if_needed() -> None:CODE
LOWmooncake-reshard/python/mooncake/reshard/geometry.py77def _one_dimensional_boxes_overlap(CODE
LOWmooncake-reshard/python/mooncake/reshard/geometry.py150def _two_dimensional_boxes_overlap(CODE
LOWmooncake-reshard/python/mooncake/reshard/geometry.py183def _high_dimensional_boxes_overlap(CODE
LOW…oncake-reshard/python/mooncake/reshard/weight/serde.py67def weight_placement_from_json(value: str) -> WeightPlacementManifest:CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py380def validate_weight_manifest_snapshot(manifest: WeightManifest) -> WeightManifest:CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py432def _stored_fragment_from_wire(CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py470def _validate_stored_fragments(CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py497def _validate_stored_coverage(CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py525def _stored_alias_descriptor_key(CODE
LOW…ard/python/mooncake/reshard/weight/storage_manifest.py576def _validate_stored_object_ranges(CODE
LOW…oncake-reshard/python/mooncake/reshard/weight/types.py162def validate_fragment_geometry(CODE
LOW…oncake-reshard/python/mooncake/reshard/weight/types.py354def _canonical_placement_fragment_id(CODE
LOW…oncake-reshard/python/mooncake/reshard/weight/types.py379def _validate_parallel_axis_kind(kind: ParallelAxisKind) -> None:CODE
LOW…ke-reshard/python/mooncake/reshard/weight/placement.py348def _placement_fragment_identity(fragment: PlacementFragment) -> dict[str, object]:CODE
LOW…cake-reshard/python/mooncake/reshard/weight/binding.py93def _validate_runtime_binding_subset(CODE
LOW…cake-reshard/python/mooncake/reshard/weight/binding.py140def validate_runtime_bindings(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py63def _validate_complete_alias_groups(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py99def _validate_complete_weight_placement(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py151def _validate_tensor_axis_covers(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py205def _validate_undeclared_axis_dependencies(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py249def _validate_split_axis_geometry(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py323def _validate_split_axis_participation(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py352def _fragments_exactly_cover_tensor(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py364def _validate_logical_fragment_overlaps(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py386def _validate_fragment_geometry(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py399def _runtime_alias_descriptor_key(tensor: TensorDescriptor) -> tuple[object, ...]:CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py412def _is_exact_declared_runtime_alias(CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py433def _validate_runtime_binding_address_ranges(CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py14def _fragments_fully_cover_tensor(CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py48def complete_dp_owned_source_owners(CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py96def _validate_target_coverage(CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py148def complete_parallel_source_replicas(CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py195def _validate_local_target_inventory(CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py26def _validate_bound_target_coverage(plan: TransferPlan) -> None:CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py125def _is_safe_declared_alias_overlap(CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py198def _absolute_target_segments(CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py208def _budgeted_target_segments(CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py224def _target_fragment_scan_key(CODE
956 more matches not shown…
Decorative Section Separators101 hits · 336 pts
SeverityFileLineSnippetContext
MEDIUMpython/mooncake/mooncake_ep_buffer.py687 # -----------------COMMENT
MEDIUMpython/mooncake/mooncake_ep_buffer.py689 # -----------------COMMENT
MEDIUMmooncake-wheel/setup.py8# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py10# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py153# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py180# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py182# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/mooncake/structured_object_store.py6424# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/mooncake/structured_object_store.py6426# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py216 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py218 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py250 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py252 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py282 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py284 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py438 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py440 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py470 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py472 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py555 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py557 # --------------------------COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py23# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py25# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py36# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py38# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py63# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py65# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py184# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py186# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py563# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py565# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py649# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py651# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/layout/mla.py12# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/layout/mla.py14# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/layout/mla.py121# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/layout/mla.py123# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py133 # ========================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py135 # ========================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py248 # ========================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py250 # ========================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py307 # ========================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/storage/disk.py309 # ========================================================================COMMENT
MEDIUMscripts/test_tensor_api.py141# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py143# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py409# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py411# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2070# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2072# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py26# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py28# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py391# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py393# ==========================================COMMENT
41 more matches not shown…
Unused Imports250 hits · 232 pts
SeverityFileLineSnippetContext
LOWpython/mooncake/__init__.py3CODE
LOWpython/mooncake/__init__.py3CODE
LOWpython/tests/packaging/test_project.py1CODE
LOWpython/tests/packaging/test_installed_wheel.py1CODE
LOWpython/tests/ep/test_ep_grid.py38CODE
LOWpython/tests/ep/test_elastic_buffer.py20CODE
LOWpython/tests/ep/test_elastic_buffer.py45CODE
LOWmooncake-reshard/python/mooncake/reshard/_typing.py6CODE
LOWmooncake-reshard/python/mooncake/reshard/_typing.py8CODE
LOWmooncake-reshard/python/mooncake/reshard/__init__.py3CODE
LOWmooncake-reshard/python/mooncake/reshard/__init__.py3CODE
LOWmooncake-reshard/python/mooncake/reshard/__init__.py3CODE
LOWmooncake-reshard/python/mooncake/reshard/__init__.py3CODE
LOWmooncake-reshard/python/mooncake/reshard/geometry.py3CODE
LOWmooncake-reshard/python/mooncake/reshard/_compat.py3CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py3CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py3CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py3CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py8CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py8CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py8CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py13CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py13CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py13CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py18CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py31CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py31CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py4CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py5CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py6CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py7CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py7CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py8CODE
LOW…oncake-reshard/python/mooncake/reshard/weight/serde.py8CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py3CODE
190 more matches not shown…
Excessive Try-Catch Wrapping186 hits · 223 pts
SeverityFileLineSnippetContext
LOWpython/mooncake/mooncake_ep_buffer.py296 except Exception as e:CODE
LOWpython/mooncake/mooncake_ep_buffer.py310 except Exception:CODE
LOWpython/mooncake/mooncake_ep_buffer.py322 except Exception:CODE
LOWpython/mooncake/mooncake_ep_buffer.py334 except Exception:CODE
LOWpython/mooncake/mooncake_ep_buffer.py350 except Exception:CODE
MEDIUMpython/mooncake/mooncake_ep_buffer.py319def _is_mooncake_backend(self) -> bool:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py299 except Exception as exc:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py373 except Exception:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py427 except Exception:CODE
LOWpython/tests/ep/test_regmr_overhead.py264 except Exception as e:CODE
LOWpython/tests/ep/test_regmr_overhead.py299 except Exception:CODE
LOWpython/tests/ep/test_regmr_overhead.py334 except Exception as e:CODE
LOWpython/tests/ep/test_regmr_overhead.py407 except Exception as e:CODE
LOWpython/tests/ep/test_regmr_overhead.py416 except Exception:CODE
MEDIUMpython/tests/ep/test_regmr_overhead.py445 print("Error: WORLD_SIZE must be at least 2 for distributed tests")CODE
LOWpython/tests/ep/test_mooncake_ep.py346 except Exception:CODE
LOWpython/tests/ep/test_ep_grid.py245 except Exception:CODE
LOWpython/tests/ep/test_ep_grid.py402 except Exception:CODE
MEDIUM.claude/skills/mooncake-api/SKILL.md446 print("Error checking existence")CODE
LOWmooncake-wheel/setup.py101 except Exception:CODE
LOWmooncake-wheel/mooncake/http_metadata_server.py121 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py55 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py220 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py289 except Exception as e:CODE
LOWmooncake-wheel/mooncake/vllm_v1_proxy_server.py247 except Exception as e:CODE
MEDIUMmooncake-wheel/mooncake/vllm_v1_proxy_server.py252 print(f"Error occurred in disagg prefill proxy server - {api} endpoint")CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py152 except Exception as e:CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py447 except Exception as e:CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py535 except Exception as e:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4697 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4704 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6294 except Exception as error:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6303 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6311 except Exception as error:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6436except Exception: # pragma: no coverCODE
LOWmooncake-wheel/mooncake/structured_object_store.py18except Exception: # pragma: no cover - depends on built extensionCODE
LOWmooncake-wheel/mooncake/structured_object_store.py26except Exception: # pragma: no coverCODE
LOWmooncake-wheel/mooncake/structured_object_store.py1620 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3686 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3747 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3774 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4142 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4314 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4634 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4666 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4885 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py5041 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py5077 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6402 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6412 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py475 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py535 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py589 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py607 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py615 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py646 except Exception:CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py688 except Exception:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py559 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py576 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py583 except Exception as e:CODE
126 more matches not shown…
Structural Annotation Overuse76 hits · 141 pts
SeverityFileLineSnippetContext
LOWmooncake-pg/tests/test_pg_elastic.py671 # Step 1: All ranks participate in first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py676 # Step 2: Broken rank exits after first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py681 # Step 3: Survivors wait for broken rank to exitCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py684 # Step 4: Survivors run collective without broken rankCOMMENT
LOWdocs/source/design/tent/metrics.md317### Step 1: Declare the MetricCOMMENT
LOWdocs/source/design/tent/metrics.md332### Step 2: Register the MetricCOMMENT
LOWdocs/source/design/tent/metrics.md352### Step 3: Add Recording Methods (Optional)COMMENT
LOWdocs/source/api-reference/python/mooncake-store.md374# Step 1: Register the bufferCOMMENT
LOWdocs/source/api-reference/python/mooncake-store.md379# Step 2: Zero-copy storeCOMMENT
LOWdocs/source/api-reference/python/mooncake-store.md386# Step 3: Pre-allocate buffer for retrievalCOMMENT
LOWdocs/source/api-reference/python/mooncake-store.md391# Step 4: Register receive bufferCOMMENT
LOWdocs/source/api-reference/python/mooncake-store.md396# Step 5: Zero-copy retrievalCOMMENT
LOWdocs/source/api-reference/python/mooncake-store.md405# Step 6: Clean up - unregister both buffersCOMMENT
LOWdocs/source/deployment/ssd/ssd-offload.md20### Step 1: Create the SSD storage directoryCOMMENT
LOWdocs/source/deployment/ssd/ssd-offload.md26### Step 2: Start the masterCOMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp235 // Step 1: Submit on "RDMA" — should fail (proxy injects fault)COMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp239 // Step 2: Failover logic (mirrors resubmitTransferTask)COMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp247 // Step 3: Submit on "TCP" — should succeedCOMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp251 // Step 4: Verify completionCOMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp153 // Step 1: RDMA reports FAILEDCOMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp157 // Step 2: resubmitTransferTask logic (simulated)COMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp172 // Step 3: TCP succeedsCOMMENT
LOW…e-transfer-engine/tent/src/runtime/admission_queue.cpp320 // Step 3: an owner predicted to miss its deadline is dropped (notCOMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2080 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2123 // Step 2: Try larger divisor; remove trailing zeros if necessaryCOMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2159 // Step 3: Find the significand with the smaller divisorCOMMENT
LOWmooncake-store/rust/examples/basic_usage.rs53 // Step 1: Create a store handle.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs65 // Step 2: Connect to the metadata server and transport layer.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs93 // Step 3: Put a key/value pair (copies data into the store).COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs106 // Step 4: Check existence.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs113 // Step 5: Get size.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs119 // Step 6: Retrieve the value.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs128 // Step 7: Put with explicit replication config.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs142 // Step 8: Remove the keys.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs153 // Step 9: Demonstrate error handling for a missing key.COMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1176 // Step 1: Simulate cache miss — get a free blockCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1180 // Step 2: Write data directly into the block (simulating TransferReadCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1185 // Step 3: Set metadata and insert into LRUCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1190 // Step 4: Re-acquire ref via GetHotKeyCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1196 // Step 5: Create BufferHandle in view modeCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1063 // Step 1: Mount segment and create a completed MEMORY replica.COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1082 // Step 2: Mount local disk segment and add LOCAL_DISK replica viaCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1110 // Step 3: Remove the object (removes both MEMORY and LOCAL_DISK replicas).COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1125 // Step 4: Test SSD hit path by creating an object with only a LOCAL_DISKCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp381 // Step 2: Create copy task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp389 // Step 3: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp394 // Step 4: Copy adds the target and preserves the source replica.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp397 // Step 5: Verify data integrity.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp437 // Step 2: Create move task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp445 // Step 3: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp450 // Step 4: Move adds the target and removes the source replica.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp453 // Step 5: Verify data integrity.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp357 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp413 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp796 // Step 1: Put multiple keys on client1COMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp880 // Step 1: Create a snapshot using a serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp889 // Step 2: Create a new service with restore + backup_dir setCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp918 // Step 1: Create a snapshot using a serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp927 // Step 2: Create a new service with restore but NO backup_dirCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1123 // Step 2: Persist stateCOMMENT
16 more matches not shown…
Verbosity Indicators66 hits · 122 pts
SeverityFileLineSnippetContext
LOWmooncake-pg/tests/test_pg_elastic.py671 # Step 1: All ranks participate in first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py676 # Step 2: Broken rank exits after first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py681 # Step 3: Survivors wait for broken rank to exitCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py684 # Step 4: Survivors run collective without broken rankCOMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp235 // Step 1: Submit on "RDMA" — should fail (proxy injects fault)COMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp239 // Step 2: Failover logic (mirrors resubmitTransferTask)COMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp247 // Step 3: Submit on "TCP" — should succeedCOMMENT
LOW…oncake-transfer-engine/tent/tests/fault_proxy_test.cpp251 // Step 4: Verify completionCOMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp153 // Step 1: RDMA reports FAILEDCOMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp157 // Step 2: resubmitTransferTask logic (simulated)COMMENT
LOWmooncake-transfer-engine/tent/tests/failover_test.cpp172 // Step 3: TCP succeedsCOMMENT
LOW…e-transfer-engine/tent/src/runtime/admission_queue.cpp320 // Step 3: an owner predicted to miss its deadline is dropped (notCOMMENT
LOWmooncake-store/include/client_metric.h256 // For dynamic metrics, we need to check if there are any labels withCOMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2080 // Step 1: integer promotion & Schubfach multiplier calculation.COMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2123 // Step 2: Try larger divisor; remove trailing zeros if necessaryCOMMENT
LOW…ude/cachelib_memory_allocator/include/fmt/format-inl.h2159 // Step 3: Find the significand with the smaller divisorCOMMENT
LOWmooncake-store/rust/examples/basic_usage.rs53 // Step 1: Create a store handle.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs65 // Step 2: Connect to the metadata server and transport layer.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs93 // Step 3: Put a key/value pair (copies data into the store).COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs106 // Step 4: Check existence.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs113 // Step 5: Get size.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs119 // Step 6: Retrieve the value.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs128 // Step 7: Put with explicit replication config.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs142 // Step 8: Remove the keys.COMMENT
LOWmooncake-store/rust/examples/basic_usage.rs153 // Step 9: Demonstrate error handling for a missing key.COMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1176 // Step 1: Simulate cache miss — get a free blockCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1180 // Step 2: Write data directly into the block (simulating TransferReadCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1185 // Step 3: Set metadata and insert into LRUCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1190 // Step 4: Re-acquire ref via GetHotKeyCOMMENT
LOWmooncake-store/tests/client_local_hot_cache_test.cpp1196 // Step 5: Create BufferHandle in view modeCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1063 // Step 1: Mount segment and create a completed MEMORY replica.COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1082 // Step 2: Mount local disk segment and add LOCAL_DISK replica viaCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1110 // Step 3: Remove the object (removes both MEMORY and LOCAL_DISK replicas).COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp1125 // Step 4: Test SSD hit path by creating an object with only a LOCAL_DISKCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp381 // Step 2: Create copy task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp389 // Step 3: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp394 // Step 4: Copy adds the target and preserves the source replica.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp397 // Step 5: Verify data integrity.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp437 // Step 2: Create move task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp445 // Step 3: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp450 // Step 4: Move adds the target and removes the source replica.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp453 // Step 5: Verify data integrity.COMMENT
LOWmooncake-store/tests/task_integration_test.cpp357 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp413 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp796 // Step 1: Put multiple keys on client1COMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp880 // Step 1: Create a snapshot using a serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp889 // Step 2: Create a new service with restore + backup_dir setCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp918 // Step 1: Create a snapshot using a serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp927 // Step 2: Create a new service with restore but NO backup_dirCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1123 // Step 2: Persist stateCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1129 // Step 3: Restore into a new serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1223 // Step 2: Persist stateCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1229 // Step 3: Restore into a new serviceCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp902 // Step 3: Verify backup files were created inCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp939 // Step 3: Verify NO backup directory was createdCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1078 // Step 1: Create service and add both clean and dirty dataCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1141 // Step 4: Verify non-COMPLETE replica was cleaned, complete one remainsCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1152 // Step 1: Create service with long lease TTLCOMMENT
LOW…tore/tests/ha/snapshot/snapshot_child_process_test.cpp1241 // Step 4: Verify normal data retained, expired-lease data cleanedCOMMENT
LOWmooncake-store/src/storage_backend.cpp1903 // Step 1: Build read plan by copying metadata under lockCOMMENT
6 more matches not shown…
Cross-File Repetition18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHmooncake-wheel/mooncake/cli_bench.py0main entry point for the mooncake_master command. simply runs the mooncake_master binary with all arguments passed throuSTRING
HIGHmooncake-wheel/mooncake/cli_client.py0main entry point for the mooncake_master command. simply runs the mooncake_master binary with all arguments passed throuSTRING
HIGHmooncake-wheel/mooncake/cli.py0main entry point for the mooncake_master command. simply runs the mooncake_master binary with all arguments passed throuSTRING
HIGHmooncake-wheel/tests/test_dummy_client.py0test class for single store operations (no replication).STRING
HIGH…ncake-wheel/tests/test_distributed_object_store_cxl.py0test class for single store operations (no replication).STRING
HIGHmooncake-wheel/tests/test_distributed_object_store.py0test class for single store operations (no replication).STRING
HIGHmooncake-wheel/tests/test_dummy_client.py0test basic put/get/exist operations through the python interface.STRING
HIGH…ncake-wheel/tests/test_distributed_object_store_cxl.py0test basic put/get/exist operations through the python interface.STRING
HIGHmooncake-wheel/tests/test_distributed_object_store.py0test basic put/get/exist operations through the python interface.STRING
HIGHmooncake-wheel/tests/test_dummy_client.py0test batch is_exist operations through the python interface.STRING
HIGH…ncake-wheel/tests/test_distributed_object_store_cxl.py0test batch is_exist operations through the python interface.STRING
HIGHmooncake-wheel/tests/test_distributed_object_store.py0test batch is_exist operations through the python interface.STRING
HIGHmooncake-wheel/tests/test_dummy_client.py0end-to-end fuzz test comparing distributed store behavior with dict. performs ~1000 random operations (put, get, remove)STRING
HIGH…ncake-wheel/tests/test_distributed_object_store_cxl.py0end-to-end fuzz test comparing distributed store behavior with dict. performs ~1000 random operations (put, get, remove)STRING
HIGHmooncake-wheel/tests/test_distributed_object_store.py0end-to-end fuzz test comparing distributed store behavior with dict. performs ~1000 random operations (put, get, remove)STRING
HIGHmooncake-wheel/tests/test_dummy_client.py0test replicateconfig class creation and property access.STRING
HIGH…ncake-wheel/tests/test_distributed_object_store_cxl.py0test replicateconfig class creation and property access.STRING
HIGHmooncake-wheel/tests/test_distributed_object_store.py0test replicateconfig class creation and property access.STRING
Deep Nesting81 hits · 66 pts
SeverityFileLineSnippetContext
LOWpython/mooncake/mooncake_ep_buffer.py709CODE
LOWpython/mooncake/mooncake_ep_buffer.py927CODE
LOWpython/tests/ep/ep_test_utils.py156CODE
LOWpython/tests/ep/test_regmr_overhead.py174CODE
LOWpython/tests/ep/test_mooncake_ep.py25CODE
LOW…e-reshard/python/mooncake/reshard/weight/validation.py433CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py96CODE
LOW…n/mooncake/reshard/weight/_planner/bound_validation.py256CODE
LOW…eshard/python/mooncake/reshard/weight/_planner/core.py146CODE
LOW…ard/python/mooncake/reshard/weight/_planner/binding.py125CODE
LOW…ard/python/mooncake/reshard/weight/_planner/binding.py314CODE
LOWmooncake-wheel/setup.py28CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py20CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py78CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py120CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py66CODE
LOWmooncake-wheel/mooncake/mooncake_config.py127CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1901CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2384CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2589CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2707CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2950CODE
LOWmooncake-wheel/mooncake/structured_object_store.py5691CODE
LOWmooncake-wheel/mooncake/structured_object_store.py6590CODE
LOWmooncake-wheel/mooncake/structured_object_store.py686CODE
LOWmooncake-wheel/mooncake/structured_object_store.py879CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1188CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1401CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1630CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3606CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4029CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4671CODE
LOWmooncake-wheel/mooncake/structured_object_store.py706CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py435CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py483CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py93CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py129CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py285CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py21CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py93CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py135CODE
LOWmooncake-wheel/tests/test_dummy_client.py142CODE
LOWmooncake-wheel/tests/test_dummy_client.py854CODE
LOWmooncake-wheel/tests/test_structured_object_store.py199CODE
LOW…ncake-wheel/tests/test_distributed_object_store_cxl.py521CODE
LOWmooncake-wheel/tests/test_safetensor_functions.py115CODE
LOWmooncake-wheel/tests/test_offload_on_eviction.py69CODE
LOWmooncake-wheel/tests/test_distributed_object_store.py644CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py293CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py422CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py322CODE
LOWmooncake-wheel/tests/test_mooncake_config.py465CODE
LOWmooncake-wheel/tests/test_promotion_on_hit.py93CODE
LOWmooncake-pg/benchmark/pgbench.py187CODE
LOWmooncake-pg/tests/test_pg_collectives.py14CODE
LOWmooncake-pg/tests/test_pg_init_functional.py33CODE
LOWmooncake-pg/tests/test_pg_p2p.py89CODE
LOWbenchmarks/xypd_benchmarks/proxy_demo.py110CODE
LOWbenchmarks/xypd_benchmarks/proxy_demo.py388CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py653CODE
21 more matches not shown…
Cross-Language Confusion8 hits · 48 pts
SeverityFileLineSnippetContext
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py195 class=$(cat "$dev/class" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py201 driver=$(basename "$(readlink "$dev/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py201 driver=$(basename "$(readlink "$dev/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py212 real_device=$(readlink -f "$block/device" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py265 driver=$(basename "$(readlink "/sys/bus/pci/devices/$pci/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py265 driver=$(basename "$(readlink "/sys/bus/pci/devices/$pci/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHscripts/test_engram_store.py52 "cd build && cmake .. -DWITH_STORE=ON && make -j 128"CODE
HIGH…nsfer-engine/example/efa_per_transfer_latency_bench.py69 "| xargs -r kill 2>/dev/null; sleep 1; echo done"CODE
Modern Structural Boilerplate37 hits · 37 pts
SeverityFileLineSnippetContext
LOWpython/mooncake/__init__.py5__all__ = ["BufferPool", "RegisteredBufferPool"]CODE
LOWpython/mooncake/mooncake_elastic_buffer.py313 def update_ep_member(self) -> None:CODE
LOWpython/mooncake/mooncake_elastic_buffer.py894__all__ = ["ElasticBuffer", "EPHandle", "EventOverlap"]CODE
LOWmooncake-reshard/python/mooncake/reshard/_typing.py10__all__ = ["TypeAlias"]CODE
LOWmooncake-reshard/python/mooncake/reshard/__init__.py10__all__ = [CODE
LOWmooncake-reshard/python/mooncake/reshard/geometry.py258__all__ = [CODE
LOW…cake-reshard/python/mooncake/reshard/weight/planner.py34__all__ = [CODE
LOW…ake-reshard/python/mooncake/reshard/weight/manifest.py19__all__ = [CODE
LOW…ake-reshard/python/mooncake/reshard/weight/__init__.py46__all__ = [CODE
LOW…cake-reshard/python/mooncake/reshard/weight/runtime.py80__all__ = ["WeightRuntimeBindingManifest"]CODE
LOW…ake-reshard/python/mooncake/reshard/weight/topology.py152__all__ = ["ParallelTopology", "TopologyParticipant"]CODE
LOWmooncake-reshard/python/mooncake/reshard/weight/part.py86__all__ = ["WeightPlacementPart"]CODE
LOW…d/python/mooncake/reshard/weight/_planner/ownership.py213__all__ = [CODE
LOW…rd/python/mooncake/reshard/weight/_planner/__init__.py31__all__ = [CODE
LOW…reshard/python/mooncake/reshard/weight/_planner/api.py160__all__ = [CODE
LOW…on/mooncake/reshard/weight/_planner/bound_contracts.py639__all__ = [CODE
LOW…d/python/mooncake/reshard/weight/_planner/contracts.py804__all__ = [CODE
LOW…d/python/mooncake/reshard/weight/_planner/fragments.py179__all__ = [CODE
LOW…ard/python/mooncake/reshard/weight/_planner/binding.py621__all__ = [CODE
LOW…-reshard/python/mooncake/reshard/contracts/__init__.py27__all__ = [CODE
LOW…ncake-reshard/python/mooncake/reshard/contracts/ids.py26__all__ = [CODE
LOWmooncake-wheel/mooncake/buffer_pool.py12__all__ = ["BufferPool", "RegisteredBufferPool"]CODE
LOWmooncake-wheel/mooncake/vllm_v1_proxy_server.py16logger = logging.getLogger(__name__)CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py325 def _setup_spdk(self, ssh: paramiko.SSHClient, spdk_path: str, pci_devices: List[str]) -> None:CODE
LOWmooncake-wheel/mooncake/mooncake_config.py70logger = logging.getLogger(__name__)CODE
LOWmooncake-wheel/mooncake/__init__.py9__all__ = ["BufferPool", "RegisteredBufferPool"]CODE
LOWmooncake-wheel/mooncake/dataproto_catalog.py11logger = logging.getLogger(__name__)CODE
LOWdocs/source/conf.py24logger = logging.getLogger(__name__)CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py20__all__ = [CODE
LOWbenchmarks/storage_benchmark_v1/layout/__init__.py10__all__ = [CODE
LOWbenchmarks/storage_benchmark_v1/storage/__init__.py10__all__ = [CODE
LOWscripts/tone_tests/python/toy_proxy_server.py17logger = logging.getLogger(__name__)CODE
LOWmooncake-integration/allocator_ascend_npu.py11logger = logging.getLogger(__name__)CODE
LOWmooncake-integration/fabric_allocator_utils.py7logger = logging.getLogger(__name__)CODE
LOWmooncake-integration/allocator.py14logger = logging.getLogger(__name__)CODE
LOWmooncake-integration/shared_segment.py40__all__ = [CODE
LOW…ransfer-engine/tests/fault-tolerant/transfer_engine.py4logger = logging.getLogger(__name__)CODE
Self-Referential Comments12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMmooncake-wheel/pyproject.toml3# This file is built from this directory; scripts/build_wheel.sh `cd`sCOMMENT
MEDIUM…ncake-wheel/tests/test_distributed_object_store_cxl.py77 # Create a new store instance with zero local buffer sizeCOMMENT
MEDIUMmooncake-wheel/tests/test_safetensor_functions.py56 # Create a test tensorCOMMENT
MEDIUMmooncake-wheel/tests/test_distributed_object_store.py110 # Create a new store instance with zero local buffer sizeCOMMENT
MEDIUMmooncake-wheel/tests/test_put_get_tensor.py23# Define a test class for serializationCOMMENT
MEDIUMscripts/test_copy_move_api.py162 # Create a coordinator client to run testsCOMMENT
MEDIUMscripts/test_tensor_api.py539 # Create a small tensor (e.g., 16MB)COMMENT
MEDIUMscripts/test_tensor_api.py849 # Create a small tensor (e.g., 16MB)COMMENT
MEDIUMscripts/tone_tests/python/toy_proxy_server.py1# This file is from the vllm community: ./tests/v1/kv_connector/nixl_integration/toy_proxy_server.pyCOMMENT
MEDIUMscripts/ascend/dependencies_ascend_installation.sh17# Define a function to handle the git clone operationCOMMENT
MEDIUMscripts/ascend/dependencies_ascend.sh27# Define a function to handle the git clone operationCOMMENT
MEDIUMmooncake-store/tests/e2e/run_oplog_batch_cluster.sh417 # This file is generated by this script with shell-escaped values.COMMENT
AI Slop Vocabulary13 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMmooncake-wheel/setup.py22 # packaging ≥20 provides a robust glibc detector used by pip/buildCOMMENT
MEDIUMmooncake-wheel/mooncake/mooncake_connector_v1.py435 # Tasks can await async events, so a surplus (2x is a robust heuristic)COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py162 """Print comprehensive statistics for the test."""STRING
MEDIUM…-transfer-engine/tent/tests/metrics_recording_test.cpp101// tests are robust to singleton state accumulated by prior tests.COMMENT
MEDIUMmooncake-store/tests/stress_cluster_benchmark.py124 """Calculate and return comprehensive performance statistics."""STRING
MEDIUMmooncake-store/tests/stress_cluster_benchmark.py331 """Print comprehensive performance statistics in a structured format."""STRING
MEDIUMmooncake-store/benchmarks/batch_remove_benchmark.py12 # Run comprehensive testsSTRING
MEDIUMmooncake-store/src/client_service.cpp2228 // Helper methods for robust state managementCOMMENT
MEDIUMmooncake-store/src/client_service.cpp2381 // Process individual responses with robust error handlingCOMMENT
MEDIUMmooncake-store/src/client_service.cpp2460 // Process individual responses with robust error handlingCOMMENT
MEDIUMmooncake-store/src/transfer_task.cpp177// to fully utilize the available ssd bandwidth, we use a default of 10 workerCOMMENT
MEDIUMmooncake-store/src/transfer_task.cpp293// to fully utilize the available ssd bandwidth, we use a default of 4 workerCOMMENT
MEDIUMmooncake-store/src/utils/s3_helper.cpp330 // the network For GB-sized files, 2 concurrent downloads can fully utilizeCOMMENT
Redundant / Tautological Comments17 hits · 28 pts
SeverityFileLineSnippetContext
LOWdependencies.sh229# Check if .gitmodules existsCOMMENT
LOWpython/tests/ep/test_regmr_overhead.py367 # Check if distributed environment is already initializedCOMMENT
LOWpython/tests/ep/test_regmr_overhead.py425 # Check if we should run with multiprocessing (for distributed tests)COMMENT
LOWmooncake-wheel/mooncake/spdk_tgt_create.py305 # Check if tgt is already runningCOMMENT
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py257 # Check if the error is due to the segment already existing on the serverCOMMENT
LOWmooncake-wheel/tests/test_cli.py14 # Check if mooncake_master is in PATHCOMMENT
LOWmooncake-wheel/tests/test_cli.py79 # Check if process is runningCOMMENT
LOWbenchmarks/storage_benchmark_v1/benchmark.py738 # Print resultsCOMMENT
LOWscripts/test_installation.sh55# Check if the mooncake_master entry point is installed and executableCOMMENT
LOWscripts/test_installation.sh60# Check if the mooncake_client entry point is installed and executableCOMMENT
LOWscripts/test_installation.sh65# Check if the transfer_engine_bench entry point is installed and executableCOMMENT
LOWscripts/run_tests.sh160# Check if MOONCAKE_STORAGE_ROOT_DIR is set and not emptyCOMMENT
LOWscripts/code_format.sh367 # Check if file actually changedCOMMENT
LOWscripts/tone_tests/scripts/common.sh91 # Check if sglang-router is needed and missingCOMMENT
LOWscripts/tone_tests/scripts/run_test.sh104 # Check if ARTIFACT_ID matches current environmentCOMMENT
LOWscripts/tone_tests/scripts/run_test.sh110 # Check if whl package existsCOMMENT
LOW.github/workflows/ci_ascend.yml223 # Check if master is runningCOMMENT
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHmooncake-pg/benchmark/pgbench.py525 # Aggregate times as requestedCOMMENT
HIGHmooncake-store/tests/offset_allocator_test.cpp1099// ========== EDGE CASE TESTS, Generated by AI ==========COMMENT
HIGHmooncake-store/tests/offset_allocator_test.cpp1242// ========== BIN SYSTEM TESTS, Generated by AI ==========COMMENT
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHbenchmarks/storage_benchmark_v1/layout/mla.py126Get MLA model configuration by name Args: model_name: Model identifier (e.g., 'glm5', 'kimi-k2.6') RetSTRING
HIGHbenchmarks/storage_benchmark_v1/layout/mla.py144Create an MLALayout instance from model configuration Args: model_config: Model configuration dictionary wiSTRING
HIGHscripts/ascend/perf/hccl_tools.py26 parse args . Args: Returns: args. Examples: >>> parse_args() STRING
Modern AI Meta-Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md190- **Distributed KV cache pooling and sharing**: [Mooncake Store extends vLLM](https://vllm.ai/blog/2026-05-06-mooncake-sCODE
MEDIUM…s/source/deployment/mooncake-store-deployment-guide.md123The simplest deployment, as shown in [Quick Start](#quick-start). A single `mooncake_master` orchestrates clients over TCODE
MEDIUMdocs/source/performance/vllm/vllm-v1-mooncake-store.md11## Speeding up real agentic tracesCOMMENT
MEDIUMmooncake-transfer-engine/tent/tests/CMakeLists.txt368# ProgressWorker skeleton test: covers default-off behavior, event-drivenCOMMENT
AI Structural Patterns10 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/mooncake/mooncake_elastic_buffer.py104CODE
LOWpython/mooncake/mooncake_elastic_buffer.py484CODE
LOW…eshard/tests/model_weight_placement_binding/helpers.py96CODE
LOWmooncake-reshard/tests/model_weight_planner/helpers.py68CODE
LOWmooncake-wheel/mooncake/structured_object_store.py736CODE
LOWmooncake-wheel/mooncake/structured_object_store.py769CODE
LOWmooncake-wheel/mooncake/structured_object_store.py879CODE
LOWmooncake-pg/tests/pg_test_utils.py190CODE
LOWmooncake-ep/benchmarks/ep_benchmark/metrics.py62CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py412CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/code_format.sh9# Usage:COMMENT