AI Slop Code RIsk Monitor

modular/modular

The Modular Platform (includes MAX & Mojo)

22.5 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for modular/modular, a Mojo project with 29,939 GitHub stars. SynthScan examined 1,596,301 lines of code across 5679 source files, recording 27154 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 22.5 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.5
Adjusted Signal
22.5
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
29.9K
Stars
Mojo
Language
1.6M
Lines of Code
5.7K
Files
27.2K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 48.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 13.3/100 · LOW

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

Agent Over-Engineering Ratio 47.5/100 · MEDIUM

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

PR Review Velocity Impact 69.7/100 · HIGH

Which changes need focused human review? 27154 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 1361MEDIUM 2061LOW 23731

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 27154 distinct pattern matches across 26 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers10944 hits · 10386 pts
SeverityFileLineSnippetContext
LOW…/integration-test/python/test_signal_handler_python.py19def test_python_stack_trace_in_signal_handler() -> None:CODE
LOW…egration-test/python/test_signal_handler_python_gil.py20def test_signal_handler_with_gil_held() -> None:CODE
LOWdocs/write-nightly-release.py66def _default_nightly_changelog_path() -> Path:CODE
LOWdocs/post-process-docs.py144def inject_mojo_api_package_list(docs_path: str) -> None:CODE
LOWdocs/post-process-docs.py187def replace_zero_width_joiner(file_path) -> None: # noqa: ANN001CODE
LOWdocs/generate-models-table.py198def _resolve_module_level_collections(CODE
LOWdocs/generate-models-table.py244def _resolve_class_collections(CODE
LOWdocs/code/develop/layer-comparison/layer_comparison.py174def capture_reference_tensors(CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py276def bench_kineto_with_cupti_warmup(CODE
LOW⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py390def _compile_dense_preshuffle(CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py30def test_each_token_picks_distinct_experts(CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py44def test_balanced_spreads_experts_and_ranks(num_tokens: int) -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py56def test_random_routings_are_seeded() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py63def test_skewed_routing_has_hot_experts() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py72def test_top_k_above_num_experts_raises() -> None:CODE
LOW⚡…kernels/benchmarks/misc/comparison/test_moe_routing.py77def test_rank_counts_needs_an_even_split() -> None:CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py91def test_dispatch_layout_starts_each_expert_on_a_fresh_block() -> None:CODE
LOW…kernels/benchmarks/misc/comparison/test_moe_routing.py109def test_scale_rows_capacity_pads_one_block_per_expert() -> None:CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py68def _make_dispatch_quant_config(dispatch_dtype: DType) -> QuantConfig | None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py25def test_topk_positions_are_causal_distinct_and_padded(cache_len: int) -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py45def test_topk_positions_are_seeded() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py51def test_copies_to_exceed_counts_rows_per_request() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py63def test_copies_to_exceed_ignores_pads() -> None:CODE
LOW…/benchmarks/misc/comparison/test_sparse_mla_indices.py68def test_physical_rows_follow_the_page_table() -> None:CODE
LOW…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py93def generate_contiguous_inputs(CODE
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py44def _matching_torchvision_version() -> str:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py133def calculate_mla_memory_bytes(CODE
LOW…hmarks/misc/comparison/bench_allreduce_subgraph_max.py114def bench_allreduce_modular_max(CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py128def _init_sglang_parallel_state() -> None:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py903def _build_mla_persistent_metadata(CODE
LOWmax/kernels/benchmarks/autotune/kdiff.py70def check_argo_workflow_exists(git_sha): # noqa: ANN001, ANN201CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1562 def schedule_unique_build_items(CODE
LOWmax/kernels/benchmarks/autotune/utils.py71def _get_visible_device_prefix(target_accelerator: str = "") -> str:CODE
LOWmax/kernels/benchmarks/autotune/utils.py222def get_target_accelerator_helpstr() -> str:CODE
LOWmax/kernels/benchmarks/autotune/utils.py230def check_valid_target_accelerator(target_accelerator: str) -> bool:CODE
LOWmax/kernels/benchmarks/autotune/kplot.py57def _get_max_groups_per_chart(x_labels, width_px, font_size_pt): # noqa: ANN001, ANN202CODE
LOWmax/kernels/benchmarks/autotune/tests/test_bench.py41def test_met_label_indicates_seconds() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_bench.py65def test_dump_report_time_and_throughput() -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py515def test_get_gpu_count_nvidia_no_smi(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py521def test_get_gpu_count_unknown_accelerator() -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py527def test_get_gpu_count_nvidia_smi_failure(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py570def test_get_gpu_count_amd_no_smi(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py576def test_get_gpu_count_amd_smi_failure(mocker: MockerFixture) -> None:CODE
LOW⚡max/kernels/benchmarks/autotune/tests/test_kbench.py586def test_cli_rejects_num_gpu_exceeding_available(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py83def test_check_valid_target_accelerator() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py285def test_scheduler_init_validates_num_gpu(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py316def test_scheduler_get_chunksize(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py337def test_scheduler_kbench_mkdir_creates_directory(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py355def test_scheduler_kbench_mkdir_run_only_requires_existing(CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py372def test_kbench_cache_basic_operations(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py403def test_param_define_regular() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py412def test_param_define_variable() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py477def test_get_gpu_count_nvidia_basic(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py489def test_get_gpu_count_nvidia_capped_by_env(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py504def test_get_gpu_count_nvidia_env_fewer_than_hw(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py547def test_get_gpu_count_amd_basic(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py559def test_get_gpu_count_amd_capped_by_env(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py608def test_cli_accepts_num_gpu_within_available(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py650def _make_minimal_spec_instance() -> SpecInstance:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py708def test_build_shared_lib_minimal(tmp_path: Path) -> None:CODE
10884 more matches not shown…
Over-Commented Block6454 hits · 6352 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1##===----------------------------------------------------------------------===##COMMENT
LOWInit/include/Init/DevelopmentSignalHandler.h1//===----------------------------------------------------------------------===//COMMENT
LOWInit/include/Init/DevelopmentSignalHandler.h21namespace M::Init {COMMENT
LOWInit/include/Init/Init.h1//===----------------------------------------------------------------------===//COMMENT
LOWInit/unittests/DevelopmentSignalHandlerTests.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/integration-test/python/InitBindings.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/integration-test/python/test_script.py1# ===----------------------------------------------------------------------=== #COMMENT
LOW…/integration-test/python/test_signal_handler_python.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWInit/integration-test/python/test_script_gil.py1# ===----------------------------------------------------------------------=== #COMMENT
LOW…egration-test/python/test_signal_handler_python_gil.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWInit/lib/DevelopmentSignalHandler.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWInit/lib/Init.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/tools/cache-mgr/cache-mgr.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/tools/cache-mgr/cache-mgr.cpp21#include "Support/ADT/SmartVariant.h"COMMENT
LOWCache/include/Cache/CachedTransform.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/CachedTransform.h21#include "Cache/BlobCache.h"COMMENT
LOWCache/include/Cache/CachedTransform.h61/// The most basic function that performs a transformation, writing theCOMMENT
LOWCache/include/Cache/BlobCache.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/BlobCache.h21#include "Support/Buffer.h"COMMENT
LOWCache/include/Cache/BlobCache.h101 virtual ErrorOr<std::optional<BufferRef>> findSyncImpl(StringRef keyHash) = 0;COMMENT
LOWCache/include/Cache/CacheTelemetryContext.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/include/Cache/Support/Keys.h1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/CachedTransformTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/BlobCacheTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/unittests/KeyTest.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CacheTelemetryContext.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CachedTransform.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/CachedTransform.cpp21#include "Support/HashUtils.h"COMMENT
LOWCache/lib/BlobCache.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWCache/lib/BlobCache.cpp21#include "Support/Buffer.h"COMMENT
LOWCache/lib/BlobCache.cpp41#include <cstring>COMMENT
LOWCache/lib/BlobCache.cpp601 // If we have write access, do a little cache pruning on the host system inCOMMENT
LOWConfig/include/Config/Version.h1//===----------------------------------------------------------------------===//COMMENT
LOWConfig/lib/Version.cpp1//===----------------------------------------------------------------------===//COMMENT
LOWutils/setup-gpu-clock.sh1#!/bin/bashCOMMENT
LOW…s/local_transformers_setup/setup_local_transformers.sh1#!/bin/bashCOMMENT
LOW…local_transformers_setup/cleanup_local_transformers.sh1#!/bin/bashCOMMENT
LOWdocs/write-nightly-release.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/post-process-docs.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/update-github-links.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/generate-arch-docs.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/generate-models-table.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/generate-metrics-table.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/broadcasting/explicit_broadcast.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/broadcasting/auto_broadcast.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/broadcasting/mask_broadcast.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/broadcasting/fix_rank.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/layers/subclass_rms_norm.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/layers/define_module.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/layers/compose_and_run.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/logit-comparison/logit_comparison.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/properties_num_elements.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/properties_device.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/properties_shape.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/create_factory.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/properties_rank.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/create_first_tensor.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/properties_dtype.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/create_random.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/tensors/create_multi_dim.py1# ===----------------------------------------------------------------------=== #COMMENT
6394 more matches not shown…
Decorative Section Separators1669 hits · 5494 pts
SeverityFileLineSnippetContext
MEDIUMdocs/generate-arch-docs.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py228# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py230# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py362# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py364# ---------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py128# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py130# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py385# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py387# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py627# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py629# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py727# ----------------------------------------------------------------------------COMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py729# ----------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml51# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml53# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml74# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml76# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml97# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml99# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml130# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml135# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml161# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml164# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml190# ---------------------------------------------------------------------------COMMENT
MEDIUM…nels/benchmarks/misc/comparison/bench_amd_mx_gemm.yaml198# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py107# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py109# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM…/kernels/benchmarks/misc/comparison/setup_bench_env.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py255# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py257# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py844# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py846# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1519# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1521# ----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml37# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml39# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml62# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml64# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml87# =============================================================================COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml89# =============================================================================COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml140# -----------------------------------------------------------------------------COMMENT
MEDIUM…kernels/benchmarks/gpu/bench_matmul_reducescatter.yaml143# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py64# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py66# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py243# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py245# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py393# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py395# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py523# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py525# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py631# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py633# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py698# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/docs/check_api_coverage.py700# -----------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/tree.py767# ─── reads ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMmax/python/max/tree.py882# ─── transform ──────────────────────────────────────────────────────────────COMMENT
1609 more matches not shown…
Unused Imports4377 hits · 3986 pts
SeverityFileLineSnippetContext
LOWdocs/generate-metrics-table.py33CODE
LOWdocs/code/develop/logit-comparison/logit_comparison.py15CODE
LOWdocs/code/develop/layer-comparison/layer_comparison.py15CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py39CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py52CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py30CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py56CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py21CODE
LOW…c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py27CODE
LOWmax/kernels/benchmarks/misc/comparison/moe_routing.py20CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py19CODE
LOW…hmarks/misc/comparison/bench_allreduce_subgraph_max.py21CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py33CODE
LOW…nchmarks/misc/comparison/bench_mega_ffn_nvfp4_graph.py29CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py17CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py31CODE
LOW…s/misc/comparison/bench_flashinfer_trtllm_moe_nvfp4.py36CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_softmax.py17CODE
LOWmax/kernels/benchmarks/misc/comparison/gpu_telemetry.py25CODE
LOW…/misc/comparison/bench_blackwell_mla_prefill_sparse.py26CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py18CODE
LOW…s/benchmarks/misc/comparison/bench_mla_sparse_graph.py30CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py22CODE
LOW…rnels/benchmarks/misc/comparison/sparse_mla_indices.py21CODE
LOW…/misc/comparison/bench_flashinfer_trtllm_mla_sparse.py27CODE
LOWmax/kernels/benchmarks/autotune/terminal_viz.py15CODE
LOWmax/kernels/benchmarks/autotune/kbench.py13CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py13CODE
LOWmax/kernels/benchmarks/autotune/tuning_codegen.py16CODE
LOWmax/python/docs/check_api_coverage.py40CODE
LOWmax/python/max/tree.py50CODE
LOWmax/python/max/_validation_hooks.py22CODE
LOWmax/python/max/_interpreter.py31CODE
LOWmax/python/max/_mlir_context.py14CODE
LOW…/max/benchmark/sweep_benchmark_serving_result_utils.py23CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py23CODE
LOWmax/python/max/benchmark/serve_replay.py14CODE
LOWmax/python/max/benchmark/benchmark_serving.py16CODE
LOWmax/python/max/benchmark/results_to_csv.py61CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py26CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py36CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py36CODE
LOW…/python/max/benchmark/benchmark_shared/steady_state.py27CODE
LOWmax/python/max/benchmark/benchmark_shared/config.py16CODE
LOW…hon/max/benchmark/benchmark_shared/prometheus_fetch.py21CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py19CODE
LOW…python/max/benchmark/benchmark_shared/backend_names.py34CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py16CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py16CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/sse.py19CODE
LOW…x/benchmark/benchmark_shared/gpu_metrics_prometheus.py34CODE
LOW…/max/benchmark/benchmark_shared/gpu_metrics_scraper.py33CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py36CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py16CODE
LOW…x/python/max/benchmark/benchmark_shared/single_turn.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py44CODE
LOW…python/max/benchmark/benchmark_shared/workload_file.py29CODE
LOW…python/max/benchmark/benchmark_shared/result_groups.py34CODE
4317 more matches not shown…
Cross-File Repetition575 hits · 2875 pts
SeverityFileLineSnippetContext
HIGH…xperimental/nn/common_layers/multi_latent_attention.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGHmax/python/max/nn/attention/multi_latent_attention.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGH…/python/max/nn/attention/multi_latent_attention_fp8.py0creates the prefill planning metadata required by fp8 mla prefill kernels. args: input_row_offsets: ragged row offsets tSTRING
HIGHmax/python/max/experimental/nn/common_layers/mlp.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGHmax/python/max/nn/linear.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGH…/pipelines/architectures/kimik2_5/layers/vision/mlp.py0applies the mlp2 transformation to the input. args: x: input tensor to transform. returns: the transformed tensor after STRING
HIGH…/max/experimental/nn/common_layers/rotary_embedding.py0rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials.STRING
HIGH…tectures/pixtral/vision_encoder/rotary_embedding_2d.py0rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials.STRING
HIGH…pixtral_modulev3/vision_encoder/rotary_embedding_2d.py0rotaryembedding layer to calculate and apply the frequency tensor for complex exponentials.STRING
HIGH…/max/experimental/nn/common_layers/rotary_embedding.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGH…tectures/pixtral/vision_encoder/rotary_embedding_2d.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGH…pixtral_modulev3/vision_encoder/rotary_embedding_2d.py0hyperparameter used to control the frequency scaling of the sinusoidal components of the embeddings.STRING
HIGHmax/python/max/nn/linear.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/conv.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/attention/multi_latent_attention.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/python/max/nn/attention/multi_latent_attention_fp8.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/norm/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/max/pipelines/architectures/gemma3/layers/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/norm/layer_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/moe/moe.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/pipelines/architectures/deepseekV3/layers/moe_gate.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/max/pipelines/architectures/gemma4/layers/rms_norm.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…pelines/architectures/qwen2_5vl/nn/vision_attention.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…ython/max/pipelines/architectures/internvl/internvl.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGH…/pipelines/architectures/kimik2_5/layers/vision/mlp.py0create sharded views of this moegate module across multiple devices. args: devices: iterable of devices to place the shaSTRING
HIGHmax/python/max/nn/attention/attention_with_rope.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGHmax/python/max/nn/attention/multi_latent_attention.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGH…/python/max/nn/attention/multi_latent_attention_fp8.py0an opaque kv cache optimized attention mechanism with rope.STRING
HIGHmax/python/max/nn/attention/attention_with_rope.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…/max/pipelines/architectures/olmo3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…nes/architectures/gpt_oss_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…ines/architectures/gemma3_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…on/max/pipelines/architectures/qwen2_5vl/nn/decoder.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…lines/architectures/olmo2_modulev3/layers/attention.py0the concatenation of q, k, and v bias weight vectors.STRING
HIGH…x/python/max/nn/transformer/distributed_transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGHmax/python/max/nn/transformer/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGH…es/architectures/pixtral/vision_encoder/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGH…ectures/pixtral_modulev3/vision_encoder/transformer.py0stack of attention, feedforward, and rmsnorm layers.STRING
HIGHmax/python/max/nn/moe/sigmoid_router.py0replicates the correction bias alongside the base gate weights.STRING
HIGH…/pipelines/architectures/deepseekV3/layers/moe_gate.py0replicates the correction bias alongside the base gate weights.STRING
HIGH…/max/pipelines/architectures/laguna/layers/moe_gate.py0replicates the correction bias alongside the base gate weights.STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0the input-dtype set an op is swept over (see ``_supported_dtypes``).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0conservative swept dtype set for a (dtype_class, device).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGHmax/python/max/_interpreter_ops/unary_elementwise_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGHmax/python/max/_interpreter_ops/topk_gc.py0graph ``sym_name`` and cache key for one (op, device, dtype).STRING
HIGH…x/python/max/_interpreter_ops/elementwise_binary_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/reduce_axis_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/gather_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/scatter_gc.py0per-slot counterpart of :meth:`build_module`: one *device* only.STRING
HIGHmax/python/max/_interpreter_ops/scatter_nd_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/_interpreter_ops/gather_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/_interpreter_ops/scatter_gc.py0the same-bit-width unsigned int a dtype is bit-cast to for copying. raises: notimplementederror: for sub-byte dtypes (suSTRING
HIGHmax/python/max/pipelines/sampling/sampling_config.py0the section name to use when loading this config from a maxconfig file. this is used to differentiate between different STRING
HIGHmax/python/max/pipelines/kv_cache/config.py0the section name to use when loading this config from a maxconfig file. this is used to differentiate between different STRING
515 more matches not shown…
Docstring Block Structure532 hits · 2480 pts
SeverityFileLineSnippetContext
HIGHdocs/generate-metrics-table.py104Returns one table with its Type and Description columns refreshed. The rows keep the order the page gives them, andSTRING
HIGHdocs/generate-metrics-table.py179Returns the page with every table's cells refreshed. Args: current: The full text of the metrics reference.STRING
HIGH…/kernels/benchmarks/misc/comparison/setup_bench_env.py113Ensure a source repository exists, cloning if necessary. Args: name: Repository key in REPOS dict (e.g., "dSTRING
HIGHmax/python/max/tree.py322Takes one interior node apart, one level deep. Args: value: An interior node, as :func:`is_node` judges it.STRING
HIGHmax/python/max/tree.py435Flattens ``tree`` using this structure to locate the leaves. The walk descends into ``tree`` wherever this struSTRING
HIGHmax/python/max/tree.py569Splits ``tree`` into its leaves and the structure around them. Args: tree: The value to take apart. STRING
HIGHmax/python/max/tree.py633Rebuilds a tree from a structure and its leaves. The inverse of :func:`flatten`, always building a fresh tree. STRING
HIGHmax/python/max/tree.py804Returns ``tree``'s leaves keyed by their dotted path. The result is what :func:`update` consumes. Args: STRING
HIGHmax/python/max/tree.py892Builds a new tree with each leaf replaced by what ``f`` returns. With extra trees in ``rest``, ``f`` receives one lSTRING
HIGHmax/python/max/tree.py933Writes path-keyed values into ``tree``, in place. The counterpart of :func:`paths`, taking the same knobs. Only leaSTRING
HIGHmax/python/max/_interpreter.py202Execute an MO graph and return output buffers. Args: graph: The finalized MO graph to execute. inpuSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py192Choose the GPU-stats recorder for this run, or None to disable it. The remote sources are source selectors, not addSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py236Parse response format from CLI arg (inline JSON or @filepath). Args: arg: Either a JSON string or '@path/toSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py272Parses tool definitions from a CLI arg (inline JSON or @filepath). Args: arg: Either a JSON list or '@path/STRING
HIGHmax/python/max/benchmark/benchmark_shared/config.py273Resolve one argument into a mapping, from any of its three spellings. A field holding structured data is reachable STRING
HIGH…hon/max/benchmark/benchmark_shared/prometheus_fetch.py27Fetch raw metrics text from a Prometheus endpoint. Args: url: Prometheus metrics endpoint URL. timeSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py101Get a histogram by name and optional labels. Args: metric_name: Base metric name (such as "maxserveSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py147Get the metrics URL for a backend. Args: backend: Backend name (Backend enum) base_url: Base API URSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py281Fetch and parse metrics for a backend. Convenience function that combines get_metrics_url, fetch_metrics, and parseSTRING
HIGH…x/benchmark/benchmark_shared/lora_benchmark_manager.py109Get LoRA name for a given request index. Args: request_idx: The request index Returns: STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py406Loads a result JSON file and returns one flattened row per result. Supports the shapes the benchmarks emit: - STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py461Chooses the ordered CSV columns from those available in the input. The default (no options) is ``profile.summary``,STRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py615Reads result JSON ``inputs`` and writes a CSV with selected columns. Args: inputs: The result JSTRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py878Applies a function to every key in a mapping and returns a new dict. Args: f: The function to aSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py77Factory method to create the appropriate dataset subclass based on dataset name. This factory method automaticaSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py140Get the appropriate dataset class for the given dataset name. Args: dataset_name: Name of the datasSTRING
HIGH…n/max/benchmark/benchmark_shared/datasets/interface.py222Sample requests from the dataset. This is the standardized interface that all dataset implementations must follSTRING
HIGH…x/benchmark/benchmark_shared/datasets/agentic_tools.py95Build the per-tool load profiles from a ``tools`` mapping. Args: profiles: A mapping holding a ``tools`` liSTRING
HIGH…ython/max/benchmark/benchmark_shared/datasets/types.py224 Read an image file as raw bytes and encode in base64 without any transformations. Preserves the exact original STRING
HIGH…/python/max/benchmark/benchmark_shared/datasets/all.py94Resolve ``--agentic-tool-profiles``, rejecting incoherent combinations. Args: args: The parsed benchmark coSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py104Parse a distribution parameter that the caller must supply. Args: param: An int or float, or a distSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py126Parse a distribution parameter into a concrete distribution instance. Args: param: An int or float,STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py268Parse a string like "Cat(v1:w1, v2:w2, ...)" into a CategoricalDistribution. Args: schema: A stringSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py328Parse a string like "N(mean, std)" into a NormalDistribution. Args: schema: A string in the format STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py374Parse a string like "U(lower, upper)" into a UniformDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py419Parse a string like "G(shape, scale)" into a GammaDistribution. Args: schema: A string in the formaSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py469Parse a string like "LN(mean, std)" into a LogNormalDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py533Parse a string like "Burr12(c, d, scale)" into a Burr12Distribution. Args: schema: A string in the STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py587Parse a string like "DU(lower, upper)" into a DiscreteUniformDistribution. Args: schema: A string iSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py645Parse a string like "NB(n, p)" into a NegativeBinomialDistribution. Args: schema: A string in the fSTRING
HIGH…chmark/benchmark_shared/datasets/image_augmentation.py94Sample pixel dimensions from long-side and aspect-ratio distributions. Args: long_side_dist: Distribution fSTRING
HIGHmax/python/max/experimental/custom.py856Resolves an output's dtype, following a dtype variable if used. Args: spec: The output's declared :STRING
HIGHmax/python/max/experimental/custom.py943Declares a custom op from its signature. Validates the signature, compiles any Mojo source package, and resolves STRING
HIGHmax/python/max/experimental/compile_pool.py336Schedules a multi-graph :class:`~max.graph.Module` for compilation. Args: module: The module to comSTRING
HIGHmax/python/max/experimental/realization_context.py362Adds a realized tensor as an input source to the computation graph. Registers a realized tensor as a graph inpuSTRING
HIGHmax/python/max/experimental/random.py73Creates a tensor filled with random values from a uniform distribution. Generates a tensor with values uniformly diSTRING
HIGHmax/python/max/experimental/random.py125Creates a tensor filled with random values from a Gaussian (normal) distribution. Generates a tensor with values saSTRING
HIGHmax/python/max/experimental/tensor.py625Returns this tensor's shards under a new placement, moving no data. Use it to claim the placement of a per-deviSTRING
HIGHmax/python/max/experimental/tensor.py854Materializes a dimension as a rank-0 (scalar) tensor on CPU. Converts a shape dimension — static, symbolic, or STRING
HIGHmax/python/max/experimental/tensor.py941Creates a tensor from one value per device, moving no data. Each value is one device's shard: a graph value, orSTRING
HIGHmax/python/max/experimental/tensor.py1152Creates a constant tensor from a Python literal or array-like value. .. deprecated:: 26.2 Use ``TenSTRING
HIGHmax/python/max/experimental/tensor.py1418Creates a tensor with evenly spaced values within a given interval. Returns a new 1-D tensor containing a sequeSTRING
HIGHmax/python/max/experimental/tensor.py2024Returns the indices of the maximum values along an axis. It's useful for finding the position of the largest elSTRING
HIGHmax/python/max/experimental/tensor.py2064Computes the maximum along a specified axis. .. code-block:: python from max.experimental import tSTRING
HIGHmax/python/max/experimental/tensor.py2104Computes the minimum along a specified axis. .. code-block:: python from max.experimental import tSTRING
HIGHmax/python/max/experimental/tensor.py2144Computes the mean along a specified axis. .. code-block:: python from max.experimental import tensSTRING
HIGHmax/python/max/experimental/tensor.py2184Computes the sum along a specified axis. .. code-block:: python from max.experimental import tensoSTRING
HIGHmax/python/max/experimental/tensor.py2224Computes the product along a specified axis. Args: axis: The axis along which to compute the producSTRING
HIGHmax/python/max/experimental/tensor.py2283Removes a dimension of size ``1`` from the tensor. This is useful for removing singleton dimensions from tensorSTRING
HIGHmax/python/max/experimental/tensor.py2315Inserts a dimension of size ``1`` into the tensor. This is the inverse of :meth:`squeeze` and is useful for addSTRING
472 more matches not shown…
Empty Error Handlers144 hits · 720 pts
SeverityFileLineSnippetContext
HIGHmax/kernels/benchmarks/misc/utils/bench.py48except ImportError:CODE
HIGHmax/kernels/benchmarks/misc/utils/bench.py327except (AssertionError, ZeroDivisionError, RuntimeError):CODE
HIGHmax/kernels/benchmarks/misc/utils/bench.py244except (ValueError, ZeroDivisionError):CODE
HIGHmax/kernels/benchmarks/autotune/kbench_model.py1210except Exception:CODE
HIGHmax/kernels/benchmarks/autotune/kbench_model.py259except Exception:CODE
HIGHmax/kernels/benchmarks/autotune/kprofile.py637except:CODE
HIGHmax/python/max/_interpreter.py76except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py52except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py74except Exception:CODE
HIGHmax/python/max/benchmark/serve_replay.py88except Exception:CODE
HIGHmax/python/max/benchmark/benchmark_shared/utils.py151except (urllib.error.URLError, ConnectionError, OSError):CODE
HIGH…/python/max/benchmark/benchmark_shared/datasets/all.py154except Exception:CODE
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py152except ValueError:CODE
HIGHmax/python/max/experimental/executor.py312except UnsupportedGraphError:CODE
HIGH…python/max/experimental/cascade/grpc_runtime/server.py131except asyncio.CancelledError:CODE
HIGH…ython/max/experimental/cascade/grpc_runtime/subproc.py72except FileNotFoundError:CODE
HIGH…python/max/experimental/cascade/grpc_runtime/client.py82except grpc.RpcError:CODE
HIGH…ython/max/experimental/cascade/http_runtime/subproc.py128except aiohttp.ClientError:CODE
HIGHmax/python/max/nn/parallel/numpy_parallel_ops.py100except Exception:CODE
HIGHmax/python/max/nn/parallel/numpy_parallel_ops.py108except Exception:CODE
HIGHmax/python/max/nn/parallel/numpy_parallel_ops.py126except Exception:CODE
HIGHmax/python/max/config/__init__.py388except ValueError:CODE
HIGHmax/python/max/pipelines/context/video.py241except ValueError:CODE
HIGHmax/python/max/pipelines/context/video.py575except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/context/video.py598except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/context/video.py616except av.error.FFmpegError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py452except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py460except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py470except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py478except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py488except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py496except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py506except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py516except ModuleNotFoundError:CODE
HIGHmax/python/max/pipelines/architectures/__init__.py528except ModuleNotFoundError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py65except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py77except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py142except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py204except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py269except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py409except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py49except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py441except ValueError:CODE
HIGH…/python/max/pipelines/architectures/hf_config_shims.py471except ValueError:CODE
HIGH…thon/max/pipelines/architectures/laguna/tool_parser.py81except json.JSONDecodeError:CODE
HIGH…hon/max/pipelines/architectures/laguna/model_config.py276except (AttributeError, TypeError):CODE
HIGH…hon/max/pipelines/architectures/laguna/model_config.py293except (AttributeError, TypeError):CODE
HIGH…pelines/architectures/gemma4_assistant/model_config.py45except ValueError:CODE
HIGH…thon/max/pipelines/architectures/gemma4/tool_parser.py76except ValueError:CODE
HIGH…hon/max/pipelines/architectures/qwen3_5/tool_parser.py97except json.JSONDecodeError:CODE
HIGH…pelines/architectures/kimik2_5_modulev3/tool_parser.py84except (ValueError, IndexError):CODE
HIGH…on/max/pipelines/architectures/kimik2_5/tool_parser.py84except (ValueError, IndexError):CODE
HIGH…thon/max/pipelines/kv_cache/connectors/_offload_dir.py80except FileNotFoundError:CODE
HIGH…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py123except OSError:CODE
HIGHmax/python/max/pipelines/lib/device_specs.py173except (ValueError, TypeError, msgspec.ValidationError):CODE
HIGHmax/python/max/pipelines/lib/device_specs.py184except ValueError:CODE
HIGHmax/python/max/pipelines/lib/config/model_config.py1837except Exception:CODE
HIGH…lines/lib/pipeline_variants/overlap_text_generation.py3478except Exception:CODE
HIGHmax/python/max/support/host_memory.py152except (AttributeError, OSError, ValueError):CODE
HIGHmax/python/max/support/host_memory.py171except (OSError, RuntimeError):CODE
84 more matches not shown…
Self-Referential Comments234 hits · 579 pts
SeverityFileLineSnippetContext
MEDIUM…local_transformers_setup/cleanup_local_transformers.sh30# Create a temp file to build the cleaned versionCOMMENT
MEDIUMdocs/code/develop/tensors/create_first_tensor.py17# Create a simple 1-D tensor (a vector)COMMENT
MEDIUMdocs/code/develop/tensors/create_multi_dim.py17# Create a 2-D tensor (a matrix)COMMENT
MEDIUMdocs/code/develop/tensors/create_multi_dim.py21# Create a 3-D tensor (a cube of numbers)COMMENT
MEDIUMdocs/code/develop/dtypes/specify_dtype.py19# Create a tensor with float32 (default for most operations)COMMENT
MEDIUMdocs/code/develop/dtypes/specify_dtype.py23# Create a tensor with int32 for indices or countsCOMMENT
MEDIUMdocs/code/develop/dtypes/dlpack_conversion.py18# Create a NumPy arrayCOMMENT
MEDIUMdocs/code/develop/dtypes/cast_dtype.py19# Create a float32 tensorCOMMENT
MEDIUM…enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py88 # Create the block tables.COMMENT
MEDIUM…nchmarks/misc/utils/bench_vllm_flashinfer_attention.py82 # Create the block tables.COMMENT
MEDIUM…ernels/benchmarks/misc/utils/warp_profiling/profile.py237 # Create a dictionary of dataframes, one for each groupCOMMENT
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py193 # Create a CPU group for coordination (CustomAllreduce needs this)COMMENT
MEDIUM…chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml20# This file is facilitate development before GTC and should be combinedCOMMENT
MEDIUMmax/python/docs/build-rsts.sh71 # Create the directory if it does not existCOMMENT
MEDIUMmax/python/max/_interpreter.py216 # Create a new interpreter slots dictionary for this execution.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_serving.py507 # Create a request driver instance without pbar for test promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py70 # Create a summarization promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py107 # Create the full promptCOMMENT
MEDIUM⚡max/python/max/experimental/tensor.py1435 # Create a range from 0 to 10 (exclusive)STRING
MEDIUM⚡max/python/max/experimental/tensor.py1439 # Create a range from 5 to 15 with step 2STRING
MEDIUM⚡max/python/max/experimental/tensor.py1447 # Create a range with a floating-point stepSTRING
MEDIUM⚡max/python/max/experimental/tensor.py1451 # Create a descending range with negative stepSTRING
MEDIUMmax/python/max/experimental/tensor.py1024 # Create a NumPy arraySTRING
MEDIUMmax/python/max/experimental/tensor.py1213 # Create a 3x3 tensor filled with 7STRING
MEDIUMmax/python/max/experimental/tensor.py1216 # Create a 2x4 tensor filled with piSTRING
MEDIUMmax/python/max/experimental/tensor.py1250 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1288 # Create a 2x3 tensor of zerosSTRING
MEDIUMmax/python/max/experimental/tensor.py1293 # Create a 1D tensor using default dtype and deviceSTRING
MEDIUMmax/python/max/experimental/tensor.py1324 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1359 # Create a 2x3 tensor of onesSTRING
MEDIUMmax/python/max/experimental/tensor.py1389 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1509 # Create a reference tensor with shape (2, 4)STRING
MEDIUMmax/python/max/experimental/tensor.py2070 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2110 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2150 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2190 # Create a 2x3 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2254 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2365 # Create a 10x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2471 # Create a float32 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2574 # Create a 2x3 matrixSTRING
MEDIUMmax/python/max/experimental/validation.py410 # The following methods are called from max._validation_hooks.COMMENT
MEDIUMmax/python/max/nn/attention/multihead_attention.py164 # Create a module instance for this deviceCOMMENT
MEDIUMmax/python/max/nn/moe/quant_strategy.py358 # Create a dummy expert scales tensor with shape (num_experts,) forCOMMENT
MEDIUMmax/python/max/config/__init__.py1052 # Create a wrapper class to override parse_args methodCOMMENT
MEDIUMmax/python/max/graph/quantization.py80 # Create a quantized weight using Q4_K encodingSTRING
MEDIUMmax/python/max/graph/graph.py869 # Create an always-ready chain that is never advanced by the graph.COMMENT
MEDIUMmax/python/max/graph/type.py136 # Create a GPU device reference (default id=0)STRING
MEDIUMmax/python/max/graph/type.py139 # Create a CPU device with specific idSTRING
MEDIUMmax/python/max/graph/type.py375 # Create a tensor type with float32 elements and static dimensions 2x3STRING
MEDIUMmax/python/max/graph/type.py543 # Create an opaque type with parametersSTRING
MEDIUM⚡max/python/max/graph/value.py377 # Create a sample matrixSTRING
MEDIUM⚡max/python/max/graph/value.py380 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py382 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py487 # Create a 2x2 matrixSTRING
MEDIUM⚡max/python/max/graph/value.py490 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py492 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py517 # Create a matrix with float32 valuesSTRING
MEDIUM⚡max/python/max/graph/value.py520 # Create a Graph context to work with tensorsSTRING
MEDIUM⚡max/python/max/graph/value.py522 # Create a constant tensor from the matrixSTRING
MEDIUM⚡max/python/max/graph/value.py542 # Create a 2x2 matrix (2-dimensional array)STRING
174 more matches not shown…
Deep Nesting638 hits · 574 pts
SeverityFileLineSnippetContext
LOWdocs/write-nightly-release.py29CODE
LOWdocs/post-process-docs.py25CODE
LOWdocs/post-process-docs.py46CODE
LOWdocs/post-process-docs.py153CODE
LOWdocs/post-process-docs.py172CODE
LOWdocs/post-process-docs.py187CODE
LOWdocs/post-process-docs.py200CODE
LOWdocs/post-process-docs.py215CODE
LOWdocs/generate-arch-docs.py110CODE
LOWdocs/generate-arch-docs.py244CODE
LOWdocs/generate-models-table.py244CODE
LOWdocs/generate-models-table.py366CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py1044CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py1286CODE
LOWmax/kernels/benchmarks/misc/analyze_4wave_autotune.py55CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py128CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py215CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py457CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py253CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py50CODE
LOW…nchmarks/misc/comparison/bench_mega_ffn_nvfp4_graph.py322CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py452CODE
LOW…s/misc/comparison/bench_flashinfer_trtllm_moe_nvfp4.py268CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1298CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py686CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py736CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py857CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1562CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1793CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1954CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1987CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py2045CODE
LOWmax/kernels/benchmarks/autotune/tuning_codegen.py95CODE
LOWmax/kernels/benchmarks/autotune/kplot.py111CODE
LOWmax/kernels/benchmarks/autotune/kprofile.py750CODE
LOWmax/python/docs/check_api_coverage.py90CODE
LOWmax/python/docs/check_api_coverage.py216CODE
LOWmax/python/docs/check_api_coverage.py408CODE
LOWmax/python/max/tree.py630CODE
LOWmax/python/max/tree.py926CODE
LOWmax/python/max/tree.py682CODE
LOWmax/python/max/tree.py960CODE
LOWmax/python/max/_interpreter.py247CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py108CODE
LOWmax/python/max/benchmark/serve_replay.py60CODE
LOWmax/python/max/benchmark/benchmark_serving.py417CODE
LOWmax/python/max/benchmark/benchmark_serving.py1041CODE
LOWmax/python/max/benchmark/benchmark_serving.py1395CODE
LOWmax/python/max/benchmark/benchmark_serving.py1576CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py80CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py776CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py1434CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py387CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py208CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py419CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py710CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py540CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1418CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py214CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py407CODE
578 more matches not shown…
Cross-Language Confusion96 hits · 467 pts
SeverityFileLineSnippetContext
HIGHmax/kernels/benchmarks/autotune/kdiff.py50 export KUBECONFIG=/dev/null ; # recommendedSTRING
HIGH…/architectures/deepseekV3_modulev3/layers/quant_mla.py253 """Fused ``q_a_proj || kv_a_proj_with_mqa`` (bf16 or FP8)."""STRING
HIGH…thon/max/pipelines/architectures/glm5_1/tool_parser.py110 # case; decode only non-string JSON (numbers, booleans, null, arrays,COMMENT
HIGHmax/python/max/pipelines/kv_cache/config.py142 default=KVConnectorType.null,CODE
HIGH…lines/kv_cache/paged_kv_cache/recurrent_coordinator.py35 Every block behind it is null, a published checkpoint, or one aSTRING
HIGHmax/python/max/pipelines/lib/embeddings_pipeline.py147 tracer.push("prepare_response")CODE
HIGHmax/python/max/profiler/tracing.py137 tracer.push("child_operation")STRING
HIGHmax/python/max/profiler/tracing.py144 tracer.push("child_operation")STRING
HIGHmax/python/max/profiler/tracing.py164 self.push(message, color)CODE
HIGHmax/python/max/profiler/tracing.py219 self.push(message, color)CODE
HIGHmax/python/max/serve/parser/json_utils.py23 (?<boolean> true | false | null )CODE
HIGHmax/python/max/serve/schemas/_decisions.py59# scalars (numbers, booleans, null) are not accepted.COMMENT
HIGHmax/python/max/serve/worker_interface/zmq_interface.py326 response_queue=self.response_queue_config.push(),CODE
HIGHmax/python/max/serve/worker_interface/_zmq_queue.py275 return self.push(), self.pull()CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py574 ([DeviceSpec.cpu()], KVConnectorType.null, 0),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py575 ([DeviceSpec.accelerator(id=0)], KVConnectorType.null, 0),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py579 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py584 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py589 KVConnectorType.null,CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py641 (1, KVConnectorType.null, 1),CODE
HIGH⚡…ests/integration/unorganized/test_memory_estimation.py643 (2, KVConnectorType.null, 1),CODE
HIGHmax/tests/integration/graph/test_horizontal_fusion.py173 accumulation buffer from `dtypeChanges && containsMatmulOrConvOrConcat`,CODE
HIGH⚡…unified_dspark_gemma4_12b/test_dspark_gemma4_module.py700 """Mean per-position KL(ref || max) over fp32 softmax distributions."""STRING
HIGH…ion/architectures/mimo_v2/test_serving_numerics_gpu.py37"""Bounds on KL(HF || MAX) over the whole vocabulary, and on top-1STRING
HIGH…ion/architectures/mimo_v2/test_serving_numerics_gpu.py55 """Each row's KL(gold || test)."""STRING
HIGH…tion/architectures/mimo_v2/check_reference_fixtures.py64 """The fixtures' ``kl64``: KL(gold || test) over gold's top 64 + tail."""STRING
HIGH⚡…ed_dspark_gemma4_31b/test_dspark_speculators_module.py400 """Mean per-position KL(ref || max) over fp32 softmax distributions."""STRING
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4013 ({"type": "object"}, '{"a": ["x", {"b": null}]}', '{"a": 1 zzz}'),CODE
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4016 '{"a": ["x", {"b": null}]}',CODE
HIGH⚡…tegration/pipelines/tokenization/test_xgrammar_shim.py4019 ({"type": "array"}, '[1, ["x", {"b": null}]]', "[1 zzz]"),CODE
HIGH…okenization/test_kimi_reasoning_toolarg_enforcement.py161# anyOf(string-enum | null): once the value opens with a quote, only theCOMMENT
HIGH…ation/accuracy/llm_fuzz/scenarios/structured_output.py207 # (non-dict, null, recursive $ref) must be rejected.COMMENT
HIGH…tion/accuracy/llm_fuzz/scenarios/models/kimi_battle.py103 f"Expected str|null, got {type(data['value']).__name__}"CODE
HIGH…ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py222 detail=f"nickname should be string or null, got {type(data['nickname']).__name__}",CODE
HIGH…ation/accuracy/llm_fuzz/scenarios/models/glm_battle.py297 detail=f"value should be string or null, got {type(data['value']).__name__}",CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1263 # 15. anyOf with nullable string: anyOf: [{type:string},{type:null}]COMMENT
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1257 "and reason is null (must be null, not a string)."CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1426 f"status={status!r} not in enum ['active','inactive',null]"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1461 f"not in [true, false, null]"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2033 "a next pointer (another node or null)."CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2809 "string 'none' instead of null. Do not use null, "CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4082 f"name: expected string or null, got {type(name).__name__}"CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4088 f"age: expected integer or null, got "CODE
HIGH⚡…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4095 f"tags: expected array or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py139 "integer vs number, null, nested objects, fixed property order"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py918 f"nickname: expected string or null, got {type(nickname).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1180 f"nickname: expected string or null, got {type(nn).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1231 f"reason: expected null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1279 f"middle_name: expected string or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1874 f"score: expected number or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2080 f"metadata: expected object or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2158 f"tags: expected array or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2761 f"backup_contact: expected object or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3456 "kind (file or directory), and children (array or null)."CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3575 f"{field}: expected string or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3641 f"count: expected integer or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3691 f"enabled: expected boolean or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3745 f"score: expected number or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3796 f"tags: expected array or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3862 f"address: expected object or null, got "CODE
36 more matches not shown…
Excessive Try-Catch Wrapping472 hits · 460 pts
SeverityFileLineSnippetContext
LOW…egration-test/python/test_signal_handler_python_gil.py86 except Exception as e:CODE
MEDIUMdocs/update-github-links.py62 print(f"Error: '{docs_dir}' is not a valid directory")CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py593 except Exception as e:CODE
LOW…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py780 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_amd_m3_moe_chain.py746 except Exception as e:CODE
MEDIUM…s/benchmarks/misc/comparison/bench_blackwell_decode.py58 print(f"Error: flashinfer not available: {e}")CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py506 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py524 except Exception as e:CODE
LOW…c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py374 except Exception as e:CODE
MEDIUM…nchmarks/misc/comparison/bench_blackwell_mla_decode.py121 print(f"Error: flashinfer not available: {e}")CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1044 except Exception as e:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1065 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py169 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py193 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py385 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py673 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py698 except Exception as e:CODE
LOW…/kernels/benchmarks/misc/comparison/setup_bench_env.py714 except Exception as e:CODE
MEDIUM…/benchmarks/misc/comparison/bench_blackwell_prefill.py46 print(f"Error: flashinfer not available: {e}")CODE
MEDIUM…/benchmarks/misc/comparison/bench_blackwell_prefill.py76 print(f"Error: flash_attn not available: {e}")CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py512 except Exception as e:CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py532 except Exception as e:CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py551 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py148 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py196 except Exception:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py226 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py267 except Exception as e:CODE
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py355 print("Error: This benchmark requires mpirun for multi-GPU execution.")CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_softmax.py136 except Exception as e:CODE
LOW…/misc/comparison/bench_blackwell_mla_prefill_sparse.py347 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py501 except Exception as e:CODE
LOW⚡max/kernels/benchmarks/misc/comparison/bench_amd_mla.py838 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1287 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1488 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1558 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench.py714 except Exception:CODE
MEDIUMmax/kernels/benchmarks/autotune/kbench.py711def main() -> None:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py160 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py169 except Exception as exc:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py259 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py627 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1176 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1210 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py104 except Exception:CODE
LOWmax/python/max/tree.py154 except Exception:CODE
LOWmax/python/max/_interpreter.py49except Exception as _e:CODE
LOWmax/python/max/_interpreter.py76 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py52 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py74 except Exception:CODE
LOWmax/python/max/benchmark/serve_replay.py88 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_serving.py624 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_serving.py662 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_serving.py898 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py603 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py817 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py901 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1207 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1299 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1520 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1630 except Exception:CODE
412 more matches not shown…
Modern Structural Boilerplate455 hits · 451 pts
SeverityFileLineSnippetContext
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py18def update_pip() -> None:CODE
LOWmax/python/max/tree.py60__all__ = [CODE
LOWmax/python/max/_eager_policy.py24logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_serving.py163logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/results_to_csv.py79logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py62logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py57__all__ = [CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py68logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py69logger = logging.getLogger(__name__)CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py35logger = logging.getLogger(__name__)CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py53logger = logging.getLogger(__name__)CODE
LOW…x/benchmark/benchmark_shared/gpu_metrics_prometheus.py52logger = logging.getLogger(__name__)CODE
LOW…/max/benchmark/benchmark_shared/gpu_metrics_scraper.py52logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py46logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py38logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py316def set_ulimit(target_soft_limit: int = 65535) -> None:CODE
LOW…x/benchmark/benchmark_shared/lora_benchmark_manager.py30logger = logging.getLogger(__name__)CODE
LOW…x/python/max/benchmark/benchmark_shared/single_turn.py63logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py74logger = logging.getLogger(__name__)CODE
LOW…python/max/benchmark/benchmark_shared/workload_file.py51logger = logging.getLogger(__name__)CODE
LOW…nchmark/benchmark_shared/datasets/tool_augmentation.py40logger = logging.getLogger(__name__)CODE
LOW…chmark_shared/datasets/response_format_augmentation.py44logger = logging.getLogger(__name__)CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py38logger = logging.getLogger(__name__)CODE
LOW…enchmark_shared/datasets/multiturn_distribution_fit.py88logger = logging.getLogger(__name__)CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py41logger = logging.getLogger(__name__)CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py55__all__ = [CODE
LOW…/python/max/benchmark/benchmark_shared/datasets/all.py88logger = logging.getLogger(__name__)CODE
LOW…thon/max/benchmark/benchmark_shared/datasets/random.py43logger = logging.getLogger(__name__)CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py40logger = logging.getLogger(__name__)CODE
LOW…chmark/benchmark_shared/datasets/image_augmentation.py49logger = logging.getLogger(__name__)CODE
LOW…hmark/benchmark_shared/datasets/artificial_analysis.py45logger = logging.getLogger(__name__)CODE
LOW…n/max/benchmark/benchmark_shared/datasets/batch_job.py40logger = logging.getLogger(__name__)CODE
LOW…/max/benchmark/benchmark_shared/datasets/chat_judge.py35logger = logging.getLogger(__name__)CODE
LOWmax/python/max/experimental/custom.py55__all__ = [CODE
LOWmax/python/max/experimental/realization_context.py113def set_seed(value: int) -> None:CODE
LOWmax/python/max/experimental/realization_context.py721__all__ = [CODE
LOWmax/python/max/experimental/__init__.py48__all__ = [CODE
LOWmax/python/max/experimental/random.py44__all__ = ["gaussian", "normal", "seed", "set_seed", "uniform"]CODE
LOWmax/python/max/experimental/executor.py419__all__ = [CODE
LOWmax/python/max/experimental/validation.py37__all__ = [CODE
LOWmax/python/max/experimental/nn/__init__.py74__all__ = [CODE
LOWmax/python/max/experimental/nn/_compilation_timer.py34__all__ = [CODE
LOWmax/python/max/experimental/nn/module.py48__all__ = [CODE
LOWmax/python/max/experimental/nn/rope/__init__.py17__all__ = [CODE
LOWmax/python/max/experimental/nn/norm/__init__.py19__all__ = ["GemmaRMSNorm", "GroupNorm", "LayerNorm", "RMSNorm", "rms_norm"]CODE
LOW…/python/max/experimental/nn/common_layers/mesh_axis.py23__all__ = ["DP", "TP"]CODE
LOW…ax/experimental/nn/common_layers/functional_kernels.py259__all__ = [CODE
LOWmax/python/max/experimental/nn/common_layers/moe.py306 def _set_mesh(self, mesh: DeviceMesh) -> None:CODE
LOWmax/python/max/experimental/torch/__init__.py27__all__ = [CODE
LOWmax/python/max/experimental/sharding/per_shard_dim.py31__all__ = [CODE
LOWmax/python/max/experimental/sharding/__init__.py88__all__ = [CODE
LOWmax/python/max/experimental/sharding/rules/__init__.py92__all__ = [CODE
LOWmax/python/max/experimental/testing/__init__.py21__all__ = ["assert_all_close"]CODE
LOWmax/python/max/experimental/cascade/__init__.py45__all__ = [CODE
LOW…python/max/experimental/cascade/grpc_runtime/server.py48logger = logging.getLogger(__name__)CODE
LOW…python/max/experimental/cascade/grpc_runtime/client.py71logger = logging.getLogger(__name__)CODE
LOW…thon/max/experimental/cascade/grpc_runtime/__init__.py20__all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"]CODE
LOW…ython/max/experimental/cascade/grpc_runtime/runtime.py20__all__ = ["GrpcRuntimeClient", "SubprocGrpcRuntimeClient"]CODE
LOWmax/python/max/experimental/cascade/core/__init__.py29__all__ = [CODE
LOWmax/python/max/experimental/cascade/core/fd_limits.py22logger = logging.getLogger(__name__)CODE
395 more matches not shown…
AI Slop Vocabulary116 hits · 368 pts
SeverityFileLineSnippetContext
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py106 # target, and `corpus/mega_ffn/` would sit under the harness directory,COMMENT
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py109 # `-I max/kernels/test/gpu/fuzz` for `_fuzz`, which makes the harnessCOMMENT
MEDIUM⚡max/kernels/test/gpu/fuzz/fuzz.py115 # corpus out of the harness directory.COMMENT
MEDIUM…/kernels/test/gpu/compute_sanitizer/stress_schedule.sh15# Schedule-amplification harness for inter-block global-memory races.COMMENT
MEDIUM…/kernels/test/gpu/compute_sanitizer/stress_schedule.sh26# This harness amplifies the schedule with three knobs that need no kernelCOMMENT
MEDIUM…ernels/benchmarks/misc/utils/warp_profiling/profile.py119 # Create comprehensive visualization showing all SMsCOMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py43# in that range, so they measure partly L2-warm. What this harness doesCOMMENT
MEDIUM…ernels/benchmarks/misc/comparison/bench_amd_mx_gemm.py47# the narrower ones. Absolute cold-HBM MXFP6 numbers need a harness thatCOMMENT
MEDIUM…chmarks/gpu/linalg/bench_matmul_llama3_70B_4xH100.yaml20# This file is facilitate development before GTC and should be combinedCOMMENT
LOWmax/kernels/benchmarks/autotune/kbench_model.py536 # just use compile-time parameters and ignore runtime variables.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py916 # the harness didn't launch the server (e.g. benchmarking an externalCOMMENT
LOWmax/python/max/nn/quant_ops.py514 # activation scales are [1xm] which but in the dynamic scaled matmul we expect just use x_scale[0,0]COMMENT
MEDIUMmax/python/max/nn/parallel/numpy_parallel_ops.py268 # to better utilize available parallelism and memory bandwidth.COMMENT
MEDIUMmax/python/max/config/config_file_model.py109 """Optional section name for comprehensive/multi-section config files.STRING
MEDIUMmax/python/max/driver/buffer.py422 # Hardcoded but we should move to a robust versioning system if thisCOMMENT
MEDIUMmax/python/max/graph/graph.py1033 # This may over-declare but is deterministic and comprehensive.COMMENT
MEDIUMmax/python/max/pipelines/logging_utils.py43 """Logs comprehensive pipeline and KVCache configuration information.STRING
MEDIUMmax/python/max/pipelines/context/sampling_params.py341 """Logs comprehensive sampling parameters information.STRING
MEDIUMmax/python/max/pipelines/lib/eplb_stats.py400 # (wherever the harness injects them), so no separate host counter isCOMMENT
MEDIUMmax/python/max/pipelines/lib/config/config.py788 # the v1 dflash harness drives; Eagle, MTP and DFlash2 would loadCOMMENT
LOWmax/python/max/_entrypoints/pipelines.py1062 # Help was requested and printed, just returnCOMMENT
MEDIUMmax/python/max/serve/config.py502 """Log comprehensive server configuration information.STRING
MEDIUM…/max/serve/scheduler/batch_constructor/token_budget.py99 """Whether this budget may shrink the context via ``context.chunk`` in order to fit within the remaining capacitSTRING
MEDIUMmax/python/layer_benchmarks/precompile_layer.py34 # A session only because the harness signature takes one; graph buildingCOMMENT
MEDIUMmax/python/layer_benchmarks/testbed/runner.py102 # weights registry (and the reference weights a harness stashesCOMMENT
MEDIUMmax/python/layer_benchmarks/testbed/runner.py230 # Compile first so harness can store weights for the torch reference.COMMENT
MEDIUM⚡…x/python/layer_benchmarks/testbed/kbench_entrypoint.py44# harness ABC so each harness declares its own shape keys.COMMENT
MEDIUM⚡…x/python/layer_benchmarks/testbed/kbench_entrypoint.py48# to the harness as static params.COMMENT
MEDIUM…x/python/layer_benchmarks/testbed/kbench_entrypoint.py122 # Extract harness name from the config bundle.COMMENT
MEDIUM…x/python/layer_benchmarks/testbed/kbench_entrypoint.py136 # Filter out control keys before passing to the harness.COMMENT
MEDIUM…ayer_benchmarks/testbed/harnesses/wan_vae_attention.py163 # harness catches that regression), small enough thatCOMMENT
MEDIUM…sts/integration/graph/test_custom_kernel_validation.py384 # Test multiple operations in sequence to ensure comprehensive validationCOMMENT
MEDIUM…sts/integration/graph/test_custom_kernel_validation.py338 """Tests for comprehensive kernel signature validation."""STRING
MEDIUM⚡max/tests/integration/xarch_warm/test_cpu_warm_cache.py90 # actually zeroed the count in this harness before relying on it below.COMMENT
LOW…integration/architectures/deepseekV3_2/test_indexer.py329 # ``slice_freqs_cis`` and just pass ``rope.freqs_cis``.COMMENT
MEDIUM…ration/architectures/gemma4_modulev3/test_attention.py66# ModuleV3 harnessCOMMENT
MEDIUM…/unified_dspark_gemma4_31b/test_unified_step_parity.py429 # drafts; this harness feeds drafts as a plain graph input instead, soCOMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz_matrix.py107 # Tiny model on CPU: a cheap end-to-end check of the fuzz harness and theCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py757 # Fail on a broken harness (no successful inferences / mostly errors) soCOMMENT
LOWmax/tests/integration/accuracy/verify_pipelines.py1305 # Let generate_llm_logits.py validate the `--devices` CLI arg and just passCOMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh19# OmniDocBench scores with a third-party harness (pdf_validation.py) that needsCOMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh36# Passed to the harness by environment, never written toCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh59# --refresh Re-clone the harness and rebuild its venv.COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh145# while the harness appends its own; normalize so either form works.COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh150# The harness takes a directory, so the pages to run are staged as symlinks:COMMENT
MEDIUM⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh156# build_save_name() in the harness derives its output name from the predictionCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh183# into the harness venv would shadow that venv's own packages (the same hazardCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh221 # The harness requires Python < 3.12.COMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh230# The display-formula CDM metric renders LaTeX; without it the harness leavesCOMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh256 # ImageMagick 6 on Ubuntu ships `convert`; the harness calls IM7's `magick`.COMMENT
MEDIUM…gration/accuracy/model_evals/run_omnidocbench_local.sh395 # ./result is written relative to the harness's working directory.COMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py50#: The openbench harness normalizes the OpenAI finish_reason "length" ontoCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py52#: (verified against inspect_ai 0.3.125); "length" is kept for a harness thatCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py197 # The task names the harness it reproduces; openbench's own tasks do not.COMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py240#: chance — an API or harness failure, not the agent losing. ``max_steps`` isCOMMENT
MEDIUM…ests/integration/accuracy/model_evals/exacto_report.py374# This module is executed by the pinned third-party harness venv (openbench orCOMMENT
MEDIUM⚡…integration/accuracy/model_evals/test_exacto_report.py275 # A field the server volunteers must never shadow a harness field, so theCOMMENT
MEDIUM…/integration/accuracy/model_evals/run_scicode_local.sh14# Provisions the scicode/h5py harness venv + test_data.h5 (cached in /tmp), thenCOMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh24# OpenRouter benchmarks with its own harness,COMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh25# https://github.com/OpenRouterTeam/benchmark-harnessCOMMENT
56 more matches not shown…
AI Structural Patterns168 hits · 154 pts
SeverityFileLineSnippetContext
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py430CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py350CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py146CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py349CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py390CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py431CODE
LOWmax/kernels/benchmarks/autotune/kbench.py105CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py515CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py80CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py420CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py592CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py198CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py449CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py281CODE
LOWmax/python/max/experimental/nn/conv.py79CODE
LOW…xperimental/nn/common_layers/multi_latent_attention.py71CODE
LOWmax/python/max/nn/kernels.py286CODE
LOWmax/python/max/nn/kernels.py3189CODE
LOWmax/python/max/nn/kernels.py5134CODE
LOWmax/python/max/nn/kernels.py5311CODE
LOWmax/python/max/nn/kernels.py6808CODE
LOWmax/python/max/nn/kernels.py6811CODE
LOWmax/python/max/nn/kernels.py7365CODE
LOWmax/python/max/nn/kernels.py7092CODE
LOWmax/python/max/nn/kernels.py7792CODE
LOWmax/python/max/nn/kernels.py8162CODE
LOWmax/python/max/nn/kernels.py8425CODE
LOWmax/python/max/nn/kernels.py8917CODE
LOWmax/python/max/nn/kernels.py9068CODE
LOWmax/python/max/nn/kernels.py9126CODE
LOWmax/python/max/nn/kernels.py9174CODE
LOWmax/python/max/nn/kernels.py9260CODE
LOWmax/python/max/nn/kernels.py9346CODE
LOWmax/python/max/nn/kernels.py10066CODE
LOWmax/python/max/nn/kernels.py11464CODE
LOWmax/python/max/nn/kernels.py11537CODE
LOWmax/python/max/nn/conv_transpose.py86CODE
LOWmax/python/max/nn/conv_transpose.py295CODE
LOWmax/python/max/nn/conv.py95CODE
LOWmax/python/max/nn/conv.py382CODE
LOWmax/python/max/nn/conv.py587CODE
LOWmax/python/max/nn/quant_ops.py164CODE
LOWmax/python/max/nn/quant_ops.py197CODE
LOWmax/python/max/nn/attention/attention_with_rope.py60CODE
LOWmax/python/max/nn/attention/attention_with_rope.py977CODE
LOWmax/python/max/nn/attention/attention_with_rope.py1134CODE
LOWmax/python/max/nn/attention/multi_latent_attention.py91CODE
LOWmax/python/max/nn/attention/multi_latent_attention.py580CODE
LOW…/python/max/nn/attention/multi_latent_attention_fp8.py59CODE
LOWmax/python/max/nn/sampling/rejection_sampler.py1106CODE
LOWmax/python/max/nn/sampling/rejection_sampler.py726CODE
LOWmax/python/max/nn/moe/quant_strategy.py648CODE
LOWmax/python/max/nn/moe/stacked_moe.py302CODE
LOWmax/python/max/nn/moe/moe.py350CODE
LOWmax/python/max/graph/graph.py805CODE
LOWmax/python/max/graph/ops/concat.py97CODE
LOWmax/python/max/pipelines/context/video.py453CODE
LOWmax/python/max/pipelines/context/video.py734CODE
LOW…/max/pipelines/architectures/olmo3/layers/attention.py216CODE
LOW…elines/architectures/deepseekV3_2/layers/transforms.py161CODE
108 more matches not shown…
Structural Annotation Overuse72 hits · 117 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md46### Step 1: Evaluate and get buy-in on the changeCOMMENT
LOWCONTRIBUTING.md95### Step 2: Create a pull requestCOMMENT
LOWCONTRIBUTING.md244### Step 3: PR triage and reviewCOMMENT
LOWCONTRIBUTING.md257### Step 4: Internal review and syncingCOMMENT
LOWCONTRIBUTING.md276### Step 5: Review feedback and iterationCOMMENT
LOW⚡docs/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOW⚡docs/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOW⚡docs/code/develop/index/graph_simple.py35# Step 3: Execute with dataCOMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py170 # Step 1: QKV matmul.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py177 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py187 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py202 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py792 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py829 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py847 # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py943 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py1003 # Step 5: Assemble the vision encoder's inputs, in PROMPT order.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py143 # Step 1: QKV matmul.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py150 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py159 # Step 3: Fused rope + split + KV store.COMMENT
LOW…lines/architectures/olmo2_modulev3/layers/attention.py174 # Step 5: Compute flash attentionCOMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py151 # Step 1: pack groups to nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py167 # Step 2: construct redundant experts within nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py175 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py199 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py212 # Step 2: Apply manual overrides (highest priority)COMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1371 # Step 1: initial tool callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1390 # Step 2: provide tool result, ask follow-up that triggers another callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1440 # Step 3: multi-tool conversationCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py537 # Step 1: Structured output requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py561 # Step 2: Tool calling requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py576 # Step 3: Plain chat requestCOMMENT
LOWmax/docs/accuracy-debugging.md52## Step 1: Dump the intermediate tensors with `debug_model`COMMENT
LOWmax/docs/accuracy-debugging.md79## Step 2: Compare to find the area of divergenceCOMMENT
LOWmax/docs/accuracy-debugging.md106## Step 3: Add fine-grained print loggingCOMMENT
LOWmax/docs/accuracy-debugging.md183## Step 4: Export full tensors with `debug_model`COMMENT
LOWmax/docs/accuracy-debugging.md212## Step 5: Compare the tensors with `compare_tensors`COMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py707 # Step 6: Prepare inputs for the pipelineCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py767 # Step 8: Get the output for our requestCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py778 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py413 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py502 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py551 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py575 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py671 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py751 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md158### Step 1: Build the C LibraryCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md183### Step 2: Build and Run a TestCOMMENT
LOWMojo/test/mojo-integration/extern-c-abi/README.md195### Step 3: Validate with FileCheck (Optional)COMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md350### Step 1: Gather GPU informationCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md379### Step 2: Create the target configurationCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md404### Step 3: Create the `GPUInfo` aliasCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md422### Step 4: Update `_get_info_from_target`COMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md456### Step 5: Update `GPUInfo.target` methodCOMMENT
LOWMojo/docs/contributing/stdlib/adding-gpu-targets.md474### Step 6: Build and testCOMMENT
LOWMojo/docs/compiler/MojoCompilerWalkthrough.md519#### Step 1: Lowering PassesCOMMENT
LOWMojo/docs/compiler/MojoCompilerWalkthrough.md530#### Step 2: Optimization PassesCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp276 // Step 4: Compute the final LLVM-level attributes we expect on theCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp296 // Step 5: Lookup existing function (unified path - no early return!)COMMENT
12 more matches not shown…
Redundant / Tautological Comments75 hits · 112 pts
SeverityFileLineSnippetContext
LOWmax/kernels/benchmarks/autotune/kplot.py93 y_text: bool = True # Print value on top of the barCODE
LOW…ython/max/benchmark/benchmark_shared/datasets/types.py246 # Check if extension is supportedCOMMENT
LOWmax/python/max/nn/linear.py327 # Check if head boundaries align with block boundariesCOMMENT
LOWmax/python/max/nn/kernels.py11118 # Set min_top_p to the scalar value if provided, otherwise use top_pCOMMENT
LOWmax/python/max/nn/parallel/numpy_parallel_ops.py229 # Check if all arrays are contiguousCOMMENT
LOWmax/python/max/nn/layer/layer.py750 # Check if weight has symbolic dimensionsCOMMENT
LOWmax/python/max/nn/kv_cache/cache_params.py3744 # Check if we are allocating sufficient blocks.COMMENT
LOWmax/python/max/nn/hooks/base_print_hook.py132 # Print outputs.COMMENT
LOWmax/python/max/config/__init__.py75 # Check if the class has a custom enum mappingCOMMENT
LOWmax/python/max/config/__init__.py134 # Check if this is Optional[T] (Union[T, None])COMMENT
LOWmax/python/max/config/__init__.py219 # Check if this is Optional[T] (Union[T, None])COMMENT
LOWmax/python/max/config/__init__.py533 # Check if this looks like a full MAXConfig fileCOMMENT
LOWmax/python/max/config/__init__.py542 # Check if the top-level keys are mostly class fields (individual config)COMMENT
LOWmax/python/max/config/__init__.py652 # Check if the base class has a _get_enum_mapping methodCOMMENT
LOWmax/python/max/graph/weight.py465 # Check if this is a partial function wrapping head_aware_col_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py478 # Check if this is a partial function wrapping stacked_qkv_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py496 # Check if this is a partial function wrapping gate_up_sharding_strategy.COMMENT
LOWmax/python/max/graph/weights/load_gguf.py90 # Check if a weight existsSTRING
LOWmax/python/max/graph/ops/stack.py79 # Check if axis is within boundsCOMMENT
LOWmax/python/max/_interpreter_ops/handlers.py1181 # Check if it's an index/integer type by looking at the attributeCOMMENT
LOW…ax/pipelines/architectures/deepseekV4/encoding_dsv4.py379 # Check if previous message has a task - if so, this is a task output (no thinking)COMMENT
LOW…python/max/pipelines/architectures/deepseekV3/model.py127 # Check if EP should be configuredCOMMENT
LOWmax/python/max/pipelines/architectures/gpt_oss/model.py239 # Check if input_row_offsets is a list or a single tensorCOMMENT
LOW…hon/max/pipelines/architectures/qwen2_5vl/tokenizer.py109 # Check if spatial merging is possible earlyCOMMENT
LOW…rchitectures/autoencoders/autoencoder_kl_qwen_image.py738 # Check if this weight needs numpy transformationCOMMENT
LOW…x/python/max/pipelines/architectures/kimik2_5/model.py309 # Check if EP should be configuredCOMMENT
LOW…lines/modeling/dataprocessing/causal_attention_mask.py70 # Set diagonal to k + 1 so that tokens attend to themselves.COMMENT
LOW…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py164 # Set SO_REUSEADDR to avoid TIME_WAIT issuesCOMMENT
LOW…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py1097 # Check if the relevant transport env vars are set. You can get awayCOMMENT
LOW…on/max/pipelines/kv_cache/paged_kv_cache/block_pool.py101 # Check if a block with the same hash is already committed.COMMENT
LOW…pelines/kv_cache/paged_kv_cache/jenga_block_manager.py438 # Check if we have enough blocks available to satisfy the demand.COMMENT
LOWmax/python/max/pipelines/lib/registry.py802 # Check if there's a secondary tokenizer (tokenizer_2) in the manifestCOMMENT
LOWmax/python/max/pipelines/lib/config/config.py1458 # Check if the architecture is Llama3 (LlamaForCausalLM)COMMENT
LOWmax/python/max/pipelines/lib/config/model_config.py1431 # Check if file exists locally (direct, local repo, or cache).COMMENT
LOWmax/python/max/pipelines/lib/pipeline_variants/utils.py1180 # Check if any context has structured outputCOMMENT
LOWmax/python/max/serve/scheduler/lora_scheduler_utils.py57 # Check if (protected LoRAs + new LoRA) fits within capacity.COMMENT
LOWmax/python/max/serve/scheduler/decode_scheduler.py549 # Set dst_idx to -1 to denote pages which the decode already has dueCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1300 # Check if the request fits in memoryCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1349 # Check if it fits within the token budgetCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1398 # Check if it fits within the token budgetCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1921 # Set priority to the majority case, defaulting to TG if tiedCOMMENT
LOWmax/python/max/serve/pipelines/llm.py418 # Check if reasoning was disabled in the prompt. Use theCOMMENT
LOWmax/python/max/serve/pipelines/echo_gen.py191 # Check if we have more tokens to echo and haven't reached max lengthCOMMENT
LOW⚡max/python/max/serve/telemetry/common.py513 # Check if the logger name starts with any of the allowed component prefixesCOMMENT
LOWmax/python/max/serve/router/openai_routes.py3853 # Check if LoRA is enabledCOMMENT
LOWmax/python/max/serve/router/_image_resolution.py995 # Check if path is within allowed roots before touching the filesystem.COMMENT
LOWmax/python/max/serve/router/_image_resolution.py1028 # Read the file with its own local-file size limit.COMMENT
LOWmax/tests/integration/tools/debugging_utils.py486 # Check if we found the tensorsCOMMENT
LOWmax/tests/integration/graph/test_engine.py342 # Check if the outputs really alias.COMMENT
LOW…/architectures/deepseekV3_2/test_hadamard_transform.py35# Check if outputs are close with appropriate toleranceCOMMENT
LOW…ration/architectures/qwen2_5vl/test_image_processor.py211 # Check if the difference is systematicCOMMENT
LOW…ration/architectures/qwen2_5vl/test_image_processor.py219 # Check if it's a scaling issueCOMMENT
LOW…ion/architectures/qwen2_5vl/tests/test_patch_merger.py206 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…on/architectures/qwen2_5vl/tests/test_qwen_vl_utils.py379 # Check if both are numpy arrays or lists of PIL ImagesCOMMENT
LOW…s/integration/architectures/idefics3/test_connector.py291 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…on/architectures/idefics3/test_vision_encoder_layer.py296 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…/integration/architectures/idefics3/test_vision_mlp.py268 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…ration/architectures/idefics3/test_vision_attention.py241 # Check if outputs are close with appropriate toleranceCOMMENT
LOW…ests/integration/architectures/idefics3/torch_utils.py51 # Check if prompt already contains chat template tokensCOMMENT
LOW…egration/architectures/qwen3vl/test_image_processor.py198 # Check if the difference is systematicCOMMENT
15 more matches not shown…
Verbosity Indicators48 hits · 81 pts
SeverityFileLineSnippetContext
LOW⚡docs/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOW⚡docs/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOW⚡docs/code/develop/index/graph_simple.py35# Step 3: Execute with dataCOMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py170 # Step 1: QKV matmul.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py177 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…/max/pipelines/architectures/olmo3/layers/attention.py187 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py202 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py792 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py829 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py847 # Step 3: Process images with custom image processor (if any) and expand <|image_pad|> placeholders in textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py943 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py1003 # Step 5: Assemble the vision encoder's inputs, in PROMPT order.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py143 # Step 1: QKV matmul.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py150 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW⚡…lines/architectures/olmo2_modulev3/layers/attention.py159 # Step 3: Fused rope + split + KV store.COMMENT
LOW…lines/architectures/olmo2_modulev3/layers/attention.py174 # Step 5: Compute flash attentionCOMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py151 # Step 1: pack groups to nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py167 # Step 2: construct redundant experts within nodes.COMMENT
LOW⚡max/python/max/pipelines/lib/eplb_rebalance.py175 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py199 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py212 # Step 2: Apply manual overrides (highest priority)COMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1371 # Step 1: initial tool callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1390 # Step 2: provide tool result, ask follow-up that triggers another callCOMMENT
LOW…/accuracy/llm_fuzz/scenarios/tool_schema_validation.py1440 # Step 3: multi-tool conversationCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py537 # Step 1: Structured output requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py561 # Step 2: Tool calling requestCOMMENT
LOW⚡…/accuracy/llm_fuzz/scenarios/models/kimi_production.py576 # Step 3: Plain chat requestCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py707 # Step 6: Prepare inputs for the pipelineCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py767 # Step 8: Get the output for our requestCOMMENT
LOW⚡max/examples/diffusion/simple_offline_generation.py778 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py413 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py502 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py551 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py575 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py671 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py751 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp276 // Step 4: Compute the final LLVM-level attributes we expect on theCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp296 // Step 5: Lookup existing function (unified path - no early return!)COMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp316 // Step 6: Create function if needed (only branch on creation)COMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp344 // Step 7: Create callCOMMENT
LOWMojo/lib/KGENToLLVM/LowerPOPToLLVMExternalCalls.cpp356 // Step 8: Handle return valueCOMMENT
LOWMojo/lib/KGENToLLVM/LowerKGENToLLVMRewriteCABIFns.cpp206 // Step 1: Coerce arguments — replace original block args with C ABI argsCOMMENT
LOWMojo/lib/MojoParser/ParserStmts.cpp2968 // If we see a 'try' block in a context that cannot raise, we need to check ifCOMMENT
LOWMojo/lib/MojoParser/ClosureEmitter.cpp984 // Step 1: prepend a new origin slot for self and collect origin decls.COMMENT
LOW⚡Mojo/lib/MojoParser/ClosureEmitter.cpp996 // Step 2: prepend explicit params for each captured parameter.COMMENT
LOW⚡Mojo/lib/MojoParser/ClosureEmitter.cpp1006 // Step 3: prepend the self runtime argument so it becomes arg[0].COMMENT
LOWMojo/lib/MojoParser/ClosureEmitter.cpp1019 // Step 4: resolve depth-local index refs to named param/origin references.COMMENT
Modern AI Meta-Vocabulary25 hits · 78 pts
SeverityFileLineSnippetContext
MEDIUM…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py15# Mimics bench.py scaffolding; uses naive float64 reference for correctness.COMMENT
MEDIUM…ython/max/benchmark/benchmark_shared/datasets/types.py79 # Usually list[TextContentBlock], but not guaranteed: agentic-code passesCOMMENT
MEDIUMmax/python/max/graph/graph.py793 # ``device_chains[DeviceRef.CPU()]`` is the host orchestration chain (theCOMMENT
MEDIUMmax/python/max/pipelines/architectures/laguna/arch.py51 # scaffolding in ``model.py`` is in place but not yet validated.COMMENT
MEDIUM…on/max/pipelines/architectures/flux2/flux2_executor.py693 # -- Denoising loop orchestration -----------------------------------------COMMENT
MEDIUM…elines/architectures/qwen3_embedding_modulev3/model.py116 # Remove lm_head weights — embedding model doesn't use themCOMMENT
MEDIUMmax/python/max/serve/telemetry/common.py232# covers slow ops (request time, model load, compile) and long agentic requests.COMMENT
MEDIUMmax/python/max/serve/router/openresponses_routes.py82 # Request is already parsed and validated via dependency injectionCOMMENT
MEDIUMmax/python/max/serve/router/openai_routes.py1820 # so replayed chain-of-thought is not silently dropped before theCOMMENT
MEDIUM…tion_pipeline/test_overlap_text_generation_pipeline.py396 # Worst-case boundary request: committed tokens fill the context window andCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py276 # not here: when a reasoning parser is active, chain-of-thought is split outCOMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py443 # The server's reasoning parser (if any) already removed chain-of-thoughtCOMMENT
MEDIUMmax/tests/integration/accuracy/run_longbench_v2.py121 # Truncate prompt to fit context windowCOMMENT
MEDIUM…sts/integration/accuracy/model_evals/run_text_evals.sh14# Runs all five non-agentic text evals in sequence against a running server.COMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh15# tau2-bench airline — the agentic tool-calling half of OpenRouter's AutoExactoCOMMENT
MEDIUM⚡…tion/accuracy/model_evals/run_exacto_taubench_local.sh18# This is the half of the gate we had no coverage for: the suite's other agenticCOMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz/client.py74 # derives it from the model's context window).COMMENT
MEDIUMmax/tests/integration/accuracy/llm_fuzz/README.md170# Default: 8 short conversations plus 2 at half the context window,COMMENT
MEDIUM…ation/accuracy/llm_fuzz/scenarios/kv_cache_pressure.py119 # Probe near the model's context window boundary.COMMENT
MEDIUM…ntegration/accuracy/llm_fuzz/scenarios/tool_calling.py936 # multi-step agentic prompt encourages several tool calls; theCOMMENT
MEDIUM…gration/accuracy/llm_fuzz/scenarios/models/kimi_3am.py152 # 8K char tool result in history -- common in RAG pipelinesCOMMENT
MEDIUM⚡max/tests/tests/benchmark/test_benchmark_config.py488# --agentic-tool-profiles validationCOMMENT
MEDIUMmax/tests/tests/benchmark/test_benchmark_datasets.py1519 # at run time, like agentic-code / instruct-coder).COMMENT
MEDIUMmax/examples/embedding-knowledge-base/README.md1# Knowledge base with a text embedding modelCOMMENT
MEDIUM…/stdlib/scripts/unicode-data/GraphemeBreakProperty.txt1200B77D..B797 ; LVT # Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAHCODE
Cross-Language Confusion (JS/TS)13 hits · 62 pts
SeverityFileLineSnippetContext
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts26 print(other)CODE
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts613 print("string")CODE
HIGHMojo/test/mojo-lsp-server-node/src/hover.spec.ts614 print(arg)CODE
HIGHMojo/test/mojo-lsp-server-node/src/completion.spec.ts349 elif arg.value:`CODE
HIGHMojo/test/mojo-lsp-server-node/src/codeAction.spec.ts22 print(repr(b))CODE
HIGHMojo/test/mojo-lsp-server-node/src/definitions.spec.ts33 print(y)CODE
HIGHMojo/test/mojo-lsp-server-node/src/definitions.spec.ts69 print(arg)CODE
HIGHMojo/test/mojo-lsp-server-node/src/references.spec.ts24 print(foo)CODE
HIGHMojo/test/mojo-lsp-server-node/src/references.spec.ts25 print("foo")CODE
HIGHMojo/test/mojo-lsp-server-node/src/regression.spec.ts20 print("hi")STRING
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts21 print(someVar)CODE
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts120 print(1 + 2)CODE
HIGHMojo/test/mojo-lsp-server-node/src/rename.spec.ts153 print(1 + 2)CODE
Example Usage Blocks17 hits · 27 pts
SeverityFileLineSnippetContext
LOW…rnels/benchmarks/misc/utils/cutlass_profiler_parser.py18# Usage:COMMENT
LOW…enchmarks/misc/utils/bench_vllm_flashinfer_decoding.py17# Usage:COMMENT
LOW…nchmarks/misc/utils/bench_vllm_flashinfer_attention.py17# Usage:COMMENT
LOW…s/misc/comparison/bench_mla_decode_sm100_kimi_fp8.yaml21# Usage:COMMENT
LOW…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py18# Usage example:COMMENT
LOW…c/comparison/bench_mla_decode_sm100_deepseek_bf16.yaml21# Usage:COMMENT
LOW…/misc/comparison/bench_mla_decode_sm100_kimi_bf16.yaml21# Usage:COMMENT
LOW…sc/comparison/bench_mla_decode_sm100_deepseek_fp8.yaml21# Usage:COMMENT
LOW…kernels/benchmarks/gpu/nn/bench_fp8_index_prefill.yaml18# Usage:COMMENT
LOW…s/benchmarks/gpu/nn/bench_mla_sparse_prefill_tune.yaml18# Usage:COMMENT
LOW…els/benchmarks/gpu/nn/bench_mla_decode_sparse_fp8.yaml17# Usage:COMMENT
LOW…benchmark/configs/serving_flux2_t2i_random_config.yaml15# Usage:COMMENT
LOW⚡…gration/accuracy/model_evals/run_omnidocbench_local.sh28# Usage:COMMENT
LOW…tion/accuracy/model_evals/run_exacto_taubench_local.sh56# Usage:COMMENT
LOW⚡…egration/accuracy/model_evals/run_exacto_gpqa_local.sh54# Usage:COMMENT
LOW…s/embedding-knowledge-base/src/embeddings/kb_system.py134# Example usageCOMMENT
LOWSupport/include/Support/ADT/ConcurrentAppendingVector.h44/// Example usage:COMMENT
Fake / Example Data18 hits · 20 pts
SeverityFileLineSnippetContext
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1765 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * (CODE
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1765 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * (CODE
LOW…scenarios/validation/basic_reasoning_and_tool_usage.py150 "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOW…scenarios/validation/basic_reasoning_and_tool_usage.py150 "lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "CODE
LOWmax/tests/tests/graph/ops/test_call.py241 "placeholder",CODE
LOW…thon-extension-modules/feature-overview/test_module.py78 person.change_name("John Doe")CODE
LOW…thon-extension-modules/feature-overview/test_module.py79 assert person.name() == "John Doe"CODE
LOW…est/python-extension-modules/def-method/test_module.py41 same_person = person._with("Jane Doe", 25)CODE
LOW…est/python-extension-modules/def-method/test_module.py42 assert person.get_name() == "Jane Doe"CODE
LOW…est/python-extension-modules/def-method/test_module.py59 assert person.get_name() == "Jane Doe"CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py85 person.set_name_and_age("John Doe", 25)CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py86 assert person.get_name() == "John Doe"CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py96 person.set_name_and_age("John Doe", 25)CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py105 person.set_name("John Doe")CODE
LOW⚡…est/python-extension-modules/def-method/test_module.py106 assert person.get_name() == "John Doe"CODE
LOWMojo/docs/site/releases/2022-11.md40 a new "placeholder" attribute. This allows us to expose the power of the KGENCODE
LOWMojo/stdlib/test/builtin/test_file_dummy_input.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
LOWMojo/stdlib/test/builtin/test_file_dummy_input.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit.CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdocs/max/nightly-changelog.md178 `max.experimental.nn.common_layers.functional_kernels.local_map()` isCODE
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMmax/python/max/serve/router/openai_routes.py205CODE
MEDIUMmax/tests/tests/serve/test_start_stream.py76CODE
MEDIUMmax/tests/tests/serve/test_openresponses_routes.py480CODE
MEDIUMmax/tests/tests/serve/test_completions_stream_errors.py116CODE
MEDIUMmax/tests/tests/serve/test_completions_stream_errors.py133CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHMojo/include/Mojo/Compiler/Target/TargetBackend.h227 /// host policy (AddressSanitizer and ThreadSanitizer as requested inCOMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmax/tests/integration/accuracy/verify_pipelines.py290 # Even if verdicts is empty, we want to make sure to call write. When weCOMMENT
LOWMojo/lib/MojoJupyter/enable_matplotlib.py81 # end of our display data. We also make sure to flush the output streamCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWmax/python/max/serve/process_control.py251 async def run_task() -> None:CODE
LOWmax/tests/integration/test_common/registry.py34 def test_function(manage_production_models):STRING
LOWMojo/stdlib/test/python/my_module.py31def my_function(name) -> str: # noqa: ANN001CODE