🛜 ESPectre 👻 - Motion detection system based on Wi-Fi spectre analysis (CSI), with Home Assistant integration.
This report presents the forensic synthetic code analysis of francescopace/espectre, a Python project with 8,796 GitHub stars. SynthScan v2.0 examined 57,583 lines of code across 179 source files, recording 752 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 23.1 places this repository in the Moderate 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).
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.
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.
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.
The scanner identified 752 distinct pattern matches across 15 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | micro-espectre/tools/csi_utils.py | 1106 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/csi_utils.py | 1108 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/csi_utils.py | 1361 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/csi_utils.py | 1363 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 31 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 33 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 55 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 57 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 94 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 96 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 124 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 126 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 458 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 460 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 1005 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 1007 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 1329 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/csi_utils.py | 1331 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 46 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 48 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 95 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 98 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 100 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 938 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 940 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 1071 | # ======================================================================== | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 1073 | # ======================================================================== | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 1079 | # ======================================================================== | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 1081 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 443 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 445 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 527 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 529 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 661 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 663 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1018 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1020 | # ============================================================================ | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1128 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1130 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1167 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/5_analyze_filter_turbulence.py | 1169 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 231 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 233 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 267 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 269 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 297 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 299 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 333 | # ========================================================================= | COMMENT |
| MEDIUM | micro-espectre/tools/9_compare_chips.py | 335 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/9_compare_chips.py | 361 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/9_compare_chips.py | 363 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/9_compare_chips.py | 373 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/9_compare_chips.py | 375 | # ========================================================================= | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/8_plot_constellation.py | 111 | # ======================================================================== | COMMENT |
| MEDIUM⚡ | micro-espectre/tools/8_plot_constellation.py | 113 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 128 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 130 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 145 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 147 | # ======================================================================== | COMMENT |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 164 | # ======================================================================== | COMMENT |
| 179 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/ALGORITHMS.md | 324 | def calculate_adaptive_threshold(mv_values, percentile, factor): | CODE |
| LOW | micro-espectre/espectre-monitor.html | 1156 | function applyDetectionConfiguration() { | CODE |
| LOW | micro-espectre/tools/1_analyze_raw_data.py | 159 | def analyze_all_pairs_from_dataset_info() -> list: | CODE |
| LOW⚡ | micro-espectre/tools/csi_utils.py | 1365 | def calculate_spatial_turbulence(csi_data, selected_subcarriers, gain_locked: bool = True) -> float: | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 1284 | def load_baseline_and_movement( | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 1388 | def calculate_variance_two_pass(values) -> float: | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 111 | def _extract_motion_start_from_description(description): | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 183 | def resolve_context_aware_config_for_test(test_entry): | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 199 | def resolve_context_aware_config(baseline_path): | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 251 | def calculate_adaptive_threshold(values, percentile=None, factor=None): | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 339 | def compare_detection_methods(baseline_packets, movement_packets, subcarriers, window_size, threshold): | CODE |
| LOW⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 51 | def extract_csi_and_gain_locked(packet): | CODE |
| LOW⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 942 | def optimize_filter_parameters(baseline_packets, movement_packets): | CODE |
| LOW | micro-espectre/tools/9_compare_chips.py | 66 | def analyze_amplitudes_per_subcarrier(packets, name, num_subcarriers=64): | CODE |
| LOW | micro-espectre/tools/9_compare_chips.py | 105 | def calculate_spatial_turbulence(csi_data, selected_subcarriers, gain_locked=True): | CODE |
| LOW | micro-espectre/tools/9_compare_chips.py | 114 | def analyze_turbulence_and_mvs(packets, name, selected_subcarriers, window_size): | CODE |
| LOW | micro-espectre/tools/8_plot_constellation.py | 59 | def plot_constellation_comparison(baseline_packets, movement_packets, | CODE |
| LOW | micro-espectre/tools/8_plot_constellation.py | 213 | def plot_single_subcarrier_grid(baseline_packets, movement_packets, | CODE |
| LOW⚡ | micro-espectre/tools/11_validate_dataset_quality.py | 72 | def _extract_amplitudes_matrix(csi_matrix): | CODE |
| LOW⚡ | micro-espectre/tools/11_validate_dataset_quality.py | 94 | def _spatial_turbulence_from_amps(amplitudes, band, use_cv_normalization=False): | CODE |
| LOW⚡ | …pectre/tools/3_analyze_moving_variance_segmentation.py | 150 | def _extract_motion_start_from_description(description): | CODE |
| LOW⚡ | …pectre/tools/3_analyze_moving_variance_segmentation.py | 231 | def calculate_adaptive_threshold(mvs_values, percentile=None, factor=None): | CODE |
| LOW⚡ | micro-espectre/tools/10_train_ml_model.py | 1983 | def calculate_shap_importance(model, X, feature_names, n_samples=500): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 274 | def normalize_architecture_specs(architectures): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 326 | def parse_positive_chip_boost(value): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 377 | def apply_positive_chip_boost(sample_weights, sample_context, y, chip_boosts): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 406 | def _build_dataset_file_index(dataset_info): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 439 | def _resolve_counterpart_name(label, entry, dataset_info, max_delta_seconds=30 * 60): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 579 | def build_gridsearch_tuning_map(dataset_info, default_subcarriers, default_threshold=1.0): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 890 | def compute_mvs_guided_sample_weights(packets, tuning_map, window_size=SEG_WINDOW_SIZE): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 1326 | def predict_tempered_probabilities(model, X, temperature=DEFAULT_ML_TEMPERATURE): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2317 | def select_regression_subset_indices(sample_context, max_samples=2048, block_stride=SEG_WINDOW_SIZE): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2920 | def _parse_long_recording_metrics(output): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2959 | def _run_ml_performance_tests(): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3048 | def _candidate_beats_baseline(candidate_cv, candidate_real, baseline_cv, baseline_real): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3316 | def architecture_campaign_rank_key(result): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3332 | def aggregate_architecture_runs(name, runs): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3357 | def aggregate_architecture_rank_key(summary): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3382 | def architecture_candidate_beats_baseline(candidate, baseline): | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3407 | def evaluate_architecture_candidate(name, hidden_layers, seed, dataset, scaler_mode, batch_size, fp_weight): | CODE |
| LOW⚡ | micro-espectre/tools/10_train_ml_model.py | 1862 | def calculate_correlation_importance(feature_names=None): | STRING |
| LOW | micro-espectre/tools/4_analyze_filter_location.py | 85 | def calculate_turbulence_filtered_iq(csi_packet, hampel_I, hampel_Q, subcarriers, gain_locked=True): | CODE |
| LOW | micro-espectre/tools/4_analyze_filter_location.py | 102 | def calculate_turbulence_filtered_amplitudes(csi_packet, hampel_amps, subcarriers, gain_locked=True): | CODE |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 162 | def test_different_cluster_sizes(baseline_packets, movement_packets, num_sc, quick=False): | CODE |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 266 | def test_sparse_configurations(baseline_packets, movement_packets, num_sc, quick=False): | CODE |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 393 | def calculate_per_subcarrier_amplitudes(csi_packet, num_sc): | CODE |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 404 | def calculate_subcarrier_metrics(packets, num_sc): | CODE |
| LOW | micro-espectre/tests/test_optimization_equivalence.py | 109 | def _calculate_variance_two_pass(self): | CODE |
| LOW | micro-espectre/tests/test_optimization_equivalence.py | 201 | def test_variance_within_tolerance(self, turbulence_values): | CODE |
| LOW | micro-espectre/tests/test_optimization_equivalence.py | 230 | def test_hampel_within_tolerance(self, turbulence_values): | CODE |
| LOW | micro-espectre/tests/test_optimization_equivalence.py | 255 | def test_outlier_detection_count_matches(self, turbulence_values): | CODE |
| LOW | micro-espectre/tests/test_optimization_equivalence.py | 278 | def test_pipeline_variance_matches(self, turbulence_values): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 155 | def test_is_motion_returns_bool(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 161 | def test_is_motion_default_threshold(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 168 | def test_is_motion_custom_threshold(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 183 | def test_initialization_defaults(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 191 | def test_hampel_enabled_by_default(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 196 | def test_hampel_disabled_explicitly(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 201 | def test_initialization_custom_params(self): | CODE |
| LOW⚡ | micro-espectre/tests/test_ml_detector.py | 297 | def test_process_packet_increments_count(self, detector, sample_csi_data): | CODE |
| 220 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | micro-espectre/tools/1_analyze_raw_data.py | 84 | print("Error: No packets found") | CODE |
| MEDIUM⚡ | micro-espectre/tools/csi_utils.py | 1101 | print(f'Error loading {sample_file}: {e}') | CODE |
| LOW⚡ | micro-espectre/tools/csi_utils.py | 1100 | except Exception as e: | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 422 | except Exception as e: | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 430 | except Exception as e: | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 1058 | except Exception: | CODE |
| LOW | micro-espectre/tools/csi_utils.py | 1268 | except Exception: | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 106 | except Exception: | CODE |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 507 | except Exception: | CODE |
| MEDIUM | micro-espectre/tools/7_compare_detection_methods.py | 872 | print(f"Error: {e}") | CODE |
| MEDIUM | micro-espectre/tools/7_compare_detection_methods.py | 875 | print(f"Error: {e}") | CODE |
| LOW | micro-espectre/tools/5_analyze_filter_turbulence.py | 768 | except Exception: | CODE |
| LOW | micro-espectre/tools/5_analyze_filter_turbulence.py | 876 | except Exception: | CODE |
| LOW | micro-espectre/tools/9_compare_chips.py | 396 | except Exception: | CODE |
| LOW⚡ | micro-espectre/tools/8_plot_constellation.py | 108 | except Exception: | CODE |
| LOW | micro-espectre/tools/8_plot_constellation.py | 255 | except Exception: | CODE |
| MEDIUM | micro-espectre/tools/8_plot_constellation.py | 367 | print(f"Error: {e}") | STRING |
| LOW | micro-espectre/tools/6_optimize_filter_params.py | 230 | except Exception: | CODE |
| LOW | micro-espectre/tools/11_validate_dataset_quality.py | 150 | except Exception as e: | CODE |
| LOW | micro-espectre/tools/11_validate_dataset_quality.py | 290 | except Exception: | CODE |
| LOW | micro-espectre/tools/11_validate_dataset_quality.py | 493 | except Exception as e: | CODE |
| LOW | …pectre/tools/3_analyze_moving_variance_segmentation.py | 354 | except Exception: | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 2003 | print("Error: SHAP not installed. Run: pip install shap") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 2491 | print(f"Error: Missing dependency - {e}") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 2505 | print("Error: No datasets found in data/") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3102 | print("Error: --seed-search-until-improvement must be >= 1") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3151 | print("Error: unable to evaluate current model baseline") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3546 | print(f"Error: Missing dependency - {exc}") | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3555 | print("Error: No datasets found in data/") | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 574 | except Exception: | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 764 | except Exception as e: | CODE |
| LOW | micro-espectre/tools/10_train_ml_model.py | 1565 | except Exception: | CODE |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3904 | print("Error: --seed and --seed-search-until-improvement are mutually exclusive") | STRING |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 3907 | print("Error: --seed-search-until-improvement cannot be combined with --shap or --ablation") | STRING |
| LOW | micro-espectre/tools/4_analyze_filter_location.py | 272 | except Exception: | CODE |
| MEDIUM | micro-espectre/tools/2_analyze_system_tuning.py | 610 | print(f"Error: {e}") | CODE |
| LOW | micro-espectre/tests/conftest.py | 147 | except Exception: | CODE |
| LOW⚡ | micro-espectre/tests/test_nbvi_calibrator.py | 41 | except Exception: | CODE |
| LOW⚡ | micro-espectre/tests/test_nbvi_calibrator.py | 47 | except Exception: | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 73 | except Exception as e: | CODE |
| MEDIUM | micro-espectre/src/traffic_generator.py | 74 | print(f"Error getting gateway IP: {e}") | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 121 | except Exception as e: | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 216 | except Exception as e: | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 237 | except Exception as e: | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 301 | except Exception as e: | CODE |
| LOW | micro-espectre/src/traffic_generator.py | 361 | except Exception as e: | CODE |
| LOW | micro-espectre/src/main.py | 59 | except Exception: | CODE |
| LOW | micro-espectre/src/main.py | 115 | except Exception: | CODE |
| LOW | micro-espectre/src/main.py | 465 | except Exception as e: | CODE |
| MEDIUM | micro-espectre/src/main.py | 466 | print(f"Error during calibration: {e}") | CODE |
| LOW | micro-espectre/src/csi_streamer.py | 192 | except Exception: | CODE |
| LOW | micro-espectre/src/segmentation.py | 103 | except Exception as e: | CODE |
| LOW | micro-espectre/src/segmentation.py | 120 | except Exception as e: | CODE |
| LOW | micro-espectre/src/segmentation.py | 343 | except Exception as e: | CODE |
| LOW | micro-espectre/src/segmentation.py | 350 | except Exception as e: | CODE |
| LOW⚡ | micro-espectre/src/mqtt/handler.py | 93 | except Exception as e: | CODE |
| MEDIUM⚡ | micro-espectre/src/mqtt/handler.py | 94 | print(f"Error processing MQTT message: {e}") | CODE |
| LOW⚡ | micro-espectre/src/mqtt/handler.py | 100 | except Exception as e: | CODE |
| MEDIUM⚡ | micro-espectre/src/mqtt/handler.py | 101 | print(f"Error checking MQTT messages: {e}") | CODE |
| LOW | micro-espectre/src/mqtt/handler.py | 130 | except Exception as e: | CODE |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/tools/csi_utils.py | 1034 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1070 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1172 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 366 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 617 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 729 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 840 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 918 | CODE | |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 480 | CODE | |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 621 | CODE | |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 701 | CODE | |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 811 | CODE | |
| LOW | micro-espectre/tools/5_analyze_filter_turbulence.py | 665 | CODE | |
| LOW | micro-espectre/tools/5_analyze_filter_turbulence.py | 845 | CODE | |
| LOW | micro-espectre/tools/9_compare_chips.py | 176 | CODE | |
| LOW | micro-espectre/tools/8_plot_constellation.py | 59 | CODE | |
| LOW | micro-espectre/tools/8_plot_constellation.py | 213 | CODE | |
| LOW | micro-espectre/tools/6_optimize_filter_params.py | 120 | CODE | |
| LOW | micro-espectre/tools/11_validate_dataset_quality.py | 211 | CODE | |
| LOW | micro-espectre/tools/11_validate_dataset_quality.py | 342 | CODE | |
| LOW | …pectre/tools/3_analyze_moving_variance_segmentation.py | 336 | CODE | |
| LOW | …pectre/tools/3_analyze_moving_variance_segmentation.py | 482 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 657 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 890 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 1505 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2112 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2351 | CODE | |
| LOW | micro-espectre/tools/4_analyze_filter_location.py | 254 | CODE | |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 109 | CODE | |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 178 | CODE | |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 266 | CODE | |
| LOW | micro-espectre/src/traffic_generator.py | 112 | CODE | |
| LOW | micro-espectre/src/traffic_generator.py | 232 | CODE | |
| LOW | micro-espectre/src/features.py | 146 | CODE | |
| LOW | micro-espectre/src/main.py | 192 | CODE | |
| LOW | micro-espectre/src/main.py | 285 | CODE | |
| LOW | micro-espectre/src/main.py | 552 | CODE | |
| LOW | micro-espectre/src/nbvi_calibrator.py | 493 | CODE | |
| LOW | micro-espectre/src/csi_streamer.py | 48 | CODE | |
| LOW | micro-espectre/src/csi_streamer.py | 66 | CODE | |
| LOW | micro-espectre/src/mqtt/commands.py | 113 | CODE | |
| LOW | micro-espectre/src/mqtt/commands.py | 375 | CODE | |
| LOW | .github/scripts/build_docs.py | 208 | CODE | |
| LOW | .github/scripts/build_docs.py | 214 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/src/config.py | 41 | COMMENT | |
| LOW | test/run_coverage.sh | 1 | #!/bin/bash | COMMENT |
| LOW | test/test/test_long_recordings/test_long_recordings.cpp | 1 | /* | COMMENT |
| LOW | test/test/test_hampel_filter/test_hampel_filter.cpp | 221 | COMMENT | |
| LOW | …t/test/test_motion_detection/test_motion_detection.cpp | 21 | COMMENT | |
| LOW | test/data/cnpy.cpp | 1 | //Copyright (C) 2011 Carl Rogers | COMMENT |
| LOW | test/data/cnpy.h | 1 | //Copyright (C) 2011 Carl Rogers | COMMENT |
| LOW | test/data/csi_test_data.h | 21 | */ | COMMENT |
| LOW | components/espectre/espectre.cpp | 21 | #include "esp_err.h" | COMMENT |
| LOW | components/espectre/nbvi_calibrator.cpp | 1 | /* | COMMENT |
| LOW | components/espectre/espectre.h | 21 | // Include ESP-IDF WiFi headers | COMMENT |
| LOW | components/espectre/nbvi_calibrator.h | 21 | COMMENT | |
| LOW | examples/home-assistant-dashboard.yaml | 1 | # ESPectre - Home Assistant Dashboard | COMMENT |
| LOW | examples/home-assistant-dashboard.yaml | 41 | # https://github.com/iantrich/config-template-card | COMMENT |
| LOW | examples/espectre-c5.yaml | 1 | # ESPectre - ESP32-C5 Configuration | COMMENT |
| LOW | examples/espectre-c3.yaml | 1 | # ESPectre - ESP32-C3 Configuration | COMMENT |
| LOW | examples/espectre-esp32.yaml | 1 | # ESPectre - ESP32 (Original/WROOM-32) Configuration | COMMENT |
| LOW | examples/espectre-s3-touch-lcd.yaml | 1 | # ESPectre - ESP32-S3 Touch LCD 1.47" | COMMENT |
| LOW | examples/espectre-s3-webserver.yaml | 1 | # ESPectre - ESP32-S3 with Web Server | COMMENT |
| LOW | examples/espectre-s3-led.yaml | 1 | # ESPectre - ESP32-S3 with Onboard LED Feedback | COMMENT |
| LOW | examples/home-assistant-dashboard-dev.yaml | 1 | # ESPectre - Home Assistant Dashboard for Development | COMMENT |
| LOW | examples/home-assistant-dashboard-dev.yaml | 41 | - from: 0.5 | COMMENT |
| LOW | examples/home-assistant-dashboard-dev.yaml | 61 | # needle: true | COMMENT |
| LOW | examples/espectre-c6.yaml | 1 | # ESPectre - ESP32-C6 Configuration | COMMENT |
| LOW | examples/espectre-s2.yaml | 1 | # ESPectre - ESP32-S2 Configuration | COMMENT |
| LOW | examples/espectre-s3-led-webserver.yaml | 1 | # ESPectre - ESP32-S3 with Onboard LED and Web Server | COMMENT |
| LOW | examples/espectre-s3.yaml | 1 | # ESPectre - ESP32-S3 Configuration | COMMENT |
| LOW | .github/dependabot.yml | 1 | # Dependabot Configuration | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/tools/csi_utils.py | 23 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1348 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1351 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1354 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1357 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1357 | CODE | |
| LOW | micro-espectre/tools/csi_utils.py | 1358 | CODE | |
| LOW | micro-espectre/tools/__init__.py | 11 | CODE | |
| LOW | micro-espectre/tools/__init__.py | 11 | CODE | |
| LOW | micro-espectre/tools/5_analyze_filter_turbulence.py | 37 | CODE | |
| LOW | micro-espectre/tools/9_compare_chips.py | 28 | CODE | |
| LOW | micro-espectre/tools/6_optimize_filter_params.py | 37 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 60 | CODE | |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 25 | CODE | |
| LOW | micro-espectre/tests/test_ml_detector.py | 11 | CODE | |
| LOW | micro-espectre/tests/test_validation_real_data.py | 49 | CODE | |
| LOW | micro-espectre/tests/test_validation_real_data.py | 1148 | CODE | |
| LOW | micro-espectre/tests/conftest.py | 18 | CODE | |
| LOW | micro-espectre/tests/test_segmentation.py | 11 | CODE | |
| LOW | micro-espectre/tests/test_mqtt.py | 14 | CODE | |
| LOW | micro-espectre/tests/test_mvs_detector.py | 10 | CODE | |
| LOW | micro-espectre/tests/test_config.py | 10 | CODE | |
| LOW | micro-espectre/tests/test_config.py | 11 | CODE | |
| LOW | micro-espectre/tests/test_segmentation_additional.py | 10 | CODE | |
| LOW | micro-espectre/tests/test_segmentation_additional.py | 11 | CODE | |
| LOW | micro-espectre/tests/test_segmentation_additional.py | 14 | CODE | |
| LOW | micro-espectre/tests/test_traffic_generator.py | 14 | CODE | |
| LOW | micro-espectre/src/ml_detector.py | 23 | CODE | |
| LOW | micro-espectre/src/ml_detector.py | 31 | CODE | |
| LOW | micro-espectre/src/ml_detector.py | 28 | CODE | |
| LOW | micro-espectre/src/ml_detector.py | 36 | CODE | |
| LOW | micro-espectre/src/mqtt/__init__.py | 11 | CODE | |
| LOW | micro-espectre/src/mqtt/__init__.py | 12 | CODE | |
| LOW | test/coverage_flags.py | 11 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/tools/csi_utils.py | 640 | # Check if file already exists in list | COMMENT |
| LOW | micro-espectre/tools/7_compare_detection_methods.py | 42 | # Check if ML model is available (production implementation). | COMMENT |
| LOW⚡ | micro-espectre/tools/5_analyze_filter_turbulence.py | 1090 | # Print results table | COMMENT |
| LOW | micro-espectre/tools/4_analyze_filter_location.py | 334 | # Print results | COMMENT |
| LOW | micro-espectre/tools/2_analyze_system_tuning.py | 644 | # Print results | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 844 | # Print results (same format as C++) | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 969 | # Print results | COMMENT |
| LOW | micro-espectre/src/traffic_generator.py | 119 | # Set socket to non-blocking mode to avoid delays | COMMENT |
| LOW | micro-espectre/src/nbvi_calibrator.py | 117 | # Open file for writing | COMMENT |
| LOW | micro-espectre/src/filters.py | 200 | # Check if current value is an outlier | COMMENT |
| LOW | test/run_coverage.sh | 44 | # Check if clang is the default compiler | COMMENT |
| LOW | test/run_coverage.sh | 72 | # Check if tests failed | COMMENT |
| LOW | test/run_coverage.sh | 92 | # Check if any profraw files were generated | COMMENT |
| LOW | test/run_coverage.sh | 166 | # Check if gcov data was generated | COMMENT |
| LOW | examples/espectre_traffic_generator.py | 11 | python3 espectre_traffic_generator.py status # Check if running | STRING |
| LOW | .github/workflows/snapshot.yml | 31 | # Check if any code files changed in the last commit | COMMENT |
| LOW | .github/scripts/build_docs.py | 248 | # Check if we have a mapping for this file | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | micro-espectre/tools/10_train_ml_model.py | 2288 | """Print the robust evaluation summary used for model selection.""" | STRING |
| MEDIUM | micro-espectre/tools/10_train_ml_model.py | 1132 | """Ranking key for seeds/architectures under the robust evaluation protocol.""" | STRING |
| MEDIUM | micro-espectre/tests/test_features.py | 208 | # MAD should be robust to outliers | COMMENT |
| MEDIUM | micro-espectre/src/main.py | 259 | # Calculate medians (more robust than mean against outliers) | COMMENT |
| MEDIUM | micro-espectre/src/nbvi_calibrator.py | 356 | # MAD-based robust score | COMMENT |
| MEDIUM | test/data/csi_test_data.h | 342 | // Keep the latest baseline per chip for robust fallback pairing. | COMMENT |
| MEDIUM | components/espectre/nbvi_calibrator.h | 168 | float nbvi_mad; // MAD-based robust score | CODE |
| MEDIUM | components/espectre/gain_controller.cpp | 72 | // Calculate medians (more robust than mean against outliers) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | micro-espectre/src/nbvi_calibrator.py | 56 | # Threshold for null subcarrier detection (mean amplitude below this = null) | COMMENT |
| HIGH | .github/scripts/build_docs.py | 134 | function gtag(){{dataLayer.push(arguments);}} | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1189 | # Step 1: Band Calibration | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1210 | # Step 2: Initialize MVS with calibration results | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1223 | # Step 3: Process baseline (expecting IDLE) | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1236 | # Step 4: Process movement (expecting MOTION) | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1249 | # Step 5: Calculate metrics | COMMENT |
| LOW⚡ | components/espectre/nbvi_calibrator.cpp | 185 | // Step 1: Find candidate baseline windows | COMMENT |
| LOW⚡ | components/espectre/nbvi_calibrator.cpp | 195 | // Step 2: Evaluate each candidate window | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1189 | # Step 1: Band Calibration | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1210 | # Step 2: Initialize MVS with calibration results | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1223 | # Step 3: Process baseline (expecting IDLE) | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1236 | # Step 4: Process movement (expecting MOTION) | COMMENT |
| LOW⚡ | micro-espectre/tests/test_validation_real_data.py | 1249 | # Step 5: Calculate metrics | COMMENT |
| LOW⚡ | components/espectre/nbvi_calibrator.cpp | 185 | // Step 1: Find candidate baseline windows | COMMENT |
| LOW⚡ | components/espectre/nbvi_calibrator.cpp | 195 | // Step 2: Evaluate each candidate window | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | micro-espectre/tools/csi_utils.py | 1173 | Find baseline and movement dataset files with nearest timestamps. Args: chip: Chip type (C6, S3, e | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/run_coverage.sh | 8 | # Usage: | COMMENT |
| LOW | examples/home-assistant-dashboard.yaml | 3 | # How to use: | COMMENT |
| LOW | examples/home-assistant-dashboard-dev.yaml | 11 | # How to use: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/tools/1_analyze_raw_data.py | 299 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 1210 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 1369 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 2416 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3089 | CODE | |
| LOW | micro-espectre/tools/10_train_ml_model.py | 3483 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | micro-espectre/tools/__init__.py | 13 | __all__ = ['CSICollector', 'get_dataset_stats'] | CODE |
| LOW | micro-espectre/src/ml_detector.py | 42 | __all__ = ['MLDetector', 'predict', 'is_motion', 'DEFAULT_SUBCARRIERS', 'FEATURE_NAMES'] | CODE |
| LOW | micro-espectre/src/mqtt/__init__.py | 14 | __all__ = ['MQTTHandler', 'MQTTCommands'] | CODE |