Repository Analysis

cactus-compute/cactus

Quantization, kernels, runtime and inference engine for mobiles, wearables, smart home and robots.

5.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cactus-compute/cactus, a C++ project with 5,554 GitHub stars. SynthScan v2.0 examined 223,044 lines of code across 583 source files, recording 1135 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 5.3 places this repository in the Low AI signal band.

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

5.3
Adjusted Score
5.3
Raw Score
100%
Time Factor
2026-07-31
Last Push
5.6K
Stars
C++
Language
223.0K
Lines of Code
583
Files
1.1K
Pattern Hits
2026-08-02
Scan Date
0.00
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 0MEDIUM 31LOW 1104

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 1135 distinct pattern matches across 12 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 Identifiers614 hits · 625 pts
SeverityFileLineSnippetContext
LOWpython/cactus/models/needle/modeling_needle.py67def _rotary_tables_for_position_ids(CODE
LOWpython/cactus/models/needle/__init__.py4def register_with_transformers() -> None:CODE
LOWpython/cactus/models/needle/tokenization_needle.py79 def build_inputs_with_special_tokens(CODE
LOWpython/cactus/models/needle/tokenization_needle.py108 def create_token_type_ids_from_sequences(CODE
LOWpython/cactus/cli/transpile.py12def _weights_dir_looks_transpile_ready(weights_dir):CODE
LOWpython/cactus/cli/runtime.py26def _python_runtime_library_path():CODE
LOWpython/cactus/cli/runtime.py34def _public_cactus_api_symbols(static_lib):CODE
LOWpython/cactus/cli/runtime.py56def _link_python_runtime_library(*, static_lib, library_path):CODE
LOWpython/cactus/cli/runtime.py99def ensure_python_runtime_library():CODE
LOWpython/cactus/cli/model.py133def _default_multimodal_assets():CODE
LOWpython/cactus/cli/model.py151def _remove_stale_transpile_artifacts(output_dir):CODE
LOWpython/cactus/cli/utils.py236def validate_extracted_bundle(output_dir: Path) -> None:CODE
LOWpython/cactus/transpile/component_partition.py27def _normalized_name_candidates(CODE
LOWpython/cactus/transpile/component_partition.py53def classify_component_semantic_candidates(CODE
LOWpython/cactus/transpile/component_partition.py266def _clone_value_for_subgraph(value: IRValue, *, as_input: bool) -> IRValue:CODE
LOWpython/cactus/transpile/component_partition.py274def extract_component_subgraphs(graph: IRGraph) -> dict[str, IRGraph]:CODE
LOWpython/cactus/transpile/capture_pytorch.py95def _inject_export_safe_kwargs(model: torch.nn.Module, kwargs: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/cactus/transpile/capture_pytorch.py114def _call_transpile_metadata_provider(module: torch.nn.Module, args: tuple[Any, ...], kwargs: dict[str, Any]) -> dict[stCODE
LOWpython/cactus/transpile/capture_pytorch.py131def _collect_transpile_metadata(model: torch.nn.Module, args: tuple[Any, ...], kwargs: dict[str, Any]) -> dict[str, Any]CODE
LOWpython/cactus/transpile/capture_pytorch.py161def _prepare_import_graph_module(ep: Any, args: tuple[Any, ...], kwargs: dict[str, Any]) -> Any:CODE
LOWpython/cactus/transpile/capture_pytorch.py175def _suppress_transformers_model_output_registration():CODE
LOWpython/cactus/transpile/capture_pytorch.py195 def _noop_register_model_output_pytree_node(*_args: Any, **_kwargs: Any) -> None:CODE
LOWpython/cactus/transpile/capture_pytorch.py279def capture_model_with_fallback(model, args, kwargs=None) -> CapturedModel:CODE
LOWpython/cactus/transpile/capture_pytorch.py297def _try_materialize_int_tuple(values: Iterable[Any]) -> tuple[int, ...] | None:CODE
LOWpython/cactus/transpile/tdt_runtime.py80def _with_parakeet_tdt_aliases(state_dict: dict[str, torch.Tensor]) -> dict[str, torch.Tensor]:CODE
LOWpython/cactus/transpile/tdt_runtime.py115def prepare_parakeet_tdt_audio_features(CODE
LOWpython/cactus/transpile/tdt_runtime.py130def greedy_decode_parakeet_tdt_token_ids(CODE
LOWpython/cactus/transpile/tdt_runtime.py206def _initial_parakeet_tdt_blank_id(config: ParakeetTDTConfig) -> int:CODE
LOWpython/cactus/transpile/tdt_runtime.py214def _effective_parakeet_tdt_blank_id(CODE
LOWpython/cactus/transpile/tdt_runtime.py311def _load_parakeet_vocabulary(root: Path) -> tuple[str, ...]:CODE
LOWpython/cactus/transpile/tdt_runtime.py382def _relative_position_embeddings(*, seq_len: int, hidden_dim: int, device: torch.device, dtype: torch.dtype) -> torch.TCODE
LOWpython/cactus/transpile/tdt_runtime.py840def build_parakeet_tdt_component_specs(CODE
LOWpython/cactus/transpile/weight_compat.py74def ensure_binding_compatible(binding: WeightBinding, source_tensor: object | None = None) -> WeightBinding:CODE
LOWpython/cactus/transpile/weight_compat.py79def ensure_embedding_binding_compatible(binding: WeightBinding) -> WeightBinding:CODE
LOWpython/cactus/transpile/weight_compat.py167def _can_materialize_compat_weight(source_tensor: object | None) -> bool:CODE
LOWpython/cactus/transpile/weight_compat.py179def _compat_weight_scale_factor(source_path: Path) -> float:CODE
LOWpython/cactus/transpile/weight_compat.py213def _materialize_source_cq_weight(CODE
LOWpython/cactus/transpile/weight_compat.py307def _materialize_cq_embedding_cache(CODE
LOWpython/cactus/transpile/weight_compat.py429def _estimate_embedding_input_scale(CODE
LOWpython/cactus/transpile/weight_compat.py487def _quantize_orthogonal_chunk(CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py140def load_jax_user_graph_bundle(bundle_dir_or_manifest: str | Path) -> LoadedJaxUserGraphBundle:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py187def _resolve_components_manifest(bundle_dir_or_manifest: str | Path) -> Path:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py234def _embed_materialized_bound_constants(transpiled_graph: TranspiledGraph) -> None:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py245def _serialize_json_compatible(value: Any) -> Any:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py326def build_jax_user_graph_bundle(CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py368def build_jax_generation_graph_bundle(CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py415def capture_jax_generation_graphs(CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py480def _write_jax_user_graph_bundle(CODE
LOWpython/cactus/transpile/model_profiles.py277def multimodal_context_tokens_for_model_type(model_type: str, default: int) -> int:CODE
LOWpython/cactus/transpile/hf_model.py187def _slugify_model_artifact_name(value: str) -> str:CODE
LOWpython/cactus/transpile/hf_model.py191def _default_artifact_dir_for_model(model_id: str) -> Path:CODE
LOWpython/cactus/transpile/hf_model.py224def _component_graphs_to_payload(component_graphs: dict[str, IRGraph]) -> dict[str, object]:CODE
LOWpython/cactus/transpile/hf_model.py231def _binding_entries_by_node_id(CODE
LOWpython/cactus/transpile/hf_model.py243def _externalize_shared_rope_tables(CODE
LOWpython/cactus/transpile/hf_model.py515def _aggregate_component_counts(component_graphs: dict[str, IRGraph]) -> dict[str, int]:CODE
LOWpython/cactus/transpile/hf_model.py522def _aggregate_component_op_counts(component_graphs: dict[str, IRGraph]) -> Counter:CODE
LOWpython/cactus/transpile/hf_model.py529def _count_component_weight_bindings(component_graphs: dict[str, IRGraph]) -> int:CODE
LOWpython/cactus/transpile/hf_model.py1857def _resolve_text_padding_token_id(tokenizer: object | None) -> int:CODE
LOWpython/cactus/transpile/hf_model.py1865def _resolve_graph_safe_text_padding_token_id(CODE
LOWpython/cactus/transpile/hf_model.py74def _ensure_transformers_supports_model_type(model_type: str) -> str | None:CODE
554 more matches not shown…
Excessive Try-Catch Wrapping142 hits · 148 pts
SeverityFileLineSnippetContext
LOWpython/cactus/server.py83 except Exception:CODE
LOWpython/cactus/server.py312 except Exception:CODE
LOWpython/cactus/server.py610 except Exception as exc:CODE
LOWpython/cactus/server.py909 except Exception as exc:CODE
LOWpython/cactus/cli/upload.py48 except Exception:CODE
LOWpython/cactus/cli/code.py57 except Exception:CODE
LOWpython/cactus/cli/code.py78 except Exception:CODE
LOWpython/cactus/cli/code.py92 except Exception:CODE
LOWpython/cactus/cli/code.py189 except Exception:CODE
MEDIUMpython/cactus/cli/code.py50def _discover_local_model() -> str | None:CODE
MEDIUMpython/cactus/cli/__init__.py495 print(f"Error: `cactus {args.command}` requires a git clone of the cactus repository.")STRING
LOWpython/cactus/cli/serve.py28 except Exception as exc:CODE
LOWpython/cactus/cli/model.py269 except Exception as e:CODE
LOWpython/cactus/cli/utils.py153 except Exception:CODE
LOWpython/cactus/cli/utils.py406 except Exception as exc:CODE
LOWpython/cactus/cli/config_utils.py30 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py169 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py186 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py227 except Exception as exc:CODE
LOWpython/cactus/transpile/capture_pytorch.py251 except Exception as exc:CODE
LOWpython/cactus/transpile/capture_pytorch.py257 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py261 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py282 except Exception:CODE
LOWpython/cactus/transpile/capture_pytorch.py302 except Exception:CODE
MEDIUMpython/cactus/transpile/capture_pytorch.py279def capture_model_with_fallback(model, args, kwargs=None) -> CapturedModel:CODE
LOWpython/cactus/transpile/tdt_runtime.py328 except Exception:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py281 except Exception:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py314 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py183 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py238 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1851 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1144 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1236 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1293 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1304 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1309 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py1584 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py2073 except Exception as exc: # pragma: no coverCODE
LOWpython/cactus/transpile/hf_model.py2404 except Exception as exc: # pragma: no coverCODE
LOWpython/cactus/transpile/hf_model.py2429 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2469 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2495 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2546 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2615 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2651 except Exception as exc:CODE
LOWpython/cactus/transpile/hf_model.py2670 except Exception:CODE
LOWpython/cactus/transpile/hf_model.py2688 except Exception:CODE
LOWpython/cactus/transpile/multimodal_runtime.py143 except Exception as exc: # pragma: no coverCODE
LOWpython/cactus/transpile/multimodal_runtime.py185 except Exception as exc: # pragma: no coverCODE
LOWpython/cactus/transpile/multimodal_runtime.py422 except Exception:CODE
LOWpython/cactus/transpile/multimodal_runtime.py547 except Exception as exc:CODE
LOWpython/cactus/transpile/multimodal_runtime.py555 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py25except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py28 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py331 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py461 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py1418 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py1981 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py3045 except Exception:CODE
LOWpython/cactus/transpile/model_adapters.py3095 except Exception:CODE
82 more matches not shown…
Over-Commented Block133 hits · 117 pts
SeverityFileLineSnippetContext
LOWcactus-graph/cactus_graph.h1#ifndef CACTUS_GRAPH_HCOMMENT
LOWcactus-graph/tests/test_utils.h1#pragma onceCOMMENT
LOWcactus-graph/src/io.cpp1#include "../cactus_graph.h"COMMENT
LOWcactus-graph/src/execute.cpp1#include "../cactus_graph.h"COMMENT
LOWcactus-graph/src/ops_nn.cpp1#include "../cactus_graph.h"COMMENT
LOW…coding-agent/src/modes/interactive/interactive-mode.ts3181 // `signal-exit` checks the listener list during the same SIGTERM/SIGHUPCOMMENT
LOWcactus-kernels/metal_backend.h1#ifndef CACTUS_METAL_BACKEND_HCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h181#if defined(STB_IMAGE_RESIZE_IMPLEMENTATION) || defined(STB_IMAGE_RESIZE2_IMPLEMENTATION)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h201COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h221#pragma fp_contract(off)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h521 return (unsigned char) ((bias + scale*t) >> 16);COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h541COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h561 #endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h581COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h601 #endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h621 #define STBIR_NO_UNROLL( ptr )COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h641#endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h661#ifdef STBIR_SSE2COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h681 #define stbir__simdf_zeroP() _mm_setzero_ps()COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h721 #define stbir__simdf_convert_float_to_int( f ) _mm_cvtt_ss2si(f)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h741 #define stbir__simdf_madd( out, add, mul1, mul2 ) (out) = _mm_add_ps( add, _mm_mul_ps( mul1, mul2 ) )COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h821 #elseCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h861 #define stbir__simdf8_store( ptr, out ) _mm256_storeu_ps( (float*)(ptr), out )COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h981 static __m256i stbir_22223333 = { STBIR__CONST_4d_32i( 2, 2, 2, 2 ), STBIR__CONST_4d_32i( 3, 3, 3, 3 ) };COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1001 #define stbir__simdf8_0123to12301230( out, in ) (out) = _mm256_shuffle_ps ( in, in, (1<<0)+(2<<2)+(3<<4)+(0<<6) )COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1021 #define stbir__simdf8_madd_mem( out, add, mul, ptr ) (out) = _mm256_add_ps( add, _mm256_mul_ps( mul, _mm256_loadu_psCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1061COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1081 #define stbir__simdf_load2hmerge( out, reg, ptr ) (out) = vcombine_f32( vget_low_f32(reg), vld1_f32( (float const*)(ptCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1121 #define stbir__simdf_convert_float_to_int( f ) vgetq_lane_s32(vcvtq_s32_f32(f), 0)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1141 #define stbir__simdf_madd_mem( out, add, mul, ptr ) (out) = vaddq_f32( add, vmulq_f32( mul, vld1q_f32( (float const*)(COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1281 #define STBIR__CONSTI(var) (*(const uint32x4_t*)var)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1321 return vget_lane_f32(r, 0);COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1341 #define stbir__simdf_load1z( out, ptr ) (out) = wasm_v128_load32_zero( (void const*)(ptr) ) // top values muCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1381 out1 = wasm_u32x4_extend_high_u16x8( ireg ); \COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1401COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1501#endif // NO SIMDCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1521 #define stbir__simdfX_convert_float_to_i32 stbir__simdf8_convert_float_to_i32COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1541 #define stbir__simdiX_load stbir__simdi_loadCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1561 #define STBIR_max_uint16_as_floatX STBIR__CONSTF(STBIR_max_uint16_as_float)COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h1861#endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h2041COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h2061#include <math.h>COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h3201 STBIR_PROFILE_BUILD_END( pivot );COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h3221#define stbir__encode_order3 3COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h3241#define stbir__decode_swizzleCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h5161#include STBIR__HEADER_FILENAMECOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h5181#define STBIR__vertical_channels 3COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h5201#define STB_IMAGE_RESIZE_VERTICAL_CONTINUECOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h7081#undef STBIR_2CHANNELCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h7101#define STBIR_strs_join2( start, mid, end ) start##mid##endCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h7121#define stbir__decode_order0 0COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h8561 float * end_output = ( (float*) output ) + width_times_channels;COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h8681}COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h8701#undef stbir_scalar_lo_clampCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h8721#endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h8741#endifCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h9081#undef STB_IMAGE_RESIZE_DO_HORIZONTALSCOMMENT
LOWcactus-kernels/libs/stb_image_resize2.h9421 STBIR_chans(stbir__horizontal_gather_,_channels_with_10_coeffs),COMMENT
LOWcactus-kernels/libs/stb_image_resize2.h9441#endif // HORIZONALSCOMMENT
LOWcactus-kernels/libs/stb_image.h21typedef unsigned char stbi_uc;COMMENT
73 more matches not shown…
Unused Imports118 hits · 114 pts
SeverityFileLineSnippetContext
LOWpython/cactus/server.py2CODE
LOWpython/cactus/__init__.py3CODE
LOWpython/cactus/__init__.py5CODE
LOWpython/cactus/__init__.py5CODE
LOWpython/cactus/__init__.py5CODE
LOWpython/cactus/__init__.py5CODE
LOWpython/cactus/__init__.py6CODE
LOWpython/cactus/models/needle/modeling_needle.py3CODE
LOWpython/cactus/models/needle/configuration_needle.py3CODE
LOWpython/cactus/models/needle/tokenization_needle.py3CODE
LOWpython/cactus/cli/transpile.py1CODE
LOWpython/cactus/cli/runtime.py1CODE
LOWpython/cactus/cli/model.py2CODE
LOWpython/cactus/cli/utils.py1CODE
LOWpython/cactus/transpile/runtime_compat.py1CODE
LOWpython/cactus/transpile/component_partition.py1CODE
LOWpython/cactus/transpile/tdt_runtime.py1CODE
LOWpython/cactus/transpile/weight_compat.py1CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py1CODE
LOWpython/cactus/transpile/model_profiles.py1CODE
LOWpython/cactus/transpile/hf_model.py1CODE
LOWpython/cactus/transpile/aten_ops.py1CODE
LOWpython/cactus/transpile/normalize.py1CODE
LOWpython/cactus/transpile/multimodal_runtime.py1CODE
LOWpython/cactus/transpile/model_adapters.py1CODE
LOWpython/cactus/transpile/capture_jax.py1CODE
LOWpython/cactus/transpile/importers.py1CODE
LOWpython/cactus/transpile/component_plan.py1CODE
LOWpython/cactus/transpile/ops.py1CODE
LOWpython/cactus/transpile/model_patterns.py1CODE
LOWpython/cactus/transpile/lower.py1CODE
LOWpython/cactus/transpile/import_semantics.py1CODE
LOWpython/cactus/transpile/audio_preprocess.py1CODE
LOWpython/cactus/transpile/jax_semantic_rewrites.py1CODE
LOWpython/cactus/transpile/import_ir.py1CODE
LOWpython/cactus/transpile/weight_binding.py1CODE
LOWpython/cactus/transpile/component_pipeline.py1CODE
LOWpython/cactus/transpile/runtime_support.py1CODE
LOWpython/cactus/transpile/runtime_support.py82CODE
LOWpython/cactus/transpile/optimize_graph.py1CODE
LOWpython/cactus/transpile/media_limits.py1CODE
LOWpython/cactus/transpile/fusion/attention.py1CODE
LOWpython/cactus/transpile/fusion/linear.py1CODE
LOWpython/cactus/transpile/fusion/__init__.py1CODE
LOWpython/cactus/transpile/fusion/__init__.py2CODE
LOWpython/cactus/transpile/fusion/__init__.py3CODE
LOWpython/cactus/transpile/fusion/__init__.py4CODE
LOWpython/cactus/transpile/fusion/__init__.py5CODE
LOWpython/cactus/transpile/fusion/__init__.py6CODE
LOWpython/cactus/transpile/fusion/__init__.py7CODE
LOWpython/cactus/transpile/fusion/__init__.py8CODE
LOWpython/cactus/transpile/fusion/__init__.py9CODE
LOWpython/cactus/transpile/fusion/__init__.py10CODE
LOWpython/cactus/transpile/fusion/__init__.py11CODE
LOWpython/cactus/transpile/fusion/__init__.py12CODE
LOWpython/cactus/transpile/fusion/__init__.py13CODE
LOWpython/cactus/transpile/fusion/__init__.py14CODE
LOWpython/cactus/transpile/fusion/__init__.py15CODE
LOWpython/cactus/transpile/fusion/__init__.py16CODE
LOWpython/cactus/transpile/fusion/__init__.py17CODE
58 more matches not shown…
Decorative Section Separators22 hits · 70 pts
SeverityFileLineSnippetContext
MEDIUMpython/cactus/bindings/cactus.py911# ── Telemetry ────────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py934# ── Model lifecycle ──────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py984# ── LLM completion ───────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1031# ── Audio / speech ───────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1142# ── Embeddings ───────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1184# ── Tokenization ─────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1225# ── RAG ──────────────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1241# ── Vector index ─────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py1397# ── Logging ──────────────────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py2617 # ── Audio / signal processing ───────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py2689 # ── Image processing ─────────────────────────────────────────────COMMENT
MEDIUMpython/cactus/bindings/cactus.py2717 # ── Introspection ────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py17# ── Import and structure tests ──────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py48# ── Helper function tests ───────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py461# ── Error path tests ──────────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py202# ── Model ID resolution tests ──────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py205# ── TranspileOptions tests ──────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py248# ── CLI parser tests ────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py345# ── Index API tests ────────────────────────────────────────────────COMMENT
MEDIUMpython/tests/test_bindings.py426# ── Streaming callback tests ──────────────────────────────────────COMMENT
MEDIUMcactus-kernels/tests/test_matmul.cpp270// ══════════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMcactus-kernels/tests/test_matmul.cpp272// ══════════════════════════════════════════════════════════════════════════════COMMENT
Deep Nesting66 hits · 56 pts
SeverityFileLineSnippetContext
LOWpython/cactus/server.py343CODE
LOWpython/cactus/cli/clean.py14CODE
LOWpython/cactus/cli/utils.py373CODE
LOWpython/cactus/transpile/component_partition.py164CODE
LOWpython/cactus/transpile/component_partition.py274CODE
LOWpython/cactus/transpile/tdt_runtime.py130CODE
LOWpython/cactus/transpile/tdt_runtime.py311CODE
LOWpython/cactus/transpile/weight_compat.py179CODE
LOWpython/cactus/transpile/weight_compat.py307CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py104CODE
LOWpython/cactus/transpile/hf_model.py604CODE
LOWpython/cactus/transpile/hf_model.py1829CODE
LOWpython/cactus/transpile/hf_model.py2363CODE
LOWpython/cactus/transpile/hf_model.py2793CODE
LOWpython/cactus/transpile/aten_ops.py13CODE
LOWpython/cactus/transpile/multimodal_runtime.py98CODE
LOWpython/cactus/transpile/multimodal_runtime.py489CODE
LOWpython/cactus/transpile/model_adapters.py1861CODE
LOWpython/cactus/transpile/model_adapters.py1968CODE
LOWpython/cactus/transpile/model_adapters.py1988CODE
LOWpython/cactus/transpile/model_adapters.py4417CODE
LOWpython/cactus/transpile/model_adapters.py7152CODE
LOWpython/cactus/transpile/capture_jax.py153CODE
LOWpython/cactus/transpile/capture_jax.py184CODE
LOWpython/cactus/transpile/capture_jax.py849CODE
LOWpython/cactus/transpile/importers.py264CODE
LOWpython/cactus/transpile/importers.py1129CODE
LOWpython/cactus/transpile/component_plan.py23CODE
LOWpython/cactus/transpile/lower.py753CODE
LOWpython/cactus/transpile/lower.py3095CODE
LOWpython/cactus/transpile/jax_semantic_rewrites.py324CODE
LOWpython/cactus/transpile/jax_semantic_rewrites.py350CODE
LOWpython/cactus/transpile/import_ir.py30CODE
LOWpython/cactus/transpile/import_ir.py76CODE
LOWpython/cactus/transpile/import_ir.py130CODE
LOWpython/cactus/transpile/optimize_graph.py499CODE
LOWpython/cactus/transpile/optimize_graph.py712CODE
LOWpython/cactus/transpile/optimize_graph.py844CODE
LOWpython/cactus/transpile/optimize_graph.py1161CODE
LOWpython/cactus/transpile/optimize_graph.py1553CODE
LOWpython/cactus/transpile/fusion/common.py56CODE
LOWpython/cactus/transpile/fusion/deltanet.py169CODE
LOWpython/cactus/transpile/fusion/deltanet.py233CODE
LOWpython/cactus/transpile/canonicalize/cleanup.py293CODE
LOWpython/cactus/transpile/canonicalize/cleanup.py417CODE
LOWpython/cactus/transpile/canonicalize/utils.py152CODE
LOWpython/cactus/bindings/cactus.py2765CODE
LOWpython/cactus/bindings/cactus.py2957CODE
LOWpython/cactus/convert/cli.py139CODE
LOWpython/cactus/convert/cli.py278CODE
LOWpython/cactus/convert/cli.py388CODE
LOWpython/cactus/convert/model_adapters/naming.py229CODE
LOWpython/cactus/convert/model_adapters/naming.py277CODE
LOWpython/cactus/convert/model_adapters/naming.py317CODE
LOWpython/cactus/convert/model_adapters/adapters.py674CODE
LOWpython/cactus/convert/calibration/hessian.py35CODE
LOWpython/cactus/convert/calibration/hessian.py170CODE
LOWpython/cactus/convert/quantization/cq.py245CODE
LOWpython/cactus/convert/export/qdq.py230CODE
LOWpython/cactus/convert/export/qdq.py322CODE
6 more matches not shown…
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMpython/README.md256### RAGCOMMENT
MEDIUMpython/cactus/server.py743 # No LLM available — allow serving a non-LLM bundle (e.g. an embedding model).COMMENT
MEDIUMpython/cactus/bindings/cactus.py1225# ── RAG ──────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/cactus_engine.md1051### Complete RAG ExampleCOMMENT
MEDIUMdocs/cactus_index.md414### RAG (Retrieval-Augmented Generation)COMMENT
Fake / Example Data11 hits · 14 pts
SeverityFileLineSnippetContext
LOWpython/cactus/transpile/component_partition.py104 "placeholder",CODE
LOWpython/cactus/transpile/capture_pytorch.py56 return [node for node in self.graph.nodes if node.op == "placeholder"]CODE
LOWpython/cactus/transpile/README.md328 if node.op == "placeholder":CODE
LOWpython/cactus/transpile/lower.py1324 dummy_key = _materialize_constant_tensor(CODE
LOWpython/cactus/transpile/lower.py1328 dummy_value = _materialize_constant_tensor(CODE
LOWpython/cactus/transpile/lower.py1334 dummy_key,CODE
LOWpython/cactus/transpile/lower.py1335 dummy_value,CODE
LOWpython/cactus/transpile/import_ir.py157 if sub_node.op == "placeholder":CODE
LOWpython/cactus/transpile/import_ir.py209 if node.op == "placeholder":CODE
LOWcactus-code/packages/tui/src/components/markdown.ts541 // For mailto: links strip the prefix (autolinked emails use text="foo@bar.com"COMMENT
LOWcactus-engine/tests/test_model_loading.cpp31 write_file(dir + "/dummy.bin", "placeholder");CODE
Structural Annotation Overuse6 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocs/cactus_transpiler.md16### Step 1: Write a PyTorch ModelCOMMENT
LOWdocs/cactus_transpiler.md42### Step 2: Convert and RunCOMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts745 // Step 1: Apply includes (or all if no includes)COMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts753 // Step 2: Apply excludesCOMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts758 // Step 3: Force-include (add back from allPaths, overriding exclusions)COMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts767 // Step 4: Force-exclude (remove even if included or force-included)COMMENT
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWpython/cactus/__init__.py8__all__ = [CODE
LOWpython/cactus/models/needle/modeling_needle.py280 def set_input_embeddings(self, value: nn.Embedding) -> None:CODE
LOWpython/cactus/models/needle/modeling_needle.py323 def set_input_embeddings(self, value: nn.Embedding) -> None:CODE
LOWpython/cactus/models/needle/modeling_needle.py329 def set_output_embeddings(self, value: nn.Linear) -> None:CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py41 def set_inputs(self, inputs: Sequence[Any]) -> None:CODE
LOWpython/cactus/transpile/capture_jax.py1656__all__ = [CODE
LOWpython/cactus/transpile/lower.py48 def set_input(self, index: int, data: Any, *, dtype: int | None = None) -> None:CODE
LOWpython/cactus/transpile/lower.py55 def set_inputs(self, inputs: list[Any] | tuple[Any, ...]) -> None:CODE
LOWpython/cactus/transpile/fusion/__init__.py24__all__ = [CODE
Verbosity Indicators4 hits · 9 pts
SeverityFileLineSnippetContext
LOW…code/packages/coding-agent/src/core/package-manager.ts745 // Step 1: Apply includes (or all if no includes)COMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts753 // Step 2: Apply excludesCOMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts758 // Step 3: Force-include (add back from allPaths, overriding exclusions)COMMENT
LOW…code/packages/coding-agent/src/core/package-manager.ts767 // Step 4: Force-exclude (remove even if included or force-included)COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWpython/cactus/server.py722CODE
LOWpython/cactus/server.py812CODE
LOWpython/cactus/models/needle/configuration_needle.py11CODE
LOWpython/cactus/transpile/jax_user_graph_bundle.py368CODE
LOWpython/cactus/bindings/cactus.py2660CODE