Repository Analysis

RunanywhereAI/runanywhere-sdks

Production ready toolkit to run AI locally

9.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of RunanywhereAI/runanywhere-sdks, a C++ project with 10,280 GitHub stars. SynthScan v2.0 examined 648,578 lines of code across 2574 source files, recording 3644 pattern matches distributed across 19 syntactic categories. The overall adjusted score of 9.4 places this repository in the Low AI signal band.

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

9.4
Adjusted Score
9.4
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.3K
Stars
C++
Language
648.6K
Lines of Code
2.6K
Files
3.6K
Pattern Hits
2026-08-29
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 12HIGH 29MEDIUM 930LOW 2673

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3644 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Decorative Section Separators762 hits · 2487 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt1# =============================================================================COMMENT
MEDIUMCMakeLists.txt3# =============================================================================COMMENT
MEDIUMCMakeLists.txt29# =============================================================================COMMENT
MEDIUMCMakeLists.txt64# =============================================================================COMMENT
MEDIUMCMakeLists.txt70# =============================================================================COMMENT
MEDIUMCMakeLists.txt175# =============================================================================COMMENT
MEDIUMCMakeLists.txt177# =============================================================================COMMENT
MEDIUMCMakeLists.txt204# =============================================================================COMMENT
MEDIUMCMakeLists.txt206# =============================================================================COMMENT
MEDIUMCMakeLists.txt226# =============================================================================COMMENT
MEDIUMCMakeLists.txt228# =============================================================================COMMENT
MEDIUMCMakeLists.txt762# =============================================================================COMMENT
MEDIUMCMakeLists.txt764# =============================================================================COMMENT
MEDIUM.gitleaks.toml1# =============================================================================COMMENT
MEDIUM.gitleaks.toml6# =============================================================================COMMENT
MEDIUM.gitleaks.toml10# -----------------------------------------------------------------------------COMMENT
MEDIUM.gitleaks.toml12# -----------------------------------------------------------------------------COMMENT
MEDIUM.gitleaks.toml43# -----------------------------------------------------------------------------COMMENT
MEDIUM.gitleaks.toml45# -----------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/bootstrap_protoc.sh4# =============================================================================COMMENT
MEDIUMidl/codegen/bootstrap_protoc.sh6# =============================================================================COMMENT
MEDIUMidl/codegen/bootstrap_protoc.sh65# =============================================================================COMMENT
MEDIUMidl/codegen/check_generated_trees.sh4# =============================================================================COMMENT
MEDIUMidl/codegen/check_generated_trees.sh6# =============================================================================COMMENT
MEDIUMidl/codegen/check_generated_trees.sh40# =============================================================================COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml370 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml379 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml438 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml440 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml11# -----------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml90 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml92 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml119 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml130 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml132 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml153 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml155 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml186 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml188 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml276 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml278 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml313 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml315 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml352 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml354 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml455 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml462 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml499 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml501 # --------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py108# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py111# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py203# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py207# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py225# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py227# ---------------------------------------------------------------------------COMMENT
MEDIUMidl/codegen/_convenience_common.py298# ---------------------------------------------------------------------------COMMENT
702 more matches not shown…
Over-Commented Block1501 hits · 1464 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# =============================================================================COMMENT
LOWCMakeLists.txt21# cmake --preset android-arm64 && cmake --build --preset android-arm64COMMENT
LOWCMakeLists.txt41project(runanywhereCOMMENT
LOWCMakeLists.txt221# FetchContent tree under engines/.COMMENT
LOWCMakeLists.txt501 set_tests_properties(diarization_onnx_tests PROPERTIESCOMMENT
LOW.pre-commit-config.yaml61 # disk. Committed symlinks already materialize on clone for macOS/Linux;COMMENT
LOWjitpack.yml1# JitPack build configuration for RunAnywhere Kotlin SDKCOMMENT
LOWlefthook.yml1# EXAMPLE USAGE:COMMENT
LOWlefthook.yml21# parallel: trueCOMMENT
LOWlefthook.yml41# - script: "hello.go"COMMENT
LOWPackage.swift1// swift-tools-version: 6.2COMMENT
LOWPackage.swift21// 42 files. Resolving this URL by version yields ~347 errors of the formCOMMENT
LOWPackage.swift41// 2. Export `RUNANYWHERE_USE_LOCAL_NATIVES=1` so the package resolves toCOMMENT
LOWPackage.swift221 exact: runAnywhereMLXSwiftLMVersionCOMMENT
LOWPackage.swift261COMMENT
LOWPackage.swift361 // ONNX Runtime BackendCOMMENT
LOWPackage.swift481 ),COMMENT
LOWPackage.swift541 // `RABackendSherpa.xcframework` into `RABackendSherpa-ios-v<version>.zip`COMMENT
LOWidl/codegen/generate_streams.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/bootstrap_protoc.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/bootstrap_protoc.sh21# protobuf publishes prebuilt, immutable, per-platform archives on everyCOMMENT
LOWidl/codegen/bootstrap_protoc.sh41# returned without `protoc --version` agreeing with the pin. An unrecognisedCOMMENT
LOWidl/codegen/generate_dart_result_codes.py1#!/usr/bin/env python3COMMENT
LOWidl/codegen/check_generated_filenames.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/check_generated_trees.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/check_generated_trees.sh21# test of the .gitignore negations: get one wrong and a hand-written fileCOMMENT
LOWidl/codegen/generate_defaults_pool.py1#!/usr/bin/env python3COMMENT
LOWidl/codegen/generate_defaults_pool.py21# transport 24 integers would be bloat, and it would make every call site readCOMMENT
LOWidl/codegen/generate_python.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_swift.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_swift.sh81# Belt-and-braces: if an older toolchain or a developer invocation emitsCOMMENT
LOWidl/codegen/swift-modality-abi.yaml1# swift-modality-abi.yamlCOMMENT
LOWidl/codegen/swift-modality-abi.yaml21# Maps to ProtoStreamContext<Response>.runRequestStream.COMMENT
LOWidl/codegen/swift-modality-abi.yaml41# The optional `request` field selects between the two ABI shapes.COMMENT
LOWidl/codegen/swift-modality-abi.yaml61# written in CppBridge+ModalityProtoABI.swift; the field `custom_reason`COMMENT
LOWidl/codegen/swift-modality-abi.yaml121 # rac_structured_output_generate_stream_proto) was removed outright. ItsCOMMENT
LOWidl/codegen/swift-modality-abi.yaml361 request: RAEmbeddingsRequestCOMMENT
LOWidl/codegen/swift-modality-abi.yaml541 # that survives. The corresponding C ABI entry pointsCOMMENT
LOWidl/codegen/generate_cpp.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_all.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_all.sh21# and the default-pool constants) run whenever their language isCOMMENT
LOWidl/codegen/generate_all.sh141# is a function of the compiler patch level as much as of the schemas. NeitherCOMMENT
LOWidl/codegen/generate_all.sh161# directory is /opt/homebrew/bin. Prepending it unconditionally re-orders theCOMMENT
LOWidl/codegen/generate_all.sh281fi # want cppCOMMENT
LOWidl/codegen/generate_all.sh321"${RA_PYTHON}" "${SCRIPT_DIR}/generate_python_errors.py"COMMENT
LOWidl/codegen/generate_python_errors.py1#!/usr/bin/env python3COMMENT
LOWidl/codegen/_convenience_common.py1#!/usr/bin/env python3COMMENT
LOWidl/codegen/generate_kotlin.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_kotlin.sh21COMMENT
LOWidl/codegen/generate_kotlin.sh41#COMMENT
LOWidl/codegen/generate_kotlin.sh141# NOT use it here because it would force a Java protobuf runtimeCOMMENT
LOWidl/codegen/schema_lock.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/schema_lock.sh21#COMMENT
LOWidl/codegen/ci-drift-check.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/ci-drift-check.sh21# written, and that none of them came back TRACKED. Nothing generated isCOMMENT
LOWidl/codegen/ci-drift-check.sh121 # resolves to here. generate_all.sh exports RA_PYTHON into its OWN childrenCOMMENT
LOWidl/codegen/generate_dart.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/generate_dart.sh81COMMENT
LOWidl/codegen/bootstrap_wire.sh1#!/usr/bin/env bashCOMMENT
LOWidl/codegen/bootstrap_wire.sh21# `wire-compiler` on PATH, then the cache, then a checksum-verified download —COMMENT
1441 more matches not shown…
Hyper-Verbose Identifiers650 hits · 716 pts
SeverityFileLineSnippetContext
LOWidl/codegen/generate_streams.sh77function sourceProtoFromRequestModule(reqMod) {CODE
LOWidl/codegen/_convenience_common.py375def enum_name_to_screaming_snake(name: str) -> str:CODE
LOWidl/codegen/_convenience_common.py502def zero_literal_for_required(CODE
LOWidl/codegen/generate_ts_convenience.py207def _ts_proto_function_prefix(symbol: str) -> str:CODE
LOWidl/codegen/generate_ts_convenience.py380def _emit_enum_reverse_factory(CODE
LOWidl/codegen/generate_ts_convenience.py608def _collect_message_symbols_per_file(CODE
LOWidl/codegen/generate_kotlin_convenience.py144def _emit_enum_reverse_factory(CODE
LOWidl/codegen/generate_kotlin_convenience.py179def _emit_message_defaults_factory(CODE
LOWidl/codegen/generate_swift_modality_abi.py470def render_get_with_context_method(CODE
LOWidl/codegen/generate_swift_modality_abi.py579def render_create_handle_method(CODE
LOWidl/codegen/generate_swift_modality_abi.py628def render_invoke_out_only_method(CODE
LOWidl/codegen/generate_dart_convenience.py393def _emit_enum_reverse_factory(CODE
LOWidl/codegen/generate_dart_convenience.py473def _required_zero_check_expr(field, dart_name: str, int64_used: list[bool]) -> str | None:CODE
LOWidl/codegen/generate_swift_convenience.py117def _emit_enum_reverse_factory(CODE
LOWidl/codegen/generate_swift_convenience.py162def _emit_message_defaults_factory(CODE
LOWidl/codegen/tests/test_convenience_generators.py282def _extract_validated_fields(generated: str, language: str) -> frozenset[str]:CODE
LOWidl/codegen/tests/test_convenience_generators.py323def assert_cross_language_parity(CODE
LOWcore/scripts/test_build_android_archive.py77 def test_release_version_rejects_path_or_shell_syntax(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py86 def test_archive_is_exact_and_reproducible(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py123 def test_rejects_private_native(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py131 def test_rejects_undeclared_native(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py139 def test_rejects_nested_or_extra_component(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py153 def test_rejects_undeclared_root_file_or_symlink(self) -> None:CODE
LOWcore/scripts/test_build_android_archive.py167 def test_rejects_symlink_non_elf_and_missing_input(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py82 def test_inspected_artifact_and_source_pins_are_exact(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py101 def test_cache_identity_covers_every_supply_chain_pin(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py135 def test_safe_regular_file_archive_extracts(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py149 def test_unsafe_archive_members_are_rejected(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py164 def test_symbolic_and_hard_links_are_rejected(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py183 def test_embedded_build_path_transform_is_exact_and_idempotent(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py216 def test_transform_rejects_corrupted_library(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py237 def test_transform_accepts_manifested_library_with_no_marker(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py259 def test_transform_rejects_missing_expected_marker(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py280 def test_unrecognized_host_path_is_rejected(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py292 def test_archive_digest_is_fail_closed(self) -> None:CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py336 def test_library_tree_fails_when_any_library_is_under_aligned(self) -> None:CODE
LOWscripts/ci/verify_cpp_desktop_kit.py62def sherpa_plugin_entry_is_routable(archive: bytes) -> bool:CODE
LOW…pts/validation/gates/test_release_version_coherence.py80def test_unmodified_tree_passes(tmp_path):CODE
LOW…pts/validation/gates/test_release_version_coherence.py89def test_source_tag_built_from_s_version_is_rejected(tmp_path):CODE
LOW…pts/validation/gates/test_release_version_coherence.py104def test_source_tag_pinned_to_the_wrong_release_is_rejected(tmp_path):CODE
LOW…pts/validation/gates/test_release_version_coherence.py121def test_every_rn_podspec_is_covered(tmp_path):CODE
LOWbindings/react-native/example/App.tsx104function buildTimeAPIConfiguration(): APIConfiguration | null {CODE
LOW…ndings/react-native/example/src/utils/micPermission.ts13export async function requestMicrophonePermission(): Promise<boolean> {CODE
LOW…ndings/react-native/example/src/screens/ChatScreen.tsx102function usageFromGenerationResult(CODE
LOW…s/react-native/example/src/services/NpuModelCatalog.ts423export function publishNpuCatalogAcceptance(CODE
LOW…s/react-native/example/src/services/NpuModelCatalog.ts439export function isVisibleForNativeNpuCatalog(CODE
LOW…/react-native/example/src/services/APIConfiguration.ts24export function normalizeAPIConfiguration(CODE
LOW…/react-native/example/src/services/APIConfiguration.ts71export function getSessionAPIConfiguration(): APIConfiguration | null {CODE
LOW…/react-native/example/src/services/APIConfiguration.ts75export function setAPIConfigurationApplyHandler(CODE
LOW…/react-native/example/src/services/APIConfiguration.ts84export async function applySessionAPIConfiguration(CODE
LOW…/react-native/example/src/services/APIConfiguration.ts98export async function clearSessionAPIConfiguration(): Promise<void> {CODE
LOW…ct-native/example/src/services/ModelRegistryQueries.ts17export async function listDownloadedCatalogModels(): Promise<ModelInfo[]> {CODE
LOW…dings/react-native/scripts/validate_public_packages.py133def _validate_archive_members(archive: Path, bundle: tarfile.TarFile) -> None:CODE
LOW…dings/react-native/scripts/validate_public_packages.py373def _validate_framework_plist(CODE
LOW…dings/react-native/scripts/validate_public_packages.py396def _validate_mlx_xcframework(CODE
LOW…dings/react-native/scripts/validate_public_packages.py629def _validate_public_package_license(CODE
LOW…dings/react-native/scripts/validate_public_packages.py814def _workspace_protocol_specs(CODE
LOW…dings/react-native/scripts/validate_public_packages.py891def _assert_matching_inventory(CODE
LOW…/react-native/scripts/test_validate_public_packages.py467 def test_rewrites_workspace_specs_and_bundles_exact_proto_archive(self) -> None:CODE
LOW…/react-native/scripts/test_validate_public_packages.py509 def test_accepts_exact_public_set_with_proto_and_core_headers(self) -> None:CODE
590 more matches not shown…
Modern AI Meta-Vocabulary158 hits · 501 pts
SeverityFileLineSnippetContext
MEDIUMCMakeLists.txt409 # contract gate alive in both RAG modes: segmentation is unconditional,COMMENT
MEDIUMCMakeLists.txt410 # while embeddings are intentionally compiled only when RAG is enabled.COMMENT
MEDIUMidl/codegen/generate_defaults_pool.py116# Python consumes the flat C ABI for everything but RAG and has no convenienceCOMMENT
MEDIUMidl/codegen/generate_python.sh4# Generate Python protobuf bindings for the runanywhere-python SDK's native RAG binding.COMMENT
MEDIUMidl/codegen/generate_python.sh12# Only the RAG surface is bound in Python today (the rest of the SDK uses the flat C ABI), so weCOMMENT
MEDIUMidl/codegen/generate_swift.sh85# ModelRegistry, Pipeline, RAG, SDKEvents, Solutions, Storage,COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml371 # RAG (extension CppBridge.RAG)COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml375 # caller's isolation, never hopping the `CppBridge.RAG` actor and neverCOMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml377 # actor's own single-session facade (CppBridge+RAG.swift) still calls themCOMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml439 # RAG -- top-level free functions (not on any extension)COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml32# Used by: LLM/VLM/VAD/RAG GET-shaped state queries that already own a handle.COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml48# Used by: RAG.createPipeline.COMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml73# RAG-config helper is a top-level free function, embeddings lives under aCOMMENT
MEDIUMidl/codegen/swift-modality-abi.yaml391 # Caller decides what to do with the handle (the RAG actor's facadeCOMMENT
MEDIUMidl/codegen/generate_all.sh304# Python protobuf for the RAG surface (optional — needs grpcio-tools). Soft-skipCOMMENT
MEDIUMidl/codegen/generate_all.sh316# post-processor because it reaches the C ABI directly for everything but RAG,COMMENT
MEDIUMidl/codegen/generate_python_errors.py6# The Python SDK talks to the flat C ABI for everything except RAG, so it hasCOMMENT
MEDIUMidl/codegen/generate_kotlin_convenience.py10# `validate()` scaffolding currently scattered across `RAAudioFormatExtensions.kt`,COMMENT
MEDIUMidl/codegen/generate_swift_modality_abi.py21# scaffolding (trampoline / yielder / context / runRequestStream) is canonicalCOMMENT
MEDIUMidl/codegen/generate_swift_convenience.py10# scaffolding that currently lives in per-modality *Configuration+Helpers.swiftCOMMENT
MEDIUMcore/CMakeLists.txt54# Only commons-local backends (RAG pipeline) declare their option here.COMMENT
MEDIUMcore/CMakeLists.txt57# Emscripten: RAG itself only depends on USearch + nlohmann_json (header-only)COMMENT
MEDIUMcore/CMakeLists.txt62# and third_party/sherpa-onnx-wasm/ (via @runanywhere/web-onnx), so RAG canCOMMENT
MEDIUMcore/CMakeLists.txt66# RAC_WASM_RAG_STANDALONE: the Web Docs/RAG tabCOMMENT
MEDIUMcore/CMakeLists.txt71# to opt the llamacpp WASM target into shipping the RAG proto-byte symbolsCOMMENT
MEDIUMcore/CMakeLists.txt2003# COMMONS-LOCAL BACKENDS (RAG)COMMENT
MEDIUMcore/CMakeLists.txt2008# engine targets — only commons-local OBJECT libraries (RAG) are folded intoCOMMENT
MEDIUMcore/CMakeLists.txt2012# Decouple RAG from RAC_BUILD_BACKENDS so the proto C ABI symbolsCOMMENT
MEDIUMcore/CMakeLists.txt2014# op_engine_backed.cpp are always resolvable inside librac_commons. RAGCOMMENT
MEDIUMcore/CMakeLists.txt2023 # RAG is an OBJECT library. Fold its compiled objects into rac_commonsCOMMENT
MEDIUMcore/CMakeLists.txt2027 # Propagate RAG's non-cyclic dependencies manually.COMMENT
MEDIUMcore/CMakeLists.txt2033 # Apple frameworks used by RAG (Accelerate) need explicit propagation.COMMENT
MEDIUMcore/CMakeLists.txt41# does not branch on it — RAG is folded into rac_commons independently (see below).COMMENT
MEDIUMcore/CMakeLists.txt909 # 200-400 LOC orchestration loop into one native session).COMMENT
MEDIUMcore/CMakeLists.txt966 # CUA (computer-use-agent scaffold) — profile registry, system-promptCOMMENT
MEDIUMcore/CMakeLists.txt1469 # Shared TokenUsage embedded by LLM/VLM/RAG result + metrics messages (D4).COMMENT
MEDIUMcore/CMakeLists.txt2105# RAG is folded into rac_commons regardless of RAC_BUILD_BACKENDS (see theCOMMENT
MEDIUMcore/AGENTS.md140### Platform adapter inversion of controlCOMMENT
MEDIUMcore/CLAUDE.md140### Platform adapter inversion of controlCOMMENT
MEDIUMcore/tests/CMakeLists.txt967# Exercises VLM, embeddings, RAG, LoRA, and diffusion service boundaries overCOMMENT
MEDIUMcore/tests/CMakeLists.txt968# serialized generated protos. RAG symbols are folded into rac_commons only whenCOMMENT
MEDIUMcore/tests/CMakeLists.txt969# the RAG object target is enabled, so keep this focused test behind that gate.COMMENT
MEDIUMcore/tests/CMakeLists.txt1535# RAG Pipeline Tests (GoogleTest)COMMENT
MEDIUMcore/tests/CMakeLists.txt1543 # so the RAG and benchmark suites below agree on a single tag (previouslyCOMMENT
MEDIUMcore/tests/CMakeLists.txt1633# RAG-test block above share a single FetchContent declaration. (FetchContentCOMMENT
MEDIUMcore/tests/CMakeLists.txt102# Header-only relay used by request-scoped VLM/RAG JNI wrappers. CoversCOMMENT
MEDIUMcore/tests/CMakeLists.txt137# CUA (computer-use-agent) scaffold: profile prompt + tool_call parse + coordCOMMENT
MEDIUMcore/tests/CMakeLists.txt786# RAG symbols are folded into rac_commons only when the RAG OBJECT target isCOMMENT
MEDIUMcore/tests/CMakeLists.txt789 # Direct ctest for the GraphScheduler-driven RAG pipelineCOMMENT
MEDIUMcore/tests/CMakeLists.txt831# End-to-end RAG test with real models (ONNX embeddings + GGUF LLM). SKIPsCOMMENT
MEDIUMcore/tests/CMakeLists.txt833# RAG, llamacpp and onnx backends are all built.COMMENT
MEDIUMcore/docs/ARCHITECTURE.md229│ │ │ └── rac_voice_agent.h # STT+LLM+TTS+VAD orchestrationCODE
MEDIUMcore/docs/ARCHITECTURE.md257│ │ ├── voice_agent/ # Voice agent orchestrationCODE
MEDIUMcore/docs/md/swift.md112## RAGCOMMENT
MEDIUMcore/docs/md/kotlin.md113## RAGCOMMENT
MEDIUMcore/docs/md/react-native.md92## RAGCOMMENT
MEDIUMcore/docs/md/flutter.md106## RAGCOMMENT
MEDIUMcore/docs/md/web.md98## RAGCOMMENT
MEDIUMcore/docs/reference/subsystems.md58## RAG (`src/features/rag/`)COMMENT
MEDIUMcore/docs/reference/subsystems.md70### Design rules for RAG work (do not relitigate)COMMENT
98 more matches not shown…
Unused Imports242 hits · 192 pts
SeverityFileLineSnippetContext
LOWidl/codegen/generate_dart_result_codes.py28CODE
LOWidl/codegen/generate_defaults_pool.py35CODE
LOWidl/codegen/generate_python_errors.py23CODE
LOWidl/codegen/_convenience_common.py21CODE
LOWidl/codegen/generate_ts_convenience.py42CODE
LOWidl/codegen/generate_kotlin_convenience.py45CODE
LOWidl/codegen/generate_cpp_defaults.py31CODE
LOWidl/codegen/generate_swift_modality_abi.py32CODE
LOWidl/codegen/generate_dart_convenience.py29CODE
LOWidl/codegen/generate_swift_convenience.py39CODE
LOWidl/codegen/tests/test_convenience_generators.py51CODE
LOWidl/codegen/tests/test_convenience_generators.py55CODE
LOWidl/codegen/tests/test_convenience_generators.py121CODE
LOWcore/scripts/test_build_android_archive.py4CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py4CODE
LOWscripts/ci/verify_cpp_desktop_kit.py18CODE
LOWscripts/release/rewrite_npm_package.py10CODE
LOWscripts/release/prepublish_check.py33CODE
LOWscripts/release/prepublish_check.py38CODE
LOWscripts/validation/gates/check_plugin_natives.py91CODE
LOWscripts/validation/e2e/validate_seven_lane_evidence.py8CODE
LOW…dings/react-native/scripts/validate_public_packages.py4CODE
LOW…/react-native/scripts/test_validate_public_packages.py4CODE
LOWbindings/python/example/chat.py2CODE
LOWbindings/python/example/rag.py2CODE
LOWbindings/python/example/_env.py8CODE
LOWbindings/python/tests/conftest.py16CODE
LOWbindings/python/tests/test_download.py2CODE
LOWbindings/python/tests/test_parity_fixes.py6CODE
LOWbindings/python/tests/test_catalog.py3CODE
LOWbindings/python/tests/test_namespaces.py3CODE
LOWbindings/python/tests/test_llm.py3CODE
LOWbindings/python/tests/test_llm_stream_proto.py3CODE
LOWbindings/python/tests/test_options_results.py3CODE
LOWbindings/python/tests/test_errors.py3CODE
LOWbindings/python/tests/test_audio.py3CODE
LOWbindings/python/tests/test_package_import.py10CODE
LOWbindings/python/tests/test_runtime.py7CODE
LOWbindings/python/tests/test_streaming.py3CODE
LOWbindings/python/tests/test_smoke.py14CODE
LOWbindings/python/tests/test_structured.py2CODE
LOWbindings/python/tests/test_server.py8CODE
LOWbindings/python/tests/test_thinking.py3CODE
LOWbindings/python/tests/test_events.py2CODE
LOWbindings/python/tests/fake_core.py8CODE
LOWbindings/python/tests/test_cli.py7CODE
LOWbindings/python/tests/test_rag.py7CODE
LOWbindings/python/tests/test_generation.py3CODE
LOWbindings/python/tests/test_download_network.py10CODE
LOWbindings/python/tests/test_download_network.py13CODE
LOWbindings/python/_build/ra_build_backend.py46CODE
LOWbindings/python/_build/ra_build_backend.py95CODE
LOWbindings/python/_build/ra_build_backend.py99CODE
LOWbindings/python/scripts/validate_public_packages.py24CODE
LOWbindings/python/scripts/bundle_native.py24CODE
LOW…ndings/python/scripts/test_validate_public_packages.py13CODE
LOWbindings/python/runanywhere/catalog.py28CODE
LOWbindings/python/runanywhere/options.py8CODE
LOWbindings/python/runanywhere/_handles.py8CODE
LOWbindings/python/runanywhere/_handles.py13CODE
182 more matches not shown…
Hallucination Indicators12 hits · 155 pts
SeverityFileLineSnippetContext
CRITICAL…m/runanywhere/sdk/httptransport/OkHttpHttpTransport.kt153 val rc = com.runanywhere.sdk.native.bridge.RunAnywhereBridge.racHttpTransportRegisterOkHttp()CODE
CRITICAL…m/runanywhere/sdk/httptransport/OkHttpHttpTransport.kt181 com.runanywhere.sdk.native.bridge.RunAnywhereBridge.racHttpTransportUnregisterOkHttp()CODE
CRITICAL…com/runanywhere/sdk/native/bridge/RunAnywhereBridge.kt560 // LlamaCPP: com.runanywhere.sdk.llm.llamacpp.LlamaCPPBridge.nativeRegister()COMMENT
CRITICAL…com/runanywhere/sdk/native/bridge/RunAnywhereBridge.kt563 // ONNX: com.runanywhere.sdk.core.onnx.ONNXBridge.nativeRegister()COMMENT
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt97fun ai.runanywhere.proto.v1.ToolValue.Companion.string(v: String): RAToolValue = RAToolValue(string_value = v)CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt100fun ai.runanywhere.proto.v1.ToolValue.Companion.int(v: Int): RAToolValue =CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt104fun ai.runanywhere.proto.v1.ToolValue.Companion.double(v: Double): RAToolValue =CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt108fun ai.runanywhere.proto.v1.ToolValue.Companion.bool(v: Boolean): RAToolValue =CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt115fun ai.runanywhere.proto.v1.ToolValue.Companion.array(values: List<RAToolValue>): RAToolValue =CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt191fun ai.runanywhere.proto.v1.ToolValue.Companion.parseObjectJSON(CODE
CRITICAL…anywhere/sdk/public/extensions/LLM/ToolCallingTypes.kt218fun ai.runanywhere.proto.v1.ToolValue.Companion.jsonString(CODE
CRITICAL…java/io/flutter/plugins/GeneratedPluginRegistrant.java19 flutterEngine.getPlugins().add(new com.mr.flutter.plugin.filepicker.FilePickerPlugin());CODE
Verbosity Indicators53 hits · 101 pts
SeverityFileLineSnippetContext
LOWcore/src/features/voice_agent/voice_agent.cpp200 // Step 1: Initialize VAD (mirrors Swift's initializeVAD)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp207 // Step 2: Initialize STT model (mirrors Swift's initializeSTTModel)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp218 // Step 3: Initialize LLM model (mirrors Swift's initializeLLMModel)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp229 // Step 4: Initialize TTS (mirrors Swift's initializeTTSVoice)COMMENT
LOWcore/src/lifecycle/sdk_init.cpp550 // Step 1: Validate inputs. Staging/production require API key + URL.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp569 // Step 2: Initialize SDK state (environment + cached api_key + base_url +COMMENT
LOWcore/src/lifecycle/sdk_init.cpp650 // Step 1: Authenticate through the registered platform HTTP transport.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp660 // Step 2: Register device + fetch assignments only on the JWT path.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp675 // Step 3: Fetch model assignments (cached). force_refresh_assignmentsCOMMENT
LOWcore/src/lifecycle/sdk_init.cpp692 // Step 4: Flush telemetry via the sink registered by the SDK.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp700 // Step 5: Reconcile registry rows with downloaded/local files.COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp187 // Step 2: Get device IDCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp196 // Step 3: Get device infoCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp203 // Step 4: Build registration requestCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp236 // Step 7: The register endpoint always requires the SDK bearer token.COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp240 // Step 8: Make HTTP request via callbackCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp248 // Step 9: Handle responseCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp270 // Step 10: Mark as registered (server placeholder, if any, is now upgraded)COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp274 // Step 11: Emit success eventCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp155 // Step 1: Check if already registeredCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp214 // Step 5: Serialize to JSONCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp225 // Step 6: Get endpointCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp957 // Step 1: strip URL query string and fragment (Swift's URL parser doesCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp965 // Step 2: take the trailing path component. If the URL ends in a slashCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp984 // Step 3: iteratively strip known extensions (case-insensitive). SameCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp1006 // Step 4: copy with strict bounds — never silently truncate.COMMENT
LOW…astructure/model_management/model_registry_refresh.cpp75 // Step 1: capacity probe.COMMENT
LOW…astructure/model_management/model_registry_refresh.cpp90 // Step 2: allocate and fetch. Use a small headroom in case the directoryCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1695 // Step 1: Register platform adapter FIRSTCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1702 // Step 2: Configure logging based on environmentCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1709 // Step 3: Initialize RACommons using rac_initCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1727 // Step 4: Build the canonical Phase 1 proto envelope.COMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1739 // Step 5: Phase 1 proto is the canonical commons owner for SDK state.COMMENT
LOW…le/lib/features/settings/tool_settings_view_model.dart239 // Step 1: Geocode the locationCOMMENT
LOW…le/lib/features/settings/tool_settings_view_model.dart264 // Step 2: Fetch weather for coordinatesCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart169 // Step 1: Load native libraryCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart174 // Step 2: Register platform adapter FIRST (file ops, logging, keychain)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart180 // Step 3: Configure C++ logging levelCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart185 // Step 4: Initialize SDK with configuration (Phase 1 proto-based path)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart209 // Step 5: Register events callback (analytics routing)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart214 // Step 6: Initialize telemetry manager (sync part)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart220 // Step 7: Register device callbacksCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart225 // Step 8: Register file manager I/O callbacksCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart229 // Step 9: Wire global model registry before any registerModel() calls.COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart310 // Step 3: Install auth secure storage now that platform async caches areCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart319 // Step 4: Drive the canonical Phase 2 step-list inside commons. HTTP andCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart279 // Step 1: HTTP transport — configure C++ HTTP layer BEFORE phase2 so thatCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart296 // Step 2: Register platform-owned async callbacks before commons Phase 2.COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift168 // Step 1: Platform adapter FIRST (logging, file ops, keychain)COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift190 // Step 2: Telemetry manager (builds JSON, calls HTTP callback).COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift196 // Step 3: Attach the telemetry manager as the C++ router's telemetry sink.COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift203 // Step 4: Device registration callbacksCOMMENT
LOW…ngs/swift/Sources/RunAnywhere/Public/RunAnywhere.swift439 // Step 1: configure the Swift HTTP adapter used by callback-basedCOMMENT
Structural Annotation Overuse53 hits · 100 pts
SeverityFileLineSnippetContext
LOWcore/src/features/voice_agent/voice_agent.cpp200 // Step 1: Initialize VAD (mirrors Swift's initializeVAD)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp207 // Step 2: Initialize STT model (mirrors Swift's initializeSTTModel)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp218 // Step 3: Initialize LLM model (mirrors Swift's initializeLLMModel)COMMENT
LOWcore/src/features/voice_agent/voice_agent.cpp229 // Step 4: Initialize TTS (mirrors Swift's initializeTTSVoice)COMMENT
LOWcore/src/lifecycle/sdk_init.cpp550 // Step 1: Validate inputs. Staging/production require API key + URL.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp569 // Step 2: Initialize SDK state (environment + cached api_key + base_url +COMMENT
LOWcore/src/lifecycle/sdk_init.cpp650 // Step 1: Authenticate through the registered platform HTTP transport.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp660 // Step 2: Register device + fetch assignments only on the JWT path.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp675 // Step 3: Fetch model assignments (cached). force_refresh_assignmentsCOMMENT
LOWcore/src/lifecycle/sdk_init.cpp692 // Step 4: Flush telemetry via the sink registered by the SDK.COMMENT
LOWcore/src/lifecycle/sdk_init.cpp700 // Step 5: Reconcile registry rows with downloaded/local files.COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp187 // Step 2: Get device IDCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp196 // Step 3: Get device infoCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp203 // Step 4: Build registration requestCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp236 // Step 7: The register endpoint always requires the SDK bearer token.COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp240 // Step 8: Make HTTP request via callbackCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp248 // Step 9: Handle responseCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp270 // Step 10: Mark as registered (server placeholder, if any, is now upgraded)COMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp274 // Step 11: Emit success eventCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp155 // Step 1: Check if already registeredCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp214 // Step 5: Serialize to JSONCOMMENT
LOWcore/src/infrastructure/device/rac_device_manager.cpp225 // Step 6: Get endpointCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp957 // Step 1: strip URL query string and fragment (Swift's URL parser doesCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp965 // Step 2: take the trailing path component. If the URL ends in a slashCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp984 // Step 3: iteratively strip known extensions (case-insensitive). SameCOMMENT
LOW…re/src/infrastructure/model_management/model_types.cpp1006 // Step 4: copy with strict bounds — never silently truncate.COMMENT
LOW…astructure/model_management/model_registry_refresh.cpp75 // Step 1: capacity probe.COMMENT
LOW…astructure/model_management/model_registry_refresh.cpp90 // Step 2: allocate and fetch. Use a small headroom in case the directoryCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1695 // Step 1: Register platform adapter FIRSTCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1702 // Step 2: Configure logging based on environmentCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1709 // Step 3: Initialize RACommons using rac_initCOMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1727 // Step 4: Build the canonical Phase 1 proto envelope.COMMENT
LOW…/react-native/packages/core/cpp/bridges/InitBridge.cpp1739 // Step 5: Phase 1 proto is the canonical commons owner for SDK state.COMMENT
LOW…le/lib/features/settings/tool_settings_view_model.dart239 // Step 1: Geocode the locationCOMMENT
LOW…le/lib/features/settings/tool_settings_view_model.dart264 // Step 2: Fetch weather for coordinatesCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart169 // Step 1: Load native libraryCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart174 // Step 2: Register platform adapter FIRST (file ops, logging, keychain)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart180 // Step 3: Configure C++ logging levelCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart185 // Step 4: Initialize SDK with configuration (Phase 1 proto-based path)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart209 // Step 5: Register events callback (analytics routing)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart214 // Step 6: Initialize telemetry manager (sync part)COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart220 // Step 7: Register device callbacksCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart225 // Step 8: Register file manager I/O callbacksCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart229 // Step 9: Wire global model registry before any registerModel() calls.COMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart310 // Step 3: Install auth secure storage now that platform async caches areCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart319 // Step 4: Drive the canonical Phase 2 step-list inside commons. HTTP andCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart279 // Step 1: HTTP transport — configure C++ HTTP layer BEFORE phase2 so thatCOMMENT
LOW…utter/packages/runanywhere/lib/native/dart_bridge.dart296 // Step 2: Register platform-owned async callbacks before commons Phase 2.COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift168 // Step 1: Platform adapter FIRST (logging, file ops, keychain)COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift190 // Step 2: Telemetry manager (builds JSON, calls HTTP callback).COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift196 // Step 3: Attach the telemetry manager as the C++ router's telemetry sink.COMMENT
LOW…/Sources/RunAnywhere/Foundation/Bridge/CppBridge.swift203 // Step 4: Device registration callbacksCOMMENT
LOW…ngs/swift/Sources/RunAnywhere/Public/RunAnywhere.swift439 // Step 1: configure the Swift HTTP adapter used by callback-basedCOMMENT
Cross-Language Confusion14 hits · 80 pts
SeverityFileLineSnippetContext
HIGHidl/codegen/generate_ts_convenience.py410 lines.append(" return undefined;")CODE
HIGHidl/codegen/generate_ts_convenience.py469 # safely omit (TS treats absent as undefined).COMMENT
HIGHidl/codegen/generate_dart_convenience.py418 lines.append(" return null;")CODE
HIGHidl/codegen/generate_dart_convenience.py434 skipped (Dart returns the empty list, never null)."""STRING
HIGHscripts/validation/gates/check_plugin_natives.py32That is what this script measures: defined OR undefined, either counts, becauseSTRING
HIGHscripts/validation/gates/check_plugin_natives.py199# the real evidence is a DEFINED (not undefined) symbol in the backend file.COMMENT
HIGH…dings/react-native/scripts/validate_public_packages.py317 "undefined": undefined,CODE
HIGHbindings/python/tests/test_generation.py147 assert stops.push("hello E") == "hello"CODE
HIGHbindings/python/tests/test_generation.py148 assert stops.push("N") == " " # the space can no longer be part of "END"CODE
HIGHbindings/python/tests/test_generation.py149 assert stops.push("D tail") == ""CODE
HIGHbindings/python/tests/test_generation.py156 assert stops.push("abcE") == "ab"CODE
HIGHbindings/python/runanywhere/_generation.py180 emit = self.stops.push(text)CODE
HIGHbindings/python/runanywhere/_generation.py252 for event in acc.push(_as_delta(item)):CODE
HIGHbindings/python/runanywhere/_generation.py298 for event in acc.push(_as_delta(item)):CODE
Magic Placeholder Names15 hits · 78 pts
SeverityFileLineSnippetContext
HIGHbindings/react-native/README.md82 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/react-native/README.md82 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/react-native/Docs/Documentation.md23 apiKey: 'your-api-key',CODE
HIGH…/packages/core/tests/unit/NetworkConfiguration.test.ts9 expect(isUsableCredential('YOUR_API_KEY')).toBe(false);CODE
HIGH…ages/core/src/services/Network/NetworkConfiguration.ts21/** Reject empty values and template strings such as `YOUR_API_KEY`. */COMMENT
HIGHbindings/flutter/README.md120 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/flutter/README.md120 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/flutter/docs/Documentation.md112 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/flutter/docs/Documentation.md112 apiKey: '<YOUR_API_KEY>',CODE
HIGHbindings/swift/README.md79 apiKey: "<YOUR_API_KEY>",CODE
HIGHbindings/swift/README.md79 apiKey: "<YOUR_API_KEY>",CODE
HIGHbindings/swift/Sources/ONNXRuntime/README.md40 apiKey: "<YOUR_API_KEY>",CODE
HIGHbindings/swift/Sources/ONNXRuntime/README.md40 apiKey: "<YOUR_API_KEY>",CODE
HIGHbindings/swift/Sources/LlamaCPPRuntime/README.md40 apiKey: "<YOUR_API_KEY>",CODE
HIGHbindings/swift/Sources/LlamaCPPRuntime/README.md40 apiKey: "<YOUR_API_KEY>",CODE
Deep Nesting61 hits · 60 pts
SeverityFileLineSnippetContext
LOWidl/codegen/generate_dart_result_codes.py100CODE
LOWidl/codegen/generate_defaults_pool.py129CODE
LOWidl/codegen/generate_python_errors.py52CODE
LOWidl/codegen/_convenience_common.py129CODE
LOWidl/codegen/_convenience_common.py179CODE
LOWidl/codegen/_convenience_common.py306CODE
LOWidl/codegen/_convenience_common.py469CODE
LOWidl/codegen/generate_ts_convenience.py120CODE
LOWidl/codegen/generate_ts_convenience.py166CODE
LOWidl/codegen/generate_ts_convenience.py490CODE
LOWidl/codegen/generate_kotlin_convenience.py214CODE
LOWidl/codegen/generate_kotlin_convenience.py339CODE
LOWidl/codegen/generate_cpp_defaults.py65CODE
LOWidl/codegen/generate_swift_modality_abi.py224CODE
LOWidl/codegen/generate_dart_convenience.py116CODE
LOWidl/codegen/generate_dart_convenience.py166CODE
LOWidl/codegen/generate_dart_convenience.py499CODE
LOWidl/codegen/generate_dart_convenience.py662CODE
LOWidl/codegen/generate_swift_convenience.py201CODE
LOWidl/codegen/generate_swift_convenience.py350CODE
LOWidl/codegen/tests/test_convenience_generators.py416CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py149CODE
LOWcore/scripts/android/test_download_sherpa_onnx.py164CODE
LOWscripts/ci/verify_cpp_desktop_kit.py26CODE
LOWscripts/ci/verify_cpp_desktop_kit.py71CODE
LOWscripts/release/gen_api_changes_audit.py89CODE
LOWscripts/release/rewrite_npm_package.py59CODE
LOWscripts/release/rewrite_npm_package.py104CODE
LOWscripts/release/rewrite_npm_package.py183CODE
LOWscripts/release/prepublish_check.py166CODE
LOWscripts/release/prepublish_check.py188CODE
LOWscripts/release/prepublish_check.py263CODE
LOWscripts/release/prepublish_check.py314CODE
LOWscripts/validation/gates/check_plugin_natives.py317CODE
LOWscripts/validation/gates/check_plugin_natives.py363CODE
LOWscripts/validation/e2e/validate_seven_lane_evidence.py181CODE
LOWscripts/validation/e2e/validate_seven_lane_evidence.py290CODE
LOW…dings/react-native/scripts/validate_public_packages.py226CODE
LOW…dings/react-native/scripts/validate_public_packages.py396CODE
LOW…/react-native/scripts/test_validate_public_packages.py174CODE
LOW…/react-native/scripts/test_validate_public_packages.py373CODE
LOW…/react-native/scripts/test_validate_public_packages.py815CODE
LOW…/react-native/scripts/test_validate_public_packages.py896CODE
LOWbindings/python/example/rag.py26CODE
LOWbindings/python/tests/fake_core.py345CODE
LOWbindings/python/scripts/validate_public_packages.py138CODE
LOWbindings/python/scripts/validate_public_packages.py220CODE
LOWbindings/python/runanywhere/download.py96CODE
LOWbindings/python/runanywhere/download.py421CODE
LOWbindings/python/runanywhere/_runtime.py277CODE
LOWbindings/python/runanywhere/_llm_stream.py28CODE
LOWbindings/python/runanywhere/server/app.py242CODE
LOWbindings/python/runanywhere/cli/handlers.py110CODE
LOWbindings/python/runanywhere/cli/handlers.py127CODE
LOWbindings/python/runanywhere/cli/handlers.py185CODE
LOWbindings/python/runanywhere/cli/handlers.py244CODE
LOWbindings/web/scripts/test_validate_public_packages.py58CODE
LOWbindings/kotlin/scripts/validate_public_artifacts.py129CODE
LOWbindings/kotlin/scripts/validate_public_artifacts.py163CODE
LOWbindings/swift/scripts/normalize-static-archive.py30CODE
1 more matches not shown…
Example Usage Blocks32 hits · 54 pts
SeverityFileLineSnippetContext
LOWidl/codegen/check_generated_filenames.sh27# Usage:COMMENT
LOWidl/codegen/check_generated_trees.sh24# Usage:COMMENT
LOWidl/codegen/schema_lock.sh36# Usage:COMMENT
LOWcore/tests/scripts/run-tests-android.sh6# Usage:COMMENT
LOWcore/tests/scripts/run-tests.sh6# Usage:COMMENT
LOWcore/tests/scripts/run-tests-all.sh6# Usage:COMMENT
LOWcore/tests/scripts/run-tests-ios.sh6# Usage:COMMENT
LOWcore/tests/scripts/run-tests-web.sh6# Usage:COMMENT
LOWcore/tests/scripts/download-test-models.sh6# Usage:COMMENT
LOWcore/tests/scripts/run-tests-linux.sh6# Usage:COMMENT
LOWcore/scripts/lint-cpp.sh8# Usage:COMMENT
LOWcore/scripts/android/download-sherpa-onnx.sh17# Usage:COMMENT
LOWscripts/setup/sync-skills.sh16# Usage:COMMENT
LOWscripts/setup/setup-toolchain.sh26# Usage:COMMENT
LOWscripts/release/validate-artifact.sh17# Usage:COMMENT
LOWscripts/release/sync-versions.sh8# Usage:COMMENT
LOWscripts/validation/verify_default_pool.sh19# Usage:COMMENT
LOW…ripts/validation/gates/check_flutter_centralization.sh25# Usage:COMMENT
LOWscripts/validation/gates/check_gradle_centralization.sh37# Usage:COMMENT
LOWscripts/validation/gates/check_agents_claude_sync.sh16# Usage:COMMENT
LOW…ts/validation/gates/check_typescript_centralization.sh8# Usage:COMMENT
LOWscripts/validation/gates/check_swift_dist_repo_sync.sh54# Usage:COMMENT
LOWscripts/validation/gates/check_no_hardcoded_defaults.sh34# Usage:COMMENT
LOWscripts/validation/commons/check_rac_api_exports.sh17# Usage:COMMENT
LOWscripts/validation/commons/sync_rac_api_exports.sh20# Usage:COMMENT
LOWbindings/python/scripts/test-e2e.sh21# Usage:COMMENT
LOWbindings/web/wasm/scripts/vendor-onnxruntime-wasm.sh14# Usage:COMMENT
LOWbindings/web/wasm/scripts/setup-emsdk.sh16# Usage:COMMENT
LOW…r/packages/runanywhere_qhexrt/scripts/stage-natives.sh12# Usage:COMMENT
LOWbindings/swift/scripts/sync-dist-repo.sh42# Usage:COMMENT
LOWbindings/swift/scripts/release-swift-binaries.sh19# Usage:COMMENT
LOWbindings/swift/scripts/sync-checksums.sh10# Usage:COMMENT
Modern Structural Boilerplate34 hits · 34 pts
SeverityFileLineSnippetContext
LOWbindings/python/runanywhere/options.py16__all__ = [CODE
LOWbindings/python/runanywhere/_handles.py23__all__ = [CODE
LOWbindings/python/runanywhere/_handles.py532 def set_threshold(self, threshold: float) -> None:CODE
LOWbindings/python/runanywhere/_rag_bridge.py27__all__ = [CODE
LOWbindings/python/runanywhere/_options_bridge.py27__all__ = [CODE
LOWbindings/python/runanywhere/results.py21__all__ = [CODE
LOWbindings/python/runanywhere/events.py27__all__ = [CODE
LOWbindings/python/runanywhere/_generation.py27__all__ = [CODE
LOWbindings/python/runanywhere/__init__.py386__all__ = [CODE
LOWbindings/python/runanywhere/_runtime.py40__all__ = ["Runtime", "runtime"]CODE
LOWbindings/python/runanywhere/inputs.py18__all__ = [CODE
LOWbindings/python/runanywhere/structured.py14__all__ = [CODE
LOWbindings/python/runanywhere/audio.py15__all__ = [CODE
LOWbindings/python/runanywhere/audio.py39def set_audio_native_for_tests(native: Optional[_AudioNative]) -> None:CODE
LOWbindings/python/runanywhere/server/__init__.py17__all__ = ["create_app", "serve", "ModelManager"]CODE
LOWbindings/python/runanywhere/cli/__init__.py77__all__ = ["main", "build_parser"]CODE
LOWbindings/python/runanywhere/cli/output.py17def set_quiet(quiet: bool) -> None:CODE
LOWbindings/python/runanywhere/api/rerank.py15__all__ = ["rerank"]CODE
LOWbindings/python/runanywhere/api/models.py21__all__ = ["models"]CODE
LOWbindings/python/runanywhere/api/_common.py12__all__ = ["Prompt", "prepare"]CODE
LOWbindings/python/runanywhere/api/tts.py18__all__ = ["tts"]CODE
LOWbindings/python/runanywhere/api/__init__.py20__all__ = [CODE
LOWbindings/python/runanywhere/api/llm.py20__all__ = ["Tools", "llm"]CODE
LOWbindings/python/runanywhere/api/vlm.py16__all__ = ["vlm"]CODE
LOWbindings/python/runanywhere/api/voice.py19__all__ = ["VoiceSession", "voice"]CODE
LOWbindings/python/runanywhere/api/embeddings.py14__all__ = ["embeddings"]CODE
LOWbindings/python/runanywhere/api/rag.py18__all__ = ["RagSession", "rag"]CODE
LOWbindings/python/runanywhere/api/diarization.py24__all__ = ["diarization"]CODE
LOWbindings/python/runanywhere/api/images.py20__all__ = ["images"]CODE
LOWbindings/python/runanywhere/api/lora.py20__all__ = ["lora"]CODE
LOWbindings/python/runanywhere/api/vad.py18__all__ = ["vad"]CODE
LOWbindings/python/runanywhere/api/stt.py15__all__ = ["stt"]CODE
LOWbindings/python/runanywhere/api/segmentation.py26__all__ = ["segmentation"]CODE
LOWbindings/python/runanywhere/_native/__init__.py116__all__ = ["get_core"]CODE
Excessive Try-Catch Wrapping30 hits · 31 pts
SeverityFileLineSnippetContext
LOWscripts/release/prepublish_check.py101 except Exception:CODE
LOWscripts/release/prepublish_check.py193 except Exception as e:CODE
LOWscripts/release/prepublish_check.py243 except Exception:CODE
LOWbindings/python/tests/conftest.py40 except Exception:CODE
LOWbindings/python/tests/conftest.py159 except Exception:CODE
LOWbindings/python/tests/test_smoke.py77 except Exception:CODE
LOWbindings/python/tests/fake_core.py327 except Exception: # noqa: BLE001CODE
LOWbindings/python/runanywhere/_handles.py117 except Exception: # noqa: BLE001CODE
LOWbindings/python/runanywhere/_rag_bridge.py23except Exception as exc: # pragma: no cover - exercised only on a protobuf-free installCODE
LOWbindings/python/runanywhere/events.py284 except Exception: # noqa: BLE001CODE
LOWbindings/python/runanywhere/download.py197 except Exception:CODE
LOWbindings/python/runanywhere/download.py441 except Exception as e: # noqa: BLE001 - surface a clear messageCODE
LOWbindings/python/runanywhere/_runtime.py91 except Exception: # noqa: BLE001 — URLError/timeout/TLS = transport failureCODE
LOWbindings/python/runanywhere/_runtime.py254 except Exception: # noqa: BLE001 — one bad unload must not block teardownCODE
LOWbindings/python/runanywhere/_runtime.py406 except Exception: # noqa: BLE001 — teardown is best effortCODE
LOWbindings/python/runanywhere/_runtime.py666 except Exception:CODE
LOWbindings/python/runanywhere/_streaming.py67 except Exception: # noqa: BLE001 — teardown must not raiseCODE
LOWbindings/python/runanywhere/server/app.py332 except Exception: # noqa: BLE001 — generic message; exact error stays server-sideCODE
LOWbindings/python/runanywhere/server/app.py338 except Exception: # noqa: BLE001 — best-effort cleanupCODE
LOWbindings/python/runanywhere/server/app.py361 except Exception: # noqa: BLE001CODE
LOWbindings/python/runanywhere/server/app.py435 except Exception as exc: # noqa: BLE001 — headers already sent (200)CODE
LOWbindings/python/runanywhere/server/app.py466 except Exception as exc: # noqa: BLE001CODE
LOWbindings/python/runanywhere/server/app.py709 except Exception as exc: # noqa: BLE001CODE
LOWbindings/python/runanywhere/server/app.py804 except Exception: # noqa: BLE001 — generic client-facing messageCODE
LOWbindings/python/runanywhere/server/manager.py58 except Exception: # noqa: BLE001 — status is metadata, never fatalCODE
LOWbindings/python/runanywhere/cli/handlers.py88 except Exception: # noqa: BLE001 — memory info is best-effort metadataCODE
LOWbindings/python/runanywhere/api/vad.py134 except Exception as error: # noqa: BLE001CODE
LOWbindings/python/runanywhere/api/vad.py157 except Exception: # noqa: BLE001CODE
LOWbindings/python/runanywhere/api/vad.py162 except Exception: # noqa: BLE001CODE
MEDIUMbindings/flutter/docs/Documentation.md459 print('Error [${e.errorCode}]: ${e.message}');CODE
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMcore/tests/test_sdk_event_stream.cpp287 // The robust contract for those bindings is to drainCOMMENT
MEDIUMcore/tests/scripts/run-tests-web.sh16# Drives the in-repo minimal harness (bindings/web/example). The fullCOMMENT
MEDIUMscripts/setup/setup.sh221 # The minimal harness is a standalone npm project (not a workspace member),COMMENT
MEDIUMscripts/setup/setup.sh236 # The minimal harness is a standalone npm project that symlinks both of theCOMMENT
MEDIUM.github/workflows/web-full-e2e.yml9# harness falls back to the in-repo minimal exampleCOMMENT
MEDIUM.github/workflows/release.yml903 # The browser gates drive the in-repo minimal harnessCOMMENT
LOWbindings/web/wasm/scripts/build.sh133 # Build every per-package target in sequence. We just set the flagsCOMMENT
MEDIUM…Sources/runanywhere_native/RagQueryStreamNativePort.mm77// Forward-declared (not pulled from rac_rag.h) so this helper stays robustCOMMENT
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOWcore/tests/scripts/run-tests-android.sh364 # Check if binary was pushedCOMMENT
LOWcore/tests/scripts/run-tests-linux.sh195 # Check if binary existsCOMMENT
LOWcore/scripts/macos/download-sherpa-onnx.sh55# Check if the complete release inventory is already built. Older runs copiedCOMMENT
LOWcore/scripts/macos/download-onnx.sh37# Check if already existsCOMMENT
LOWcore/scripts/ios/download-sherpa-onnx.sh34# Check if already exists and is validCOMMENT
LOWcore/scripts/linux/download-sherpa-onnx.sh76# Check if already downloadedCOMMENT
LOWbindings/web/wasm/scripts/setup-emsdk.sh70# Check if already installedCOMMENT
Slop Phrases2 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMcore/scripts/load-versions.sh8# After sourcing, you can use variables like:COMMENT
MEDIUM…unAnywhere/Public/API/Namespaces/ModelsNamespace.swift538 /// `.unspecified` is not a loadable slot; treat it as a language model.COMMENT
Fake / Example Data5 hits · 6 pts
SeverityFileLineSnippetContext
LOW.gitleaks.toml61 '''placeholder''',STRING
LOW…re/include/rac/infrastructure/network/rac_dev_config.h49 * "placeholder").COMMENT
LOW…rc/infrastructure/network/rac_dev_config_usability.cpp47 normalized.find("placeholder") == std::string::npos;CODE
LOW…tive/packages/core/cpp/bridges/ExternalConfigGuard.hpp50 value.find("placeholder") != std::string::npos;CODE
LOW…ources/RunAnywhere/CRACommons/include/rac_dev_config.h49 * "placeholder").COMMENT
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…/react-native/scripts/test_validate_public_packages.py373CODE
LOWbindings/python/runanywhere/_llm_stream.py64CODE
LOWbindings/python/runanywhere/server/__init__.py20CODE
LOWbindings/python/runanywhere/server/app.py530CODE
LOW…dings/kotlin/scripts/test_validate_public_artifacts.py182CODE