Repository Analysis

shader-slang/slang

Making it easier to work with shaders

4.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of shader-slang/slang, a C++ project with 5,423 GitHub stars. SynthScan v2.0 examined 835,937 lines of code across 2666 source files, recording 3787 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 4.7 places this repository in the Likely human-written 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).

4.7
Adjusted Score
4.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.4K
Stars
C++
Language
835.9K
Lines of Code
2.7K
Files
3.8K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 0HIGH 33MEDIUM 176LOW 3578

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 3787 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Over-Commented Block3089 hits · 2610 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt661 set(SLANG_CMAKE_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})COMMENT
LOWCMakeLists.txt681# unconditional include() of slangTargets.cmake (cmake/SlangConfig.cmake.in)COMMENT
LOWtools/gfx-unit-test/link-time-options.cpp1#include "core/slang-basic.h"COMMENT
LOWtools/gfx-unit-test/shader-cache-tests.cpp1#if 0COMMENT
LOWtools/gfx-unit-test/pointer-in-buffer-roundtrip.cpp1#include "core/slang-basic.h"COMMENT
LOWtools/gfx-unit-test/gfx-test-texture-util.cpp1#include "gfx-test-texture-util.h"COMMENT
LOWtools/gfx-unit-test/gfx-test-texture-util.cpp161 return new PackedValidationTextureFormat<uint32_t>(10, 10, 10, 2);COMMENT
LOWtools/gfx-unit-test/texture-types-tests.cpp1#if 0COMMENT
LOWtools/gfx-unit-test/texture-types-tests.cpp701// one test with something bound, one test with nothing bound, one test with subset of layers (setCOMMENT
LOWtools/gfx-unit-test/pointer-in-paramblock-roundtrip.cpp1#include "core/slang-basic.h"COMMENT
LOWtools/gfx-unit-test/precompiled-module-2.cpp1#if 0COMMENT
LOWtools/gfx-unit-test/link-time-type-layout.cpp241// This test verifies that type layout information correctly propagates throughCOMMENT
LOWtools/gfx-unit-test/link-time-type-layout-nested.cpp241//COMMENT
LOW…x-unit-test/pointer-in-buffer-double-ptr-roundtrip.cpp1#include "core/slang-basic.h"COMMENT
LOWtools/gfx-unit-test/span.h1/*COMMENT
LOWtools/gfx-unit-test/span.h21#define TCB_SPAN_NO_EXCEPTIONSCOMMENT
LOWtools/gfx-unit-test/span.h41#define TCB_SPAN_HAVE_CPP14COMMENT
LOWtools/gfx-unit-test/span.h81 cond ? (void)0 : contract_violation("Expected " TCB_SPAN_STRINGIFY(cond))COMMENT
LOWtools/gfx-unit-test/span.h101COMMENT
LOWtools/gfx-unit-test/span.h121COMMENT
LOWtools/gfx-unit-test/gfx-test-util.h1#pragma onceCOMMENT
LOWtools/gfx-unit-test/neural-slang-network-converter.cpp1#include "core/slang-basic.h"COMMENT
LOWtools/gfx-unit-test/copy-texture-tests.cpp1#if 0COMMENT
LOWtools/vk-pipeline-create/main.cpp1// main.cppCOMMENT
LOWtools/coverage-html/script.js1(function () {COMMENT
LOWtools/coverage-html/lcov_io.py281 # NOTE on counting: LCOV emits one FN/FNDA pair per *mangled name*,COMMENT
LOWtools/coverage-html/lcov_io.py801COMMENT
LOWtools/platform/platform-api.h1#ifndef SLANG_PLATFORM_API_HCOMMENT
LOWtools/platform/gui.cpp1// gui.cppCOMMENT
LOWtools/platform/gui.cpp361COMMENT
LOWtools/platform/model.cpp1// model.cppCOMMENT
LOWtools/platform/model.cpp21COMMENT
LOWtools/slang-fiddle/slang-fiddle-diagnostic-defs.h1//COMMENT
LOWtools/slang-fiddle/slang-fiddle-main.cpp1// slang-fiddle-main.cppCOMMENT
LOWtools/slang-fiddle/slang-fiddle-main.cpp101 SourceView* inputSourceView =COMMENT
LOWtools/slang-fiddle/slang-fiddle-main.cpp221 builder.append("\n");COMMENT
LOWtools/slang-fiddle/slang-fiddle-main.cpp341 if (sink.getErrorCount())COMMENT
LOWtools/slang-fiddle/slang-fiddle-lua.cpp1// slang-fiddle-lua.cppCOMMENT
LOWtools/slang-fiddle/slang-fiddle-options.cpp1// slang-fiddle-options.cppCOMMENT
LOWtools/slang-embed/slang-embed.cpp1// slang-embed.cppCOMMENT
LOW…ang-capability-generator/capability-generator-main.cpp1// capabilities-generator-main.cppCOMMENT
LOW…apability-generator/slang-capability-diagnostic-defs.h1//COMMENT
LOWtools/render-test/slang-support.cpp1// slang-support.cppCOMMENT
LOWtools/render-test/slang-support.h1// slang-support.hCOMMENT
LOWtools/render-test/slang-support.h121 }COMMENT
LOWtools/render-test/render-test-main.cpp1// render-test-main.cppCOMMENT
LOWtools/render-test/render-test-main.cpp21#endifCOMMENT
LOWtools/render-test/render-test-main.cpp361 SLANG_RETURN_ON_FAIL(dataCursor.setData(srcVal->bufferData.getBuffer(), bufferSize));COMMENT
LOWtools/render-test/options.cpp1// options.cppCOMMENT
LOWtools/render-test/slang-test-device-cache.h1#pragma onceCOMMENT
LOWtools/render-test/options.h1// options.hCOMMENT
LOWtools/render-test/diagnostic-defs.h1//COMMENT
LOWtools/test-server/test-server-main.cpp1// test-server.cppCOMMENT
LOWtools/test-server/test-server-diagnostic-defs.h1//COMMENT
LOWtools/test-process/test-process-main.cpp1// test-process-main.cppCOMMENT
LOWtools/compile-perf/trend.py61 # future exotic character degrades instead of raising).COMMENT
LOWtools/compile-perf/bench.py341 last_text = ""COMMENT
LOWtools/compile-perf/sweep.py41 if not os.path.exists(args.index):COMMENT
LOWtools/compile-perf/native/api-driver.cpp1// Compile-perf API driver: measures the Slang compilation API path (sessionCOMMENT
LOWtools/compile-perf/native/api-driver.cpp21// api-driver <libslang> module-graph-bin --dir DIR --root MODULENAMECOMMENT
3029 more matches not shown…
Decorative Section Separators99 hits · 336 pts
SeverityFileLineSnippetContext
MEDIUMtools/coverage-html/slang-coverage-merge.py63# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py89# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py91# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py172# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py224# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py226# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py288# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-merge.py290# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/llvm_cov_json.py36# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/llvm_cov_json.py38# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py55# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py90# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py92# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1144# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1146# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1206# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1208# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1246# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1248# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1272# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/slang-coverage-html.py1274# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py514# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py516# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py725# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py727# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py805# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/lcov_io.py807# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py178# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py180# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py245# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py247# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py43# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py86# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py88# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py303# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/coverage-html/tests/test_merge.py305# ---------------------------------------------------------------------------COMMENT
MEDIUMsource/compiler-core/slang-rich-diagnostics-render.cpp179 // ┬──────────, where the first character there is the 'Join' one, itCOMMENT
MEDIUMtests/expected-failure-coverage.txt2# =========================COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py53# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py123# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py125# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py165# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py167# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py187 # ------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py195 # ------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py221 # ------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-image-pipeline/run_coverage.py223 # ------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-bvh-traversal/run_coverage.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/shader-coverage-bvh-traversal/run_coverage.py31# ---------------------------------------------------------------------------COMMENT
39 more matches not shown…
Hyper-Verbose Identifiers267 hits · 232 pts
SeverityFileLineSnippetContext
LOWtools/coverage-html/slang-coverage-merge.py177def synthesize_missing_functions(CODE
LOWtools/coverage-html/slang-coverage-html.py98def _escape_path_for_filename(relpath: str) -> str:CODE
LOWtools/coverage-html/slang-coverage-html.py621def _render_file_functions_row(CODE
LOWtools/coverage-html/slang-coverage-html.py848def _fn_function_coverage_cells(is_hit: bool) -> str:CODE
LOWtools/coverage-html/slang-coverage-html.py859def _fn_branch_coverage_cells(b_total: int, b_hit: int) -> str:CODE
LOWtools/coverage-html/slang-coverage-html.py921def _render_inline_functions_table(CODE
LOWtools/coverage-html/tests/test_renderer.py42 def test_empty_is_plain_spaces(self):CODE
LOWtools/coverage-html/tests/test_renderer.py110 def test_cell_bg_uses_high_lightness(self):CODE
LOWtools/coverage-html/tests/test_renderer.py117 def test_rate_cell_emits_gradient_inline_style(self):CODE
LOWtools/coverage-html/tests/test_renderer.py145 def test_no_filters_is_identity(self):CODE
LOWtools/coverage-html/tests/test_renderer.py170 def test_glob_and_regex_compose(self):CODE
LOWtools/coverage-html/tests/test_renderer.py228 def test_demo_fixture_round_trip(self):CODE
LOWtools/coverage-html/tests/test_renderer.py253 def test_refuses_foreign_output_dir(self):CODE
LOWtools/coverage-html/tests/test_renderer.py269 def test_exit_nonzero_on_corrupt_lcov(self):CODE
LOWtools/coverage-html/tests/test_renderer.py278 def test_empty_lcov_produces_empty_index(self):CODE
LOWtools/coverage-html/tests/test_renderer.py290 def test_real_lcov_with_branches_and_functions(self):CODE
LOWtools/coverage-html/tests/test_renderer.py311 def test_metric_cards_only_on_per_file_pages(self):CODE
LOWtools/coverage-html/tests/test_renderer.py342 def test_top_chrome_is_sticky(self):CODE
LOWtools/coverage-html/tests/test_renderer.py379 def test_directory_grouping_in_index(self):CODE
LOWtools/coverage-html/tests/test_renderer.py411 def test_nested_directory_levels_each_collapsible(self):CODE
LOWtools/coverage-html/tests/test_renderer.py447 def test_index_uses_full_width_no_center(self):CODE
LOWtools/coverage-html/tests/test_renderer.py464 def test_title_no_lcov_branding(self):CODE
LOWtools/coverage-html/tests/test_renderer.py480 def test_slang_brand_palette_applied(self):CODE
LOWtools/coverage-html/tests/test_renderer.py497 def test_chevron_placeholder_keeps_columns_aligned(self):CODE
LOWtools/coverage-html/tests/test_renderer.py536 def test_inline_function_table_fixed_width_layout(self):CODE
LOWtools/coverage-html/tests/test_renderer.py562 def test_invocation_cwd_resolves_repo_relative_paths(self):CODE
LOWtools/coverage-html/tests/test_renderer.py603 def test_function_dropdown_includes_branch_coverage(self):CODE
LOWtools/coverage-html/tests/test_renderer.py647 def test_index_has_expandable_function_rows(self):CODE
LOWtools/coverage-html/tests/test_renderer.py691 def test_per_file_page_no_longer_has_functions_table(self):CODE
LOWtools/coverage-html/tests/test_renderer.py721 def test_real_lcov_renders_inline_branch_column(self):CODE
LOWtools/coverage-html/tests/test_renderer.py785 def test_idempotent_modulo_timestamp(self):CODE
LOWtools/coverage-html/tests/test_renderer.py834 def test_json_input_renders_regions_column(self):CODE
LOWtools/coverage-html/tests/test_renderer.py865 def test_json_input_drops_auth_summary(self):CODE
LOWtools/coverage-html/tests/test_renderer.py879 def test_json_summary_drives_overall_numbers(self):CODE
LOWtools/coverage-html/tests/test_renderer.py895 def test_json_gz_extension_accepted(self):CODE
LOWtools/coverage-html/tests/test_renderer.py912 def test_no_auth_no_regions_zero_total(self):CODE
LOWtools/coverage-html/tests/test_renderer.py919 def test_regions_list_drives_unauthed_totals(self):CODE
LOWtools/coverage-html/tests/test_renderer.py931 def test_auth_override_overrides_regions_list(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py38 def test_summary_drives_totals(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py52 def test_zero_summary_zeros_out(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py60 def test_branches_dict_has_two_arms_per_branch(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py69 def test_functions_attached_to_primary_file(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py77 def test_regions_filter_to_code_kind(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py87 def test_segments_drive_per_line_hits(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py95 def test_lcov_specific_fields_unset(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py113 def test_half_open_at_segment_boundary(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py129 def test_final_segment_attributed_only_to_its_own_line(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py138 def test_five_element_segments_accepted(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py151 def test_deactivating_segment_skipped(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py198 def test_gz_extension_auto_decompresses(self):CODE
LOWtools/coverage-html/tests/test_llvm_cov_json.py246 def test_last_block_wins_for_duplicate_filenames(self):CODE
LOWtools/coverage-html/tests/test_merge.py56 def test_windows_backslashes_normalize_to_forward(self):CODE
LOWtools/coverage-html/tests/test_merge.py63 def test_unmatched_path_passes_through(self):CODE
LOWtools/coverage-html/tests/test_merge.py70 def test_no_prefixes_passes_through(self):CODE
LOWtools/coverage-html/tests/test_merge.py160 def test_functions_first_line_fallback(self):CODE
LOWtools/coverage-html/tests/test_merge.py170 def test_files_unique_per_input_are_preserved(self):CODE
LOWtools/coverage-html/tests/test_merge.py227 def test_no_op_when_no_sibling_has_functions(self):CODE
LOWtools/coverage-html/tests/test_merge.py236 def test_only_applies_to_files_with_no_functions(self):CODE
LOWtools/coverage-html/tests/test_merge.py255 def test_round_trip_preserves_coverage(self):CODE
LOWtools/coverage-html/tests/test_merge.py336 def test_rejects_json_input_with_exit_two(self):CODE
207 more matches not shown…
Cross-Language Confusion30 hits · 192 pts
SeverityFileLineSnippetContext
HIGHtools/compile-perf/sweep_report.py174 somewhere, where a log-log fit is undefined).STRING
HIGHtools/compile-perf/lib/workloads.py28# complexity_ladder is marked "Scaling reference (not a null)" because itCOMMENT
HIGHtools/compile-perf/lib/workloads.py266 Scaling reference (not a null): several axes co-scale, so the sweep's linear line means 'cost tracks code size' — a STRING
HIGHextras/ci-gpu-stress-loop.py206rm -f /usr/share/glvnd/egl_vendor.d/10_nvidia.json 2>/dev/null || trueCODE
HIGHextras/ci-gpu-stress-loop.py218sudo nvidia-modprobe -m 2>/dev/null || trueCODE
HIGHextras/ci-gpu-stress-loop.py227mkdir -p workspace/slang && cd workspace/slangCODE
HIGHextras/ci-gpu-stress-loop.py230chmod +x {cmake_config}/bin/* 2>/dev/null || trueCODE
HIGHextras/ci-gpu-stress-loop.py267nvidia-smi 2>&1 || echo 'NVIDIA-SMI FAILED'CODE
HIGHextras/ci-gpu-stress-loop.py270nvidia-smi -q 2>&1 || echo 'NVIDIA-SMI QUERY FAILED'CODE
HIGHextras/ci-gpu-stress-loop.py273nvidia-smi -q -d XID_ERRORS 2>&1 || echo 'XID QUERY FAILED'CODE
HIGHextras/ci-gpu-stress-loop.py276lspci 2>/dev/null | grep -i nvidia || echo 'lspci not available'CODE
HIGHextras/ci-gpu-stress-loop.py279sudo dmesg 2>/dev/null || echo '(dmesg not available)'CODE
HIGHextras/ci-gpu-stress-loop.py396 " lspci 2>/dev/null | grep -i nvidia || echo 'lspci not available'",CODE
HIGHextras/ci/analytics/ci_visualization.py203 if (ctx.measureText(test).width > maxWidth && cur) {CODE
HIGHextras/ci/analytics/ci_visualization.py204 lines.push(cur);CODE
HIGHextras/ci/analytics/ci_visualization.py210 if (cur) lines.push(cur);CODE
HIGHextras/ci/analytics/ci_visualization.py215 if (!canvas || !bg) return null;CODE
HIGHextras/ci/analytics/ci_visualization.py1177 charts.push({{chart: c, id, type, config}});CODE
HIGHextras/ci/analytics/ci_visualization.py1532 const matchWf = !wf || el.dataset.wf === wf;CODE
HIGHextras/ci/analytics/ci_visualization.py1533 const matchBr = !br || el.dataset.branch === br;CODE
HIGHextras/ci/analytics/ci_visualization.py1534 el.style.display = (matchWf && matchBr) ? 'block' : 'none';CODE
HIGHextras/ci/analytics/ci_health.py905 runnerDatasets.push({{CODE
HIGHextras/ci/analytics/ci_health.py958 if (!gpuCanvas || Object.keys(quotaChart.regionData).length === 0) continue;CODE
HIGHextras/ci/analytics/ci_health.py962 gpuDatasets.push({{CODE
HIGHextras/ci/analytics/ci_health.py973 gpuDatasets.push({{CODE
HIGHextras/ci/analytics/ci_health.py1018 if (hostedCanvas && hostedRunnerChart) {{CODE
HIGHextras/ci/analytics/ci_health.py1022 hostedDatasets.push({{CODE
HIGHextras/ci/analytics/ci_health.py1032 hostedDatasets.push({{CODE
HIGHextras/ci/analytics/ci_health.py1106 if (total == null) return '';CODE
HIGHextras/ci/analytics/ci_health.py1120 if (mqCanvas && hasMqSnapshots) {{CODE
AI Slop Vocabulary37 hits · 109 pts
SeverityFileLineSnippetContext
MEDIUMtools/compile-perf/bench.py356 # won't occur here because the bench harness always builds valid invocations.COMMENT
MEDIUMtools/compile-perf/lib/manifest.py89 # / holistic first, then the API-path workloads, then the compilerCOMMENT
MEDIUMtools/compile-perf/lib/manifest.py105 # Sweep this to see the holistic compile-time curve as a representativeCOMMENT
MEDIUM…/slang-unit-test/unit-precompiled-module-attribute.cpp18// This test checks a nuanced case:COMMENT
MEDIUMtools/slang-unit-test/unit-test-persistent-cache.cpp312// Tests the cache to be robust against various corruptions.COMMENT
MEDIUMtools/gfx/renderer-shared.h83// This setup is robust to any destruction ordering. If user releases reference to `device` first,COMMENT
MEDIUMsource/slang/slang-ir-autodiff-primal-hoist.cpp344 // Essentially we want to split the uses dominated by the true block and the false block of theCOMMENT
MEDIUMsource/slang/slang-ir-eliminate-phis.cpp421 // In an attempt to make this code as robust as possible, weCOMMENT
MEDIUMsource/slang/slang-check-overload.cpp2368 // structural/type concerns, but a more nuanced approach may beCOMMENT
MEDIUMsource/slang/slang-check-inheritance.cpp1439 // compared to C3 so that it is robust to such ordering issues.COMMENT
MEDIUMsource/slang/slang-ir-restructure.cpp539 // The logic here isn't going to be robust in edge casesCOMMENT
MEDIUMsource/slang/slang-parser.cpp7034 // TODO(tfoley): this wouldn't be robust for moreCOMMENT
MEDIUMsource/slang/slang-ir.cpp246 // this more robust.COMMENT
MEDIUMsource/slang/slang-ir-typeflow-specialize.cpp512// In the future, we may want to extend this check to something more nuanced,COMMENT
MEDIUMsource/slang/slang-ir-synthesize-active-mask.cpp228 // TODO: The logic here isn't robust against cases where weCOMMENT
MEDIUMsource/slang/slang-lower-to-ir.cpp7276 // Check the AST type (robust to generic instantiations whoseCOMMENT
MEDIUMsource/slang/slang-lower-to-ir.cpp8177 // TODO: We might want to have a more robust checkCOMMENT
MEDIUMsource/slang/slang-lower-to-ir.cpp14972 // TODO: This isn't a robust strategy if we ever have to dealCOMMENT
MEDIUMsource/slang/slang-ir-collect-global-uniforms.cpp260 // TODO: It would be more consistent and robust to *always* wrap upCOMMENT
MEDIUMsource/slang/slang-ir-ssa.cpp1603 // robust to the presence of nested functions in general.COMMENT
MEDIUMsource/slang/slang-ir-specialize.cpp2053 // TODO: We probably need/want a more robust test here.COMMENT
MEDIUMsource/slang/slang-parameter-binding.cpp3538 // TODO: Ideally we should make the layout process more robust to empty/voidCOMMENT
MEDIUMsource/slang/slang-emit-c-like.h759 // Source language (based on the more nuanced m_target)COMMENT
MEDIUMsource/slang/slang-check-decl.cpp2237 // applies to such types. A more robust fix would involve a trulyCOMMENT
MEDIUMsource/slang/slang-check-decl.cpp2238 // recursive walk of the AST declarations, and an even *more* robustCOMMENT
MEDIUMsource/slang/slang-check-decl.cpp10801 // The only robust solution long-term is probably to treat thisCOMMENT
MEDIUMsource/slang/slang-check-decl.cpp13801 // they are allowed to co-exist using these more nuanced rules.COMMENT
MEDIUMsource/slang/slang-check-constraint.cpp2354 // nodes. The visited set makes the walk robust and keeps one complexCOMMENT
MEDIUMsource/slang/slang-ir-autodiff-fwd.cpp1084 // role is robust to the order in which requirements (and the relocatedCOMMENT
MEDIUMsource/slang/slang-ir-autodiff-fwd.cpp3728 // rather than by operand position, so this is robust to the order in which the requirementsCOMMENT
MEDIUMsource/slang/slang-ir-entry-point-raw-ptr-params.cpp60 // that ranges are robust against changes to instructions outsideCOMMENT
MEDIUMexamples/gpu-printing/gpu-printing.cpp244 // TODO: This code isn't robust against strings withCOMMENT
MEDIUM.github/actions/claude-code-runner/action.yml294 # Generate token with comprehensive error handling (using Basic auth)COMMENT
MEDIUMexternal/spirv-tools-generated/options-pinned.h39// Diamond dependency problems can be avoided if all packages utilize the sameCOMMENT
MEDIUMextras/ci-gpu-stress-loop.py326 # internal harness, e.g. `getBufferResourceHandleVulkan.internal`) resultCOMMENT
MEDIUMextras/ci/analyze-ci-parallelization.py67 """Perform comprehensive parallelization analysis."""STRING
MEDIUMextras/scaler/cmd/scaler/main.go400 // jobs to finish. This enables seamless binary updates:COMMENT
Structural Annotation Overuse50 hits · 83 pts
SeverityFileLineSnippetContext
LOWREVIEW.md44## Step 1: Verify the pre-staged PR diffCOMMENT
LOWREVIEW.md76## Step 2: Determine applicable reviewers and dispatchCOMMENT
LOWREVIEW.md114## Step 3: Wait for all dispatched agents, then editorially filterCOMMENT
LOWREVIEW.md144## Step 4: Analyze changes for the reviewCOMMENT
LOWREVIEW.md159## Step 5: Post ONE review with inline commentsCOMMENT
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp433 // Step 1: Compile slang modules with -g2 + Obfuscation ONCOMMENT
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp455 // Step 2: Generate SPIR-V with separate debugCOMMENT
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp540 // Step 3: VerificationCOMMENT
LOWsource/slang/slang-ir-typeflow-specialize.cpp3414 // Step 1: treat any non-concrete table (the explicit "none"COMMENT
LOWsource/slang/slang-ir-typeflow-specialize.cpp3428 // Step 2: it is safe to dereference `witnessTab` now.COMMENT
LOW.claude/skills/slangpy-debug/SKILL.md23## Step 1: Build SlangCOMMENT
LOW.claude/skills/slangpy-debug/SKILL.md31## Step 2: Clone slangpy RepositoryCOMMENT
LOW.claude/skills/slangpy-debug/SKILL.md42## Step 3: Build and Install slangpy with Local SlangCOMMENT
LOW.claude/skills/slangpy-debug/SKILL.md63## Step 4: Install Test DependenciesCOMMENT
LOW.claude/skills/slangpy-debug/SKILL.md71## Step 5: Run TestsCOMMENT
LOW.claude/skills/slang-release-process/SKILL.md18## Step 1: Trigger Release CICOMMENT
LOW.claude/skills/slang-release-process/SKILL.md37## Step 2: Determine the VersionCOMMENT
LOW.claude/skills/slang-release-process/SKILL.md73## Step 3: Generate Release NotesCOMMENT
LOW.claude/skills/slang-release-process/SKILL.md83## Step 4: Create and Push the TagCOMMENT
LOWdocs/replays.md387### Step 1: Create or Update ProxyCOMMENT
LOWdocs/replays.md402### Step 2: Implement Methods with RecordingCOMMENT
LOWdocs/replays.md415### Step 3: Register Wrapping (if new interface)COMMENT
LOWdocs/replays.md423### Step 4: Register Replay HandlerCOMMENT
LOWdocs/replays.md431### Step 5: Add Type Serialization (if needed)COMMENT
LOWexamples/stacktrace-windows/common.cpp72// NOTE: This function is not thread-safe, due to usage of StackWalk64 and static buffers.COMMENT
LOWextras/update-spirv-tools.sh41# Step 1: Synchronize and update submodulesCOMMENT
LOWextras/update-spirv-tools.sh46# Step 2: Fetch and resolve the commit hashCOMMENT
LOWextras/update-spirv-tools.sh65# Step 3: Create a branch for the updateCOMMENT
LOWextras/update-spirv-tools.sh72# Step 4: Update the SPIRV-Tools submodule to the specified versionCOMMENT
LOWextras/update-spirv-tools.sh76# Step 5: Build spirv-tools to generate filesCOMMENT
LOWextras/update-spirv-tools.sh91# Step 6: Update SPIRV-Headers to what SPIRV-Tools usesCOMMENT
LOWextras/update-spirv-tools.sh108# Step 7: Copy the generated files from spirv-tools/build/ to spirv-tools-generated/COMMENT
LOWextras/update-spirv-tools.sh130# Step 8: Stage the changesCOMMENT
LOWextras/repro-remix.sh81# Step 1: Verify Slang Debug BuildCOMMENT
LOWextras/repro-remix.sh101# Step 2: Clone dxvk-remixCOMMENT
LOWextras/repro-remix.sh127# Step 3: Comment out Slang in packman-external.xmlCOMMENT
LOWextras/repro-remix.sh163# Step 4: Download packman dependencies (excluding Slang)COMMENT
LOWextras/repro-remix.sh175# Step 5: Create Slang directory with our Debug buildCOMMENT
LOWextras/repro-remix.sh220# Step 6: Build shadersCOMMENT
LOWextras/repro-remix.sh253# Step 7: Verify shader compilation outputCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh57# Step 1: Create VM if it doesn't existCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh78# Step 2: Create scaler user and directories on VMCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh87# Step 3: Upload binary and configCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh104# Step 4: Upload and install systemd servicesCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh130# Step 5: Start Windows scaler (Linux scaler needs its image first)COMMENT
LOWextras/scaler/internal/gcp/startup.sh105# Step 0: Remove any pre-existing runner service from the base image.COMMENT
LOWextras/scaler/internal/gcp/startup.sh262# Step 1: Read JIT config from GCP instance metadataCOMMENT
LOWextras/scaler/internal/gcp/startup.sh282# Step 2: Log GPU and system infoCOMMENT
LOWextras/scaler/internal/gcp/startup.sh287# Step 3: Run the GitHub Actions runner as the correct userCOMMENT
LOWextras/scaler/internal/gcp/startup.sh296# Step 4: Shut down the VMCOMMENT
Excessive Try-Catch Wrapping41 hits · 74 pts
SeverityFileLineSnippetContext
LOWtools/compile-perf/bench.py223 except Exception: # noqa: BLE001CODE
LOWtools/compile-perf/bench.py253 except Exception: # noqa: BLE001CODE
LOWtools/compile-perf/bench.py489 except Exception as e: # noqa: BLE001 — isolation is the contractCODE
MEDIUMtools/compile-perf/bench.py218def _detect_gnu_time():CODE
LOWtools/compile-perf/fetch_releases.py159 except Exception as e: # noqa: BLE001CODE
MEDIUMtools/compile-perf/fetch_releases.py155def verify(slangc):CODE
LOW.claude/hooks/stop.py56 except Exception:CODE
LOW.claude/hooks/stop.py114 except Exception:CODE
MEDIUM.claude/hooks/stop.py61def main():CODE
LOW.claude/hooks/pre_tool_use.py44 except Exception as e:CODE
LOW.claude/hooks/pre_tool_use.py52 except Exception:CODE
MEDIUM.claude/hooks/pre_tool_use.py9def main():CODE
LOWextras/insttrace.py80 except Exception as e:CODE
LOWextras/ci-gpu-stress-loop.py66 except Exception as e:CODE
MEDIUMextras/split-ir-dump.py168 print(f"Error: Dump file '{dump_file}' not found")CODE
MEDIUMextras/split-ir-dump.py177 print("Error: Too many arguments")CODE
LOWextras/extract-spirv-sources.py58 except Exception:CODE
LOWextras/extract-spirv-sources.py124 except Exception:CODE
LOWextras/extract-spirv-sources.py129 except Exception:CODE
LOWextras/extract-spirv-sources.py469 except Exception:CODE
MEDIUMextras/ci/analyze-ci-parallelization.py69 print("Error: No jobs to analyze")CODE
MEDIUMextras/ci/analyze-ci-parallelization.py309 print(f"Error: File not found: {sys.argv[1]}", file=sys.stderr)CODE
MEDIUMextras/ci/analyze-ci-parallelization.py312 print(f"Error: Permission denied: {sys.argv[1]}", file=sys.stderr)CODE
MEDIUMextras/ci/analyze-ci-parallelization.py315 print(f"Error: Invalid JSON in {sys.argv[1]}: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analyze-ci-parallelization.py320 print("Error: Invalid or empty JSON input", file=sys.stderr)CODE
MEDIUMextras/ci/analyze-ci-parallelization.py338 print("Error: Expected JSON with 'jobs' array or array of jobs", file=sys.stderr)CODE
MEDIUMextras/ci/analyze-ci-parallelization.py345 print("Error: No valid jobs found in input", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_job_collector.py531 print("Error: --migrate requires --output-dir", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_job_collector.py574 print(f"Error: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_post_status.py125 print(f"Error: could not read {STATUS_FILE}: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_post_status.py186 print(f"Error: commit failed:\n{result.stderr}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_post_status.py201 print(f"Error: pull --rebase failed:\n{pull.stderr}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_post_status.py248 print("Error: body cannot be empty.", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py105 print(f"Error: invalid runner config at {config_path}: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py1578 print(f"Error: no ci_jobs_*.json files found in {input_dir}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py1593 print(f"Error: failed reading {path}: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py1615 print(f"Error: input JSON not found: {args.input}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py1618 print(f"Error: invalid JSON in {args.input}: {e}", file=sys.stderr)CODE
MEDIUMextras/ci/analytics/ci_visualization.py1621 print(f"Error: failed reading {args.input}: {e}", file=sys.stderr)CODE
LOWextras/ci/analytics/ci_health.py1535 except Exception as e: # noqa: BLE001 — sampler must never break the health runSTRING
MEDIUMextras/ci/analytics/pr_collector.py215 print(f"Error: {e}", file=sys.stderr)CODE
Verbosity Indicators41 hits · 69 pts
SeverityFileLineSnippetContext
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp433 // Step 1: Compile slang modules with -g2 + Obfuscation ONCOMMENT
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp455 // Step 2: Generate SPIR-V with separate debugCOMMENT
LOW…s/slang-unit-test/unit-test-obfuscation-with-debug.cpp540 // Step 3: VerificationCOMMENT
LOWsource/slang/slang-ir-specialize-address-space.cpp149 // TODO: if the inst is a phi node, we need to check if the address space ofCOMMENT
LOWsource/slang/slang-ir-glsl-legalize.cpp4923 // Specifically, we need to check if the function hasCOMMENT
LOWsource/slang/slang-ir-typeflow-specialize.cpp3414 // Step 1: treat any non-concrete table (the explicit "none"COMMENT
LOWsource/slang/slang-ir-typeflow-specialize.cpp3428 // Step 2: it is safe to dereference `witnessTab` now.COMMENT
LOWsource/slang/slang-ir-liveness.cpp466 // We need to check if we are in the live start block, as we then need to processCOMMENT
LOWsource/slang/slang-ir-constexpr.cpp707 // In the forward direction we need to check if all of the operandsCOMMENT
LOWsource/slang/slang-ir-legalize-matrix-types.cpp613 // lowered (e.g. uint4x4), so we need to check if we should lower the operand even if weCOMMENT
LOWsource/slang/slang-check-expr.cpp728 // We need to check if the lookup should resolve to a definition in an implementation typeCOMMENT
LOWsource/slang/slang-check-constraint.cpp3884 // If they refer to different declarations, we need to check if one type's super typeCOMMENT
LOWsource/slang/slang-serialize-fossil.cpp1265 // Now we need to check if we've previously read inCOMMENT
LOWsource/slang/slang-emit-spirv.cpp5947 // we need to check if we actually write to it.COMMENT
LOWsource/slang/slang-emit-spirv.cpp10568 // First we need to check if the debug variable has a backing ordinaryCOMMENT
LOWsource/slang/slang-ir-entry-point-uniforms.cpp203 // If the base cases above failed, we need to check if we are dealing withCOMMENT
LOWextras/update-spirv-tools.sh41# Step 1: Synchronize and update submodulesCOMMENT
LOWextras/update-spirv-tools.sh46# Step 2: Fetch and resolve the commit hashCOMMENT
LOWextras/update-spirv-tools.sh65# Step 3: Create a branch for the updateCOMMENT
LOWextras/update-spirv-tools.sh72# Step 4: Update the SPIRV-Tools submodule to the specified versionCOMMENT
LOWextras/update-spirv-tools.sh76# Step 5: Build spirv-tools to generate filesCOMMENT
LOWextras/update-spirv-tools.sh91# Step 6: Update SPIRV-Headers to what SPIRV-Tools usesCOMMENT
LOWextras/update-spirv-tools.sh108# Step 7: Copy the generated files from spirv-tools/build/ to spirv-tools-generated/COMMENT
LOWextras/update-spirv-tools.sh130# Step 8: Stage the changesCOMMENT
LOWextras/repro-remix.sh81# Step 1: Verify Slang Debug BuildCOMMENT
LOWextras/repro-remix.sh101# Step 2: Clone dxvk-remixCOMMENT
LOWextras/repro-remix.sh127# Step 3: Comment out Slang in packman-external.xmlCOMMENT
LOWextras/repro-remix.sh163# Step 4: Download packman dependencies (excluding Slang)COMMENT
LOWextras/repro-remix.sh175# Step 5: Create Slang directory with our Debug buildCOMMENT
LOWextras/repro-remix.sh220# Step 6: Build shadersCOMMENT
LOWextras/repro-remix.sh253# Step 7: Verify shader compilation outputCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh57# Step 1: Create VM if it doesn't existCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh78# Step 2: Create scaler user and directories on VMCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh87# Step 3: Upload binary and configCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh104# Step 4: Upload and install systemd servicesCOMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh130# Step 5: Start Windows scaler (Linux scaler needs its image first)COMMENT
LOWextras/scaler/internal/gcp/startup.sh105# Step 0: Remove any pre-existing runner service from the base image.COMMENT
LOWextras/scaler/internal/gcp/startup.sh262# Step 1: Read JIT config from GCP instance metadataCOMMENT
LOWextras/scaler/internal/gcp/startup.sh282# Step 2: Log GPU and system infoCOMMENT
LOWextras/scaler/internal/gcp/startup.sh287# Step 3: Run the GitHub Actions runner as the correct userCOMMENT
LOWextras/scaler/internal/gcp/startup.sh296# Step 4: Shut down the VMCOMMENT
Redundant / Tautological Comments31 hits · 45 pts
SeverityFileLineSnippetContext
LOWsource/core/core_lldb.py34# Check if a pointer is nullptrCOMMENT
LOW.claude/hooks/stop.py24 # Check if this is an assistant message with TodoWrite tool useCOMMENT
LOW.claude/hooks/stop.py48 # Check if all todos are completedCOMMENT
LOW.claude/hooks/stop.py84 # Check if validation returned a tuple (incomplete todos found)COMMENT
LOW.claude/hooks/pre_tool_use.py17 # Check if this is a Bash tool with git add/commit commandCOMMENT
LOW.claude/hooks/pre_tool_use.py21 # Check if command starts with git add or git commitCOMMENT
LOWdocs/scripts/release-note.sh101 # Check if the PR is marked as a breaking changeCOMMENT
LOW.github/workflows/release.yml196 # Check if symlink existsCOMMENT
LOW.github/workflows/release.yml210 # Check if resolved file existsCOMMENT
LOW.github/workflows/ci-slang-sanitizer.yml329 # Check if all findings in this log are expected.COMMENT
LOW.github/workflows/ci-slang-sanitizer.yml351 # Check if any Direct leak block matches an expected pattern.COMMENT
LOW.github/workflows/ci-materialx-regression-test.yml177 # Check if shader was createdCOMMENT
LOW.github/actions/common-test-setup/action.yml98 # Check if the output contains "llvm" (case-insensitive)COMMENT
LOWextras/verify-documented-compiler-version.sh9# Check if required files existCOMMENT
LOWextras/verify-documented-compiler-version.sh122# Check if current version matches any expected versionCOMMENT
LOWextras/split-ir-dump.py138 # Check if we're reading from stdin or a fileCOMMENT
LOWextras/install-git-hooks.sh40 # Check if hook already existsCOMMENT
LOWextras/update-spirv-tools.sh30# Check if we're in the repository rootCOMMENT
LOWextras/check-markdown-relative-links.py75 # Check if this is a relative path outside theSTRING
LOWextras/repro-remix.sh135# Check if file existsCOMMENT
LOWextras/repro-remix.sh145# Check if Slang section is already commented outCOMMENT
LOWextras/check-inst-version-changes.sh14# Check if running in GitHub ActionsCOMMENT
LOWextras/check-inst-version-changes.sh32 # Check if slang-ir.h was modified and if the version constants were changedCOMMENT
LOWextras/check-inst-version-changes.sh34 # Check if either version constant was modifiedCOMMENT
LOWextras/check-inst-version-changes.sh49 # Check if the serialization version constant was modifiedCOMMENT
LOWextras/check-inst-version-changes.sh108# Check if we need to add warningsCOMMENT
LOWextras/check-inst-version-changes.sh110 # Check if the version constants have already been updatedCOMMENT
LOWextras/check-inst-version-changes.sh134 # Check if the serialization version has already been updatedCOMMENT
LOWextras/check-inst-version-changes.sh175 # Set output to indicate artifact was createdCOMMENT
LOWextras/check-inst-version-changes.sh184 # Set output to indicate no artifact was createdCOMMENT
LOWextras/ci/analytics/ci_post_status.py178 # Check if there are changesCOMMENT
Deep Nesting45 hits · 44 pts
SeverityFileLineSnippetContext
LOWtools/coverage-html/slang-coverage-merge.py177CODE
LOWtools/coverage-html/slang-coverage-html.py1033CODE
LOWtools/coverage-html/lcov_io.py523CODE
LOWtools/shader-coverage/slang-coverage-to-lcov.py147CODE
LOWtools/shader-coverage/slang-coverage-to-lcov.py190CODE
LOWtools/compile-perf/breakdown.py385CODE
LOWtools/compile-perf/track.py44CODE
LOWtools/compile-perf/track.py214CODE
LOWtools/compile-perf/bench.py34CODE
LOWtools/compile-perf/bench.py230CODE
LOWtools/compile-perf/fetch_releases.py105CODE
LOWtools/compile-perf/sweep.py25CODE
LOWtools/compile-perf/lib/analyze.py110CODE
LOW.claude/hooks/stop.py9CODE
LOW.claude/hooks/stop.py61CODE
LOW.claude/hooks/pre_tool_use.py9CODE
LOW…slang-review-post-github/scripts/post_github_review.py175CODE
LOW…slang-review-post-github/scripts/post_github_review.py424CODE
LOWextras/insttrace.py20CODE
LOWextras/ci-gpu-stress-loop.py284CODE
LOWextras/ci-gpu-stress-loop.py351CODE
LOWextras/ci-gpu-stress-loop.py627CODE
LOWextras/split-ir-dump.py55CODE
LOWextras/extract-spirv-sources.py452CODE
LOWextras/extract-spirv-sources.py165CODE
LOWextras/extract-spirv-sources.py323CODE
LOWextras/extract-spirv-sources.py167CODE
LOWextras/check-markdown-relative-links.py44CODE
LOWextras/ci/gh_api.py90CODE
LOWextras/ci/ci-queue-status.py108CODE
LOWextras/ci/ci-queue-status.py266CODE
LOWextras/ci/ci-queue-status.py404CODE
LOWextras/ci/ci-queue-status.py460CODE
LOWextras/ci/analytics/ci_job_collector.py205CODE
LOWextras/ci/analytics/ci_job_collector.py435CODE
LOWextras/ci/analytics/ci_post_status.py228CODE
LOWextras/ci/analytics/ci_visualization.py341CODE
LOWextras/ci/analytics/ci_visualization.py653CODE
LOWextras/ci/analytics/ci_visualization.py663CODE
LOWextras/ci/analytics/ci_health.py404CODE
LOWextras/ci/analytics/ci_health.py1149CODE
LOWextras/ci/analytics/ci_health.py1235CODE
LOWextras/ci/analytics/ci_hosted_runner_usage.py124CODE
LOWextras/ci/analytics/pr_collector.py80CODE
LOWextras/ci/analytics/tests/test_ci_analytics.py290CODE
Self-Referential Comments6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM.claude/hooks/stop.py88 # Create a detailed message about incomplete todosCOMMENT
MEDIUM.github/workflows/ci-slang-build.yml275 # Create a staging directory for artifacts with config-specific subdirectoryCOMMENT
MEDIUM.github/workflows/ci-slang-build-container.yml173 # Create a staging directory for artifacts with config-specific subdirectoryCOMMENT
MEDIUMextras/split-ir-dump.py115 # Create an index fileCOMMENT
MEDIUMextras/repro-remix.sh182# Create the directory (packman didn't create it since we commented it out)COMMENT
MEDIUMextras/ci/analytics/tests/test_ci_analytics.py1126 # Create a monthly file and a non-monthly fileCOMMENT
Modern AI Meta-Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/pr-board-sync.yml8# on the event-driven happy path,COMMENT
MEDIUM.github/workflows/pr-board-sync.yml33# This is the event-driven half of the slang-pr-maintenance state machine. ItCOMMENT
MEDIUM.github/workflows/nightly-slang-test.yml5# This is Phase B2 of the agentic-tests framework — the suite isCOMMENT
MEDIUM.github/workflows/nightly-slang-test.yml119 # `OpSource Unknown`. The agentic suite was generated againstCOMMENT
MEDIUM.github/workflows/ci-slang-coverage-test.yml272 # --with-agentic-tests rolls the doc-anchored bundles underCOMMENT
MEDIUM.github/workflows/ci-slang-coverage-test.yml276 # agentic pass uses the same gate as nightly-slang-test.ymlCOMMENT
TODO Padding11 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/gfx-unit-test/gfx-test-texture-util.cpp165 // TODO: Add testing support for BC formatsCOMMENT
LOWtools/slang-fiddle/slang-fiddle-template.cpp417 // TODO: implement the important stuff...COMMENT
LOWtools/gfx/immediate-renderer-base.cpp708 // TODO: implement fence signal.COMMENT
LOWtools/gfx/cuda/cuda-command-queue.cpp45 // TODO: implement fence.COMMENT
LOWsource/slang/slang-parser.cpp101// TODO: implement two pass parsing for file reference and struct type recognitionCOMMENT
LOWsource/slang/slang-compile-request.cpp613 // TODO: implement the logic to output generated documents to target directory/zip file.COMMENT
LOWsource/slang/slang-ir-legalize-types.cpp359 // TODO: implement legalization of non-simple return typesCOMMENT
LOWsource/slang/slang-ir-legalize-types.cpp455 // TODO: implement legalization of non-simple return typesCOMMENT
LOWsource/slang/slang-ir-legalize-types.cpp555 // TODO: implement legalization of non-simple return typesCOMMENT
LOWsource/slang/slang-ir-legalize-types.cpp689 // TODO: implement legalization of non-simple return typesCOMMENT
LOWsource/slang/slang-reflection-api.cpp254 // TODO: implement more helpers hereCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsource/slang/slang-ast-decl.h308 // we have auto-generated code for things like dumping and serializationCOMMENT
HIGHsource/slang/slang-ir-insts.h3371 // Keep the 1,2,3,4 parameter helper methods as requestedCOMMENT
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippetContext
LOWsource/compiler-core/slang-spirv-core-grammar.h70 // Adding to this? Don't forget to update the embedding generatorCOMMENT
LOWsource/compiler-core/slang-perfect-hash.cpp42 // If you change this, don't forget to also sync the version below inCOMMENT
MEDIUMsource/slang/slang-ir-legalize-varying-params.cpp796 // As discussed above, sometimes `varLayout` will refer to anCOMMENT
MEDIUMsource/slang/slang-ir-synthesize-active-mask.cpp1567 // As discussed above, we only process the first `case` withCOMMENT
LOWsource/slang/slang-lower-to-ir.cpp15620 // that if we have obfuscation enabled we don't forget to obfuscate.COMMENT
LOWexternal/bump-glslang.sh234echo "Please also don't forget to push the new commits in external/glslang and"CODE
Unused Imports11 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/coverage-html/slang-coverage-merge.py38CODE
LOWtools/coverage-html/slang-coverage-html.py38CODE
LOWtools/coverage-html/lcov_io.py20CODE
LOWtools/coverage-html/tests/test_merge.py11CODE
LOW.claude/hooks/pre_tool_use.py6CODE
LOW…slang-review-post-github/scripts/post_github_review.py8CODE
LOW…-review-post-github/scripts/test_post_github_review.py4CODE
LOWextras/split-ir-dump.py25CODE
LOWextras/extract-spirv-sources.py21CODE
LOWextras/ci/analyze-ci-parallelization.py32CODE
LOWextras/ci/ci-queue-status.py26CODE
Fake / Example Data7 hits · 9 pts
SeverityFileLineSnippetContext
LOWtools/coverage-html/tests/test_renderer.py501 out_dir = os.path.join(self.tmp, "placeholder")CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp50 const String str("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp50 const String str("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp60 const String str1("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp60 const String str1("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp74 const String str("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWtools/slang-unit-test/unit-test-crypto.cpp74 const String str("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
Example Usage Blocks6 hits · 8 pts
SeverityFileLineSnippetContext
LOWexamples/shader-coverage-tutorial/run-tutorial.sh11# Usage:COMMENT
LOWextras/falcor.sh38# Usage:COMMENT
LOWextras/compile-sascha-willems-shaders.sh11# Usage:COMMENT
LOWextras/repro-remix.sh10# Usage:COMMENT
LOWextras/scaler/deploy/update-scaler.sh6# Usage:COMMENT
LOWextras/scaler/deploy/setup-scaler-host.sh12# Usage:COMMENT
AI Response Leakage1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/user-guide/06-interfaces-generics.md21Slang's syntax for defining interfaces is similar to `interface`s in C# and `protocol`s in Swift. In this example, the `CODE
AI Structural Patterns1 hit · 0 pts
SeverityFileLineSnippetContext
LOW…-review-post-github/scripts/test_post_github_review.py23CODE