Repository Analysis

ggml-org/llama.cpp

LLM inference in C/C++

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ggml-org/llama.cpp, a C++ project with 126,076 GitHub stars. SynthScan v2.0 examined 843,317 lines of code across 2454 source files, recording 2361 pattern matches distributed across 24 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written band.

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

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
126.1K
Stars
C++
Language
843.3K
Lines of Code
2.5K
Files
2.4K
Pattern Hits
2026-08-29
Scan Date
0.02
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 12HIGH 35MEDIUM 203LOW 2111

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

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

Over-Commented Block982 hits · 965 pts
SeverityFileLineSnippetContext
LOWtools/quantize/quantize.cpp1#include "llama.h"COMMENT
LOWtools/ui/embed.cpp1// llama-ui-embed: generate ui.cpp / ui.h that embed UI assets as C arrays.COMMENT
LOWtools/ui/eslint.config.js201 // Blank line around if blocks (if/else and else if stay one statement).COMMENT
LOW…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts1// Tier 1 perf harness for the agentic thread.COMMENT
LOWtools/ui/scripts/dev.sh1#!/bin/bashCOMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js41 // The maximum number of significant digits of the result of a calculation or base conversion.COMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js61COMMENT
LOWtools/ui/src/lib/vendors/decimal.js/decimal.js1181 // If the result is known to have an infinite decimal expansion, repeat this until it is clearCOMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js4061 }COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js5561 // if (a.isSQRT()) {COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js1/*COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js201// CoreDeps - Centralized Dependency Registry ==================================COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js9141 // Whether to wrap numbers in bracketsCOMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js11461}COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js11741 // a = _.parse(bigDec.exp(bigDec(i).toPower(2).neg().dividedBy(bigDec(n).pow(2).plus(bigDec(COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js13721 const ret = _.callfunction(fnName, fnArgs);COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js13741 // else if(getter instanceof Slice) {COMMENT
LOW…ols/ui/src/lib/vendors/nerdamer-prime/nerdamer.core.js16461 return symB.clone();COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Calculus.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Extra.js1/*COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js481 /** @type {NerdamerSymbolType} */ (_.parse(es[1]))COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1061 // _.parse(delta0);COMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1441 // Nothing we can doCOMMENT
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js1641 *COMMENT
LOWtools/ui/src/lib/constants/auto-scroll.constants.ts1export const AUTO_SCROLL_INTERVAL = 100;COMMENT
LOWtools/ui/src/lib/utils/search-results.ts21const SEPARATOR_LINE_RE = /^\s*---\s*$/;COMMENT
LOWtools/cvector-generator/pca.hpp1#include "common.h"COMMENT
LOWtools/cvector-generator/cvector-generator.cpp1#include "ggml.h"COMMENT
LOWtools/cvector-generator/cvector-generator.cpp21#include <algorithm>COMMENT
LOWtools/mtmd/mtmd.h1#ifndef MTMD_HCOMMENT
LOWtools/mtmd/mtmd.h141COMMENT
LOWtools/mtmd/mtmd.h181MTMD_API void mtmd_bitmap_set_mergeable(mtmd_bitmap * bitmap, bool mergeable);COMMENT
LOWtools/mtmd/mtmd.h241MTMD_API mtmd_input_chunk * mtmd_input_chunk_get_placeholder(const mtmd_input_chunk * chunk);COMMENT
LOWtools/mtmd/mtmd.h281// the default marker is defined by mtmd_default_marker()COMMENT
LOWtools/mtmd/mtmd.h321COMMENT
LOWtools/mtmd/mtmd.h421/////////////////////////////////////////COMMENT
LOWtools/mtmd/mtmd-helper.cpp1// fix problem with std::min and std::maxCOMMENT
LOWtools/mtmd/mtmd-helper.cpp21//#define MTMD_AUDIO_DEBUGCOMMENT
LOWtools/mtmd/mtmd-helper.cpp41COMMENT
LOWtools/mtmd/clip-graph.h1#pragma onceCOMMENT
LOWtools/mtmd/tests.sh141# to test the huge models, run: ./tests.sh hugeCOMMENT
LOWtools/mtmd/mtmd.cpp1#include "clip.h"COMMENT
LOWtools/mtmd/mtmd.cpp21#include <cerrno>COMMENT
LOWtools/mtmd/mtmd-helper-common.h1#pragma onceCOMMENT
LOWtools/mtmd/clip.cpp1#include "clip.h"COMMENT
LOWtools/mtmd/clip.cpp4481 nelem += img.nx() * img.ny() * 3;COMMENT
LOWtools/mtmd/mtmd-image.cpp261 if (val < 0) return 0;COMMENT
LOWtools/mtmd/mtmd-helper.h1#ifndef MTMD_HELPER_HCOMMENT
LOWtools/mtmd/mtmd-helper.h61 mtmd_context * ctx,COMMENT
LOWtools/mtmd/mtmd-helper.h81 struct mtmd_helper_init_opt opt);COMMENT
LOWtools/mtmd/clip-impl.h1#pragma onceCOMMENT
LOWtools/mtmd/clip-impl.h21#define NOMINMAXCOMMENT
LOWtools/mtmd/clip-impl.h41#define KEY_N_FF "clip.%s.feed_forward_length"COMMENT
LOWtools/mtmd/clip-impl.h61#define KEY_PROJ_SCALE_FACTOR "clip.vision.projector.scale_factor"COMMENT
LOWtools/mtmd/clip-impl.h81#define KEY_A_NUM_MEL_BINS "clip.audio.num_mel_bins"COMMENT
LOWtools/mtmd/clip-impl.h101//COMMENT
LOWtools/mtmd/clip-impl.h121#define TN_FFN_GATE "%s.blk.%d.ffn_gate.%s"COMMENT
LOWtools/mtmd/clip-impl.h141#define TN_MM_POST_NORM "mm.post_norm.%s"COMMENT
LOWtools/mtmd/clip-impl.h161COMMENT
922 more matches not shown…
Hyper-Verbose Identifiers434 hits · 408 pts
SeverityFileLineSnippetContext
LOWtools/ui/tests/unit/agentic-strip.test.ts11function stripLegacyContextMarkers(content: string): string {CODE
LOWtools/ui/scripts/vite-plugin-splash-screen.ts22export function generateSplashScreenLinks(outDir: string): string[] {CODE
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js353 (function extendSimplifyForEquations() {CODE
LOWtools/ui/src/lib/vendors/nerdamer-prime/Solve.js355 _.functions.simplify[0] = function simplifyWithEquationSupport(symbol) {CODE
LOWtools/ui/src/lib/contexts/chat-form-actions.context.ts10export function setChatFormActionsContext(ctx: ChatFormActionsContext): ChatFormActionsContext {CODE
LOWtools/ui/src/lib/contexts/chat-form-actions.context.ts17export function getChatFormActionsContext(): ChatFormActionsContext {CODE
LOW…ls/ui/src/lib/contexts/chat-message-actions.context.ts10export function setChatMessageActionsContext(CODE
LOW…ls/ui/src/lib/contexts/chat-message-actions.context.ts19export function getChatMessageActionsContext(): ChatMessageActionsContext {CODE
LOWtools/ui/src/lib/contexts/chat-message-edit.context.ts10export function setChatMessageEditContext(ctx: ChatMessageEditContext): ChatMessageEditContext {CODE
LOWtools/ui/src/lib/contexts/chat-message-edit.context.ts17export function getChatMessageEditContext(): ChatMessageEditContext {CODE
LOWtools/ui/src/lib/constants/browser-info.ts24export function buildBrowserInfoToolDefinition(): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/constants/read-media.ts39export function buildReadMediaToolDefinition(CODE
LOWtools/ui/src/lib/constants/get-datetime.ts6export function buildGetDatetimeToolDefinition(): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/stores/chat/context-stats.svelte.ts46function summarizeAssistantTimings(messages: DatabaseMessage[]): AssistantTimingsSummary {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts23function loadReasoningEffortDefault(): ReasoningEffort {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts36function saveReasoningEffortDefault(effort: ReasoningEffort): void {CODE
LOW…/ui/src/lib/stores/conversations/preferences.svelte.ts67function buildDisabledToolCategories(conv: DatabaseConversation | null): Set<ToolSource> {CODE
LOWtools/ui/src/lib/utils/parse-exec-shell-error.ts1export function parseExecShellCommandError(CODE
LOWtools/ui/src/lib/utils/sandbox-tool.ts25export function buildSandboxToolDefinition(includeSymbolicMath: boolean): OpenAIToolDefinition {CODE
LOWtools/ui/src/lib/utils/audio-recording.ts255export function isAudioRecordingSupported(): boolean {CODE
LOWtools/ui/src/lib/utils/jpeg-orientation.ts12export function getJpegOrientationFromDataURL(base64UrlJpeg: string): number {CODE
LOWtools/ui/src/lib/utils/sanitize.ts21export function sanitizeKeyValuePairValue(raw: string): string {CODE
LOWtools/ui/src/lib/utils/mention-token.ts72export function takeMentionDismissSnapshot(CODE
LOWtools/ui/src/lib/utils/modality-file-validation.ts17export function isFileTypeSupportedByModel(CODE
LOWtools/ui/src/lib/utils/modality-file-validation.ts137export function generateModalityErrorMessage(CODE
LOWtools/ui/src/lib/utils/clipboard.ts108export function formatMessageForClipboard(CODE
LOWtools/ui/src/lib/utils/clipboard.ts265function isValidMcpPromptAttachment(obj: unknown): obj is {CODE
LOWtools/ui/src/lib/utils/glob-search.ts74export async function runGlobSearchWithChildren(CODE
LOWtools/ui/src/lib/utils/parse-exec-shell-status.ts21export function parseExecShellCommandExitStatus(CODE
LOWtools/ui/src/lib/utils/text.ts15export function generateConversationTitle(content: string, useFirstLine: boolean = false): string {CODE
LOWtools/ui/src/lib/utils/mcp.ts53export function detectMcpTransportFromUrl(url: string): MCPTransportType {CODE
LOWtools/ui/src/lib/utils/mcp.ts402export function getMcpServerFaviconFallback(serverUrl: string): string | null {CODE
LOW…ls/ui/src/lib/utils/chat-template-thinking-detector.ts67export function detectThinkingSupportWithReason(t: string): { supported: boolean; reason: string } {CODE
LOWtools/ui/src/lib/utils/code.ts30export function splitGluedClosingCodeFences(markdown: string): string {CODE
LOWtools/ui/src/lib/utils/code.ts147export function detectIncompleteCodeBlock(markdown: string): IncompleteCodeBlock | null {CODE
LOWtools/ui/src/lib/utils/image-error-fallback.ts5export function getImageErrorFallbackHtml(src: string): string {CODE
LOWtools/ui/src/lib/utils/command-token.ts27export function takeCommandDismissSnapshot(value: string): CommandDismissSnapshot | null {CODE
LOWtools/ui/src/lib/utils/convert-files-to-extra.ts31export async function parseFilesToMessageExtras(CODE
LOW…ols/ui/src/lib/utils/chat-form-input-rich-tokenizer.ts705export function stripBlockBoundaryLineBreaks(root: HTMLElement): boolean {CODE
LOWtools/ui/src/lib/utils/file-type.ts112export function getFileTypeCategoryByExtension(filename: string): FileTypeCategory | null {CODE
LOWtools/ui/src/lib/utils/process-uploaded-files.ts54export async function processFilesToChatUploaded(CODE
LOWtools/ui/src/lib/utils/request-helpers.ts87export function formatDiagnosticErrorMessage(error: unknown): string {CODE
LOWtools/ui/src/lib/utils/attachment-display.ts49export function getAttachmentDisplayItems(CODE
LOW…ttings/SettingsChat/SettingsChatImportExportTab.svelte44 function handleSettingsExportConfirm() {CODE
LOW…ttings/SettingsChat/SettingsChatImportExportTab.svelte69 function handleSettingsExportCancel() {CODE
LOW…s/app/chat/ChatMessages/ChatMessage/ChatMessage.svelte379 function handleShowDeleteDialogChange(show: boolean) {CODE
LOW…sage/ChatMessageToolCall/parsers/exec-shell-command.ts16export function parseExecShellCommandMeta(section: AgenticSection): ExecShellCommandMeta | null {CODE
LOW…i/src/lib/components/app/chat/ChatForm/ChatForm.svelte174 async function handleWorkingDirectoryChange(newDir: string | null) {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte97 function highlightCodeBlockElement(el: HTMLElement): boolean {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte142 function rehighlightCaretCodeBlock() {CODE
LOW…p/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte467 function moveCaretBeforeLeadingCodeBlock(key: string, extend: boolean): boolean {CODE
LOW…c/lib/components/app/chat/ChatScreen/ChatScreen.svelte226 function handleErrorDialogOpenChange(open: boolean) {CODE
LOW…tion/SidebarNavigation/SidebarNavigationActions.svelte63 function handleSearchModeDeactivate() {CODE
LOW…nts/app/content/MarkdownContent/MarkdownContent.svelte303 function handlePreviewDialogOpenChange(open: boolean) {CODE
LOW…nts/app/content/MarkdownContent/MarkdownContent.svelte672 function handleMermaidPreviewOpenChange(open: boolean) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts72export function createHandlePreviewDialogOpenChange(previewState: PreviewState) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts73 return function handlePreviewDialogOpenChange(open: boolean) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts182export function createHandleMermaidPreviewOpenChange(mermaidState: MermaidPreviewState) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts183 return function handleMermaidPreviewOpenChange(open: boolean) {CODE
LOW…nents/app/content/MarkdownContent/markdown-handlers.ts251export function createSetupCodeBlockActions(CODE
374 more matches not shown…
Decorative Section Separators79 hits · 255 pts
SeverityFileLineSnippetContext
MEDIUMtools/mtmd/clip.cpp4489 // ├─────┤ │COMMENT
MEDIUMtools/mtmd/clip.cpp4491 // ├─────┤ │COMMENT
MEDIUMtools/mtmd/clip.cpp4493 // └─────┘ │COMMENT
MEDIUMtools/mtmd/clip.cpp4494 // ──────┘ x BCOMMENT
MEDIUMdocs/backend/OPENVINO.md240# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md242# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md271# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md273# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md279# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md282# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md309# ============================================COMMENT
MEDIUMdocs/backend/OPENVINO.md311# ============================================COMMENT
MEDIUM…com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt120 // ── 1. header ──────────────────────────────────────────────────────────COMMENT
MEDIUM…com/arm/aichat/internal/gguf/GgufMetadataReaderImpl.kt129 // ── 3. build structured object ────────────────────────────────────────COMMENT
MEDIUMexamples/llama.android/lib/src/main/cpp/CMakeLists.txt14# --------------------------------------------------------------------------COMMENT
MEDIUMexamples/llama.android/lib/src/main/cpp/CMakeLists.txt16# --------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py77# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py79# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py244# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py273# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py275# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1076# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1078# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1089# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-function-call.py1091# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py97# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py99# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py254# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py256# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py337# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py339# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py372# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py374# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py913# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py915# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py927# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-parallel-tc.py929# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py100# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py102# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py258# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py260# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py355# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py357# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py970# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py972# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py984# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/server-test-structured.py986# ---------------------------------------------------------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py157# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py159# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py287# ------------------------COMMENT
MEDIUMscripts/jinja/jinja-tester.py289# ------------------------COMMENT
MEDIUMscripts/snapdragon/qdc/run_qdc_jobs.py121# =============================================================================COMMENT
MEDIUMscripts/snapdragon/qdc/run_qdc_jobs.py123# =============================================================================COMMENT
19 more matches not shown…
Excessive Try-Catch Wrapping117 hits · 192 pts
SeverityFileLineSnippetContext
LOWconvert_hf_to_gguf_update.py272 except Exception as e:STRING
LOWconvert_hf_to_gguf_update.py307 except Exception as e:STRING
LOWtools/server/bench/bench.py59 except Exception:CODE
LOWtools/server/bench/bench.py85 except Exception:CODE
LOWtools/server/bench/speed-bench/speed_bench.py252 except Exception as exc:CODE
LOWtools/server/bench/speed-bench/speed_bench.py389 except Exception as exc:CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py73 except Exception as exc:CODE
LOWtools/server/tests/utils.py334 except Exception as e:CODE
LOWtools/server/tests/utils.py361 except Exception as e:CODE
MEDIUMtools/server/tests/utils.py362 print(f"Error waiting for server: {e}")CODE
LOWtools/server/tests/utils.py674 except Exception as e:CODE
MEDIUMtools/server/tests/utils.py670def worker(index, func, args):CODE
LOWtools/server/tests/unit/test_tools_builtin.py163 except Exception as e:CODE
LOWtools/server/tests/unit/test_mcp_servers.py674 except Exception:STRING
LOWtools/server/tests/unit/test_router.py175 except Exception as e:CODE
LOWtools/server/tests/unit/test_router.py509 except Exception:CODE
MEDIUMtools/server/tests/unit/test_router.py172def _run(self, fn):CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py923 except Exception as e:CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1588 except Exception as e:CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py66 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py142 print(f"Error: unknown tool {json_data['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar_examples.py285 print(f"Error: unknown tool {call['function']}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1001 print(f"An error occurred while saving the grammar file: {e}")CODE
MEDIUMexamples/pydantic_models_to_grammar.py1008 print(f"An error occurred while saving the documentation file: {e}")CODE
LOWexamples/llama-eval/llama-eval.py1055 except Exception as e:CODE
LOWexamples/llama-eval/llama-eval.py1097 except Exception as e:CODE
LOWexamples/llama-eval/llama-eval.py1137 except Exception as e:CODE
MEDIUMexamples/llama-eval/llama-eval.py1138 print(f"Error: Cannot reach server {server_config.name} ({server_config.url}): {e}", file=sys.stderr)CODE
LOWexamples/llama-eval/llama-eval.py1235 except Exception as e:CODE
MEDIUMexamples/llama-eval/llama-eval.py1471 print(f"Error: --server ({len(server_urls)} URLs) and --threads ({len(thread_counts)} values) must have the sameCODE
MEDIUMexamples/llama-eval/llama-eval.py1478 print(f"Error: --server-name ({len(server_names)} names) and --server ({len(server_urls)} URLs) must have thCODE
MEDIUMexamples/llama-eval/llama-eval.py1489 print("Error: GPQA dataset requires --grader-type llm")CODE
MEDIUMexamples/llama-eval/llama-eval.py1499 print(f"Error: Model mismatch. State has '{eval_state.model_name}', but --model is '{args.model}'")CODE
MEDIUMexamples/llama-eval/llama-eval.py1525 print("Error: --grader-type llm requires --grader-model or --model")CODE
MEDIUMexamples/llama-eval/llama-eval.py1537 print("Error: No existing eval state found to resume")CODE
MEDIUMexamples/llama-eval/llama-eval.py1543 print("Error: --grader-type llm requires --grader-model or --model")CODE
LOWexamples/llama-eval/llama-server-simulator.py295 except Exception as e:CODE
MEDIUMexamples/llama-eval/llama-server-simulator.py296 print(f"Error processing request: {e}")CODE
LOW…ples/model-conversion/scripts/causal/compare-logits.py18 except Exception as e:CODE
MEDIUM…ples/model-conversion/scripts/causal/compare-logits.py52 print(f"Error: PyTorch logits file not found: {pytorch_file}")CODE
MEDIUM…ples/model-conversion/scripts/causal/compare-logits.py57 print(f"Error: llama.cpp logits file not found: {llamacpp_file}")CODE
MEDIUM…mples/model-conversion/scripts/causal/run-org-model.py116 print("Error: Model path must be specified either via --model-path argument or MODEL_PATH environment variable")CODE
MEDIUM…del-conversion/scripts/embedding/run-original-model.py125 print(f"Error: Prompts file '{args.prompts_file}' not found")CODE
LOW…del-conversion/scripts/embedding/run-original-model.py127 except Exception as e:CODE
MEDIUM…del-conversion/scripts/embedding/run-original-model.py128 print(f"Error reading prompts file: {e}")CODE
MEDIUM…del-conversion/scripts/embedding/run-original-model.py139 print("Error: Model path must be specified either via --model-path argument "CODE
LOWexamples/model-conversion/scripts/utils/check-nmse.py172 except Exception as e:CODE
LOW…conversion/scripts/utils/hf-add-model-to-collection.py31 except Exception as e:CODE
MEDIUM…conversion/scripts/utils/hf-add-model-to-collection.py33 print(f"Error: {e}")CODE
LOW…conversion/scripts/utils/hf-add-model-to-collection.py49 except Exception as e:CODE
LOW…es/model-conversion/scripts/utils/inspect-org-model.py50 except Exception as e:CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py51 print(f"Error reading {single_file}: {e}")CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py54 print(f"Error: No safetensors files found in {model_path}")CODE
LOW…es/model-conversion/scripts/utils/inspect-org-model.py111 except Exception as e:CODE
LOW…es/model-conversion/scripts/utils/inspect-org-model.py120 except Exception as e:CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py121 print(f"Error reading {single_file}: {e}")CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py124 print(f"Error: No safetensors files found in {model_path}")CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py182 print(f"Error: Could not find tensor '{tensor_name}' in model index")CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py212 print(f"Error: Tensor '{tensor_name}' not found in {tensor_file}")CODE
MEDIUM…es/model-conversion/scripts/utils/inspect-org-model.py216 print(f"Error: The file '{file_path}' was not found.")CODE
57 more matches not shown…
Deep Nesting194 hits · 184 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py58CODE
LOWconvert_lora_to_gguf.py222CODE
LOWconvert_hf_to_gguf.py30CODE
LOWconvert_hf_to_gguf.py175CODE
LOWconvert_llama_ggml_to_gguf.py204CODE
LOWconvert_llama_ggml_to_gguf.py287CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py202CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py312CODE
LOWtools/server/bench/bench.py24CODE
LOWtools/server/tests/utils.py367CODE
LOWtools/server/tests/utils.py426CODE
LOWtools/server/tests/unit/test_mcp_servers.py626CODE
LOWtools/server/tests/unit/test_router.py33CODE
LOWtools/server/tests/unit/test_router.py487CODE
LOWtools/server/tests/unit/test_vision_api.py8CODE
LOWtools/server/tests/unit/test_chat_completion.py402CODE
LOWtools/server/tests/unit/test_completion.py465CODE
LOWgguf-py/gguf/gguf_writer.py113CODE
LOWgguf-py/gguf/gguf_writer.py334CODE
LOWgguf-py/gguf/gguf_writer.py442CODE
LOWgguf-py/gguf/gguf_writer.py1253CODE
LOWgguf-py/gguf/gguf_writer.py1575CODE
LOWgguf-py/gguf/vocab.py161CODE
LOWgguf-py/gguf/vocab.py183CODE
LOWgguf-py/gguf/metadata.py240CODE
LOWgguf-py/gguf/metadata.py365CODE
LOWgguf-py/gguf/gguf_reader.py62CODE
LOWgguf-py/gguf/gguf_reader.py335CODE
LOWgguf-py/gguf/constants.py5595CODE
LOWgguf-py/gguf/scripts/gguf_convert_endian.py90CODE
LOWgguf-py/gguf/scripts/gguf_new_metadata.py103CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py448CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py495CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py643CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py784CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py938CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1062CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1131CODE
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1476CODE
LOWgguf-py/gguf/scripts/gguf_dump.py32CODE
LOWgguf-py/gguf/scripts/gguf_dump.py153CODE
LOWgguf-py/gguf/scripts/gguf_dump.py228CODE
LOWgguf-py/gguf/scripts/gguf_dump.py444CODE
LOWgguf-py/tests/test_quants.py145CODE
LOWgguf-py/tests/test_quants.py88CODE
LOWtests/test-tokenizer-random.py255CODE
LOWtests/test-tokenizer-random.py267CODE
LOWexamples/json_schema_to_grammar.py30CODE
LOWexamples/json_schema_to_grammar.py53CODE
LOWexamples/json_schema_to_grammar.py337CODE
LOWexamples/json_schema_to_grammar.py397CODE
LOWexamples/json_schema_to_grammar.py568CODE
LOWexamples/json_schema_to_grammar.py343CODE
LOWexamples/json_schema_to_grammar.py421CODE
LOWexamples/pydantic_models_to_grammar_examples.py89CODE
LOWexamples/convert_legacy_llama.py699CODE
LOWexamples/convert_legacy_llama.py1100CODE
LOWexamples/convert_legacy_llama.py773CODE
LOWexamples/pydantic_models_to_grammar.py55CODE
LOWexamples/pydantic_models_to_grammar.py280CODE
134 more matches not shown…
Unused Imports175 hits · 173 pts
SeverityFileLineSnippetContext
LOWconvert_lora_to_gguf.py4CODE
LOWconvert_hf_to_gguf.py4CODE
LOWconvert_llama_ggml_to_gguf.py2CODE
LOW…legacy-models/glmedge-convert-image-encoder-to-gguf.py8CODE
LOW…ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py8CODE
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py414CODE
LOWtools/server/bench/bench.py1CODE
LOWtools/server/bench/speed-bench/speed_bench.py2CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py2CODE
LOWtools/server/bench/speed-bench/speed_bench_compare.py9CODE
LOWtools/server/tests/conftest.py2CODE
LOWtools/server/tests/utils.py17CODE
LOWtools/server/tests/utils.py17CODE
LOWtools/server/tests/unit/test_infill.py2CODE
LOWtools/server/tests/unit/test_basic.py3CODE
LOWtools/server/tests/unit/test_security.py3CODE
LOWtools/server/tests/unit/test_tools_builtin.py6CODE
LOWtools/server/tests/unit/test_sleep.py3CODE
LOWtools/server/tests/unit/test_metrics.py2CODE
LOWtools/server/tests/unit/test_mcp_servers.py19CODE
LOWtools/server/tests/unit/test_mcp_servers.py21CODE
LOWtools/server/tests/unit/test_router.py3CODE
LOWtools/server/tests/unit/test_ctx_shift.py2CODE
LOWtools/server/tests/unit/test_speculative.py2CODE
LOWtools/server/tests/unit/test_compat_oai_responses.py3CODE
LOWtools/server/tests/unit/test_tool_call.py10CODE
LOWtools/server/tests/unit/test_vision_api.py2CODE
LOWtools/server/tests/unit/test_rerank.py2CODE
LOWtools/server/tests/unit/test_embedding.py5CODE
LOWtools/server/tests/unit/test_ignore_eos.py2CODE
LOWtools/server/tests/unit/test_chat_completion.py3CODE
LOWtools/server/tests/unit/test_tokenize.py2CODE
LOWtools/server/tests/unit/test_kv_keep_only_active.py4CODE
LOWtools/server/tests/unit/test_compat_gcp.py2CODE
LOWtools/server/tests/unit/test_proxy.py2CODE
LOWtools/server/tests/unit/test_slot_save.py2CODE
LOWtools/server/tests/unit/test_completion.py7CODE
LOWtools/server/tests/unit/test_compat_anthropic.py6CODE
LOWtools/server/tests/unit/test_template.py13CODE
LOWtools/server/tests/unit/test_stream.py7CODE
LOWtools/server/tests/unit/test_lora.py2CODE
LOWgguf-py/gguf/gguf_writer.py1CODE
LOWgguf-py/gguf/vocab.py1CODE
LOWgguf-py/gguf/metadata.py1CODE
LOWgguf-py/gguf/gguf_reader.py5CODE
LOWgguf-py/gguf/tensor_mapping.py1CODE
LOWgguf-py/gguf/utility.py1CODE
LOWgguf-py/gguf/constants.py1CODE
LOWgguf-py/gguf/__init__.py1CODE
LOWgguf-py/gguf/__init__.py2CODE
LOWgguf-py/gguf/__init__.py3CODE
LOWgguf-py/gguf/__init__.py4CODE
LOWgguf-py/gguf/__init__.py5CODE
LOWgguf-py/gguf/__init__.py6CODE
LOWgguf-py/gguf/__init__.py7CODE
LOWgguf-py/gguf/__init__.py8CODE
LOWgguf-py/gguf/__init__.py9CODE
LOWgguf-py/gguf/lazy.py1CODE
LOWgguf-py/gguf/quants.py1CODE
LOWgguf-py/gguf/scripts/gguf_convert_endian.py2CODE
115 more matches not shown…
Structural Annotation Overuse78 hits · 146 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/make-icons-circular.js89 // Step 1: Scale source relative to circle diameter (not full icon), composite centered onto white canvas of full sizeCOMMENT
LOWtools/ui/scripts/make-icons-circular.js101 // Step 2: Composite scaled image onto white background, then apply circular maskCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts206 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts224 // Step 1: Protect code blocksCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts233 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts272 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts276 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts295 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts303 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts321 // Step 7: Restore code blocksCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts327 // Step 8: Restore blockquote markersCOMMENT
LOWtools/mtmd/models/mobilenetv5.cpp217 // Step 1: Compute Q @ K.TCOMMENT
LOWinclude/llama.h1215 /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: httpsCOMMENT
LOWtests/test-backend-ops.cpp1974 // Step 1: create input tensors that don't depend on any other tensors:COMMENT
LOWtests/test-backend-ops.cpp1981 // Step 2: use the op that you want to test in the GGML compute graph.COMMENT
LOWtests/test-backend-ops.cpp1985 // Step 3: return the output tensor.COMMENT
LOWdocs/development/debugging-tests.md41#### Step 1: Reset and Setup folder contextCOMMENT
LOWdocs/development/debugging-tests.md49#### Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOWdocs/development/debugging-tests.md58#### Step 3: Find all tests available that matches REGEXCOMMENT
LOWdocs/development/debugging-tests.md86#### Step 4: Identify Test Command for DebuggingCOMMENT
LOWdocs/development/debugging-tests.md92#### Step 5: Run GDB on test commandCOMMENT
LOWscripts/check-requirements.sh8# WARNING: This is quite IO intensive, because a fresh venv is set up for everyCOMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOWscripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOWscripts/debug-test.sh118# Step 3: Find all tests available that matches REGEXCOMMENT
LOWscripts/debug-test.sh134# Step 4: Identify Test Command for DebuggingCOMMENT
LOWscripts/debug-test.sh171# Step 5: Execute or GDB DebugCOMMENT
LOWskills/code-review/SKILL.md17## Step 0 - Scope the diff and pick the checklistsCOMMENT
LOWskills/add-new-model/SKILL.md21## Step 0 - Scope and dedup checkCOMMENT
LOWskills/add-new-model/SKILL.md33## Step 1 - Convert the model to GGUFCOMMENT
LOWskills/add-new-model/SKILL.md39## Step 2 - Define the architecture in llama.cppCOMMENT
LOWskills/add-new-model/SKILL.md45## Step 3 - Build the GGML graphCOMMENT
LOWskills/add-new-model/SKILL.md51## Step 4 - Optional: multimodal encoderCOMMENT
LOWskills/add-new-model/SKILL.md57## Step 5 - Optional: chat template / parsing supportCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c84 // Step 1: sum for meanCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c110 // Step 2: compute (x - mean) → dst, accumulate varianceCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c143 // Step 3: apply scale to centered values in dstCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c100 // Step 1: Compute sum of squares using 8-wide vectorsCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c124 // Step 2: scale = rsqrt(mean + eps)COMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c132 // Step 3: Apply scaling: broadcast scale once, reuse across loopCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c177 // Step 1: sa = dot(a, state_prev[i])COMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c196 // Step 2: state update + result accumulationCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp243 // Step 1: Apply decay gate to stateCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp248 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp255 // Step 3: state += outer(delta, k)COMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp261 // Step 4: attn_out = S @ q * scaleCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp25 // Step 1: Calculate mean along the last dimensionCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp30 // Step 2: Calculate (input - mean)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp33 // Step 3: Calculate squared differences (input - mean)^2COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp37 // Step 4: Calculate variance = mean((input - mean)^2)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp41 // Step 5: Get epsilon from op_paramsCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp45 // Step 6: Calculate std = sqrt(variance + eps)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp49 // Step 7: Normalize: output = (input - mean) / stdCOMMENT
LOWggml/src/ggml-metal/CMakeLists.txt87 # Step 1: concatenate shared headers + this kernel sourceCOMMENT
LOWggml/src/ggml-metal/CMakeLists.txt89 # Step 2: remove internal #include and #pragma onceCOMMENT
LOWggml/src/ggml-metal/CMakeLists.txt91 # Step 3: inline ggml-common.h (replacing __embed_ggml-common.h__ sentinel)COMMENT
LOWggml/src/ggml-metal/CMakeLists.txt93 # Step 4: inline ggml-metal-impl.hCOMMENT
LOWggml/src/ggml-metal/CMakeLists.txt95 # Step 5: emit an asm chunk with kind-specific start/end symbolsCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2809 // Step 5: multiply by attn_factorCOMMENT
18 more matches not shown…
Hallucination Indicators12 hits · 140 pts
SeverityFileLineSnippetContext
CRITICALapp/download.cpp66 if (!params.speculative.draft.mparams.path.empty()) {CODE
CRITICALapp/download.cpp67 printf("%s\n", params.speculative.draft.mparams.path.c_str());CODE
CRITICALtests/test-model-resolution.cpp383 REQUIRE(params.speculative.draft.mparams.path.empty());CODE
CRITICALcommon/arg.cpp404 if (!params.speculative.draft.mparams.hf_repo.empty()) {CODE
CRITICALcommon/arg.cpp508 if (!params.speculative.draft.mparams.url.empty()) {CODE
CRITICALcommon/arg.cpp536 if (!params.speculative.draft.mparams.hf_file.empty()) {CODE
CRITICALcommon/arg.cpp565 if (spec_types_is_default(params) && !params.speculative.draft.mparams.path.empty()) {CODE
CRITICALcommon/arg.cpp580 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICALcommon/arg.cpp590 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICALcommon/arg.cpp600 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICALcommon/arg.cpp610 if (params.speculative.draft.mparams.path.empty()) {CODE
CRITICALexamples/speculative/speculative.cpp53 if (params.speculative.draft.mparams.path.empty()) {CODE
Cross-File Repetition25 hits · 125 pts
SeverityFileLineSnippetContext
HIGH…legacy-models/glmedge-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGH…ls/mtmd/legacy-models/convert_image_encoder_to_gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGH…egacy-models/minicpmv-convert-image-encoder-to-gguf.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGHgguf-py/gguf/vocab.py0returns list of utf-8 byte and a mapping to unicode strings. we specifically avoids mapping to whitespace/control characSTRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": 5, "maximum": 30 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "integer", "minimum": -123, "maximum": 42 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": [ { "format": "date" }, { "format": "uuid" }, { "format": "time" }, { "format": "date-time" } ] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-integration.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "type": "string", "minlength": 1, "maxlength": 4 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-integration.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "enum": ["red", "amber", "green", null, 42, ["foo"]] })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-integration.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "items": { "type": ["number", "integer"] }, "minitems": 3, "maxitems": 5 })STRING
HIGHtests/test-grammar-llguidance.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-grammar-integration.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
HIGHtests/test-json-schema-to-grammar.cpp0({ "properties": { "b": {"type": "string"}, "a": {"type": "string"}, "d": {"type": "string"}, "c": {"type": "string"} },STRING
Redundant / Tautological Comments67 hits · 118 pts
SeverityFileLineSnippetContext
LOWtools/mtmd/tests.sh18# Check if the first argument is "big", then run test with big modelsCOMMENT
LOWtools/mtmd/tests.sh42# Check if the second argument is "flash", then enable flash attentionCOMMENT
LOWtools/server/tests/utils.py336 # Check if process diedCOMMENT
LOWtools/server/tests/utils.py687 # Check if there were any exceptionsCOMMENT
LOWtools/server/tests/unit/test_compat_anthropic.py295 # Check if model used the tool (it might not always, depending on the model)COMMENT
LOWgguf-py/gguf/metadata.py261 # Check if we erroneously matched against './' or '../' etc...COMMENT
LOWgguf-py/gguf/metadata.py457 # Check if Hugging Face ID is present in URLCOMMENT
LOWgguf-py/gguf/metadata.py515 # Check if Hugging Face ID is present in URLCOMMENT
LOWgguf-py/gguf/gguf_reader.py80 # Check if it's unsafe to perform slice optimization on dataCOMMENT
LOWgguf-py/gguf/gguf_reader.py246 # Check if it's a simple scalar type.COMMENT
LOWgguf-py/gguf/utility.py207 # Check if we have enough data to read the metadataCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1150 # Check if this is an enum fieldCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1155 # Check if it's a nameCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1160 # Check if it's a number or "NAME (value)" formatCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py965 # Check if this is an enum arrayCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py972 # Check if this is an enum fieldCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1072 # Check if this field has an enum typeCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1317 # Check if this is one of the linked tokenizer keysCOMMENT
LOWgguf-py/gguf/scripts/gguf_editor_gui.py1431 # Check if key already existsCOMMENT
LOWgguf-py/gguf/scripts/gguf_dump.py336 # Check if new Tensor GroupCOMMENT
LOWtests/test-lora-conversion-inference.sh139# Print resultsCOMMENT
LOWexamples/convert_legacy_llama.py1200 # Check if it's a set of safetensors files firstCOMMENT
LOWexamples/pydantic_models_to_grammar.py490 # Check if the field is optional (not required)COMMENT
LOWexamples/pydantic_models_to_grammar.py96 if not parts: # Check if the list is emptyCODE
LOWexamples/llama-eval/llama-server-simulator.py127 # Check if question text is contained in the cleaned requestCOMMENT
LOW…mples/model-conversion/scripts/utils/perplexity-gen.sh16# Check if data/wikitext-2-raw directory existsCOMMENT
LOW…odel-conversion/scripts/utils/perplexity-run-simple.sh15# Check if data/wikitext-2-raw directory existsCOMMENT
LOWexamples/model-conversion/scripts/utils/common.py65 # Check if there's an overlap between first and last indices or if we're at the edge case of s = 2 * max_seqCOMMENT
LOW…model-conversion/scripts/utils/hf-create-collection.py23 # Check if HF_TOKEN is availableCOMMENT
LOW…mples/model-conversion/scripts/utils/semantic_check.py40 # Check if this is pooled (single embedding) or per-token embeddingsCOMMENT
LOW…mples/model-conversion/scripts/utils/semantic_check.py85 # Check if the distance of each token embedding from the origin and compareCOMMENT
LOWscripts/release.sh77 # Check if we have the latest from master (skip in dry-run)COMMENT
LOWscripts/compare-llama-bench.py187 # Check if all required Python libraries are installed. Would have failed earlier if not.STRING
LOWscripts/verify-checksum-models.py31# Check if the hash list file existsCOMMENT
LOWscripts/verify-checksum-models.py54 # Check if the file existsCOMMENT
LOWscripts/verify-checksum-models.py70 # Add the results to the arrayCOMMENT
LOWscripts/verify-checksum-models.py82# Output the results as a tableCOMMENT
LOWscripts/apple/validate-macos.sh688# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-macos.sh707# Check if app was created successfullyCOMMENT
LOWscripts/apple/validate-macos.sh715# Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-macos.sh723# Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-macos.sh731# Check if framework binary existsCOMMENT
LOWscripts/apple/validate-visionos.sh682# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-visionos.sh707# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-visionos.sh716 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-visionos.sh724 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-visionos.sh732 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-visionos.sh740 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-ios.sh691# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-ios.sh716# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-ios.sh725 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-ios.sh733 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-ios.sh741 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-ios.sh749 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-tvos.sh684# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-tvos.sh709# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-tvos.sh718 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-tvos.sh726 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-tvos.sh734 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-tvos.sh742 # Check if framework binary existsCOMMENT
7 more matches not shown…
Verbosity Indicators60 hits · 110 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/make-icons-circular.js89 // Step 1: Scale source relative to circle diameter (not full icon), composite centered onto white canvas of full sizeCOMMENT
LOWtools/ui/scripts/make-icons-circular.js101 // Step 2: Composite scaled image onto white background, then apply circular maskCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts206 // Step 0: Temporarily remove blockquote markers (>) to process LaTeX correctlyCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts224 // Step 1: Protect code blocksCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts233 // Step 2: Protect existing LaTeX expressionsCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts272 // Step 3: Escape standalone $ before digits (currency like $5 → \$5)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts276 // Step 4: Restore protected LaTeX expressions (they are valid)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts295 // Step 5: Apply additional escaping functions (brackets and mhchem)COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts303 // Step 6: Convert remaining \(...\) → $...$, \[...\] → $$...$$COMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts321 // Step 7: Restore code blocksCOMMENT
LOWtools/ui/src/lib/utils/latex-protection.ts327 // Step 8: Restore blockquote markersCOMMENT
LOWtools/mtmd/models/mobilenetv5.cpp217 // Step 1: Compute Q @ K.TCOMMENT
LOWtests/test-backend-ops.cpp1974 // Step 1: create input tensors that don't depend on any other tensors:COMMENT
LOWtests/test-backend-ops.cpp1981 // Step 2: use the op that you want to test in the GGML compute graph.COMMENT
LOWtests/test-backend-ops.cpp1985 // Step 3: return the output tensor.COMMENT
LOWscripts/debug-test.sh62# Step 0: Check the argsCOMMENT
LOWscripts/debug-test.sh95# Step 1: Reset and Setup folder contextCOMMENT
LOWscripts/debug-test.sh109# Step 2: Setup Build Environment and Compile Test BinariesCOMMENT
LOWscripts/debug-test.sh118# Step 3: Find all tests available that matches REGEXCOMMENT
LOWscripts/debug-test.sh134# Step 4: Identify Test Command for DebuggingCOMMENT
LOWscripts/debug-test.sh171# Step 5: Execute or GDB DebugCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c84 // Step 1: sum for meanCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c110 // Step 2: compute (x - mean) → dst, accumulate varianceCOMMENT
LOWggml/src/ggml-et/et-kernels/src/norm_f32.c143 // Step 3: apply scale to centered values in dstCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c100 // Step 1: Compute sum of squares using 8-wide vectorsCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c124 // Step 2: scale = rsqrt(mean + eps)COMMENT
LOWggml/src/ggml-et/et-kernels/src/rms_norm_f32.c132 // Step 3: Apply scaling: broadcast scale once, reuse across loopCOMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c177 // Step 1: sa = dot(a, state_prev[i])COMMENT
LOWggml/src/ggml-et/et-kernels/src/rwkv_wkv7_f32.c196 // Step 2: state update + result accumulationCOMMENT
LOWggml/src/ggml-webgpu/ggml-webgpu.cpp1437 // For set rows specifically, we need to check if src and idx are emptyCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp243 // Step 1: Apply decay gate to stateCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp248 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp255 // Step 3: state += outer(delta, k)COMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp261 // Step 4: attn_out = S @ q * scaleCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp25 // Step 1: Calculate mean along the last dimensionCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp30 // Step 2: Calculate (input - mean)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp33 // Step 3: Calculate squared differences (input - mean)^2COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp37 // Step 4: Calculate variance = mean((input - mean)^2)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp41 // Step 5: Get epsilon from op_paramsCOMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp45 // Step 6: Calculate std = sqrt(variance + eps)COMMENT
LOWggml/src/ggml-openvino/openvino/op/norm.cpp49 // Step 7: Normalize: output = (input - mean) / stdCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2809 // Step 5: multiply by attn_factorCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp2826 // Step 6: repeatCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3090 // Step 1: Prepare trans tensors for F16 type conversion to F32 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3115 // Step 2: Prepare head tensors for tail splitting if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3144 // Step 3: Execute RotaryPositionEmbeddingCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3191 // Step 4: Copy unrotated tail portion from source to destinationCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3220 // Step 5: Cast back to F16 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3906 // Step 1: cast the src0 (Query) to fp16 if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3929 // Step 2: create the acl tensors for src1 (Key), src2 (Value),COMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp3973 // Step 3: create the PSEShift tensor if neededCOMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp4042 // Step 4: set the inputs for FusedInferAttention.COMMENT
LOWggml/src/ggml-cann/aclnn_ops.cpp4103 // Step 6: post-processing — slice padded output and/or cast to f32COMMENT
LOWsrc/llama-sampler.cpp3402 // Step 1: Look for restart sequences to limit the maximum repetition length.COMMENT
LOWsrc/llama-sampler.cpp3463 // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (inCOMMENT
LOWsrc/llama-sampler.cpp3527 // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat lengthCOMMENT
LOWsrc/llama-sampler.cpp3554 // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens.COMMENT
LOWsrc/models/kimi-linear.cpp197 // Step 1: Q, K, V projections -> [d_inner, n_tokens]COMMENT
LOWsrc/models/kimi-linear.cpp377 // Step 1: Q projection and reshapeCOMMENT
LOWsrc/models/kimi-linear.cpp382 // Step 2: KV compressionCOMMENT
Self-Referential Comments28 hits · 88 pts
SeverityFileLineSnippetContext
MEDIUMbuild-xcframework.sh406 # Create a separate directory for dSYMs for all platformsCOMMENT
MEDIUMbuild-xcframework.sh414 # Create a copy of the binary that will be strippedCOMMENT
MEDIUMtools/server/tests/unit/test_mcp_servers.py495 # Create a minimal server that returns empty tools listCOMMENT
MEDIUMci/run.sh772 # Create a fresh python3 venv and enter itCOMMENT
MEDIUMgguf-py/gguf/metadata.py66 # Create a new Metadata instanceCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py42# Define the tokenizer keys that should be edited togetherCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py228 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py539 # Create a widget to hold the buttonCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py579 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py705 # Create a dialog with enum optionsCOMMENT
MEDIUMgguf-py/gguf/scripts/gguf_editor_gui.py1271 # Create a dialog with enum optionsCOMMENT
MEDIUMexamples/ts-type-to-grammar.sh10# Create a temporary directoryCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py186 # Define the rule identifier based on max_digit and min_digitCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py241 # Define the integer part ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py248 # Define the fractional part rule based on precision constraintsCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py264 # Define the float ruleCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py370 # Defining the union grammar rule separatelyCOMMENT
MEDIUMexamples/pydantic_models_to_grammar.py1179 # Creating the dynamic modelCOMMENT
MEDIUM…model-conversion/scripts/utils/hf-create-collection.py39 # Create the collectionCOMMENT
MEDIUMscripts/verify-checksum-models.py25# Define the path to the llama directory (parent folder of script directory)COMMENT
MEDIUMscripts/verify-checksum-models.py28# Define the file with the list of hashes and filenamesCOMMENT
MEDIUMscripts/verify-checksum-models.py40# Create an array to store the resultsCOMMENT
MEDIUMscripts/apple/validate-macos.sh574# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-macos.sh670# Create a zip file for potential distributionCOMMENT
MEDIUMscripts/apple/validate-visionos.sh568# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-ios.sh577# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-tvos.sh570# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUM.github/actions/windows-setup-rocm/action.yml17 # Create the venv directly at the cache location to avoid relocation issuesCOMMENT
Modern AI Meta-Vocabulary24 hits · 72 pts
SeverityFileLineSnippetContext
MEDIUMtools/ui/tests/unit/partial-tool-call-cleanup.test.ts23// on Stop/Send immediately, mirroring what the agentic flow already does inCOMMENT
MEDIUMtools/ui/tests/unit/partial-tool-call-cleanup.test.ts67 // After Stop, savePartialResponseIfNeeded clears toolCalls and the agenticCOMMENT
MEDIUMtools/ui/tests/unit/agentic-hotpath.bench.ts1// Microbenchmarks for the functions on the agentic-thread streaming hot path.COMMENT
MEDIUMtools/ui/tests/unit/agentic-hotpath.bench.ts7// Run: npx vitest bench --project=unit tests/unit/agentic-hotpath.bench.tsCOMMENT
MEDIUMtools/ui/tests/client/README-perf.md5## Tier 1 - `agentic-stream.perf.svelte.test.ts` (project: `client`, real Chromium)COMMENT
MEDIUMtools/ui/tests/client/README-perf.md52## Tier 2 - `../unit/agentic-hotpath.bench.ts` (project: `unit`, node)COMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts1// Tier 1 perf harness for the agentic thread.COMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts11// Run: npx vitest --project=client --run tests/client/agentic-stream.perf.svelte.test.tsCOMMENT
MEDIUM…ols/ui/tests/client/agentic-stream.perf.svelte.test.ts380 // Baseline: plain text streaming, nothing agentic.COMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts621 // If agentic loop is running, inject as a steering message instead of starting a new flowCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts628 // If non-agentic streaming is active, queue as a pending message to send after completionCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts1102 // Update the first assistant message with cumulative agentic timingsCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/index.svelte.ts1155 // Generate LLM based title for new conversations after agentic flow completesCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/context-stats.svelte.ts101 // A running agentic flow stamps llm totals on messages only when itCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/context-stats.svelte.ts120 // Agentic sessions stamp the same agentic.llm totals onto everyCOMMENT
MEDIUMtools/ui/src/lib/stores/agentic/index.svelte.ts318 // Ensure server tools are fetched before checking if agentic is enabledCOMMENT
MEDIUMtools/ui/src/lib/utils/agentic.ts478 // Walk consecutive trailing tool results. The agentic loop only emits toolCOMMENT
MEDIUMtools/ui/src/lib/utils/index.ts351// Audio format helper (used by agentic store and chat service)COMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte131 // Build display entries, grouping agentic sessions into single entries.COMMENT
MEDIUM…b/components/app/chat/ChatMessages/ChatMessages.svelte132 // An agentic session = assistant(with tool_calls) → tool → assistant → tool → ... → assistant(final)COMMENT
MEDIUM…ges/ChatMessage/ChatMessageUser/ChatMessageUser.svelte34 // For agentic turns, prefer the cumulative agentic.llm totals over per-call timings.COMMENT
MEDIUM…MessageAssistant/ChatMessageAssistantStatistics.svelte16 // A running agentic flow stamps per-turn timings on its root message at eachCOMMENT
MEDIUM…MessageAssistant/ChatMessageAssistantStatistics.svelte17 // turn boundary and the cumulative agentic totals only on exit; while it runs,COMMENT
MEDIUM…i/src/lib/components/app/chat/ChatForm/ChatForm.svelte155 // policy-aware, same rule as the agentic flow: MCP category on and atCOMMENT
AI Slop Vocabulary18 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMtools/ui/package-lock.json14790 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js3243 return symbol; // Absolutely nothing to doCODE
MEDIUMtools/ui/src/lib/vendors/nerdamer-prime/Algebra.js3754 // this will also need utilize big number at some pointCOMMENT
MEDIUMtools/ui/src/lib/stores/chat/streams.svelte.ts343 // the lookup by message id is robust to reordering of activeMessages, two parallel attachesCOMMENT
MEDIUMgguf-py/gguf/metadata.py394 # (Definitely not part of hugging face formal/informal standard)COMMENT
MEDIUMgguf-py/gguf/metadata.py410 # (Definitely not part of hugging face formal/informal standard... but with model_ appended to match their sCOMMENT
MEDIUMgguf-py/gguf/lazy.py49 # TODO: make this even more comprehensiveCOMMENT
LOWexamples/model-conversion/scripts/utils/common.py70 # If there's overlap, just use the combined unique indicesCOMMENT
MEDIUMexamples/embedding/embedding.cpp122 // utilize the full contextCOMMENT
LOWscripts/jinja/jinja-tester.py116 # Malformed template, just add the tokenCOMMENT
LOWscripts/jinja/jinja-tester.py135 # Malformed template, just add the tokenCOMMENT
MEDIUM.github/workflows/release.yml924 # TODO: these jobs need to use llvm toolchain in order to utilize the ccacheCOMMENT
LOWconversion/deepseek.py47 # @bluebread: there's no window_size in config but just add it here anywayCOMMENT
LOWconversion/granite.py766 # If not layer id, just use the projector indexCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp603 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp645 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMggml/src/ggml-cpu/amx/mmq.cpp743 // pack again with 128 to fully utilize vector lengthCOMMENT
MEDIUMsrc/llama-context.cpp665 // need to implement a more robust mechanism that tries a few different inputs and analyzes the resultsCOMMENT
Synthetic Comment Markers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/completion/README.md90<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHtools/server/README.md28<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHtools/cli/README.md7<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manually -->CODE
HIGHexamples/gen-docs/gen-docs.cpp14#define NOTE_MESSAGE "<!-- IMPORTANT: The list below is auto-generated by llama-gen-docs; do NOT modify it manuallyCOMMENT
HIGHggml/src/ggml-virtgpu/regenerate_remoting.py3# Generated by Claude AISTRING
TODO Padding15 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/server/server-schema.cpp71 // TODO: implement t_max_prompt_msCOMMENT
LOWtools/server/server-task.h67 int64_t t_max_prompt_ms = -1; // TODO: implementCODE
LOWtests/test-backend-ops.cpp8264 // GGML_TYPE_TQ1_0, // TODO: implement for all backendsCOMMENT
LOWtests/test-backend-ops.cpp8292 // GGML_TYPE_TQ1_0, // TODO: implement for all backendsCOMMENT
LOWcommon/speculative.cpp1827 // TODO: implementCOMMENT
LOWcommon/speculative.cpp1875 // TODO: implementCOMMENT
LOWcommon/speculative.cpp2033 // TODO: implementCOMMENT
LOWcommon/speculative.cpp2195 // TODO: implementCOMMENT
LOWconversion/gemma.py568 # TODO: implement self.prediction_coefs.weight.clamp_(...)COMMENT
LOWggml/src/ggml.c3900 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c3924 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c5102 // TODO: implement antialias for modes other than bilinearCOMMENT
LOWggml/src/ggml-zdnn/ggml-zdnn.cpp22 // TODO: implement support for quantized typesCOMMENT
LOWsrc/llama-model-saver.cpp364 // TODO: implement split file supportCOMMENT
LOWsrc/llama-model-saver.cpp414 // TODO: implement LoRA supportCOMMENT
Modern Structural Boilerplate16 hits · 17 pts
SeverityFileLineSnippetContext
LOWgguf-py/gguf/gguf_writer.py35logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py47logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/vocab.py149 def _set_special_token(self, typ: str, tid: Any) -> None:CODE
LOWgguf-py/gguf/gguf_reader.py39logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/lazy.py11logger = logging.getLogger(__name__)CODE
LOWgguf-py/gguf/scripts/gguf_set_metadata.py44def set_metadata(reader: GGUFReader, args: argparse.Namespace) -> None:CODE
LOWscripts/tool_bench.py75logger = logging.getLogger(__name__)CODE
LOWconversion/minimax.py48 def set_vocab(self) -> None:CODE
LOWconversion/command_r.py81 def _set_vocab_gpt2(self) -> None:CODE
LOWconversion/__init__.py11__all__ = [CODE
LOWconversion/laguna.py24 def set_vocab(self) -> None:CODE
LOWconversion/laguna.py64 def set_gguf_parameters(self) -> None:CODE
LOWconversion/bert.py360 def set_vocab(self) -> None:CODE
LOWconversion/base.py1787 def _set_vocab_none(self) -> None:CODE
LOWconversion/base.py1790 def _set_vocab_gpt2(self) -> None:CODE
LOWconversion/base.py1800 def _set_vocab_whitespace(self) -> None:CODE
Example Usage Blocks9 hits · 14 pts
SeverityFileLineSnippetContext
LOWtools/ui/scripts/dev.sh8# Usage:COMMENT
LOWgguf-py/examples/writer.py13# Example usage:COMMENT
LOWtests/test-tokenizer-0.sh3# Usage:COMMENT
LOWtests/test-tokenizer-random.py4# Sample usage:COMMENT
LOWexamples/json_schema_pydantic_example.py1# Usage:COMMENT
LOWscripts/sync-ggml-am.sh5# Usage:COMMENT
LOWscripts/hf.sh5# Usage:COMMENT
LOWscripts/release.sh11# Usage:COMMENT
LOWggml/src/ggml-sycl/dpct/helper.hpp3020 /// Example usage:COMMENT
Cross-Language Confusion3 hits · 12 pts
SeverityFileLineSnippetContext
HIGHtests/test-tokenizer-random.py346 if unicodedata.category(chr(cpt)) in ("Cn", "Cs", "Co"): # undefined, surrogates, privateCODE
HIGHscripts/tool_bench.py10 cmake -B build && cmake --build build --config Release -j -t llama-serverSTRING
HIGHscripts/snapdragon/qdc/run_qdc_jobs.py173 "cd $basedir; chmod +x bin/* lib/* 2>/dev/null;",CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/mtmd/mtmd-helper.h30 // TODO @ngxson : allow "placeholder" bitmap output for counting tokensCOMMENT
LOWtools/server/tests/unit/test_ctx_shift.py8Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtools/server/tests/unit/test_ctx_shift.py8Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtools/server/tests/unit/test_ctx_shift.py14Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWtools/server/tests/unit/test_ctx_shift.py14Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqCODE
LOWsrc/llama-graph.cpp1422 LLAMA_LOG_DEBUG("%s: can_reuse = %d\n", "placeholder", cur);CODE
AI Structural Patterns8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…egacy-models/minicpmv-convert-image-encoder-to-gguf.py82CODE
LOWgguf-py/gguf/utility.py90CODE
LOWgguf-py/gguf/utility.py185CODE
LOWexamples/pydantic_models_to_grammar_examples.py308CODE
LOWexamples/pydantic_models_to_grammar.py1027CODE
LOWscripts/tool_bench.py204CODE
LOWconversion/gpt_oss.py47CODE
LOWconversion/base.py124CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/server/README.md1607 -H "x-api-key: your-api-key" \CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHexamples/pydantic_models_to_grammar.py532 Generate GBNF Grammar from Pydantic Models. This method takes a list of Pydantic models and uses them to generSTRING
Slop Phrases4 hits · 5 pts
SeverityFileLineSnippetContext
LOW.github/ISSUE_TEMPLATE/030-research.yml9 Don't forget to check for any [duplicate research issue tickets](https://github.com/ggml-org/llama.cpp/issues?q=CODE
LOW.github/ISSUE_TEMPLATE/040-refactor.yml9 Don't forget to [check for existing refactor issue tickets](https://github.com/ggml-org/llama.cpp/issues?q=is%3ACODE
LOWconversion/base.py1443 # To avoid unexpected issues - we make sure to normalize non-normalized tokensCOMMENT
LOWconversion/base.py2212 # To avoid unexpected issues - we make sure to normalize non-normalized tokensCOMMENT