AI Slop Code Risk Monitor

alibaba/MNN

SlopCodeMonitor badge for alibaba/MNN Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

4.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for alibaba/MNN, a C++ project with 16,323 GitHub stars. SynthScan examined 1,678,231 lines of code across 6204 source files, recording 5706 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 4.0 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

4.0
Adjusted Signal
4.0
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
16.3K
Stars
C++
Language
1.7M
Lines of Code
6.2K
Files
5.7K
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 13.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 5001 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.8/100 · LOW

Are imports declared and package/API names verified? 308 finding(s).

Agent Over-Engineering Ratio 4.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 725 finding(s).

PR Review Velocity Impact 19.1/100 · LOW

Which changes need focused human review? 5706 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 31HIGH 132MEDIUM 230LOW 5313

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 5706 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block4181 hits · 3818 pts
SeverityFileLineSnippetContext
LOWtest.sh1#!/usr/bin/env bashCOMMENT
LOWtest.sh21# Defaults to taobao-mnn/Qwen2.5-0.5B-Instruct-MNN.COMMENT
LOWtest.sh1161# Filter logic — translates the user-supplied --filter (FILTER global) into aCOMMENT
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
LOW3rd_party/half/half.hpp1421 static expr cos(float arg) { return expr(std::cos(arg)); }COMMENT
4121 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 Separators150 hits · 465 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.sh749# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh752# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh813# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh815# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh850# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh852# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh987# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh989# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1021# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1024# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1160# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1174# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1290# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1292# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1358# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest.sh1360# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡tools/script/generate_podspec.sh2# =============================================================================COMMENT
MEDIUM⚡tools/script/generate_podspec.sh15# =============================================================================COMMENT
MEDIUM⚡tools/script/generate_podspec.sh215# =============================================================================COMMENT
MEDIUM⚡tools/script/generate_podspec.sh217# =============================================================================COMMENT
MEDIUM⚡tools/script/generate_podspec.sh318# =============================================================================COMMENT
MEDIUM⚡tools/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
90 more matches not shown…
Hallucination Indicators31 hits · 330 pts
SeverityFileLineSnippetContext
CRITICALtransformers/llm/export/llmexport.py174 self.args.tie_word_embeddings = not self.args.seperate_embed and self.model.lm.lm.weight.equal(self.model.embed.CODE
CRITICALtransformers/llm/export/utils/talker.py524 tensor_data = self.talker.model.text_embedding.weight.data.bfloat16()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.kt633 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.kt262 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
Hyper-Verbose Identifiers289 hits · 285 pts
SeverityFileLineSnippetContext
LOW⚡3rd_party/flatbuffers/tests/py_test.py1179 def test_default_monster_name(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1182 def test_default_monster_inventory_item(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1185 def test_default_monster_inventory_length(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1188 def test_default_monster_color(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1191 def test_nondefault_monster_color(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1203 def test_default_monster_testtype(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1206 def test_default_monster_test_field(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1215 def test_default_monster_testarrayofstring(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1218 def test_default_monster_testarrayofstring_length(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1221 def test_default_monster_testarrayoftables(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1224 def test_nondefault_monster_testarrayoftables(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1271 def test_default_monster_testnestedflatbuffer(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1274 def test_default_monster_testnestedflatbuffer_length(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1277 def test_nondefault_monster_testnestedflatbuffer(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1482 def test_object_is_nested_error(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1488 def test_object_is_not_nested_error(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1493 def test_struct_is_not_inline_error(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1504 def test_create_string_is_nested_error(self):CODE
LOW⚡3rd_party/flatbuffers/tests/py_test.py1511 def test_create_byte_vector_is_nested_error(self):CODE
LOW⚡3rd_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
LOW⚡3rd_party/flatbuffers/tests/MyGame/Example/Monster.php524 public function getVectorOfWeakReferences($j)CODE
229 more matches not shown…
Unused Imports274 hits · 258 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/__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
LOWpymnn/examples/MNNTrain/simple/grad_loss.py1CODE
214 more matches not shown…
Deep Nesting200 hits · 196 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
140 more matches not shown…
Structural Annotation Overuse110 hits · 193 pts
SeverityFileLineSnippetContext
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py14model = tvmc.load("/home/mnnteam/benchmark/models/onnx/" + model_name + ".onnx") #Step 1: LoadCODE
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py24tvmc.compile(model, target=device_name, tuning_records=log_file, package_path=compile_file) #Step 2: CompileCODE
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py31result = tvmc.run(new_package, device=device_name, repeat=100) #Step 3: RunCODE
LOW⚡tools/script/generate_podspec.sh329 # Step 1: Check file existsCOMMENT
LOW⚡tools/script/generate_podspec.sh334 # Step 2: Validate syntax (only if file exists)COMMENT
LOW⚡tools/script/generate_podspec.sh341 # Step 3: Validate file referencesCOMMENT
LOW⚡tools/script/generate_podspec.sh346 # Step 4: Full validation (if requested)COMMENT
LOWtest/op/LinearAttentionTest.cpp79 // Step 1: Build conv_input = cat(convState, qkv) along dim LCOMMENT
LOWtest/op/LinearAttentionTest.cpp120 // Step 2: Split Q, K, V with GQA expansionCOMMENT
LOWtest/op/LinearAttentionTest.cpp157 // Step 3: L2 NormCOMMENT
LOW⚡test/op/LinearAttentionTest.cpp175 // Step 4: Scale QCOMMENT
LOW⚡test/op/LinearAttentionTest.cpp181 // Step 5: Gated Delta Rule with persistent stateCOMMENT
LOWsource/backend/metal/MetalKVCacheManager.mm365 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1362 // Step 1: Decay state in-register + compute v_predCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1372 // Step 2: Compute deltaCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1375 // Step 3: Update state in-register + compute outputCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp205 // Step 1: Copy the old kvcache from files to temporary buffers in memoryCOMMENT
LOW⚡source/backend/cpu/CPUKVCacheManager.cpp228 // Step 2: Resize the kvcache files and remap themCOMMENT
LOW⚡source/backend/cpu/CPUKVCacheManager.cpp232 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp292 // Step 4: Release the temporary buffersCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp300 // Step 1: Depthwise Conv1D + SiLUCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp340 // Step 2: Split Q, K, VCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp377 // Step 3: Optional L2 NormalizationCOMMENT
LOW⚡source/backend/cpu/CPULinearAttention.cpp399 // Step 4: Scale QCOMMENT
LOW⚡source/backend/cpu/CPULinearAttention.cpp404 // Step 5: Gated Delta RuleCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp1269 // Step 2: y = C_ * conv_out, transpose to output [B, L, 1, H]COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp84 // Step 1: Apply sign flipsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp88 // Step 2: Butterfly stages (log2(32) = 5 stages)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp99 // Step 3: NormalizeCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp109 // Step 1: Copy inputCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp113 // Step 2: Butterfly stages (WHT is self-inverse up to scaling)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp178 // Step 2: NormalizeCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp185 // Step 3: Apply WHT forwardCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp189 // Step 4: Find nearest codebook index for each coordinateCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp195 // Step 5: Pack 3-bit indices (4 groups of 8 → 12 bytes)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp203 // Step 1: Read scaleCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp208 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp218 // Step 3: Apply inverse WHTCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp222 // Step 4: Scale backCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp233 // Step 1: Read scaleCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp238 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp248 // Step 3: Apply inverse WHTCOMMENT
LOW⚡source/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
LOW⚡source/backend/cpu/arm/CommonOptFunctionNeon.cpp584 // Step 1: Transpose 2x2 blocks of 2-element vectorsCOMMENT
LOW⚡source/backend/cpu/arm/CommonOptFunctionNeon.cpp588 // Step 2: Combine the results to get the full transposeCOMMENT
LOW…ce/backend/hexagon/tests/test_vrmpy_to_hmx_convert.cpp258// Step 1: scale repack (fp32 vrmpy scale -> HMX dup / packed fp16 regions).COMMENT
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
LOW⚡skills/general-debug/fp16-range.md45### Step 1: 用 precision 开关分流(第一步,代价最小)COMMENT
LOW⚡skills/general-debug/fp16-range.md54### Step 2: 长度扫描找阈值COMMENT
LOW⚡skills/general-debug/fp16-range.md64### Step 3: 逐 step logits 对拍,定位第一个发散点COMMENT
LOWskills/general-debug/fp16-range.md76### Step 4: 定位是哪个中间张量COMMENT
LOWskills/general-debug/fp16-range.md80### Step 5: 改写成小值域等价形式COMMENT
LOWskills/general-debug/memory-aliasing.md53### Step 1: 复现并最小化COMMENT
LOWskills/general-debug/memory-aliasing.md58### Step 2: 用地址等式定位别名(关键手法)COMMENT
LOWskills/general-debug/memory-aliasing.md73### Step 3: 从 `onResize` 找根因COMMENT
50 more matches not shown…
Excessive Try-Catch Wrapping117 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.py791 except Exception as e:CODE
LOWtransformers/llm/export/llmexport.py997 except Exception as e:CODE
LOWtransformers/llm/export/npu/generate_llm_qnn.py351 except Exception as e:CODE
MEDIUMtransformers/llm/export/npu/generate_llm_qnn.py352 print(f"Error parsing --image_sizes: {e}")CODE
MEDIUMtransformers/llm/export/utils/smooth_quantizer.py520 print("Error: CPU only supports 8 bit feature map quantized")CODE
LOWtransformers/llm/export/utils/model.py223 except Exception as load_error:CODE
LOWtransformers/llm/export/utils/model.py245 except Exception:CODE
MEDIUMtransformers/llm/export/utils/tokenizer.py116def _decode_token_ids(self, token_ids):CODE
LOW⚡transformers/llm/export/utils/tokenizer.py881 except Exception as e:CODE
LOW⚡transformers/llm/export/utils/tokenizer.py884 except Exception as e2:CODE
LOW⚡transformers/llm/export/utils/tokenizer.py890 except Exception as e2:CODE
LOWtransformers/llm/export/utils/tokenizer.py15 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py57 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py119 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py703 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py717 except Exception:CODE
LOWtransformers/llm/export/utils/tokenizer.py853 except Exception as e:CODE
LOWtransformers/llm/export/utils/mnn_converter.py56 except Exception:CODE
LOWtransformers/llm/export/utils/spinner.py20 except Exception as e:CODE
LOWtransformers/llm/export/utils/torch_utils.py111 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.py106 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
LOW⚡transformers/diffusion/export/wan/wan_onnx_export.py346 except Exception:CODE
LOW⚡transformers/diffusion/export/wan/wan_onnx_export.py350 except Exception as e:CODE
LOW⚡transformers/diffusion/export/wan/wan_onnx_export.py357 except Exception as e:CODE
LOW⚡transformers/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
57 more matches not shown…
Empty Error Handlers33 hits · 165 pts
SeverityFileLineSnippetContext
HIGH3rd_party/flatbuffers/tests/py_test.py170except ImportError:CODE
HIGHpymnn/test/model_test.py62except:CODE
HIGHpymnn/test/unit_test.py812except:CODE
HIGHpymnn/test/unit_test.py994except:CODE
HIGHpymnn/pip_package/MNN/expr/__init__.py97except:CODE
HIGHtools/script/arm2binary.py157except ValueError:CODE
HIGHtools/script/llm_upload.py265except:CODE
HIGHtools/script/llm_upload.py281except:CODE
HIGHtools/script/llm_upload.py298except:CODE
HIGHtools/script/gen_unicode_data.py83except (ValueError, OverflowError):CODE
HIGHtransformers/llm/export/utils/model.py126except (NotImplementedError, RuntimeError):CODE
HIGHtransformers/llm/export/utils/tokenizer.py35except:CODE
HIGHtransformers/llm/export/utils/tokenizer.py64except:CODE
HIGHtransformers/llm/export/utils/tokenizer.py57except Exception:CODE
HIGHtransformers/llm/export/utils/tokenizer.py163except (ValueError, OverflowError):CODE
HIGHtransformers/llm/export/utils/tokenizer.py177except (ValueError, OverflowError):CODE
HIGHtransformers/llm/export/utils/tokenizer.py191except (ValueError, OverflowError):CODE
HIGHtransformers/llm/export/utils/tokenizer.py703except Exception:CODE
HIGHtransformers/llm/export/utils/tokenizer.py296except:CODE
HIGHtransformers/llm/export/utils/tokenizer.py759except:CODE
HIGHtransformers/llm/export/utils/torch_utils.py111except Exception:CODE
HIGHtransformers/llm/export/utils/omni_quantizer.py130except:CODE
HIGHtransformers/diffusion/export/convert_mnn_sd35.py83except Exception:CODE
HIGHtransformers/diffusion/export/convert_mnn.py51except Exception:CODE
HIGHtransformers/diffusion/export/convert_mnn.py67except Exception:CODE
HIGHtransformers/diffusion/export/convert_mnn.py106except Exception:CODE
HIGHtransformers/diffusion/export/wan/wan_onnx_export.py514except Exception:CODE
HIGHtransformers/diffusion/export/wan/wan_onnx_export.py459except Exception:CODE
HIGHtransformers/diffusion/export/wan/wan_onnx_export.py512except Exception:CODE
HIGHtransformers/diffusion/export/wan/wan_convert_mnn.py177except Exception:CODE
HIGHapps/Android/MnnLlmChat/test_api.py108except json.JSONDecodeError:CODE
HIGH…sherpa-mnn/python-api-examples/non_streaming_server.py837except asyncio.QueueEmpty:CODE
HIGH…rks/sherpa-mnn/python-api-examples/streaming_server.py574except asyncio.QueueEmpty:CODE
Verbosity Indicators85 hits · 152 pts
SeverityFileLineSnippetContext
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py14model = tvmc.load("/home/mnnteam/benchmark/models/onnx/" + model_name + ".onnx") #Step 1: LoadCODE
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py24tvmc.compile(model, target=device_name, tuning_records=log_file, package_path=compile_file) #Step 2: CompileCODE
LOW⚡benchmark/scripts/tvm/tvmc_cuda_test.py31result = tvmc.run(new_package, device=device_name, repeat=100) #Step 3: RunCODE
LOW⚡tools/script/generate_podspec.sh329 # Step 1: Check file existsCOMMENT
LOW⚡tools/script/generate_podspec.sh334 # Step 2: Validate syntax (only if file exists)COMMENT
LOW⚡tools/script/generate_podspec.sh341 # Step 3: Validate file referencesCOMMENT
LOW⚡tools/script/generate_podspec.sh346 # Step 4: Full validation (if requested)COMMENT
LOWtest/op/LinearAttentionTest.cpp79 // Step 1: Build conv_input = cat(convState, qkv) along dim LCOMMENT
LOWtest/op/LinearAttentionTest.cpp120 // Step 2: Split Q, K, V with GQA expansionCOMMENT
LOWtest/op/LinearAttentionTest.cpp157 // Step 3: L2 NormCOMMENT
LOW⚡test/op/LinearAttentionTest.cpp175 // Step 4: Scale QCOMMENT
LOW⚡test/op/LinearAttentionTest.cpp181 // Step 5: Gated Delta Rule with persistent stateCOMMENT
LOWsource/backend/metal/MetalKVCacheManager.mm365 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1362 // Step 1: Decay state in-register + compute v_predCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1372 // Step 2: Compute deltaCOMMENT
LOW⚡source/backend/metal/MetalLinearAttentionShader.hpp1375 // Step 3: Update state in-register + compute outputCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp205 // Step 1: Copy the old kvcache from files to temporary buffers in memoryCOMMENT
LOW⚡source/backend/cpu/CPUKVCacheManager.cpp228 // Step 2: Resize the kvcache files and remap themCOMMENT
LOW⚡source/backend/cpu/CPUKVCacheManager.cpp232 // Step 3: Move the kvcache from temporary buffers in memory to diskCOMMENT
LOWsource/backend/cpu/CPUKVCacheManager.cpp292 // Step 4: Release the temporary buffersCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp300 // Step 1: Depthwise Conv1D + SiLUCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp340 // Step 2: Split Q, K, VCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp377 // Step 3: Optional L2 NormalizationCOMMENT
LOW⚡source/backend/cpu/CPULinearAttention.cpp399 // Step 4: Scale QCOMMENT
LOW⚡source/backend/cpu/CPULinearAttention.cpp404 // Step 5: Gated Delta RuleCOMMENT
LOWsource/backend/cpu/CPULinearAttention.cpp1269 // Step 2: y = C_ * conv_out, transpose to output [B, L, 1, H]COMMENT
LOWsource/backend/cpu/compute/ConvInt8TiledExecutor.cpp425 if (calOcMain <= ocMain) { // The purpose of this function is to increase the value of ocMain.CODE
LOW⚡source/backend/cpu/compute/TurboQuant.hpp84 // Step 1: Apply sign flipsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp88 // Step 2: Butterfly stages (log2(32) = 5 stages)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp99 // Step 3: NormalizeCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp109 // Step 1: Copy inputCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp113 // Step 2: Butterfly stages (WHT is self-inverse up to scaling)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp178 // Step 2: NormalizeCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp185 // Step 3: Apply WHT forwardCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp189 // Step 4: Find nearest codebook index for each coordinateCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp195 // Step 5: Pack 3-bit indices (4 groups of 8 → 12 bytes)COMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp203 // Step 1: Read scaleCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp208 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp218 // Step 3: Apply inverse WHTCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp222 // Step 4: Scale backCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp233 // Step 1: Read scaleCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp238 // Step 2: Unpack 3-bit indices and look up centroidsCOMMENT
LOW⚡source/backend/cpu/compute/TurboQuant.hpp248 // Step 3: Apply inverse WHTCOMMENT
LOW⚡source/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
LOW⚡source/backend/cpu/arm/CommonOptFunctionNeon.cpp584 // Step 1: Transpose 2x2 blocks of 2-element vectorsCOMMENT
LOW⚡source/backend/cpu/arm/CommonOptFunctionNeon.cpp588 // Step 2: Combine the results to get the full transposeCOMMENT
LOW…ce/backend/hexagon/tests/test_vrmpy_to_hmx_convert.cpp258// Step 1: scale repack (fp32 vrmpy scale -> HMX dup / packed fp16 regions).COMMENT
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
LOW⚡…in/java/com/alibaba/mnnllm/android/utils/ImageUtils.kt208 // Step 6: Memory CleanupCOMMENT
LOW…/alibaba/mnnllm/android/modelmarket/ModelRepository.kt507 // Step 1: Load from cache/assets immediately (fast)COMMENT
25 more matches not shown…
Redundant / Tautological Comments55 hits · 89 pts
SeverityFileLineSnippetContext
LOWpymnn/pip_package/MNN/llm/__init__.py39 # Set back to C++ objectCOMMENT
LOW⚡tools/script/generate_podspec.sh10# ./tools/script/generate_podspec.sh -c # Check if podspec is in syncCOMMENT
LOW⚡tools/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.py192 # 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
LOW⚡apps/Android/MnnLlmChat/scripts/push_model_test.sh56 # Check if we're in the right directoryCOMMENT
LOW⚡apps/Android/MnnLlmChat/scripts/push_model_test.sh62 # Check if ADB is availableCOMMENT
LOW⚡apps/Android/MnnLlmChat/scripts/push_model_test.sh68 # Check if modelscope cache directory existsCOMMENT
LOW⚡apps/Android/MnnLlmChat/scripts/push_model_test.sh74 # Check if models directory exists (either MNN subdirectory or main models directory)COMMENT
LOW⚡apps/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
LOW⚡apps/mnncli/android_debug.sh202 # Check if video path is providedCOMMENT
LOW⚡apps/mnncli/android_debug.sh209 # Check if specified video file exists on deviceCOMMENT
LOW⚡apps/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
LOW⚡apps/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 Slop Vocabulary13 hits · 39 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.hpp36// encode-reuse / ICB leverage ceiling. Not compiled in production builds.COMMENT
MEDIUM…/opencl/execution/buffer/ConvBufLowMemoryExecution.cpp902 // 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
MEDIUMtransformers/llm/engine/src/llm.cpp532 // Perf noise is additive-positive, so min-of-reps is the robust pick.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
AI Structural Patterns39 hits · 39 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/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.py1337CODE
LOWtransformers/llm/export/utils/transformers.py1352CODE
LOWtransformers/llm/export/utils/token2wav.py87CODE
LOWtransformers/llm/export/utils/token2wav.py321CODE
LOWtransformers/llm/export/utils/audio.py652CODE
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
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.py477 """This function is intended to align with the l2norm implementation in the FLA library."""STRING
MEDIUM⚡apps/Android/MnnLlmChat/scripts/get_repo_info.py105 # Define the keys that contain lists of models to processCOMMENT
MEDIUM⚡apps/mnncli/test/create_test_video.sh3# Create a simple test video for Android testingCOMMENT
MEDIUM⚡apps/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
LOW⚡tools/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.py297 # 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.py1617 # the current expert. We need to make sure to multiply the output hiddenCOMMENT