AI Slop Code Risk Monitor

halide/Halide

SlopCodeMonitor badge for halide/Halide Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

a language for fast, portable data-parallel computation

2.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for halide/Halide, a C++ project with 6,631 GitHub stars. SynthScan examined 526,058 lines of code across 2370 source files, recording 1195 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 2.8 (Low pattern signal); it is not an authorship estimate.

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

2.8
Adjusted Signal
2.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
6.6K
Stars
C++
Language
526.1K
Lines of Code
2.4K
Files
1.2K
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 10.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.8/100 · LOW

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

Agent Over-Engineering Ratio 2.7/100 · LOW

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

PR Review Velocity Impact 13.1/100 · LOW

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 3HIGH 16MEDIUM 85LOW 1091

Directory Score Breakdown

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

Pattern Findings

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

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

Over-Commented Block963 hits · 958 pts
SeverityFileLineSnippetContext
LOWrun-clang-format.sh1#!/bin/bashCOMMENT
LOWpyproject.toml81conflicts = [COMMENT
LOWrun-clang-tidy.sh21#COMMENT
LOWtutorial/lesson_18_parallel_associative_reductions.cpp1// Halide tutorial lesson 18: Factoring an associative reduction using rfactorCOMMENT
LOWtutorial/lesson_18_parallel_associative_reductions.cpp61COMMENT
LOWtutorial/lesson_18_parallel_associative_reductions.cpp101 // This manual factorization of an associative reduction canCOMMENT
LOWtutorial/lesson_18_parallel_associative_reductions.cpp121 // The task of factoring of associative reduction is movedCOMMENT
LOWtutorial/lesson_18_parallel_associative_reductions.cpp141 // In the case where you are only slicing up the domain acrossCOMMENT
LOWtutorial/lesson_15_generators_usage.sh1#!/usr/bin/env bashCOMMENT
LOWtutorial/lesson_15_generators_usage.sh101# -o directory : Specifies which directory to create the outputsCOMMENT
LOWtutorial/lesson_15_generators_usage.sh181 exit 1COMMENT
LOWtutorial/lesson_06_realizing_over_shifted_domains.cpp1// Halide tutorial lesson 6: Realizing Funcs over arbitrary domainsCOMMENT
LOWtutorial/lesson_06_realizing_over_shifted_domains.cpp21 // The last lesson was quite involved, and scheduling complexCOMMENT
LOWtutorial/lesson_17_predicated_rdom.cpp1// Halide tutorial lesson 17: Reductions over non-rectangular domainsCOMMENT
LOWtutorial/lesson_17_predicated_rdom.cpp21 // In lesson 9, we learned how to use RDom to define a "reductionCOMMENT
LOWtutorial/lesson_17_predicated_rdom.cpp41 // The bounding box does not have to be minimal. In fact, theCOMMENT
LOWtutorial/lesson_14_types.cpp1// Halide tutorial lesson 14: The Halide type systemCOMMENT
LOWtutorial/lesson_14_types.cpp121 assert((f64 + s32).type() == Float(64));COMMENT
LOWtutorial/lesson_14_types.cpp141 // 6) If both types are unsigned integers, or both types areCOMMENT
LOWtutorial/lesson_14_types.cpp181COMMENT
LOWtutorial/lesson_11_cross_compilation.cpp1// Halide tutorial lesson 11: Cross-compilationCOMMENT
LOWtutorial/lesson_11_cross_compilation.cpp141 // of this tutorial. For a real application you'd then need toCOMMENT
LOWtutorial/lesson_05_scheduling_1.cpp1// Halide tutorial lesson 5: Vectorize, parallelize, unroll and tile your codeCOMMENT
LOWtutorial/lesson_05_scheduling_1.cpp61 // compute gradient:COMMENT
LOWtutorial/lesson_05_scheduling_1.cpp141 gradient.print_loop_nest();COMMENT
LOWtutorial/lesson_05_scheduling_1.cpp241 // 4-wide vectors.COMMENT
LOWtutorial/lesson_05_scheduling_1.cpp381COMMENT
LOWtutorial/lesson_05_scheduling_1.cpp401 // In our example, x_min was 0, x_extent was 7, and factor was 3.COMMENT
LOWtutorial/lesson_23_serialization.cpp1// Halide tutorial lesson 23: SerializationCOMMENT
LOWtutorial/lesson_20_cloning_funcs.cpp1// Halide tutorial lesson 20: Cloning FuncsCOMMENT
LOWtutorial/lesson_20_cloning_funcs.cpp41 // for x:COMMENT
LOWtutorial/lesson_20_cloning_funcs.cpp61 // f(x, y) = x + yCOMMENT
LOWtutorial/lesson_20_cloning_funcs.cpp121 // f_clone(x, y) = x + yCOMMENT
LOWtutorial/lesson_20_cloning_funcs.cpp141 g(x) = 2 * f(0);COMMENT
LOWtutorial/lesson_10_aot_compilation_generate.cpp1// Halide tutorial lesson 10: AOT compilation: compiling the pipelineCOMMENT
LOWtutorial/lesson_10_aot_compilation_generate.cpp41 // And take one grayscale 8-bit input buffer. The firstCOMMENT
LOWtutorial/lesson_24_async.cpp1// Halide tutorial lesson 24: Async executionCOMMENT
LOWtutorial/lesson_24_async.cpp41 // ...COMMENT
LOWtutorial/lesson_24_async.cpp81 // allocate producer1[...]COMMENT
LOWtutorial/lesson_24_async.cpp101 // ...COMMENT
LOWtutorial/lesson_24_async.cpp121 consumer(x, y, c) = producer(x - 1, y - 1, c) + producer(x, y, c) + producer(x + 1, y + 1, c);COMMENT
LOWtutorial/lesson_24_async.cpp141COMMENT
LOWtutorial/lesson_24_async.cpp161 // // acquire this semaphore in the other thread.COMMENT
LOWtutorial/lesson_24_async.cpp241 // // This semaphore indicates how much producer has produced.COMMENT
LOWtutorial/lesson_24_async.cpp261 // release(producer1.semaphore)COMMENT
LOWtutorial/lesson_02_input_image.cpp1// Halide tutorial lesson 2: Processing imagesCOMMENT
LOWtutorial/lesson_02_input_image.cpp61COMMENT
LOWtutorial/lesson_12_using_the_gpu.cpp1// Halide tutorial lesson 12: Using the GPUCOMMENT
LOWtutorial/lesson_12_using_the_gpu.cpp121 // Func independently. If you have one Func computed on theCOMMENT
LOWtutorial/lesson_12_using_the_gpu.cpp161COMMENT
LOWtutorial/lesson_07_multi_stage_pipelines.cpp1// Halide tutorial lesson 7: Multi-stage pipelinesCOMMENT
LOWtutorial/lesson_07_multi_stage_pipelines.cpp61COMMENT
LOWtutorial/lesson_07_multi_stage_pipelines.cpp101 Func clamped("clamped");COMMENT
LOWtutorial/lesson_07_multi_stage_pipelines.cpp121 // clamped = BoundaryConditions::repeat_edge(input);COMMENT
LOWtutorial/lesson_13_tuples.cpp1// Halide tutorial lesson 13: TuplesCOMMENT
LOWtutorial/lesson_13_tuples.cpp41 // color_image(x, y, c) = mux(c, {245, 42, 132});COMMENT
LOWtutorial/lesson_13_tuples.cpp61 // this one is a hard limitation that makes it impossible toCOMMENT
LOWtutorial/lesson_13_tuples.cpp181 Buffer<int> r0 = r[0];COMMENT
LOWtutorial/lesson_13_tuples.cpp261 mandelbrot(x, y, r) = current * current + initial;COMMENT
LOWtutorial/lesson_22_jit_performance.cpp1// Halide tutorial lesson 22: JIT compilation performanceCOMMENT
903 more matches not shown…
Decorative Section Separators49 hits · 162 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/run-coverage.sh39 # ── Configure + Build ─────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh43 # ── Run 1: host — all tests ──────────────────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh46 # ── Reconfigure + rebuild for host-metal ─────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh50 # ── Run 2: host-metal — GPU tests only ───────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh53 # ── Reconfigure + rebuild for host-opencl ────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh57 # ── Run 3: host-opencl — GPU and OpenCL-specific tests ───────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh60 # ── Reconfigure + rebuild for wasm-32-wasmrt-wasm_simd128 ────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh64 # ── Run 4: wasm — all tests (exercises WasmExecutor for JIT compilation) ─────COMMENT
MEDIUM⚡tools/run-coverage.sh69# ── Merge profiles ────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tools/run-coverage.sh74# ── Generate coverage reports ─────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs105// ── Value rendering (Grayscale / RGB) ────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs430// ── Store frequency rendering ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs575// ── Load frequency rendering ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs719// ── Redundant store rendering ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs917// ── Reuse distance rendering ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/render.rs1129// ── Thread Rendering ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs5// ── Type system ──────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs51// ── Event codes ──────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs94// ── Packet view ──────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs247// ── Per-Func statistics ───────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs359// ── Complete trace ───────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs383// ── Binary parsing helpers ───────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs410// ── Stats helpers called during packet parsing ────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs536// ── func_type_and_dim tag parsing ─────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs592// ── Trace loading ────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs1327 // ── Render-path accessors ─────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/trace.rs1371// ── Shared geometry helpers ───────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/commands.rs142// ── Tauri-managed state ───────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/commands.rs187// ── Commands ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/halidoscope/src-tauri/src/commands.rs750// ── Profiler ─────────────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/autoschedulers/anderson2021/CMakeLists.txt7# =================================================================COMMENT
MEDIUMtest/autoschedulers/anderson2021/CMakeLists.txt37# =================================================================COMMENT
MEDIUMtest/autoschedulers/anderson2021/CMakeLists.txt70# =================================================================COMMENT
MEDIUMtest/autoschedulers/anderson2021/CMakeLists.txt93# =================================================================COMMENT
MEDIUMtest/autoschedulers/adams2019/CMakeLists.txt5# =================================================================COMMENT
MEDIUMtest/autoschedulers/adams2019/CMakeLists.txt30# =================================================================COMMENT
MEDIUMtest/autoschedulers/adams2019/CMakeLists.txt61# =================================================================COMMENT
MEDIUMpython_bindings/halide/tutorial/lesson_15_runtime.py149 # ------------------------------------------------------------------COMMENT
MEDIUMpython_bindings/halide/tutorial/lesson_15_runtime.py153 # ------------------------------------------------------------------COMMENT
MEDIUMapps/hannk/CMakeLists.txt9# ----------------------------COMMENT
MEDIUMapps/hannk/CMakeLists.txt36# ----------------------------COMMENT
MEDIUMapps/hannk/CMakeLists.txt43# ----------------------------COMMENT
MEDIUMapps/hannk/CMakeLists.txt55# ----------------------------COMMENT
MEDIUMapps/hannk/CMakeLists.txt71# ----------------------------COMMENT
MEDIUMapps/hannk/halide/CMakeLists.txt59# ---------------------------COMMENT
MEDIUMsrc/autoschedulers/anderson2021/CMakeLists.txt92## ====================================================COMMENT
MEDIUMsrc/autoschedulers/adams2019/CMakeLists.txt7# =================================================================COMMENT
MEDIUMsrc/autoschedulers/adams2019/CMakeLists.txt63# =================================================================COMMENT
MEDIUMsrc/autoschedulers/adams2019/CMakeLists.txt87# ====================================================COMMENT
AI Slop Vocabulary21 hits · 56 pts
SeverityFileLineSnippetContext
MEDIUMtutorial/lesson_20_cloning_funcs.cpp76 // Essentially, it rewrites the original pipeline above into theCOMMENT
MEDIUMtutorial/lesson_19_wrapper_funcs.cpp70 // wrapper. Essentially, it rewrites the original pipelineCOMMENT
MEDIUMtools/RunGen.h839 // Definitely chunky, so make extent[2] match the chunk sizeCOMMENT
LOWtools/makelib.sh23 # Output equals input; just returnCOMMENT
MEDIUMtest/debugger/debugger_fixture.cpp7// Break on the symbol `halide_debugger_test_breakpoint` (robust acrossCOMMENT
MEDIUMtest/correctness/intrinsics.cpp16 // Make sure the pattern is robust to CSE. We only enforce thisCOMMENT
MEDIUM…on_bindings/halide/tutorial/lesson_19_wrapper_funcs.py67 # wrapper. Essentially, it rewrites the original pipelineCOMMENT
MEDIUM…on_bindings/halide/tutorial/lesson_20_cloning_funcs.py65 # Essentially, it rewrites the original pipeline above into theCOMMENT
MEDIUM…thon_bindings/halide/apps/local_laplacian_generator.py143 # (This can be useful in conjunction with RunGen and benchmarks as wellCOMMENT
MEDIUMpython_bindings/halide/apps/bilateral_grid_generator.py98 # (This can be useful in conjunction with RunGen and benchmarks as wellCOMMENT
LOWapps/hannk/run_benchmark_on_device.sh48 # assume it's a flag (or flag argument) and just pass thruCOMMENT
LOWapps/hannk/run_compare_on_device.sh51 # assume it's a flag (or flag argument) and just pass thruCOMMENT
LOWapps/blur/adb_run_on_device.sh13#TODO: It would be nice to just use HL_TARGET, but that means oneCOMMENT
MEDIUMapps/gaussian_blur/filter.cpp40// very robust to things like big.little systems. However, it's good forCOMMENT
LOWapps/hexagon_benchmarks/adb_run_on_device.sh13#TODO: It would be nice to just use HL_TARGET, but that means oneCOMMENT
MEDIUMapps/camera_pipe/camera_pipe_generator.cpp464 // D3D12 SM 5.1 can only utilize a limited amount ofCOMMENT
MEDIUMsrc/BoundaryConditions.cpp119 // hold. To be more robust, we make condition 2 hold, by introducingCOMMENT
MEDIUMsrc/IREquality.cpp59 // avoid too many collisions, while being robust to weird things likeCOMMENT
MEDIUMsrc/HexagonOptimize.cpp680 // particular order. It should be more robust... butCOMMENT
MEDIUMsrc/StageStridedLoads.cpp295 // Definitely not a strided loadCOMMENT
MEDIUMsrc/runtime/metal.cpp324// this can be refactored to something more robust/general.COMMENT
Empty Error Handlers10 hits · 50 pts
SeverityFileLineSnippetContext
HIGH…hon_bindings/halide/test/correctness/profiler_scope.py46except RuntimeError:CODE
HIGHpython_bindings/halide/test/correctness/rdom.py33except KeyError:CODE
HIGHpython_bindings/halide/test/correctness/rdom.py38except KeyError:CODE
HIGHpython_bindings/halide/test/correctness/rdom.py43except TypeError:CODE
HIGHpython_bindings/halide/test/correctness/buffer.py666except ValueError:CODE
HIGHpython_bindings/halide/test/correctness/buffer.py706except BufferError:CODE
HIGHpython_bindings/halide/test/correctness/buffer.py753except BufferError:CODE
HIGHpython_bindings/halide/test/correctness/buffer.py794except exc:CODE
HIGH…ings/halide/test/correctness/thread_pool_keep_awake.py51except ValueError:CODE
HIGH…ndings/halide/test/correctness/float_precision_test.py64except RuntimeWarning:CODE
Hyper-Verbose Identifiers48 hits · 50 pts
SeverityFileLineSnippetContext
LOWtools/RunGenMain.cpp537 typedef halide_device_interface_t_ptr (*GetDeviceInterfaceFn)();CODE
LOWpython_bindings/halide/_dynamic_metadata.py11def get_requires_for_dynamic_metadata(settings: Mapping[str, Any]) -> list[str]:CODE
LOWpython_bindings/halide/test/correctness/callable.py172def test_callable_buffer_conventions():CODE
LOW⚡python_bindings/halide/test/correctness/struct_type.py97def test_struct_pack_and_field_inlined():CODE
LOW⚡python_bindings/halide/test/correctness/struct_type.py102def test_struct_pack_and_field_compute_root():CODE
LOW⚡python_bindings/halide/test/correctness/struct_type.py109def test_field_ref_array_indexing():CODE
LOWpython_bindings/halide/test/correctness/struct_type.py134def test_pack_struct_field_copy():CODE
LOW…gs/halide/test/correctness/multi_method_module_test.py34def test_aot_call_failure_throws_exception():CODE
LOW…dings/halide/test/correctness/multipass_constraints.py4def test_multipass_constraints():CODE
LOW…dings/halide/test/correctness/multipass_constraints.py61def test_infer_input_bounds_preserves_halide_error():CODE
LOWpython_bindings/halide/test/correctness/rdom.py59def test_implicit_pure_definition():CODE
LOWpython_bindings/halide/test/correctness/buffer.py589def test_buffer_copy_no_reverse():CODE
LOWpython_bindings/halide/test/correctness/buffer.py610def test_ndarray_negative_strides():CODE
LOWpython_bindings/halide/test/correctness/buffer.py620def test_runtime_buffer_is_distinct():CODE
LOWpython_bindings/halide/test/correctness/buffer.py677def test_buffer_export_lifetime():CODE
LOWpython_bindings/halide/test/correctness/buffer.py712def test_buffer_ndarray_dtypes():CODE
LOWpython_bindings/halide/test/correctness/buffer.py744def test_buffer_contiguous_requests():CODE
LOWpython_bindings/halide/test/correctness/buffer.py759def test_copy_from_mismatched_buffers():CODE
LOWpython_bindings/halide/test/correctness/buffer.py785def test_dimension_out_of_range():CODE
LOWpython_bindings/halide/test/correctness/basics.py582def test_implicit_update_by_int():CODE
LOWpython_bindings/halide/test/correctness/basics.py606def test_implicit_update_by_float():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py8def test_serialize_deserialize_pipeline_file():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py38def test_serialize_deserialize_pipeline_bytes():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py57def test_serialize_deserialize_with_parameters():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py85def test_serialize_deserialize_with_parameters_bytes():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py106def test_deserialize_parameters_file():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py134def test_deserialize_parameters_bytes():CODE
LOW…thon_bindings/halide/test/correctness/serialization.py153def test_pipeline_with_multiple_outputs():CODE
LOWpython_bindings/halide/test/correctness/negate_test.py4def test_free_logical_not_function():CODE
LOWpython_bindings/halide/test/correctness/negate_test.py21def test_member_logical_not_function():CODE
LOWpython_bindings/halide/apps/identity_app.py41 def _get_halide_buffer_t_capsule(self):CODE
LOWpython_bindings/halide/src/_generator_helpers.py141 def _check_types_and_dimensions(self, types: list[Type], dimensions: int):CODE
LOWpython_bindings/halide/src/_generator_helpers.py208 def _get_types_and_dimensions(self) -> tuple[list[Type], int]:CODE
LOWpython_bindings/halide/src/_generator_helpers.py220 def _get_types_and_dimensions(self) -> tuple[list[Type], int]:CODE
LOWpython_bindings/halide/src/_generator_helpers.py252 def _get_types_and_dimensions(self) -> tuple[list[Type], int]:CODE
LOWpython_bindings/halide/src/_generator_helpers.py289 def _get_types_and_dimensions(self) -> tuple[list[Type], int]:CODE
LOWpython_bindings/halide/src/_generator_helpers.py509 def allow_out_of_order_inputs_and_outputs(self):CODE
LOWpython_bindings/halide/src/_generator_helpers.py642 def _set_io_types_and_dimensions_from_gp(CODE
LOWpython_bindings/halide/src/_generator_helpers.py668 def _advance_to_configure_called(self):CODE
LOWpython_bindings/halide/src/_generator_helpers.py709 def _set_generatorparam_value(self, name: str, value: Any):CODE
LOWpython_bindings/halide/src/_generator_helpers.py800def _get_python_generator_names() -> list[str]:CODE
LOWpython_bindings/halide/src/_generator_helpers.py831def _check_generator_name_in_use(n: str):CODE
LOWpython_bindings/halide-runtime/_dynamic_metadata.py11def get_requires_for_dynamic_metadata(settings: Mapping[str, Any]) -> list[str]:CODE
LOWpython_bindings/halide-runtime/test/load_aot.py67 def _get_halide_buffer_t_capsule(self):CODE
LOWdoc/generate_api_reference.py104def _is_excluded_runtime_file(file: str) -> bool:CODE
LOWdoc/tutorial_website/capture.py307def capture_python_env_output(CODE
LOWapps/onnx/model_test.py75 def test_model_with_initializer(self):CODE
LOWapps/gaussian_blur/impulse_viewer.html1358function updateParetoIRDisplayMode() {CODE
Self-Referential Comments16 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUM…/tutorial/lesson_18_parallel_associative_reductions.py23 # Create an input with random values.COMMENT
MEDIUM…on_bindings/halide/tutorial/lesson_19_wrapper_funcs.py298 # Create an interesting input image to use.COMMENT
MEDIUM…indings/halide/tutorial/lesson_11_cross_compilation.py21 # Define the hl.Func.COMMENT
MEDIUM…ngs/halide/tutorial/lesson_07_multi_stage_pipelines.py104 # Define an expression that clamps x to lie within the theCOMMENT
MEDIUM…/halide/tutorial/lesson_10_aot_compilation_generate.py43 # Define the hl.Func.COMMENT
MEDIUMpython_bindings/halide/tutorial/lesson_15_generators.py100 # Define the Func. We'll use the compile-time scale factor asCOMMENT
MEDIUMpython_bindings/halide/tutorial/lesson_13_tuples.py41 # This method is often convenient because it makes it easy toCOMMENT
MEDIUM…ndings/halide/tutorial/lesson_09_update_definitions.py175 # Define a multi-dimensional reduction domain over the input image:COMMENT
MEDIUM…ndings/halide/tutorial/lesson_09_update_definitions.py569 # Define a 5x5 box that starts at (-2, -2)COMMENT
MEDIUM…thon_bindings/halide/tutorial/lesson_02_input_image.py56 # Define the function.COMMENT
MEDIUM…hon_bindings/halide/tutorial/lesson_16_rgb_generate.py57 # Define the Func.COMMENT
MEDIUMapps/onnx/model_test.py26 # Create a nodeCOMMENT
MEDIUMapps/onnx/model_test.py29 # Create the modelCOMMENT
MEDIUMapps/onnx/model_test.py53 # Create a nodeCOMMENT
MEDIUMapps/onnx/model_test.py56 # Create the modelCOMMENT
MEDIUMapps/HelloPyTorch/modules.py55 # Create an output tensor with the proper dimensionsCOMMENT
Hallucination Indicators3 hits · 45 pts
SeverityFileLineSnippetContext
CRITICALtest/correctness/simd_op_check_sve2.cpp893 // <vscale x 8 x i1> @llvm.aarch64.sve.whilelt.nxv8i1.i32(i32 0, i32 4)COMMENT
CRITICALtest/correctness/simd_op_check_sve2.cpp1219 // <vscale x 8 x i1> @llvm.aarch64.sve.whilelt.nxv8i1.i32(i32 0, i32 4)COMMENT
CRITICALsrc/CodeGen_ARM.cpp2489 // -> @llvm.aarch64.sve.whilelt.nxv8i1.i32(i32 0, i32 3)COMMENT
Unused Imports46 hits · 41 pts
SeverityFileLineSnippetContext
LOWpython_bindings/halide/_dynamic_metadata.py3CODE
LOWpython_bindings/halide/test/correctness/callable.py3CODE
LOWpython_bindings/halide/src/__init__.py6CODE
LOWpython_bindings/halide/src/__init__.py11CODE
LOWpython_bindings/halide/src/__init__.py12CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py20CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/__init__.py21CODE
LOWpython_bindings/halide/src/_generator_helpers.py1CODE
LOWpython_bindings/halide-runtime/_dynamic_metadata.py3CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py13CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py13CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py13CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py13CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py13CODE
LOWdoc/tutorial_website/manifest.py11CODE
LOWdoc/tutorial_website/render.py17CODE
LOWdoc/tutorial_website/sitemap.py10CODE
LOWdoc/tutorial_website/lesson.py13CODE
LOWdoc/tutorial_website/capture.py27CODE
LOWdoc/tutorial_website/cli.py1CODE
LOWdoc/tutorial_website/py_capture_runner.py28CODE
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHpython_bindings/halide/tutorial/lesson_24_async.py17 # In this example we simply tell Halide to run `producer` in aCOMMENT
HIGHpython_bindings/halide/tutorial/lesson_24_async.py133 # In this example the planes are processed separately, so producerCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ndings/halide/tutorial/lesson_21_auto_scheduler_run.py0a minimal stand-in for halide::tools::benchmark(): runs `op` `iterations` times per sample, and returns the minimum timeSTRING
HIGH…_bindings/halide/tutorial/lesson_22_jit_performance.py0a minimal stand-in for halide::tools::benchmark(): runs `op` `iterations` times per sample, and returns the minimum timeSTRING
HIGHpython_bindings/halide/tutorial/lesson_16_rgb_run.py0a minimal stand-in for halide::tools::benchmark(): runs `op` `iterations` times per sample, and returns the minimum timeSTRING
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtest/integration/python_abi3/check.py16CODE
LOW…/tutorial/lesson_18_parallel_associative_reductions.py13CODE
LOWpython_bindings/halide/tutorial/lesson_13_tuples.py14CODE
LOW…ndings/halide/tutorial/lesson_09_update_definitions.py15CODE
LOW…hon_bindings/halide/tutorial/lesson_08_scheduling_2.py12CODE
LOW…hon_bindings/halide/tutorial/lesson_05_scheduling_1.py12CODE
LOW…hon_bindings/halide/tutorial/lesson_16_rgb_generate.py53CODE
LOW…_bindings/halide/tutorial/lesson_17_predicated_rdom.py11CODE
LOWpython_bindings/halide/apps/blur_generator.py40CODE
LOW…thon_bindings/halide/apps/local_laplacian_generator.py59CODE
LOWpython_bindings/halide/src/_generator_helpers.py73CODE
LOWpython_bindings/halide/src/_generator_helpers.py177CODE
LOWdoc/generate_api_reference.py119CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHtest/correctness/non_nesting_extern_bounds_query.cpp52 // was indeed shifted inwards, as requested by theCOMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
LOW…hon_bindings/halide/tutorial/lesson_05_scheduling_1.py353 # your responsibility to make sure you can handle the same pointCOMMENT
MEDIUMsrc/runtime/hexagon_remote/qurt/sim_remote.cpp52// This is a basic implementation of the Halide runtime for Hexagon.COMMENT
MEDIUMsrc/runtime/hexagon_remote/qurt/halide_remote.cpp27// This is a basic implementation of the Halide runtime for Hexagon.COMMENT
Excessive Try-Catch Wrapping6 hits · 7 pts
SeverityFileLineSnippetContext
LOWtools/gdbhalide.py101 except Exception:CODE
LOWtools/lldbhalide.py94 except Exception as e:CODE
LOW…gs/halide/test/correctness/multi_method_module_test.py43 except Exception as e:CODE
LOWpython_bindings/halide/test/correctness/basics.py12 except Exception as e:CODE
MEDIUMpython_bindings/halide/test/correctness/basics.py9def assert_throws(exn, msg):CODE
LOWpython_bindings/halide-runtime/test/gpu.py42 except Exception as e:CODE
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWapps/HelloWasm/CMakeLists.txt37# Step 1: build the generator (and the native benchmark) with the host compiler.COMMENT
LOWapps/HelloWasm/CMakeLists.txt47# Step 2: cross-compile the app with Emscripten, importing the generatorCOMMENT
LOWsrc/runtime/cpu_features.h48// NOTE: This method is not part of the public API, but we push it into extern "C" toCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython_bindings/halide/_dynamic_metadata.py8__all__ = ["dynamic_metadata", "get_requires_for_dynamic_metadata"]CODE
LOWpython_bindings/halide-runtime/_dynamic_metadata.py8__all__ = ["dynamic_metadata", "get_requires_for_dynamic_metadata"]CODE
LOW…bindings/halide-runtime/src/halide/runtime/__init__.py15__all__ = ["Buffer", "BufferDimension", "Kernel", "Type", "load"]CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpython_bindings/halide/tutorial/CMakeLists.txt107 # The fixture "py_lesson_10" orchestrates running the generator part of the lesson first, then the build for theCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWapps/hannk/run_benchmark_on_hexagon_sim.sh4# Usage:COMMENT
LOWsrc/irvisualizer/html_template_StmtToHTML.js57// Example usage:COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/CMakeLists.txt633## TODO: implement something similar for Windows/link.exeCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/runtime/hexagon_dma.cpp609 // TODO We need to check if any DMA specific action is required hereCOMMENT