AI Slop Code RIsk Monitor

modelscope/FunASR

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

18.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for modelscope/FunASR, a Python project with 20,638 GitHub stars. SynthScan examined 500,282 lines of code across 2991 source files, recording 5001 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 18.3 (Elevated 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.

18.3
Adjusted Signal
18.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
20.6K
Stars
Python
Language
500.3K
Lines of Code
3.0K
Files
5.0K
Pattern Hits
2026-10-12
Scan Date
0.32
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 26.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.8/100 · LOW

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

Agent Over-Engineering Ratio 48.4/100 · MEDIUM

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

PR Review Velocity Impact 63.9/100 · HIGH

Which changes need focused human review? 5001 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 10HIGH 961MEDIUM 152LOW 3878

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 5001 distinct pattern matches across 25 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.

Cross-File Repetition908 hits · 4540 pts
SeverityFileLineSnippetContext
HIGH…rocessing/inverse_text_normalization/vi/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/ja/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/tl/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/zh/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/ko/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/id/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/fr/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…n_text_processing/text_normalization/zh/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…n_text_processing/text_normalization/en/graph_utils.py0exports graph as openfst finite state archive (far) file with given file name and rule name. args: file_name: exported fSTRING
HIGH…rocessing/inverse_text_normalization/vi/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/ja/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/tl/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/zh/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/ko/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/id/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/fr/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…n_text_processing/text_normalization/en/graph_utils.py0converts space to nonbreaking space. used only in tagger grammars for transducing token values within quotes, e.g. name:STRING
HIGH…rocessing/inverse_text_normalization/vi/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/ja/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/tl/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/zh/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/ko/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/id/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/fr/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…n_text_processing/text_normalization/zh/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…n_text_processing/text_normalization/en/graph_utils.py0base class for all grammar fsts. args: name: name of grammar class kind: either 'classify' or 'verbalize' deterministic:STRING
HIGH…rocessing/inverse_text_normalization/vi/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/ja/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/tl/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/zh/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/ko/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/id/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/fr/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…n_text_processing/text_normalization/zh/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…n_text_processing/text_normalization/en/graph_utils.py0wraps class name around to given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/vi/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/ja/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/tl/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/zh/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/ko/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/id/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…rocessing/inverse_text_normalization/fr/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…n_text_processing/text_normalization/zh/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…n_text_processing/text_normalization/en/graph_utils.py0deletes class name wrap around output of given fst args: fst: input fst returns: fst: fstSTRING
HIGH…text_processing/inverse_text_normalization/vi/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/ja/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/tl/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/pt/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/zh/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/ko/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/id/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/fr/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/es/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…text_processing/inverse_text_normalization/en/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGHfun_text_processing/text_normalization/ru/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGHfun_text_processing/text_normalization/zh/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGHfun_text_processing/text_normalization/de/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGHfun_text_processing/text_normalization/es/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGHfun_text_processing/text_normalization/en/utils.py0get absolute path args: rel_path: relative path to this file returns absolute pathSTRING
HIGH…ing/inverse_text_normalization/vi/taggers/whitelist.py0finite state transducer for classifying whitelisted tokens e.g. usted -> tokens { name: "ud." } this class has highest pSTRING
848 more matches not shown…
Hyper-Verbose Identifiers1366 hits · 1368 pts
SeverityFileLineSnippetContext
LOW…text_processing/inverse_text_normalization/zh/utils.py53def augment_labels_with_punct_at_end(labels):CODE
LOW…text_processing/inverse_text_normalization/ko/utils.py49def augment_labels_with_punct_at_end(labels):CODE
LOWfun_text_processing/text_normalization/normalize.py202 def _estimate_number_of_permutations_in_nested_dict(CODE
LOWfun_text_processing/text_normalization/normalize.py212 def _split_tokens_to_reduce_number_of_permutations(CODE
LOWfun_text_processing/text_normalization/normalize.py338 def split_text_into_sentences(self, text: str) -> List[str]:CODE
LOW…ext_processing/text_normalization/data_loader_utils.py34def _load_kaggle_text_norm_file(file_path: str) -> List[Instance]:CODE
LOW…ext_processing/text_normalization/data_loader_utils.py158def training_data_to_sentences(data: List[Instance]) -> Tuple[List[str], List[str], List[Set[str]]]:CODE
LOW…t_processing/text_normalization/ru/taggers/decimals.py17def prepare_labels_for_insertion(file_path: str):CODE
LOWfun_text_processing/text_normalization/zh/utils.py36def augment_labels_with_punct_at_end(labels):CODE
LOW…_processing/text_normalization/de/taggers/telephone.py36 # def add_space_after_two_digit():COMMENT
LOWfun_text_processing/text_normalization/en/utils.py31def augment_labels_with_punct_at_end(labels):CODE
LOW…_text_processing/text_normalization/en/taggers/date.py49def get_four_digit_year_graph(deterministic: bool = True):CODE
LOW…_text_processing/text_normalization/en/taggers/date.py99def _get_two_digit_year_with_s_graph():CODE
LOW…g/text_normalization/en/verbalizers/post_processing.py86 def get_punct_postprocess_graph(self):CODE
LOWweb-pages/product-site/legacy.py92def _remove_excluded_runtime_dependencies(html: str) -> str:CODE
LOWweb-pages/product-site/export_docs.py75def export_localized_documentation(built: Path, output: Path, legacy: dict) -> None:CODE
LOW…b-pages/product-site/tests/test_punctuation_article.py37def test_reader_sees_candidate_boundaries_and_one_next_step(root, prefix):CODE
LOW…b-pages/product-site/tests/test_punctuation_article.py64def test_example_keeps_raw_text_and_observed_counterexample(root, prefix):CODE
LOW…b-pages/product-site/tests/test_punctuation_article.py83def test_bilingual_examples_match_and_homepage_is_not_expanded():CODE
LOW⚡web-pages/product-site/tests/test_registry.py37def test_checked_in_registry_is_valid(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py41def test_registry_has_all_product_routes(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py45def test_language_pairs_have_identical_fields(valid_registry):CODE
LOWweb-pages/product-site/tests/test_registry.py114def test_moss_transcribe_diarize_contract_tracks_third_party_upstream(valid_registry):CODE
LOWweb-pages/product-site/tests/test_registry.py245def test_audio_cpp_contract_tracks_mainline_nano_and_sensevoice(valid_registry):CODE
LOWweb-pages/product-site/tests/test_registry.py310def test_sensevoice_tensorrt_contract_tracks_merged_native_runtime(valid_registry):CODE
LOWweb-pages/product-site/tests/test_registry.py410def test_sensevoice_native_server_contract_tracks_merged_runtime(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py470def test_production_entry_requires_evidence(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py480def test_production_entry_requires_verification_contract(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py490def test_duplicate_route_is_rejected(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py499def test_evidence_must_be_https(valid_registry):CODE
LOW⚡web-pages/product-site/tests/test_registry.py506def test_runtime_paths_require_unique_ids_translations_and_commands(valid_registry):CODE
LOWweb-pages/product-site/tests/test_registry.py526def test_benchmark_requires_reproducibility_fields(valid_registry):CODE
LOWweb-pages/product-site/tests/test_official_vllm_docs.py17def test_dated_community_record_is_unchanged():CODE
LOWweb-pages/product-site/tests/test_official_vllm_docs.py23def test_official_catalogue_has_two_sources_and_keeps_historical_route():CODE
LOWweb-pages/product-site/tests/test_official_vllm_docs.py40def test_official_record_has_reproducibility_and_scoped_evidence(suffix):CODE
LOWweb-pages/product-site/tests/test_official_vllm_docs.py58def test_official_manifest_preserves_exact_files_and_http_scope():CODE
LOWweb-pages/product-site/tests/test_official_vllm_docs.py80def test_portable_commands_match_both_sources_and_parse_without_execution():CODE
LOW⚡web-pages/product-site/tests/test_selector.py31def test_recommendation_matrix(workload, hardware, priority, expected, entries):CODE
LOW⚡web-pages/product-site/tests/test_selector.py40def test_unknown_selector_value_is_rejected(entries):CODE
LOW⚡web-pages/product-site/tests/test_selector.py45def test_registry_order_does_not_change_tie_break(entries):CODE
LOWweb-pages/product-site/tests/test_release_scripts.py78def test_deploy_keeps_releases_and_switches_symlink(tmp_path):CODE
LOWweb-pages/product-site/tests/test_release_scripts.py95def test_rollback_switches_to_retained_release(tmp_path):CODE
LOWweb-pages/product-site/tests/test_release_scripts.py111def test_invalid_release_id_is_rejected_before_copy(tmp_path):CODE
LOWweb-pages/product-site/tests/test_release_scripts.py125def test_conversion_map_contains_only_fixed_redirects():CODE
LOWweb-pages/product-site/tests/test_release_scripts.py139def test_nginx_contract_uses_current_release_and_hardening():CODE
LOWweb-pages/product-site/tests/test_release_scripts.py151def test_monitoring_docs_use_actual_open_log_inodes():CODE
LOWweb-pages/product-site/tests/test_release_scripts.py163def test_monitoring_metadata_snippet_requires_explicit_numeric_master_pid():CODE
LOWweb-pages/product-site/tests/test_release_scripts.py188def test_monitoring_docs_distinguish_static_checks_from_backend_health():CODE
LOWweb-pages/product-site/tests/test_documentation.py25def test_speech_to_speech_ecosystem_entry_links_to_bounded_source_recipe(output, prefix):CODE
LOWweb-pages/product-site/tests/test_documentation.py55def test_bilingual_docs_have_navigation_and_real_source_content(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py68def test_official_native_record_has_local_language_links_and_search(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py90def test_gradio_uses_owned_sources_and_internal_discovery(output, language, prefix, suffix, peer):CODE
LOWweb-pages/product-site/tests/test_documentation.py115def test_kubernetes_generated_commands_preserve_root_context_and_internal_security(output, prefix):CODE
LOWweb-pages/product-site/tests/test_documentation.py126def test_deployment_limitations_use_short_heading_and_preserve_full_body(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py143def test_search_index_is_bilingual_and_links_to_emitted_pages(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py155def test_legacy_articles_and_new_pages_share_versioned_design(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py167def test_documentation_links_are_mapped_to_local_pages_or_repository(output):CODE
LOWweb-pages/product-site/tests/test_documentation.py175def test_model_selection_renders_distinct_local_native_and_split_links(output, prefix):CODE
LOW⚡web-pages/product-site/tests/test_documentation.py186def test_source_fragment_links_keep_unicode_and_punctuation_boundaries(output):CODE
LOW⚡web-pages/product-site/tests/test_documentation.py195def test_section_based_quickstarts_are_searchable(output):CODE
1306 more matches not shown…
Over-Commented Block967 hits · 933 pts
SeverityFileLineSnippetContext
LOW…g/inverse_text_normalization/ja/verbalizers/ordinal.py21 pynutil.delete("integer:")COMMENT
LOW…g/inverse_text_normalization/ja/verbalizers/ordinal.py41 # # | convert_thirteenCOMMENT
LOW…ocessing/text_normalization/ru/taggers/number_names.py1# Copyright 2017 Google Inc.COMMENT
LOWweb-pages/vue.config.js121 // .rule('vue')COMMENT
LOWruntime/websocket/bin/funasr-wss-client.cpp1/**COMMENT
LOWruntime/websocket/bin/funasr-wss-client.cpp21#include <fstream>COMMENT
LOWruntime/websocket/bin/websocket-server-2pass.h1/**COMMENT
LOWruntime/websocket/bin/websocket-server-2pass.h21#include <utility>COMMENT
LOWruntime/websocket/bin/funasr-wss-client-2pass.cpp1/**COMMENT
LOWruntime/websocket/bin/funasr-wss-client-2pass.cpp21COMMENT
LOWruntime/websocket/bin/websocket-server-2pass.cpp1/**COMMENT
LOWruntime/websocket/bin/websocket-server.h1/**COMMENT
LOWruntime/websocket/bin/websocket-server.h21#include <utility>COMMENT
LOWruntime/tools/utils/parse_options.sh1#!/usr/bin/env bashCOMMENT
LOWruntime/tools/fst/make_lexicon_fst.pl1#!/usr/bin/perl -wCOMMENT
LOWruntime/tools/fst/s2eps.pl1#!/usr/bin/perlCOMMENT
LOWruntime/tools/fst/add_lex_disambig.pl1#!/usr/bin/perlCOMMENT
LOWruntime/tools/fst/compile_dict_token.sh1#!/bin/bashCOMMENT
LOWruntime/tools/fst/parse_options.sh1#!/bin/bashCOMMENT
LOWruntime/tools/fst/eps2disambig.pl1#!/usr/bin/perlCOMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-online-asr.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-online-punc.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-offline.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-offline.cpp181 // For debug:beginCOMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-offline-vad.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-offline-punc.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-online-vad.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-2pass-rtf.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-2pass.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-offline-rtf.cpp1/**COMMENT
LOWruntime/onnxruntime/bin/funasr-onnx-online-rtf.cpp1/**COMMENT
LOWruntime/onnxruntime/include/com-define.h1#pragma once COMMENT
LOWruntime/onnxruntime/include/com-define.h21#define AM_SCALE "am-scale"COMMENT
LOWruntime/onnxruntime/include/com-define.h41COMMENT
LOWruntime/onnxruntime/include/com-define.h61#define BATCHSIZE "batch-size"COMMENT
LOWruntime/onnxruntime/include/com-define.h81#define QUANT_ENCODER_NAME "model_quant.onnx"COMMENT
LOWruntime/onnxruntime/include/com-define.h101#ifndef VAD_LFR_MCOMMENT
LOWruntime/onnxruntime/include/com-define.h121COMMENT
LOWruntime/onnxruntime/include/funasrruntime.h1#pragma onceCOMMENT
LOWruntime/onnxruntime/include/tpass-stream.h1#ifndef TPASS_STREAM_HCOMMENT
LOWruntime/onnxruntime/include/offline-stream.h1#ifndef OFFLINE_STREAM_HCOMMENT
LOWruntime/onnxruntime/include/tclap/ZshCompletionOutput.h21 * COMMENT
LOWruntime/onnxruntime/include/tclap/Arg.h21 * DEALINGS IN THE SOFTWARE.COMMENT
LOWruntime/onnxruntime/include/tclap/StdOutput.h21 * COMMENT
LOWruntime/onnxruntime/include/tclap/ArgTraits.h81template<typename T>COMMENT
LOWruntime/onnxruntime/include/tclap/CmdLine.h21 *COMMENT
LOWruntime/onnxruntime/include/tclap/DocBookOutput.h21 * COMMENT
LOWruntime/onnxruntime/include/tclap/StandardTraits.h21 *COMMENT
LOW…tive-fbank/kaldi-native-fbank/csrc/feature-functions.h21#define KALDI_NATIVE_FBANK_CSRC_FEATURE_FUNCTIONS_H_COMMENT
LOW…-native-fbank/kaldi-native-fbank/csrc/online-feature.h21#ifndef KALDI_NATIVE_FBANK_CSRC_ONLINE_FEATURE_H_COMMENT
LOW…-native-fbank/kaldi-native-fbank/csrc/online-feature.h81COMMENT
LOW…-native-fbank/kaldi-native-fbank/csrc/online-feature.h101 // more waveform. This will help flush out the last frame or twoCOMMENT
LOW…party/kaldi-native-fbank/kaldi-native-fbank/csrc/log.h281}COMMENT
LOW…party/kaldi-native-fbank/kaldi-native-fbank/csrc/log.h301 : ::knf::Voidifier() & \COMMENT
LOW…party/kaldi-native-fbank/kaldi-native-fbank/csrc/log.h321#define _KNF_CHECK_OP(x, y, op) \COMMENT
LOW…party/kaldi-native-fbank/kaldi-native-fbank/csrc/log.h361COMMENT
LOW…rty/kaldi-native-fbank/kaldi-native-fbank/csrc/fftsg.c441#ifdef USE_CDFT_PTHREADSCOMMENT
LOW…rty/kaldi-native-fbank/kaldi-native-fbank/csrc/fftsg.c461 fprintf(stderr, "cdft thread error\n"); \COMMENT
LOW…-native-fbank/kaldi-native-fbank/csrc/feature-window.h1// kaldi-native-fbank/csrc/feature-window.hCOMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh1#! /bin/shCOMMENT
907 more matches not shown…
Unused Imports798 hits · 794 pts
SeverityFileLineSnippetContext
LOW…t_processing/inverse_text_normalization/vi/__init__.py1CODE
LOW…t_processing/inverse_text_normalization/vi/__init__.py4CODE
LOW…t_processing/inverse_text_normalization/vi/__init__.py5CODE
LOW…t_processing/inverse_text_normalization/ja/__init__.py1CODE
LOW…t_processing/inverse_text_normalization/ja/__init__.py4CODE
LOW…t_processing/inverse_text_normalization/ja/__init__.py5CODE
LOW…ssing/inverse_text_normalization/ja/taggers/measure.py3CODE
LOW…ssing/inverse_text_normalization/ja/taggers/measure.py3CODE
LOW…sing/inverse_text_normalization/ja/taggers/fraction.py2CODE
LOW…sing/inverse_text_normalization/ja/taggers/fraction.py2CODE
LOW…ing/inverse_text_normalization/ja/taggers/telephone.py3CODE
LOW…text_normalization/ja/taggers/tokenize_and_classify.py18CODE
LOW…/inverse_text_normalization/ja/taggers/preprocessor.py4CODE
LOW…sing/inverse_text_normalization/ja/taggers/cardinal.py8CODE
LOW…sing/inverse_text_normalization/ja/taggers/cardinal.py8CODE
LOW…sing/inverse_text_normalization/ja/taggers/cardinal.py8CODE
LOW…sing/inverse_text_normalization/ja/taggers/cardinal.py8CODE
LOW…sing/inverse_text_normalization/ja/taggers/cardinal.py18CODE
LOW…ocessing/inverse_text_normalization/ja/taggers/word.py1CODE
LOW…ocessing/inverse_text_normalization/ja/taggers/word.py2CODE
LOW…/inverse_text_normalization/ja/verbalizers/fraction.py2CODE
LOW…/inverse_text_normalization/ja/verbalizers/fraction.py2CODE
LOW…g/inverse_text_normalization/ja/verbalizers/ordinal.py2CODE
LOW…e_text_normalization/ja/verbalizers/verbalize_final.py4CODE
LOW…/inverse_text_normalization/ja/verbalizers/cardinal.py4CODE
LOW…t_processing/inverse_text_normalization/tl/__init__.py1CODE
LOW…t_processing/inverse_text_normalization/tl/__init__.py4CODE
LOW…t_processing/inverse_text_normalization/tl/__init__.py5CODE
LOW…sing/inverse_text_normalization/tl/taggers/cardinal.py3CODE
LOW…sing/inverse_text_normalization/tl/taggers/cardinal.py3CODE
LOW…t_processing/inverse_text_normalization/pt/__init__.py1CODE
LOW…t_processing/inverse_text_normalization/pt/__init__.py4CODE
LOW…t_processing/inverse_text_normalization/pt/__init__.py5CODE
LOW…t_processing/inverse_text_normalization/zh/__init__.py1CODE
LOW…t_processing/inverse_text_normalization/zh/__init__.py4CODE
LOW…t_processing/inverse_text_normalization/zh/__init__.py5CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py2CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py3CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py4CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py4CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py4CODE
LOW…ocessing/inverse_text_normalization/zh/taggers/time.py4CODE
LOW…ssing/inverse_text_normalization/zh/taggers/measure.py3CODE
LOW…ssing/inverse_text_normalization/zh/taggers/measure.py3CODE
LOW…ssing/inverse_text_normalization/zh/taggers/measure.py3CODE
LOW…ssing/inverse_text_normalization/zh/taggers/measure.py3CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…sing/inverse_text_normalization/zh/taggers/fraction.py1CODE
LOW…ssing/inverse_text_normalization/zh/taggers/decimal.py3CODE
LOW…ssing/inverse_text_normalization/zh/taggers/decimal.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
LOW…cessing/inverse_text_normalization/zh/taggers/money.py3CODE
738 more matches not shown…
Deep Nesting346 hits · 336 pts
SeverityFileLineSnippetContext
LOW…essing/inverse_text_normalization/inverse_normalize.py24CODE
LOW…processing/inverse_text_normalization/export_models.py26CODE
LOW…_processing/text_normalization/normalize_with_audio.py94CODE
LOW…_processing/text_normalization/normalize_with_audio.py181CODE
LOWfun_text_processing/text_normalization/normalize.py48CODE
LOWfun_text_processing/text_normalization/normalize.py359CODE
LOWfun_text_processing/text_normalization/export_models.py33CODE
LOW…ext_processing/text_normalization/data_loader_utils.py34CODE
LOW…ext_processing/text_normalization/data_loader_utils.py273CODE
LOWfun_text_processing/text_normalization/token_parser.py67CODE
LOWweb-pages/product-site/build.py190CODE
LOWweb-pages/product-site/registry.py87CODE
LOWweb-pages/product-site/export_docs.py50CODE
LOWweb-pages/product-site/export_docs.py75CODE
LOWweb-pages/product-site/tests/test_documentation.py242CODE
LOW…b-pages/product-site/tests/test_http_blog_contracts.py63CODE
LOW…b-pages/product-site/tests/test_http_blog_contracts.py152CODE
LOW…b-pages/product-site/tests/test_http_blog_contracts.py188CODE
LOW…b-pages/product-site/tests/test_http_blog_contracts.py208CODE
LOW…b-pages/product-site/tests/test_http_blog_contracts.py225CODE
LOWweb-pages/product-site/tests/test_blog_editorial.py55CODE
LOWweb-pages/product-site/tests/test_legacy_doc_anchors.py36CODE
LOWweb-pages/product-site/tests/test_legacy_doc_anchors.py233CODE
LOW…s/product-site/tests/test_long_audio_blog_contracts.py152CODE
LOW…ages/product-site/tests/test_documentation_coverage.py57CODE
LOWruntime/llama.cpp/benchmarks/compute_cer.py32CODE
LOWruntime/python/websocket/funASR-Service.py167CODE
LOWruntime/python/websocket/funasr_wss_server.py342CODE
LOWruntime/python/websocket/funasr_wss_server.py402CODE
LOWruntime/python/websocket/funasr_wss_client.py128CODE
LOWruntime/python/websocket/funasr_wss_client.py194CODE
LOWruntime/python/websocket/funasr_wss_client.py328CODE
LOW…ntime/python/onnxruntime/funasr_onnx/paraformer_bin.py104CODE
LOW…ntime/python/onnxruntime/funasr_onnx/paraformer_bin.py358CODE
LOW…ython/onnxruntime/funasr_onnx/paraformer_online_bin.py130CODE
LOWruntime/python/onnxruntime/funasr_onnx/vad_bin.py95CODE
LOWruntime/python/onnxruntime/funasr_onnx/punc_bin.py28CODE
LOWruntime/python/onnxruntime/funasr_onnx/punc_bin.py97CODE
LOWruntime/python/onnxruntime/funasr_onnx/punc_bin.py195CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/e2e_vad.py501CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/e2e_vad.py577CODE
LOW…ntime/python/onnxruntime/funasr_onnx/utils/frontend.py127CODE
LOW…ntime/python/onnxruntime/funasr_onnx/utils/frontend.py187CODE
LOW…hon/onnxruntime/funasr_onnx/utils/postprocess_utils.py54CODE
LOW…hon/onnxruntime/funasr_onnx/utils/postprocess_utils.py139CODE
LOW…hon/onnxruntime/funasr_onnx/utils/postprocess_utils.py249CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/utils.py275CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/utils.py133CODE
LOWruntime/python/libtorch/funasr_torch/paraformer_bin.py91CODE
LOWruntime/python/libtorch/funasr_torch/paraformer_bin.py326CODE
LOWruntime/python/libtorch/funasr_torch/utils/frontend.py124CODE
LOW…ython/libtorch/funasr_torch/utils/postprocess_utils.py52CODE
LOW…ython/libtorch/funasr_torch/utils/postprocess_utils.py137CODE
LOW…time/python/libtorch/funasr_torch/utils/compute_wer.py92CODE
LOWruntime/python/libtorch/funasr_torch/utils/utils.py76CODE
LOWruntime/python/utils/compute_wer.py92CODE
LOW…model_repo_paraformer_large_offline/scoring/1/model.py58CODE
LOW…_paraformer_large_offline/feature_extractor/1/model.py145CODE
LOW…el_repo_sense_voice_small/feature_extractor/1/model.py145CODE
LOW…del_repo_paraformer_large_online/cif_search/1/model.py153CODE
286 more matches not shown…
Decorative Section Separators91 hits · 220 pts
SeverityFileLineSnippetContext
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh169# ----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh178# --------------------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh480# -------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh529# ---------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh575# ----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh598# --------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh622# ------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh646# ------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh679# -------------------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh691# --------------------------------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh712# ----------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh731# --------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh740# ------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh776# -----------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh789# -----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh801# -----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh812# ---------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh838# ---------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh886# -------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh924# ------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1014# --------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1030# --------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1095# --------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1147# -------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1177# ---------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1207# -----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1232# ------------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1261# ----------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1282# -------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1295# -----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1308# ----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1333# -----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1350# ---------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1483# -----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1495# ---------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1512# ------------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1523# ---------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1625# ---------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1648# --------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1672# ---------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1773# ------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1804# ----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1832# ------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1845# ------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1880# -----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1906# ----------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1919# ------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1939# ------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1984# ----------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2004# -------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2083# ---------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2100 # ---------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2122# -------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2134# -----------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2154# -------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2175# -----------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2218# ------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2255# -----------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2306# ---------------------------------COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2404# ---------------------------------COMMENT
31 more matches not shown…
Excessive Try-Catch Wrapping173 hits · 194 pts
SeverityFileLineSnippetContext
LOWweb-pages/product-site/build.py472 except Exception:CODE
LOWruntime/llama.cpp/server/funasr_gguf_server.py141 except Exception as exc:CODE
LOWruntime/llama.cpp/server/funasr_gguf_server.py164 except Exception as exc:CODE
LOWruntime/python/websocket/funASR-Service.py79 except Exception as e:CODE
LOWruntime/python/websocket/funASR-Service.py140 except Exception as e:CODE
MEDIUMruntime/python/websocket/funasr_wss_server.py151def _safe_int(v, default):CODE
LOW⚡runtime/python/websocket/funasr_wss_server.py644 except Exception:CODE
LOW⚡runtime/python/websocket/funasr_wss_server.py647 except Exception as e:CODE
LOW⚡runtime/python/websocket/funasr_wss_server.py651 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_server.py22 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_server.py137 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_server.py154 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_server.py170 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_server.py229 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py393 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py423 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py429 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py468 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py539 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py563 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py574 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py609 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py616 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py743 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py765 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_server.py864 except Exception:CODE
LOWruntime/python/websocket/funasr_client_api.py85 except Exception as e:CODE
LOWruntime/python/websocket/funasr_client_api.py99 except Exception as e:CODE
MEDIUMruntime/python/websocket/funasr_client_api.py90def thread_rec_msg(self):CODE
LOWruntime/python/websocket/funasr_wss_client.py119 except Exception:CODE
LOWruntime/python/websocket/funasr_wss_client.py486 except Exception as e:CODE
LOWruntime/python/websocket/funasr_wss_client.py494 except Exception:CODE
MEDIUMruntime/python/websocket/funasr_wss_client.py115def close(self):CODE
LOW…ntime/python/onnxruntime/funasr_onnx/paraformer_bin.py58 except Exception as e:CODE
LOW…ntime/python/onnxruntime/funasr_onnx/paraformer_bin.py191 except Exception as e:CODE
LOW…ntime/python/onnxruntime/funasr_onnx/paraformer_bin.py299 except Exception as e:CODE
LOW…ython/onnxruntime/funasr_onnx/paraformer_online_bin.py48 except Exception as e:CODE
LOW…ython/onnxruntime/funasr_onnx/paraformer_online_bin.py225 except Exception as e:CODE
LOWruntime/python/onnxruntime/funasr_onnx/vad_bin.py48 except Exception as e:CODE
LOWruntime/python/onnxruntime/funasr_onnx/vad_bin.py159 except Exception as e:CODE
LOWruntime/python/onnxruntime/funasr_onnx/vad_bin.py239 except Exception as e:CODE
LOW…ntime/python/onnxruntime/funasr_onnx/sensevoice_bin.py55 except Exception as e:CODE
LOW…ntime/python/onnxruntime/funasr_onnx/sensevoice_bin.py213 except Exception as e:CODE
LOWruntime/python/onnxruntime/funasr_onnx/punc_bin.py48 except Exception as e:CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/utils.py230 except Exception as e:CODE
LOWruntime/python/libtorch/funasr_torch/paraformer_bin.py46 except Exception as e:CODE
LOWruntime/python/libtorch/funasr_torch/paraformer_bin.py273 except Exception as e:CODE
LOWruntime/python/libtorch/funasr_torch/sensevoice_bin.py52 except Exception as e:CODE
LOWruntime/python/http/server.py105 except Exception as e:CODE
LOWruntime/triton_gpu/scripts/build_sensevoice_tensorrt.py166 except Exception:CODE
MEDIUMruntime/triton_gpu/scripts/build_sensevoice_tensorrt.py128def inspect_onnx(onnx_path):CODE
LOWruntime/funasr_api/funasr_stream.py37 except Exception as e:CODE
LOWruntime/funasr_api/funasr_stream.py67 except Exception as e:CODE
MEDIUMruntime/funasr_api/funasr_stream.py57def wait_for_end(self):CODE
LOWruntime/funasr_api/funasr_api.py46 except Exception as e:CODE
LOW⚡runtime/funasr_api/funasr_api.py70 except Exception as e:CODE
LOW⚡runtime/funasr_api/funasr_api.py80 except Exception as e:CODE
LOW⚡runtime/funasr_api/funasr_api.py89 except Exception as e:CODE
MEDIUMruntime/funasr_api/funasr_api.py58def new_core(self,msg_callback=None):CODE
MEDIUMruntime/funasr_api/funasr_api.py75def rec_buf(self,audio_buf,ffmpeg_decode=False):CODE
113 more matches not shown…
AI Structural Patterns167 hits · 164 pts
SeverityFileLineSnippetContext
LOWfun_text_processing/text_normalization/normalize.py469CODE
LOW…t_processing/text_normalization/de/taggers/cardinal.py49CODE
LOWruntime/python/onnxruntime/funasr_server_http.py18CODE
LOWruntime/python/onnxruntime/funasr_onnx/utils/e2e_vad.py40CODE
LOW…ntime/python/onnxruntime/funasr_onnx/utils/frontend.py18CODE
LOWruntime/python/libtorch/funasr_torch/utils/frontend.py16CODE
LOW…_paraformer_large_offline/feature_extractor/1/model.py100CODE
LOW…el_repo_sense_voice_small/feature_extractor/1/model.py100CODE
LOWtests/test_torchaudio_optional.py49CODE
LOWtests/test_websocket_file_finalization.py62CODE
LOWtests/test_websocket_file_finalization.py153CODE
LOW…ples/industrial_data_pretraining/fun_asr_nano/model.py34CODE
LOW…ples/industrial_data_pretraining/fun_asr_nano/model.py484CODE
LOW…ndustrial_data_pretraining/fun_asr_nano/tools/cn_tn.py697CODE
LOWexamples/aishell/e_paraformer/utils/textnorm_zh.py363CODE
LOWexamples/aishell/paraformer/utils/textnorm_zh.py363CODE
LOWfunasr/auto/auto_model.py824CODE
LOWfunasr/frontends/wav_frontend.py96CODE
LOWfunasr/frontends/wav_frontend.py269CODE
LOWfunasr/frontends/default.py29CODE
LOWfunasr/frontends/default.py184CODE
LOWfunasr/frontends/utils/dnn_beamformer.py26CODE
LOWfunasr/frontends/utils/dnn_wpe.py12CODE
LOWfunasr/frontends/utils/frontend.py16CODE
LOWfunasr/frontends/utils/feature_transform.py14CODE
LOWfunasr/datasets/audio_datasets/espnet_samplers.py42CODE
LOWfunasr/datasets/audio_datasets/index_ds.py156CODE
LOWfunasr/datasets/audio_datasets/samplers.py398CODE
LOWfunasr/datasets/openai_datasets/index_ds.py110CODE
LOWfunasr/datasets/fun_asr_datasets/datasets.py549CODE
LOWfunasr/utils/fbank.py51CODE
LOWfunasr/utils/speaker_utils.py233CODE
LOWfunasr/models/emotion2vec/model.py121CODE
LOWfunasr/models/emotion2vec/model.py232CODE
LOWfunasr/models/emotion2vec/fairseq_modules.py375CODE
LOWfunasr/models/emotion2vec/modules.py169CODE
LOWfunasr/models/emotion2vec/modules.py248CODE
LOWfunasr/models/e_paraformer/decoder.py241CODE
LOWfunasr/models/e_paraformer/decoder.py1137CODE
LOWfunasr/models/e_paraformer/model.py48CODE
LOWfunasr/models/eres2net/eres2net.py122CODE
LOWfunasr/models/eres2net/eres2net.py204CODE
LOWfunasr/models/eres2net/eres2net.py208CODE
LOWfunasr/models/eres2net/eres2net.py392CODE
LOWfunasr/models/eres2net/eres2netv2.py102CODE
LOWfunasr/models/eres2net/eres2netv2.py182CODE
LOWfunasr/models/eres2net/eres2netv2.py186CODE
LOWfunasr/models/eres2net/model.py33CODE
LOWfunasr/models/eres2net/eres2net_aug.py122CODE
LOWfunasr/models/eres2net/eres2net_aug.py205CODE
LOWfunasr/models/eres2net/eres2net_aug.py209CODE
LOWfunasr/models/monotonic_aligner/model.py35CODE
LOWfunasr/models/rwkv_bat/rwkv_encoder.py36CODE
LOWfunasr/models/fsmn_vad_streaming/encoder.py35CODE
LOWfunasr/models/fsmn_vad_streaming/encoder.py60CODE
LOWfunasr/models/fsmn_vad_streaming/encoder.py84CODE
LOWfunasr/models/fsmn_vad_streaming/model.py78CODE
LOWfunasr/models/specaug/specaug.py31CODE
LOWfunasr/models/specaug/specaug.py131CODE
LOWfunasr/models/paraformer_v2_community/decoder.py241CODE
107 more matches not shown…
Empty Error Handlers24 hits · 120 pts
SeverityFileLineSnippetContext
HIGHruntime/llama.cpp/server/funasr_gguf_server.py171except FileNotFoundError:CODE
HIGHruntime/llama.cpp/benchmarks/compute_cer.py49except ValueError: passCODE
HIGHruntime/python/websocket/funasr_wss_server.py137except Exception:CODE
HIGHruntime/python/websocket/funasr_wss_server.py864except Exception:CODE
HIGHruntime/python/websocket/funasr_wss_server.py644except Exception:CODE
HIGHruntime/python/websocket/funasr_wss_server.py651except Exception:CODE
HIGHruntime/python/websocket/funasr_wss_client.py119except Exception:CODE
HIGHruntime/python/websocket/funasr_wss_client.py494except Exception:CODE
HIGHruntime/triton_gpu/scripts/build_sensevoice_tensorrt.py169except FileNotFoundError:CODE
HIGHtests/test_python_api_docs_contract.py35except (ValueError, TypeError):CODE
HIGH…ustrial_data_pretraining/fun_asr_nano/client_python.py141except (KeyboardInterrupt, asyncio.CancelledError):CODE
HIGH…ndustrial_data_pretraining/fun_asr_nano/client_test.py86except asyncio.TimeoutError:CODE
HIGH…ndustrial_data_pretraining/fun_asr_nano/tools/utils.py55except:CODE
HIGH…trial_data_pretraining/qwen3_asr/serve_qwen3_asr_ws.py107except websockets.exceptions.ConnectionClosed:CODE
HIGHexamples/migration/benchmark_funasr.py99except Exception:CODE
HIGHscripts/collect_growth_metrics.py358except OSError:CODE
HIGHfunasr/cli.py225except (ImportError, RuntimeError, ValueError):CODE
HIGHfunasr/auto/auto_model.py447except:CODE
HIGHfunasr/auto/auto_model.py573except:CODE
HIGHfunasr/utils/load_utils.py26except:CODE
HIGHfunasr/models/ct_transformer/model.py23except:CODE
HIGHfunasr/models/moss_transcribe_diarize/model.py594except (RuntimeError, TypeError, ValueError):CODE
HIGHfunasr/models/fun_asr_nano/tools/utils.py79except Exception:CODE
HIGHfunasr/models/mossformer/mossformer_encoder.py7except:CODE
Cross-Language Confusion17 hits · 112 pts
SeverityFileLineSnippetContext
HIGHweb-pages/product-site/tests/test_registry.py342 command.startswith('cd runtime/triton_gpu && tritonserver')CODE
HIGHweb-pages/product-site/tests/test_output.py195 assert 'cd FunASR/runtime/python/websocket && python funasr_wss_server.py' in commandsCODE
HIGH⚡runtime/llama.cpp/tests/test_release_workflow.py96 assert "if: matrix.vulkan && runner.os == 'Linux'" in workflowCODE
HIGH⚡tests/test_generated_api_docs.py145 addEventListener() {}, closest() {return null;},CODE
HIGH⚡tests/test_generated_api_docs.py155 querySelector(selector) {return selector === '.skip-link' ? element('skip-link') : null;},CODE
HIGH⚡tests/test_generated_api_docs.py156 getElementById(id) {return {e1: detail, 'api-welcome': welcomeNode, 'api-search': searchNode, 'search-empty': empty}[iCODE
HIGHtests/test_generated_api_docs.py178assert.equal(link.getAttribute('aria-current'), undefined);CODE
HIGHtests/test_generated_api_docs.py255 const check = (condition, label) => {if (!condition) errors.push(label);};CODE
HIGHtests/test_generated_api_docs.py279 check(box.left >= 0 && box.right <= innerWidth + 1, selector + ' viewport bounds');CODE
HIGH⚡scripts/gen_api_docs.py335let expandedBeforeSearch = null;CODE
HIGH⚡scripts/gen_api_docs.py343 const target = entries.find(entry => entry.id === id) || null;CODE
HIGH⚡scripts/gen_api_docs.py347 if (target && link.dataset.target === target.id) {{CODE
HIGHscripts/gen_api_docs.py359 if (focus && target) {{CODE
HIGH⚡scripts/gen_api_docs.py376 expandedBeforeSearch = null;CODE
HIGH⚡scripts/gen_api_docs.py378 document.getElementById('search-empty').hidden = !q || entryLinks.some(link => !link.hidden);CODE
HIGH⚡scripts/gen_api_docs.py385 if (!event.ctrlKey && !event.metaKey && !event.shiftKey && !event.altKey && event.button === 0) {{CODE
HIGH⚡scripts/gen_api_docs.py391 if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey || event.button !== 0) return;CODE
Hallucination Indicators10 hits · 100 pts
SeverityFileLineSnippetContext
CRITICALweb-pages/public/index.js3(Xt={}).read=function(t,e,r,n,i){var o,a,s=8*i-n-1,f=(1<<s)-1,u=f>>1,h=-7,c=r?i-1:0,d=r?-1:1,l=t[e+c];for(c+=d,o=l&(1<<-CODE
CRITICAL…b-pages/public/static/liveplayer/liveplayer-lib.min.js1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("gCODE
CRITICALweb-pages/product-site/legacy/index.js3(Xt={}).read=function(t,e,r,n,i){var o,a,s=8*i-n-1,f=(1<<s)-1,u=f>>1,h=-7,c=r?i-1:0,d=r?-1:1,l=t[e+c];for(c+=d,o=l&(1<<-CODE
CRITICAL…ct-site/legacy/static/liveplayer/liveplayer-lib.min.js1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("global/window"),require("gCODE
CRITICALfunasr/models/llm_asr/model.py228 inputs_embeds = self.llm.model.model.model.embed_tokens(input_ids)CODE
CRITICALfunasr/models/llm_asr/model.py353 inputs_embeds = self.llm.model.model.model.embed_tokens(prompt_ids)CODE
CRITICALfunasr/models/llm_asr_nar/model.py223 inputs_embeds = self.llm.model.model.model.embed_tokens(input_ids)CODE
CRITICALfunasr/models/llm_asr_nar/model.py367 inputs_embeds = self.llm.model.model.model.embed_tokens(prompt_ids)CODE
CRITICALfunasr/models/llm_asr_nar/model.py642 inputs_embeds = self.llm.model.model.model.embed_tokens(input_ids)CODE
CRITICALfunasr/models/llm_asr_nar/model.py841 inputs_embeds = self.llm.model.model.model.embed_tokens(prompt_ids)CODE
Docstring Block Structure12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…ntime/python/onnxruntime/funasr_onnx/utils/frontend.py128load cmvn file to numpy array. Args: cmvn_file (Union[str, Path]): cmvn file path. Raises: FiSTRING
HIGHfunasr/auto/auto_model.py827Run speech recognition on input audio. This is the primary user-facing method. It automatically routes to: STRING
HIGHfunasr/auto/auto_model.py1410Export model to ONNX format. Creates a deep copy of the model to isolate ONNX operator monkey-patching, STRING
HIGHfunasr/auto/auto_model_vllm.py69Check if a model can use vLLM inference. Args: model_name: The model class name from config.yaml. RetuSTRING
HIGHfunasr/tokenizer/phoneme_tokenizer.py122Extract phoneme + prosoody symbol sequence from input full-context labels. The algorithm is based on `Prosodic featSTRING
HIGHfunasr/models/transformer/utils/nets_utils.py33Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_STRING
HIGHfunasr/models/transformer/utils/nets_utils.py63Perform padding for the list of tensors. Args: xs (List): List of Tensors [(T_1, `*`), (T_2, `*`), ..., (T_STRING
HIGHfunasr/models/transformer/utils/nets_utils.py105Make mask tensor containing indices of padded part. Args: lengths (LongTensor or List): Batch of lengths (BSTRING
HIGHfunasr/models/transformer/utils/nets_utils.py222Make mask tensor containing indices of non-padded part. Args: lengths (LongTensor or List): Batch of lengthSTRING
HIGHfunasr/models/transformer/utils/nets_utils.py311Mask tensor according to length. Args: xs (Tensor): Batch of input tensor (B, `*`). lengths (LongTeSTRING
HIGHfunasr/models/transformer/utils/nets_utils.py342Change to torch.Tensor or ComplexTensor from numpy.ndarray. Args: x: Inputs. It should be one of numpy.ndarSTRING
HIGHfunasr/models/qwen3_asr/model.py210Run Qwen3-ASR speech recognition. Args: data_in: Audio input. Accepts: - list of fiSTRING
Modern AI Meta-Vocabulary13 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMdocs/community_growth_20k.md267| `crewAIInc/crewAI#5983` FunASR for voice-enabled agents | Routes a 55k-star multi-agent framework toward a provider-neCODE
MEDIUMdocs/community_growth_20k.md271| `chatchat-space/Langchain-Chatchat#5479` FunASR/SenseVoice voice input | Puts FunASR in a 38k-star Chinese RAG/Agent aCODE
MEDIUM⚡docs/community_growth_20k.md303| `run-llama/llama_index#21958` FunASR endpoint reader | Puts FunASR behind a LlamaIndex reader for OpenAI-compatible trCODE
MEDIUM⚡docs/community_growth_20k.md312| `getpaseo/paseo#313` FunASR streaming STT provider | Adds a standalone FunASR/SenseVoice server and streaming dictatioCODE
MEDIUM⚡docs/community_growth_20k.md314| `getpaseo/paseo#2044` SenseVoice, Paraformer, and multilingual Kokoro local speech models | Makes Chinese and multilinCODE
MEDIUM⚡docs/community_growth_20k.md315| `infiniflow/ragflow#16473` FunASR / SenseVoice STT provider | Adds FunASR to a high-star RAG workflow product where loCODE
MEDIUM⚡docs/community_growth_20k.md316| `infiniflow/ragflow#16844` Fun-ASR-Flash Tongyi-Qianwen provider | Places the hosted Fun-ASR-Flash model in an 84k-staCODE
MEDIUM⚡docs/community_growth_20k.md323| `omnigent-ai/omnigent#2093` server-side streaming dictation | Opens a model-agnostic dictation backend in a multi-agenCODE
MEDIUMexamples/openai_api/WORKFLOWS.md191## Production guardrailsCOMMENT
MEDIUMfunasr/models/sense_voice/whisper_lib/transcribe.py396 # skip silence before possible hallucinationsCOMMENT
MEDIUM⚡funasr/models/sense_voice/whisper_lib/transcribe.py408 # if first segment might be a hallucination, skip leading silenceCOMMENT
MEDIUM⚡funasr/models/sense_voice/whisper_lib/transcribe.py416 # skip silence before any possible hallucination that is surroundedCOMMENT
MEDIUM⚡funasr/models/sense_voice/whisper_lib/transcribe.py417 # by silence or more hallucinationsCOMMENT
Redundant / Tautological Comments24 hits · 31 pts
SeverityFileLineSnippetContext
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh623# Set func_arith_result to the result of evaluating TERMs.COMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh647# Set func_basename_result to FILE with everything up to and includingCOMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh813# Set func_len_result to the length of STRING. STRING may notCOMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh1031# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.COMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh3911 # Check if any of the arguments is a wrapper script.COMMENT
LOWruntime/onnxruntime/third_party/openfst/ltmain.sh9884 # Loop over the list of objects to be linked.COMMENT
LOW…es/industrial_data_pretraining/fsmn_kws_mt/finetune.sh6# Set bash to 'debug' mode, it will exit on :COMMENT
LOW…strial_data_pretraining/sanm_kws_streaming/finetune.sh6# Set bash to 'debug' mode, it will exit on :COMMENT
LOW…mples/industrial_data_pretraining/sanm_kws/finetune.sh3# Set bash to 'debug' mode, it will exit on :COMMENT
LOW…/industrial_data_pretraining/fun_asr_nano/demo_vllm.py140 # Print resultsCOMMENT
LOW…mples/industrial_data_pretraining/fsmn_kws/finetune.sh6# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/e_paraformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/transformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/branchformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/conformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/e_branchformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/aishell/paraformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWexamples/wenetspeech/conformer/run.sh34# Set bash to 'debug' mode, it will exit on :COMMENT
LOWfunasr/bin/train.py79 # Check if we are using DDP or FSDPCOMMENT
LOWfunasr/auto/auto_model_vllm.py122 # Check if already preparedCOMMENT
LOWfunasr/utils/misc.py148 # Check if the provided path existsCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm.py82 # Check if already preparedCOMMENT
LOWfunasr/models/lora/layers.py138 fan_in_fan_out: bool = False, # Set this to True if the layer to replace stores weight like (fan_in, fan_out)CODE
LOWfunasr/train_utils/average_nbest_models.py90 # Check if we have any state_dicts to averageCOMMENT
Self-Referential Comments15 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh1402# This file is a library for parsing options in your shell scripts alongCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2502# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2512# This function implements the same check as func_lalib_p withoutCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2535# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2545# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2570# This function is only a basic sanity check; it will hardly flush outCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh2710# Create a libtool object file (analogous to a ".la" file),COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh7477 # Create the object directory.COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh10168 # Create the old-style object.COMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh10188 # Create an invalid libtool object if no PIC, so that we don'tCOMMENT
MEDIUMfunasr/frontends/eend_ola_feature.py4# This module is for computing audio featuresCOMMENT
MEDIUMfunasr/datasets/audio_datasets/samplers.py569 # Create an instance of the DistributedSamplerCOMMENT
MEDIUMfunasr/models/eend/utils/feature.py4# This module is for computing audio featuresCOMMENT
MEDIUMfunasr/models/sond/encoder/ecapa_tdnn_encoder.py457 """This class implements an attentive statistic pooling layer for each channel.STRING
MEDIUMfunasr/models/mossformer/mossformer_encoder.py303 """This class implements the transformer encoder.STRING
Fake / Example Data19 hits · 25 pts
SeverityFileLineSnippetContext
LOW…s/public/static/liveplayer/liveplayer-component.min.js1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amCODE
LOW…e/legacy/static/liveplayer/liveplayer-component.min.js1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amCODE
LOWtests/test_trainer_ds_unvalidated_ckpt.py34 f.write("placeholder")CODE
LOW⚡…ples/industrial_data_pretraining/fun_asr_nano/model.py435 fake_token = [0] * fake_token_len_iCODE
LOW⚡…ples/industrial_data_pretraining/fun_asr_nano/model.py437 source_ids += fake_tokenCODE
LOW⚡…ples/industrial_data_pretraining/fun_asr_nano/model.py438 fbank_mask_i += [1] * len(fake_token)CODE
LOWexamples/langchain/README.md47 ("placeholder", "{agent_scratchpad}"),CODE
LOWexamples/mcp_server/server.json30 "placeholder": "/path/to/audio"CODE
LOW⚡funasr/datasets/openai_datasets/datasets.py454 fake_token = [0] * fake_token_len_iCODE
LOW⚡funasr/datasets/openai_datasets/datasets.py456 source_ids += fake_tokenCODE
LOW⚡funasr/datasets/openai_datasets/datasets.py457 fbank_mask_i += [1] * len(fake_token)CODE
LOWfunasr/datasets/fun_asr_datasets/datasets.py257 fake_token = [0] * fake_token_len_iCODE
LOWfunasr/datasets/fun_asr_datasets/datasets.py259 source_ids += fake_tokenCODE
LOW⚡funasr/models/fun_asr_nano/model.py581 fake_token = [0] * fake_token_len_iCODE
LOW⚡funasr/models/fun_asr_nano/model.py583 source_ids += fake_tokenCODE
LOW⚡funasr/models/fun_asr_nano/model.py584 fbank_mask_i += [1] * len(fake_token)CODE
LOW⚡funasr/models/llm_asr/model.py1379 fake_token = [0] * fake_token_len_iCODE
LOW⚡funasr/models/llm_asr/model.py1381 source_ids += fake_tokenCODE
LOW⚡funasr/models/llm_asr/model.py1382 fbank_mask_i += [1] * len(fake_token)CODE
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py204 # Step 1: Prepare LLM weights for vLLM (extract from model.pt if needed)COMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py207 # Step 2: Load audio components (encoder + adaptor + frontend)COMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py210 # Step 3: Initialize vLLM engineCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm.py228 # Step 4: Get tokenizer and LLM embedding layerCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py177 # Step 1: VADCOMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm_pipeline.py190 # Step 2: Slice audio by VAD segments and encodeCOMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm_pipeline.py198 # Step 3: Batch ASR via vLLMCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py247 # Step 4: Speaker embeddings (if spk_model configured)COMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py268 # Step 5: Combine resultsCOMMENT
Structural Annotation Overuse9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py204 # Step 1: Prepare LLM weights for vLLM (extract from model.pt if needed)COMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py207 # Step 2: Load audio components (encoder + adaptor + frontend)COMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm.py210 # Step 3: Initialize vLLM engineCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm.py228 # Step 4: Get tokenizer and LLM embedding layerCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py177 # Step 1: VADCOMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm_pipeline.py190 # Step 2: Slice audio by VAD segments and encodeCOMMENT
LOW⚡funasr/models/fun_asr_nano/inference_vllm_pipeline.py198 # Step 3: Batch ASR via vLLMCOMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py247 # Step 4: Speaker embeddings (if spk_model configured)COMMENT
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py268 # Step 5: Combine resultsCOMMENT
Modern Structural Boilerplate15 hits · 15 pts
SeverityFileLineSnippetContext
LOWexamples/openai_api/server.py29logger = logging.getLogger(__name__)CODE
LOW…industrial_data_pretraining/fun_asr_nano/serve_vllm.py33logger = logging.getLogger(__name__)CODE
LOWscripts/update_release_runtime_downloads.py347def update_release(repository: str, python_tag: str, runtime_tag: str | None) -> None:CODE
LOWfunasr/__init__.py107__all__ = ["AutoModel", "AutoFrontend", "__version__", "get_import_errors", "get_import_error_tracebacks"]CODE
LOWfunasr/bin/realtime_ws.py38logger = logging.getLogger(__name__)CODE
LOWfunasr/auto/auto_model_vllm.py51logger = logging.getLogger(__name__)CODE
LOWfunasr/utils/amp.py211__all__ = ["autocast", "GradScaler", "resolve_amp_device_type"]CODE
LOWfunasr/models/emotion2vec/model.py24logger = logging.getLogger(__name__)CODE
LOWfunasr/models/emotion2vec/base.py22logger = logging.getLogger(__name__)CODE
LOWfunasr/models/glm_asr/inference_vllm.py26logger = logging.getLogger(__name__)CODE
LOWfunasr/models/moss_transcribe_diarize/__init__.py5__all__ = ["MossTranscribeDiarize"]CODE
LOWfunasr/models/fun_asr_nano/inference_vllm.py38logger = logging.getLogger(__name__)CODE
LOWfunasr/models/fun_asr_nano/inference_vllm_pipeline.py35logger = logging.getLogger(__name__)CODE
LOWfunasr/models/fun_asr_nano/inference_vllm_streaming.py28logger = logging.getLogger(__name__)CODE
LOWfunasr/models/transducer/rnnt_decoder.py192 def set_device(self, device: torch.device) -> None:CODE
AI Slop Vocabulary6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh331# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh5227# Sed substitution that helps us do robust quoting. It backslashifiesCOMMENT
MEDIUMruntime/onnxruntime/third_party/openfst/ltmain.sh9183 # This code stresses the "libraries are programs" paradigm to itsCOMMENT
LOW…runtime/third_party/kaldi/fstext/grammar-context-fst.h107 #nonterm_bos in the phones.txt file. You can just set thisCOMMENT
LOW…runtime/third_party/kaldi/fstext/grammar-context-fst.h160 #nonterm_bos in the phones.txt file. You can just set this toCOMMENT
MEDIUMtests_models/test_glm_asr.py2"""Test GLM-ASR: robust multi-language speech recognition"""STRING
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMruntime/python/utils/split_scp.pl37# Note that you can use this script to split the utt2spk file itself,COMMENT
MEDIUMexamples/aishell/e_paraformer/utils/split_scp.pl37# Note that you can use this script to split the utt2spk file itself,COMMENT
MEDIUMexamples/aishell/paraformer/utils/split_scp.pl37# Note that you can use this script to split the utt2spk file itself,COMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…_processing/inverse_text_normalization/run_evaluate.py41 # Example usage:COMMENT
LOWfun_text_processing/text_normalization/run_evaluate.py45 # Example usage:COMMENT
LOW…me/onnxruntime/third_party/glog/src/glog/raw_logging.h60// Usage example:COMMENT
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_api_signatures.py35def helper(value=explode(), *, required, optional=None):CODE
LOWtests/test_generated_api_docs.py23def helper(value):CODE
LOWexamples/mcp_server/funasr_mcp.py110def handle_request(request):CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWfunasr/models/emotion2vec/modules.py76 # TODO: consider using padding_mask as inputCOMMENT
LOWfunasr/models/sond/encoder/resnet34_encoder.py223# TODO: implement kernel_regularizer in torch with munal loss addition or weigth_decay in the optimizerCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMfunasr/models/sense_voice/model.py1131CODE