Repository Analysis

modular/modular

The Modular Platform (includes MAX & Mojo)

26.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of modular/modular, a Mojo project with 26,640 GitHub stars. SynthScan v2.0 examined 952,074 lines of code across 3618 source files, recording 18025 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 26.3 places this repository in the Moderate AI signal band.

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

26.3
Adjusted Score
26.3
Raw Score
100%
Time Factor
2026-08-01
Last Push
26.6K
Stars
Mojo
Language
952.1K
Lines of Code
3.6K
Files
18.0K
Pattern Hits
2026-08-02
Scan Date
0.27
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 2HIGH 971MEDIUM 1872LOW 15180

Directory Score Breakdown

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

Pattern Findings

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

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers6825 hits · 6486 pts
SeverityFileLineSnippetContext
LOWdocs/write-nightly-release.py66def _default_nightly_changelog_path() -> Path:CODE
LOWdocs/generate-models-table.py178def _resolve_module_level_collections(CODE
LOWdocs/generate-models-table.py200def _resolve_class_collections(CODE
LOWdocs/code/develop/layer-comparison/layer_comparison.py171def capture_reference_tensors(CODE
LOWmax/kernels/benchmarks/misc/utils/bench.py276def bench_kineto_with_cupti_warmup(CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py68def _make_dispatch_quant_config(dispatch_dtype: DType) -> QuantConfig | None:CODE
LOW…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py93def generate_contiguous_inputs(CODE
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py45def _matching_torchvision_version() -> str:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py132def 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.py129def _init_sglang_parallel_state() -> None:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py889def _build_mla_persistent_metadata(CODE
LOWmax/kernels/benchmarks/autotune/kdiff.py71def check_argo_workflow_exists(git_sha): # noqa: ANN001, ANN201CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1547 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.py197def get_target_accelerator_helpstr() -> str:CODE
LOWmax/kernels/benchmarks/autotune/utils.py205def 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
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py516def test_get_gpu_count_nvidia_no_smi(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py522def test_get_gpu_count_unknown_accelerator() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py528def test_get_gpu_count_nvidia_smi_failure(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py571def test_get_gpu_count_amd_no_smi(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py577def test_get_gpu_count_amd_smi_failure(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py587def test_cli_rejects_num_gpu_exceeding_available(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py84def test_check_valid_target_accelerator() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py286def test_scheduler_init_validates_num_gpu(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py317def test_scheduler_get_chunksize(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py338def test_scheduler_kbench_mkdir_creates_directory(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py356def test_scheduler_kbench_mkdir_run_only_requires_existing(CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py373def test_kbench_cache_basic_operations(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py404def test_param_define_regular() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py413def test_param_define_variable() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py478def test_get_gpu_count_nvidia_basic(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py490def test_get_gpu_count_nvidia_capped_by_env(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py505def test_get_gpu_count_nvidia_env_fewer_than_hw(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py548def test_get_gpu_count_amd_basic(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py560def test_get_gpu_count_amd_capped_by_env(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py609def test_cli_accepts_num_gpu_within_available(mocker: MockerFixture) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py651def _make_minimal_spec_instance() -> SpecInstance:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py709def test_build_shared_lib_minimal(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py720def test_shared_lib_dlopen_resolves_sanitizer_runtime(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py755def test_shared_lib_dlopen_resolves_sanitizer_runtime_minimal(CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py850def test_scheduler_output_dir_list_per_item(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py881def test_scheduler_output_dir_list_none_fallback(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py941def test_item_pool_work_stealing() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py969def test_group_by_binary_hash() -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py993def test_shared_lib_timeout_recovery(tmp_path: Path) -> None:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py1039def test_shared_lib_crash_recovery(tmp_path: Path) -> None:CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py26def test_render_snippet_formats_mojo_values() -> None:CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py37def test_render_snippet_rejects_missing_parameters() -> None:CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py42def test_load_manifest_preserves_order_and_rejects_duplicates(CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py71def test_replace_generated_region_requires_unique_markers() -> None:CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py92def test_render_region_selects_entry_template() -> None:CODE
LOW…rnels/benchmarks/autotune/tests/test_tuning_codegen.py119def test_generate_target_renders_manifest_entries(tmp_path: Path) -> None:CODE
LOWmax/python/max/_mlir_context.py44def call_with_default_mlir_context(CODE
LOWmax/python/max/_mlir_context.py55def ensure_default_mlir_context() -> Generator[None]:CODE
LOW…/max/benchmark/sweep_benchmark_serving_result_utils.py58def validate_sweep_serving_percentiles(percentiles: list[int]) -> None:CODE
LOWmax/python/max/benchmark/benchmark_serving.py866def validate_task_and_endpoint(CODE
6765 more matches not shown…
Decorative Section Separators1546 hits · 5092 pts
SeverityFileLineSnippetContext
MEDIUMdocs/generate-arch-docs.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py229# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py231# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py361# ---------------------------------------------------------------------------COMMENT
MEDIUMdocs/generate-arch-docs.py363# ---------------------------------------------------------------------------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
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml33# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml35# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml56# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml58# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml79# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.yaml81# ---------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py84# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py86# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py188# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py190# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py308# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py310# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py391# ----------------------------------------------------------------------------COMMENT
MEDIUM…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py393# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py251# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py253# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py830# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py832# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1497# ----------------------------------------------------------------------------COMMENT
MEDIUMmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1499# ----------------------------------------------------------------------------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/benchmark/benchmark_shared/metrics.py1092# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py1094# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py261# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py265# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/model_csv.py331# ---------------------------------------------------------------------------COMMENT
1486 more matches not shown…
Over-Commented Block3324 hits · 3254 pts
SeverityFileLineSnippetContext
LOW.pre-commit-config.yaml1##===----------------------------------------------------------------------===##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/update-github-links.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/generate-arch-docs.py1#!/usr/bin/env python3COMMENT
LOWdocs/generate-models-table.py1#!/usr/bin/env python3COMMENT
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
LOWdocs/code/develop/dtypes/dtype_properties.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/dtype_intro.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/pytorch_to_max.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/specify_dtype.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/check_dtype.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/validate_dtypes.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/calculate_memory.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/dlpack_conversion.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/dtypes/cast_dtype.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/graph_simple.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/when_to_use_eager.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/eager_simple.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/functional_api.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/arithmetic_ops.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/index/eager_workflow.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/indexing/gather.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/indexing/where.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/indexing/scatter.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_transpose.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/arithmetic.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/compose_linear_layer.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/random_basic.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/concat.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_permute.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_reductions.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/functional_activations.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_reshape.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_transpose_t.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_matmul.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/basic-ops/tensor_math_ops.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWdocs/code/develop/layer-comparison/layer_comparison.py1# ===----------------------------------------------------------------------=== #COMMENT
LOWmax/kernels/test/gpu/fuzz/run_nightly_fuzz.sh1#!/usr/bin/env bashCOMMENT
LOWmax/kernels/test/gpu/fuzz/run_nightly_fuzz.sh21# target list (used when no explicit <target> is given):COMMENT
LOWmax/kernels/test/gpu/fuzz/run_nightly_fuzz.sh41# FUZZ_RESULTS_DIR where to collect the corpus + JSONL run logs for uploadCOMMENT
LOWmax/kernels/test/gpu/fuzz/fuzz.py1#!/usr/bin/env python3COMMENT
3264 more matches not shown…
Unused Imports3428 hits · 3082 pts
SeverityFileLineSnippetContext
LOWdocs/code/develop/logit-comparison/logit_comparison.py15CODE
LOWdocs/code/develop/layer-comparison/layer_comparison.py15CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py40CODE
LOW…ernels/benchmarks/misc/comparison/bench_ep_baseline.py30CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py21CODE
LOW…c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py27CODE
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.py34CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py17CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py32CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_softmax.py17CODE
LOW…/misc/comparison/bench_blackwell_mla_prefill_sparse.py26CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py18CODE
LOW…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py33CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py22CODE
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/_interpreter.py31CODE
LOWmax/python/max/_mlir_context.py14CODE
LOW…/max/benchmark/sweep_benchmark_serving_result_utils.py23CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py24CODE
LOWmax/python/max/benchmark/serve_replay.py14CODE
LOWmax/python/max/benchmark/benchmark_serving.py16CODE
LOWmax/python/max/benchmark/results_to_csv.py62CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py26CODE
LOW…/python/max/benchmark/benchmark_shared/steady_state.py27CODE
LOWmax/python/max/benchmark/benchmark_shared/config.py16CODE
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.py17CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py16CODE
LOWmax/python/max/benchmark/benchmark_shared/sse.py19CODE
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.py45CODE
LOW…n/max/benchmark/benchmark_shared/percentile_metrics.py30CODE
LOW…benchmark/benchmark_shared/datasets/_tokenizer_pool.py28CODE
LOW…on/max/benchmark/benchmark_shared/datasets/sharegpt.py14CODE
LOW…hon/max/benchmark/benchmark_shared/datasets/axolotl.py14CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py14CODE
LOW…enchmark_shared/datasets/multiturn_distribution_fit.py21CODE
LOW…/benchmark_shared/datasets/obfuscated_conversations.py14CODE
LOW…enchmark/benchmark_shared/datasets/pixel_image_edit.py14CODE
LOW…on/max/benchmark/benchmark_shared/datasets/registry.py14CODE
LOW…ython/max/benchmark/benchmark_shared/datasets/local.py14CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py14CODE
LOW…n/max/benchmark/benchmark_shared/datasets/interface.py14CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py14CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py15CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py16CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py17CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py18CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py19CODE
3368 more matches not shown…
Cross-File Repetition516 hits · 2580 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
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 (e.STRING
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 (e.STRING
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 (e.STRING
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
HIGHmax/python/max/pipelines/lib/pipeline_runtime_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/lib/config/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/lib/config/model_config.py0the section name to use when loading this config from a maxconfig file. this is used to differentiate between different STRING
456 more matches not shown…
Docstring Block Structure381 hits · 1768 pts
SeverityFileLineSnippetContext
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/_interpreter.py160Execute an MO graph and return output buffers. Args: graph: The finalized MO graph to execute. inpuSTRING
HIGHmax/python/max/benchmark/benchmark_serving.py170Parse response format from CLI arg (inline JSON or @filepath). Args: arg: Either a JSON string or '@path/toSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py102Get a histogram by name and optional labels. Args: metric_name: Base metric name (e.g., "maxserve_bSTRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py148Get 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.py177Fetch raw metrics text from a Prometheus endpoint. Args: url: Prometheus metrics endpoint URL Returns:STRING
HIGH…ython/max/benchmark/benchmark_shared/server_metrics.py304Fetch 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.py405Loads 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.py460Chooses 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.py614Reads result JSON ``inputs`` and writes a CSV with selected columns. Args: inputs: The result JSTRING
HIGHmax/python/max/benchmark/benchmark_shared/model_csv.py853Applies 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.py223Sample requests from the dataset. This is the standardized interface that all dataset implementations must follSTRING
HIGH…ython/max/benchmark/benchmark_shared/datasets/types.py203 Read an image file as raw bytes and encode in base64 without any transformations. Preserves the exact original STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py68Parse a distribution parameter into a concrete distribution instance. Args: param: An int or float,STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py174Parse a string like "N(mean, std)" into a NormalDistribution. Args: schema: A string in the format STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py220Parse a string like "U(lower, upper)" into a UniformDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py265Parse a string like "G(shape, scale)" into a GammaDistribution. Args: schema: A string in the formaSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py315Parse a string like "LN(mean, std)" into a LogNormalDistribution. Args: schema: A string in the forSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py379Parse a string like "Burr12(c, d, scale)" into a Burr12Distribution. Args: schema: A string in the STRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py436Parse a string like "DU(lower, upper)" into a DiscreteUniformDistribution. Args: schema: A string iSTRING
HIGH…ax/benchmark/benchmark_shared/datasets/distribution.py494Parse a string like "NB(n, p)" into a NegativeBinomialDistribution. Args: schema: A string in the fSTRING
HIGHmax/python/max/experimental/realization_context.py348Adds a realized tensor as an input source to the computation graph. Registers a realized tensor as a graph inpuSTRING
HIGHmax/python/max/experimental/random.py65Creates a tensor filled with random values from a uniform distribution. Generates a tensor with values uniformly diSTRING
HIGHmax/python/max/experimental/random.py115Creates a tensor filled with random values from a Gaussian (normal) distribution. Generates a tensor with values saSTRING
HIGHmax/python/max/experimental/tensor.py790Materializes a dimension as a rank-0 (scalar) tensor on CPU. Converts a shape dimension — static, symbolic, or STRING
HIGHmax/python/max/experimental/tensor.py867Creates a tensor from one or more per-shard graph values. For a single shard value with no mapping, behaves likSTRING
HIGHmax/python/max/experimental/tensor.py1071Creates a constant tensor from a Python literal or array-like value. .. deprecated:: 26.2 Use ``TenSTRING
HIGHmax/python/max/experimental/tensor.py1345Creates a tensor with evenly spaced values within a given interval. Returns a new 1-D tensor containing a sequeSTRING
HIGHmax/python/max/experimental/tensor.py1909Returns 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.py1949Computes the maximum along a specified axis. .. code-block:: python from max.experimental import tSTRING
HIGHmax/python/max/experimental/tensor.py1989Computes the minimum along a specified axis. .. code-block:: python from max.experimental import tSTRING
HIGHmax/python/max/experimental/tensor.py2029Computes the mean along a specified axis. .. code-block:: python from max.experimental import tensSTRING
HIGHmax/python/max/experimental/tensor.py2069Computes the sum along a specified axis. .. code-block:: python from max.experimental import tensoSTRING
HIGHmax/python/max/experimental/tensor.py2109Computes the product along a specified axis. Args: axis: The axis along which to compute the producSTRING
HIGHmax/python/max/experimental/tensor.py2168Removes a dimension of size ``1`` from the tensor. This is useful for removing singleton dimensions from tensorSTRING
HIGHmax/python/max/experimental/tensor.py2200Inserts a dimension of size ``1`` into the tensor. This is the inverse of :meth:`squeeze` and is useful for addSTRING
HIGHmax/python/max/experimental/tensor.py2237Splits the tensor into multiple tensors along a given dimension. This method supports two modes, matching PyTorSTRING
HIGHmax/python/max/experimental/tensor.py2278Reshapes the tensor. If a value of ``-1`` is present in ``shape``, that dimension becomes an automaticaSTRING
HIGHmax/python/max/experimental/tensor.py2377Permutes all dimensions of the tensor. This is useful for changing the layout of multi-dimensional data, such STRING
HIGHmax/python/max/experimental/tensor.py2415Transposes two axes of the tensor. .. code-block:: python from max.dtype import DType STRING
HIGHmax/python/max/experimental/executor.py64Execute *graph* with *inputs* and return output buffers. Args: graph: A finalized graph ready for eSTRING
HIGHmax/python/max/experimental/nn/module.py376Defines the computation performed by the module. Users must override this method in their subclass to define thSTRING
HIGHmax/python/max/experimental/nn/module.py1098Compiles the module to an optimized executable through graph tracing. This method performs symbolic tracing of STRING
HIGHmax/python/max/experimental/nn/module.py1350Marks a :class:`Module` to call to a subgraph. Use this to speed up graph build and compilation time. When a nSTRING
HIGHmax/python/max/experimental/nn/_compile_utils.py599Validates and prepares a weight for a parameter. Handles conversion and validation of the weight. Does not handle dSTRING
HIGHmax/python/max/experimental/nn/_compile_utils.py693Prepares the weight registry given input weights and module parameters. Args: weights: User-provided weightSTRING
HIGHmax/python/max/experimental/nn/norm/group_norm.py124Returns ``x`` normalized within each channel group. Args: x: The input tensor of shape ``(batch, chSTRING
HIGHmax/python/max/experimental/torch/torch.py82Converts a MAX DType to the corresponding torch dtype. Args: dtype: The MAX DType to convert. Returns:STRING
HIGHmax/python/max/experimental/torch/torch.py99Converts a torch dtype to the corresponding MAX DType. Args: dtype: The torch dtype to convert. ReturnSTRING
HIGHmax/python/max/experimental/sharding/mesh.py90Returns *device_idx*'s coordinate along the given mesh axis. For a mesh shaped ``(2, 3)`` with row-major deviceSTRING
HIGH…python/max/experimental/cascade/grpc_runtime/client.py197Fetch and decode a single result from the remote server by id. Returns raw JSON-like data (:py:data:`CascadeValSTRING
HIGH…python/max/experimental/cascade/grpc_runtime/client.py236Stream items from a bound server-side iterator, decoded one by one. Yields raw JSON-like data (:py:data:`CascadSTRING
HIGHmax/python/max/experimental/functional/creation_ops.py538Computes a Hann window of a given length. For a symmetric window of ``N`` points with ``N > 1``, the value at indexSTRING
HIGHmax/python/max/experimental/functional/creation_ops.py608Creates a sequence of evenly spaced values from ``start`` to ``stop``. The sequence begins at ``start`` and incremeSTRING
HIGHmax/python/max/experimental/functional/creation_ops.py681Creates a constant tensor from a Python literal or array-like value. For an array-like ``value``, the array's own dSTRING
HIGHmax/python/max/experimental/functional/__init__.py402Calls a custom op, optionally loading custom Mojo extensions first. Args: name: The registered name of the STRING
HIGHmax/python/max/experimental/functional/__init__.py439Calls an in-place custom op that mutates one or more of its inputs. Like :func:`custom`, but for ops that mutate buSTRING
321 more matches not shown…
Self-Referential Comments247 hits · 615 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.py236 # Create a dictionary of dataframes, one for each groupCOMMENT
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py194 # 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.py174 # Create a new interpreter slots dictionary for this execution.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_serving.py410 # Create a request driver instance without pbar for test promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py71 # Create a summarization promptCOMMENT
MEDIUM…hmark/benchmark_shared/datasets/arxiv_summarization.py108 # Create the full promptCOMMENT
MEDIUMmax/python/max/experimental/tensor.py1704 # Create a BufferValue and assign the current value to itCOMMENT
MEDIUMmax/python/max/experimental/tensor.py1362 # Create a range from 0 to 10 (exclusive)STRING
MEDIUMmax/python/max/experimental/tensor.py1366 # Create a range from 5 to 15 with step 2STRING
MEDIUMmax/python/max/experimental/tensor.py1374 # Create a range with a floating-point stepSTRING
MEDIUMmax/python/max/experimental/tensor.py1378 # Create a descending range with negative stepSTRING
MEDIUMmax/python/max/experimental/tensor.py918 # Create a NumPy arraySTRING
MEDIUMmax/python/max/experimental/tensor.py1132 # Create a 3x3 tensor filled with 7STRING
MEDIUMmax/python/max/experimental/tensor.py1135 # Create a 2x4 tensor filled with piSTRING
MEDIUMmax/python/max/experimental/tensor.py1168 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1209 # Create a 2x3 tensor of zerosSTRING
MEDIUMmax/python/max/experimental/tensor.py1214 # Create a 1D tensor using default dtype and deviceSTRING
MEDIUMmax/python/max/experimental/tensor.py1244 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1283 # Create a 2x3 tensor of onesSTRING
MEDIUMmax/python/max/experimental/tensor.py1312 # Create a reference tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1436 # Create a reference tensor type with shape (2, 4)STRING
MEDIUMmax/python/max/experimental/tensor.py1841 # Create a tensor on CPUSTRING
MEDIUMmax/python/max/experimental/tensor.py1955 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py1995 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2035 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2075 # Create a 2x3 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2139 # Create a 2x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2250 # Create a 10x4 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2356 # Create a float32 tensorSTRING
MEDIUMmax/python/max/experimental/tensor.py2459 # Create a 2x3 matrixSTRING
MEDIUMmax/python/max/nn/attention/multihead_attention.py164 # Create a module instance for this deviceCOMMENT
MEDIUMmax/python/max/nn/moe/quant_strategy.py307 # 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.py749 # Create an always-ready chain that is never advanced by the graph.COMMENT
MEDIUMmax/python/max/graph/type.py137 # Create a GPU device reference (default id=0)STRING
MEDIUMmax/python/max/graph/type.py140 # Create a CPU device with specific idSTRING
MEDIUMmax/python/max/graph/type.py388 # Create a tensor type with float32 elements and static dimensions 2x3STRING
MEDIUMmax/python/max/graph/type.py556 # Create an opaque type with parametersSTRING
MEDIUMmax/python/max/graph/value.py377 # Create a sample matrixSTRING
MEDIUMmax/python/max/graph/value.py380 # Create a Graph context to work with tensorsSTRING
MEDIUMmax/python/max/graph/value.py382 # Create a constant tensor from the matrixSTRING
MEDIUMmax/python/max/graph/value.py487 # Create a 2x2 matrixSTRING
MEDIUMmax/python/max/graph/value.py490 # Create a Graph context to work with tensorsSTRING
MEDIUMmax/python/max/graph/value.py492 # Create a constant tensor from the matrixSTRING
MEDIUMmax/python/max/graph/value.py517 # Create a matrix with float32 valuesSTRING
MEDIUMmax/python/max/graph/value.py520 # Create a Graph context to work with tensorsSTRING
MEDIUMmax/python/max/graph/value.py522 # Create a constant tensor from the matrixSTRING
187 more matches not shown…
Excessive Try-Catch Wrapping443 hits · 437 pts
SeverityFileLineSnippetContext
MEDIUMdocs/update-github-links.py62 print(f"Error: '{docs_dir}' is not a valid directory")CODE
MEDIUM…s/benchmarks/misc/comparison/bench_blackwell_decode.py54 print(f"Error: flashinfer not available: {e}")CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py499 except Exception as e:CODE
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py517 except Exception as e:CODE
LOW…c/comparison/bench_blackwell_mla_prefill_sparse_fp8.py373 except Exception as e:CODE
MEDIUM…nchmarks/misc/comparison/bench_blackwell_mla_decode.py120 print(f"Error: flashinfer not available: {e}")CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1038 except Exception as e:CODE
LOW…nchmarks/misc/comparison/bench_blackwell_mla_decode.py1059 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py170 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py194 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.py149 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py197 except Exception:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py227 except Exception as e:CODE
LOW…benchmarks/misc/comparison/bench_allreduce_subgraph.py268 except Exception as e:CODE
MEDIUM…benchmarks/misc/comparison/bench_allreduce_subgraph.py356 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.py346 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mha.py501 except Exception as e:CODE
LOW…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py281 except Exception as e:CODE
LOW…els/benchmarks/misc/comparison/bench_amd_mxfp4_gemm.py422 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py824 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1265 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1466 except Exception as e:CODE
LOWmax/kernels/benchmarks/misc/comparison/bench_amd_mla.py1536 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.py158 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py167 except Exception as exc:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py257 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py625 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1163 except Exception as e:CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1197 except Exception:CODE
LOWmax/kernels/benchmarks/autotune/tests/test_kbench.py105 except Exception:CODE
LOWmax/python/max/_interpreter.py46except Exception as _e:CODE
LOWmax/python/max/_interpreter.py73 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.py526 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_serving.py568 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_serving.py795 except Exception as e:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py462 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py644 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py730 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1032 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1124 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1347 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1457 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1568 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1658 except Exception:CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1696 except Exception:CODE
383 more matches not shown…
Deep Nesting479 hits · 428 pts
SeverityFileLineSnippetContext
LOWdocs/write-nightly-release.py29CODE
LOWdocs/generate-arch-docs.py111CODE
LOWdocs/generate-arch-docs.py245CODE
LOWdocs/generate-models-table.py200CODE
LOWdocs/generate-models-table.py257CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py845CODE
LOWmax/kernels/test/gpu/fuzz/fuzz.py1050CODE
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
LOWmax/kernels/benchmarks/misc/comparison/sweep_decode.py51CODE
LOW…/benchmarks/misc/comparison/bench_blackwell_prefill.py452CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1285CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py684CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py734CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py855CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1547CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1780CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1941CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py1974CODE
LOWmax/kernels/benchmarks/autotune/kbench_model.py2032CODE
LOWmax/kernels/benchmarks/autotune/tuning_codegen.py95CODE
LOWmax/kernels/benchmarks/autotune/kplot.py111CODE
LOWmax/kernels/benchmarks/autotune/kprofile.py751CODE
LOWmax/python/docs/check_api_coverage.py90CODE
LOWmax/python/docs/check_api_coverage.py216CODE
LOWmax/python/docs/check_api_coverage.py408CODE
LOWmax/python/max/_interpreter.py205CODE
LOWmax/python/max/benchmark/sweep_benchmark_serving.py109CODE
LOWmax/python/max/benchmark/serve_replay.py60CODE
LOWmax/python/max/benchmark/benchmark_serving.py320CODE
LOWmax/python/max/benchmark/benchmark_serving.py936CODE
LOWmax/python/max/benchmark/benchmark_serving.py1347CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py64CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py691CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py1190CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py428CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py153CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py541CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py399CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py1243CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py237CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py430CODE
LOWmax/python/max/benchmark/benchmark_shared/sse.py82CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py245CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py88CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py789CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py646CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py558CODE
LOW…/python/max/benchmark/benchmark_shared/datasets/all.py110CODE
LOW…ax/benchmark/benchmark_shared/datasets/distribution.py65CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py113CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py195CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py240CODE
LOW…n/max/benchmark/benchmark_shared/datasets/batch_job.py179CODE
LOWmax/python/max/experimental/tensor.py148CODE
LOWmax/python/max/experimental/nn/module.py951CODE
LOWmax/python/max/experimental/nn/_compile_utils.py687CODE
LOWmax/python/max/experimental/nn/_compile_utils.py736CODE
419 more matches not shown…
Cross-Language Confusion74 hits · 364 pts
SeverityFileLineSnippetContext
HIGHmax/kernels/benchmarks/autotune/kdiff.py51 export KUBECONFIG=/dev/null ; # recommendedSTRING
HIGHmax/python/max/nn/kv_cache/cache_params.py778 """Type of KV cache connector to use (null, local, tiered, dkv)."""STRING
HIGH…/architectures/deepseekV3_modulev3/layers/quant_mla.py250 """Fused ``q_a_proj || kv_a_proj_with_mqa`` (bf16 or FP8)."""STRING
HIGHmax/python/max/pipelines/lib/embeddings_pipeline.py144 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/worker_interface/zmq_interface.py306 response_queue=self.response_queue_config.push(),CODE
HIGHmax/python/max/serve/worker_interface/_zmq_queue.py268 return self.push(), self.pull()CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py301 ([DeviceSpec.cpu()], KVConnectorType.null, 0),CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py302 ([DeviceSpec.accelerator(id=0)], KVConnectorType.null, 0),CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py306 KVConnectorType.null,CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py311 KVConnectorType.null,CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py316 KVConnectorType.null,CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py367 (1, KVConnectorType.null, 1),CODE
HIGH…ests/integration/unorganized/test_memory_estimation.py369 (2, KVConnectorType.null, 1),CODE
HIGH…res/unified_dspark_gemma4/test_dspark_gemma4_module.py710 """Mean per-position KL(ref || max) over fp32 softmax distributions."""STRING
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.py1188 # 15. anyOf with nullable string: anyOf: [{type:string},{type:null}]COMMENT
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1182 "and reason is null (must be null, not a string)."CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1351 f"status={status!r} not in enum ['active','inactive',null]"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1386 f"not in [true, false, null]"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1950 "a next pointer (another node or null)."CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2725 "string 'none' instead of null. Do not use null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3998 f"name: expected string or null, got {type(name).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4004 f"age: expected integer or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4011 f"tags: expected array or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py135 "integer vs number, null, nested objects, fixed property order"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py842 f"nickname: expected string or null, got {type(nickname).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1104 f"nickname: expected string or null, got {type(nn).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1156 f"reason: expected null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1204 f"middle_name: expected string or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1791 f"score: expected number or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py1997 f"metadata: expected object or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2075 f"tags: expected array or null, "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2677 f"backup_contact: expected object or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3372 "kind (file or directory), and children (array or null)."CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3491 f"{field}: expected string or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3557 f"count: expected integer or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3607 f"enabled: expected boolean or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3661 f"score: expected number or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3712 f"tags: expected array or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3778 f"address: expected object or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4050 "Upsert a record. name is string or null, age is "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4051 "integer or null, tags is array of strings or null."CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4153 f"config: expected object or null, got "CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4281 f"object, or null, got {type(result).__name__}"CODE
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py2660 """Verify anyOf: [$ref, null] allows both valid object and null.STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3544 """anyOf [integer, null]: prompt pushes model toward string output."""STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3595 """anyOf [boolean, null]: prompt tries to elicit string 'true'."""STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3646 """anyOf [number, null]: prompt tries to elicit boolean value."""STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3699 """anyOf [array of strings, null]: prompt tries to elicit a bare string."""STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py3766 """anyOf [typed object, null]: prompt tries to flatten nested fields."""STRING
HIGH…llm_fuzz/scenarios/validation/tc_schema_enforcement.py4140 """anyOf [$ref to typed object, null] — the Pydantic Optional[Model] pattern."""STRING
14 more matches not shown…
Modern Structural Boilerplate329 hits · 326 pts
SeverityFileLineSnippetContext
LOW…x/kernels/benchmarks/misc/comparison/install_sglang.py19def update_pip() -> None:CODE
LOWmax/python/max/benchmark/benchmark_serving.py147logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/results_to_csv.py80logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/multi_turn.py55logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/metrics.py46__all__ = [CODE
LOW…ax/benchmark/benchmark_shared/serving_result_output.py62logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/request.py57logger = logging.getLogger(__name__)CODE
LOW…ython/max/benchmark/benchmark_shared/server_metrics.py36logger = logging.getLogger(__name__)CODE
LOW…thon/max/benchmark/benchmark_shared/serving_metrics.py51logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/warmup.py46logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py37logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/utils.py279def 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.py61logger = logging.getLogger(__name__)CODE
LOWmax/python/max/benchmark/benchmark_shared/model_csv.py75logger = logging.getLogger(__name__)CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py37logger = logging.getLogger(__name__)CODE
LOW…enchmark_shared/datasets/multiturn_distribution_fit.py78logger = logging.getLogger(__name__)CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py40logger = logging.getLogger(__name__)CODE
LOW…on/max/benchmark/benchmark_shared/datasets/__init__.py52__all__ = [CODE
LOW…/python/max/benchmark/benchmark_shared/datasets/all.py84logger = 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.py39logger = 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/realization_context.py111def set_seed(value: int) -> None:CODE
LOWmax/python/max/experimental/realization_context.py762__all__ = [CODE
LOWmax/python/max/experimental/__init__.py47__all__ = ["Tensor", "functional", "random", "tensor"]CODE
LOWmax/python/max/experimental/random.py43__all__ = ["gaussian", "normal", "seed", "set_seed", "uniform"]CODE
LOWmax/python/max/experimental/executor.py424__all__ = [CODE
LOWmax/python/max/experimental/nn/__init__.py70__all__ = [CODE
LOWmax/python/max/experimental/nn/_compilation_timer.py34__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.py27__all__ = ["DP", "TP"]CODE
LOW…ax/experimental/nn/common_layers/functional_kernels.py372__all__ = [CODE
LOWmax/python/max/experimental/torch/__init__.py21__all__ = [CODE
LOWmax/python/max/experimental/sharding/per_shard_dim.py31__all__ = [CODE
LOWmax/python/max/experimental/sharding/picker.py39__all__ = [CODE
LOWmax/python/max/experimental/sharding/__init__.py118__all__ = [CODE
LOWmax/python/max/experimental/sharding/mode.py25__all__ = [CODE
LOWmax/python/max/experimental/sharding/rules/__init__.py101__all__ = [CODE
LOWmax/python/max/experimental/testing/__init__.py21__all__ = ["assert_all_close"]CODE
LOWmax/python/max/experimental/cascade/__init__.py37__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
LOW…python/max/experimental/cascade/http_runtime/server.py56logger = logging.getLogger(__name__)CODE
LOW…thon/max/experimental/cascade/http_runtime/__init__.py18__all__ = ["HttpRuntimeProxy", "SubprocHttpRuntime"]CODE
LOW…thon/max/experimental/cascade/workers/max_tokenizer.py27logger = logging.getLogger(__name__)CODE
LOW…n/max/experimental/cascade/workers/max_model_worker.py47logger = logging.getLogger(__name__)CODE
LOWmax/python/max/experimental/cascade/serve/__init__.py18__all__ = ["CascadeFastAPI", "build_router"]CODE
LOWmax/python/max/experimental/cascade/serve/main.py62logger = logging.getLogger(__name__)CODE
LOWmax/python/max/experimental/functional/__init__.py203__all__ = [CODE
LOWmax/python/max/experimental/functional/spmd_ops.py116__all__ = [CODE
LOWmax/python/max/_xgrammar/structural_tag.py602__all__ = [CODE
LOWmax/python/max/_xgrammar/__init__.py379__all__ = [CODE
LOWmax/python/max/nn/__init__.py93__all__ = [CODE
269 more matches not shown…
AI Structural Patterns155 hits · 143 pts
SeverityFileLineSnippetContext
LOW…s/benchmarks/misc/comparison/bench_blackwell_decode.py425CODE
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.py513CODE
LOW…/benchmark/benchmark_shared/datasets/instruct_coder.py159CODE
LOW…nchmark/benchmark_shared/datasets/nemotron_opencode.py443CODE
LOW…ax/benchmark/benchmark_shared/datasets/agentic_code.py240CODE
LOWmax/python/max/experimental/nn/conv.py67CODE
LOW…xperimental/nn/common_layers/multi_latent_attention.py87CODE
LOWmax/python/max/nn/kernels.py278CODE
LOWmax/python/max/nn/kernels.py2707CODE
LOWmax/python/max/nn/kernels.py4061CODE
LOWmax/python/max/nn/kernels.py4231CODE
LOWmax/python/max/nn/kernels.py5228CODE
LOWmax/python/max/nn/kernels.py5439CODE
LOWmax/python/max/nn/kernels.py5610CODE
LOWmax/python/max/nn/kernels.py5956CODE
LOWmax/python/max/nn/kernels.py6219CODE
LOWmax/python/max/nn/kernels.py6547CODE
LOWmax/python/max/nn/kernels.py6698CODE
LOWmax/python/max/nn/kernels.py6756CODE
LOWmax/python/max/nn/kernels.py6804CODE
LOWmax/python/max/nn/kernels.py6890CODE
LOWmax/python/max/nn/kernels.py6949CODE
LOWmax/python/max/nn/kernels.py7393CODE
LOWmax/python/max/nn/kernels.py8310CODE
LOWmax/python/max/nn/kernels.py8383CODE
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.py158CODE
LOWmax/python/max/nn/quant_ops.py191CODE
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.py379CODE
LOWmax/python/max/nn/lora/attention_lora.py44CODE
LOWmax/python/max/nn/lora/attention_lora.py204CODE
LOWmax/python/max/nn/moe/stacked_moe.py275CODE
LOWmax/python/max/nn/moe/moe.py275CODE
LOWmax/python/max/graph/graph.py686CODE
LOWmax/python/max/graph/ops/concat.py97CODE
LOW…/max/pipelines/architectures/olmo3/layers/attention.py214CODE
LOW…elines/architectures/deepseekV3_2/layers/transforms.py161CODE
LOW…elines/architectures/deepseekV3_2/layers/sparse_mla.py112CODE
LOW…elines/architectures/deepseekV3_2/layers/sparse_mla.py750CODE
LOW…ax/pipelines/architectures/gpt_oss/layers/attention.py190CODE
LOW…nes/architectures/gpt_oss_modulev3/layers/attention.py199CODE
LOW…max/pipelines/architectures/gemma3/layers/attention.py50CODE
LOW…max/pipelines/architectures/gemma3/layers/attention.py281CODE
LOW…/architectures/deepseekV3_modulev3/layers/quant_mla.py72CODE
95 more matches not shown…
Redundant / Tautological Comments77 hits · 115 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.py225 # Check if extension is supportedCOMMENT
LOWmax/python/max/experimental/nn/module.py1048 # Check if the constant_external creation should be done in aCOMMENT
LOWmax/python/max/nn/linear.py323 # Check if head boundaries align with block boundariesCOMMENT
LOWmax/python/max/nn/kernels.py8182 # Set min_top_p to the scalar value if provided, otherwise use top_pCOMMENT
LOWmax/python/max/nn/parallel/numpy_parallel_ops.py223 # Check if all arrays are contiguousCOMMENT
LOWmax/python/max/nn/layer/layer.py810 # Check if weight has symbolic dimensionsCOMMENT
LOWmax/python/max/nn/kv_cache/cache_params.py2206 # 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.py453 # Check if this is a partial function wrapping head_aware_col_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py466 # Check if this is a partial function wrapping stacked_qkv_sharding_strategy.COMMENT
LOWmax/python/max/graph/weight.py484 # 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.py98 # Check if axis is within boundsCOMMENT
LOWmax/python/max/_interpreter_ops/handlers.py1240 # Check if it's an index/integer type by looking at the attributeCOMMENT
LOW…python/max/pipelines/architectures/deepseekV3/model.py121 # Check if EP should be configuredCOMMENT
LOWmax/python/max/pipelines/architectures/gpt_oss/model.py229 # Check if input_row_offsets is a list or a single tensorCOMMENT
LOW…hon/max/pipelines/architectures/qwen2_5vl/tokenizer.py104 # 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.py318 # 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.py139 # Set SO_REUSEADDR to avoid TIME_WAIT issuesCOMMENT
LOW…x/pipelines/kv_cache/paged_kv_cache/transfer_engine.py929 # 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
LOWmax/python/max/pipelines/lib/registry.py1273 # Check if there's a secondary tokenizer (tokenizer_2) in the manifestCOMMENT
LOWmax/python/max/pipelines/lib/config/config.py421 # Check if key matches the prefix filterCOMMENT
LOWmax/python/max/pipelines/lib/config/config.py428 # Check if this field exists in the config class (Pydantic model)COMMENT
LOWmax/python/max/pipelines/lib/config/config.py1426 # Check if the architecture is Llama3 (LlamaForCausalLM)COMMENT
LOWmax/python/max/pipelines/lib/config/model_config.py1346 # Check if file exists locally (direct, local repo, or cache).COMMENT
LOWmax/python/max/pipelines/lib/pipeline_variants/utils.py1042 # Check if any context has structured outputCOMMENT
LOWmax/python/max/pipelines/lora/lora.py1042 # Check if name already exists firstCOMMENT
LOWmax/python/max/pipelines/lora/lora.py1214 # Check if already active before puttingCOMMENT
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.py231 # Set dst_idx to -1 to denote pages which the decode already has due toCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py917 # Check if the request fits in memoryCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py974 # Check if it fits within the token budgetCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1023 # Check if it fits within the token budgetCOMMENT
LOW…/scheduler/batch_constructor/text_batch_constructor.py1392 # Set priority to the majority case, defaulting to TG if tiedCOMMENT
LOWmax/python/max/serve/pipelines/llm.py337 # Check if reasoning was disabled in the prompt. Use theCOMMENT
LOWmax/python/max/serve/pipelines/echo_gen.py197 # Check if we have more tokens to echo and haven't reached max lengthCOMMENT
LOWmax/python/max/serve/telemetry/common.py322 # Check if the logger name starts with any of the allowed component prefixesCOMMENT
LOWmax/python/max/serve/router/openai_routes.py3049 # Check if LoRA is enabledCOMMENT
LOWmax/python/max/serve/router/_image_resolution.py386 # Check if it's a directory.COMMENT
LOWmax/python/max/serve/router/_image_resolution.py390 # Check if path is within allowed roots.COMMENT
LOWmax/python/max/serve/router/_image_resolution.py405 # Read the file with size limit.COMMENT
LOWmax/tests/integration/tools/debugging_utils.py486 # Check if we found the tensorsCOMMENT
LOWmax/tests/integration/graph/test_engine.py350 # 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
17 more matches not shown…
AI Slop Vocabulary41 hits · 107 pts
SeverityFileLineSnippetContext
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.py118 # Create comprehensive visualization showing all SMsCOMMENT
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.py534 # just use compile-time parameters and ignore runtime variables.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/metrics.py823 # the harness didn't launch the server (e.g. benchmarking an externalCOMMENT
LOWmax/python/max/nn/quant_ops.py355 # 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.py261 # 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.py330 # Hardcoded but we should move to a robust versioning system if thisCOMMENT
MEDIUMmax/python/max/graph/graph.py917 # This may over-declare but is deterministic and comprehensive.COMMENT
MEDIUMmax/python/max/pipelines/logging_utils.py40 """Logs comprehensive pipeline and KVCache configuration information.STRING
MEDIUMmax/python/max/pipelines/context/sampling_params.py336 """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
LOWmax/python/max/_entrypoints/pipelines.py710 # Help was requested and printed, just returnCOMMENT
MEDIUMmax/python/max/serve/config.py372 """Log comprehensive server configuration information.STRING
MEDIUM…/max/serve/scheduler/batch_constructor/token_budget.py96 """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.py101 # weights registry (and the reference weights a harness stashesCOMMENT
MEDIUMmax/python/layer_benchmarks/testbed/runner.py229 # 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
MEDIUMmax/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.py334 # ``slice_freqs_cis`` and just pass ``rope.freqs_cis``.COMMENT
MEDIUMmax/tests/integration/accuracy/run_mmmu_video_eval.py753 # Fail on a broken harness (no successful inferences / mostly errors) soCOMMENT
LOWmax/tests/integration/accuracy/verify_pipelines.py1328 # Let generate_llm_logits.py validate the `--devices` CLI arg and just passCOMMENT
MEDIUM…/integration/accuracy/model_evals/run_scicode_local.sh14# Provisions the scicode/h5py harness venv + test_data.h5 (cached in /tmp), thenCOMMENT
MEDIUM…racy/logit_verification/logit_verification_config.yaml64 # The models here are considered robust. They are tested with all metrics.COMMENT
MEDIUM…racy/logit_verification/logit_verification_config.yaml139 # be migrated to being a robust pipelines.COMMENT
LOW…/tests/integration/kv_cache/test_connector_protocol.py51 # ``touch`` is fire-and-forget with a ``-> None`` annotation, so just callCOMMENT
MEDIUM…/tests/integration/test_common/pipeline_model_dummy.py246 # Definitely not the correct way to do this, but it's for testingCOMMENT
MEDIUMmax/tests/tests/benchmark/test_single_turn.py58 """Calculate comprehensive statistics for intervals."""STRING
MEDIUMmax/tests/tests/driver/test_buffer.py917 # Create a 3x4 tensor for more comprehensive testingCOMMENT
MEDIUM…sts/tests/pipelines/lib/test_max_config_inheritance.py324 """Test inheritance with comprehensive config files (multiple sections)."""STRING
MEDIUM…sts/tests/pipelines/lib/test_max_config_inheritance.py325 # Create base comprehensive configCOMMENT
MEDIUM…sts/tests/pipelines/lib/test_max_config_inheritance.py341 # Create child comprehensive config that inherits from baseCOMMENT
Structural Annotation Overuse58 hits · 94 pts
SeverityFileLineSnippetContext
LOWCONTRIBUTING.md46### Step 1: Evaluate and get buy-in on the changeCOMMENT
LOWCONTRIBUTING.md93### Step 2: Create a pull requestCOMMENT
LOWCONTRIBUTING.md241### Step 3: PR triage and reviewCOMMENT
LOWCONTRIBUTING.md254### Step 4: Internal review and syncingCOMMENT
LOWCONTRIBUTING.md273### Step 5: Review feedback and iterationCOMMENT
LOWdocs/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOWdocs/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOWdocs/code/develop/index/graph_simple.py34# Step 3: Execute with dataCOMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py168 # Step 1: QKV matmul.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py175 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py185 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py200 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py494 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py531 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py549 # 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.py593 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py646 # Step 5: Process vision model inputs for Qwen3VL using image processing resultsCOMMENT
LOW…architectures/unified_mtp_glm5_2/unified_mtp_glm5_2.py209 # Step 0: ALL hidden states (per-batch gather at accepted positions) +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
LOW…ines/architectures/kimik2_5/unified_eagle_mha_model.py266 # Step 0: ALL hidden states + VARIABLE logits.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py155 # Step 1: pack groups to nodes.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py171 # Step 2: construct redundant experts within nodes.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py179 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py192 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py205 # 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.md182## Step 4: Export full tensors with `debug_model`COMMENT
LOWmax/docs/accuracy-debugging.md211## Step 5: Compare the tensors with `compare_tensors`COMMENT
LOWmax/examples/diffusion/simple_offline_generation.py700 # Step 6: Prepare inputs for the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py760 # Step 8: Get the output for our requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py771 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py410 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py488 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py537 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py568 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py664 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py744 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md347### Step 1: Gather GPU informationCOMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md376### Step 2: Create the target functionCOMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md404### Step 3: Create the `GPUInfo` aliasCOMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md423### Step 4: Update `_get_info_from_target`COMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md457### Step 5: Update `GPUInfo.target` methodCOMMENT
LOWmojo/stdlib/docs/adding-gpu-targets.md475### Step 6: Build and testCOMMENT
LOWmojo/proposals/deinit-arg-convention.md250### Step 1: Formalize the destructor conventionCOMMENT
LOWmojo/proposals/deinit-arg-convention.md317### Step 2: Remove `__disable_del`COMMENT
LOWmojo/proposals/deinit-arg-convention.md326### Step 3: Restrict usage of the `deinit` conventionCOMMENT
Verbosity Indicators39 hits · 66 pts
SeverityFileLineSnippetContext
LOWdocs/code/develop/index/graph_simple.py21# Step 1: Define the graph structureCOMMENT
LOWdocs/code/develop/index/graph_simple.py30# Step 2: Compile the graphCOMMENT
LOWdocs/code/develop/index/graph_simple.py34# Step 3: Execute with dataCOMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py168 # Step 1: QKV matmul.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py175 # Step 2: Apply full-dimension QK norm before rope.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py185 # Step 3: Fused rope + split + KV store.COMMENT
LOW…/max/pipelines/architectures/olmo3/layers/attention.py200 # Step 5: Compute flash attention (reads K/V from cache)COMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py494 # Step 1: Extract prompt from request and apply chat template if neededCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py531 # Step 2: Load and process imagesCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py549 # 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.py593 # Step 4: Tokenize the expanded textCOMMENT
LOW…n/max/pipelines/architectures/qwen3vl_moe/tokenizer.py646 # Step 5: Process vision model inputs for Qwen3VL using image processing resultsCOMMENT
LOW…architectures/unified_mtp_glm5_2/unified_mtp_glm5_2.py209 # Step 0: ALL hidden states (per-batch gather at accepted positions) +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
LOW…ines/architectures/kimik2_5/unified_eagle_mha_model.py266 # Step 0: ALL hidden states + VARIABLE logits.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py155 # Step 1: pack groups to nodes.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py171 # Step 2: construct redundant experts within nodes.COMMENT
LOWmax/python/max/pipelines/lib/eplb_rebalance.py179 # Step 3: pack physical experts to GPUs within each node.COMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py192 # Step 1: Try HuggingFace fetch using --model as repo IDCOMMENT
LOWmax/tests/integration/accuracy/llm_fuzz/model_config.py205 # 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/examples/diffusion/simple_offline_generation.py700 # Step 6: Prepare inputs for the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py760 # Step 8: Get the output for our requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py771 # Step 9: Extract and save images from OutputImageContentCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py410 # Step 1: Initialize pipeline configurationCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py488 # Step 2: Initialize the tokenizerCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py537 # Step 3: Initialize the pipelineCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py568 # Step 4: Create an OpenResponsesRequestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py664 # Step 5: Create a PixelContext object from the requestCOMMENT
LOWmax/examples/diffusion/simple_offline_generation.py744 # Step 7: Execute the pipelineCOMMENT
LOWbazel/internal/pytest-shard.py72 # Step 1: Pull out anything marked with eitherCOMMENT
Modern AI Meta-Vocabulary20 hits · 59 pts
SeverityFileLineSnippetContext
MEDIUM…hmarks/misc/comparison/bench_blackwell_grouped_gemm.py15# Mimics bench.py scaffolding; uses naive float64 reference for correctness.COMMENT
MEDIUMmax/python/max/benchmark/benchmark_shared/request.py872 # to stream chain-of-thought tokens separately from "content". TheseCOMMENT
MEDIUMmax/python/max/graph/graph.py674 # ``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.py705 # -- Denoising loop orchestration -----------------------------------------COMMENT
MEDIUM…elines/architectures/qwen3_embedding_modulev3/model.py126 # Remove lm_head weights — embedding model doesn't use themCOMMENT
MEDIUMmax/python/max/serve/telemetry/common.py129# covers slow ops (request time, model load, compile) and long agentic requests.COMMENT
MEDIUMmax/python/max/serve/router/openresponses_routes.py81 # Request is already parsed and validated via dependency injectionCOMMENT
MEDIUMmax/python/max/serve/router/openai_routes.py1443 # so replayed chain-of-thought is not silently dropped before theCOMMENT
MEDIUM…tion_pipeline/test_overlap_text_generation_pipeline.py357 # 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…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.py938 # 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
MEDIUMmax/tests/tests/benchmark/test_benchmark_datasets.py1337 # 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
Fake / Example Data25 hits · 28 pts
SeverityFileLineSnippetContext
LOW…tests/integration/nn/kv_cache/test_kv_cache_manager.py625 dummy_id = RequestID("dummy-test")CODE
LOW…tests/integration/nn/kv_cache/test_kv_cache_manager.py626 kv_manager.alloc_dummy(dummy_id, replica_idx=0)CODE
LOW…tests/integration/nn/kv_cache/test_kv_cache_manager.py628 assert kv_manager.get_req_blocks(dummy_id, replica_idx=0) == [8]CODE
LOW…/pipelines/text_generation_pipeline/test_dp_padding.py660 for dummy_id in dummy_ids:CODE
LOW…/pipelines/text_generation_pipeline/test_dp_padding.py661 assert kv_manager.contains(dummy_id, replica_idx=1)CODE
LOW…/pipelines/text_generation_pipeline/test_dp_padding.py669 for dummy_id in dummy_ids:CODE
LOW…/pipelines/text_generation_pipeline/test_dp_padding.py670 assert not kv_manager.contains(dummy_id, replica_idx=1)CODE
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1818 lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " * (CODE
LOW…ration/accuracy/llm_fuzz/scenarios/openrouter_tests.py1818 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/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 Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICAL…ests/tests/nn/module_v3/quant_layers/test_quant_mla.py443 assert layer.o_proj.weight.data.mapping.to_placements() == (Sharded(1),)CODE
CRITICAL…ests/tests/nn/module_v3/quant_layers/test_quant_mla.py444 assert layer.o_proj.weight.weight_scale_inv.mapping.to_placements() == (CODE
Example Usage Blocks11 hits · 16 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…s/benchmarks/gpu/nn/bench_mla_sparse_prefill_tune.yaml18# Usage:COMMENT
LOW…benchmark/configs/serving_flux2_t2i_random_config.yaml15# Usage:COMMENT
LOW…s/embedding-knowledge-base/src/embeddings/kb_system.py134# Example usageCOMMENT
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
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMmax/tests/tests/serve/test_openresponses_routes.py352CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmax/tests/integration/accuracy/verify_pipelines.py313 # Even if verdicts is empty, we want to make sure to call write. When weCOMMENT