AI Slop Code Risk Monitor

Edge0-AI/Edge0

SlopCodeMonitor badge for Edge0-AI/Edge0 Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Run 35B MoE models in ~2.5 GB of RAM. Weights stream from SSD; a trained router predicts loads a step ahead. Mac, iPhone, Android, Windows supported

4.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for Edge0-AI/Edge0, a Python project with 8,901 GitHub stars. SynthScan examined 183,524 lines of code across 861 source files, recording 501 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.

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

4.2
Adjusted Signal
4.2
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
8.9K
Stars
Python
Language
183.5K
Lines of Code
861
Files
501
Pattern Hits
2026-10-31
Scan Date
0.04
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 8.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 9.0/100 · LOW

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

Agent Over-Engineering Ratio 6.9/100 · LOW

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

PR Review Velocity Impact 18.4/100 · LOW

Which changes need focused human review? 501 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 15HIGH 20MEDIUM 5LOW 461

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 501 distinct pattern matches across 14 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.

Hallucination Indicators15 hits · 185 pts
SeverityFileLineSnippetContext
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt22 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt25 val want = androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt90 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt123 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt124 val want = androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt128 val syncMode = androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt133 val probeThinking = (androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt161 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt162 val want = androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt206 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt238 val mode = androidx.test.platform.app.InstrumentationRegistry.getArguments()CODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt240 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL⚡…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt241 val want = androidx.test.platform.app.InstrumentationRegistry.getArguments().getString("model") ?: "edge0-35b.ggCODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt272 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
CRITICAL…oidTest/java/dev/edge0/runtime/app/LlamaRuntimeTest.kt300 val ctx = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().targetContextCODE
Hyper-Verbose Identifiers120 hits · 138 pts
SeverityFileLineSnippetContext
LOW⚡python/tests/test_moe_spec.py56def test_block_of_digit_segments():CODE
LOW⚡python/tests/test_moe_spec.py64def test_layer_exists_stops_at_end_of_list():CODE
LOW⚡python/tests/test_moe_spec.py73def test_layer_exists_stops_on_attribute_error():CODE
LOW⚡python/tests/test_moe_spec.py81def test_layer_exists_reraises_unrelated_index_error():CODE
LOW⚡python/tests/test_moe_spec.py92def test_layer_exists_reraises_unrelated_attribute_error(block_path):CODE
LOW⚡python/tests/test_moe_spec.py99def test_layer_of_defaults_from_block_path():CODE
LOW⚡python/tests/test_moe_spec.py106def test_layer_of_plain_list_path():CODE
LOW⚡python/tests/test_moe_spec.py115def test_bundle_projs_layouts():CODE
LOW⚡python/tests/test_registry.py12def test_both_tiers_registered():CODE
LOW⚡python/tests/test_registry.py16def test_type_aliases_resolve():CODE
LOW⚡python/tests/test_registry.py24def test_auto_config_defaults(name):CODE
LOWpython/tests/test_registry.py98def test_prefill_ondemand_switch_maps_onto_the_tier_preset():CODE
LOWpython/tests/test_registry.py135def test_unknown_name_lists_registry():CODE
LOWpython/tests/test_registry.py140def test_adapter_module_exposes_config():CODE
LOWpython/tests/test_tool_calls.py52def test_ling_parses_real_template_span():CODE
LOWpython/tests/test_tool_calls.py63def test_qwen_parses_real_template_span_with_multiline_value():CODE
LOW⚡python/tests/test_tool_calls.py76def test_no_tool_call_leaves_content_unchanged_stripped():CODE
LOW⚡python/tests/test_tool_calls.py83def test_prose_before_tool_call_is_preserved_as_content():CODE
LOW⚡python/tests/test_tool_calls.py90def test_multiple_tool_calls_in_one_response():CODE
LOWpython/tests/test_tool_calls.py105def test_qwen_malformed_block_kept_as_content():CODE
LOWpython/tests/test_tool_calls.py123def test_incomplete_or_unconsumed_arguments_are_preserved(parser, body):CODE
LOW⚡python/tests/test_tool_calls.py134def test_zero_argument_tool_call(parser, text):CODE
LOW⚡python/tests/test_tool_calls.py140def test_qwen_function_allows_surrounding_whitespace():CODE
LOW⚡python/tests/test_tool_calls.py147def test_malformed_blocks_survive_between_valid_calls():CODE
LOW⚡python/tests/test_tool_calls.py154def test_ling_argument_coercion_numbers_and_json():CODE
LOWpython/tests/test_streaming_math.py150def test_exact_matches_reference(layer):CODE
LOWpython/tests/test_streaming_math.py168def test_staged_matches_exact(layer):CODE
LOWpython/tests/test_streaming_math.py191def test_staged_replace_matches_exact(layer):CODE
LOWpython/tests/test_streaming_math.py213def test_staged_fallback_when_empty(layer):CODE
LOWpython/tests/test_streaming_math.py233def test_full_layer_prefill_matches_exact(layer):CODE
LOWpython/tests/test_streaming_math.py257def test_hot_stack_matches_exact(layer):CODE
LOWpython/tests/test_streaming_math.py290def test_hot_stack_has_zero_overflow_row(layer):CODE
LOWpython/tests/test_streaming_math.py304def test_hot_stack_with_misses_matches_exact(layer):CODE
LOWpython/tests/test_streaming_math.py322def test_double_buffered_swap(layer):CODE
LOWpython/tests/test_streaming_math.py349def test_install_discovers_layer_count(tmp_path):CODE
LOW⚡python/tests/test_cli_flags.py13def test_prefill_ondemand_reaches_the_engine(cmd):CODE
LOW⚡python/tests/test_cli_flags.py19def test_prefill_ondemand_defaults_off(cmd):CODE
LOW⚡python/tests/test_cli_flags.py24def test_existing_engine_flags_still_map():CODE
LOW⚡python/tests/test_cli_flags.py32def test_serve_keeps_its_own_flags():CODE
LOW⚡python/tests/test_cli_flags.py41def test_entrypoint_preserves_prerouter_contract(CODE
LOW⚡python/tests/test_prefill_hook.py50def test_full_layer_disabled_never_loads_a_whole_layer():CODE
LOW⚡python/tests/test_prefill_hook.py54def test_full_layer_default_still_loads_every_layer():CODE
LOW⚡python/tests/test_prefill_hook.py59def test_full_layer_honors_the_leading_layer_count():CODE
LOW⚡python/tests/test_prefill_hook.py63def test_hot_window_survives_full_layer_disabled():CODE
LOW⚡python/tests/test_prefill_hook.py69def test_hot_stack_layer_is_not_also_loaded_whole():CODE
LOWpython/tests/test_streaming_install.py18def test_install_discovers_mixed_layers(monkeypatch):CODE
LOWpython/tests/test_streaming_install.py43def test_install_rejects_empty_layer_list():CODE
LOW⚡python/tests/test_server.py175def test_parse_basic_defaults():CODE
LOW⚡python/tests/test_server.py185def test_parse_multipart_content_joins_text():CODE
LOW⚡python/tests/test_server.py195def test_parse_stream_flag_and_sampling():CODE
LOW⚡python/tests/test_server.py205def test_parse_max_completion_tokens():CODE
LOW⚡python/tests/test_server.py213def test_parse_preserves_tools_and_tool_choice():CODE
LOW⚡python/tests/test_server.py219def test_parse_message_tool_calls_and_tool_role_roundtrip():CODE
LOW⚡python/tests/test_server.py235def test_parse_normalizes_tool_arguments_without_mutating_payload(arguments):CODE
LOW⚡python/tests/test_server.py252def test_parse_rejects_invalid_tool_arguments(arguments):CODE
LOW⚡python/tests/test_server.py262def test_parse_rejects_invalid_tool_call_shapes(calls):CODE
LOW⚡python/tests/test_server.py269def test_parse_tool_call_without_arguments_uses_empty_object():CODE
LOW⚡python/tests/test_server.py387def test_handlers_healthz_and_models():CODE
LOW⚡python/tests/test_server.py396def test_handlers_completions_rejected():CODE
LOW⚡python/tests/test_server.py403def test_chat_once_response_shape():CODE
60 more matches not shown…
Unused Imports137 hits · 135 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_moe_spec.py3CODE
LOWpython/tests/test_registry.py3CODE
LOWpython/tests/test_registry.py7CODE
LOWpython/tests/test_tool_calls.py15CODE
LOWpython/tests/test_streaming_math.py10CODE
LOWpython/tests/test_cli_flags.py3CODE
LOWpython/tests/test_prefill_hook.py13CODE
LOWpython/tests/test_server.py9CODE
LOWpython/tests/test_server.py13CODE
LOWpython/tests/test_server.py23CODE
LOWpython/tests/test_server.py32CODE
LOWpython/tests/test_e2e_slow.py8CODE
LOWpython/tests/test_repo_hygiene.py14CODE
LOWpython/tests/test_strip_vision_weights.py6CODE
LOWpython/tests/test_sampling.py3CODE
LOWpython/tests/test_sampling.py6CODE
LOWpython/tests/test_upload_hf.py3CODE
LOWpython/examples/bench.py24CODE
LOWpython/examples/demo.py20CODE
LOWpython/scripts/generate_example.py19CODE
LOWpython/scripts/e2e_smoke.py12CODE
LOWpython/scripts/strip_vision_weights.py12CODE
LOWpython/scripts/fetch_models.py28CODE
LOWpython/scripts/fetch_models.py32CODE
LOWpython/src/edge0/config.py3CODE
LOWpython/src/edge0/config.py5CODE
LOWpython/src/edge0/registry.py10CODE
LOWpython/src/edge0/registry.py122CODE
LOWpython/src/edge0/registry.py88CODE
LOWpython/src/edge0/registry.py99CODE
LOWpython/src/edge0/registry.py109CODE
LOWpython/src/edge0/__init__.py17CODE
LOWpython/src/edge0/cli.py11CODE
LOWpython/src/edge0/cli.py18CODE
LOWpython/src/edge0/sampling.py4CODE
LOWpython/src/edge0/attention/spec.py15CODE
LOWpython/src/edge0/backends/__init__.py44CODE
LOWpython/src/edge0/backends/__init__.py44CODE
LOWpython/src/edge0/backends/__init__.py44CODE
LOWpython/src/edge0/backends/__init__.py44CODE
LOWpython/src/edge0/backends/base.py8CODE
LOWpython/src/edge0/backends/mlx/backend.py8CODE
LOWpython/src/edge0/backends/mlx/backend.py10CODE
LOWpython/src/edge0/backends/mlx/backend.py11CODE
LOWpython/src/edge0/backends/mlx/backend.py13CODE
LOWpython/src/edge0/backends/mlx/backend.py13CODE
LOWpython/src/edge0/backends/mlx/io.py3CODE
LOWpython/src/edge0/backends/mlx/__init__.py7CODE
LOWpython/src/edge0/backends/mlx/__init__.py7CODE
LOWpython/src/edge0/backends/mlx/__init__.py7CODE
LOWpython/src/edge0/backends/mlx/__init__.py7CODE
LOWpython/src/edge0/backends/mlx/__init__.py7CODE
LOWpython/src/edge0/backends/mlx/quant.py3CODE
LOWpython/src/edge0/backends/mlx/_impl/bailing_hybrid.py2CODE
LOWpython/src/edge0/backends/mlx/_impl/qwen3_next.py3CODE
LOWpython/src/edge0/backends/mlx/_impl/qwen3_next.py7CODE
LOWpython/src/edge0/prerouter/__init__.py11CODE
LOWpython/src/edge0/prerouter/__init__.py11CODE
LOWpython/src/edge0/prerouter/__init__.py11CODE
LOWpython/src/edge0/prerouter/__init__.py12CODE
77 more matches not shown…
Over-Commented Block134 hits · 134 pts
SeverityFileLineSnippetContext
LOWmacos/crates/engine-native/src/expertio.hpp1// Expert load/staging: mmap shards, global LRU, prefetch buffer, and staged double-buffer.COMMENT
LOWmacos/crates/engine-native/src/qgemm.cpp1#include "qgemm.hpp"COMMENT
LOWmacos/crates/engine-native/src/net35.hpp1// 35b (Qwen3.5-MoE) forward graph: mixed GatedDeltaNet and full attention.COMMENT
LOWmacos/crates/engine-native/src/fwd_common.hpp1// Resident non-expert weights and shared forward ops (safio read → heap → mlx no-op deleter).COMMENT
LOWmacos/crates/engine-native/src/net8b.hpp1// 8b (Ling 3.0 hybrid) forward graph: KDA/MLA mix, L0 dense FFN, MoE 128-choose-8 + shared.COMMENT
LOWmacos/crates/engine-native/src/stepprefetch.hpp1// Async per-step prefetch: submit(step i+1) returns a ticket; IO threads load intoCOMMENT
LOWmacos/crates/engine-native/src/lora.hpp1// Unmerged parallel LoRA: y = base(x) + (scale * ((x.f16 @ A^T) @ B^T)).astype(y.dtype), scale = alpha/r.COMMENT
LOWmacos/crates/engine-native/src/net8b.cpp1#include "net8b.hpp"COMMENT
LOWmacos/crates/engine-native/src/abiface.cpp1#include "engine-abi.h"COMMENT
LOWmacos/crates/engine-native/src/expertio.cpp1#include "expertio.hpp"COMMENT
LOWmacos/crates/engine-native/src/hotstack.hpp1// Cross-layer LRU hot stack: explicit heap buffers + F_NOCACHE pread (eviction is testable).COMMENT
LOWmacos/crates/engine-native/src/genstream.hpp1// Generation stream: ABI wrapper around net prefill/step plus sampling.COMMENT
LOWmacos/crates/engine-native/src/net35.cpp1#include "net35.hpp"COMMENT
LOWmacos/crates/edge0-core/src/state.rs101 #[serde(default, skip_serializing_if = "Option::is_none")]COMMENT
LOWmacos/crates/edge0-cli/src/main.rs41 keep_alive: Option<String>,COMMENT
LOWmacos/third_party/mlx/mlx/mlx.h1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/mlx.h21#include "mlx/random.h"COMMENT
LOWmacos/third_party/mlx/mlx/ops.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/transforms.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/threadpool.h1// This code was modified from https://github.com/progschj/ThreadPoolCOMMENT
LOWmacos/third_party/mlx/mlx/threadpool.h21// 3. This notice may not be removed or altered from any sourceCOMMENT
LOWmacos/third_party/mlx/mlx/small_vector.h1// Copyright © 2025 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/small_vector.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWmacos/third_party/mlx/mlx/small_vector.h41#elseCOMMENT
LOWmacos/third_party/mlx/mlx/small_vector.h81// Minimal SmallVector implementation. Uses inline storage first, switches toCOMMENT
LOWmacos/third_party/mlx/mlx/scheduler.h1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/api.h1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/api.h21#define MLX_API __declspec(dllexport)COMMENT
LOWmacos/third_party/mlx/mlx/export.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/compile.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/primitives.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/primitives.cpp5361 // - A_m = A [..., M, K] * mask_b_lhs [..., MP, KP]COMMENT
LOWmacos/third_party/mlx/mlx/array.h1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/graph_utils.cpp1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/einsum.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/distributed/nccl/nccl.cpp1// NCCL distributed support currently requires Unix socket APIsCOMMENT
LOW…third_party/mlx/mlx/distributed/mpi/mpi_declarations.h1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/distributed/ring/ring.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/io/load.h1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/io/safetensors.cpp1// Copyright © 2023 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/io/safetensors.cpp21#define ST_I8 "I8"COMMENT
LOWmacos/third_party/mlx/mlx/io/load.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/gpu/primitives.cpp1// Copyright © 2025 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/quantized.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/distributed.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/device.h1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/matmul.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/compiled.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/hadamard.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/indexing.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/fft.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/fft.cpp301COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/device.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/device.cpp421 stream.temporaries.insert(COMMENT
LOW…mlx/mlx/backend/metal/scaled_dot_product_attention.cpp1// Copyright © 2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/primitives.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/conv.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOW…_party/mlx/mlx/backend/metal/make_compiled_preamble.sh1#!/bin/bashCOMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/reduce.cpp1// Copyright © 2023-2024 Apple Inc.COMMENT
LOWmacos/third_party/mlx/mlx/backend/metal/kernels/fft.h1// Copyright © 2024 Apple Inc.COMMENT
74 more matches not shown…
Empty Error Handlers16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHpython/examples/bench.py171except ValueError:CODE
HIGHpython/src/edge0/registry.py77except Exception:CODE
HIGHpython/src/edge0/backends/mlx/io.py143except Exception:CODE
HIGHpython/src/edge0/server/app.py323except (BrokenPipeError, ConnectionResetError):CODE
HIGHpython/src/edge0/streaming/layer.py920except Exception: # best-effortCODE
HIGHpython/src/edge0/streaming/layer.py755except Exception:CODE
HIGHpython/src/edge0/streaming/layer.py1452except Exception:CODE
HIGHpython/src/edge0/streaming/mmap.py49except Exception: # noqa: BLE001 — advisory onlyCODE
HIGHpython/src/edge0/streaming/mmap.py76except Exception: # noqa: BLE001 — advisory onlyCODE
HIGHpython/src/edge0/engine/ling.py188except Exception: # noqa: BLE001 — advisory onlyCODE
HIGHpython/src/edge0/engine/ling.py196except Exception: # noqa: BLE001 — advisory onlyCODE
HIGHpython/src/edge0/engine/ling.py149except Exception: # noqa: BLE001 — tokenizer optional for CLICODE
HIGHpython/src/edge0/engine/qwen.py146except Exception: # noqa: BLE001 — tokenizer optional for CLICODE
HIGHpython/src/edge0/engine/base.py176except Exception: # noqa: BLE001 — best-effortCODE
HIGHpython/src/edge0/engine/base.py165except Exception: # noqa: BLE001 — best-effort shutdownCODE
HIGHwindows/tools/convert_mlx_to_gguf.py127except Exception:CODE
Excessive Try-Catch Wrapping26 hits · 30 pts
SeverityFileLineSnippetContext
LOWpython/src/edge0/registry.py77 except Exception:CODE
LOWpython/src/edge0/backends/mlx/io.py143 except Exception:CODE
MEDIUMpython/src/edge0/backends/mlx/io.py140def __del__(self):CODE
LOWpython/src/edge0/prerouter/stager.py139 except Exception: # noqa: BLE001 — any shape mismatch: per-head loopCODE
LOWpython/src/edge0/server/chat.py162 except Exception: # noqa: BLE001CODE
LOWpython/src/edge0/server/chat.py164 except Exception: # noqa: BLE001 — render failed: last resortCODE
LOWpython/src/edge0/server/app.py200 except Exception as exc: # pragma: no cover - transport-dependentCODE
MEDIUMpython/src/edge0/server/app.py159def produce():CODE
MEDIUMpython/src/edge0/streaming/layer.py522def _on_prefetch_done(self, expert, fut):CODE
MEDIUMpython/src/edge0/streaming/layer.py778def _submit_stage_locked(self, unique):CODE
LOWpython/src/edge0/streaming/layer.py408 except Exception: # noqa: BLE001 — advisory onlyCODE
LOWpython/src/edge0/streaming/layer.py525 except Exception:CODE
LOWpython/src/edge0/streaming/layer.py755 except Exception:CODE
LOWpython/src/edge0/streaming/layer.py807 except Exception:CODE
LOWpython/src/edge0/streaming/layer.py831 except Exception:CODE
LOWpython/src/edge0/streaming/layer.py920 except Exception: # best-effortCODE
LOWpython/src/edge0/streaming/layer.py1452 except Exception:CODE
LOWpython/src/edge0/streaming/mmap.py49 except Exception: # noqa: BLE001 — advisory onlyCODE
LOWpython/src/edge0/streaming/mmap.py76 except Exception: # noqa: BLE001 — advisory onlyCODE
LOWpython/src/edge0/engine/ling.py149 except Exception: # noqa: BLE001 — tokenizer optional for CLICODE
LOWpython/src/edge0/engine/ling.py188 except Exception: # noqa: BLE001 — advisory onlyCODE
LOWpython/src/edge0/engine/ling.py196 except Exception: # noqa: BLE001 — advisory onlyCODE
LOWpython/src/edge0/engine/qwen.py146 except Exception: # noqa: BLE001 — tokenizer optional for CLICODE
LOWpython/src/edge0/engine/base.py165 except Exception: # noqa: BLE001 — best-effort shutdownCODE
LOWpython/src/edge0/engine/base.py176 except Exception: # noqa: BLE001 — best-effortCODE
LOWwindows/tools/convert_mlx_to_gguf.py127 except Exception:CODE
Deep Nesting29 hits · 26 pts
SeverityFileLineSnippetContext
LOWpython/examples/bench.py211CODE
LOWpython/src/edge0/registry.py59CODE
LOWpython/src/edge0/backends/mlx/_impl/bailing_hybrid.py852CODE
LOWpython/src/edge0/server/chat.py175CODE
LOWpython/src/edge0/streaming/layer.py392CODE
LOWpython/src/edge0/streaming/layer.py539CODE
LOWpython/src/edge0/streaming/layer.py587CODE
LOWpython/src/edge0/streaming/layer.py709CODE
LOWpython/src/edge0/streaming/layer.py821CODE
LOWpython/src/edge0/streaming/layer.py894CODE
LOWpython/src/edge0/streaming/layer.py933CODE
LOWpython/src/edge0/streaming/layer.py991CODE
LOWpython/src/edge0/streaming/layer.py1111CODE
LOWpython/src/edge0/engine/ling.py233CODE
LOWpython/src/edge0/engine/ling.py248CODE
LOWpython/src/edge0/engine/ling.py277CODE
LOWpython/src/edge0/engine/qwen.py41CODE
LOWpython/src/edge0/engine/qwen.py201CODE
LOWpython/src/edge0/engine/qwen.py219CODE
LOWios/tools/repack_experts.py127CODE
LOWios/tools/repack_experts.py209CODE
LOWios/tools/repack_experts.py268CODE
LOWwindows/tools/repack_mlx_to_gguf.py216CODE
LOWwindows/tools/repack_mlx_to_gguf.py267CODE
LOWwindows/tools/repack_r3_8b.py53CODE
LOWwindows/tools/lora_mlx_to_gguf.py71CODE
LOWwindows/tools/convert_mlx_to_gguf.py51CODE
LOWwindows/tools/convert_mlx_to_gguf.py100CODE
LOWwindows/tools/repack_r3.py104CODE
Cross-Language Confusion4 hits · 25 pts
SeverityFileLineSnippetContext
HIGH⚡python/tests/test_server.py229 assert req.messages[1].content == "" # null, not the string "None"CODE
HIGHpython/src/edge0/backends/mlx/_impl/bailing_hybrid.py425 # transformers 4.x ``default`` (rope_scaling=null) computesCOMMENT
HIGHpython/src/edge0/server/chat.py74 # send content: null, not an omitted keyCOMMENT
HIGHpython/src/edge0/server/tool_calls.py38 booleans, null, objects, arrays) -- mirrors the template's ownSTRING
Modern Structural Boilerplate10 hits · 10 pts
SeverityFileLineSnippetContext
LOWpython/src/edge0/__init__.py21__all__ = [CODE
LOWpython/src/edge0/backends/__init__.py61__all__ = ["backend", "core", "io", "nn", "quant"]CODE
LOWpython/src/edge0/backends/mlx/__init__.py9__all__ = ["BackendImpl", "core", "io", "nn", "quant"]CODE
LOWpython/src/edge0/prerouter/__init__.py21__all__ = [CODE
LOWpython/src/edge0/server/__init__.py8__all__ = [CODE
LOWpython/src/edge0/models/__init__.py17__all__ = ["ModelConfig", "edge0_8b", "edge0_35b"]CODE
LOWpython/src/edge0/streaming/__init__.py10__all__ = [CODE
LOWpython/src/edge0/adapters/__init__.py5__all__ = ["LoraLinear", "install_lora"]CODE
LOWpython/src/edge0/engine/__init__.py18__all__ = [CODE
LOWpython/src/edge0/moe/__init__.py11__all__ = [CODE
Structural Annotation Overuse4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/adding-a-model.md17## Step 1: Create the adapter module and directoryCOMMENT
LOWdocs/adding-a-model.md21## Step 2: Define the `Config` subclass and `_defaults`COMMENT
LOWdocs/adding-a-model.md73## Step 4: Register with the registryCOMMENT
LOWdocs/adding-a-model.md112## Step 6: Testing recommendationsCOMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/src/edge0/backends/mlx/_impl/qwen3_5.py243CODE
LOWpython/src/edge0/backends/mlx/_impl/qwen3_next.py389CODE
LOWwindows/tools/r3_bench.py249CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMdocs/architecture.md53├── engine/ # inference orchestration (prefill/decode loop, subclassed per model)CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmacos/app/src/i18n/locales/en.json69 "placeholder": "Type a message, Enter to send",CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_upload_hf.py20 def handle_request(self, request):CODE