Repository Analysis

tobi/qmd

mini cli search engine for your docs, knowledge bases, meeting notes, whatever. Tracking current sota approaches while being all local

9.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tobi/qmd, a TypeScript project with 29,327 GitHub stars. SynthScan v2.0 examined 59,175 lines of code across 178 source files, recording 350 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 9.2 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).

9.2
Adjusted Score
9.2
Raw Score
100%
Time Factor
2026-08-18
Last Push
29.3K
Stars
TypeScript
Language
59.2K
Lines of Code
178
Files
350
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 1MEDIUM 142LOW 207

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 350 distinct pattern matches across 15 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.

Decorative Section Separators57 hits · 186 pts
SeverityFileLineSnippetContext
MEDIUMexample-index.yml12# ─── Global context ──────────────────────────────────────────────────────────COMMENT
MEDIUMexample-index.yml17# ─── Terminal hyperlinks (optional) ──────────────────────────────────────────COMMENT
MEDIUMexample-index.yml22# ─── Model overrides (optional) ──────────────────────────────────────────────COMMENT
MEDIUMexample-index.yml31# ─── Collections ─────────────────────────────────────────────────────────────COMMENT
MEDIUMexample-index.yml34 # ── Basic: just a path and a pattern ───────────────────────────────────────COMMENT
MEDIUMexample-index.yml41 # ── Hierarchical context: path-prefix → description ────────────────────────COMMENT
MEDIUMexample-index.yml52 # ── Auto-update: run a command before re-indexing ──────────────────────────COMMENT
MEDIUMexample-index.yml63 # ── Ignore patterns: exclude files from indexing ───────────────────────────COMMENT
MEDIUMexample-index.yml79 # ── Exclude from default searches ──────────────────────────────────────────COMMENT
MEDIUMexample-index.yml89 # ── Everything together ────────────────────────────────────────────────────COMMENT
MEDIUMfinetune/eval_retrieval.py37# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py39# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py75# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py77# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py154# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py156# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py255# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py257# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py328# =============================================================================COMMENT
MEDIUMfinetune/eval_retrieval.py330# =============================================================================COMMENT
MEDIUMfinetune/reward.py25# =============================================================================COMMENT
MEDIUMfinetune/reward.py27# =============================================================================COMMENT
MEDIUMfinetune/reward.py86# =============================================================================COMMENT
MEDIUMfinetune/reward.py88# =============================================================================COMMENT
MEDIUMfinetune/reward.py136# =============================================================================COMMENT
MEDIUMfinetune/reward.py138# =============================================================================COMMENT
MEDIUMfinetune/reward.py263# =============================================================================COMMENT
MEDIUMfinetune/reward.py265# =============================================================================COMMENT
MEDIUMfinetune/reward.py644# =============================================================================COMMENT
MEDIUMfinetune/reward.py646# =============================================================================COMMENT
MEDIUMfinetune/reward.py662# =============================================================================COMMENT
MEDIUMfinetune/reward.py664# =============================================================================COMMENT
MEDIUMfinetune/dataset/schema.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py80# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py114# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py116# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py138# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/dataset/schema.py140# ---------------------------------------------------------------------------COMMENT
MEDIUMfinetune/jobs/eval_common.py15# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py17# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py242# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval_common.py244# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py81# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py83# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py308# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py310# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py362# =============================================================================COMMENT
MEDIUMfinetune/jobs/eval.py364# =============================================================================COMMENT
MEDIUMsrc/index.ts234 // ── Search ──────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts248 // ── Document Retrieval ──────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts259 // ── Collection Management ───────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts276 // ── Context Management ──────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts293 // ── Indexing ────────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts313 // ── Index Health ────────────────────────────────────────────────────COMMENT
MEDIUMsrc/index.ts321 // ── Lifecycle ───────────────────────────────────────────────────────COMMENT
Dead Code77 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/train.py422CODE
MEDIUMfinetune/train.py423CODE
MEDIUMfinetune/train.py424CODE
MEDIUMfinetune/train.py425CODE
MEDIUMfinetune/train.py426CODE
MEDIUMfinetune/train.py427CODE
MEDIUMfinetune/train.py428CODE
MEDIUMfinetune/train.py430CODE
MEDIUMfinetune/train.py431CODE
MEDIUMfinetune/train.py434CODE
MEDIUMfinetune/train.py435CODE
MEDIUMfinetune/train.py437CODE
MEDIUMfinetune/train.py440CODE
MEDIUMfinetune/train.py442CODE
MEDIUMfinetune/train.py448CODE
MEDIUMfinetune/train.py449CODE
MEDIUMfinetune/train.py457CODE
MEDIUMfinetune/train.py458CODE
MEDIUMfinetune/train.py463CODE
MEDIUMfinetune/train.py464CODE
MEDIUMfinetune/train.py473CODE
MEDIUMfinetune/train.py474CODE
MEDIUMfinetune/train.py475CODE
MEDIUMfinetune/train.py476CODE
MEDIUMfinetune/train.py480CODE
MEDIUMfinetune/train.py481CODE
MEDIUMfinetune/train.py483CODE
MEDIUMfinetune/train.py491CODE
MEDIUMfinetune/train.py492CODE
MEDIUMfinetune/train.py493CODE
MEDIUMfinetune/train.py494CODE
MEDIUMfinetune/train.py497CODE
MEDIUMfinetune/train.py498CODE
MEDIUMfinetune/train.py499CODE
MEDIUMfinetune/train.py500CODE
MEDIUMfinetune/train.py511CODE
MEDIUMfinetune/train.py512CODE
MEDIUMfinetune/train.py517CODE
MEDIUMfinetune/train.py518CODE
MEDIUMfinetune/train.py523CODE
MEDIUMfinetune/train.py527CODE
MEDIUMfinetune/train.py528CODE
MEDIUMfinetune/train.py529CODE
MEDIUMfinetune/train.py532CODE
MEDIUMfinetune/train.py542CODE
MEDIUMfinetune/train.py543CODE
MEDIUMfinetune/train.py546CODE
MEDIUMfinetune/train.py547CODE
MEDIUMfinetune/train.py548CODE
MEDIUMfinetune/train.py550CODE
MEDIUMfinetune/train.py552CODE
MEDIUMfinetune/train.py553CODE
MEDIUMfinetune/train.py554CODE
MEDIUMfinetune/train.py557CODE
MEDIUMfinetune/train.py558CODE
MEDIUMfinetune/train.py559CODE
MEDIUMfinetune/train.py560CODE
MEDIUMfinetune/train.py561CODE
MEDIUMfinetune/train.py566CODE
MEDIUMfinetune/train.py567CODE
17 more matches not shown…
Hyper-Verbose Identifiers68 hits · 60 pts
SeverityFileLineSnippetContext
LOWtools/oxlint/anti-slop/shared/reflect-method.ts24export function isGlobalReflectMethodCall(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts142function isEffectivelyEmptyTypeLiteral(type: ESTree.TSTypeLiteral): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts146function isEffectivelyEmptyInterface(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts158function resolvedSubstitutionArgument(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts307export function classifyUnsafeDictionaryValue(CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts467export function isPopulatedObjectExpression(expression: ESTree.Expression): boolean {CODE
LOWtools/oxlint/anti-slop/shared/dictionary-types.ts480export function isKnownEvidenceExpression(expression: ESTree.Expression): boolean {CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts14function collectInferTypeParameterNames(CODE
LOW…ols/oxlint/anti-slop/shared/lexical-type-parameters.ts35export function lexicalTypeParameterNames(CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts18function unwrapExpressionParentheses(expression: ESTree.Expression): ESTree.Expression {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts143function isDefinitelyNarrowerRecordType(type: ESTree.TSType): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-widen-then-assert.ts171function resolvedVariableForIdentifier(CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts6function isTypeAssertionExpression(node: ESTree.Node): node is TypeAssertionExpression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts10function unwrapParenthesizedExpression(expression: ESTree.Expression): ESTree.Expression {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts27function isOutermostAssertionInChain(node: TypeAssertionExpression): boolean {CODE
LOW…s/oxlint/anti-slop/rules/no-chained-type-assertions.ts39function isForbiddenAssertionChain(node: TypeAssertionExpression): boolean {CODE
LOWtools/oxlint/anti-slop/rules/no-known-value-widening.ts125function isDictionaryAccumulatorTarget(destination: WideningTarget): boolean {CODE
LOW…/anti-slop/rules/no-conditional-empty-object-spread.ts16function isConditionalEmptyObjectSpread(node: ESTree.Expression): boolean {CODE
LOW…ls/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts60function isInsideTypeAliasDeclaration(node: ESTree.Node): boolean {CODE
LOW…ols/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts6function containsForbiddenSymbolName(name: string): boolean {CODE
LOWtest/store-cjk-fts.test.ts165 const startIdx = storeSrc.indexOf("function rebuildFTSForCjkNormalization(");CODE
LOWfinetune/convert_onnx.py294def write_transformers_js_config(onnx_dir: str, quantize_type: str = "q4"):CODE
LOWfinetune/reward.py634def extract_query_from_prompt(prompt: str) -> str:CODE
LOWfinetune/jobs/eval_common.py218def extract_query_from_prompt(prompt):CODE
LOWsrc/trust.ts106export function resolveConfigCollectionPath(rawPath: string, configPath: string): string {CODE
LOWsrc/trust.ts126export function isCollectionPathInsideProject(configPath: string, rawPath: string): boolean {CODE
LOWsrc/trust.ts272export function isLocalConfigTrustOptedIn(env: NodeJS.ProcessEnv = process.env): boolean {CODE
LOWsrc/collections.ts271export function getDefaultCollectionNames(): string[] {CODE
LOWsrc/llm.ts38export function setNodeLlamaCppModuleForTest(module: NodeLlamaCppModule | null): void {CODE
LOWsrc/llm.ts130export function setLlamaDirWritableForTest(writable: boolean | undefined): void {CODE
LOWsrc/llm.ts643export function resolveParallelismOverride(envValue = process.env.QMD_EMBED_PARALLELISM): number | undefined {CODE
LOWsrc/llm.ts686export function computeGpuContextPoolSize(options: {CODE
LOWsrc/llm.ts749async function disposeSequenceThenContext(CODE
LOWsrc/llm.ts2174export function isDarwinMetalMitigationActive(): boolean {CODE
LOWsrc/llm.ts2193export function isDarwinExitGuardInstalled(): boolean {CODE
LOWsrc/store.ts357export function chunkDocumentWithBreakPoints(CODE
LOWsrc/store.ts503export function getRelativePathFromPrefix(path: string, prefix: string): string | null {CODE
LOWsrc/store.ts832function createSqliteVecUnavailableError(reason: string): Error {CODE
LOWsrc/store.ts992function documentsFtsSchemaIsCurrent(db: Database): boolean {CODE
LOWsrc/store.ts1085function rebuildFTSForCjkNormalization(db: Database): void {CODE
LOWsrc/store.ts1797function validatePositiveIntegerOption(name: string, value: number | undefined, fallback: number): number {CODE
LOWsrc/store.ts1821function isContentVectorColumnError(error: unknown): boolean {CODE
LOWsrc/store.ts1840function ensureContentVectorsStatusIndex(db: Database): void {CODE
LOWsrc/store.ts1853function runContentVectorColumnRepairs(db: Database): void {CODE
LOWsrc/store.ts2520export function getHashesNeedingEmbedding(db: Database, collection?: string, model: string = DEFAULT_EMBED_MODEL): numbeCODE
LOWsrc/store.ts2554export async function maybeAdoptLegacyEmbeddingFingerprint(store: Store, model: string = DEFAULT_EMBED_MODEL): Promise<LCODE
LOWsrc/store.ts2995export function findOrMigrateLegacyDocument(CODE
LOWsrc/store.ts3744export function getCollectionsWithoutContext(db: Database): { name: string; pwd: string; doc_count: number }[] {CODE
LOWsrc/store.ts3776export function getTopLevelPathsWithoutContext(db: Database, collectionName: string): string[] {CODE
LOWsrc/store.ts4040function mergeSearchResultsByScore(lists: SearchResult[][], limit: number): SearchResult[] {CODE
LOWsrc/store.ts4452function removeIncompleteEmbeddings(db: Database, expectedChunksByHash: Map<string, number>, model: string): number {CODE
LOWsrc/store.ts4524export function deleteExpansionCacheEntry(db: Database, query: string, model: string = DEFAULT_QUERY_MODEL): void {CODE
LOWsrc/store.ts4712function normalizeLookupPathForIgnore(path: string): string {CODE
LOWsrc/bench/bench.ts283export function assertBenchCollectionReady(CODE
LOWsrc/cli/qmd.ts301export async function finishSuccessfulCliCommand(options: FinishSuccessfulCliCommandOptions): Promise<void> {CODE
LOWsrc/cli/qmd.ts494function sanitizeDiagnosticMessage(message: string): string {CODE
LOWsrc/cli/qmd.ts749function localConfigIsFullyTrusted(): boolean {CODE
LOWsrc/cli/qmd.ts2114function ensureModelsConfiguredForCli(): { embed: string; generate: string; rerank: string } {CODE
LOWsrc/cli/qmd.ts2140export function resolveGenerateModelForCli(): string {CODE
LOWsrc/cli/qmd.ts3334function installedSkillStubContent(): string {CODE
8 more matches not shown…
Verbosity Indicators31 hits · 52 pts
SeverityFileLineSnippetContext
LOWmigrate-schema.ts31 // Step 1: Add collection column to documentsCOMMENT
LOWmigrate-schema.ts36 // Step 2: Populate collection names from collections tableCOMMENT
LOWmigrate-schema.ts47 // Step 3: Verify no NULL valuesCOMMENT
LOWmigrate-schema.ts57 // Step 4: Create new documents table without collection_idCOMMENT
LOWmigrate-schema.ts76 // Step 5: Copy dataCOMMENT
LOWmigrate-schema.ts88 // Step 6: Drop old table and rename new oneCOMMENT
LOWmigrate-schema.ts94 // Step 7: Recreate indicesCOMMENT
LOWmigrate-schema.ts100 // Step 8: Update FTS trigger to use collection nameCOMMENT
LOWfinetune/convert_gguf.py117 # Step 1: Load and mergeCOMMENT
LOWfinetune/convert_gguf.py133 # Step 2: Save merged modelCOMMENT
LOWfinetune/convert_gguf.py139 # Step 3: Setup llama.cppCOMMENT
LOWfinetune/convert_gguf.py147 # Step 4: Convert to FP16 GGUFCOMMENT
LOWfinetune/convert_gguf.py161 # Step 5: QuantizeCOMMENT
LOWfinetune/convert_gguf.py180 # Step 6: UploadCOMMENT
LOWsrc/store.ts5582 // Step 4: RRF fusion — original-query FTS and vector lists get 2x weight;COMMENT
LOWsrc/store.ts5591 // Step 5: Chunk documents, pick best chunk per doc for reranking.COMMENT
LOWsrc/store.ts5972 // Step 3: RRF fusion — first list gets 2x weight (assume caller ordered by importance)COMMENT
LOWsrc/store.ts5982 // Step 4: Chunk documents, pick best chunk per doc for rerankingCOMMENT
LOWsrc/store.ts4215 // Step 1: Get vector matches from sqlite-vec (no JOINs allowed).COMMENT
LOWsrc/store.ts4249 // Step 2: Get chunk info and document dataCOMMENT
LOWsrc/store.ts5471 // Step 1: BM25 probe — strong signal skips expensive LLM expansionCOMMENT
LOWsrc/store.ts5485 // Step 2: Expand query (or skip if strong signal)COMMENT
LOWsrc/store.ts5504 // Step 3: Route searches by query typeCOMMENT
LOWsrc/store.ts5668 // Step 6: Rerank chunks (NOT full bodies)COMMENT
LOWsrc/store.ts5682 // Step 7: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts5734 // Step 8: Dedup by file (safety net — prevents duplicate output)COMMENT
LOWsrc/store.ts5908 // Step 1: Run FTS for all lex searches (sync, instant)COMMENT
LOWsrc/store.ts5929 // Step 2: Batch embed and run vector searches for vec/hydeCOMMENT
LOWsrc/store.ts6062 // Step 5: Rerank chunksCOMMENT
LOWsrc/store.ts6076 // Step 6: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6127 // Step 7: Dedup by fileCOMMENT
Structural Annotation Overuse31 hits · 52 pts
SeverityFileLineSnippetContext
LOWmigrate-schema.ts31 // Step 1: Add collection column to documentsCOMMENT
LOWmigrate-schema.ts36 // Step 2: Populate collection names from collections tableCOMMENT
LOWmigrate-schema.ts47 // Step 3: Verify no NULL valuesCOMMENT
LOWmigrate-schema.ts57 // Step 4: Create new documents table without collection_idCOMMENT
LOWmigrate-schema.ts76 // Step 5: Copy dataCOMMENT
LOWmigrate-schema.ts88 // Step 6: Drop old table and rename new oneCOMMENT
LOWmigrate-schema.ts94 // Step 7: Recreate indicesCOMMENT
LOWmigrate-schema.ts100 // Step 8: Update FTS trigger to use collection nameCOMMENT
LOWfinetune/convert_gguf.py117 # Step 1: Load and mergeCOMMENT
LOWfinetune/convert_gguf.py133 # Step 2: Save merged modelCOMMENT
LOWfinetune/convert_gguf.py139 # Step 3: Setup llama.cppCOMMENT
LOWfinetune/convert_gguf.py147 # Step 4: Convert to FP16 GGUFCOMMENT
LOWfinetune/convert_gguf.py161 # Step 5: QuantizeCOMMENT
LOWfinetune/convert_gguf.py180 # Step 6: UploadCOMMENT
LOWsrc/store.ts5582 // Step 4: RRF fusion — original-query FTS and vector lists get 2x weight;COMMENT
LOWsrc/store.ts5591 // Step 5: Chunk documents, pick best chunk per doc for reranking.COMMENT
LOWsrc/store.ts5972 // Step 3: RRF fusion — first list gets 2x weight (assume caller ordered by importance)COMMENT
LOWsrc/store.ts5982 // Step 4: Chunk documents, pick best chunk per doc for rerankingCOMMENT
LOWsrc/store.ts4215 // Step 1: Get vector matches from sqlite-vec (no JOINs allowed).COMMENT
LOWsrc/store.ts4249 // Step 2: Get chunk info and document dataCOMMENT
LOWsrc/store.ts5471 // Step 1: BM25 probe — strong signal skips expensive LLM expansionCOMMENT
LOWsrc/store.ts5485 // Step 2: Expand query (or skip if strong signal)COMMENT
LOWsrc/store.ts5504 // Step 3: Route searches by query typeCOMMENT
LOWsrc/store.ts5668 // Step 6: Rerank chunks (NOT full bodies)COMMENT
LOWsrc/store.ts5682 // Step 7: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts5734 // Step 8: Dedup by file (safety net — prevents duplicate output)COMMENT
LOWsrc/store.ts5908 // Step 1: Run FTS for all lex searches (sync, instant)COMMENT
LOWsrc/store.ts5929 // Step 2: Batch embed and run vector searches for vec/hydeCOMMENT
LOWsrc/store.ts6062 // Step 5: Rerank chunksCOMMENT
LOWsrc/store.ts6076 // Step 6: Blend RRF position score with reranker scoreCOMMENT
LOWsrc/store.ts6127 // Step 7: Dedup by fileCOMMENT
Excessive Try-Catch Wrapping19 hits · 22 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py169 except Exception as e:CODE
LOWfinetune/train_unsloth.py180 except Exception as e:CODE
MEDIUMfinetune/eval_retrieval.py368 print(f"Error: Golden data file not found: {args.golden}", file=sys.stderr)CODE
LOWfinetune/train.py279 except Exception:CODE
LOWfinetune/train.py409 except Exception:CODE
LOWfinetune/train.py454 except Exception:CODE
LOWfinetune/train.py628 except Exception:CODE
LOWfinetune/train.py644 except Exception:CODE
LOWfinetune/dataset/validate_schema.py38 except Exception as e:CODE
MEDIUMfinetune/dataset/prepare_data.py111 print(f"Error: No files found matching: {args.input}")CODE
MEDIUMfinetune/dataset/prepare_data.py117 print(f"Error: Input file not found: {input_path}")CODE
MEDIUMfinetune/dataset/analyze_data.py218 print(f"Error: Could not find dataset at {input_path}")CODE
LOWfinetune/dataset/schema.py133 except Exception as e:CODE
LOWfinetune/dataset/schema.py186 except Exception:CODE
LOWfinetune/dataset/schema.py220 except Exception:CODE
LOWfinetune/experiments/gepa/dspy_gepa.py100 except Exception:CODE
MEDIUMfinetune/experiments/gepa/dspy_gepa.py140 print("Error: DSPy expects provider/model format for LM strings (e.g., xai/grok-4-1-fast-reasoning).")CODE
LOWfinetune/experiments/gepa/example.py114 except Exception as exc:CODE
LOWfinetune/experiments/gepa/score.py32 except Exception:CODE
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py26CODE
LOWfinetune/benchmark.py62CODE
LOWfinetune/eval_retrieval.py79CODE
LOWfinetune/eval_retrieval.py115CODE
LOWfinetune/eval_retrieval.py332CODE
LOWfinetune/reward.py90CODE
LOWfinetune/reward.py140CODE
LOWfinetune/reward.py267CODE
LOWfinetune/reward.py408CODE
LOWfinetune/dataset/analyze_data.py84CODE
LOWfinetune/dataset/analyze_data.py196CODE
LOWfinetune/dataset/schema.py142CODE
LOWfinetune/experiments/gepa/generate.py32CODE
LOWfinetune/jobs/eval_common.py42CODE
LOWfinetune/jobs/eval_common.py67CODE
LOWfinetune/jobs/eval.py108CODE
LOWfinetune/jobs/eval.py133CODE
LOWfinetune/jobs/eval.py204CODE
Unused Imports17 hits · 16 pts
SeverityFileLineSnippetContext
LOWfinetune/train_unsloth.py14CODE
LOWfinetune/train_unsloth.py67CODE
LOWfinetune/train_unsloth.py111CODE
LOWfinetune/train.py44CODE
LOWfinetune/convert_onnx.py44CODE
LOWfinetune/convert_onnx.py45CODE
LOWfinetune/dataset/validate_schema.py8CODE
LOWfinetune/dataset/score_data.py8CODE
LOWfinetune/dataset/prepare_data_lfm2.py14CODE
LOWfinetune/dataset/schema.py16CODE
LOWfinetune/experiments/gepa/generate.py4CODE
LOWfinetune/experiments/gepa/dspy_gepa.py4CODE
LOWfinetune/experiments/gepa/example.py4CODE
LOWfinetune/experiments/gepa/optimizer.py4CODE
LOWfinetune/experiments/lfm2/sft_lfm2.py38CODE
LOWfinetune/jobs/eval.py23CODE
LOWfinetune/jobs/eval.py26CODE
Over-Commented Block17 hits · 16 pts
SeverityFileLineSnippetContext
LOWexample-index.yml1# QMD Collections ConfigurationCOMMENT
LOWtest/smoke-install.sh1#!/usr/bin/env bashCOMMENT
LOWtest/llm.test.ts941 // Performance is machine/load dependent. We only assert batch isn't drastically worse.COMMENT
LOWtest/store-cjk-fts.test.ts181 // API. Any .all() used for the source-body scan must be paired with aCOMMENT
LOWfinetune/convert_gguf.py1#!/usr/bin/env python3COMMENT
LOWfinetune/train.py1# /// scriptCOMMENT
LOWfinetune/convert_onnx.py1#!/usr/bin/env python3COMMENT
LOWfinetune/experiments/lfm2/sft_lfm2.yaml1# SFT Training Config for QMD Query Expansion with LiquidAI LFM2COMMENT
LOWfinetune/experiments/lfm2/sft_lfm2.py1# /// scriptCOMMENT
LOWfinetune/experiments/grpo/grpo.py1# /// scriptCOMMENT
LOWfinetune/jobs/sft.py1# /// scriptCOMMENT
LOWscripts/extract-changelog.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/release.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/llm.ts2141// libggml-metal on macOS keeps allocated model memory wired via "residencyCOMMENT
LOWsrc/store.ts2761 return 0;COMMENT
LOWsrc/store.ts3001 const existing = findActiveDocument(db, collectionName, path);COMMENT
LOWsrc/mcp/server.ts801 // Opt into production mode when the MCP server is actually started, notCOMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOWtest/store.test.ts2667 const padLine = "Lorem ipsum dolor sit amet\n";CODE
LOWtest/store.test.ts2667 const padLine = "Lorem ipsum dolor sit amet\n";CODE
LOWtest/store.test.ts2681 const padding = "Lorem ipsum dolor sit amet\n".repeat(200);CODE
LOWtest/store.test.ts2681 const padding = "Lorem ipsum dolor sit amet\n".repeat(200);CODE
LOWtest/mcp.test.ts165 body: "# Large Document\n\n" + "Lorem ipsum ".repeat(2000), // ~24KBCODE
LOWtest/ast-chunking.test.ts116 sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`);CODE
LOWtest/ast-chunking.test.ts116 sections.push(`# Section ${i}\n\n${"Lorem ipsum dolor sit amet. ".repeat(40)}\n`);CODE
LOWtest/store-cjk-fts.test.ts229 const bigBody = "lorem ipsum dolor sit amet ".repeat(450); // ~12 KBCODE
LOWtest/store-cjk-fts.test.ts229 const bigBody = "lorem ipsum dolor sit amet ".repeat(450); // ~12 KBCODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMfinetune/experiments/lfm2/sft_lfm2.yaml5# Recommended for: agentic tasks, data extraction, RAG, creative writing.COMMENT
MEDIUMfinetune/experiments/lfm2/sft_lfm2.yaml5# Recommended for: agentic tasks, data extraction, RAG, creative writing.COMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHfinetune/train.py419 print(" cd finetune && uv run python experiments/grpo/grpo.py")CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMexample-index.yml4# This file is the single source of truth for your collections. EveryCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/smoke-install.sh6# Usage:COMMENT
Redundant / Tautological Comments1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfinetune/train.py266 # Check if output looks like a HF Hub path (contains /)COMMENT