Repository Analysis

alibaba/MNN

MNN: A blazing-fast, lightweight inference engine battle-tested by Alibaba, powering high-performance on-device LLMs and Edge AI.

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of alibaba/MNN, a C++ project with 15,785 GitHub stars. SynthScan v2.0 examined 1,604,870 lines of code across 6013 source files, recording 5355 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.9 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.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-08-01
Last Push
15.8K
Stars
C++
Language
1.6M
Lines of Code
6.0K
Files
5.4K
Pattern Hits
2026-08-02
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 30HIGH 99MEDIUM 211LOW 5015

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 5355 distinct pattern matches across 21 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 Block3935 hits · 3575 pts
SeverityFileLineSnippetContext
LOWtest.sh1#!/usr/bin/env bashCOMMENT
LOWtest.sh21# Defaults to taobao-mnn/Qwen2.5-0.5B-Instruct-MNN.COMMENT
LOWtest.sh1141# Unit-test matrix for the Android arm64 on-device driver.COMMENT
LOWtest.sh1161 opencl-buffer) [[ "${tag}" == "opencl-buffer" ]] ;;COMMENT
LOW.readthedocs.yaml21 # builder: "dirhtml"COMMENT
LOWbenchmark/benchmark.cpp1//COMMENT
LOWbenchmark/benchmark.cpp21#undef minCOMMENT
LOWbenchmark/benchmark.h1//COMMENT
LOWbenchmark/benchmarkExprModels.cpp1#include <iostream>COMMENT
LOWbenchmark/exprModels/ShuffleNetExpr.hpp1//COMMENT
LOWbenchmark/exprModels/ResNetExpr.cpp1//COMMENT
LOWbenchmark/exprModels/SqueezeNetExpr.hpp1//COMMENT
LOWbenchmark/exprModels/MobileNetExpr.cpp1//COMMENT
LOWbenchmark/exprModels/GoogLeNetExpr.cpp1//COMMENT
LOWbenchmark/exprModels/SqueezeNetExpr.cpp1//COMMENT
LOWbenchmark/exprModels/MobileNetExpr.hpp1//COMMENT
LOWbenchmark/exprModels/GoogLeNetExpr.hpp1//COMMENT
LOWbenchmark/exprModels/ShuffleNetExpr.cpp1//COMMENT
LOWbenchmark/exprModels/ExprModels.hpp1#ifndef ExprModels_hppCOMMENT
LOWbenchmark/exprModels/ResNetExpr.hpp1//COMMENT
LOWdemo/exec/transformerDemo.cpp1//COMMENT
LOWdemo/exec/multiPose.cpp1//COMMENT
LOWdemo/exec/multiPose.cpp21COMMENT
LOWdemo/exec/multiPose.cpp361 const auto rgbaPtr = reinterpret_cast<uint8_t*>(inputImage);COMMENT
LOWdemo/exec/expressDemo.cpp1//COMMENT
LOWdemo/exec/pictureRecognition_batch.cpp1//COMMENT
LOWdemo/exec/expressMakeModel.cpp1//COMMENT
LOWdemo/exec/multithread_imgrecog.cpp1//COMMENT
LOWdemo/exec/pictureRecognition.cpp1//COMMENT
LOWdemo/exec/pictureRecognition_module.cpp1//COMMENT
LOWdemo/exec/segment.cpp1//COMMENT
LOWdemo/exec/pictureRotate.cpp1//COMMENT
LOWdemo/exec/nluDemo.cpp1//COMMENT
LOW3rd_party/musa_compat/CMakeLists.txt1# MUSA Compatibility Layer CMake ConfigurationCOMMENT
LOW3rd_party/half/half.hpp1// half - IEEE 754-based half-precision floating point library.COMMENT
LOW3rd_party/half/half.hpp21COMMENT
LOW3rd_party/half/half.hpp41 #if __has_feature(cxx_noexcept) && !defined(HALF_ENABLE_CPP11_NOEXCEPT)COMMENT
LOW3rd_party/half/half.hpp61 #define HALF_ENABLE_CPP11_LONG_LONG 1COMMENT
LOW3rd_party/half/half.hpp81#elif defined(_MSC_VER) //Visual C++COMMENT
LOW3rd_party/half/half.hpp101COMMENT
LOW3rd_party/half/half.hpp121 #define HALF_NOTHROW noexceptCOMMENT
LOW3rd_party/half/half.hpp141 #include <functional>COMMENT
LOW3rd_party/half/half.hpp161#ifndef HALF_ROUND_STYLECOMMENT
LOW3rd_party/half/half.hpp181/// half-precision multiplication followed by an addition. Due to the internal single-precision implementation of all COMMENT
LOW3rd_party/half/half.hpp201 #define FP_INFINITE 3COMMENT
LOW3rd_party/half/half.hpp281 /// Unsigned integer of (at least) 32 bits width.COMMENT
LOW3rd_party/half/half.hpp341 template<typename T,typename U> struct result : enable<expr,T,U> {};COMMENT
LOW3rd_party/half/half.hpp361 }COMMENT
LOW3rd_party/half/half.hpp381 /// \param arg value to queryCOMMENT
LOW3rd_party/half/half.hpp621 return hbits;COMMENT
LOW3rd_party/half/half.hpp941 /// \param value binary representation of half-precision valueCOMMENT
LOW3rd_party/half/half.hpp1001 }COMMENT
LOW3rd_party/half/half.hpp1061 /// \tparam T type of concrete half expressionCOMMENT
LOW3rd_party/half/half.hpp1081 /// \return reference to this halfCOMMENT
LOW3rd_party/half/half.hpp1141 /// While this returns an actual half-precision value, half literals can unfortunately not be constant expressions dueCOMMENT
LOW3rd_party/half/half.hpp1161 /// \param x first operandCOMMENT
LOW3rd_party/half/half.hpp1281 /// \param y second operandCOMMENT
LOW3rd_party/half/half.hpp1301 #elseCOMMENT
LOW3rd_party/half/half.hpp1361 /// Binary logarithm implementation.COMMENT
LOW3rd_party/half/half.hpp1401 #elseCOMMENT
3875 more matches not shown…
Cross-File Repetition95 hits · 475 pts
SeverityFileLineSnippetContext
HIGH…ls/mnncompress/mnncompress/tensorflow/LSQ_quantizer.py0only invoke this when you need to save the model for inferenceSTRING
HIGH…ls/mnncompress/mnncompress/tensorflow/EMA_quantizer.py0only invoke this when you need to save the model for inferenceSTRING
HIGH…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py0only invoke this when you need to save the model for inferenceSTRING
HIGHsource/backend/opencl/schema/CLCache/Shader.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/BackendInfo.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/Autotuning.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/Cache.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/OpInfo.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/GemmInfo.py0this method is deprecated. please switch to getrootas.STRING
HIGHsource/backend/opencl/schema/CLCache/TensorInfo.py0this method is deprecated. please switch to getrootas.STRING
HIGH…mnn/sherpa-mnn/python/tests/test_offline_recognizer.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…pa-mnn/sherpa-mnn/python/tests/test_keyword_spotter.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…nn/sherpa-mnn/python/tests/test_speaker_recognition.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…-mnn/sherpa-mnn/python/tests/test_online_recognizer.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…/python-api-examples/spoken-language-identification.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…ples/offline-websocket-client-decode-files-paralell.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…sherpa-mnn/python-api-examples/offline-decode-files.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…/sherpa-mnn/python-api-examples/online-decode-files.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…orks/sherpa-mnn/python-api-examples/keyword-spotter.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…n-api-examples/online-zipformer-ctc-hlg-decode-file.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…es/offline-websocket-client-decode-files-sequential.py0args: wave_filename: path to a wave file. it should be single channel and each sample should be 16-bit. its sample rate STRING
HIGH…on-api-examples/vad-remove-non-speech-segments-alsa.py0the device name specifies which microphone to use in case there are several on your system. you can use arecord -l to fiSTRING
HIGH…aker-identification-with-vad-non-streaming-asr-alsa.py0the device name specifies which microphone to use in case there are several on your system. you can use arecord -l to fiSTRING
HIGH…nition-from-microphone-with-endpoint-detection-alsa.py0the device name specifies which microphone to use in case there are several on your system. you can use arecord -l to fiSTRING
HIGH…/frameworks/sherpa-mnn/python-api-examples/vad-alsa.py0the device name specifies which microphone to use in case there are several on your system. you can use arecord -l to fiSTRING
HIGH…n-api-examples/offline-sense-voice-ctc-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…-api-examples/inverse-text-normalization-online-asr.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…n/python-api-examples/offline-nemo-ctc-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…n-api-examples/offline-nemo-transducer-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…nn/python-api-examples/offline-whisper-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…api-examples/inverse-text-normalization-offline-asr.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…/python-api-examples/offline-moonshine-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…on-api-examples/offline-telespeech-ctc-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…thon-api-examples/offline-fire-red-asr-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…nn/python-api-examples/online-nemo-ctc-decode-files.py0please download model files from https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-modelsSTRING
HIGH…sherpa-mnn/python-api-examples/non_streaming_server.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…xamples/two-pass-speech-recognition-from-microphone.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…sherpa-mnn/python-api-examples/offline-decode-files.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…s/sherpa-mnn/python-api-examples/generate-subtitles.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…aker-identification-with-vad-non-streaming-asr-alsa.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…-mnn/python-api-examples/vad-with-non-streaming-asr.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…s/speaker-identification-with-vad-non-streaming-asr.py0it specifies the spoken language in the input file. example values: en, fr, de, zh, jp. available languages for multilinSTRING
HIGH…sherpa-mnn/python-api-examples/non_streaming_server.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…s/sherpa-mnn/python-api-examples/generate-subtitles.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…aker-identification-with-vad-non-streaming-asr-alsa.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…xamples/two-pass-speech-recognition-from-microphone.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…-mnn/python-api-examples/vad-with-non-streaming-asr.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…sherpa-mnn/python-api-examples/offline-decode-files.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…s/speaker-identification-with-vad-non-streaming-asr.py0for multilingual models, if you specify translate, the output will be in english.STRING
HIGH…sherpa-mnn/python-api-examples/non_streaming_server.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…s/sherpa-mnn/python-api-examples/generate-subtitles.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…aker-identification-with-vad-non-streaming-asr-alsa.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…xamples/two-pass-speech-recognition-from-microphone.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…-mnn/python-api-examples/vad-with-non-streaming-asr.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…sherpa-mnn/python-api-examples/offline-decode-files.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…s/speaker-identification-with-vad-non-streaming-asr.py0number of tail padding frames. we have removed the 30-second constraint from whisper, so you need to choose the amount oSTRING
HIGH…sherpa-mnn/python-api-examples/non_streaming_server.py0used only when --first-decoding-method is modified_beam_search. it specifies number of active paths to keep during decodSTRING
HIGH…hon-api-examples/speech-recognition-from-microphone.py0used only when --first-decoding-method is modified_beam_search. it specifies number of active paths to keep during decodSTRING
HIGH…/sherpa-mnn/python-api-examples/online-decode-files.py0used only when --first-decoding-method is modified_beam_search. it specifies number of active paths to keep during decodSTRING
HIGH…rks/sherpa-mnn/python-api-examples/streaming_server.py0used only when --first-decoding-method is modified_beam_search. it specifies number of active paths to keep during decodSTRING
35 more matches not shown…
Decorative Section Separators131 hits · 408 pts
SeverityFileLineSnippetContext
MEDIUMbuild_lib.sh296# ============================================================================COMMENT
MEDIUMbuild_lib.sh298# ============================================================================COMMENT
MEDIUMbuild_lib.sh410# ============================================================================COMMENT
MEDIUMbuild_lib.sh412# ============================================================================COMMENT
MEDIUMbuild_lib.sh489# ============================================================================COMMENT
MEDIUMbuild_lib.sh491# ============================================================================COMMENT
MEDIUMbuild_lib.sh648# ============================================================================COMMENT
MEDIUMbuild_lib.sh650# ============================================================================COMMENT
MEDIUMbuild_lib.sh727# ============================================================================COMMENT
MEDIUMbuild_lib.sh729# ============================================================================COMMENT
MEDIUMbuild_lib.sh784# ============================================================================COMMENT
MEDIUMbuild_lib.sh786# ============================================================================COMMENT
MEDIUMtest.sh43# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh45# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh136# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh138# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh155# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh157# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh199# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh201# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh275# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh277# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh331# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh333# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh366# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh368# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh478# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh480# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh536# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh543# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh614# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh616# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh632# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh634# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh748# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh751# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh791# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh793# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh827# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh829# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh962# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh964# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh996# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh999# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1137# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1151# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1258# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1260# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1318# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1320# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtools/script/generate_podspec.sh2# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh15# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh215# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh217# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh318# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh320# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh93# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh95# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh123# =============================================================================COMMENT
MEDIUMtools/script/generate_podspec.sh125# =============================================================================COMMENT
71 more matches not shown…
Hallucination Indicators30 hits · 320 pts
SeverityFileLineSnippetContext
CRITICALtransformers/llm/export/llmexport.py122 self.args.tie_word_embeddings = not self.args.seperate_embed and self.model.lm.lm.weight.equal(self.model.embed.CODE
CRITICAL…java/com/alibaba/mnnllm/android/utils/MmapUtilsTest.kt36 every { com.alibaba.mls.api.ApplicationProvider.get() } returns applicationCODE
CRITICAL…/alibaba/mnnllm/android/benchmark/BenchmarkFragment.kt613 return com.alibaba.mnnllm.android.modelmarket.TagMapper.getDisplayTagList(modelItem.tags).take(3)CODE
CRITICAL…main/java/com/alibaba/mnnllm/android/llm/LlmSession.kt447 com.alibaba.mnnllm.android.benchmark.BenchmarkResult(CODE
CRITICAL…libaba/mnnllm/android/chat/ModelSelectionViewHolder.kt51 return com.alibaba.mnnllm.android.modelmarket.TagMapper.getDisplayTagList(modelItem.tags).take(3)CODE
CRITICAL…libaba/mnnllm/android/chat/chatlist/ChatViewHolders.kt268 com.alibaba.mnnllm.android.utils.ImageUtils.showImageMenu(it.context, imageUri)CODE
CRITICAL…libaba/mnnllm/android/chat/chatlist/ChatViewHolders.kt422 com.alibaba.mnnllm.android.utils.ImageUtils.showImageMenu(v.context, imageUri)CODE
CRITICAL…ba/mnnllm/android/chat/input/AttachmentPickerModule.kt328 val thumbnail = com.alibaba.mnnllm.android.utils.VideoThumbnailUtils.generateVideoThumbnail(CODE
CRITICAL…baba/mnnllm/android/chat/input/VoiceRecordingModule.kt73 val isAudioModel = com.alibaba.mnnllm.android.model.ModelTypeUtils.isAudioModel(activity.modelId!!)CODE
CRITICAL…libaba/mnnllm/android/chat/voice/VoiceChatPresenter.kt212 val userData = com.alibaba.mnnllm.android.chat.model.ChatDataItem(com.alibaba.mnnllm.android.chat.chCODE
CRITICAL…alibaba/mnnllm/android/chat/voice/VoiceChatFragment.kt360 com.alibaba.mnnllm.android.utils.ImageUtils.compressImageFile(photoFile)CODE
CRITICAL…alibaba/mnnllm/android/chat/voice/VoiceChatFragment.kt561 if (com.alibaba.mnnllm.android.model.ModelTypeUtils.isVisualModel(modelId)) {CODE
CRITICAL…mnnllm/android/chat/voice/VoiceModelMarketViewModel.kt232 com.alibaba.mnnllm.android.mainsettings.MainSettings.setDefaultTtsModel(context, modelId)CODE
CRITICAL…mnnllm/android/chat/voice/VoiceModelMarketViewModel.kt238 com.alibaba.mnnllm.android.mainsettings.MainSettings.setDefaultAsrModel(context, modelId)CODE
CRITICAL…ba/mnnllm/android/mainsettings/MainSettingsFragment.kt143 val sheet = com.alibaba.mnnllm.android.chat.voice.VoiceModelMarketBottomSheet.newInstance()CODE
CRITICAL…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt23 com.alibaba.mnnllm.android.MnnLlmApplication.getAppContext()CODE
CRITICAL…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt72 return com.alibaba.mnnllm.android.utils.PreferenceUtils.getBoolean(context, KEY_ALLOW_NETWORK_MARKET_DATA, true)CODE
CRITICAL…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt76 return com.alibaba.mnnllm.android.utils.PreferenceUtils.getBoolean(context, "debug_enable_network_delay", false)CODE
CRITICAL…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt80 val env = com.alibaba.mnnllm.android.utils.PreferenceUtils.getString(context, KEY_MARKET_ENV, "prod")CODE
CRITICAL…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt87 com.alibaba.mnnllm.android.utils.PreferenceUtils.setString(context, KEY_MARKET_ENV, normalized)CODE
CRITICAL…n/java/com/alibaba/mnnllm/android/main/MainActivity.kt554 com.google.android.material.dialog.MaterialAlertDialogBuilder(this)CODE
CRITICAL…ava/com/alibaba/mnnllm/android/widgets/BottomTabBar.kt20) : com.google.android.material.card.MaterialCardView(context, attrs, defStyle) {CODE
CRITICAL…ibaba/mnnllm/api/openai/network/application/Routing.kt71 val context = com.alibaba.mnnllm.android.MnnLlmApplication.getAppContext()CODE
CRITICAL…aba/mnnllm/api/openai/service/ApiServiceCoordinator.kt84 val serverEventManager = com.alibaba.mnnllm.api.openai.manager.ServerEventManager.getInstance()CODE
CRITICAL…aba/mnnllm/api/openai/service/ApiServiceCoordinator.kt159 com.alibaba.mnnllm.api.openai.manager.ServerEventManager.getInstance().resetRuntimeState()CODE
CRITICAL…aba/mnnllm/api/openai/service/ApiServiceCoordinator.kt214 com.alibaba.mnnllm.api.openai.manager.ServerEventManager.getInstance().resetRuntimeState()CODE
CRITICAL…nnllm/android/debug/DefaultBenchmarkDebugController.kt80 context = com.alibaba.mnnllm.android.MnnLlmApplication.getAppContext(),CODE
CRITICAL…a/com/alibaba/mls/api/download/ms/MsModelDownloader.kt141 val marketSize = com.alibaba.mls.api.download.DownloadPersistentData.getMarketSizeTotal(ApplicationPCODE
CRITICAL…a/com/alibaba/mls/api/download/ml/MLModelDownloader.kt156 val marketSize = com.alibaba.mls.api.download.DownloadPersistentData.getMarketSizeTotal(ApplicationPCODE
CRITICAL…a/com/alibaba/mls/api/download/hf/HfModelDownloader.kt195 val marketSize = com.alibaba.mls.api.download.DownloadPersistentData.getMarketSizeTotal(ApplicationPCODE
Unused Imports276 hits · 260 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/bench_pc.py10CODE
LOWbenchmark/scripts/bench_pc.py11CODE
LOWbenchmark/scripts/bench_pc.py14CODE
LOWbenchmark/scripts/bench_pc.py30CODE
LOWbenchmark/scripts/tvm/ios_bert.py6CODE
LOWbenchmark/scripts/tvm/ios_bert.py8CODE
LOWbenchmark/scripts/tvm/ios_bert.py8CODE
LOWbenchmark/scripts/tvm/ios_bert.py9CODE
LOWbenchmark/scripts/tvm/ios_bert.py10CODE
LOWbenchmark/scripts/tvm/ios_bert.py11CODE
LOWbenchmark/scripts/tvm/ios_tuning.py4CODE
LOWbenchmark/scripts/tvm/ios_tuning.py9CODE
LOWpymnn/test/unit_test.py1162CODE
LOWpymnn/test/playground/main.py7CODE
LOWpymnn/test/playground/cases/model_test.py7CODE
LOWpymnn/test/playground/cases/__init__.py1CODE
LOWpymnn/test/playground/cases/__init__.py1CODE
LOWpymnn/pip_package/setup.py4CODE
LOWpymnn/pip_package/build_wheel.py4CODE
LOWpymnn/pip_package/MNN/__init__.py4CODE
LOWpymnn/pip_package/MNN/__init__.py6CODE
LOWpymnn/pip_package/MNN/__init__.py7CODE
LOWpymnn/pip_package/MNN/__init__.py8CODE
LOWpymnn/pip_package/MNN/__init__.py9CODE
LOWpymnn/pip_package/MNN/__init__.py10CODE
LOWpymnn/pip_package/MNN/__init__.py11CODE
LOWpymnn/pip_package/MNN/__init__.py12CODE
LOWpymnn/pip_package/MNN/tools/mnnconvert.py4CODE
LOWpymnn/pip_package/MNN/tools/mnnconvert.py7CODE
LOWpymnn/pip_package/MNN/tools/mnnconvert.py9CODE
LOWpymnn/pip_package/MNN/tools/__init__.py1CODE
LOWpymnn/pip_package/MNN/tools/__init__.py1CODE
LOWpymnn/pip_package/MNN/tools/__init__.py1CODE
LOWpymnn/pip_package/MNN/tools/__init__.py2CODE
LOWpymnn/pip_package/MNN/tools/mnnquant.py4CODE
LOWpymnn/pip_package/MNN/tools/mnnquant.py6CODE
LOWpymnn/pip_package/MNN/tools/mnn.py4CODE
LOWpymnn/pip_package/MNN/tools/mnn.py5CODE
LOWpymnn/pip_package/MNN/tools/mnn.py6CODE
LOWpymnn/pip_package/MNN/tools/utils/log.py11CODE
LOWpymnn/pip_package/MNN/tools/utils/__init__.py1CODE
LOWpymnn/pip_package/MNN/nn/__init__.py2CODE
LOWpymnn/pip_package/MNN/optim/__init__.py1CODE
LOWpymnn/pip_package/MNN/expr/__init__.py6CODE
LOWpymnn/pip_package/MNN/numpy/__init__.py1372CODE
LOWpymnn/pip_package/MNN/numpy/__init__.py1373CODE
LOWpymnn/pip_package/MNN/audio/__init__.py1CODE
LOWpymnn/pip_package/MNN/audio/__init__.py3CODE
LOWpymnn/pip_package/MNN/audio/__init__.py4CODE
LOWpymnn/pip_package/MNN/audio/__init__.py5CODE
LOWpymnn/pip_package/MNN/cv/__init__.py1CODE
LOWpymnn/pip_package/MNN/data/__init__.py1CODE
LOWpymnn/examples/MNNExpr/mobilenet_demo.py4CODE
LOWpymnn/examples/MNNExpr/gpu_io_interface.py5CODE
LOWpymnn/examples/MNNExpr/gpu_express_demo.py3CODE
LOWpymnn/examples/MNNExpr/mnn_numpy_cv_demo.py4CODE
LOWpymnn/examples/MNNTrain/mnist/train_mnist.py1CODE
LOWpymnn/examples/MNNTrain/mnist/dataset.py6CODE
LOW…ples/MNNTrain/mobilenet_finetune/mobilenet_transfer.py1CODE
LOWpymnn/examples/MNNTrain/simple/solve_equation.py1CODE
216 more matches not shown…
Hyper-Verbose Identifiers253 hits · 248 pts
SeverityFileLineSnippetContext
LOW3rd_party/flatbuffers/tests/py_test.py1179 def test_default_monster_name(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1182 def test_default_monster_inventory_item(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1185 def test_default_monster_inventory_length(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1188 def test_default_monster_color(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1191 def test_nondefault_monster_color(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1203 def test_default_monster_testtype(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1206 def test_default_monster_test_field(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1215 def test_default_monster_testarrayofstring(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1218 def test_default_monster_testarrayofstring_length(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1221 def test_default_monster_testarrayoftables(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1224 def test_nondefault_monster_testarrayoftables(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1271 def test_default_monster_testnestedflatbuffer(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1274 def test_default_monster_testnestedflatbuffer_length(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1277 def test_nondefault_monster_testnestedflatbuffer(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1482 def test_object_is_nested_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1488 def test_object_is_not_nested_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1493 def test_struct_is_not_inline_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1504 def test_create_string_is_nested_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1511 def test_create_byte_vector_is_nested_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1518 def test_finished_bytes_error(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py458 def test_create_arbitrary_string(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py662 def test_create_numpy_vector_bool(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py695 def test_create_numpy_vector_reject_strings(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py718 def test_create_numpy_vector_reject_object(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py748 def test_vtable_with_one_true_bool(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py764 def test_vtable_with_one_default_bool(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py825 def test_vtable_with_empty_vector(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py841 def test_vtable_with_empty_vector_of_byte_and_some_scalars(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py934 def test_table_with_some_elements(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py957 def test__one_unfinished_table_and_one_finished_table(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1081def make_monster_from_generated_code(sizePrefix = False):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1165 def test_nondefault_monster_mana(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1248 def test_default_monster_testarrayoftables_length(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1251 def test_nondefault_monster_enemy(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1309 def test_nondefault_monster_testempty(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1329 def test_default_monster_testbool(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1332 def test_nondefault_monster_testbool(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1344 def test_default_monster_testhashes(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1354 def test_nondefault_monster_testhashes(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1380 def test_getrootas_for_nonroot_table(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1401 def test_vtable_deduplication(self):CODE
LOW3rd_party/flatbuffers/tests/py_test.py1655def backward_compatible_run_tests(**kwargs):CODE
LOW3rd_party/flatbuffers/tests/union_vector/Movie.php153 public static function createCharactersTypeVector(FlatBufferBuilder $builder, array $data)CODE
LOW3rd_party/flatbuffers/tests/union_vector/Movie.php167 public static function startCharactersTypeVector(FlatBufferBuilder $builder, $numElems)CODE
LOW3rd_party/flatbuffers/tests/union_vector/Attacker.php26 public static function AttackerBufferHasIdentifier(ByteBuffer $buf)CODE
LOW…d_party/flatbuffers/tests/MyGame/InParentNamespace.php17 public static function getRootAsInParentNamespace(ByteBuffer $bb)CODE
LOW…d_party/flatbuffers/tests/MyGame/InParentNamespace.php23 public static function InParentNamespaceIdentifier()CODE
LOW…d_party/flatbuffers/tests/MyGame/InParentNamespace.php28 public static function InParentNamespaceBufferHasIdentifier(ByteBuffer $buf)CODE
LOW…d_party/flatbuffers/tests/MyGame/InParentNamespace.php33 public static function InParentNamespaceExtension()CODE
LOW3rd_party/flatbuffers/tests/MyGame/Example2/Monster.php28 public static function MonsterBufferHasIdentifier(ByteBuffer $buf)CODE
LOW…party/flatbuffers/tests/MyGame/Example/TypeAliases.php28 public static function TypeAliasesBufferHasIdentifier(ByteBuffer $buf)CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php17 public static function getRootAsTestSimpleTableWithEnum(ByteBuffer $bb)CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php23 public static function TestSimpleTableWithEnumIdentifier()CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php28 public static function TestSimpleTableWithEnumBufferHasIdentifier(ByteBuffer $buf)CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php33 public static function TestSimpleTableWithEnumExtension()CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php63 public static function startTestSimpleTableWithEnum(FlatBufferBuilder $builder)CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php72 public static function createTestSimpleTableWithEnum(FlatBufferBuilder $builder, $color)CODE
LOW…ffers/tests/MyGame/Example/TestSimpleTableWithEnum.php94 public static function endTestSimpleTableWithEnum(FlatBufferBuilder $builder)CODE
LOW…_party/flatbuffers/tests/MyGame/Example/Referrable.php28 public static function ReferrableBufferHasIdentifier(ByteBuffer $buf)CODE
LOW3rd_party/flatbuffers/tests/MyGame/Example/Monster.php524 public function getVectorOfWeakReferences($j)CODE
193 more matches not shown…
Structural Annotation Overuse107 hits · 187 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py14model = tvmc.load("/home/mnnteam/benchmark/models/onnx/" + model_name + ".onnx") #Step 1: LoadCODE
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py24tvmc.compile(model, target=device_name, tuning_records=log_file, package_path=compile_file) #Step 2: CompileCODE
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py31result = tvmc.run(new_package, device=device_name, repeat=100) #Step 3: RunCODE
LOWtools/script/generate_podspec.sh329 # Step 1: Check file existsCOMMENT
LOWtools/script/generate_podspec.sh334 # Step 2: Validate syntax (only if file exists)COMMENT
LOWtools/script/generate_podspec.sh341 # Step 3: Validate file referencesCOMMENT
LOWtools/script/generate_podspec.sh346 # Step 4: Full validation (if requested)COMMENT
LOWtest/op/LinearAttentionTest.cpp162 // Step 4: Scale QCOMMENT
LOWtest/op/LinearAttentionTest.cpp168 // Step 5: Gated Delta Rule with persistent stateCOMMENT
LOWtest/op/LinearAttentionTest.cpp1161 // Step 2: simulate the meta updates Llm performs around eraseHistory.COMMENT
LOWtest/op/LinearAttentionTest.cpp1167 // Step 3: prefill Y. onResize sees remove>0 -> isExplicitRollback;COMMENT
LOWtest/op/LinearAttentionTest.cpp66 // Step 1: Build conv_input = cat(convState, qkv) along dim LCOMMENT
LOWtest/op/LinearAttentionTest.cpp107 // Step 2: Split Q, K, V with GQA expansionCOMMENT
LOWtest/op/LinearAttentionTest.cpp144 // Step 3: L2 NormCOMMENT
LOWtest/op/LinearAttentionTest.cpp1143 // Step 1: prefill X. metaA.previous=0 here makes onResize treat this asCOMMENT
LOWsource/backend/metal/MetalKVCacheManager.mm359 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp601 // Step 1: Decay state + compute v_predCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp613 // Step 2: Compute deltaCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp616 // Step 3: Update state + compute outputCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp197 // Step 1: Copy the old kvcache from files to temporary buffers in memoryCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp220 // Step 2: Resize the kvcache files and remap themCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp224 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp284 // Step 4: Release the temporary buffersCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp349 // Step 1: Depthwise Conv1D + SiLUCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp389 // Step 2: Split Q, K, VCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp426 // Step 3: Optional L2 NormalizationCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp448 // Step 4: Scale QCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp453 // Step 5: Gated Delta RuleCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp1171 // Step 2: y = C_ * conv_out, transpose to output [B, L, 1, H]COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp84 // Step 1: Apply sign flipsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp88 // Step 2: Butterfly stages (log2(32) = 5 stages)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp99 // Step 3: NormalizeCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp109 // Step 1: Copy inputCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp113 // Step 2: Butterfly stages (WHT is self-inverse up to scaling)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp178 // Step 2: NormalizeCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp185 // Step 3: Apply WHT forwardCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp189 // Step 4: Find nearest codebook index for each coordinateCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp195 // Step 5: Pack 3-bit indices (4 groups of 8 → 12 bytes)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp203 // Step 1: Read scaleCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp208 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp218 // Step 3: Apply inverse WHTCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp222 // Step 4: Scale backCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp233 // Step 1: Read scaleCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp238 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp248 // Step 3: Apply inverse WHTCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp252 // Step 4: Scale and write to strided destinationCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp124 // Step 3: Normalize and undo sign flipsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp164 // Step 1: Compute RMS scaleCOMMENT
LOWsource/backend/cpu/arm/CommonOptFunctionNeon.cpp584 // Step 1: Transpose 2x2 blocks of 2-element vectorsCOMMENT
LOWsource/backend/cpu/arm/CommonOptFunctionNeon.cpp588 // Step 2: Combine the results to get the full transposeCOMMENT
LOW…rce/backend/hexagon/htp-ops-lib/include/dsp/hvx_math.h8// NOTE: This function is intended to use in safe softmax (x <= 0, overflow handing is omitted)COMMENT
LOWdocs/tools/compress.md203#### Step 1: 先转为 float MNNCOMMENT
LOWdocs/tools/compress.md209#### Step 2: 准备数据集,编写量化json文件COMMENT
LOWdocs/tools/compress.md308#### Step 3: 使用 `quantized.out` 或 `mnnquant` 进行离线量化COMMENT
LOWskills/general-debug/SKILL.md87#### Step 1: 复现并最小化COMMENT
LOWskills/general-debug/SKILL.md92#### Step 2: 用地址等式定位别名(关键手法)COMMENT
LOWskills/general-debug/SKILL.md107#### Step 3: 从 `onResize` 找根因COMMENT
LOWskills/general-debug/SKILL.md126#### Step 4: 跨 op tensor 别名(fusion / 图重排场景)COMMENT
LOWskills/general-debug/SKILL.md134#### Step 5: 越界写 / 未初始化COMMENT
LOWskills/general-debug/SKILL.md142#### Step 6: 生命周期错位(栈上临时 buffer)COMMENT
47 more matches not shown…
Deep Nesting185 hits · 184 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/tvm/ios_bert.py119CODE
LOWbenchmark/scripts/tvm/ios_tuning.py72CODE
LOWbenchmark/scripts/tvm/android_tuning.py50CODE
LOW3rd_party/flatbuffers/tests/py_test.py236CODE
LOWpymnn/test/model_test.py10CODE
LOWpymnn/test/model_test.py50CODE
LOWpymnn/test/model_test.py71CODE
LOWpymnn/test/benchmark.py47CODE
LOWpymnn/test/unit_test.py384CODE
LOWpymnn/test/unit_test.py666CODE
LOWpymnn/pip_package/build_deps.py74CODE
LOWpymnn/pip_package/MNN/tools/mnnconvert.py19CODE
LOWpymnn/pip_package/MNN/expr/__init__.py81CODE
LOWpymnn/pip_package/MNN/numpy/linalg/__init__.py4CODE
LOWtools/converter/tools/test4TF.py56CODE
LOWtools/converter/tools/auto_quant.py17CODE
LOWtools/script/analyzeQuantErrors.py81CODE
LOWtools/script/arm_assembly.py11CODE
LOWtools/script/register.py3CODE
LOWtools/script/register.py93CODE
LOWtools/script/register.py155CODE
LOWtools/script/register.py9CODE
LOWtools/script/register.py100CODE
LOWtools/script/register.py163CODE
LOWtools/script/prue_mnn_ops.py34CODE
LOWtools/script/testMNNFromTf.py46CODE
LOWtools/script/arm2binary.py70CODE
LOWtools/script/arm2binary.py82CODE
LOWtools/script/arm2binary.py194CODE
LOWtools/script/turnMNN2Expr.py66CODE
LOWtools/script/testMNNFromOnnx.py129CODE
LOWtools/script/gen_unicode_data.py72CODE
LOWtools/script/opencl_kernel_check.py64CODE
LOWtools/script/opencl_kernel_check.py135CODE
LOWtools/mnncompress/mnncompress/common/helper.py4CODE
LOW…ompress/mnncompress/tensorflow/sensitivity_analyzer.py43CODE
LOW…ls/mnncompress/mnncompress/tensorflow/LSQ_quantizer.py200CODE
LOW…ls/mnncompress/mnncompress/tensorflow/LSQ_quantizer.py498CODE
LOW…ls/mnncompress/mnncompress/tensorflow/LSQ_quantizer.py634CODE
LOW…ls/mnncompress/mnncompress/tensorflow/EMA_quantizer.py200CODE
LOW…ls/mnncompress/mnncompress/tensorflow/EMA_quantizer.py499CODE
LOW…ls/mnncompress/mnncompress/tensorflow/EMA_quantizer.py633CODE
LOW…ress/mnncompress/tensorflow/TaylorFO_channel_pruner.py145CODE
LOW…mnncompress/mnncompress/tensorflow/weight_quantizer.py112CODE
LOW…mnncompress/mnncompress/tensorflow/weight_quantizer.py152CODE
LOW…ress/mnncompress/tensorflow/SA_prune_ratio_searcher.py108CODE
LOW…ress/mnncompress/tensorflow/SA_prune_ratio_searcher.py262CODE
LOW…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py203CODE
LOW…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py640CODE
LOW…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py746CODE
LOW…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py779CODE
LOW…s/mnncompress/mnncompress/tensorflow/SIMD_OC_pruner.py145CODE
LOW…nncompress/mnncompress/tensorflow/SNIP_level_pruner.py141CODE
LOW…ls/mnncompress/mnncompress/tensorflow/decomposition.py118CODE
LOW…ls/mnncompress/mnncompress/tensorflow/decomposition.py215CODE
LOWtools/mnncompress/mnncompress/tensorflow/admm_pruner.py78CODE
LOWtools/mnncompress/mnncompress/tensorflow/admm_pruner.py95CODE
LOWtools/mnncompress/mnncompress/tensorflow/admm_pruner.py161CODE
LOWtools/mnncompress/mnncompress/tensorflow/helpers.py367CODE
LOWtools/mnncompress/mnncompress/pytorch/LSQ_quantizer.py190CODE
125 more matches not shown…
Excessive Try-Catch Wrapping115 hits · 176 pts
SeverityFileLineSnippetContext
LOW3rd_party/flatbuffers/tests/py_test.py51 except Exception as e:CODE
LOWpymnn/pip_package/MNN/expr/__init__.py13except Exception:CODE
LOWtools/script/arm_assembly.py223 except Exception as e:CODE
LOWtools/script/arm_assembly.py266 except Exception as e:CODE
LOWtools/script/arm_assembly.py303 except Exception as e:CODE
MEDIUMtools/script/testMNNFromOnnx.py260 print('Error is between ', last_right_node, ' and ', first_error_node)CODE
MEDIUMtools/script/genQNNModelsFromMNN.py27 print(f"Error generating for socId: {socId}, hexagonArch: {hexagonArch}")CODE
MEDIUMtools/script/genQNNModelsFromMNN.py30 print(f"Error output:\n{e.stderr}")CODE
LOWsource/backend/qnn/npu_convert.py40 except Exception as e:CODE
LOWsource/backend/qnn/npu_convert.py158 except Exception as e:CODE
LOWsource/backend/qnn/npu_convert.py212 except Exception as e:CODE
MEDIUMsource/backend/qnn/npu_convert.py29def raise_stack_limit():CODE
MEDIUMtransformers/llm/export/gguf2mnn.py386 print("Error: Can't find weight for " + name)CODE
MEDIUMtransformers/llm/export/gguf2mnn.py419 print('Error: Bias is quant: ', tensormap[bias_name].tensor_type)CODE
LOWtransformers/llm/export/llmexport.py706 except Exception as e:CODE
LOWtransformers/llm/export/llmexport.py832 except Exception as e:CODE
LOWtransformers/llm/export/npu/generate_llm_qnn.py305 except Exception as e:CODE
MEDIUMtransformers/llm/export/npu/generate_llm_qnn.py306 print(f"Error parsing --image_sizes: {e}")CODE
MEDIUMtransformers/llm/export/npu/generate_llm_qnn.py331 print(f"Error: 'hidden_size' key not found in {config_file_path}")CODE
MEDIUMtransformers/llm/export/utils/smooth_quantizer.py520 print("Error: CPU only supports 8 bit feature map quantized")CODE
LOWtransformers/llm/export/utils/model.py135 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py47 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py618 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py632 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py768 except Exception as e:CODE
LOWtransformers/llm/export/utils/tokenizer.py796 except Exception as e:CODE
LOWtransformers/llm/export/utils/tokenizer.py799 except Exception as e2:CODE
LOWtransformers/llm/export/utils/tokenizer.py805 except Exception as e2:CODE
MEDIUMtransformers/llm/export/utils/tokenizer.py6def __init__(self, tokenizer_path, model_type, **kwargs):CODE
LOWtransformers/llm/export/utils/mnn_converter.py43 except Exception:CODE
LOWtransformers/llm/export/utils/spinner.py20 except Exception as e:CODE
LOWtransformers/llm/export/utils/torch_utils.py108 except Exception:CODE
MEDIUMtransformers/llm/engine/tools/bench_ttfa.py152 print(f"Error: {path} not found", file=sys.stderr)CODE
LOWtransformers/diffusion/export/convert_mnn_sd35.py30 except Exception as e:CODE
LOWtransformers/diffusion/export/convert_mnn_sd35.py73 except Exception as e:CODE
LOWtransformers/diffusion/export/convert_mnn_sd35.py83 except Exception:CODE
LOWtransformers/diffusion/export/convert_mnn.py51 except Exception:CODE
LOWtransformers/diffusion/export/convert_mnn.py67 except Exception:CODE
LOWtransformers/diffusion/export/convert_mnn.py102 except Exception:CODE
MEDIUMtransformers/diffusion/export/wan/wan_onnx_export.py121def load_diffusers_pipeline(model_path, dtype, device, errors):CODE
MEDIUMtransformers/diffusion/export/wan/wan_onnx_export.py341def load_official_wan(model_path, dtype, device, errors):CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py346 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py350 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py357 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py366 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py124 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py159 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py251 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py412 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py459 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py476 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py512 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py514 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py576 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py667 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_onnx_export.py721 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_convert_mnn.py177 except Exception:CODE
LOWtransformers/diffusion/export/wan/wan_convert_mnn.py200 except Exception as e:CODE
LOWtransformers/diffusion/export/wan/wan_alignment.py383 except Exception as exc:CODE
LOWtransformers/diffusion/export/wan/wan_alignment.py448 except Exception as exc:CODE
55 more matches not shown…
Verbosity Indicators87 hits · 156 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py14model = tvmc.load("/home/mnnteam/benchmark/models/onnx/" + model_name + ".onnx") #Step 1: LoadCODE
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py24tvmc.compile(model, target=device_name, tuning_records=log_file, package_path=compile_file) #Step 2: CompileCODE
LOWbenchmark/scripts/tvm/tvmc_cuda_test.py31result = tvmc.run(new_package, device=device_name, repeat=100) #Step 3: RunCODE
LOWtools/script/generate_podspec.sh329 # Step 1: Check file existsCOMMENT
LOWtools/script/generate_podspec.sh334 # Step 2: Validate syntax (only if file exists)COMMENT
LOWtools/script/generate_podspec.sh341 # Step 3: Validate file referencesCOMMENT
LOWtools/script/generate_podspec.sh346 # Step 4: Full validation (if requested)COMMENT
LOWtest/op/LinearAttentionTest.cpp162 // Step 4: Scale QCOMMENT
LOWtest/op/LinearAttentionTest.cpp168 // Step 5: Gated Delta Rule with persistent stateCOMMENT
LOWtest/op/LinearAttentionTest.cpp1161 // Step 2: simulate the meta updates Llm performs around eraseHistory.COMMENT
LOWtest/op/LinearAttentionTest.cpp1167 // Step 3: prefill Y. onResize sees remove>0 -> isExplicitRollback;COMMENT
LOWtest/op/LinearAttentionTest.cpp66 // Step 1: Build conv_input = cat(convState, qkv) along dim LCOMMENT
LOWtest/op/LinearAttentionTest.cpp107 // Step 2: Split Q, K, V with GQA expansionCOMMENT
LOWtest/op/LinearAttentionTest.cpp144 // Step 3: L2 NormCOMMENT
LOWtest/op/LinearAttentionTest.cpp1143 // Step 1: prefill X. metaA.previous=0 here makes onResize treat this asCOMMENT
LOWsource/backend/metal/MetalKVCacheManager.mm359 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp601 // Step 1: Decay state + compute v_predCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp613 // Step 2: Compute deltaCOMMENT
LOWsource/backend/metal/MetalLinearAttentionShader.hpp616 // Step 3: Update state + compute outputCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp197 // Step 1: Copy the old kvcache from files to temporary buffers in memoryCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp220 // Step 2: Resize the kvcache files and remap themCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp224 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp284 // Step 4: Release the temporary buffersCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp349 // Step 1: Depthwise Conv1D + SiLUCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp389 // Step 2: Split Q, K, VCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp426 // Step 3: Optional L2 NormalizationCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp448 // Step 4: Scale QCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp453 // Step 5: Gated Delta RuleCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp1171 // Step 2: y = C_ * conv_out, transpose to output [B, L, 1, H]COMMENT
LOWsource/backend/cpu/compute/ConvInt8TiledExecutor.cpp288 if (calOcMain <= ocMain) { // The purpose of this function is to increase the value of ocMain.CODE
LOWsource/backend/cpu/compute/TurboQuant.hpp84 // Step 1: Apply sign flipsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp88 // Step 2: Butterfly stages (log2(32) = 5 stages)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp99 // Step 3: NormalizeCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp109 // Step 1: Copy inputCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp113 // Step 2: Butterfly stages (WHT is self-inverse up to scaling)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp178 // Step 2: NormalizeCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp185 // Step 3: Apply WHT forwardCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp189 // Step 4: Find nearest codebook index for each coordinateCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp195 // Step 5: Pack 3-bit indices (4 groups of 8 → 12 bytes)COMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp203 // Step 1: Read scaleCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp208 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp218 // Step 3: Apply inverse WHTCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp222 // Step 4: Scale backCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp233 // Step 1: Read scaleCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp238 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp248 // Step 3: Apply inverse WHTCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp252 // Step 4: Scale and write to strided destinationCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp124 // Step 3: Normalize and undo sign flipsCOMMENT
LOWsource/backend/cpu/compute/TurboQuant.hpp164 // Step 1: Compute RMS scaleCOMMENT
LOWsource/backend/cpu/arm/CommonOptFunctionNeon.cpp584 // Step 1: Transpose 2x2 blocks of 2-element vectorsCOMMENT
LOWsource/backend/cpu/arm/CommonOptFunctionNeon.cpp588 // Step 2: Combine the results to get the full transposeCOMMENT
LOW…Chat/MNNLLMiOS/InferenceEngine/SanaDiffusionSession.mm75 // Step 1: Load LLM on background threadCOMMENT
LOW…Chat/MNNLLMiOS/InferenceEngine/SanaDiffusionSession.mm87 // Step 2: Load Diffusion on background threadCOMMENT
LOW…alibaba/mnnllm/android/benchmark/LeaderboardService.kt203 // Step 1: Initiate rank queryCOMMENT
LOW…alibaba/mnnllm/android/benchmark/LeaderboardService.kt262 // Step 2: Poll for final resultCOMMENT
LOW…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt137 // Step 1: Decode only dimensions to calculate scaling factor without loading full bitmap into memoryCOMMENT
LOW…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt153 // Step 2: Decode the bitmap with calculated scaleCOMMENT
LOW…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt158 // Step 3: Handle orientation using EXIF dataCOMMENT
LOW…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt177 // Step 4: Optimization - Combine precise scaling and rotation into a single operationCOMMENT
LOW…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt203 // Step 5: Save the compressed bitmap back to the original fileCOMMENT
27 more matches not shown…
Redundant / Tautological Comments55 hits · 89 pts
SeverityFileLineSnippetContext
LOWpymnn/pip_package/MNN/llm/__init__.py39 # Set back to C++ objectCOMMENT
LOWtools/script/generate_podspec.sh10# ./tools/script/generate_podspec.sh -c # Check if podspec is in syncCOMMENT
LOWtools/script/generate_podspec.sh219# Check if podspec file existsCOMMENT
LOWtools/script/generate_podspec.sh268 # Check if pattern contains globCOMMENT
LOWtools/script/generate_podspec.sh276 # Check if file existsCOMMENT
LOWtools/script/turnMNN2Expr.py165 # Return outputCOMMENT
LOWtransformers/llm/export/gguf/gguf_reader.py184 # Check if it's a simple scalar type.COMMENT
LOWtransformers/llm/export/utils/model.py105 # Check if skip_weight mode is enabled (load structure only, no weights)COMMENT
LOWtransformers/llm/export/utils/omni_quantizer.py479 # Check if we already have prepared dataCOMMENT
LOWapps/Android/MnnLlmChat/scripts/test_build.sh32# Check if we're in the right directoryCOMMENT
LOWapps/Android/MnnLlmChat/scripts/setup_release.sh32# Check if we're in the right directoryCOMMENT
LOWapps/Android/MnnLlmChat/scripts/setup_release.sh40# Check if release.config already existsCOMMENT
LOWapps/Android/MnnLlmChat/scripts/qnn.sh66 # Check if directory existsCOMMENT
LOWapps/Android/MnnLlmChat/scripts/release.sh139 # Check if we're in the right directoryCOMMENT
LOWapps/Android/MnnLlmChat/scripts/release.sh152 # Check if Gradle wrapper existsCOMMENT
LOWapps/Android/MnnLlmChat/scripts/release.sh281 # Check if fastlane is availableCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh56 # Check if we're in the right directoryCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh62 # Check if ADB is availableCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh68 # Check if modelscope cache directory existsCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh74 # Check if models directory exists (either MNN subdirectory or main models directory)COMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh82 # Check if build_64 directory existsCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh94 # Check if any device is connectedCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh104 # Check if device is rooted (needed for /data/local/tmp access)COMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh275 # Set LD_LIBRARY_PATH to include current directory for .so filesCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh297 # Check if libMNN.so is presentCOMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh305 # Check if llm_demo is executableCOMMENT
LOWapps/Android/MnnLlmChat/scripts/get_repo_info.py55 # Check if the model has a HuggingFace sourceCOMMENT
LOWapps/mnncli/android_debug.sh92# Check if adb is availableCOMMENT
LOWapps/mnncli/android_debug.sh202 # Check if video path is providedCOMMENT
LOWapps/mnncli/android_debug.sh209 # Check if specified video file exists on deviceCOMMENT
LOWapps/mnncli/android_debug.sh219 # Check if model path is providedCOMMENT
LOWapps/mnncli/build.sh118# Check if build was successfulCOMMENT
LOWapps/mnncli/android_build.sh100# Check if ANDROID_NDK is setCOMMENT
LOWapps/mnncli/android_build.sh108# Check if ANDROID_NDK existsCOMMENT
LOWapps/mnncli/android_build.sh142 # Check if download was successfulCOMMENT
LOWapps/mnncli/android_build.sh252# Check if build was successfulCOMMENT
LOWapps/mnncli/android_build.sh260 # Check if libMNN.so was createdCOMMENT
LOWapps/mnncli/build_integrated.sh62# Check if build was successfulCOMMENT
LOWapps/mnncli/test.sh152# Check if executable existsCOMMENT
LOWapps/mnncli/test/test_hf_download.sh12# Check if we're in the right directoryCOMMENT
LOWapps/mnncli/test/test_hf_download.sh100# Check if test executable existsCOMMENT
LOWapps/mnncli/test/test_download_integration.sh160 # Check if output contains expected patternCOMMENT
LOWapps/mnncli/test/test_download_integration.sh185 # Check if output contains error messageCOMMENT
LOWapps/mnncli/test/test_download_integration.sh209 # Check if output contains expected patternCOMMENT
LOWapps/mnncli/test/test_download_integration.sh233 # Check if output contains help informationCOMMENT
LOWapps/mnncli/test/test_download_integration.sh257 # Check if output contains version informationCOMMENT
LOWapps/mnncli/test/test_download_integration.sh276 # Check if mnncli binary existsCOMMENT
LOWapps/mnncli/test/create_test_video.sh10# Check if ffmpeg is availableCOMMENT
LOWapps/mnncli/test/test_model_repository.sh12# Check if we're in the right directoryCOMMENT
LOWapps/mnncli/test/test_model_repository.sh38# Check if test executable existsCOMMENT
LOWapps/mnncli/test/test_hf_download_standalone.sh12# Check if we're in the right directoryCOMMENT
LOWapps/mnncli/test/test_hf_download_standalone.sh48# Check if mnncli executable existsCOMMENT
LOWapps/mnncli/test/test_download_simple.sh151 # Check if output contains expected patternCOMMENT
LOWapps/mnncli/test/test_download_simple.sh177 # Check if output contains error messageCOMMENT
LOWapps/mnncli/test/test_download_simple.sh196 # Check if mnncli binary existsCOMMENT
AI Structural Patterns40 hits · 40 pts
SeverityFileLineSnippetContext
LOWpymnn/test/playground/cases/model_test.py27CODE
LOWpymnn/pip_package/MNN/numpy/__init__.py652CODE
LOWpymnn/pip_package/MNN/audio/__init__.py74CODE
LOWpymnn/pip_package/MNN/audio/__init__.py81CODE
LOWtools/script/testMNNFromTf.py114CODE
LOWtools/script/testMNNFromOnnx.py274CODE
LOWtools/script/testMNNFromTflite.py144CODE
LOWtools/script/testMNNFromTorch.py87CODE
LOWtools/mnncompress/mnncompress/common/log.py128CODE
LOWtools/mnncompress/mnncompress/tensorflow/hooks.py13CODE
LOWtools/mnncompress/mnncompress/tensorflow/hooks.py22CODE
LOWtools/mnncompress/mnncompress/tensorflow/hooks.py31CODE
LOWtools/mnncompress/mnncompress/tensorflow/hooks.py54CODE
LOW…ress/mnncompress/tensorflow/TaylorFO_channel_pruner.py18CODE
LOW…ress/mnncompress/tensorflow/SA_prune_ratio_searcher.py13CODE
LOW…ls/mnncompress/mnncompress/tensorflow/OAQ_quantizer.py87CODE
LOW…s/mnncompress/mnncompress/tensorflow/SIMD_OC_pruner.py18CODE
LOW…nncompress/mnncompress/tensorflow/SNIP_level_pruner.py18CODE
LOW…compress/mnncompress/tensorflow/overflow_custom_ops.py231CODE
LOWtransformers/llm/eval/evaluate_chat_ceval.py121CODE
LOWtransformers/llm/export/utils/transformers.py1140CODE
LOWtransformers/llm/export/utils/transformers.py1155CODE
LOWtransformers/llm/export/utils/token2wav.py67CODE
LOWtransformers/llm/export/utils/token2wav.py297CODE
LOWtransformers/llm/export/utils/audio.py482CODE
LOWtransformers/llm/export/utils/omni_quantizer.py14CODE
LOW…-mnn/sherpa-mnn/python/sherpa_mnn/online_recognizer.py41CODE
LOW…-mnn/sherpa-mnn/python/sherpa_mnn/online_recognizer.py315CODE
LOW…-mnn/sherpa-mnn/python/sherpa_mnn/online_recognizer.py438CODE
LOW…-mnn/sherpa-mnn/python/sherpa_mnn/online_recognizer.py567CODE
LOW…-mnn/sherpa-mnn/python/sherpa_mnn/online_recognizer.py685CODE
LOW…pa-mnn/sherpa-mnn/python/sherpa_mnn/keyword_spotter.py30CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py42CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py182CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py264CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py337CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py412CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py486CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py729CODE
LOW…mnn/sherpa-mnn/python/sherpa_mnn/offline_recognizer.py802CODE
AI Slop Vocabulary12 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUM3rd_party/flatbuffers/include/flatbuffers/flatbuffers.h611// Essentially, this supports 2 std::vectors in a single buffer.COMMENT
MEDIUM3rd_party/flatbuffers/samples/sample_binary.py19# to facilitate executing this script in the `samples` folder, and to rootCOMMENT
MEDIUM3rd_party/flatbuffers/src/idl_gen_rust.cpp279 // conflicts with these keywords. However, that's a fairly nuancedCOMMENT
MEDIUMsource/backend/metal/MetalBackend.hpp34// encode-reuse / ICB leverage ceiling. Not compiled in production builds.COMMENT
MEDIUM…/opencl/execution/buffer/ConvBufLowMemoryExecution.cpp847 // Create image1d_buffer_t for input to leverage texture cache (int4 only)COMMENT
MEDIUMtransformers/llm/engine/src/httplib.h8949 // Cross-host/scheme redirect - create new client with robust setupCOMMENT
MEDIUMtransformers/llm/engine/src/httplib.h8954// New method for robust redirect client creationCOMMENT
MEDIUMtransformers/llm/engine/src/httplib.h9022 // Setup client with robust configurationCOMMENT
MEDIUMtransformers/llm/engine/src/httplib.h9030// New method for robust client setup (based on basic_manual_redirect.cpp logic)COMMENT
MEDIUM…LlmChat/app/src/main/cpp/video/byte_buffer_decoder.cpp235 // Non-blocking poll with limited retries to be robust around startup/drainCOMMENT
MEDIUM…LlmChat/app/src/main/cpp/video/byte_buffer_decoder.cpp357 // or observe OUTPUT EOS from the codec. This makes EOS handling robust.COMMENT
MEDIUMapps/frameworks/model_downloader/cpp/src/file_utils.cpp154// robust lookup with support for provider prefixes and multiple storage layouts.COMMENT
Self-Referential Comments12 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMsource/backend/opencl/schema/CLCache/Shader.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/BackendInfo.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/Autotuning.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/Cache.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/OpInfo.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/GemmInfo.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMsource/backend/opencl/schema/CLCache/TensorInfo.py21 """This method is deprecated. Please switch to GetRootAs."""STRING
MEDIUMtransformers/llm/export/utils/transformers.py406 """This function is intended to align with the l2norm implementation in the FLA library."""STRING
MEDIUMapps/Android/MnnLlmChat/scripts/get_repo_info.py105 # Define the keys that contain lists of models to processCOMMENT
MEDIUMapps/mnncli/test/create_test_video.sh3# Create a simple test video for Android testingCOMMENT
MEDIUMapps/mnncli/test/create_test_video.sh18# Create a simple test video (1 second, 320x240, black frame with text)COMMENT
MEDIUM…rks/sherpa-mnn/python-api-examples/offline-tts-play.py381 """This function is called whenever max_num_sentences sentencesSTRING
Example Usage Blocks10 hits · 16 pts
SeverityFileLineSnippetContext
LOWpymnn/pip_package/build_manylinux2014.sh3# Usage:COMMENT
LOWtools/script/generate_podspec.sh8# Usage:COMMENT
LOWpackage_scripts/harmony/build.sh10# Usage:COMMENT
LOWtransformers/llm/engine/ios/ios_llm_bench.sh6# Usage:COMMENT
LOWapps/Android/MnnLlmChat/tools/stetho_open.py7## Usage:COMMENT
LOW…/MnnLlmChat/tests/smoke/scripts/16_regress_voice_ui.sh17# Usage:COMMENT
LOW…t/tests/smoke/scripts/noui/15_regress_voice_dumpapp.sh15# Usage:COMMENT
LOWapps/Android/MnnLlmChat/scripts/push_model_test.sh6# Usage:COMMENT
LOWapps/frameworks/sherpa-mnn/test_tts_batch.sh8# Usage:COMMENT
LOWapps/frameworks/sherpa-mnn/sherpa-mnn/c-api/c-api.h271/// Usage example:COMMENT
Cross-Language Confusion3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtools/script/llm_upload.py127mkdir build && cd buildCODE
HIGHtools/script/llm_upload.py185mkdir build && cd buildCODE
HIGHtools/script/llm_upload.py239mkdir build && cd buildCODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md59We welcome contributions generated by AI assistants (Cursor, Claude Code, GitHub Copilot, etc.).CODE
TODO Padding4 hits · 4 pts
SeverityFileLineSnippetContext
LOW3rd_party/flatbuffers/include/flatbuffers/flexbuffers.h123// TODO: implement proper support for 8/16bit floats, or decide not toCOMMENT
LOW3rd_party/flatbuffers/src/reflection.cpp82 s += "(struct)"; // TODO: implement this as well.CODE
LOW3rd_party/flatbuffers/src/reflection.cpp110 return "[(elements)]"; // TODO: implement this as well.CODE
LOW3rd_party/flatbuffers/src/reflection.cpp111 case reflection::Union: return "(union)"; // TODO: implement this as well.CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtransformers/llm/export/llmexport.py231 # embedding model's embedCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtransformers/llm/finetune/mnn_qlora.py82def set_random_seed(seed: int) -> None:CODE
LOWtransformers/llm/export/gguf/gguf_reader.py37logger = logging.getLogger(__name__)CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtransformers/llm/export/utils/transformers.py1303 # the current expert. We need to make sure to multiply the output hiddenCOMMENT