AI Slop Code RIsk Monitor

francescopace/espectre

Wi-Fi CSI motion sensing for ESP32. C++ SDK, ESPHome, Native, and Matter frontends, browser tools, and a CLI for the full device lifecycle. GPLv3 and commercial licensing.

12.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for francescopace/espectre, a Python project with 9,505 GitHub stars. SynthScan examined 220,618 lines of code across 738 source files, recording 2358 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 12.7 (Moderate 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.

12.7
Adjusted Signal
12.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
9.5K
Stars
Python
Language
220.6K
Lines of Code
738
Files
2.4K
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 30.9/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.0/100 · LOW

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

Agent Over-Engineering Ratio 39.2/100 · MEDIUM

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

PR Review Velocity Impact 51.0/100 · HIGH

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 0HIGH 86MEDIUM 178LOW 2094

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 2358 distinct pattern matches across 16 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.

Hyper-Verbose Identifiers1645 hits · 1406 pts
SeverityFileLineSnippetContext
LOWtools/replay_lightweight_candidates.py345def resolve_catalog_entry_path(CODE
LOWtools/replay_lightweight_candidates.py652def append_training_empty_rows(CODE
LOWtools/replay_lightweight_candidates.py780def feature_location_contribution(CODE
LOWtools/replay_lightweight_candidates.py852def session_centered_replay_scores(CODE
LOWtools/replay_lightweight_candidates.py1004def calibrated_startup_threshold(CODE
LOWtools/replay_lightweight_candidates.py1809def iter_calibration_policies(CODE
LOWtools/compare_detection_methods.py89def _extract_motion_start_from_description(description):CODE
LOWtools/compare_detection_methods.py134def resolve_context_aware_config_for_test(test_entry, static_presence_packets):CODE
LOWtools/compare_detection_methods.py154def resolve_context_aware_config(pair, static_presence_packets):CODE
LOWtools/compare_detection_methods.py184def calculate_adaptive_threshold(values, auto_factor=DEFAULT_ADAPTIVE_FACTOR):CODE
LOWtools/compare_detection_methods.py380def compare_detection_methods(CODE
LOWtools/fit_lightweight_detector.py361def base_threshold_from_centered(centered_threshold: float, idle_q95: float) -> float:CODE
LOWtools/analyze_system_tuning.py98def _evaluate_classic_configuration(CODE
LOWtools/analyze_raw_data.py149def analyze_all_pairs_from_dataset_info() -> list:CODE
LOWtools/compare_chips.py73def analyze_amplitudes_per_subcarrier(packets, name, num_subcarriers=64):CODE
LOWtools/benchmark_lightweight_candidate_pairs.py168def resolve_candidate_combinations(args: argparse.Namespace) -> List[Tuple[str, ...]]:CODE
LOWtools/benchmark_lightweight_candidate_pairs.py196def dataset_entry_by_filename() -> Dict[str, Dict[str, Any]]:CODE
LOWtools/plot_constellation.py69def plot_constellation_comparison(static_presence_packets, motion_packets,CODE
LOWtools/plot_constellation.py223def plot_single_subcarrier_grid(static_presence_packets, motion_packets,CODE
LOWtools/compare_reserved_selection.py56def _print_per_row_regressions(baseline_metrics, candidate_metrics):CODE
LOWtools/plot_heatmap.py153def build_samples_from_metadata(CODE
LOWtools/lib/npz_cache.py61def performance_report_result_parameters(CODE
LOWtools/lib/npz_cache.py72def load_performance_report_result(CODE
LOWtools/lib/npz_cache.py92def save_performance_report_result(CODE
LOWtools/lib/npz_cache.py139def npz_cache_progress_enabled() -> bool:CODE
LOWtools/lib/npz_cache.py154def npz_cache_progress_interval_s() -> float:CODE
LOWtools/lib/npz_cache.py424def _source_digest_memo_enabled() -> bool:CODE
LOWtools/lib/npz_cache.py481def _ml_feature_source_manifests() -> dict[str, Any]:CODE
LOWtools/lib/npz_cache.py506def _replay_policy_source_manifests() -> dict[str, Any]:CODE
LOWtools/lib/npz_cache.py523def _lightweight_detector_source_manifests() -> dict[str, Any]:CODE
LOWtools/lib/npz_cache.py695def clear_persisted_artifacts(*artifact_names: str) -> None:CODE
LOWtools/lib/npz_cache.py782def prune_persisted_artifacts(*artifact_names: str) -> dict[str, int]:CODE
LOWtools/lib/npz_cache.py893def _feature_index_parameters(parameters: Mapping[str, Any]) -> dict[str, Any]:CODE
LOWtools/lib/npz_cache.py932def _register_feature_artifact(CODE
LOWtools/lib/npz_cache.py972def load_feature_superset_artifact(CODE
LOWtools/lib/npz_cache.py1073def load_ml_training_source_metadata_artifact(CODE
LOWtools/lib/npz_cache.py1093def save_ml_training_source_metadata_artifact(CODE
LOWtools/lib/npz_cache.py1113def load_host_feature_row_spine_artifact(CODE
LOWtools/lib/npz_cache.py1137def save_host_feature_row_spine_artifact(CODE
LOWtools/lib/npz_cache.py1162def load_host_feature_column_artifact(CODE
LOWtools/lib/npz_cache.py1180def save_host_feature_column_artifact(CODE
LOWtools/lib/npz_cache.py1199def classic_replay_row_parameters(CODE
LOWtools/lib/npz_cache.py1256def ml_training_augmentation_row_parameters(CODE
LOWtools/lib/npz_cache.py1279def load_ml_training_augmentation_row_artifact(CODE
LOWtools/lib/npz_cache.py1329def save_ml_training_augmentation_row_artifact(CODE
LOWtools/lib/npz_cache.py1362def load_ml_replay_row_artifact(CODE
LOWtools/lib/npz_cache.py1438def save_ml_replay_row_artifact(CODE
LOWtools/lib/npz_cache.py1473def load_classic_replay_row_artifact(CODE
LOWtools/lib/npz_cache.py1513def save_classic_replay_row_artifact(CODE
LOWtools/lib/cpp_parity.py257def compare_cpp_and_python_report_data(CODE
LOWtools/lib/temporal_csi_sampler.py38def minimum_sample_spacing_us(target_pps):CODE
LOWtools/lib/temporal_csi_sampler.py117 def clear_window_preserving_phase(self):CODE
LOWtools/lib/temporal_csi_sampler.py161 def _within_neighbor_tolerance(self, slot, elapsed_us):CODE
LOWtools/lib/runtime_policy.py68def nominal_packet_interval_us(window_packets):CODE
LOW⚡tools/lib/csi_io.py992 def _update_final_raw_diagnostics(self) -> None:CODE
LOWtools/lib/csi_io.py163def _raise_unsafe_npz_object_array(filepath: Path, key: str | None = None, exc: Exception | None = None):CODE
LOWtools/lib/csi_io.py178def normalize_stored_csi_bin_layout(csi: np.ndarray) -> np.ndarray:CODE
LOWtools/lib/csi_io.py203def _load_npz_arrays_uncached(filepath: Path) -> Dict[str, np.ndarray]:CODE
LOWtools/lib/csi_io.py875 def _widen_raw_receive_window(self) -> None:CODE
LOWtools/lib/csi_io.py1017 def apply_final_raw_diagnostics(self, packet: CSIPacket) -> None:CODE
1585 more matches not shown…
Decorative Section Separators111 hits · 372 pts
SeverityFileLineSnippetContext
MEDIUMtools/benchmark_subcarrier_aggregation.py112# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py114# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py172# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py174# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py292# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py294# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py359# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py361# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py444# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py446# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py590# =============================================================================COMMENT
MEDIUMtools/benchmark_subcarrier_aggregation.py592# =============================================================================COMMENT
MEDIUMtools/compare_chips.py196 # =========================================================================COMMENT
MEDIUMtools/compare_chips.py198 # =========================================================================COMMENT
MEDIUMtools/compare_chips.py232 # =========================================================================COMMENT
MEDIUMtools/compare_chips.py234 # =========================================================================COMMENT
MEDIUMtools/compare_chips.py262 # =========================================================================COMMENT
MEDIUMtools/compare_chips.py264 # =========================================================================COMMENT
MEDIUM⚡tools/compare_chips.py289 # =========================================================================COMMENT
MEDIUM⚡tools/compare_chips.py291 # =========================================================================COMMENT
MEDIUM⚡tools/compare_chips.py301 # =========================================================================COMMENT
MEDIUM⚡tools/compare_chips.py303 # =========================================================================COMMENT
MEDIUM⚡tools/plot_constellation.py121 # ========================================================================COMMENT
MEDIUM⚡tools/plot_constellation.py123 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py138 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py140 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py155 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py157 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py174 # ========================================================================COMMENT
MEDIUMtools/plot_constellation.py176 # ========================================================================COMMENT
MEDIUMtools/lib/high_accuracy_detector.py100# ============================================================================COMMENT
MEDIUMtools/lib/high_accuracy_detector.py102# ============================================================================COMMENT
MEDIUMtools/lib/high_accuracy_detector.py441# ============================================================================COMMENT
MEDIUMtools/lib/high_accuracy_detector.py443# ============================================================================COMMENT
MEDIUMtools/lib/utils.py160# =============================================================================COMMENT
MEDIUMtools/lib/utils.py162# =============================================================================COMMENT
MEDIUM⚡tools/lib/dataset_quality/runner.py127 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tools/lib/dataset_quality/runner.py129 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tools/lib/dataset_quality/runner.py137 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tools/lib/dataset_quality/runner.py139 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py169 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py171 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py245 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py247 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py261 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py263 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py276 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py278 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py303 # ------------------------------------------------------------------COMMENT
MEDIUMtools/lib/dataset_quality/runner.py305 # ------------------------------------------------------------------COMMENT
MEDIUM…_traffic_generator_addon/espectre_traffic_generator.py64# =========================================COMMENT
MEDIUM⚡test/python/conftest.py269# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py271# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py332# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py334# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py410# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py412# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py420# ============================================================================COMMENT
MEDIUM⚡test/python/conftest.py422# ============================================================================COMMENT
MEDIUMtest/python/conftest.py146# ============================================================================COMMENT
51 more matches not shown…
Cross-Language Confusion46 hits · 276 pts
SeverityFileLineSnippetContext
HIGH⚡test/python/micro/test_micro_protocol.py392 assert "return origin != NULL && origin[0] != '\\0' &&" in sourceCODE
HIGH⚡test/python/micro/test_micro_protocol.py399 assert "direct_state.event_work_pending || direct_state.heartbeat_work_pending" in sourceCODE
HIGH⚡test/python/micro/test_micro_protocol.py403 assert "if (active && result != ESP_OK)" in sourceCODE
HIGH⚡test/python/micro/test_micro_protocol.py598 if (!strict || length != strlen(body) + 1U || json_kind == 0) return NULL;CODE
HIGH⚡test/python/micro/test_micro_protocol.py602static bool cJSON_IsObject(const cJSON *value) { return value != NULL && value->type == cJSON_Object; }CODE
HIGH⚡test/python/micro/test_micro_protocol.py604static bool cJSON_IsArray(const cJSON *value) { return value != NULL && value->type == cJSON_Array; }CODE
HIGH⚡test/python/micro/test_micro_protocol.py605static bool cJSON_IsString(const cJSON *value) { return value != NULL && value->type == cJSON_String; }CODE
HIGH⚡test/python/micro/test_micro_protocol.py619 if (s && strlen(response_body)+length < sizeof(response_body)) strncat(response_body, s, length);CODE
HIGH⚡test/python/micro/test_micro_protocol.py624 if (strcmp(k, "Connection") == 0 && strcmp(v, "close") == 0) close_connection = true;CODE
HIGH⚡test/python/micro/test_micro_protocol.py628 if (content_type == NULL || strlen(content_type) >= size) return ESP_FAIL;CODE
HIGH⚡test/python/micro/test_micro_protocol.py695 CHECK(!queued && snapshot_reads == 0U && parser_calls == 1U);CODE
HIGH⚡test/python/micro/test_micro_protocol.py705 CHECK(snapshot_reads == (request.method == HTTP_GET && strcmp(direct_routes[route].command, "diagnostics") != 0)CODE
HIGH⚡test/python/micro/test_micro_protocol.py711 CHECK(!queued && parser_calls == 0U && direct_state.malformed_requests == 1U);CODE
HIGH⚡test/python/micro/test_micro_protocol.py715 CHECK(!queued && parser_calls == 0U && direct_state.malformed_requests == 1U);CODE
HIGH⚡test/python/micro/test_micro_protocol.py719 CHECK(!queued && close_connection && parser_calls == 0U);CODE
HIGH⚡test/python/micro/test_micro_protocol.py724 CHECK(!queued && parser_calls == 0U);CODE
HIGH⚡test/python/micro/test_micro_protocol.py730 CHECK(!queued && strcmp(response_status, "409 Conflict") == 0);CODE
HIGHtest/python/micro/test_micro_protocol.py680 CHECK(queued != oversized && close_connection == oversized);CODE
HIGHtest/python/micro/test_micro_protocol.py684 CHECK(!oversized || (receive_calls == 0U && parser_calls == 0U));CODE
HIGH⚡test/python/micro/test_espectre_cli_micro.py1684 hw = hw || info.rx_ctrl.rxend_state || !info.rx_ctrl.rx_channel_estimate_info_vld;CODE
HIGH⚡test/python/micro/test_espectre_cli_micro.py1686 hw = hw || (info.first_word_invalid && (absent || (info.len != 128 && info.len != 256)));CODE
HIGH⚡test/python/micro/test_espectre_cli_micro.py1687 const bool rejected = hw || absent || !info.len || (info.len & 1);CODE
HIGHtest/python/micro/test_espectre_cli_micro.py887 assert "max_data_len < 1 || max_data_len > CSI_MAX_DATA_LEN" in sourceCODE
HIGHtest/python/micro/test_espectre_cli_micro.py1056 if (disable_err == ESP_ERR_WIFI_NOT_STARTED || disable_err == ESP_ERR_WIFI_NOT_INIT) {CODE
HIGHtest/python/micro/test_espectre_cli_micro.py1709 assert(accepted == before + 1 && read_quality() == 1);CODE
HIGHtest/python/micro/test_espectre_cli_micro.py864 if (buffer_size < 1 || buffer_size > CSI_MAX_BUFFER_SIZE) {STRING
HIGHtest/python/micro/test_espectre_cli_micro.py918 if (state == NULL || state->ringbuffer.buf == NULL) {STRING
HIGHtest/python/host/cli/test_espectre_cli_wrappers.py2917 assert command == ["/bin/bash", "-lc", f". {shlex.quote(str(export_script))} >/dev/null && idf.py build"]CODE
HIGHtest/python/host/cli/test_espectre_cli_wrappers.py3042 assert calls == [["cmd.exe", "/d", "/c", f'call "{export_script}" >NUL && idf.py --version']]CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py812 if (info->buf == NULL || (info->len != 128 && info->len != 256)) {CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py820 centered_energy += info->buf[offset] != 0 || info->buf[offset + 1] != 0;CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py824 classic_energy += info->buf[offset] != 0 || info->buf[offset + 1] != 0;CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py826 return !((centered_energy == 0 && classic_energy == sizeof(classic_nulls)) ||CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py827 (classic_energy == 0 && centered_energy == sizeof(centered_nulls)));CODE
HIGHsrc/python/espectre_cli/micro_firmware.py200 esp_wifi_sta_get_ap_info(&ap_info) == ESP_OK && ap_info.primary > 14;CODE
HIGHsrc/python/espectre_cli/micro_firmware.py349 if (*mac_obj != MP_OBJ_NULL && mp_obj_is_type(*mac_obj, &mp_type_bytes)) {CODE
HIGHsrc/python/espectre_cli/micro_firmware.py352 unchanged = current_length == 6 && memcmp(current, mac, 6) == 0;CODE
HIGHsrc/python/espectre_cli/micro_firmware.py605 safe_deinit = """ if (state->ringbuffer.buf != NULL && wifi_csi_disable(state) != ESP_OK) {CODE
HIGHsrc/python/espectre_cli/micro_firmware.py628 if (state == NULL || state->ringbuffer.buf == NULL) {CODE
HIGHsrc/python/espectre_cli/micro_firmware.py985 " if (buffer_size < 1 || buffer_size > CSI_MAX_BUFFER_SIZE) {\n"CODE
HIGHsrc/python/espectre_cli/micro_firmware.py989 " if (max_data_len < 1 || max_data_len > CSI_MAX_DATA_LEN) {\n"CODE
HIGH⚡src/python/espectre_cli/micro_firmware.py836 " if (hardware_error || info == NULL || info->buf == NULL ||\n"STRING
HIGHsrc/python/espectre_cli/micro_firmware.py376 " if (state == NULL || state->ringbuffer.buf == NULL) {\n"STRING
HIGHsrc/python/espectre_cli/micro_firmware.py379 " if (info == NULL || state == NULL || state->ringbuffer.buf == NULL) {\n"STRING
HIGHsrc/python/espectre_cli/micro_firmware.py542 " if (info == NULL || state == NULL || state->ringbuffer.buf == NULL) {\n"STRING
HIGHsrc/python/espectre_cli/micro_firmware.py1230 channel_block = """ if (args[ARG_channel].u_int < 0 || args[ARG_channel].u_int > 255) {STRING
Empty Error Handlers40 hits · 200 pts
SeverityFileLineSnippetContext
HIGHtools/compare_detection_methods.py515except Exception:CODE
HIGHtools/compare_chips.py324except Exception:CODE
HIGHtools/plot_constellation.py118except Exception:CODE
HIGHtools/plot_constellation.py265except Exception:CODE
HIGHtools/lib/npz_cache.py777except OSError:CODE
HIGHtools/lib/npz_cache.py773except OSError:CODE
HIGHtools/lib/npz_cache.py855except OSError:CODE
HIGHtools/lib/npz_cache.py291except OSError:CODE
HIGHtools/lib/ui.py25except Exception:CODE
HIGHtools/lib/csi_io.py1195except (subprocess.TimeoutExpired, FileNotFoundError):CODE
HIGHtools/lib/csi_io.py885except OSError:CODE
HIGHtools/lib/csi_io.py1146except OSError:CODE
HIGHtools/lib/csi_io.py648except OSError:CODE
HIGHtools/lib/performance_report.py562except (ImportError, AttributeError):CODE
HIGHtools/lib/ml_training/training.py167except (AttributeError, RuntimeError, ValueError):CODE
HIGHtools/lib/ml_training/training.py172except AttributeError:CODE
HIGHtools/lib/dataset_quality/catalog.py350except (OSError, KeyError, ValueError, TypeError, IndexError):CODE
HIGHtools/lib/dataset_quality/rendering.py608except ValueError:CODE
HIGHtools/lib/dataset_quality/pairing.py86except (OSError, ValueError):CODE
HIGHtools/lib/firmware_benchmark/direct.py1524except (OSError, RuntimeError, TimeoutError):CODE
HIGHtools/lib/firmware_benchmark/direct.py252except DeviceDiscoveryError:CODE
HIGHtools/lib/firmware_benchmark/direct.py932except RuntimeError:CODE
HIGH…_traffic_generator_addon/espectre_traffic_generator.py318except subprocess.TimeoutExpired:CODE
HIGHtools/ha_traffic_generator_addon/ha_client.py104except ValueError:CODE
HIGHtools/ha_traffic_generator_addon/ha_client.py227except (aiohttp.ClientError, ValueError, TypeError, asyncio.QueueFull):CODE
HIGHtools/ha_traffic_generator_addon/ha_client.py264except (HomeAssistantError, TimeoutError):CODE
HIGHtools/ha_traffic_generator_addon/ha_client.py315except (aiohttp.ClientError, TimeoutError, ValueError, KeyError, TypeError):CODE
HIGHtools/ha_traffic_generator_addon/panel.py236except TimeoutError:CODE
HIGH…ython/host/dataset/test_dataset_metadata_resolution.py337except FileNotFoundError:CODE
HIGH.github/scripts/build_firmware_compliance.py173except ValueError:CODE
HIGH.github/scripts/build_firmware_compliance.py281except importlib.metadata.PackageNotFoundError:CODE
HIGHsrc/python/espectre_cli/device_transport.py649except OSError:CODE
HIGHsrc/python/espectre_cli/esphome.py89except (OSError, ValueError, json.JSONDecodeError):CODE
HIGHsrc/python/espectre_cli/serial_monitor.py100except Exception:CODE
HIGHsrc/python/micro_espectre/runtime_main.py104except (ImportError, AttributeError, OSError, TypeError, ValueError):CODE
HIGHsrc/python/micro_espectre/protocol.py254except Exception: # pragma: no coverCODE
HIGHsrc/python/micro_espectre/wifi_bootstrap.py26except Exception:CODE
HIGHsrc/python/micro_espectre/wifi_bootstrap.py93except Exception:CODE
HIGHsrc/python/micro_espectre/wifi_bootstrap.py89except Exception:CODE
HIGHsrc/python/micro_espectre/wifi_bootstrap.py158except Exception:CODE
Excessive Try-Catch Wrapping110 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/train_ml_model.py289 print("Error: --evaluate-gates and --evaluate-selection are mutually exclusive")CODE
MEDIUM⚡tools/train_ml_model.py294 print(f"Error: {exc}")CODE
MEDIUM⚡tools/train_ml_model.py297 print("Error: --timing-warn-weight must be in the range (0.0, 1.0]")CODE
MEDIUM⚡tools/train_ml_model.py303 print(f"Error: {exc}")CODE
MEDIUM⚡tools/train_ml_model.py311 print("Error: --features requires at least one feature name")CODE
MEDIUM⚡tools/train_ml_model.py408 print("Error: experiment campaigns are mutually exclusive")CODE
MEDIUM⚡tools/train_ml_model.py413 print("Error: --force-promote and --no-export are mutually exclusive")CODE
MEDIUM⚡tools/train_ml_model.py416 print("Error: --force-promote requires an explicit --seed so the "CODE
MEDIUM⚡tools/train_ml_model.py446 print("Error: --gain-stress-gate cannot be combined with experiment flows")CODE
MEDIUM⚡tools/train_ml_model.py449 print("Error: --gain-stress-gate evaluates exported artifacts and cannot use --seed or seed-search")CODE
MEDIUM⚡tools/train_ml_model.py452 print("Error: --gain-stress-gate cannot be combined with --shap, --ablation-feature, or --correlation")CODE
MEDIUM⚡tools/train_ml_model.py455 print("Error: --gain-stress-gate evaluates exported artifacts and cannot use host-only --features")CODE
MEDIUM⚡tools/train_ml_model.py468 print("Error: --cross-environment and --cross-chip are mutually exclusive")CODE
MEDIUM⚡tools/train_ml_model.py471 print(f"Error: {mode} cannot be combined with experiment flows")CODE
MEDIUM⚡tools/train_ml_model.py474 print(f"Error: {mode} cannot be combined with --shap, --ablation-feature, or --correlation")CODE
MEDIUM⚡tools/train_ml_model.py477 print(f"Error: {mode} cannot be combined with seed search")CODE
MEDIUM⚡tools/train_ml_model.py480 print(f"Error: {mode} holds out one group at a time and "CODE
MEDIUMtools/train_ml_model.py332 print("Error: --features contains duplicate names")CODE
MEDIUMtools/train_ml_model.py428 print("Error: --force-promote applies only to a plain single-seed "CODE
MEDIUMtools/train_ml_model.py557 print("Error: --seed and --seed-search-until-improvement are mutually exclusive")CODE
MEDIUMtools/train_ml_model.py560 print("Error: --seed-search-until-improvement cannot be combined with --shap or --ablation-feature")CODE
MEDIUMtools/replay_lightweight_candidates.py2208 print(f"Error: {exc}", file=sys.stderr)CODE
LOWtools/compare_detection_methods.py515 except Exception:CODE
MEDIUMtools/compare_detection_methods.py876 print(f"Error: {e}")CODE
MEDIUMtools/compare_detection_methods.py879 print(f"Error: {e}")CODE
MEDIUMtools/analyze_seed_dispersion.py156 print(f"Error: {args.report} not found")CODE
MEDIUMtools/analyze_seed_dispersion.py162 print("Error: no per-seed runs with paired metrics in this report")CODE
MEDIUMtools/analyze_seed_dispersion.py174 print("Error: no replay appears in two or more seeds")CODE
MEDIUMtools/analyze_system_tuning.py352 print(f"Error: {e}")CODE
MEDIUMtools/analyze_raw_data.py78 print("Error: No packets found")CODE
LOWtools/compare_chips.py324 except Exception:CODE
MEDIUMtools/benchmark_lightweight_candidate_pairs.py670 print(f"Error: {exc}", file=sys.stderr)CODE
LOW⚡tools/plot_constellation.py118 except Exception:CODE
LOWtools/plot_constellation.py265 except Exception:CODE
MEDIUMtools/plot_constellation.py390 print(f"Error: {e}")STRING
LOWtools/lib/npz_cache.py150 except Exception:CODE
LOWtools/lib/npz_cache.py713 except Exception:CODE
LOWtools/lib/npz_cache.py886 except Exception:CODE
LOWtools/lib/npz_cache.py1025 except Exception:CODE
LOWtools/lib/ui.py25 except Exception:CODE
LOW⚡tools/lib/csi_io.py997 except Exception:CODE
LOWtools/lib/csi_io.py691 except Exception as exc:CODE
LOWtools/lib/csi_io.py697 except Exception as exc:CODE
LOWtools/lib/csi_io.py853 except Exception:CODE
LOWtools/lib/csi_io.py1050 except Exception as exc:CODE
LOWtools/lib/csi_io.py1078 except Exception:CODE
LOWtools/lib/segmentation.py103 except Exception as e:CODE
LOWtools/lib/segmentation.py119 except Exception as e:CODE
LOWtools/lib/segmentation.py532 except Exception as e:CODE
LOWtools/lib/segmentation.py540 except Exception as e:CODE
LOWtools/lib/ml_training/dataset.py670 except Exception as e:CODE
MEDIUM⚡tools/lib/ml_training/training.py3442 print("Error: --ablation-feature requires at least one feature name")CODE
MEDIUM⚡tools/lib/ml_training/training.py3445 print("Error: --ablation-feature contains duplicate names")CODE
MEDIUM⚡tools/lib/ml_training/training.py3455 print(f"Error: {exc}")CODE
MEDIUMtools/lib/ml_training/training.py731 print("Error: SHAP not installed. Run: pip install shap")CODE
MEDIUMtools/lib/ml_training/training.py968 print(f"Error: Missing dependency - {exc}")CODE
MEDIUMtools/lib/ml_training/training.py972 print(f"Error: {exc}")CODE
MEDIUMtools/lib/ml_training/training.py1024 print(f"Error: no {unit} metadata available for cross-{unit} CV")CODE
MEDIUMtools/lib/ml_training/training.py1334 print("Error: SHAP not installed. Run: pip install shap")CODE
MEDIUMtools/lib/ml_training/training.py1822 print(f"Error: Missing dependency - {e}")CODE
50 more matches not shown…
Unused Imports158 hits · 141 pts
SeverityFileLineSnippetContext
LOWtools/train_ml_model.py70CODE
LOWtools/train_ml_model.py70CODE
LOWtools/replay_lightweight_candidates.py26CODE
LOWtools/compare_detection_methods.py30CODE
LOWtools/analyze_seed_dispersion.py23CODE
LOWtools/fit_lightweight_detector.py43CODE
LOWtools/benchmark_subcarrier_aggregation.py36CODE
LOWtools/analyze_system_tuning.py27CODE
LOWtools/__init__.py12CODE
LOWtools/__init__.py13CODE
LOWtools/analyze_raw_data.py28CODE
LOWtools/prune_npz_cache.py12CODE
LOWtools/compare_chips.py36CODE
LOWtools/generate_performance_report.py12CODE
LOWtools/generate_performance_report.py27CODE
LOWtools/benchmark_lightweight_candidate_pairs.py28CODE
LOWtools/sweep_occupancy_floor.py19CODE
LOWtools/plot_constellation.py30CODE
LOWtools/compare_reserved_selection.py27CODE
LOWtools/benchmark_firmware.py6CODE
LOWtools/plot_heatmap.py20CODE
LOWtools/lib/bootstrap.py11CODE
LOWtools/lib/npz_cache.py12CODE
LOWtools/lib/cpp_parity.py11CODE
LOWtools/lib/runtime_policy.py23CODE
LOWtools/lib/runtime_policy.py23CODE
LOWtools/lib/runtime_policy.py23CODE
LOWtools/lib/csi_io.py11CODE
LOWtools/lib/occupancy_thinning.py5CODE
LOWtools/lib/dataset_metadata.py11CODE
LOWtools/lib/candidate_features.py14CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
LOWtools/lib/utils.py17CODE
98 more matches not shown…
Deep Nesting110 hits · 93 pts
SeverityFileLineSnippetContext
LOWtools/replay_lightweight_candidates.py487CODE
LOWtools/replay_lightweight_candidates.py1061CODE
LOWtools/replay_lightweight_candidates.py1809CODE
LOWtools/replay_lightweight_candidates.py1869CODE
LOWtools/compare_detection_methods.py488CODE
LOWtools/compare_detection_methods.py800CODE
LOWtools/fit_lightweight_detector.py367CODE
LOWtools/benchmark_subcarrier_aggregation.py394CODE
LOWtools/benchmark_subcarrier_aggregation.py551CODE
LOWtools/compare_chips.py155CODE
LOWtools/plot_constellation.py69CODE
LOWtools/plot_constellation.py223CODE
LOWtools/benchmark_firmware.py106CODE
LOWtools/plot_heatmap.py273CODE
LOWtools/lib/npz_cache.py782CODE
LOWtools/lib/npz_cache.py972CODE
LOWtools/lib/temporal_csi_sampler.py253CODE
LOWtools/lib/csi_io.py203CODE
LOWtools/lib/csi_io.py643CODE
LOWtools/lib/csi_io.py1920CODE
LOWtools/lib/csi_io.py1985CODE
LOWtools/lib/csi_io.py2092CODE
LOWtools/lib/csi_io.py2182CODE
LOWtools/lib/csi_io.py2243CODE
LOWtools/lib/dataset_metadata.py551CODE
LOWtools/lib/dataset_metadata.py702CODE
LOWtools/lib/candidate_features.py253CODE
LOWtools/lib/csi_features.py410CODE
LOWtools/lib/csi_features.py229CODE
LOWtools/lib/host_feature_trackers.py933CODE
LOWtools/lib/ml_feature_trackers.py45CODE
LOWtools/lib/ml_feature_trackers.py294CODE
LOWtools/lib/performance_report.py802CODE
LOWtools/lib/performance_report.py2339CODE
LOWtools/lib/lightweight_detector.py166CODE
LOWtools/lib/lightweight_detector.py305CODE
LOWtools/lib/ml_training/feature_cache.py957CODE
LOWtools/lib/ml_training/augmentation.py349CODE
LOWtools/lib/ml_training/dataset.py351CODE
LOWtools/lib/ml_training/dataset.py373CODE
LOWtools/lib/ml_training/dataset.py512CODE
LOWtools/lib/ml_training/dataset.py749CODE
LOWtools/lib/ml_training/preprocessing.py280CODE
LOWtools/lib/ml_training/training.py646CODE
LOWtools/lib/ml_training/training.py1425CODE
LOWtools/lib/ml_training/training.py1677CODE
LOWtools/lib/ml_training/training.py1734CODE
LOWtools/lib/ml_training/training.py2467CODE
LOWtools/lib/dataset_quality/catalog.py134CODE
LOWtools/lib/dataset_quality/catalog.py308CODE
LOWtools/lib/dataset_quality/pairing.py92CODE
LOWtools/lib/dataset_quality/pairing.py222CODE
LOWtools/lib/firmware_benchmark/analysis.py65CODE
LOWtools/lib/firmware_benchmark/direct.py226CODE
LOWtools/lib/firmware_benchmark/direct.py491CODE
LOWtools/lib/firmware_benchmark/direct.py622CODE
LOWtools/lib/firmware_benchmark/direct.py1134CODE
LOWtools/lib/firmware_benchmark/matter.py99CODE
LOWtools/lib/firmware_benchmark/report.py355CODE
LOWtools/lib/firmware_benchmark/report.py770CODE
50 more matches not shown…
Over-Commented Block68 hits · 68 pts
SeverityFileLineSnippetContext
LOWtools/lib/lightweight_detector.py61 # stays high at rest; Lightweight precision is limited there.COMMENT
LOWtest/python/performance/test_low_rssi_lightweight.py41 tuple(config.DEFAULT_SUBCARRIERS),COMMENT
LOWtest/web/generate_firmware_manifest.sh1#!/bin/bashCOMMENT
LOWtest/cpp/run_gcc13_coverage.sh1#!/bin/bashCOMMENT
LOWtest/cpp/run_all_tests.sh1#!/bin/bashCOMMENT
LOWtest/cpp/run_coverage.sh1#!/bin/bashCOMMENT
LOWtest/cpp/suites/core/test_high_accuracy_detector.cpp21#undef protectedCOMMENT
LOWtest/cpp/suites/frontend/test_frontend_controls.cpp21#include "sensing_switch.h"COMMENT
LOWtest/cpp/suites/integration/test_motion_detection.cpp21#include <string>COMMENT
LOWtest/cpp/suites/runtime/test_direct_http_service.cpp1/*COMMENT
LOWtest/cpp/suites/runtime/test_csi_pipeline.cpp1/*COMMENT
LOWtest/cpp/suites/runtime/test_runtime_helpers.cpp21#include "runtime_diagnostics_protocol.h"COMMENT
LOW…st/cpp/suites/runtime/test_runtime_detector_switch.cpp21#define private publicCOMMENT
LOWtest/cpp/suites/runtime/test_mdns_discovery_service.cpp1/*COMMENT
LOWtest/cpp/suites/runtime/test_device_identity.cpp1/*COMMENT
LOWtest/cpp/suites/runtime/test_traffic_generator.cpp1/*COMMENT
LOWtest/cpp/support/cnpy.cpp1// SPDX-License-Identifier: MITCOMMENT
LOWtest/cpp/support/benchmark_detector_resources.cpp1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…st/cpp/support/benchmark_lightweight_iqr_resources.cpp21#include <chrono>COMMENT
LOWtest/cpp/support/cnpy.h1// SPDX-License-Identifier: MITCOMMENT
LOWtest/cpp/support/csi_test_data.h21 * Commercial licensing available under separate agreement; see LICENSING.md.COMMENT
LOW.github/dependabot.yml1# Dependabot ConfigurationCOMMENT
LOW.github/sdk/optional_services_link_check.cpp1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…/micro_espectre/firmware/boards/mpconfigboard_common.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…/micro_espectre/firmware/boards/mpconfigboard_common.h21#define MICROPY_PY_HASHLIB (1)COMMENT
LOW…/micro_espectre/firmware/boards/mpconfigboard_common.h41#define MICROPY_PY_SYS_PS1_PS2 (0)COMMENT
LOW…e/firmware/boards/ESP32_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…firmware/boards/ESP32S2_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…firmware/boards/ESP32S3_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…firmware/boards/ESP32C6_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…firmware/boards/ESP32C3_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…firmware/boards/ESP32C5_MICRO_ESPECTRE/mpconfigboard.h1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…ro_espectre/firmware/native_components/native_direct.c1// SPDX-License-Identifier: GPL-3.0-onlyCOMMENT
LOW…ro_espectre/firmware/native_components/native_direct.c21#include "mdns.h"COMMENT
LOWsrc/cpp/espectre_sdk.h101 * ESPectre is dual-licensed: GPLv3, or a separately offered commercial licenseCOMMENT
LOWsrc/cpp/espectre_sdk.h121#include "runtime/runtime_snapshot.h"COMMENT
LOWsrc/cpp/CMakeLists.txt1# ESPectre SDK - ESP-IDF componentCOMMENT
LOWsrc/cpp/espectre_core_sdk.h21COMMENT
LOWsrc/cpp/espectre_protocol_sdk.h21#include "runtime/diagnostic_fields.h"COMMENT
LOWsrc/cpp/espectre_services_sdk.h21#include "espectre_protocol_sdk.h"COMMENT
LOWsrc/cpp/espectre_services_sdk.h41#include "runtime/esp_idf/wifi_lifecycle.h"COMMENT
LOWsrc/cpp/core/detector_limits.h61constexpr uint16_t DETECTOR_AUTOCORR_LAG_DEFAULT = 1U;COMMENT
LOWsrc/cpp/core/csi_format.h21#include "utils.h"COMMENT
LOWsrc/cpp/core/high_accuracy_detector.cpp321COMMENT
LOWsrc/cpp/frontend/native/app/main/app_main.cpp21#include <driver/gpio.h>COMMENT
LOWsrc/cpp/frontend/matter/app/CMakeLists.txt1# ESPectre Matter firmware buildCOMMENT
LOWsrc/cpp/frontend/matter/app/main/app_main.cpp1/*COMMENT
LOWsrc/cpp/frontend/matter/app/main/app_main.cpp21COMMENT
LOW…/cpp/frontend/esphome/components/espectre/espectre.cpp21#include "esphome/core/log.h"COMMENT
LOWsrc/cpp/frontend/esphome/components/espectre/espectre.h21#include "esphome/components/select/select.h"COMMENT
LOW…rontend/esphome/examples/home-assistant-dashboard.yaml1# ESPectre - Home Assistant DashboardCOMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-cyd-c5.yaml1# ESPectre - NM-CYD-C5 (ESP32-C5 Cheap Yellow Display)COMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-cyd-c5.yaml21COMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-c5.yaml1# ESPectre - ESP32-C5 ConfigurationCOMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-c3.yaml1# ESPectre - ESP32-C3 ConfigurationCOMMENT
LOW…p/frontend/esphome/examples/espectre-s3-touch-lcd.yaml1# ESPectre - ESP32-S3 Touch LCD 1.47"COMMENT
LOW…p/frontend/esphome/examples/espectre-s3-webserver.yaml1# ESPectre - ESP32-S3 with Web ServerCOMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-s3-led.yaml1# ESPectre - ESP32-S3 with Onboard LED FeedbackCOMMENT
LOWsrc/cpp/runtime/esp_idf/csi_pipeline.h21#include "csi_capture_service.h"COMMENT
LOWsrc/cpp/runtime/esp_idf/esp_idf_runtime.h21#include "runtime/pending_event.h"COMMENT
8 more matches not shown…
AI Structural Patterns29 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/analyze_raw_data.py306CODE
LOWtools/plot_heatmap.py273CODE
LOWtools/lib/csi_io.py2315CODE
LOWtools/lib/csi_io.py1348CODE
LOWtools/lib/csi_io.py1651CODE
LOWtools/lib/dataset_metadata.py551CODE
LOWtools/lib/candidate_features.py253CODE
LOWtools/lib/high_accuracy_detector.py194CODE
LOWtools/lib/csi_features.py410CODE
LOWtools/lib/performance_report.py802CODE
LOWtools/lib/lightweight_detector.py88CODE
LOWtools/lib/segmentation.py37CODE
LOWtools/lib/ml_training/feature_cache.py957CODE
LOWtools/lib/ml_training/dataset.py749CODE
LOWtools/lib/ml_training/training.py465CODE
LOWtools/lib/ml_training/training.py646CODE
LOWtools/lib/ml_training/training.py923CODE
LOWtools/lib/ml_training/training.py1734CODE
LOWtools/lib/ml_training/training.py2467CODE
LOWtools/lib/ml_training/training.py3423CODE
LOWtools/lib/ml_training/training.py3581CODE
LOWtools/lib/ml_training/training.py3830CODE
LOWtools/lib/dataset_quality/pairing.py273CODE
LOWtools/lib/firmware_benchmark/process.py48CODE
LOWtest/python/host/cli/test_csi_raw_record.py130CODE
LOWsrc/python/micro_espectre/runtime_diagnostics.py144CODE
LOWsrc/python/micro_espectre/console_output.py217CODE
LOWsrc/python/micro_espectre/device_utils.py139CODE
LOWsrc/python/micro_espectre/lightweight_detector.py36CODE
AI Slop Vocabulary10 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtools/lib/host_feature_trackers.py1074 """Return robust change in guarded cross-subcarrier log ratios.STRING
MEDIUMtools/lib/ml_training/evaluation.py422 """Ranking key for seeds/architectures under the robust evaluation protocol."""STRING
MEDIUM⚡tools/lib/ml_training/training.py3417 """Compare single-run candidates with safety first and robust CV leading."""STRING
MEDIUMtools/lib/ml_training/training.py1597 """Print the robust evaluation summary used for model selection."""STRING
MEDIUMtools/lib/ml_training/training.py2415 """Require deployment safety plus robust grouped-CV improvement."""STRING
MEDIUMtools/lib/ml_training/training.py3017 """Sort safely passing runs by robust grouped-CV performance."""STRING
MEDIUMtools/lib/dataset_quality/metrics.py252 """Collapse per-window invariant features into one robust evidence series."""STRING
MEDIUMtools/lib/dataset_quality/metrics.py276 """Return directional evidence series and idle robust axis stats."""STRING
MEDIUMtools/lib/dataset_quality/replay.py338 # Excursions are read against a robust bound built from the capture itself,COMMENT
MEDIUM⚡test/python/micro/test_csi_features.py176 # Aggregated IQR is the production robust-dispersion feature and risesCOMMENT
Redundant / Tautological Comments10 hits · 11 pts
SeverityFileLineSnippetContext
LOWtools/compare_detection_methods.py70# Check if ML model is available (production implementation).COMMENT
LOWtools/lib/filters.py217 # Check if current value is an outlierCOMMENT
LOW…_traffic_generator_addon/espectre_traffic_generator.py18 python3 espectre_traffic_generator.py status # Check if runningSTRING
LOW⚡test/python/performance/test_validation_real_data.py606 # Print resultsCOMMENT
LOWsrc/cpp/frontend/esphome/examples/espectre-c5.yaml49 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
LOWsrc/cpp/frontend/esphome/examples/espectre-c3.yaml47 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
LOWsrc/cpp/frontend/esphome/examples/espectre-esp32.yaml41 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
LOWsrc/cpp/frontend/esphome/examples/espectre-c6.yaml40 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
LOWsrc/cpp/frontend/esphome/examples/espectre-s2.yaml35 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
LOWsrc/cpp/frontend/esphome/examples/espectre-s3.yaml46 direct_api: true # Set false to disable Direct HTTP, SSE, raw CSI, and Direct mDNS discoveryCODE
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippetContext
LOWtest/web/generate_firmware_manifest.sh7# Usage:COMMENT
LOWtest/web/run_tests.sh7# Usage:COMMENT
LOWtest/cpp/run_gcc13_coverage.sh8# Usage:COMMENT
LOWtest/cpp/run_all_tests.sh7# Usage:COMMENT
LOWtest/cpp/run_coverage.sh8# Usage:COMMENT
LOW…rontend/esphome/examples/home-assistant-dashboard.yaml3# How to use:COMMENT
Modern Structural Boilerplate8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/__init__.py15__all__ = ['CSICollector', 'get_dataset_stats']CODE
LOW⚡tools/lib/csi_io.py992 def _update_final_raw_diagnostics(self) -> None:CODE
LOWtools/lib/csi_io.py595 def _update_pps(self) -> None:CODE
LOWtools/lib/high_accuracy_detector.py59__all__ = [CODE
LOWsrc/python/espectre_cli/device_discovery.py201 def update_service(self, zeroconf: Zeroconf, service_type: str, name: str) -> None:CODE
LOWsrc/python/espectre_cli/device_control.py105__all__ = [CODE
LOWsrc/python/espectre_cli/mqtt_shell.py455 def _set_active_device(self, device_id: str | None) -> None:CODE
LOWsrc/python/espectre_cli/mqtt_shell.py482 def _update_completer(self) -> None:CODE
Verbosity Indicators3 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡test/python/performance/test_validation_real_data.py920 # Step 1: Fixed-band bootstrapCOMMENT
LOW⚡test/python/performance/test_validation_real_data.py943 # Step 2: Build the production Lightweight detector with calibration stateCOMMENT
LOW⚡test/python/performance/test_validation_real_data.py956 # Step 3: Replay baseline and movement through the detectorCOMMENT
Structural Annotation Overuse3 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡test/python/performance/test_validation_real_data.py920 # Step 1: Fixed-band bootstrapCOMMENT
LOW⚡test/python/performance/test_validation_real_data.py943 # Step 2: Build the production Lightweight detector with calibration stateCOMMENT
LOW⚡test/python/performance/test_validation_real_data.py956 # Step 3: Replay baseline and movement through the detectorCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…t/performance_report/test_performance_report_inputs.py303 binary.write_text("placeholder")CODE