Repository Analysis

kvcache-ai/Mooncake

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

6.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kvcache-ai/Mooncake, a C++ project with 5,820 GitHub stars. SynthScan v2.0 examined 424,771 lines of code across 1197 source files, recording 2294 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 6.4 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.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.8K
Stars
C++
Language
424.8K
Lines of Code
1.2K
Files
2.3K
Pattern Hits
2026-07-14
Scan Date
0.03
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 160LOW 2102

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 2294 distinct pattern matches across 20 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 Block1076 hits · 1000 pts
SeverityFileLineSnippetContext
LOWdependencies.sh1#!/bin/bashCOMMENT
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
LOWmooncake-wheel/pyproject.toml1# mooncake-wheel/pyproject.tomlCOMMENT
LOWmooncake-pg/include/connection_poller.h1#ifndef MOONCAKE_PG_CONNECTION_POLLER_HCOMMENT
LOWmooncake-pg/include/mooncake_backend.h1#ifndef MOONCAKE_BACKEND_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 user tensor 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/src/p2p_proxy.cpp1#include <memory>COMMENT
LOWmooncake-pg/src/p2p_proxy.cpp1141 slot.reset();COMMENT
LOWmooncake-pg/src/mooncake_backend.cpp1#include <ATen/cuda/CUDAContext.h>COMMENT
LOWmooncake-pg/src/mooncake_backend.cpp381 rank_info.warmup_buffer[1] =COMMENT
LOWmooncake-pg/src/mooncake_worker_host.cpp1// mooncake_worker_host.cpp — Host-side code for PG collectives.COMMENT
LOWmooncake-pg/src/mooncake_worker_host.cpp61 // Our current hypothesis for the hang is: PyTorch assumes the kernelsCOMMENT
LOWmooncake-pg/src/mooncake_worker_host.cpp81 // is rare).COMMENT
LOWmooncake-pg/src/mooncake_worker_host.cpp101 } else {COMMENT
LOWmooncake-pg/src/connection_poller.cpp1#include <c10/util/Exception.h>COMMENT
LOWmooncake-pg/src/connection_poller.cpp401 //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
LOWmooncake-ep/include/mooncake_ep_device.h61// still compiled because the host selects the kernel through a runtime bool, soCOMMENT
LOWmooncake-ep/include/mooncake_ep_buffer.h1#ifndef MOONCAKE_EP_BUFFER_HCOMMENT
LOWmooncake-ep/tests/test_ep_grid.py81 )COMMENT
LOWscripts/code_format.sh1#!/bin/bashCOMMENT
LOWscripts/ascend/dependencies_ascend_installation.sh1# Copyright 2025 Huawei Technologies Co., LtdCOMMENT
LOWscripts/ascend/dependencies_ascend.sh1# Copyright 2025 Huawei Technologies Co., LtdCOMMENT
LOWscripts/ascend/dependencies_openeuler.sh1#!/bin/bashCOMMENT
LOW…perf/llmdatadist_bandwidth_test_single_machine_demo.py1# Copyright 2025 Huawei Technologies Co., LtdCOMMENT
LOWscripts/ascend/perf/hccl_tools.py1# Copyright 2025 Huawei Technologies Co., LtdCOMMENT
LOW…/perf/llmdatadist_bandwidth_test_cross_machine_demo.py1# Copyright 2025 Huawei Technologies Co., LtdCOMMENT
LOW.github/workflows/ci_efa.yml1name: 'Build Wheel (AWS EFA)'COMMENT
LOW.github/workflows/release-efa-non-cuda.yaml1name: Release EFA Non-CUDACOMMENT
LOW.github/workflows/release-efa.yaml1name: Release EFACOMMENT
LOWmooncake-integration/integration_utils.h1#pragma onceCOMMENT
LOW…ncake-integration/transfer_engine/transfer_engine_py.h1// Copyright 2024 KVCache.AICOMMENT
LOW…ake-integration/transfer_engine/transfer_engine_py.cpp1// Copyright 2024 KVCache.AICOMMENT
LOW…ake-integration/transfer_engine/transfer_engine_py.cpp21#include <pybind11/stl.h>COMMENT
LOWmooncake-integration/store/buffer_pool.cpp1#include "buffer_pool.h"COMMENT
LOWmooncake-integration/store/store_py.cpp1#include <pybind11/gil.h> // For GIL managementCOMMENT
LOWmooncake-transfer-engine/benchmark/utils.h1// Copyright 2025 KVCache.AICOMMENT
LOWmooncake-transfer-engine/benchmark/utils.h21#include <sstream>COMMENT
LOWmooncake-transfer-engine/benchmark/utils.cpp1// Copyright 2025 KVCache.AICOMMENT
1016 more matches not shown…
Hyper-Verbose Identifiers494 hits · 442 pts
SeverityFileLineSnippetContext
LOWmooncake-rl/examples/rl_samples.py119 def init_weight_update_connections(self, rollout_manager):CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py267 def start_ssd_unregister_service(self):CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py173 def _discover_nvme_pci_devices(self, ssh: paramiko.SSHClient) -> List[str]:CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py240 def _filter_spdk_ready_pci_devices(self, ssh: paramiko.SSHClient, pci_devices: List[str], strict: bool) -> List[str]CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py320 def _format_transport_options(self) -> str:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py633 def _read_dataproto_member_indices(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py657 def _read_ndarray_member_indices(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py718 def _read_torch_tensor_member_indices(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py789 def _read_structured_non_tensor_payload_indices(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py992 def _read_structured_non_tensor_payload_slice(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1122 def _append_dataproto_stage_manifest(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1400def _build_dataproto_like_result(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1444def _is_dataproto_envelope_mapping(data: Mapping[str, Any]) -> bool:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1485def _resolve_dataproto_field_selection(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1528def _validate_dataproto_fields_exist(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1536def _coerce_dataproto_row_selection(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1562def _normalize_dataproto_row_index(index: Any, total_rows: int) -> int:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1588def _should_encode_non_tensor_field(value: Any) -> bool:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1592def _encode_structured_non_tensor_field(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1605def _should_encode_recursive_structure(leaves: Sequence[_InferredLeaf]) -> bool:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1609def _should_encode_recursive_leaf(leaf: _InferredLeaf) -> bool:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1631def _encode_recursive_structured_non_tensor_field(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1703def _is_recursive_encoded_non_tensor(encoded: Mapping[str, Any]) -> bool:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1815def _decode_structured_non_tensor_encoded(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1826def _copy_recursive_metadata_for_leaf_updates(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1834def _decode_structured_recursive_field(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1866def _reconstruct_structured_rows(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1951def _encode_ragged_tensor_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2008def _decode_ragged_tensor_values(payload: dict[str, Any], rows: int) -> list[Any]:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2029def _encode_typed_ragged_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2068def _decode_typed_ragged_values(payload: dict[str, Any], rows: int) -> list[Any]:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2087def _encode_numeric_scalar_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2102def _decode_numeric_scalar_values(payload: dict[str, Any]) -> list[Any]:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2134def _encode_bytes_like_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2181def _decode_bytes_like_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2199def _encode_media_list_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2236def _decode_media_list_values(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2362 def _read_torch_tensor_member(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2393 def _read_sliced_torch_tensor_member(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2700 def read_payload_range_into_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2714 def read_payload_range_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2728 def read_payload_ranges_into_array(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2738 def read_payload_ranges_into_bytearray(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2750 def read_payload_ranges_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3093 def read_payload_range_into_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3113 def read_payload_range_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3132 def read_payload_ranges_into_array(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3146 def read_payload_ranges_into_bytearray(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3160 def read_payload_ranges_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3184 def put_tensor_payload_direct(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3207 def put_tensor_payload_from_pool(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3339 def _read_chunks_with_batch_get_into(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3380 def _read_payload_range_into_registered_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3399 def _read_payload_ranges_into_registered_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3412 def _read_payload_ranges_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3463 def _read_payload_range_into_raw_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3532 def _copy_payload_range_into_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3543 def _copy_payload_ranges_into_destination(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3568 def _copy_payload_range_into_bytearray(CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3679 def _has_buffer_registration_support(self) -> bool:CODE
434 more matches not shown…
Decorative Section Separators92 hits · 303 pts
SeverityFileLineSnippetContext
MEDIUMmooncake-wheel/setup.py6# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py8# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py16# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py106# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/setup.py167# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/mooncake/mooncake_ep_buffer.py575 # -----------------COMMENT
MEDIUMmooncake-wheel/mooncake/mooncake_ep_buffer.py577 # -----------------COMMENT
MEDIUMmooncake-wheel/mooncake/structured_object_store.py4175# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/mooncake/structured_object_store.py4177# ---------------------------------------------------------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py219 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py221 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py253 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py255 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py286 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py288 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py442 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py444 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py474 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py476 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py561 # --------------------------COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py563 # --------------------------COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py24# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py26# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py37# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py39# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py64# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py66# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py185# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py187# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py564# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py566# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py650# ============================================================================COMMENT
MEDIUMbenchmarks/storage_benchmark_v1/benchmark.py652# ============================================================================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.py142# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py144# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py410# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py412# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2072# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2074# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py27# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py29# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py392# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py394# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2414# ==========================================COMMENT
MEDIUMscripts/test_tensor_api.py2416# ==========================================COMMENT
32 more matches not shown…
Excessive Try-Catch Wrapping163 hits · 204 pts
SeverityFileLineSnippetContext
MEDIUM.claude/skills/mooncake-api/SKILL.md445 print("Error checking existence")CODE
LOWmooncake-wheel/setup.py99 except Exception:CODE
LOWmooncake-wheel/mooncake/http_metadata_server.py122 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py57 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py223 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py292 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py270 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py282 except Exception:CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py294 except Exception:CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py306 except Exception:CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py322 except Exception:CODE
MEDIUMmooncake-wheel/mooncake/mooncake_ep_buffer.py291def _is_mooncake_backend(self) -> bool: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.py138 except Exception as e:CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py433 except Exception as e:CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py514 except Exception as e:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4187except Exception: # pragma: no coverCODE
LOWmooncake-wheel/mooncake/structured_object_store.py16except Exception: # pragma: no cover - depends on built extensionCODE
LOWmooncake-wheel/mooncake/structured_object_store.py1165 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2587 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py2644 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3263 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3279 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3308 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3315 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3615 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3651 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4153 except Exception:CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4163 except Exception:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py560 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py577 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py584 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py855 except Exception as e:CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py212def handle_reconfigure(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py334def handle_mount_shm(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py377def handle_unmount_shm(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py428def handle_mount(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py473def handle_unmount(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py508def handle_put(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py543def handle_get(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py594def handle_exist(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py619def handle_remove(self, request):CODE
MEDIUMmooncake-wheel/mooncake/mooncake_store_service.py644def handle_remove_all(self, request):CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py87 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py154 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py326 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py369 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py420 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py465 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py500 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py535 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py586 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py611 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py636 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py660 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py731 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py58 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py215 except Exception as e:CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py258 except Exception as e:CODE
103 more matches not shown…
Structural Annotation Overuse113 hits · 183 pts
SeverityFileLineSnippetContext
LOWmooncake-pg/tests/test_pg_elastic.py699 # Step 1: All ranks participate in first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py704 # Step 2: Broken rank exits after first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py709 # Step 3: Survivors wait for broken rank to exitCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py712 # Step 4: Survivors run collective without broken rankCOMMENT
LOWdocs/source/design/tent/metrics.md266### Step 1: Declare the MetricCOMMENT
LOWdocs/source/design/tent/metrics.md281### Step 2: Register the MetricCOMMENT
LOWdocs/source/design/tent/metrics.md301### Step 3: Add Recording Methods (Optional)COMMENT
LOWdocs/source/python-api-reference/mooncake-store.md376# Step 1: Register the bufferCOMMENT
LOWdocs/source/python-api-reference/mooncake-store.md381# Step 2: Zero-copy storeCOMMENT
LOWdocs/source/python-api-reference/mooncake-store.md388# Step 3: Pre-allocate buffer for retrievalCOMMENT
LOWdocs/source/python-api-reference/mooncake-store.md393# Step 4: Register receive bufferCOMMENT
LOWdocs/source/python-api-reference/mooncake-store.md398# Step 5: Zero-copy retrievalCOMMENT
LOWdocs/source/python-api-reference/mooncake-store.md407# Step 6: Clean up - unregister both buffersCOMMENT
LOWdocs/source/deployment/ssd-offload.md20### Step 1: Create the SSD storage directoryCOMMENT
LOWdocs/source/deployment/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/master_service_test.cpp6913 // Step 1: Create the object via PutCOMMENT
LOWmooncake-store/tests/master_service_test.cpp6921 // Step 2: Client B starts in-place upsert (Case B) — marks COMPLETE →COMMENT
LOWmooncake-store/tests/master_service_test.cpp6932 // Step 3: Client C upserts the same key — preempts Client BCOMMENT
LOWmooncake-store/tests/master_service_test.cpp6938 // Step 4: Client B's UpsertEnd should fail (preempted)COMMENT
LOWmooncake-store/tests/master_service_test.cpp6943 // Step 5: Client C's UpsertEnd should succeedCOMMENT
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.cpp831 // Step 1: Mount segment and create a completed MEMORY replica.COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp849 // Step 2: Mount local disk segment and add LOCAL_DISK replica viaCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp877 // Step 3: Remove the object (removes both MEMORY and LOCAL_DISK replicas).COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp892 // Step 4: Test SSD hit path by creating an object with only a LOCAL_DISKCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp401 // Step 4: Create copy task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp409 // Step 5: Get the actual client_id from the task assignmentCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp412 // Step 6: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp417 // Step 7: Verify copy was successful by querying from client2COMMENT
LOWmooncake-store/tests/task_integration_test.cpp424 // Step 8: Verify data integrity by getting data from client2COMMENT
LOWmooncake-store/tests/task_integration_test.cpp497 // Step 4: Create move task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp505 // Step 5: Get the actual client_id from the task assignmentCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp508 // Step 6: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp513 // Step 7: Verify move was successfulCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp521 // Step 8: Verify data integrityCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp781 // Step 4: Create copy task with multiple targetsCOMMENT
53 more matches not shown…
Verbosity Indicators102 hits · 162 pts
SeverityFileLineSnippetContext
LOWmooncake-pg/tests/test_pg_elastic.py699 # Step 1: All ranks participate in first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py704 # Step 2: Broken rank exits after first collectiveCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py709 # Step 3: Survivors wait for broken rank to exitCOMMENT
LOWmooncake-pg/tests/test_pg_elastic.py712 # 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.h261 // 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/master_service_test.cpp6913 // Step 1: Create the object via PutCOMMENT
LOWmooncake-store/tests/master_service_test.cpp6921 // Step 2: Client B starts in-place upsert (Case B) — marks COMPLETE →COMMENT
LOWmooncake-store/tests/master_service_test.cpp6932 // Step 3: Client C upserts the same key — preempts Client BCOMMENT
LOWmooncake-store/tests/master_service_test.cpp6938 // Step 4: Client B's UpsertEnd should fail (preempted)COMMENT
LOWmooncake-store/tests/master_service_test.cpp6943 // Step 5: Client C's UpsertEnd should succeedCOMMENT
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.cpp831 // Step 1: Mount segment and create a completed MEMORY replica.COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp849 // Step 2: Mount local disk segment and add LOCAL_DISK replica viaCOMMENT
LOWmooncake-store/tests/master_metrics_test.cpp877 // Step 3: Remove the object (removes both MEMORY and LOCAL_DISK replicas).COMMENT
LOWmooncake-store/tests/master_metrics_test.cpp892 // Step 4: Test SSD hit path by creating an object with only a LOCAL_DISKCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp401 // Step 4: Create copy task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp409 // Step 5: Get the actual client_id from the task assignmentCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp412 // Step 6: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp417 // Step 7: Verify copy was successful by querying from client2COMMENT
LOWmooncake-store/tests/task_integration_test.cpp424 // Step 8: Verify data integrity by getting data from client2COMMENT
LOWmooncake-store/tests/task_integration_test.cpp497 // Step 4: Create move task via masterCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp505 // Step 5: Get the actual client_id from the task assignmentCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp508 // Step 6: Wait for task to be fetched and executed by the assigned clientCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp513 // Step 7: Verify move was successfulCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp521 // Step 8: Verify data integrityCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp781 // Step 4: Create copy task with multiple targetsCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp789 // Step 5: Wait for task to completeCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp794 // Step 6: Verify copy was successful on all target segmentsCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp1093 // Step 3: Create move taskCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp1101 // Step 4: Wait for all tasks to completeCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp344 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp365 // Step 2: Verify that client1's data was put successfully and get actualCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp382 // Step 3: Determine target segment dynamically (must be different fromCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp440 // Step 1: Put data on client1COMMENT
LOWmooncake-store/tests/task_integration_test.cpp461 // Step 2: Verify that client1's data was put successfully and get actualCOMMENT
LOWmooncake-store/tests/task_integration_test.cpp478 // Step 3: Determine target segment dynamically (must be different fromCOMMENT
42 more matches not shown…
Unused Imports95 hits · 91 pts
SeverityFileLineSnippetContext
LOWmooncake-wheel/mooncake/buffer_pool.py1CODE
LOWmooncake-wheel/mooncake/http_metadata_server.py12CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py7CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py14CODE
LOWmooncake-wheel/mooncake/__init__.py3CODE
LOWmooncake-wheel/mooncake/__init__.py3CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py46CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py57CODE
LOWmooncake-wheel/mooncake/mooncake_connector_v1.py58CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py7CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py15CODE
LOWmooncake-wheel/tests/test_dummy_client.py4CODE
LOWmooncake-wheel/tests/conftest.py1CODE
LOWmooncake-wheel/tests/test_structured_object_store.py1CODE
LOWmooncake-wheel/tests/ep_test_utils.py8CODE
LOWmooncake-wheel/tests/test_regmr_overhead.py26CODE
LOWmooncake-wheel/tests/test_mooncake_store_service_api.py15CODE
LOWmooncake-wheel/tests/test_mooncake_store_service_api.py33CODE
LOWmooncake-wheel/tests/test_buffer_pool_native.py1CODE
LOWmooncake-wheel/tests/test_put_get_tensor.py6CODE
LOWmooncake-wheel/tests/test_put_get_tensor.py7CODE
LOWmooncake-wheel/tests/test_transfer_on_cuda.py1CODE
LOWmooncake-wheel/tests/test_cli.py6CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py5CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py7CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py8CODE
LOWmooncake-pg/setup.py10CODE
LOWmooncake-pg/benchmark/pgbench_utils.py1CODE
LOWmooncake-pg/benchmark/pgbench.py2CODE
LOWmooncake-pg/benchmark/p2p_regular_k_bench.py2CODE
LOWmooncake-pg/tests/test_pg_collectives.py6CODE
LOWmooncake-pg/tests/pg_test_topology.py1CODE
LOWmooncake-pg/tests/test_pg_elastic.py2CODE
LOWmooncake-ep/setup.py14CODE
LOWmooncake-ep/tests/test_ep_grid.py36CODE
LOWmooncake-ep/tests/test_elastic_buffer.py20CODE
LOWmooncake-ep/tests/test_elastic_buffer.py45CODE
LOWmooncake-ep/benchmarks/elastic_buffer_perf.py16CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py13CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py18CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py15CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py15CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py15CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py15CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py15CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/__init__.py16CODE
LOWbenchmarks/storage_benchmark_v1/layout/__init__.py7CODE
LOWbenchmarks/storage_benchmark_v1/layout/__init__.py7CODE
35 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 Nesting60 hits · 50 pts
SeverityFileLineSnippetContext
LOWmooncake-wheel/setup.py26CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py22CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py80CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_unregister.py122CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py594CODE
LOWmooncake-wheel/mooncake/mooncake_ep_buffer.py812CODE
LOWmooncake-wheel/mooncake/spdk_tgt_create.py59CODE
LOWmooncake-wheel/mooncake/mooncake_config.py125CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1707CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1755CODE
LOWmooncake-wheel/mooncake/structured_object_store.py1866CODE
LOWmooncake-wheel/mooncake/structured_object_store.py4325CODE
LOWmooncake-wheel/mooncake/structured_object_store.py514CODE
LOWmooncake-wheel/mooncake/structured_object_store.py789CODE
LOWmooncake-wheel/mooncake/structured_object_store.py992CODE
LOWmooncake-wheel/mooncake/structured_object_store.py3284CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py61CODE
LOWmooncake-wheel/mooncake/mooncake_store_service.py212CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py23CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py95CODE
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py137CODE
LOWmooncake-wheel/tests/test_dummy_client.py326CODE
LOWmooncake-wheel/tests/test_structured_object_store.py163CODE
LOW…ncake-wheel/tests/test_distributed_object_store_cxl.py522CODE
LOWmooncake-wheel/tests/ep_test_utils.py147CODE
LOWmooncake-wheel/tests/test_regmr_overhead.py177CODE
LOWmooncake-wheel/tests/test_mooncake_ep.py16CODE
LOWmooncake-wheel/tests/test_safetensor_functions.py115CODE
LOWmooncake-wheel/tests/test_offload_on_eviction.py69CODE
LOWmooncake-wheel/tests/test_distributed_object_store.py596CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py297CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py426CODE
LOWmooncake-wheel/tests/test_ssd_offload_in_evict.py326CODE
LOWmooncake-wheel/tests/test_mooncake_config.py464CODE
LOWmooncake-wheel/tests/test_promotion_on_hit.py82CODE
LOWmooncake-pg/benchmark/pgbench.py187CODE
LOWmooncake-pg/tests/test_pg_collectives.py15CODE
LOWmooncake-pg/tests/test_pg_init_functional.py33CODE
LOWmooncake-pg/tests/test_pg_p2p.py86CODE
LOWbenchmarks/xypd_benchmarks/proxy_demo.py110CODE
LOWbenchmarks/xypd_benchmarks/proxy_demo.py388CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py654CODE
LOWbenchmarks/storage_benchmark_v1/storage/disk.py190CODE
LOWscripts/test_tensor_api.py1384CODE
LOWscripts/test_tensor_api.py1841CODE
LOWscripts/test_tensor_api.py1933CODE
LOWscripts/test_tensor_api.py1983CODE
LOWscripts/test_tensor_api.py2610CODE
LOWscripts/bench_engram_store_27b.py124CODE
LOWscripts/test_upsert_api.py638CODE
LOWscripts/test_drain_http_api.py92CODE
LOW…_tests/python/test_hicache_storage_mooncake_backend.py107CODE
LOWscripts/ascend/perf/hccl_tools.py75CODE
LOW…oncake-transfer-engine/example/kvcache_prefix_bench.py224CODE
LOW…nsfer-engine/example/efa_per_transfer_latency_bench.py153CODE
LOWmooncake-store/tests/stress_cluster_benchmark.py511CODE
LOWmooncake-store/tests/stress_cluster_benchmark.py224CODE
LOWmooncake-store/benchmarks/batch_remove_benchmark.py337CODE
LOWmooncake-store/benchmarks/store_kv_bench.py194CODE
LOWmooncake-store/benchmarks/store_kv_bench.py290CODE
Cross-Language Confusion8 hits · 48 pts
SeverityFileLineSnippetContext
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py181 class=$(cat "$dev/class" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py187 driver=$(basename "$(readlink "$dev/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py187 driver=$(basename "$(readlink "$dev/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py198 real_device=$(readlink -f "$block/device" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py251 driver=$(basename "$(readlink "/sys/bus/pci/devices/$pci/driver" 2>/dev/null)" 2>/dev/null || true)CODE
HIGHmooncake-wheel/mooncake/spdk_tgt_create.py251 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
Self-Referential Comments11 hits · 33 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.py78 # 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.py89 # Create a new store instance with zero local buffer sizeCOMMENT
MEDIUMmooncake-wheel/tests/test_put_get_tensor.py16# Define a test class for serializationCOMMENT
MEDIUMscripts/test_copy_move_api.py162 # Create a coordinator client to run testsCOMMENT
MEDIUMscripts/test_tensor_api.py540 # Create a small tensor (e.g., 16MB)COMMENT
MEDIUMscripts/test_tensor_api.py850 # 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
AI Slop Vocabulary13 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMmooncake-wheel/setup.py20 # packaging ≥20 provides a robust glibc detector used by pip/buildCOMMENT
MEDIUMmooncake-wheel/mooncake/mooncake_connector_v1.py436 # Tasks can await async events, so a surplus (2x is a robust heuristic)COMMENT
MEDIUMmooncake-wheel/tests/test_ssd_offload_in_evict.py165 """Print comprehensive statistics for the test."""STRING
MEDIUMmooncake-store/include/ha/oplog/etcd_oplog_store.h163 // Used for robust cleanup (Scheme 3) so we don't rely on a persistedCOMMENT
MEDIUMmooncake-store/tests/stress_cluster_benchmark.py125 """Calculate and return comprehensive performance statistics."""STRING
MEDIUMmooncake-store/tests/stress_cluster_benchmark.py332 """Print comprehensive performance statistics in a structured format."""STRING
MEDIUMmooncake-store/benchmarks/batch_remove_benchmark.py12 # Run comprehensive testsSTRING
MEDIUMmooncake-store/src/client_service.cpp1806 // Helper methods for robust state managementCOMMENT
MEDIUMmooncake-store/src/client_service.cpp1927 // Process individual responses with robust error handlingCOMMENT
MEDIUMmooncake-store/src/client_service.cpp1993 // Process individual responses with robust error handlingCOMMENT
MEDIUMmooncake-store/src/transfer_task.cpp176// to fully utilize the available ssd bandwidth, we use a default of 10 workerCOMMENT
MEDIUMmooncake-store/src/transfer_task.cpp283// to fully utilize the available ssd bandwidth, we use a default of 4 workerCOMMENT
MEDIUMmooncake-store/src/utils/s3_helper.cpp272 // the network For GB-sized files, 2 concurrent downloads can fully utilizeCOMMENT
Redundant / Tautological Comments17 hits · 28 pts
SeverityFileLineSnippetContext
LOWdependencies.sh230# Check if .gitmodules existsCOMMENT
LOWmooncake-wheel/mooncake/spdk_tgt_create.py291 # Check if tgt is already runningCOMMENT
LOWmooncake-wheel/mooncake/mooncake_ssd_register.py259 # Check if the error is due to the segment already existing on the serverCOMMENT
LOWmooncake-wheel/tests/test_regmr_overhead.py358 # Check if distributed environment is already initializedCOMMENT
LOWmooncake-wheel/tests/test_regmr_overhead.py407 # Check if we should run with multiprocessing (for distributed tests)COMMENT
LOWmooncake-wheel/tests/test_cli.py15 # Check if mooncake_master is in PATHCOMMENT
LOWmooncake-wheel/tests/test_cli.py68 # Check if process is runningCOMMENT
LOWbenchmarks/storage_benchmark_v1/benchmark.py739 # Print resultsCOMMENT
LOWscripts/test_installation.sh47# Check if the mooncake_master entry point is installed and executableCOMMENT
LOWscripts/test_installation.sh51# Check if the mooncake_client entry point is installed and executableCOMMENT
LOWscripts/test_installation.sh56# Check if the transfer_engine_bench entry point is installed and executableCOMMENT
LOWscripts/run_tests.sh54# Check if MOONCAKE_STORAGE_ROOT_DIR is set and not emptyCOMMENT
LOWscripts/code_format.sh215 # 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.cpp868// ========== EDGE CASE TESTS, Generated by AI ==========COMMENT
HIGHmooncake-store/tests/offset_allocator_test.cpp1011// ========== BIN SYSTEM TESTS, Generated by AI ==========COMMENT
Modern Structural Boilerplate16 hits · 16 pts
SeverityFileLineSnippetContext
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.py311 def _setup_spdk(self, ssh: paramiko.SSHClient, spdk_path: str, pci_devices: List[str]) -> None:CODE
LOWmooncake-wheel/mooncake/mooncake_config.py69logger = logging.getLogger(__name__)CODE
LOWmooncake-wheel/mooncake/__init__.py5__all__ = ["BufferPool", "RegisteredBufferPool"]CODE
LOWmooncake-wheel/mooncake/mooncake_elastic_buffer.py282 def update_ep_member(self) -> None:CODE
LOWmooncake-wheel/mooncake/mooncake_elastic_buffer.py582__all__ = ["ElasticBuffer", "EPHandle", "EventOverlap"]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
LOW…ransfer-engine/tests/fault-tolerant/transfer_engine.py6logger = logging.getLogger(__name__)CODE
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.md186- **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.txt231# ProgressWorker skeleton test: covers default-off behavior, event-drivenCOMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWmooncake-wheel/mooncake/mooncake_elastic_buffer.py102CODE
LOWmooncake-wheel/mooncake/mooncake_elastic_buffer.py425CODE
LOWbenchmarks/storage_benchmark_v1/benchmark.py413CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmooncake-store/src/dummy_client.cpp1114 // TODO: implement this functionCOMMENT
LOWmooncake-store/src/dummy_client.cpp1146 // TODO: implement this functionCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/code_format.sh9# Usage:COMMENT