Repository Analysis

RyanCodrai/turbovec

A vector index built on TurboQuant, written in Rust with Python bindings

17.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of RyanCodrai/turbovec, a Rust project with 16,493 GitHub stars. SynthScan v2.0 examined 99,231 lines of code across 347 source files, recording 1441 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 17.1 places this repository in the Moderate AI signal band.

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

17.1
Adjusted Score
17.1
Raw Score
100%
Time Factor
2026-08-21
Last Push
16.5K
Stars
Rust
Language
99.2K
Lines of Code
347
Files
1.4K
Pattern Hits
2026-08-29
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 5MEDIUM 176LOW 1260

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 1441 distinct pattern matches across 14 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 Identifiers707 hits · 584 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py210def _legacy_split_persist_base(persist_path: str | Path) -> tuple[Path, Path]:CODE
LOWturbovec-python/python/turbovec/haystack.py469 def count_documents_by_filter(self, filters: Dict[str, Any]) -> int:CODE
LOWturbovec-python/python/turbovec/haystack.py479 def count_unique_metadata_by_filter(CODE
LOWturbovec-python/python/turbovec/haystack.py515 def get_metadata_field_min_max(self, metadata_field: str) -> Dict[str, Any]:CODE
LOWturbovec-python/python/turbovec/haystack.py535 def get_metadata_field_unique_values(CODE
LOWturbovec-python/python/turbovec/haystack.py721 async def delete_all_documents_async(self) -> None:CODE
LOWturbovec-python/python/turbovec/haystack.py733 async def count_documents_by_filter_async(self, filters: Dict[str, Any]) -> int:CODE
LOWturbovec-python/python/turbovec/haystack.py738 async def count_unique_metadata_by_filter_async(CODE
LOWturbovec-python/python/turbovec/haystack.py748 async def get_metadata_fields_info_async(self) -> Dict[str, Dict[str, str]]:CODE
LOWturbovec-python/python/turbovec/haystack.py753 async def get_metadata_field_min_max_async(CODE
LOWturbovec-python/python/turbovec/haystack.py761 async def get_metadata_field_unique_values_async(CODE
LOWturbovec-python/python/turbovec/haystack.py771 async def embedding_retrieval_async(CODE
LOWturbovec-python/python/turbovec/agno.py699 def _handles_for_content_hash(self, content_hash: str) -> List[int]:CODE
LOWturbovec-python/python/turbovec/agno.py776 def _resolve_filter_to_handles(CODE
LOWturbovec-python/python/turbovec/agno.py1041 def get_supported_search_types(self) -> List[SearchType]:CODE
LOWturbovec-python/python/turbovec/langchain.py157 def _select_relevance_score_fn(self) -> Callable[[float], float]:CODE
LOWturbovec-python/python/turbovec/langchain.py207 def _validate_query_embedding(self, embedded: Any) -> np.ndarray:CODE
LOWturbovec-python/python/turbovec/langchain.py492 def similarity_search_with_score(CODE
LOWturbovec-python/python/turbovec/langchain.py502 async def asimilarity_search_with_score(CODE
LOWturbovec-python/python/turbovec/langchain.py514 def similarity_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py524 async def asimilarity_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py537 def similarity_search_with_score_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py551 async def asimilarity_search_with_score_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py704 def max_marginal_relevance_search(CODE
LOWturbovec-python/python/turbovec/langchain.py714 def max_marginal_relevance_search_by_vector(CODE
LOWturbovec-python/python/turbovec/langchain.py726 async def amax_marginal_relevance_search(CODE
LOWturbovec-python/tests/test_rayon_env.py56def test_huge_rayon_num_threads_does_not_panic():STRING
LOWturbovec-python/tests/test_rayon_env.py74def test_huge_rayon_num_threads_warns_naming_the_variable():STRING
LOWturbovec-python/tests/test_rayon_env.py80def test_small_rayon_num_threads_matches_unset_results():STRING
LOWturbovec-python/tests/test_rayon_env.py90def test_unset_and_zero_emit_no_warning():STRING
LOWturbovec-python/tests/test_pickle_copy.py54def test_index_to_bytes_round_trips_and_matches_file(tmp_path):CODE
LOWturbovec-python/tests/test_pickle_copy.py120def test_lazy_index_bytes_round_trip():CODE
LOWturbovec-python/tests/test_pickle_copy.py248def test_llama_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py332def test_langchain_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py387def test_langchain_copy_does_not_bleed():CODE
LOWturbovec-python/tests/test_pickle_copy.py397def test_haystack_copy_does_not_bleed():CODE
LOWturbovec-python/tests/test_pickle_copy.py406def test_llama_copy_does_not_bleed():CODE
LOWturbovec-python/tests/test_pickle_copy.py415def test_agno_copy_does_not_bleed():CODE
LOWturbovec-python/tests/test_pickle_copy.py569def test_agno_getstate_snapshot_isolated_from_update_metadata():CODE
LOWturbovec-python/tests/test_pickle_copy.py629def test_unpickled_langchain_store_lock_serializes_writes():CODE
LOWturbovec-python/tests/test_pickle_copy.py73def test_id_map_to_bytes_round_trips_and_matches_file(tmp_path):CODE
LOWturbovec-python/tests/test_pickle_copy.py93def test_from_bytes_accepts_bytearray():CODE
LOWturbovec-python/tests/test_pickle_copy.py100def test_from_bytes_rejects_corrupt_and_wrong_type():CODE
LOWturbovec-python/tests/test_pickle_copy.py273def test_langchain_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py288def test_haystack_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py304def test_agno_pickle_round_trips_data():CODE
LOWturbovec-python/tests/test_pickle_copy.py316def test_agno_uncreated_store_pickles():CODE
LOWturbovec-python/tests/test_pickle_copy.py346def test_haystack_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py357def test_llama_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py370def test_agno_deepcopy_is_independent():CODE
LOWturbovec-python/tests/test_pickle_copy.py468def test_langchain_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py482def test_haystack_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py504def test_llama_mode_survives_pickle_and_deepcopy(mode):CODE
LOWturbovec-python/tests/test_pickle_copy.py530def test_agno_mode_survives_pickle_and_deepcopy(mode_name):CODE
LOWturbovec-python/tests/test_pickle_copy.py603def test_haystack_getstate_snapshot_isolated_from_update_by_filter():CODE
LOWturbovec-python/tests/test_pickle_copy.py681def test_spawned_child_searches_pickled_store(maker, child, expected):CODE
LOWturbovec-python/tests/test_llama_index.py72def test_lazy_dim_locked_on_first_add():CODE
LOWturbovec-python/tests/test_llama_index.py79def test_from_params_without_dim_is_lazy():CODE
LOWturbovec-python/tests/test_llama_index.py84def test_persist_and_load_lazy_uncommitted_store(tmp_path):CODE
LOWturbovec-python/tests/test_llama_index.py127def test_ref_doc_id_preserved_through_query():CODE
647 more matches not shown…
Decorative Section Separators164 hits · 568 pts
SeverityFileLineSnippetContext
MEDIUMturbovec/tests/from_parts.rs47// ─── happy path ─────────────────────────────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs130// ─── every invariant → its named error ──────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs297// ─── overflow-safe size math ────────────────────────────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs315// ─── value validation: parity with the .tv loader ───────────────────────────COMMENT
MEDIUMturbovec/tests/from_parts.rs419// ─── property: accepted ⇒ survives its own write → load round-trip ──────────COMMENT
MEDIUMturbovec/tests/from_parts.rs549// ─── error is a proper std::error::Error with a readable message ─────────────COMMENT
MEDIUMturbovec/examples/kernel_xtest.rs96// ─── Tiny deterministic PRNG (xoshiro256** seeded via splitmix64) ────────COMMENT
MEDIUMturbovec/src/encode.rs859// ─── Per-vector norm ─────────────────────────────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs990// ─── Fused quantize + scale + pack (aarch64) ────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs1202// ─── Fused quantize + scale + pack (x86_64) ─────────────────────────────────COMMENT
MEDIUMturbovec/src/encode.rs1391// ─── Fused quantize + scale + pack (fallback) ───────────────────────────────COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py49# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py51# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py128# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py130# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py245# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py327# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py381# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py384# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py424# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py432# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py561# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py566# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py624# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py626# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py652# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_pickle_copy.py655# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py98# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py263# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py265# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py327# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_async_offload.py329# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_agno.py1753# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_agno.py1755# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py56# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py58# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py94# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py96# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py168# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py170# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py202# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py246# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py248# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py316# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py318# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_object_model.py190# --------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py428# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py430# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py582# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py584# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py80# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py82# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py288# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_similarity_modes.py290# =====================================================================COMMENT
MEDIUMturbovec-python/tests/test_interruptible.py45# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_interruptible.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMturbovec-python/tests/test_interruptible.py120# ---------------------------------------------------------------------------COMMENT
104 more matches not shown…
Over-Commented Block466 hits · 396 pts
SeverityFileLineSnippetContext
LOWdeny.toml1# cargo-deny configuration — supply-chain gate for the Rust crate.COMMENT
LOWdeny.toml41# legal/compliance concern rather than a security one, and an allow-list is theCOMMENT
LOWturbovec/Cargo.toml1[package]COMMENT
LOWturbovec/Cargo.toml41rand = "0.8"COMMENT
LOWturbovec/Cargo.toml61# directly and production code no longer calls `inverse_cdf` at all, so theCOMMENT
LOWturbovec/tests/warning_hook.rs1//! The post-commit durability shortfall (#365) must reach the callerCOMMENT
LOWturbovec/tests/warning_hook.rs41COMMENT
LOWturbovec/tests/adversarial_load_memory.rs181 );COMMENT
LOWturbovec/tests/input_validation_reporting.rs1//! The invalid-coordinate scan reports *which* coordinate was bad, andCOMMENT
LOWturbovec/tests/concurrent_search.rs1//! Integration tests for concurrent search on a shared `TurboQuantIndex`.COMMENT
LOWturbovec/tests/concurrent_search.rs341fn tied_scores_agree_across_search_paths() {COMMENT
LOWturbovec/tests/crate_api.rs1//! The crate's surface as a downstream dependency (#351).COMMENT
LOWturbovec/tests/crate_api.rs181/// a panic in any *other* test has its diagnostics swallowed. This repoCOMMENT
LOWturbovec/tests/filtering.rs1//! Correctness tests for slot-mask filtering on `TurboQuantIndex` and theCOMMENT
LOWturbovec/tests/filtering.rs401 // correctness tests above would still pass if the block-skip guardCOMMENT
LOWturbovec/tests/filtering.rs501 assert!(allowed.contains(id));COMMENT
LOWturbovec/tests/filtering.rs621 assert!(mask[slot as usize], "returned disallowed slot {slot}");COMMENT
LOWturbovec/tests/input_validation.rs1//! Input-validation tests for `TurboQuantIndex` and `IdMapIndex`.COMMENT
LOWturbovec/tests/adversarial_gen_reuse.rs1//! Deterministic reproducer: a v7 commit generation is reused after aCOMMENT
LOWturbovec/tests/swap_remove.rs1//! Correctness of `TurboQuantIndex::swap_remove`.COMMENT
LOWturbovec/tests/kernel_correctness.rs1//! Correctness harness for the SIMD scoring kernels.COMMENT
LOWturbovec/tests/kernel_correctness.rs341 }COMMENT
LOWturbovec/tests/allocation_hot_paths.rs1//! Allocation-shape gates for the two hot paths in issue #409.COMMENT
LOWturbovec/tests/lazy_init.rs1//! Tests for lazy index construction on `TurboQuantIndex` and `IdMapIndex`.COMMENT
LOWturbovec/tests/adversarial_durability.rs1//! Adversarial durability probes: a power-loss model coarser than theCOMMENT
LOWturbovec/tests/codebook_determinism.rs1//! Golden pin for the Lloyd-Max codebook.COMMENT
LOWturbovec/tests/codebook_determinism.rs21//! exact-pinned for the same reason — `rand_chacha` at `=0.3.1`COMMENT
LOWturbovec/tests/explicit_calibration.rs1//! Explicit TQ+ calibration: `calibrate_2d` / `calibrate`.COMMENT
LOWturbovec/tests/explicit_calibration.rs61COMMENT
LOWturbovec/tests/explicit_calibration.rs241 let mut trickled = TurboQuantIndex::new(dim, 2).unwrap();COMMENT
LOWturbovec/tests/explicit_calibration.rs281 // but no recovery. If this assertion ever *fails upward*, refit hasCOMMENT
LOWturbovec/tests/query_scale_invariance.rs1//! Ranking must be invariant to positive uniform scaling of the query (#335).COMMENT
LOWturbovec/tests/query_scale_invariance.rs41 for (d, t) in tmp.iter().enumerate() {COMMENT
LOWturbovec/tests/query_scale_invariance.rs101 // for those queries the top-k id *set* legitimately differs acrossCOMMENT
LOWturbovec/tests/query_scale_invariance.rs121 // other* while both satisfy the condition above. If that pairCOMMENT
LOWturbovec/tests/recall_sanity.rs1//! Recall floor for the v5 block-Hadamard rotation.COMMENT
LOWturbovec/tests/rotation.rs1//! Correctness tests for the deterministic block-Hadamard rotation.COMMENT
LOWturbovec/tests/tmp_sweep.rs1//! Stale-temp sweep, driven through a real save (#299, #488).COMMENT
LOWturbovec/tests/tmp_sweep.rs21//! overlapping. Nothing here waits on the product's mutex; the testsCOMMENT
LOWturbovec/tests/tmp_sweep.rs101/// Save through `sync()` — the v7 container — serialized like the rest.COMMENT
LOWturbovec/tests/tmp_sweep.rs161/// permanent no-op and a crash-looping writer's temps accumulatedCOMMENT
LOWturbovec/tests/tmp_sweep.rs261/// name 1-3 bytes short of NAME_MAX, because `tmp_sibling` walks back toCOMMENT
LOWturbovec/tests/sync_v7.rs541 );COMMENT
LOWturbovec/tests/bytes_io.rs1//! In-memory serialization API: `to_bytes` / `from_bytes` /COMMENT
LOWturbovec/tests/avx512_tail_simulation.rs1//! Differential simulation of the AVX-512BW paired-block kernel'sCOMMENT
LOWturbovec/tests/encode_fingerprint.rs1//! Absolute golden anchor for every stage that decides an encoded byte.COMMENT
LOWturbovec/tests/encode_fingerprint.rs21//! `inverse_cdf` moved `tqplus_shift`/`tqplus_scale` by ~5e-4COMMENT
LOWturbovec/tests/encode_fingerprint.rs41//! The six columns below pin all of it: not "this build agrees withCOMMENT
LOWturbovec/tests/encode_fingerprint.rs61//!COMMENT
LOWturbovec/tests/encode_fingerprint.rs221/// caller could reasonably predict or work around.COMMENT
LOWturbovec/tests/encode_fingerprint.rs241#[test]COMMENT
LOWturbovec/tests/common/fingerprint.rs1//! The encode fingerprint: one six-column hash row per `(dim, bits)` cell.COMMENT
LOWturbovec/tests/common/fingerprint.rs21//! a `#[path]` module.COMMENT
LOWturbovec/tests/common/fingerprint.rs161 let vectors = lcg_vectors(N, dim, cell_seed(dim, bits));COMMENT
LOWturbovec/examples/kernel_roofline.rs1//! What rate can this machine actually sustain on the search kernel's innerCOMMENT
LOWturbovec/examples/probe_2bit_vnni.rs1//! P6 — price the x86 2-bit formulations: shipped vpermb-LUT against aCOMMENT
LOWturbovec/examples/kernel_roofline_neon.rs1//! The aarch64 counterpart to `kernel_roofline`: what rate can this machineCOMMENT
LOWturbovec/examples/kernel_roofline_neon.rs141 println!("Real kernel, nq=100 dim=768 N=200k:");COMMENT
LOWturbovec/examples/kernel_roofline_neon.rs221 sink = sink.wrapping_add(vaddvq_u16(*v) as u64);COMMENT
LOWturbovec/examples/kernel_roofline_neon.rs241/// `score = sum_d q[d] * C[code[d]]` is a plain dot product over theCOMMENT
406 more matches not shown…
Unused Imports47 hits · 40 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/_interruptible.py82CODE
LOWturbovec-python/python/turbovec/llama_index.py18CODE
LOWturbovec-python/python/turbovec/_similarity.py23CODE
LOWturbovec-python/python/turbovec/haystack.py16CODE
LOWturbovec-python/python/turbovec/_persist.py23CODE
LOWturbovec-python/python/turbovec/agno.py24CODE
LOWturbovec-python/python/turbovec/agno.py32CODE
LOWturbovec-python/python/turbovec/__init__.py1CODE
LOWturbovec-python/python/turbovec/__init__.py1CODE
LOWturbovec-python/python/turbovec/langchain.py21CODE
LOWturbovec-python/python/turbovec/_dedup.py20CODE
LOWturbovec-python/tests/test_rayon_env.py12CODE
LOWturbovec-python/tests/test_pickle_copy.py15CODE
LOWturbovec-python/tests/test_llama_index.py1CODE
LOWturbovec-python/tests/test_version.py2CODE
LOWturbovec-python/tests/test_argument_errors.py11CODE
LOWturbovec-python/tests/test_dedup.py2CODE
LOWturbovec-python/tests/test_haystack.py2CODE
LOWturbovec-python/tests/test_security.py9CODE
LOWturbovec-python/tests/test_gil_release.py17CODE
LOWturbovec-python/tests/test_id_map.py2CODE
LOWturbovec-python/tests/test_async_offload.py27CODE
LOWturbovec-python/tests/test_agno.py2CODE
LOWturbovec-python/tests/test_persist.py2CODE
LOWturbovec-python/tests/test_langchain.py1CODE
LOWturbovec-python/tests/test_remove_fast_path.py57CODE
LOWturbovec-python/tests/test_object_model.py13CODE
LOWturbovec-python/tests/test_object_model.py18CODE
LOWturbovec-python/tests/test_object_model.py19CODE
LOWturbovec-python/tests/test_object_model.py20CODE
LOWturbovec-python/tests/test_index.py7CODE
LOWturbovec-python/tests/test_similarity_modes.py27CODE
LOWturbovec-python/tests/test_interruptible.py21CODE
LOWturbovec-python/tests/test_fork_safety.py26CODE
LOWturbovec-python/tests/test_store_thread_safety.py26CODE
LOWturbovec-python/tests/test_filtering.py2CODE
LOWbenchmarks/hillclimb/cells_2bit.py23CODE
LOWbenchmarks/hillclimb/mt_roofline_nq1.py15CODE
LOWbenchmarks/hillclimb/sweep_paired.py17CODE
LOWbenchmarks/hillclimb/sweep_paired.py19CODE
LOWbenchmarks/hillclimb/sweep_2bit.py15CODE
LOWbenchmarks/hillclimb/cells.py16CODE
LOWbenchmarks/hillclimb/cells.py19CODE
LOW.github/scripts/test_changelog_gate.py18CODE
LOW.github/scripts/escape_hatch.py35CODE
LOW.github/scripts/dep_floors.py21CODE
LOW.github/scripts/changelog_gate.py49CODE
AI Slop Vocabulary9 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUMturbovec/tests/kernel_correctness.rs23/// which makes the self-query invariant below robust.COMMENT
MEDIUMturbovec-python/tests/test_fork_safety.py39# Self-contained harness executed in a fresh interpreter per scenario. ItCOMMENT
MEDIUMturbovec-python/tests/test_fork_safety.py42# Every child wait is bounded (select + SIGKILL) so the harness cannot hangCOMMENT
MEDIUMturbovec-python/tests/test_store_thread_safety.py60# Stress-harness core (threads + classified exceptions)COMMENT
MEDIUMbenchmarks/hillclimb/whm_persist.py70 # cell (the _st variants, or cells carried over from another harness).COMMENT
MEDIUMbenchmarks/hillclimb/sweep_2bit.py28 # Cells-grade precision on every point. The cells harness reproducesCOMMENT
MEDIUMbenchmarks/hillclimb/sweep_2bit.py30 # sub-run processes; the first sweep harness used a fraction of thatCOMMENT
MEDIUM.github/workflows/pr-review.yml265 # harness's record of the agent's final message. So the agent can vetoCOMMENT
MEDIUM.github/workflows/pr-review.yml355 # the harness after the session ends, so its shape cannot be forgedCOMMENT
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHbenchmarks/suite/speed_sync_d1536_2bit_arm_st.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_x86_mt.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_arm_mt.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
HIGHbenchmarks/suite/speed_sync_d1536_2bit_x86_st.py0a file already in v7 sync form, index bound to it, no pending ops.STRING
Deep Nesting18 hits · 16 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py335CODE
LOWturbovec-python/python/turbovec/llama_index.py786CODE
LOWturbovec-python/python/turbovec/haystack.py499CODE
LOWturbovec-python/python/turbovec/haystack.py578CODE
LOWturbovec-python/python/turbovec/_persist.py217CODE
LOWturbovec-python/python/turbovec/agno.py471CODE
LOWturbovec-python/python/turbovec/agno.py1129CODE
LOWturbovec-python/python/turbovec/langchain.py357CODE
LOWturbovec-python/python/turbovec/langchain.py563CODE
LOWturbovec-python/tests/test_fork_safety.py570CODE
LOWturbovec-python/tests/test_store_thread_safety.py85CODE
LOWturbovec-python/tests/test_store_thread_safety.py890CODE
LOWturbovec-python/tests/test_store_thread_safety.py112CODE
LOWturbovec-python/tests/test_store_thread_safety.py113CODE
LOWbenchmarks/create_diagrams.py55CODE
LOWbenchmarks/hillclimb/whm_mutate.py48CODE
LOWbenchmarks/hillclimb/sweep_paired.py30CODE
LOW.github/scripts/changelog_gate.py113CODE
Structural Annotation Overuse5 hits · 9 pts
SeverityFileLineSnippetContext
LOWturbovec/src/pack.rs67 // Step 1: Extract packed nibble bytes per vector per groupCOMMENT
LOWturbovec/src/pack.rs70 // Step 2: Pack into platform-specific layoutCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5586### Step 1: reachable from stable RustCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5598### Step 2: 6.36x the issue rate, and the denominator took two triesCOMMENT
LOWbenchmarks/hillclimb/LOG_search.md5624### Step 3: the tile-load cost is real and almost entirely amortizableCOMMENT
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/llama_index.py1210__all__ = ["TurboQuantVectorStore"]CODE
LOWturbovec-python/python/turbovec/_similarity.py53__all__ = [CODE
LOWturbovec-python/python/turbovec/haystack.py1081__all__ = ["TurboQuantDocumentStore"]CODE
LOWturbovec-python/python/turbovec/_persist.py524__all__ = ["check_persisted_handles", "check_schema_version", "check_sidecar_keysets"]CODE
LOWturbovec-python/python/turbovec/agno.py1129 def update_metadata(self, content_id: str, metadata: Dict[str, Any]) -> None:CODE
LOWturbovec-python/python/turbovec/agno.py1368__all__ = ["TurboQuantVectorDb"]CODE
LOWturbovec-python/python/turbovec/__init__.py24__all__ = ["BATCH_CHUNK_SIZE", "IdMapIndex", "TurboQuantIndex", "__version__"]CODE
LOWturbovec-python/python/turbovec/langchain.py994__all__ = ["TurboQuantVectorStore"]CODE
LOWturbovec-python/python/turbovec/_dedup.py71__all__ = ["DuplicatePolicy", "resolve_duplicates"]CODE
Modern AI Meta-Vocabulary2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMturbovec-python/tests/test_llama_index.py1330 # store into a LlamaIndex pipeline (RAG, query engine, etc.), so itCOMMENT
MEDIUMturbovec-python/tests/test_langchain.py574 # Tier 4: dim is inferred from the embedding model, no explicit param.COMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHturbovec-python/tests/test_persist.py448# them to null, serde_json/JSON.parse reject the file). Both now failCOMMENT
Excessive Try-Catch Wrapping5 hits · 6 pts
SeverityFileLineSnippetContext
LOWturbovec-python/tests/test_pickle_copy.py638 except Exception as exc: # pragma: no cover - failure pathCODE
MEDIUMturbovec-python/tests/test_persist.py103def save_loop(index, payload):CODE
LOWturbovec-python/tests/test_persist.py108 except Exception: # noqa: BLE001 — recorded for the assertCODE
LOWturbovec-python/tests/test_fork_safety.py272 except Exception:CODE
LOWbenchmarks/hillclimb/faiss_nq1.py39 except Exception as e:CODE
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWturbovec/src/pack.rs67 // Step 1: Extract packed nibble bytes per vector per groupCOMMENT
LOWturbovec/src/pack.rs70 // Step 2: Pack into platform-specific layoutCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWturbovec-python/python/turbovec/agno.py143CODE
LOWturbovec-python/tests/test_llama_index.py1403CODE