Repository Analysis

ggml-org/whisper.cpp

Port of OpenAI's Whisper model in C/C++

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ggml-org/whisper.cpp, a C++ project with 51,781 GitHub stars. SynthScan v2.0 examined 472,427 lines of code across 1120 source files, recording 1064 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 2.5 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).

2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-11
Last Push
51.8K
Stars
C++
Language
472.4K
Lines of Code
1.1K
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 1HIGH 15MEDIUM 31LOW 1017

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 1064 distinct pattern matches across 19 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 Block857 hits · 762 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt141 endif()COMMENT
LOWci/run.sh1#!/bin/bashCOMMENT
LOWinclude/whisper.h1#ifndef WHISPER_HCOMMENT
LOWinclude/whisper.h21# ifdef WHISPER_BUILDCOMMENT
LOWinclude/whisper.h41COMMENT
LOWinclude/whisper.h61 // }COMMENT
LOWinclude/whisper.h241 WHISPER_API struct whisper_state * whisper_init_state(struct whisper_context * ctx);COMMENT
LOWinclude/whisper.h361 // Examples:COMMENT
LOWinclude/parakeet.h1#ifndef PARAKEET_HCOMMENT
LOWinclude/parakeet.h21# ifdef PARAKEET_BUILDCOMMENT
LOWtests/run-tests.sh1#!/bin/bashCOMMENT
LOWtests/parakeet-verification.h1#pragma onceCOMMENT
LOWtests/test-vad-full.cpp1#include "whisper.h"COMMENT
LOWmodels/convert-parakeet-to-ggml.py1#!/usr/bin/env python3COMMENT
LOWmodels/convert-h5-to-ggml.py1# Convert Hugging Face fine-tuned models to ggml formatCOMMENT
LOWmodels/convert-pt-to-ggml.py1# Convert Whisper transformer model from PyTorch to ggml formatCOMMENT
LOWmodels/convert-pt-to-ggml.py21# - mel filtersCOMMENT
LOWmodels/convert-pt-to-ggml.py41import numpy as npCOMMENT
LOWmodels/convert-pt-to-ggml.py61# "nl": "dutch",COMMENT
LOWmodels/convert-pt-to-ggml.py81# "hr": "croatian",COMMENT
LOWmodels/convert-pt-to-ggml.py101# "is": "icelandic",COMMENT
LOWmodels/convert-pt-to-ggml.py121# "tg": "tajik",COMMENT
LOWmodels/convert-pt-to-ggml.py141# "tt": "tatar",COMMENT
LOWexamples/ffmpeg-transcode.cpp1#ifdef WHISPER_COMMON_FFMPEGCOMMENT
LOWexamples/grammar-parser.h1// Implements a parser for an extended Backus-Naur form (BNF), producing theCOMMENT
LOWexamples/json.hpp21#include <algorithm> // all_of, find, for_eachCOMMENT
LOWexamples/json.hpp41// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>COMMENT
LOWexamples/json.hpp61#ifndef JSON_SKIP_LIBRARY_VERSION_CHECKCOMMENT
LOWexamples/json.hpp81#if JSON_DIAGNOSTICSCOMMENT
LOWexamples/json.hpp141 {COMMENT
LOWexamples/json.hpp161#include <algorithm> // transformCOMMENT
LOWexamples/json.hpp181COMMENT
LOWexamples/json.hpp201#include <array> // arrayCOMMENT
LOWexamples/json.hpp221// | | |__ | | | | | | version 3.11.2COMMENT
LOWexamples/json.hpp321// | | |__ | | | | | | version 3.11.2COMMENT
LOWexamples/json.hpp341#define JSON_HEDLEY_STRINGIFY_EX(x) #xCOMMENT
LOWexamples/json.hpp361#define JSON_HEDLEY_CONCAT3_EX(a,b,c) a##b##cCOMMENT
LOWexamples/json.hpp381#define JSON_HEDLEY_VERSION_DECODE_MINOR(version) (((version) % 1000000) / 1000)COMMENT
LOWexamples/json.hpp401 #define JSON_HEDLEY_GNUC_VERSION_CHECK(major,minor,patch) (JSON_HEDLEY_GNUC_VERSION >= JSON_HEDLEY_VERSION_ENCODE(maCOMMENT
LOWexamples/json.hpp421 #define JSON_HEDLEY_MSVC_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexamples/json.hpp441#endifCOMMENT
LOWexamples/json.hpp461 #define JSON_HEDLEY_INTEL_CL_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexamples/json.hpp481 #undef JSON_HEDLEY_SUNPRO_VERSIONCOMMENT
LOWexamples/json.hpp501COMMENT
LOWexamples/json.hpp521#if defined(__CC_ARM) && defined(__ARMCOMPILER_VERSION)COMMENT
LOWexamples/json.hpp541#elif defined(__xlC__) && defined(__xlC_ver__)COMMENT
LOWexamples/json.hpp561 ( \COMMENT
LOWexamples/json.hpp581 #undef JSON_HEDLEY_TI_CL2000_VERSIONCOMMENT
LOWexamples/json.hpp601#endifCOMMENT
LOWexamples/json.hpp621#endifCOMMENT
LOWexamples/json.hpp641 #define JSON_HEDLEY_TI_CL6X_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexamples/json.hpp661 #undef JSON_HEDLEY_TI_CLPRU_VERSIONCOMMENT
LOWexamples/json.hpp681 #define JSON_HEDLEY_CRAY_VERSION JSON_HEDLEY_VERSION_ENCODE(_RELEASE_MAJOR, _RELEASE_MINOR, _RELEASE_PATCHLEVEL)COMMENT
LOWexamples/json.hpp701 #define JSON_HEDLEY_IAR_VERSION JSON_HEDLEY_VERSION_ENCODE((__VER__ / 1000000), ((__VER__ / 1000) % 1000), (__VECOMMENT
LOWexamples/json.hpp721#endifCOMMENT
LOWexamples/json.hpp741#endifCOMMENT
LOWexamples/json.hpp761 #define JSON_HEDLEY_COMPCERT_VERSION_CHECK(major,minor,patch) (0)COMMENT
LOWexamples/json.hpp781 #undef JSON_HEDLEY_MCST_LCC_VERSIONCOMMENT
LOWexamples/json.hpp821#if defined(JSON_HEDLEY_GCC_VERSION)COMMENT
LOWexamples/json.hpp841 #undef JSON_HEDLEY_GNUC_HAS_ATTRIBUTECOMMENT
797 more matches not shown…
Redundant / Tautological Comments34 hits · 66 pts
SeverityFileLineSnippetContext
LOWmodels/convert-silero-vad-to-ggml.py146 # Check if this is a convolution weight tensorCOMMENT
LOWmodels/download-ggml-model.sh27# Check if the script is inside a /bin/ directoryCOMMENT
LOWmodels/download-ggml-model.sh143# Check if 'whisper-cli' is available in the system PATHCOMMENT
LOWmodels/download-coreml-model.sh24# Check if the script is inside a /bin/ directoryCOMMENT
LOWmodels/download-coreml-model.sh88# Check if 'whisper-cli' is available in the system PATHCOMMENT
LOWmodels/download-vad-model.sh24# Check if the script is inside a /bin/ directoryCOMMENT
LOWmodels/download-vad-model.sh93# Check if 'whisper-cli' is available in the system PATHCOMMENT
LOWexamples/server.py60 # Check if this is a request to a file in whisper.wasmCOMMENT
LOWexamples/python/whisper_processor.py17 # Check if the file existsCOMMENT
LOWscripts/bench.py128# Check if the sample file existsCOMMENT
LOWscripts/apple/validate-macos.sh685# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-macos.sh704# Check if app was created successfullyCOMMENT
LOWscripts/apple/validate-macos.sh712# Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-macos.sh720# Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-macos.sh728# Check if framework binary existsCOMMENT
LOWscripts/apple/validate-visionos.sh679# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-visionos.sh704# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-visionos.sh713 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-visionos.sh721 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-visionos.sh729 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-visionos.sh737 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-ios.sh688# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-ios.sh713# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-ios.sh722 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-ios.sh730 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-ios.sh738 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-ios.sh746 # Check if framework binary existsCOMMENT
LOWscripts/apple/validate-tvos.sh681# Check if authentication credentials are providedCOMMENT
LOWscripts/apple/validate-tvos.sh706# Check if validation failed because the app isn't in App Store ConnectCOMMENT
LOWscripts/apple/validate-tvos.sh715 # Check if IPA was created successfullyCOMMENT
LOWscripts/apple/validate-tvos.sh723 # Check if app binary exists and is executableCOMMENT
LOWscripts/apple/validate-tvos.sh731 # Check if framework was properly embeddedCOMMENT
LOWscripts/apple/validate-tvos.sh739 # Check if framework binary existsCOMMENT
LOWggml/src/ggml-virtgpu/regenerate_remoting.py46 # Check if clang-format is availableCOMMENT
Cross-File Repetition12 hits · 60 pts
SeverityFileLineSnippetContext
HIGHtests/earnings21/normalizers/basic.py0replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'mn' and some manuaSTRING
HIGHtests/librispeech/normalizers/basic.py0replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'mn' and some manuaSTRING
HIGHtests/librispeech-parakeet/normalizers/basic.py0replace any other markers, symbols, and punctuations with a space, and drop any diacritics (category 'mn' and some manuaSTRING
HIGHtests/earnings21/normalizers/basic.py0replace any other markers, symbols, punctuations with a space, keeping diacriticsSTRING
HIGHtests/librispeech/normalizers/basic.py0replace any other markers, symbols, punctuations with a space, keeping diacriticsSTRING
HIGHtests/librispeech-parakeet/normalizers/basic.py0replace any other markers, symbols, punctuations with a space, keeping diacriticsSTRING
HIGHtests/earnings21/normalizers/english.py0convert any spelled-out numbers into arabic numbers, while handling: - remove any commas - keep the suffixes such as: `1STRING
HIGHtests/librispeech/normalizers/english.py0convert any spelled-out numbers into arabic numbers, while handling: - remove any commas - keep the suffixes such as: `1STRING
HIGHtests/librispeech-parakeet/normalizers/english.py0convert any spelled-out numbers into arabic numbers, while handling: - remove any commas - keep the suffixes such as: `1STRING
HIGHtests/earnings21/normalizers/english.py0applies british-american spelling mappings as listed in [1]. [1] https://www.tysto.com/uk-us-spelling-list.htmlSTRING
HIGHtests/librispeech/normalizers/english.py0applies british-american spelling mappings as listed in [1]. [1] https://www.tysto.com/uk-us-spelling-list.htmlSTRING
HIGHtests/librispeech-parakeet/normalizers/english.py0applies british-american spelling mappings as listed in [1]. [1] https://www.tysto.com/uk-us-spelling-list.htmlSTRING
Structural Annotation Overuse31 hits · 55 pts
SeverityFileLineSnippetContext
LOWexamples/talk-llama/llama.h1185 /// NOTE: This function does not use a jinja parser. It only support a pre-defined list of template. See more: httpsCOMMENT
LOWexamples/talk-llama/llama-sampler.cpp2945 // Step 1: Look for restart sequences to limit the maximum repetition length.COMMENT
LOWexamples/talk-llama/llama-sampler.cpp3006 // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (inCOMMENT
LOWexamples/talk-llama/llama-sampler.cpp3070 // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat lengthCOMMENT
LOWexamples/talk-llama/llama-sampler.cpp3097 // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens.COMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp197 // Step 1: Q, K, V projections -> [d_inner, n_tokens]COMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp377 // Step 1: Q projection and reshapeCOMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp382 // Step 2: KV compressionCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp198 // Step 1: Apply decay gate to stateCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp203 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp210 // Step 3: state += outer(delta, k)COMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp216 // 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
Verbosity Indicators31 hits · 55 pts
SeverityFileLineSnippetContext
LOWexamples/talk-llama/llama-sampler.cpp2945 // Step 1: Look for restart sequences to limit the maximum repetition length.COMMENT
LOWexamples/talk-llama/llama-sampler.cpp3006 // Step 2: Iterate in reverse over the last N tokens of the context, using the "Z-algorithm" (inCOMMENT
LOWexamples/talk-llama/llama-sampler.cpp3070 // Step 3: Iterate over dry_repeat_count and last_tokens, examining the maximum repeat lengthCOMMENT
LOWexamples/talk-llama/llama-sampler.cpp3097 // Step 4: Apply logit penalties based on the maximum repeat length for relevant tokens.COMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp197 // Step 1: Q, K, V projections -> [d_inner, n_tokens]COMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp377 // Step 1: Q projection and reshapeCOMMENT
LOWexamples/talk-llama/models/kimi-linear.cpp382 // Step 2: KV compressionCOMMENT
LOWggml/src/ggml-webgpu/ggml-webgpu.cpp1291 // For set rows specifically, we need to check if src and idx are emptyCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp198 // Step 1: Apply decay gate to stateCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp203 // Step 2: delta = (v - S @ k) * betaCOMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp210 // Step 3: state += outer(delta, k)COMMENT
LOWggml/src/ggml-openvino/openvino/op/gated_delta_net.cpp216 // 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
Self-Referential Comments11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMbuild-xcframework.sh387 # Create a separate directory for dSYMs for all platformsCOMMENT
MEDIUMbuild-xcframework.sh395 # Create a copy of the binary that will be strippedCOMMENT
MEDIUMscripts/bench.py18# Define the argument to accept a listCOMMENT
MEDIUMscripts/bench.py54# Define the models, threads, and processor counts to benchmarkCOMMENT
MEDIUMscripts/apple/validate-macos.sh571# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-macos.sh667# Create a zip file for potential distributionCOMMENT
MEDIUMscripts/apple/validate-visionos.sh565# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-ios.sh574# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUMscripts/apple/validate-tvos.sh567# Create a simple xcscheme file to avoid xcodebuild scheme issuesCOMMENT
MEDIUM.github/workflows/release.yml367 # Create the directory where the CUDA Toolkit will be installedCOMMENT
MEDIUM.github/workflows/release.yml423 # Create the directory where the CUDA Toolkit will be installedCOMMENT
Excessive Try-Catch Wrapping15 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMmodels/convert-parakeet-to-ggml.py333 print(f"Error: {args.model} not found")CODE
LOWmodels/convert-pt-to-ggml.py206except Exception:CODE
MEDIUMmodels/convert-pt-to-ggml.py207 print("Error: failed to load PyTorch model file:" , fname_inp)CODE
MEDIUMmodels/convert-pt-to-ggml.py238 print("Error: failed to find either tiktoken or hf_transformers tokenizer file:", tokenizer)CODE
MEDIUMexamples/server.py119 print(f"Error: {e}")CODE
LOWexamples/python/test_whisper_processor.py6except Exception as e:CODE
MEDIUMexamples/python/test_whisper_processor.py7 print(f"Error: {e}")CODE
LOWexamples/python/whisper_processor.py48 except Exception as e:CODE
MEDIUMexamples/python/whisper_processor.py49 print(f"Error: {e}")CODE
MEDIUM…r.swiftui/whisper.swiftui.demo/UI/DownloadButton.swift32 print("Error: \(error.localizedDescription)")CODE
MEDIUM…r.swiftui/whisper.swiftui.demo/UI/DownloadButton.swift48 print("Error: \(err.localizedDescription)")CODE
MEDIUM…r.swiftui/whisper.swiftui.demo/UI/DownloadButton.swift90 print("Error deleting file: \(error)")CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py69 except Exception as e:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py327 except Exception as e:STRING
MEDIUMggml/src/ggml-virtgpu/regenerate_remoting.py323def main():CODE
Hyper-Verbose Identifiers21 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/earnings21/normalizers/basic.py27def remove_symbols_and_diacritics(s: str, keep=""):CODE
LOWtests/librispeech/normalizers/basic.py27def remove_symbols_and_diacritics(s: str, keep=""):CODE
LOWtests/librispeech-parakeet/normalizers/basic.py27def remove_symbols_and_diacritics(s: str, keep=""):CODE
LOWmodels/convert-whisper-to-coreml.py47def correct_for_bias_scale_order_inversion(state_dict, prefix, local_metadata,CODE
LOWexamples/server.py15class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):CODE
LOW…/wchess.wasm/chessboardjs-1.0.0/js/chessboard-1.0.0.js496 function calculatePositionFromMoves (position, moves) {CODE
LOW…/wchess.wasm/chessboardjs-1.0.0/js/chessboard-1.0.0.js541 function expandConfigArgumentShorthand (config) {CODE
LOW…/wchess.wasm/chessboardjs-1.0.0/js/chessboard-1.0.0.js951 function animateSparePieceToSquare (piece, dest, completeFn) {CODE
LOWbindings/javascript/whisper.js8function GROWABLE_HEAP_I8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP8}function GROWABLE_HEAP_CODE
LOWbindings/ruby/test/test_context_params.rb60 def test_new_with_kw_args_default_values(param)CODE
LOWbindings/ruby/test/test_vad_params.rb83 def test_new_with_kw_args_default_values(param)CODE
LOWbindings/ruby/test/test_params.rb278 def test_new_with_kw_args_default_values(param)CODE
LOWbindings/ruby/test/test_parakeet_params.rb63 def test_new_with_kw_args_default_values(param)CODE
LOWggml/include/ggml-backend.h211 typedef ggml_backend_buffer_type_t (*ggml_backend_split_buffer_type_t)(int main_device, const float * tensor_splitCODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py49 def _check_clang_format_available(self) -> bool:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py53 def _format_file_with_clang_format(self, file_path: Path) -> bool:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py78 def generate_backend_function_name(self, group_name: str, function_name: str) -> str:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py89 def generate_frontend_function_name(self, group_name: str, function_name: str) -> str:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py125 def generate_apir_backend_header(self) -> str:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py176 def generate_backend_dispatched_header(self) -> str:CODE
LOWggml/src/ggml-virtgpu/regenerate_remoting.py222 def generate_virtgpu_forward_header(self) -> str:STRING
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMexamples/stb_vorbis.c51// 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memoryCOMMENT
MEDIUMggml/src/ggml-zendnn/ggml-zendnn.cpp600 // gather + batched matmul + scatter approach. Future versions will leverageCOMMENT
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/whisper.cpp8473// guaranteed. Might get removed at some point unless a robust algorithm implementation is foundCOMMENT
Unused Imports16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/earnings21/normalizers/__init__.py1CODE
LOWtests/earnings21/normalizers/__init__.py2CODE
LOWtests/librispeech/normalizers/__init__.py1CODE
LOWtests/librispeech/normalizers/__init__.py2CODE
LOWtests/librispeech-parakeet/normalizers/__init__.py1CODE
LOWtests/librispeech-parakeet/normalizers/__init__.py2CODE
LOWmodels/convert-parakeet-to-ggml.py17CODE
LOWmodels/convert-parakeet-to-ggml.py23CODE
LOWmodels/convert-parakeet-to-ggml.py27CODE
LOWmodels/convert-h5-to-ggml.py18CODE
LOWmodels/convert-h5-to-ggml.py23CODE
LOWmodels/convert-silero-vad-to-ggml.py4CODE
LOWmodels/convert-pt-to-ggml.py35CODE
LOWmodels/convert-pt-to-ggml.py39CODE
LOWmodels/convert-h5-to-coreml.py13CODE
LOWexamples/server.py6CODE
Synthetic Comment Markers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md18Code that is initially generated by AI and subsequently edited will still be considered AI-generated. AI assistance is pCODE
HIGHggml/src/ggml-virtgpu/regenerate_remoting.py3# Generated by Claude AISTRING
HIGHggml/src/ggml-hexagon/ggml-hexagon.cpp2054 // Check for F16 support only as requestedCOMMENT
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMexamples/addon.node/CMakeLists.txt4#==================================================================COMMENT
MEDIUMexamples/addon.node/CMakeLists.txt8#==================================================================COMMENT
MEDIUMexamples/addon.node/CMakeLists.txt19#==================================================================COMMENT
MEDIUMexamples/addon.node/CMakeLists.txt27#==================================================================COMMENT
TODO Padding7 hits · 10 pts
SeverityFileLineSnippetContext
LOWexamples/talk-llama/llama-model-saver.cpp304 // TODO: implement split file supportCOMMENT
LOWexamples/talk-llama/llama-model-saver.cpp352 // TODO: implement LoRA supportCOMMENT
LOWggml/src/ggml.c3880 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c3904 // TODO: implement non F32 returnCOMMENT
LOWggml/src/ggml.c5050 // TODO: implement antialias for modes other than bilinearCOMMENT
LOWggml/src/ggml-zdnn/ggml-zdnn.cpp22 // TODO: implement support for quantized typesCOMMENT
LOWsrc/parakeet.cpp2511 // TODO: implement beam search?COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALexamples/wchess/wchess.wasm/jquery-3.7.1.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/run-tests.sh14# Usage:COMMENT
LOWmodels/convert-h5-to-ggml.py3# Usage:COMMENT
LOWexamples/generate-karaoke.sh4# Usage:COMMENT
LOWexamples/yt-wsp.sh31# Sample usage:COMMENT
LOWscripts/sync-ggml-am.sh5# Usage:COMMENT
LOWggml/src/ggml-sycl/dpct/helper.hpp3020 /// Example usage:COMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/earnings21/normalizers/english.py165CODE
LOWtests/librispeech/normalizers/english.py165CODE
LOWtests/librispeech-parakeet/normalizers/english.py165CODE
LOWmodels/convert-parakeet-to-ggml.py108CODE
LOWexamples/server.py19CODE
LOWggml/src/ggml-webgpu/wgsl-shaders/embed_wgsl.py68CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/run-tests.sh92# when adding new files, make sure to add the expected "ref.txt" file with the correct transcriptCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/talk-llama/llama-graph.cpp1293 LLAMA_LOG_DEBUG("%s: can_reuse = %d\n", "placeholder", cur);CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbindings/javascript/whisper.js8function GROWABLE_HEAP_I8(){if(wasmMemory.buffer!=HEAP8.buffer){updateMemoryViews()}return HEAP8}function GROWABLE_HEAP_CODE