Machine Learning Systems
This report presents the forensic synthetic code analysis of harvard-edge/cs249r_book, a Python project with 27,447 GitHub stars. SynthScan v2.0 examined 1,472,708 lines of code across 13630 source files, recording 9950 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 11.2 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 9950 distinct pattern matches across 25 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⚡ | .pre-commit-config.yaml | 44 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | .pre-commit-config.yaml | 47 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | .pre-commit-config.yaml | 49 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 2 | # ============================================================================= | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 20 | # ------------------ | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 95 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 100 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 140 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 142 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 183 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 186 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 250 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 261 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 515 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 519 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 555 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 557 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 568 | # =========================================================================== | COMMENT |
| MEDIUM | .pre-commit-config.yaml | 570 | # =========================================================================== | COMMENT |
| MEDIUM⚡ | labs/_quarto.yml | 1 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | labs/_quarto.yml | 3 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | labs/_quarto.yml | 6 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_10_inference.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_10_inference.py | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_10_inference.py | 22 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_10_inference.py | 24 | # ============================================================================ | COMMENT |
| MEDIUM | labs/vol2/lab_10_inference.py | 618 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_10_inference.py | 620 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_10_inference.py | 929 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_10_inference.py | 931 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_10_inference.py | 1814 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_10_inference.py | 1816 | # ============================================================================ | STRING |
| MEDIUM | labs/vol2/lab_14_robust_ai.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_14_robust_ai.py | 21 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_09_perf_engineering.py | 7 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_09_perf_engineering.py | 13 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_13_security_privacy.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_13_security_privacy.py | 19 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 7 | # =========================================================================== | COMMENT |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 9 | # =========================================================================== | COMMENT |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 117 | # =========================================================================== | COMMENT |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 119 | # =========================================================================== | COMMENT |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 741 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 743 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 1016 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 1018 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 1479 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_16_responsible_ai.py | 1481 | # =========================================================================== | STRING |
| MEDIUM | labs/vol2/lab_17_fleet_synthesis.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_17_fleet_synthesis.py | 20 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_12_ops_scale.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_12_ops_scale.py | 18 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_15_sustainable_ai.py | 6 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | labs/vol2/lab_15_sustainable_ai.py | 19 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_11_edge_intelligence.py | 30 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_11_edge_intelligence.py | 32 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_11_edge_intelligence.py | 34 | # ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_11_edge_intelligence.py | 36 | # ─── CELL 0: SETUP ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | labs/vol2/lab_11_edge_intelligence.py | 6 | # ───────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | labs/vol2/lab_11_edge_intelligence.py | 149 | # ─── CELL 1: HEADER ───────────────────────────────────────────────────────── | COMMENT |
| 2609 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 219 | def _mlsysbook_safe_find_spec(name, package=None): | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 278 | def _mlsysbook_safe_find_spec(name, package=None): | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 618 | def click_first_generic_marimo_radio(page) -> tuple[ClickCheck, ...]: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1042 | def click_text_answer_options(page, max_radios: int) -> tuple[ClickCheck, ...]: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1071 | def click_common_answer_prefixes(page, max_radios: int) -> tuple[ClickCheck, ...]: | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 534 | def click_first_matching_text(page, labels: tuple[str, ...], timeout: int = 5_000) -> str: | STRING |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 553 | def click_marimo_shadow_control(page, labels: tuple[str, ...]) -> str: | STRING |
| LOW | labs/tools/interaction_lab_smoke.py | 467 | def collect_visible_text_across_scroll(page, max_steps: int = 8) -> str: | STRING |
| LOW | labs/mlsysbook_labs/edge.py | 230 | def training_memory_breakdown( | CODE |
| LOW | labs/mlsysbook_labs/variants.py | 262 | def _system_design_variant_defaults(config: dict[str, object], profile: TrackProfile) -> dict[str, object]: | CODE |
| LOW | labs/mlsysbook_labs/deployment.py | 265 | def evaluate_deployment_envelope( | CODE |
| LOW | labs/mlsysbook_labs/track_arcs.py | 258 | def track_arc_context_summary(track_id: str | None, lab_id: str) -> dict[str, str]: | CODE |
| LOW⚡ | labs/mlsysbook_labs/roofline.py | 75 | def hardware_roofline_profile( | CODE |
| LOW | labs/mlsysbook_labs/architecture.py | 205 | def architecture_track_profile( | CODE |
| LOW | labs/mlsysbook_labs/architecture.py | 331 | def architecture_scaling_curve( | CODE |
| LOW | labs/mlsysbook_labs/inference.py | 110 | def inference_economy_profile( | CODE |
| LOW | labs/mlsysbook_labs/migration.py | 14 | def baseline_learning_objectives(metadata: LabMetadata, variant: LabTrackVariant) -> tuple[str, ...]: | CODE |
| LOW | labs/mlsysbook_labs/responsibility.py | 147 | def responsibility_track_profile( | CODE |
| LOW | labs/mlsysbook_labs/system_design.py | 443 | def system_design_ledger_summary( | CODE |
| LOW | labs/tests/test_responsibility_helpers.py | 23 | def test_metric_conflict_exposes_subgroup_gap(): | CODE |
| LOW | labs/tests/test_responsibility_helpers.py | 37 | def test_explanation_overhead_flags_slo_risk_for_robotaxi_trace(): | CODE |
| LOW | labs/tests/test_responsibility_helpers.py | 51 | def test_responsibility_budget_reports_violations_for_overbuilt_oura_policy(): | CODE |
| LOW | labs/tests/test_responsibility_helpers.py | 66 | def test_carbon_budget_scales_with_retraining_and_explanations(): | CODE |
| LOW | labs/tests/test_architecture_helpers.py | 27 | def test_architecture_profiles_resolve_refs_and_candidates(): | CODE |
| LOW | labs/tests/test_architecture_helpers.py | 39 | def test_architecture_signature_reports_track_specific_failures(): | CODE |
| LOW | labs/tests/test_architecture_helpers.py | 60 | def test_architecture_scaling_curve_finds_first_failure(): | CODE |
| LOW | labs/tests/test_architecture_helpers.py | 70 | def test_architecture_decision_returns_rejections_and_memo(): | CODE |
| LOW⚡ | labs/tests/test_engine.py | 61 | def test_app_runs_without_error(self, lab_path): | CODE |
| LOW⚡ | labs/tests/test_engine.py | 77 | def test_app_produces_outputs(self, lab_path): | CODE |
| LOW⚡ | labs/tests/test_engine.py | 92 | def test_hardware_registry_accessible(self, mlsysim): | CODE |
| LOW | labs/tests/test_engine.py | 104 | def test_model_registry_accessible(self, mlsysim): | CODE |
| LOW | labs/tests/test_engine.py | 123 | def test_engine_solve_tiny_oom(self, mlsysim): | CODE |
| LOW | labs/tests/test_inference_helpers.py | 23 | def test_cost_crossover_matches_cloud_reference_case(): | CODE |
| LOW | labs/tests/test_inference_helpers.py | 30 | def test_cloud_kv_capacity_uses_model_and_hardware_refs(): | CODE |
| LOW | labs/tests/test_inference_helpers.py | 47 | def test_device_tracks_have_positive_state_capacity(): | CODE |
| LOW | labs/tests/test_inference_helpers.py | 63 | def test_batching_result_reports_padding_speedup(): | CODE |
| LOW | labs/tests/test_inference_helpers.py | 70 | def test_serving_plan_sizes_daily_cost(): | CODE |
| LOW⚡ | labs/tests/test_protocol.py | 75 | def extract_hardware_references(source: str) -> set[str]: | CODE |
| LOW⚡ | labs/tests/test_protocol.py | 88 | def test_no_hardcoded_hardware_specs(self, lab_path): | CODE |
| LOW⚡ | labs/tests/test_protocol.py | 215 | def test_multiple_hardware_tiers(self, lab_path): | CODE |
| LOW⚡ | labs/tests/test_protocol.py | 315 | def test_prediction_count_matches_parts(self, lab_path): | CODE |
| LOW | labs/tests/test_protocol.py | 191 | def test_tabs_include_synthesis(self, lab_path): | CODE |
| LOW | labs/tests/test_protocol.py | 285 | def test_ledger_chapter_matches_filename(self, lab_path): | CODE |
| LOW | labs/tests/test_protocol.py | 352 | def test_has_stakeholder_messages(self, lab_path): | CODE |
| LOW | labs/tests/test_lab_variants.py | 20 | def test_pilot_labs_have_all_canonical_track_variants(): | CODE |
| LOW | labs/tests/test_lab_variants.py | 31 | def test_variant_track_refs_match_canonical_profiles(): | CODE |
| LOW | labs/tests/test_lab_variants.py | 46 | def test_variant_alias_lookup(): | CODE |
| LOW | labs/tests/test_lab_variants.py | 53 | def test_variant_registry_paths_resolve(): | CODE |
| LOW | labs/tests/test_lab_variants.py | 67 | def test_non_pilot_variants_are_marked_as_baseline(): | CODE |
| LOW | labs/tests/test_lab_variants.py | 76 | def test_all_catalog_labs_are_now_pilot_variants(): | CODE |
| LOW | labs/tests/test_serving_helpers.py | 23 | def test_queueing_reference_case_matches_tail_latency_trap(): | CODE |
| LOW | labs/tests/test_serving_helpers.py | 38 | def test_batching_tax_reports_static_batch_delay(): | CODE |
| LOW | labs/tests/test_serving_helpers.py | 69 | def test_cold_start_exposes_llm_data_movement(): | CODE |
| LOW⚡ | labs/tests/test_static.py | 51 | def test_no_tabs_in_indentation(self, lab_path): | CODE |
| LOW⚡ | labs/tests/test_static.py | 308 | def test_catalog_has_version_fields(self): | CODE |
| LOW⚡ | labs/tests/test_static.py | 318 | def test_every_lab_has_track_plan_file(self): | CODE |
| LOW⚡ | labs/tests/test_static.py | 328 | def test_every_lab_has_track_report_surface(self): | CODE |
| LOW | labs/tests/test_static.py | 106 | def test_imports_design_ledger(self, lab_path): | CODE |
| LOW | labs/tests/test_static.py | 127 | def test_no_sec_refs_in_strings(self, lab_path): | CODE |
| LOW | labs/tests/test_static.py | 156 | def test_no_hardware_edge_jetson_bare(self, lab_path): | CODE |
| 2437 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/bootstrap.py | 8 | CODE | |
| LOW | labs/tools/render_lab_smoke.py | 11 | CODE | |
| LOW | labs/tools/capture_landing_shots.py | 7 | CODE | |
| LOW | labs/tools/interaction_lab_smoke.py | 10 | CODE | |
| LOW | labs/mlsysbook_labs/catalog.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/capstone.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/edge.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/variants.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/data_pipeline.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/tracks.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/style.py | 5 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/legacy_components.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/deployment.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/serving.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/ui.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/registry_refs.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/track_arcs.py | 9 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 3 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 15 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 15 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 16 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| LOW | labs/mlsysbook_labs/__init__.py | 28 | CODE | |
| 1547 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/tools/render_lab_smoke.py | 24 | except Exception as exc: # pragma: no cover - CLI dependency guard | CODE |
| LOW | labs/tools/render_lab_smoke.py | 81 | except Exception as exc: # pragma: no cover - timing dependent | CODE |
| LOW | labs/tools/render_lab_smoke.py | 154 | except Exception as exc: | CODE |
| MEDIUM | labs/tools/interaction_lab_smoke.py | 219 | def _mlsysbook_safe_find_spec(name, package=None): | CODE |
| MEDIUM | labs/tools/interaction_lab_smoke.py | 278 | def _mlsysbook_safe_find_spec(name, package=None): | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 208 | except Exception: | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 210 | except Exception: | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 267 | except Exception: | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 269 | except Exception: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 26 | except Exception as exc: # pragma: no cover - CLI dependency guard | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 714 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 747 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 855 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1009 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1059 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1093 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1163 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1350 | except Exception as exc: | CODE |
| LOW | labs/tools/interaction_lab_smoke.py | 1378 | except Exception as exc: | CODE |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 369 | except Exception: | STRING |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 372 | except Exception: | STRING |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 530 | except Exception: | STRING |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 540 | except Exception as exc: | STRING |
| LOW⚡ | labs/tools/interaction_lab_smoke.py | 545 | except Exception as exc: | STRING |
| LOW | labs/tools/interaction_lab_smoke.py | 329 | except Exception as exc: # pragma: no cover - timing dependent | STRING |
| LOW | labs/tools/interaction_lab_smoke.py | 343 | except Exception: | STRING |
| LOW | labs/mlsysbook_labs/capstone.py | 94 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/capstone.py | 99 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/edge.py | 160 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/edge.py | 165 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/data_pipeline.py | 108 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/data_pipeline.py | 113 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/deployment.py | 128 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/deployment.py | 133 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/serving.py | 119 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/serving.py | 124 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/ops.py | 105 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/ops.py | 110 | except Exception: | CODE |
| LOW⚡ | labs/mlsysbook_labs/roofline.py | 62 | except Exception: | CODE |
| LOW⚡ | labs/mlsysbook_labs/roofline.py | 67 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/architecture.py | 127 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/architecture.py | 132 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/frameworks.py | 120 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/frameworks.py | 125 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/inference.py | 93 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/inference.py | 98 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/selection.py | 127 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/selection.py | 132 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/neural_compute.py | 106 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/neural_compute.py | 111 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/training.py | 124 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/training.py | 129 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/responsibility.py | 130 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/responsibility.py | 135 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/benchmarking.py | 91 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/benchmarking.py | 96 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/system_design.py | 142 | except Exception: | CODE |
| LOW | labs/mlsysbook_labs/system_design.py | 147 | except Exception: | CODE |
| LOW | labs/vol2/lab_04_data_storage.py | 100 | except Exception: | CODE |
| LOW | labs/vol2/lab_04_data_storage.py | 105 | except Exception: | CODE |
| 742 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/tools/render_lab_smoke.py | 73 | CODE | |
| LOW | labs/tools/interaction_lab_smoke.py | 321 | CODE | |
| LOW | labs/tools/fix_protocol_compliance.py | 53 | CODE | |
| LOW | labs/tools/fix_protocol_compliance.py | 166 | CODE | |
| LOW | labs/mlsysbook_labs/responsibility.py | 273 | CODE | |
| LOW | labs/vol2/lab_14_robust_ai.py | 111 | CODE | |
| LOW | labs/vol2/lab_14_robust_ai.py | 486 | CODE | |
| LOW | labs/vol2/lab_14_robust_ai.py | 543 | CODE | |
| LOW | labs/vol2/lab_09_perf_engineering.py | 100 | CODE | |
| LOW | labs/vol2/lab_09_perf_engineering.py | 285 | CODE | |
| LOW | labs/vol2/lab_08_fleet_orch.py | 96 | CODE | |
| LOW | labs/vol2/lab_08_fleet_orch.py | 426 | CODE | |
| LOW | labs/vol2/lab_17_fleet_synthesis.py | 133 | CODE | |
| LOW | labs/vol2/lab_17_fleet_synthesis.py | 828 | CODE | |
| LOW | labs/vol2/lab_05_dist_train.py | 103 | CODE | |
| LOW | labs/vol2/lab_05_dist_train.py | 410 | CODE | |
| LOW | labs/vol2/lab_05_dist_train.py | 438 | CODE | |
| LOW | labs/tests/test_static.py | 465 | CODE | |
| LOW | labs/tests/test_static.py | 421 | CODE | |
| LOW | labs/tests/test_static.py | 495 | CODE | |
| LOW | labs/tests/browser_smoke.py | 213 | CODE | |
| LOW | labs/tests/test_widget.py | 143 | CODE | |
| LOW | labs/vol1/lab_10_model_compress.py | 487 | CODE | |
| LOW | labs/vol1/lab_10_model_compress.py | 617 | CODE | |
| LOW | labs/vol1/lab_08_model_train.py | 374 | CODE | |
| LOW | labs/vol1/lab_08_model_train.py | 480 | CODE | |
| LOW | labs/vol1/lab_07_ml_frameworks.py | 123 | CODE | |
| LOW | labs/vol1/lab_07_ml_frameworks.py | 316 | CODE | |
| LOW | labs/vol1/lab_16_ml_conclusion.py | 125 | CODE | |
| LOW | labs/vol1/lab_16_ml_conclusion.py | 259 | CODE | |
| LOW | labs/vol1/lab_11_hw_accel.py | 128 | CODE | |
| LOW | labs/vol1/lab_11_hw_accel.py | 349 | CODE | |
| LOW | labs/vol1/lab_04_data_engr.py | 127 | CODE | |
| LOW | labs/vol1/lab_04_data_engr.py | 422 | CODE | |
| LOW | labs/vol1/lab_00_introduction.py | 567 | CODE | |
| LOW | tools/validate_playbook.py | 40 | CODE | |
| LOW | tools/audit/audit_math_pdf.py | 255 | CODE | |
| LOW | tools/audit/audit_math_rendering.py | 201 | CODE | |
| LOW | shared/scripts/check-internal-links.py | 318 | CODE | |
| LOW | shared/scripts/check-internal-links.py | 429 | CODE | |
| LOW | shared/scripts/find-duplicates.py | 137 | CODE | |
| LOW | scripts/figure_audit.py | 45 | CODE | |
| LOW | scripts/version/release.py | 73 | CODE | |
| LOW | scripts/version/release.py | 107 | CODE | |
| LOW | scripts/cross-references/audit_crossrefs.py | 149 | CODE | |
| LOW | .github/workflows/contributors/scan_contributors.py | 170 | CODE | |
| LOW | .github/workflows/contributors/update_contributors.py | 89 | CODE | |
| LOW | .github/workflows/contributors/update_contributors.py | 148 | CODE | |
| LOW | .github/workflows/contributors/update_contributors.py | 179 | CODE | |
| LOW | .github/scripts/visual_smoke.py | 189 | CODE | |
| LOW | .github/scripts/check_workflow_fork_safety.py | 108 | CODE | |
| LOW | book/tools/bib_sync_preserve.py | 291 | CODE | |
| LOW | …ok/tools/audit/generate_registry_migration_manifest.py | 201 | CODE | |
| LOW | …ok/tools/audit/generate_registry_migration_manifest.py | 260 | CODE | |
| LOW | book/tools/audit/book_check_registry_sources.py | 311 | CODE | |
| LOW | book/tools/audit/book_check_lego_scenario_inputs.py | 398 | CODE | |
| LOW | book/tools/audit/book_check_lego_scenario_inputs.py | 552 | CODE | |
| LOW | book/tools/audit/generate_appendix_constants.py | 264 | CODE | |
| LOW | book/tools/audit/generate_appendix_constants.py | 278 | CODE | |
| LOW | book/tools/audit/book_check_lego_quantity_flow.py | 149 | CODE | |
| 637 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .github/workflows/book-validate-dev.yml | 159 | # Step 3: Update contributors (after validation passes, before build matrix) | COMMENT |
| LOW⚡ | .github/workflows/book-validate-dev.yml | 166 | # Step 4: Determine build configuration (shared logic) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 106 | # Step 1: Pre-commit validation | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 147 | # Step 2: Container Health Check (validate containers before builds) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 266 | # Step 4: Matrix-driven build calls (clean and simple!) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 285 | # Step 4: Collect build results (needed for outputs) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 477 | # Step 5: Final results and summary | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 102 | # Step 1: Book (vol1 + vol2). Off by default — opt in via deploy_book=true. | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 118 | # Step 2: Kits | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 136 | # Step 3: TinyTorch | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 155 | # Step 4: MLSYSIM (with quartodoc) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 175 | # Step 5: Labs | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 196 | # Step 6: StaffML (Next.js + D1 ship + Cloudflare worker deploy) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 218 | # Step 7: Slides | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 241 | # Step 8: Landing Site (landing + about + community + newsletter) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 260 | # Step 9: Instructors | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 39 | # Step 1: Fix 3-level relative asset paths → 1-level in files being moved. | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 58 | # Step 2: Fix absolute https://mlsysbook.ai/{vol}/contents/{vol}/ refs. | COMMENT |
| LOW⚡ | .github/scripts/flatten-vol-urls.sh | 78 | # Step 3: Move all content from contents/vol{N}/ up to the site root. | COMMENT |
| LOW⚡ | .github/scripts/flatten-vol-urls.sh | 84 | # Step 4: Fix search.json hrefs (root-relative, no leading slash). | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 102 | # Step 5: Fix sitemap.xml (full absolute URLs). | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 120 | # Step 6: Replace the old nested tree with compatibility redirects. | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 186 | # Step 7: Rewrite generated links across the whole prepared volume site. | STRING |
| LOW | .github/scripts/flatten-vol-urls.sh | 229 | # Step 8: Fail before deployment if any generated link still targets the | STRING |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 505 | "### Step 3: Estimate ROI", | CODE |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 509 | "### Step 2: Simplify for large N", | CODE |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 511 | "#### Step 1: Calculate the failure rate per GPU subsystem", | CODE |
| LOW | book/tools/scripts/content/manage_captions.py | 3236 | # Step 1: Build content map with filtering | STRING |
| LOW | book/tools/scripts/content/manage_captions.py | 3251 | # Step 2: Improve captions using LLM (files updated immediately during processing) | STRING |
| LOW | book/tools/scripts/content/manage_captions.py | 3270 | # Step 3: Save improvements summary to JSON file | STRING |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4748 | # Step 2: Redistribute MCQ answers for balance (only if flag is set) | COMMENT |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4752 | # Step 3: Balance True/False answers for 50/50 distribution | COMMENT |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4755 | # Step 4: Evaluate question quality (if enabled and parameters provided) | COMMENT |
| LOW | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4731 | # Step 1: Validate MCQ option references (always run to catch LLM generation issues) | COMMENT |
| LOW | book/cli/commands/debug.py | 514 | # Step 1: Test preamble only | COMMENT |
| LOW | book/cli/commands/debug.py | 534 | # Step 2: Test full chapter (confirm it actually fails) | COMMENT |
| LOW | book/cli/commands/debug.py | 556 | # Step 3: Binary search | COMMENT |
| LOW⚡ | mlperf-edu/reference/cloud/micro_gnn.py | 83 | # Step 1: Linear transform features | COMMENT |
| LOW⚡ | mlperf-edu/reference/cloud/micro_gnn.py | 85 | # Step 2: Aggregate from neighbors via normalized adjacency | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 509 | # Step 1: Python/System bounds check | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 541 | # Step 3: Hardware Introspection | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 552 | # Step 4: Payload estimations | COMMENT |
| LOW⚡ | mlsysim/docs/understanding-efficiency.md | 131 | ### Step 1: Run Your Workload | COMMENT |
| LOW⚡ | mlsysim/docs/understanding-efficiency.md | 137 | ### Step 2: Measure Actual Throughput | COMMENT |
| LOW⚡ | mlsysim/docs/understanding-efficiency.md | 143 | ### Step 3: Back-Calculate Efficiency | COMMENT |
| LOW | mlsysim/docs/understanding-efficiency.md | 160 | ### Step 4: Use Calibrated Efficiency for What-If Analysis | COMMENT |
| LOW⚡ | mlsysim/mlsysim/core/types.py | 81 | # Step 1: reject bare numbers for fields that should carry units. | COMMENT |
| LOW⚡ | mlsysim/mlsysim/core/types.py | 85 | # Step 2: reject dimensionally-compatible but semantically-wrong aliases, | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 213 | # Step 1: prefer an explicit plan topology, then hardware aggregate | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 220 | # Step 2: refuse to floor partial nodes; that would silently change | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 227 | # Step 3: use the most specific bandwidth source available. | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 234 | # Step 4: compile the declarative plan into the Fleet object used by | COMMENT |
| LOW | mlsysim/mlsysim/engine/solvers/training.py | 199 | # Step 1: shard model state across model-parallel dimensions before | COMMENT |
| LOW | mlsysim/mlsysim/engine/solvers/training.py | 222 | # Step 2: activations scale with the local microbatch and layers owned by | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/chat_agent_Editor.js | 22 | // // Step 1: Insert the text at the current cursor position | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/chat_agent_Editor.js | 25 | // // Step 2: Move the cursor to the end of the inserted text | COMMENT |
| LOW | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 135 | // Step 1: Remove HTML tags and non-alphabetic characters, except spaces and dashes | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 178 | // Step 1: Remove HTML tags | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 181 | // Step 2: Remove specific phrases, case-insensitive | COMMENT |
| LOW | …q/src_shadow/js/components/markdown/MIGRATION_GUIDE.md | 32 | ### Step 1: Update Imports in index.js | COMMENT |
| 163 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # MLSysBook Dependencies | COMMENT |
| LOW | .pre-commit-config.yaml | 1 | # MLSysBook Pre-commit Configuration | COMMENT |
| LOW | .pre-commit-config.yaml | 21 | # 1. Implement the runner inside `ValidateCommand` (book/cli/commands/validate.py). | COMMENT |
| LOW | .pre-commit-config.yaml | 241 | files: ^book/quarto/contents/.*\.qmd$ | COMMENT |
| LOW | .pre-commit-config.yaml | 461 | # not "fix" this to false or the per-file scoping breaks). Anchored to | COMMENT |
| LOW | pyproject.toml | 281 | # multline - LaTeX amsmath environment; panting/sting - correct English words; | COMMENT |
| LOW | labs/vol2/lab_10_inference.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_14_robust_ai.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_13_security_privacy.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_17_fleet_synthesis.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_12_ops_scale.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_15_sustainable_ai.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_11_edge_intelligence.py | 1 | import marimo | COMMENT |
| LOW | labs/vol2/lab_11_edge_intelligence.py | 21 | # Duty cycle and connectivity decide whether evidence is fresh enough. | COMMENT |
| LOW | labs/config/announcement.yml | 1 | # ============================================================================= | COMMENT |
| LOW | labs/tests/test_static.py | 441 | COMMENT | |
| LOW | labs/tests/browser_smoke.py | 81 | COMMENT | |
| LOW | labs/vol1/lab_00_introduction.py | 1 | import marimo | COMMENT |
| LOW | labs/vol1/lab_00_introduction.py | 21 | # Progressive disclosure: each check gates the next concept. | COMMENT |
| LOW | labs/assets/styles/style.scss | 1 | /*-- scss:defaults --*/ | COMMENT |
| LOW | labs/assets/styles/style.scss | 181 | // Hover/active color uses $accent set above (= $colabs-accent). | COMMENT |
| LOW | kits/config/announcement.yml | 1 | # ============================================================================= | COMMENT |
| LOW | kits/assets/styles/style.scss | 1 | /*-- scss:defaults --*/ | COMMENT |
| LOW | shared/config/footer-common.yml | 1 | # ============================================================================= | COMMENT |
| LOW | shared/config/navbar-common.yml | 1 | # ============================================================================= | COMMENT |
| LOW | shared/styles/_ecosystem-base-dark.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/_site-dark.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/_ecosystem-base.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/dark-mode-site.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/_brand.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/themes/_theme-harvard.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/themes/_theme-eth.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/partials/_navbar.scss | 61 | } | COMMENT |
| LOW | shared/styles/partials/_tokens.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/partials/_links.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/styles/partials/_sidebar.scss | 1 | // ============================================================================= | COMMENT |
| LOW | shared/scripts/theme-persist.js | 81 | html.setAttribute('data-quarto-color-scheme', scheme); | COMMENT |
| LOW | shared/scripts/check-internal-links.py | 81 | # the LINK_RE regex would otherwise match TikZ syntax like | COMMENT |
| LOW | shared/scripts/inject-build-stamp.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | shared/scripts/inject-build-stamp.sh | 21 | # [commit] optional short git SHA; defaults to GITHUB_SHA[:7] or HEAD | COMMENT |
| LOW | shared/scripts/rollback-legacy.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | shared/scripts/rollback-legacy.sh | 21 | # subsite directory) and push it to a `legacy-backup/<TS>/` | COMMENT |
| LOW | shared/scripts/rollback-legacy.sh | 41 | # mutates the working tree of the calling repo. | COMMENT |
| LOW | shared/scripts/sync-mirrors.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | slides/config/announcement.yml | 1 | # ============================================================================= | COMMENT |
| LOW | slides/assets/styles/style.scss | 1 | /*-- scss:defaults --*/ | COMMENT |
| LOW | instructors/check-links.sh | 1 | #!/bin/bash | COMMENT |
| LOW | instructors/config/announcement.yml | 1 | # ============================================================================= | COMMENT |
| LOW | instructors/assets/styles/style.scss | 1 | /*-- scss:defaults --*/ | COMMENT |
| LOW | .github/release.yml | 1 | # ============================================================================= | COMMENT |
| LOW | .github/workflows/tinytorch-update-pdfs.yml | 1 | name: '🔥 TinyTorch · 📑 Update PDFs' | COMMENT |
| LOW | .github/workflows/kits-preview-dev.yml | 1 | name: '📦 Kits · 👁️ Preview (Dev)' | COMMENT |
| LOW | .github/workflows/slides-preview-dev.yml | 1 | name: '📊 Slides · 👁️ Preview (Dev)' | COMMENT |
| LOW | .github/workflows/infra-health-check.yml | 1 | name: '🔧 Infra · ❤️ Health Check' | COMMENT |
| LOW | .github/workflows/instructors-validate-dev.yml | 1 | name: '🎓 Instructors · ✅ Validate (Dev)' | COMMENT |
| LOW | .github/workflows/infra-publish-guard.yml | 1 | name: '🔧 Infra · 🛡️ Publish Guard' | COMMENT |
| LOW | .github/workflows/staffml-auto-pr.yml | 1 | name: '🎯 StaffML · 🤖 Auto-PR Question' | COMMENT |
| LOW | .github/workflows/staffml-preview-dev.yml | 1 | name: '🎯 StaffML · 👁️ Preview (Dev)' | COMMENT |
| LOW | .github/workflows/staffml-preview-dev.yml | 21 | # push is max(validate, build) + ~1 min for SSH deploy, basically | COMMENT |
| LOW | .github/workflows/book-preview-dev.yml | 1 | name: '📚 Book · 👁️ Preview (Dev)' | COMMENT |
| 343 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .github/workflows/book-validate-dev.yml | 159 | # Step 3: Update contributors (after validation passes, before build matrix) | COMMENT |
| LOW⚡ | .github/workflows/book-validate-dev.yml | 166 | # Step 4: Determine build configuration (shared logic) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 106 | # Step 1: Pre-commit validation | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 147 | # Step 2: Container Health Check (validate containers before builds) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 266 | # Step 4: Matrix-driven build calls (clean and simple!) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 285 | # Step 4: Collect build results (needed for outputs) | COMMENT |
| LOW | .github/workflows/book-validate-dev.yml | 477 | # Step 5: Final results and summary | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 102 | # Step 1: Book (vol1 + vol2). Off by default — opt in via deploy_book=true. | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 118 | # Step 2: Kits | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 136 | # Step 3: TinyTorch | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 155 | # Step 4: MLSYSIM (with quartodoc) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 175 | # Step 5: Labs | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 196 | # Step 6: StaffML (Next.js + D1 ship + Cloudflare worker deploy) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 218 | # Step 7: Slides | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 241 | # Step 8: Landing Site (landing + about + community + newsletter) | COMMENT |
| LOW⚡ | .github/workflows/publish-all-live.yml | 260 | # Step 9: Instructors | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 39 | # Step 1: Fix 3-level relative asset paths → 1-level in files being moved. | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 58 | # Step 2: Fix absolute https://mlsysbook.ai/{vol}/contents/{vol}/ refs. | COMMENT |
| LOW⚡ | .github/scripts/flatten-vol-urls.sh | 78 | # Step 3: Move all content from contents/vol{N}/ up to the site root. | COMMENT |
| LOW⚡ | .github/scripts/flatten-vol-urls.sh | 84 | # Step 4: Fix search.json hrefs (root-relative, no leading slash). | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 102 | # Step 5: Fix sitemap.xml (full absolute URLs). | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 120 | # Step 6: Replace the old nested tree with compatibility redirects. | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 186 | # Step 7: Rewrite generated links across the whole prepared volume site. | STRING |
| LOW | .github/scripts/flatten-vol-urls.sh | 229 | # Step 8: Fail before deployment if any generated link still targets the | STRING |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 505 | "### Step 3: Estimate ROI", | CODE |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 509 | "### Step 2: Simplify for large N", | CODE |
| LOW⚡ | book/tools/audit/checks/h3_titlecase.py | 511 | "#### Step 1: Calculate the failure rate per GPU subsystem", | CODE |
| LOW | book/tools/scripts/content/manage_captions.py | 3236 | # Step 1: Build content map with filtering | STRING |
| LOW | book/tools/scripts/content/manage_captions.py | 3251 | # Step 2: Improve captions using LLM (files updated immediately during processing) | STRING |
| LOW | book/tools/scripts/content/manage_captions.py | 3270 | # Step 3: Save improvements summary to JSON file | STRING |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4748 | # Step 2: Redistribute MCQ answers for balance (only if flag is set) | COMMENT |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4752 | # Step 3: Balance True/False answers for 50/50 distribution | COMMENT |
| LOW⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4755 | # Step 4: Evaluate question quality (if enabled and parameters provided) | COMMENT |
| LOW | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4731 | # Step 1: Validate MCQ option references (always run to catch LLM generation issues) | COMMENT |
| LOW | book/cli/commands/debug.py | 514 | # Step 1: Test preamble only | COMMENT |
| LOW | book/cli/commands/debug.py | 534 | # Step 2: Test full chapter (confirm it actually fails) | COMMENT |
| LOW | book/cli/commands/debug.py | 556 | # Step 3: Binary search | COMMENT |
| LOW⚡ | mlperf-edu/reference/cloud/micro_gnn.py | 83 | # Step 1: Linear transform features | COMMENT |
| LOW⚡ | mlperf-edu/reference/cloud/micro_gnn.py | 85 | # Step 2: Aggregate from neighbors via normalized adjacency | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 509 | # Step 1: Python/System bounds check | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 541 | # Step 3: Hardware Introspection | COMMENT |
| LOW | mlperf-edu/src/mlperf/cli.py | 552 | # Step 4: Payload estimations | COMMENT |
| LOW⚡ | mlsysim/mlsysim/core/types.py | 81 | # Step 1: reject bare numbers for fields that should carry units. | COMMENT |
| LOW⚡ | mlsysim/mlsysim/core/types.py | 85 | # Step 2: reject dimensionally-compatible but semantically-wrong aliases, | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 213 | # Step 1: prefer an explicit plan topology, then hardware aggregate | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 220 | # Step 2: refuse to floor partial nodes; that would silently change | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 227 | # Step 3: use the most specific bandwidth source available. | COMMENT |
| LOW⚡ | mlsysim/mlsysim/cli/schemas.py | 234 | # Step 4: compile the declarative plan into the Fleet object used by | COMMENT |
| LOW | mlsysim/mlsysim/engine/solvers/training.py | 199 | # Step 1: shard model state across model-parallel dimensions before | COMMENT |
| LOW | mlsysim/mlsysim/engine/solvers/training.py | 222 | # Step 2: activations scale with the local microbatch and layers owned by | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/chat_agent_Editor.js | 22 | // // Step 1: Insert the text at the current cursor position | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/chat_agent_Editor.js | 25 | // // Step 2: Move the cursor to the end of the inserted text | COMMENT |
| LOW | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 135 | // Step 1: Remove HTML tags and non-alphabetic characters, except spaces and dashes | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 178 | // Step 1: Remove HTML tags | COMMENT |
| LOW⚡ | socratiq/src_shadow/js/libs/agents/key_terms_summary.js | 181 | // Step 2: Remove specific phrases, case-insensitive | COMMENT |
| LOW⚡ | interviews/vault/vault.py | 661 | # Step 1: Analyze | COMMENT |
| LOW | interviews/vault/vault.py | 674 | # Step 2: Generate figures | COMMENT |
| LOW | interviews/vault/vault.py | 1350 | # Step 1: Analyze (plan for more concepts than batch_size so we always have work) | COMMENT |
| LOW | interviews/vault/vault.py | 1362 | # Step 2: Generate | COMMENT |
| LOW | interviews/vault/vault.py | 1374 | # Step 3: Validate + Add | COMMENT |
| 149 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 356 | roots.push(root); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 364 | const texts = roots.map((root) => root.body?.innerText || root.textContent || ""); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 430 | if (!el || seen.has(el)) continue; | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 435 | if (rect.width <= 0 || rect.height <= 0) continue; | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 438 | targets.push({id, maxScroll}); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 486 | const text = (el.innerText || el.textContent || '').trim().replace(/\\s+/g, ' '); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 487 | if (text && text.length < 3500 && !seenText.has(text)) { | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 489 | textNodes.push(text); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 498 | if (!el || seen.has(el)) continue; | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 503 | if (rect.width <= 0 || rect.height <= 0) continue; | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 504 | targets.push({el, maxScroll}); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 512 | positions.push(Math.min(y, target.maxScroll)); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 514 | positions.push(target.maxScroll); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 517 | if (target.el === document.scrollingElement || target.el === document.documentElement || target.el === doc | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 520 | chunks.push(capture()); | CODE |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 562 | elements.push(el); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 777 | const text = (el.innerText || el.textContent || '').trim().replace(/\\s+/g, ' '); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 780 | if (!text || rect.width <= 0 || rect.height <= 0 || style.display === 'none' || style.visibility === 'hidd | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 788 | labels.push(text); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 887 | const text = (el.innerText || el.textContent || '').trim().replace(/\\s+/g, ' '); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 888 | if (text && text.length < 2500 && !seen.has(text)) { | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 890 | textNodes.push(text); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 1113 | const text = (label?.innerText || label?.textContent || input.value || '').trim().replace(/\\s+/g, ' '); | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 1115 | if (text && rect.width > 0 && rect.height > 0) { | STRING |
| HIGH⚡ | labs/tools/interaction_lab_smoke.py | 1116 | candidates.push([index, text]); | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 591 | const candidate = control.value || control.getAttribute("value") || control.textContent || ""; | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 636 | roots.push(root); | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 765 | roots.push(root); | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 819 | roots.push(root); | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 829 | const text = normalize(el.innerText || el.textContent); | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 1280 | searchFiltersRows: filtered > 0 && filtered < before, | STRING |
| HIGH | labs/tools/interaction_lab_smoke.py | 1281 | volumeFilterWorks: v2Rows > 0 && v2Rows < before, | STRING |
| HIGH | labs/vol1/lab_01_ml_intro.py | 867 | "source_model": "Accuracy(t) ~= Accuracy_0 - lambda * D(P_t || P_0)", | STRING |
| HIGH | labs/vol1/lab_01_ml_intro.py | 1507 | "chapter_formulas": ("Accuracy(t) ~= Accuracy_0 - lambda * D(P_t || P_0)", "T ~= D_vol/BW + O/(R_peak * eta_ | STRING |
| HIGH | .github/workflows/contributors/update_contributors.py | 152 | - If both email addresses are not null, it prioritizes the one that does not contain 'noreply.github.com'. | STRING |
| HIGH | .github/scripts/visual_smoke.py | 56 | print("ERROR: playwright not installed. Run: pip install playwright && playwright install chromium", file=sys.stderr | CODE |
| HIGH | .github/scripts/visual_smoke.py | 135 | out.push({ href: l.href, status: r.status }); | STRING |
| HIGH | .github/scripts/visual_smoke.py | 137 | out.push({ href: l.href, status: 0, error: String(e) }); | STRING |
| HIGH | .github/scripts/visual_smoke.py | 171 | if (!collapse || !toggler) return null; | STRING |
| HIGH | book/tools/audit/render_playwright_verify.py | 117 | "() => typeof MathJax !== 'undefined' && MathJax.startup && MathJax.startup.promise", | CODE |
| HIGH | book/tools/scripts/figure_audit_review.py | 11 | cd book/quarto && python3 -m http.server 8787 | STRING |
| HIGH | book/tools/scripts/figure_audit_review.py | 398 | const hasFix=e.suggested_fix && e.suggested_fix!=='No fix needed.'; | CODE |
| HIGH | book/tools/scripts/figure_audit_review.py | 481 | const b=new Blob([JSON.stringify(ap,null,2)],{{type:'application/json'}}); | CODE |
| HIGH | book/tools/scripts/figure_audit_review.py | 527 | print(f"\n cd book/quarto && python3 -m http.server 8787") | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 799 | let firstVisible = null; | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 802 | const matchesQuery = !query || card.dataset.search.includes(query); | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 804 | const matchesReviewed = !reviewedOnly.checked || card.dataset.review === 'true'; | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 805 | const matchesBridge = !bridgeOnly.checked || card.dataset.status === 'bridge'; | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 806 | const visible = matchesQuery && matchesChapter && matchesReviewed && matchesBridge; | CODE |
| HIGH⚡ | …/margin_figures/render_margin_reader_alignment_html.py | 816 | if (scrollToFirst && firstVisible) {{ | CODE |
| HIGH | book/tools/scripts/maintenance/validate_inline_refs.py | 663 | print(f" ⚠ {qmd_path.name}:{qmd_line} — bare `{name}` in `{class_name}` (undefined)") | CODE |
| HIGH | book/cli/commands/maintenance.py | 189 | "[dim] Install manually with: pip install pre-commit && pre-commit install[/dim]\n" | CODE |
| HIGH | book/cli/commands/_pdf_checks.py | 312 | message=f'"{text}" appears in PDF text (LaTeX reference undefined)', | CODE |
| HIGH | mlperf-edu/reference/dataset_factory.py | 254 | "Download: cd data/movielens && curl -sL " | CODE |
| HIGH | mlperf-edu/reference/dataset_factory.py | 256 | "-o ml-100k.zip && unzip ml-100k.zip" | CODE |
| HIGH | mlperf-edu/reference/cloud/micro_gnn.py | 170 | "Download: cd data/cora && curl -sL " | CODE |
| HIGH | mlperf-edu/reference/cloud/micro_lstm.py | 71 | "Download: cd data/etth1 && curl -sL " | CODE |
| HIGH | mlperf-edu/reference/cloud/micro_bert.py | 114 | "Download: cd data/sst2 && curl -sL " | CODE |
| HIGH | mlperf-edu/reference/cloud/micro_bert.py | 116 | "-o SST-2.zip && unzip SST-2.zip" | CODE |
| HIGH | mlsysim/mlsysim/fmt.py | 50 | kind = "nan (0/0 or undefined)" if math.isnan(val) else "infinite (divide-by-zero)" | CODE |
| 7 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | book/tools/audits/mlsysim_constants/vol2_inference.yaml | 512 | target_source: derive from mlsysim.models.Models.Language.Llama2_70B.size_in_bytes(BYTES_INT4) | CODE |
| CRITICAL | book/tools/audits/mlsysim_constants/vol2_inference.yaml | 601 | target_source: mlsysim.models.Models.Language.Llama2_70B.size_in_bytes(BYTES_FP16) | CODE |
| CRITICAL⚡ | …ools/scripts/margin_figures/generate_margin_figures.py | 700 | v100_gib = Hardware.Cloud.V100.memory.capacity.m_as("GiB") | CODE |
| CRITICAL⚡ | …ools/scripts/margin_figures/generate_margin_figures.py | 713 | v100_bw = Hardware.Cloud.V100.memory.bandwidth.m_as("GB/s") | CODE |
| CRITICAL⚡ | …ools/scripts/margin_figures/generate_margin_figures.py | 1162 | load_ms = (10.0 / Hardware.Cloud.A100.interconnect.bandwidth.m_as(GB / second) * second).m_as(ms) | CODE |
| CRITICAL | …ools/scripts/margin_figures/generate_margin_figures.py | 749 | hbm_gb_s = Hardware.Cloud.H100.memory.bandwidth.m_as("GB/s") | CODE |
| CRITICAL | book/tests/test_mlsysim_registry_coverage.py | 38 | # ``Hardware.Cloud.H100.memory.capacity.m_as(GB)``. Resolve the registry object | COMMENT |
| CRITICAL | book/vscode-ext/src/extension.ts | 301 | if (!event.textEditor.document.uri.fsPath.endsWith('.qmd')) { | CODE |
| CRITICAL⚡ | mlsysim/tests/test_solver_suite.py | 51 | from mlsysim.core.exceptions import OOMError | CODE |
| CRITICAL | mlsysim/tests/test_golden_regressions.py | 186 | h100_fp16_tflops = Hardware.Cloud.H100.compute.peak_flops.m_as("TFLOP/s") | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 45 | assert Hardware.Cloud.V100.nvlink.bandwidth.m_as(GB / second) == 300.0 | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 46 | assert Hardware.Cloud.A100.nvlink.bandwidth.m_as(GB / second) == 600.0 | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 47 | assert Hardware.Cloud.H100.nvlink.bandwidth.m_as(GB / second) == 900.0 | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 48 | assert Hardware.Cloud.B200.nvlink.bandwidth.m_as(GB / second) == 1800.0 | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 85 | assert Hardware.Tech.Memory.DDR4_3200.bandwidth.m_as(GB / second) == pytest.approx(51.2) | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 86 | assert Hardware.Tech.Memory.HBM2.bandwidth.m_as(GB / second) == pytest.approx(900) | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 87 | assert Hardware.Tech.Memory.HBM3.bandwidth.m_as(GB / second) == pytest.approx(1600) | CODE |
| CRITICAL⚡ | mlsysim/tests/test_hardware.py | 88 | assert Hardware.Tech.Memory.GDDR6X.bandwidth.m_as(GB / second) == pytest.approx(760) | CODE |
| CRITICAL | mlsysim/mlsysim/cli/exceptions.py | 24 | from mlsysim.core.exceptions import OOMError | CODE |
| CRITICAL | mlsysim/mlsysim/viz/plots.py | 306 | peak_flops = fleet_system.node.accelerator.compute.peak_flops.to("TFLOPs/s").magnitude * fleet_system.count | CODE |
| CRITICAL | mlsysim/mlsysim/engine/solvers/performance.py | 135 | fleet.node.accelerator.compute.precision_flops.get( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/tests/test_protocol.py | 108 | # Check if it's inside a string (skip those) | COMMENT |
| LOW | instructors/check-links.sh | 47 | # Check if file exists | COMMENT |
| LOW⚡ | scripts/audit_blocks.py | 16 | # Check if it uses mlsysim solvers or scenarios | COMMENT |
| LOW⚡ | scripts/audit_blocks.py | 20 | # Check if it has suspicious manual math (+, -, *, /) that should be a solver | COMMENT |
| LOW | .github/workflows/infra-health-check.yml | 290 | # Check if any tools are missing and fail if so | COMMENT |
| LOW | .github/workflows/infra-health-check.yml | 526 | # Check if any tools are missing and fail if so | COMMENT |
| LOW | .github/workflows/book-publish-live.yml | 724 | # Check if dev commit exists and is valid | COMMENT |
| LOW | .github/workflows/book-publish-live.yml | 962 | # Check if workflow files are in the dev branch changes | COMMENT |
| LOW | .github/workflows/book-publish-live.yml | 999 | # Check if dev_commit is an ancestor of current main | COMMENT |
| LOW | .github/workflows/book-publish-live.yml | 1605 | # Check if there are actually changes to commit | COMMENT |
| LOW | .github/workflows/infra-container-linux.yml | 246 | # Check if we have the required permissions | COMMENT |
| LOW | .github/workflows/infra-container-linux.yml | 258 | # Check if secrets are available | COMMENT |
| LOW | .github/workflows/contributors/scan_contributors.py | 452 | # Output results | COMMENT |
| LOW | .github/workflows/contributors/update_contributors.py | 166 | # Check if either email is not null | COMMENT |
| LOW | book/setup.py | 18 | # Check if we're in a virtual environment | COMMENT |
| LOW | book/tools/setup/setup.sh | 10 | # Check if Python is installed | COMMENT |
| LOW | book/tools/setup/clean.sh | 130 | # Check if GC is needed | COMMENT |
| LOW | book/tools/audit/protected_contexts.py | 234 | # Check if this line closes the comment | STRING |
| LOW | book/tools/scripts/transform_pico_cells.py | 175 | # Check if body has structured sections already | COMMENT |
| LOW | book/tools/scripts/svg_polisher.py | 44 | # Check if text is roughly centered horizontally in this rect | COMMENT |
| LOW | book/tools/scripts/svg_polisher.py | 64 | # Check if it's almost horizontal | COMMENT |
| LOW | book/tools/scripts/svg_polisher.py | 70 | # Check if it's almost vertical | COMMENT |
| LOW | book/tools/scripts/images/remove_bg.py | 37 | # Set alpha to 0 (transparent) for white pixels | COMMENT |
| LOW | book/tools/scripts/images/manage_external_images.py | 362 | # Check if file already exists | COMMENT |
| LOW | book/tools/scripts/images/manage_images.py | 52 | # Check if it has SVG namespace or is an SVG element | COMMENT |
| LOW | book/tools/scripts/content/relocate_figures.py | 87 | # Check if this looks like a table row | COMMENT |
| LOW | book/tools/scripts/content/relocate_figures.py | 449 | # Check if relocation is needed | COMMENT |
| LOW | book/tools/scripts/content/relocate_figures.py | 468 | # Check if target would actually move the element closer | COMMENT |
| LOW | book/tools/scripts/content/relocate_figures.py | 660 | # Read the file | COMMENT |
| LOW | book/tools/scripts/content/section_splitter.py | 114 | # Check if unnumbered | COMMENT |
| LOW | book/tools/scripts/content/section_splitter.py | 361 | # Check if this is a real section header | COMMENT |
| LOW | book/tools/scripts/content/format_div_spacing.py | 221 | # Check if we need to insert a blank line before this line | COMMENT |
| LOW | book/tools/scripts/content/fix_abbreviations.py | 159 | # Check if this first use includes the expansion | COMMENT |
| LOW | book/tools/scripts/content/validate_tables.py | 76 | # Check if next line is also a table row or if this is the end | COMMENT |
| LOW | book/tools/scripts/content/validate_tables.py | 204 | # Check if this cell spans multiple rows | COMMENT |
| LOW | book/tools/scripts/content/validate_tables.py | 206 | # Check if next line is a continuation (not a border) | COMMENT |
| LOW | book/tools/scripts/content/validate_tables.py | 479 | # Print results | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 157 | # Check if next line is a border | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 307 | # Check if it's primarily numeric | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 348 | # Check if header matches bold indicators | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 370 | # Check if mostly numeric (data table) | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 383 | # Check if descriptive (multi-word = comparison table) | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 731 | # Check if any data lines differ (catches alignment changes) | COMMENT |
| LOW | book/tools/scripts/content/format_tables.py | 540 | # Check if adding this part would exceed max_width | STRING |
| LOW | book/tools/scripts/content/format_tables.py | 571 | # Check if any cell needs wrapping | STRING |
| LOW | book/tools/scripts/content/check_tikz_spelling.py | 321 | # Check if aspell is available | STRING |
| LOW | book/tools/scripts/content/check_tikz_spelling.py | 451 | # Check if aspell is available | COMMENT |
| LOW | book/tools/scripts/content/check_tikz_spelling.py | 470 | # Print results | COMMENT |
| LOW | book/tools/scripts/content/check_prose_spelling.py | 216 | # Check if any part of this line is prose | COMMENT |
| LOW | book/tools/scripts/content/check_prose_spelling.py | 438 | # Check if aspell is available | COMMENT |
| LOW | book/tools/scripts/content/check_prose_spelling.py | 470 | # Print results | COMMENT |
| LOW | book/tools/scripts/content/fix_numbers.py | 183 | # Check if we're at a single digit 1-9 | COMMENT |
| LOW | book/tools/scripts/content/fix_numbers.py | 230 | # Check if this looks like a markdown ordered list item | COMMENT |
| LOW | book/tools/scripts/content/fix_numbers.py | 325 | # Check if preceded by a numbered label word (e.g. "Layer 3", "Step 5") | COMMENT |
| LOW | book/tools/scripts/content/fix_bibliography.py | 117 | # Check if it's an arXiv preprint | COMMENT |
| LOW⚡ | book/tools/scripts/content/fix_capitalization.py | 65 | # Check if inside bold definition: **Term** or ***Term*** | COMMENT |
| LOW⚡ | book/tools/scripts/content/fix_capitalization.py | 73 | # Check if at start of sentence | COMMENT |
| LOW⚡ | book/tools/scripts/content/fix_capitalization.py | 82 | # Check if inside inline math $...$ | COMMENT |
| LOW⚡ | book/tools/scripts/content/fix_capitalization.py | 97 | # Check if inside \index{...} | COMMENT |
| LOW⚡ | book/tools/scripts/content/fix_capitalization.py | 104 | # Check if "Iron Law of Processor Performance" (H&P reference — keep caps) | COMMENT |
| 135 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | shared/styles/partials/_tables.scss | 83 | #tbl-paradigm-evolution { | COMMENT |
| MEDIUM | .github/workflows/infra-health-check.yml | 680 | # Capture raw output with timestamps using a more robust method | COMMENT |
| MEDIUM | .github/workflows/mlperf-edu-validate-dev.yml | 3 | # Fast validation for the educational MLPerf harness. The actual CI job runs | COMMENT |
| MEDIUM | .github/workflows/book-publish-live.yml | 1625 | # Commit with comprehensive validation | COMMENT |
| LOW | .github/workflows/update-contributors.yml | 35 | # every directory automatically — to add a new project just add an entry | COMMENT |
| MEDIUM | .github/workflows/infra-cloudflare-purge.yml | 31 | # next request. "Purge everything" is the simpler, more robust default. | COMMENT |
| MEDIUM | book/tools/audit/lego_focal_analysis.json | 1668 | "focal_hint": "## Serving Paradigm {#sec-model-serving-serving-paradigm-963", | CODE |
| MEDIUM | book/tools/scripts/content/check_prose_spelling.py | 360 | # Additional comprehensive technical terms (auto-generated from book content) | COMMENT |
| MEDIUM | book/tools/scripts/content/manage_captions.py | 1063 | # Apply comprehensive quality improvements | STRING |
| MEDIUM⚡ | book/tools/scripts/publish/publish.sh | 6 | # A comprehensive manual publishing tool for the MLSysBook textbook | COMMENT |
| MEDIUM | book/tools/scripts/maintenance/repo_health_check.py | 52 | """Get comprehensive repository statistics""" | STRING |
| MEDIUM | book/tools/scripts/maintenance/repo_health_check.py | 366 | """Display comprehensive health report""" | STRING |
| MEDIUM | book/tools/scripts/quizzes/generate_quizzes.py | 274 | // correctly leverage (use without redefining) | COMMENT |
| MEDIUM | …ols/scripts/quizzes/_audit/security_privacy_audit.json | 53 | "section_id": "#sec-security-privacy-comprehensive-defense-architectures-48ab", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 47 | "section_id": "#sec-robust-ai-environmental-shifts-a2cf", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 53 | "section_id": "#sec-robust-ai-adversarial-attack-detection-defense-19d3", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 59 | "section_id": "#sec-robust-ai-data-poisoning-defenses-d070", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 81 | "section_id": "#sec-robust-ai-introduction-robust-ai-systems-4671", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 89 | "section_id": "#sec-robust-ai-unified-framework-robust-ai-b25d", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 97 | "section_id": "#sec-robust-ai-environmental-shifts-a2cf", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 105 | "section_id": "#sec-robust-ai-inputlevel-attacks-model-robustness-d6ea", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 113 | "section_id": "#sec-robust-ai-adversarial-attack-detection-defense-19d3", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 121 | "section_id": "#sec-robust-ai-data-poisoning-defenses-d070", | CODE |
| MEDIUM⚡ | book/tools/scripts/quizzes/_audit/robust_ai_audit.json | 129 | "section_id": "#sec-robust-ai-data-poisoning-defenses-d070", | CODE |
| MEDIUM | book/tools/scripts/quizzes/_audit/ml_systems_audit.json | 70 | "section_id": "#sec-ml-systems-deployment-paradigm-framework-0d25", | CODE |
| MEDIUM | book/tools/scripts/quizzes/_audit/ml_systems_audit.json | 78 | "section_id": "#sec-ml-systems-deployment-paradigm-framework-0d25", | CODE |
| MEDIUM | book/tools/scripts/quizzes/_audit/ml_systems_audit.json | 150 | "section_id": "#sec-ml-systems-comparative-analysis-paradigm-selection-bf66", | CODE |
| MEDIUM | …/tools/scripts/quizzes/_audit/model_serving_audit.json | 51 | "section_id": "#sec-model-serving-serving-paradigm-9634", | CODE |
| MEDIUM | …ls/scripts/quizzes/_audit/edge_intelligence_audit.json | 46 | "section_id": "#sec-edge-intelligence-distributed-learning-paradigm-shift-883d", | CODE |
| MEDIUM | …ls/scripts/quizzes/_audit/edge_intelligence_audit.json | 86 | "section_id": "#sec-edge-intelligence-distributed-learning-paradigm-shift-883d", | CODE |
| MEDIUM | book/cli/commands/validate.py | 2027 | # (Li et al. 2020): A distributed training paradigm…" — the cite | COMMENT |
| MEDIUM | book/cli/commands/doctor.py | 34 | """Run comprehensive health check. | STRING |
| MEDIUM | …/vol2/edge_intelligence/edge_intelligence_quizzes.json | 15 | "section_id": "#sec-edge-intelligence-distributed-learning-paradigm-shift-883d", | CODE |
| MEDIUM | …ts/vol2/security_privacy/security_privacy_quizzes.json | 441 | "section_id": "#sec-security-privacy-comprehensive-defense-architectures-48ab", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 15 | "section_id": "#sec-robust-ai-introduction-robust-ai-systems-4671", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 85 | "section_id": "#sec-robust-ai-realworld-robustness-failures-c119", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 149 | "section_id": "#sec-robust-ai-unified-framework-robust-ai-b25d", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 219 | "section_id": "#sec-robust-ai-environmental-shifts-a2cf", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 290 | "section_id": "#sec-robust-ai-inputlevel-attacks-model-robustness-d6ea", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 367 | "section_id": "#sec-robust-ai-input-attack-detection-defense-19d3", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 431 | "section_id": "#sec-robust-ai-data-poisoning-defenses-d070", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 495 | "section_id": "#sec-robust-ai-fallacies-pitfalls-087e", | CODE |
| MEDIUM | …/quarto/contents/vol2/robust_ai/robust_ai_quizzes.json | 539 | "section_id": "#sec-robust-ai-summary-a274", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 10 | "section_id": "#sec-robust-ai-introduction-robust-ai-systems-4671", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 66 | "section_id": "#sec-robust-ai-realworld-robustness-failures-c119", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 121 | "section_id": "#sec-robust-ai-unified-framework-robust-ai-b25d", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 176 | "section_id": "#sec-robust-ai-hardware-faults-cf22", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 237 | "section_id": "#sec-robust-ai-intentional-input-manipulation-6b2a", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 293 | "section_id": "#sec-robust-ai-environmental-shifts-a2cf", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 348 | "section_id": "#sec-robust-ai-robustness-evaluation-tools-6b64", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 397 | "section_id": "#sec-robust-ai-inputlevel-attacks-model-robustness-d6ea", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 459 | "section_id": "#sec-robust-ai-software-faults-889e", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 514 | "section_id": "#sec-robust-ai-fault-injection-tools-frameworks-fc07", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 563 | "section_id": "#sec-robust-ai-fallacies-pitfalls-087e", | CODE |
| MEDIUM | …/contents/vol2/robust_ai/footnote_context_quizzes.json | 612 | "section_id": "#sec-robust-ai-summary-a274", | CODE |
| MEDIUM | …o/contents/vol1/introduction/introduction_quizzes.json | 71 | "section_id": "#sec-introduction-datacentric-paradigm-shift-4eca", | CODE |
| MEDIUM | …o/contents/vol1/introduction/introduction_quizzes.json | 133 | "section_id": "#sec-introduction-ai-paradigm-evolution-ae2b", | CODE |
| MEDIUM | …contents/vol1/model_serving/model_serving_quizzes.json | 15 | "section_id": "#sec-model-serving-serving-paradigm-9634", | CODE |
| MEDIUM | …quarto/contents/vol1/ml_systems/frontiers_quizzes.json | 391 | "section_id": "#sec-ml-systems-paradigm-selection-c17d", | CODE |
| MEDIUM | …uarto/contents/vol1/ml_systems/ml_systems_quizzes.json | 15 | "section_id": "#sec-ml-systems-deployment-paradigm-framework-0d25", | CODE |
| 56 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | labs/vol2/lab_10_inference.py | 0 | <div style="overflow-x:auto; margin:10px 0;"> <table style="width:100%; border-collapse:collapse; font-size:0.86rem;"> < | STRING |
| HIGH | labs/vol2/lab_14_robust_ai.py | 0 | <div style="overflow-x:auto; margin:10px 0;"> <table style="width:100%; border-collapse:collapse; font-size:0.86rem;"> < | STRING |
| HIGH | labs/vol2/lab_09_perf_engineering.py | 0 | <div style="overflow-x:auto; margin:10px 0;"> <table style="width:100%; border-collapse:collapse; font-size:0.86rem;"> < | STRING |
| HIGH | labs/vol1/lab_14_ml_ops.py | 0 | <div style="padding:16px; border:{border_style}; border-radius:10px; min-width:150px; text-align:center; background:whit | STRING |
| HIGH | labs/vol1/lab_15_responsible_engr.py | 0 | <div style="padding:16px; border:{border_style}; border-radius:10px; min-width:150px; text-align:center; background:whit | STRING |
| HIGH | labs/vol1/lab_16_ml_conclusion.py | 0 | <div style="padding:16px; border:{border_style}; border-radius:10px; min-width:150px; text-align:center; background:whit | STRING |
| HIGH | book/tools/scripts/content/fix_percent.py | 0 | process a single qmd file. returns count of replacements. | STRING |
| HIGH | book/tools/scripts/content/fix_emdash.py | 0 | process a single qmd file. returns count of replacements. | STRING |
| HIGH | book/tools/scripts/content/fix_numbers.py | 0 | process a single qmd file. returns count of replacements. | STRING |
| HIGH | book/tools/scripts/content/fix_capitalization.py | 0 | process a single qmd file. returns count of replacements. | STRING |
| HIGH | book/tests/test_fmt_prose_contract.py | 0 | ```{{python}} #| echo: false class c: {assigns} ``` {prose} | STRING |
| HIGH | book/tests/test_lego_prose_units.py | 0 | ```{{python}} #| echo: false class c: {assigns} ``` {prose} | STRING |
| HIGH | book/tests/test_codemod_fmt.py | 0 | ```{{python}} #| echo: false class c: {assigns} ``` {prose} | STRING |
| HIGH | tinytorch/src/16_compression/16_compression.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/01_tensor/01_tensor.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/11_embeddings/11_embeddings.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/15_quantization/15_quantization.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/18_memoization/18_memoization.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/05_dataloader/05_dataloader.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/20_capstone/20_capstone.py | 0 | ## 🧪 module integration test final validation that everything works together correctly before module completion. | STRING |
| HIGH | tinytorch/src/16_compression/16_compression.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/02_activations/02_activations.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/08_training/08_training.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/01_tensor/01_tensor.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/11_embeddings/11_embeddings.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/15_quantization/15_quantization.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/13_transformers/13_transformers.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/07_optimizers/07_optimizers.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/05_dataloader/05_dataloader.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/20_capstone/20_capstone.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/03_layers/03_layers.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/04_losses/04_losses.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/12_attention/12_attention.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/10_tokenization/10_tokenization.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/18_memoization/18_memoization.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/14_profiling/14_profiling.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/09_convolutions/09_convolutions.py | 0 | 🧪 module test: complete integration comprehensive test of entire spatial module functionality. this final test runs befo | STRING |
| HIGH | tinytorch/src/02_activations/02_activations.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/04_losses/04_losses.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/12_attention/12_attention.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/08_training/08_training.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/13_transformers/13_transformers.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/07_optimizers/07_optimizers.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/14_profiling/14_profiling.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/09_convolutions/09_convolutions.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/03_layers/03_layers.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| HIGH | tinytorch/src/06_autograd/06_autograd.py | 0 | ## 🧪 module integration test final validation that everything works together correctly. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | labs/vol2/lab_10_inference.py | 12 | # guardrails at the same time. | COMMENT |
| MEDIUM | labs/vol2/lab_02_compute_infra.track-plan.md | 25 | | Part D | `#sec-compute-summary`, `#sec-compute-fallacies-pitfalls`, `#sec-compute-emerging` | A defensible infrastruct | CODE |
| MEDIUM | labs/vol2/lab_13_security_privacy.track-plan.md | 28 | | Part D | `#sec-security-privacy-dp-decision-framework-c4a8`, `#sec-security-privacy-fallacies-pitfalls-0c20`, `#tbl-se | CODE |
| MEDIUM | labs/vol2/lab_05_dist_train.track-plan.md | 21 | | Part D | `#sec-distributed-training-systems-systems-parallelism-strategy-comparison-d92a`, `#sec-distributed-training- | CODE |
| MEDIUM | labs/vol2/lab_06_collective_communication.track-plan.md | 23 | | Part D | `#sec-communication-collective-operations-collective-operations-fallacies-pitfalls-9cd0`, `#sec-communication | CODE |
| MEDIUM | labs/vol2/lab_12_ops_scale.track-plan.md | 22 | | Part D | `#tbl-self-service-deployment-invariants`, `#sec-ml-operations-scale-resource-management-5550`, `#sec-ml-oper | CODE |
| MEDIUM⚡ | labs/vol2/lab_11_edge_intelligence.py | 25 | # Energy, memory, privacy, update, and quality guardrails must all pass. | COMMENT |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 22 | | Opening | `#sec-fleet-orchestration-introduction`, `#sec-fleet-orchestration-objectives` | Orchestration decides who g | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 23 | | Part A | `#sec-fleet-orchestration-objectives`, `#nbk-fleet-orchestration-queuing-theory-gpu-clusters`, fallacy "Treat | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 24 | | Part B | `#sec-fleet-orchestration-burst-capacity`, `#sec-fleet-orchestration-preemption-cascades`, custom scheduler s | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 25 | | Part C | `#sec-fleet-orchestration-bin-packing`, `#sec-fleet-orchestration-placement-algorithms`, `#sec-fleet-orchestr | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 26 | | Part D | `#sec-fleet-orchestration-fair-share-multi`, `#sec-fleet-orchestration-resource-accounting`, `#sec-fleet-orch | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 26 | | Part D | `#sec-fleet-orchestration-fair-share-multi`, `#sec-fleet-orchestration-resource-accounting`, `#sec-fleet-orch | CODE |
| MEDIUM⚡ | labs/vol2/lab_08_fleet_orch.track-plan.md | 27 | | Synthesis | `#sec-fleet-orchestration-summary`, "From orchestration to optimization" | The orchestration decision beco | CODE |
| MEDIUM | labs/vol2/lab_03_communication.track-plan.md | 18 | | Part D | `#sec-network-fabrics-monitoring`, `#sec-network-fabrics-summary`, `#sec-network-fabrics-fallacies` | A commu | CODE |
| MEDIUM | book/tools/audit/margin_figure_reader_link_audit.md | 5102 | ### 120. vol2/conclusion @ line 303: Future efficiency needs hardware, algorithm, and orchestration gains together. | COMMENT |
| MEDIUM | book/tools/audit/margin_figure_reader_link_audit.md | 6498 | 307 ::: {#nbk-fleet-orchestration-queuing-theory-gpu-clusters .callout-notebook title="The queuing theory of GPU cluste | CODE |
| MEDIUM | book/tools/audit/margin_figure_reader_link_audit.md | 6541 | 556 ::: {#dfn-fleet-orchestration-priority-inversion .callout-definition title="Priority inversion"} | CODE |
| MEDIUM | book/tools/scripts/quizzes/generate_quizzes.py | 55 | # Local scaffolding | COMMENT |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 41 | "section_id": "#sec-fleet-orchestration-paradigms", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 47 | "section_id": "#sec-fleet-orchestration-serving", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 53 | "section_id": "#sec-fleet-orchestration-serving", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 61 | "section_id": "#sec-fleet-orchestration-serving", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 67 | "section_id": "#sec-fleet-orchestration-custom-schedulers", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 88 | "section_id": "#sec-fleet-orchestration-paradigms", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 96 | "section_id": "#sec-fleet-orchestration-paradigms", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 104 | "section_id": "#sec-fleet-orchestration-topology-aware", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 112 | "section_id": "#sec-fleet-orchestration-elastic-training", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 120 | "section_id": "#sec-fleet-orchestration-cost-optimization", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 128 | "section_id": "#sec-fleet-orchestration-custom-schedulers", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 136 | "section_id": "#sec-fleet-orchestration-multi-tenancy", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 144 | "section_id": "#sec-fleet-orchestration-debugging", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 152 | "section_id": "#sec-fleet-orchestration-fallacies", | CODE |
| MEDIUM⚡ | …/scripts/quizzes/_audit/fleet_orchestration_audit.json | 160 | "section_id": "#sec-fleet-orchestration-summary", | CODE |
| MEDIUM | book/cli/commands/validate.py | 240 | # Existing bibliography citations inside scaffolding blocks. New citations in | COMMENT |
| MEDIUM | book/cli/commands/validate.py | 241 | # Purpose, learning objectives, or takeaways fail `refs.scaffold-citations`. | COMMENT |
| MEDIUM | book/cli/commands/validate.py | 3679 | # Frontmatter is allowed to contain non-book scaffolding; all book | COMMENT |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 15 | "section_id": "#sec-fleet-orchestration-introduction", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 85 | "section_id": "#sec-fleet-orchestration-paradigms", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 161 | "section_id": "#sec-fleet-orchestration-topology-aware", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 238 | "section_id": "#sec-fleet-orchestration-elastic-training", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 314 | "section_id": "#sec-fleet-orchestration-cost-optimization", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 384 | "section_id": "#sec-fleet-orchestration-custom-schedulers", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 460 | "section_id": "#sec-fleet-orchestration-serving", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 542 | "section_id": "#sec-fleet-orchestration-multi-tenancy", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 618 | "section_id": "#sec-fleet-orchestration-debugging", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 694 | "section_id": "#sec-fleet-orchestration-fallacies", | CODE |
| MEDIUM | …2/fleet_orchestration/fleet_orchestration_quizzes.json | 740 | "section_id": "#sec-fleet-orchestration-summary", | CODE |
| MEDIUM | mlperf-edu/scripts/smoke_iter8_compression.py | 118 | # quantizable in this scaffold) cap the achievable ratio at ~6x for | COMMENT |
| MEDIUM | mlperf-edu/scripts/orchestration/auto_trainer.py | 94 | # RAG agent: query tokens in, targets for the augmented context | COMMENT |
| MEDIUM | mlperf-edu/reference/dataset_factory.py | 459 | # RAG and ToolCall still use language data but with agent-specific framing | COMMENT |
| MEDIUM | mlperf-edu/reference/cloud/nanogpt_decode_spec.py | 137 | # For the scaffold we accept Han's simplification: trust the verify | COMMENT |
| MEDIUM | mlperf-edu/reference/cloud/nanogpt_decode_spec.py | 152 | # Truncate target_kv to accepted prefix (scaffold simplification: | COMMENT |
| MEDIUM | site/newsletter/cli/README.md | 32 | news new <slug> # scaffold a new draft from the template | CODE |
| MEDIUM | mlsysim/mlsysim/cli/commands/eval.py | 65 | # Use SystemEvaluator to decouple orchestration from CLI | COMMENT |
| MEDIUM | mlsysim/mlsysim/cli/commands/eval.py | 144 | # Use SystemEvaluator to decouple orchestration from CLI | COMMENT |
| MEDIUM | mlsysim/mlsysim/engine/resolver_factory.py | 34 | # prefixed intermediates are skipped as non-instantiable scaffolding. | COMMENT |
| MEDIUM⚡ | interviews/staffml/src/data/tracks/edge.json | 1 | [{"id":"edge-sensor-drift-regression-the-decaying-sensor-dilemma-0","track":"edge","scope":"Realtime Pipeline","level":" | CODE |
| MEDIUM⚡ | interviews/staffml/src/data/tracks/edge.json | 1 | [{"id":"edge-sensor-drift-regression-the-decaying-sensor-dilemma-0","track":"edge","scope":"Realtime Pipeline","level":" | CODE |
| MEDIUM⚡ | interviews/staffml/src/data/tracks/edge.json | 1 | [{"id":"edge-sensor-drift-regression-the-decaying-sensor-dilemma-0","track":"edge","scope":"Realtime Pipeline","level":" | CODE |
| 17 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | design-grammar/rewrite-rules.yml | 4 | # This file is the playbook: behavior-preserving transformations that change | COMMENT |
| MEDIUM | .github/workflows/book-publish-live.yml | 1988 | # Create a basic fallback release notes file | COMMENT |
| MEDIUM | .github/workflows/book-publish-live.yml | 2062 | # Create the release as a DRAFT for manual editing | COMMENT |
| MEDIUM | .github/workflows/tinytorch-publish-live.yml | 750 | # Create the release as draft | COMMENT |
| MEDIUM | .github/workflows/contributors/update_contributors.py | 277 | # Create a combined key using username and email_address to handle | COMMENT |
| MEDIUM | book/tools/scripts/convert_icons.py | 15 | # Create a white background image for PDF to avoid alpha channel issues in some PDF viewers/printers | COMMENT |
| MEDIUM | book/tools/scripts/utilities/count_footnotes.sh | 3 | # Define the search directory | COMMENT |
| MEDIUM | book/tools/scripts/utilities/analyze_footnotes.sh | 47 | # Create a temporary file to store filename and footnote count pairs | COMMENT |
| MEDIUM⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 2891 | # Create a copy of the data to modify | COMMENT |
| MEDIUM⚡ | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 6326 | # Create a temporary args object for this file | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 511 | # Create the evaluation prompt | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 2544 | # Create a custom system prompt that includes the user's instructions | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 2842 | # Create a copy of the data to modify | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4392 | # Create a balanced distribution of answer positions | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 4441 | # Create a temporary placeholder to avoid double-swapping | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 5075 | # Create a mapping of file names to their position in the book | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 5099 | # Create a mapping of file names to their position in the book | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 5248 | # Create a thread-local copy of args to avoid race conditions | COMMENT |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 1974 | # Create a mapping from chapter name to number | STRING |
| MEDIUM⚡ | book/quarto/config/shared/html/announcement.yml | 4 | # This file is kept as a no-op so old references (if any) don't 404 the | COMMENT |
| MEDIUM | book/quarto/scripts/epub_postprocess.py | 469 | # Create a temporary output file | COMMENT |
| MEDIUM | mlperf-edu/examples/lab2_inference_sut.py | 80 | # Create a dummy input prompt (in production, decode from dataset) | COMMENT |
| MEDIUM | mlsysim/mlsysim/sim/simulations.py | 79 | # Create a virtual fleet for the solver if scenario is single-node | COMMENT |
| MEDIUM⚡ | interviews/vault-cli/tests/test_book_refs.py | 81 | # Create the book tree (so link-check is active) but NOT the chapter. | COMMENT |
| MEDIUM | tinytorch/tests/16_compression/test_compressor_core.py | 47 | # Create a simple model with known sparsity | COMMENT |
| MEDIUM | tinytorch/tests/01_tensor/test_tensor_core.py | 310 | # Create a 1000×1000 tensor (1 million elements) | COMMENT |
| MEDIUM | tinytorch/tests/integration/test_cnn_integration.py | 26 | # Create a simple 3x3 image with a known pattern | COMMENT |
| MEDIUM | tinytorch/tests/integration/test_cnn_integration.py | 33 | # Create a vertical edge detector kernel | COMMENT |
| MEDIUM | tinytorch/tests/integration/test_cnn_integration.py | 207 | # Create a simple loss (sum of all outputs) | COMMENT |
| MEDIUM | …torch/tests/integration/test_optimizers_integration.py | 34 | # Create a simple linear layer | COMMENT |
| MEDIUM | …torch/tests/integration/test_optimizers_integration.py | 45 | # Create a simple loss (sum of outputs) | COMMENT |
| MEDIUM | tinytorch/tests/07_optimizers/test_optimizer_core.py | 62 | # Create a simple parameter | COMMENT |
| MEDIUM⚡ | tinytorch/tests/14_profiling/test_profiler_core.py | 69 | # Create a simple model | COMMENT |
| MEDIUM | tinytorch/tests/environment/test_setup_validation.py | 102 | # Create a simple plot | COMMENT |
| MEDIUM | …nytorch/tests/regression/test_transformer_reshaping.py | 247 | # Import required modules for testing | COMMENT |
| MEDIUM | …nytorch/tests/regression/test_transformer_reshaping.py | 251 | # Create a simple mock if not available | COMMENT |
| MEDIUM | tinytorch/tests/03_layers/test_03_layers_progressive.py | 355 | # Create a simple custom layer for testing | STRING |
| MEDIUM | tinytorch/tests/03_layers/test_03_layers_progressive.py | 427 | # Create a layer that actually works with tensors | STRING |
| MEDIUM | …milestones/01_1958_perceptron/01_rosenblatt_forward.py | 178 | # Create a simple scatter plot | COMMENT |
| MEDIUM | …/milestones/06_2018_mlperf/01_optimization_olympics.py | 358 | # Create a copy for pruning | COMMENT |
| MEDIUM | tinytorch/tito/core/status_analyzer.py | 265 | # Create a temporary file to test import | COMMENT |
| MEDIUM | tinytorch/tito/commands/setup.py | 549 | # Create a dummy Namespace for login command arguments | COMMENT |
| MEDIUM | tinytorch/tito/commands/setup.py | 585 | # Create a dummy Namespace for login command arguments | COMMENT |
| MEDIUM | tinytorch/tito/commands/system/logo.py | 34 | # Create the explanation text | COMMENT |
| MEDIUM | tinytorch/src/16_compression/16_compression.py | 135 | # Create a model and analyze its weights | COMMENT |
| MEDIUM | tinytorch/src/16_compression/16_compression.py | 1419 | # Create a simple model (Linear already imported above) | COMMENT |
| MEDIUM | tinytorch/src/16_compression/16_compression.py | 1761 | # Create a realistic model with explicit layers - students see the architecture | COMMENT |
| MEDIUM | tinytorch/src/16_compression/16_compression.py | 1921 | # Create a model | COMMENT |
| MEDIUM | tinytorch/src/04_losses/04_losses.py | 1025 | # Create a range of prediction errors for analysis | COMMENT |
| MEDIUM | tinytorch/src/08_training/08_training.py | 1724 | # Create a simple model | COMMENT |
| MEDIUM | tinytorch/src/08_training/08_training.py | 1826 | # Create a simple model using REAL Linear layer | COMMENT |
| MEDIUM | tinytorch/src/01_tensor/01_tensor.py | 1632 | # Create a moderately-sized matrix (large enough to show cache effects) | COMMENT |
| MEDIUM | tinytorch/src/19_benchmarking/19_benchmarking.py | 4060 | # Create a simple model and input | COMMENT |
| MEDIUM | tinytorch/src/15_quantization/15_quantization.py | 1184 | # Create a simple model | COMMENT |
| MEDIUM | tinytorch/src/15_quantization/15_quantization.py | 1292 | # Create a linear layer | COMMENT |
| MEDIUM | tinytorch/src/15_quantization/15_quantization.py | 1992 | # Create a simple model | COMMENT |
| MEDIUM | tinytorch/src/15_quantization/15_quantization.py | 2153 | # Create a realistic model using explicit composition (Sequential from tinytorch.core.layers) | COMMENT |
| MEDIUM | tinytorch/src/18_memoization/18_memoization.py | 1240 | # Create a real cache for testing | COMMENT |
| MEDIUM | tinytorch/src/18_memoization/18_memoization.py | 1404 | # Create a minimal mock model that returns random logits | COMMENT |
| MEDIUM | tinytorch/src/18_memoization/18_memoization.py | 1608 | # Create a mock transformer-like object for testing | COMMENT |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/mlsysbook_labs/capstone.py | 301 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/variants.py | 4045 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/data_pipeline.py | 309 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/tracks.py | 143 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/style.py | 7 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/legacy_components.py | 16 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/deployment.py | 382 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/serving.py | 429 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/registry_refs.py | 32 | __all__ = ["resolve_mlsysim_ref"] | CODE |
| LOW | labs/mlsysbook_labs/track_arcs.py | 293 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/__init__.py | 321 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/ops.py | 308 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/architecture.py | 402 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/triad.py | 196 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/frameworks.py | 380 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/selection.py | 399 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/workflow.py | 264 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/migration.py | 163 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/neural_compute.py | 323 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/training.py | 401 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/responsibility.py | 419 | __all__ = [ | CODE |
| LOW | labs/mlsysbook_labs/state.py | 5 | __all__ = ["DesignLedger", "LedgerState"] | CODE |
| LOW | labs/mlsysbook_labs/system_design.py | 953 | __all__ = [ | STRING |
| LOW | .github/workflows/contributors/add_contributor.py | 152 | def set_output(name: str, value: object) -> None: | CODE |
| LOW | book/tools/audit/spurious_zero.py | 18 | __all__ = [ | CODE |
| LOW | book/tools/figures/style.py | 81 | def set_book_style() -> None: | CODE |
| LOW | book/tools/figures/__init__.py | 12 | __all__ = [ | CODE |
| LOW | book/tools/scripts/images/manage_external_images.py | 64 | logger = logging.getLogger(__name__) | CODE |
| LOW | …k/tools/scripts/maintenance/update_texlive_packages.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | book/cli/core/config.py | 197 | def _setup_index_symlink(self, volume: str) -> None: | CODE |
| LOW | book/cli/commands/build.py | 1152 | def _setup_fast_build_mode(self, config_file: Path, chapter_files: List[Path]) -> None: | CODE |
| LOW | book/cli/commands/build.py | 1193 | def _setup_html_fast_build(self, config_file: Path, chapter_files: List[Path], original_content: str) -> None: | CODE |
| LOW | book/cli/commands/build.py | 1252 | def _setup_pdf_fast_build(self, config_file: Path, chapter_files: List[Path], original_content: str) -> None: | CODE |
| LOW | book/cli/commands/build.py | 1497 | def _setup_epub_fast_build(self, config_file: Path, chapter_files: List[Path], original_content: str) -> None: | CODE |
| LOW | book/quarto/publish/compress_pdf.py | 60 | def _setup_logging(self) -> None: | CODE |
| LOW | book/quarto/publish/compress_epub.py | 58 | def _setup_logging(self) -> None: | CODE |
| LOW | mlperf-edu/reference/distributed/ddp_runner.py | 27 | def _set_default_gloo_interface() -> None: | CODE |
| LOW | mlperf-edu/src/mlperf/__init__.py | 8 | __all__ = ["Referee", "TrainingResult", "PowerProfiler", "PowerMeter", "IntrospectionEngine"] | CODE |
| LOW | mlperf-edu/src/mlperf/edu_cli.py | 1032 | def update_measurement_manifest(report: dict[str, Any], report_path: Path, manifest_value: Any) -> None: | CODE |
| LOW | site/newsletter/cli/core/buttondown.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | site/newsletter/cli/commands/pull.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | site/newsletter/cli/commands/set_author.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | site/newsletter/cli/commands/status.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | site/newsletter/cli/commands/push.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | mlsysim/mlsysim/labs/__init__.py | 31 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/platforms/__init__.py | 6 | __all__ = ["Platforms", "PlatformEnvelope"] | CODE |
| LOW | mlsysim/mlsysim/core/units.py | 10 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/core/optimization/__init__.py | 3 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/core/registry/__init__.py | 71 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/core/registry/plugin_manager.py | 5 | logger = logging.getLogger(__name__) | CODE |
| LOW | mlsysim/mlsysim/literature/__init__.py | 3 | __all__ = ["Literature"] | CODE |
| LOW | mlsysim/mlsysim/datasets/__init__.py | 6 | __all__ = ["Datasets", "DatasetProfile"] | CODE |
| LOW | mlsysim/mlsysim/models/importer.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | mlsysim/mlsysim/ops/__init__.py | 3 | __all__ = ["Ops"] | CODE |
| LOW | mlsysim/mlsysim/physics/__init__.py | 72 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/physics/quantities.py | 22 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/reference_stats/__init__.py | 3 | __all__ = ["ReferenceStats"] | CODE |
| LOW | mlsysim/mlsysim/engine/results.py | 18 | __all__ = [ | CODE |
| LOW | mlsysim/mlsysim/engine/resolver_factory.py | 5 | logger = logging.getLogger(__name__) | CODE |
| LOW | mlsysim/mlsysim/engine/engine.py | 11 | __all__ = ["PerformanceProfile", "Engine"] | CODE |
| 57 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | book/tools/scripts/content/manage_captions.py | 1559 | Detect code-generated figures (R/Python blocks). Format: ```{r} #| label: fig- | STRING |
| HIGH | book/tools/scripts/content/manage_captions.py | 1633 | Detect table captions. Supports both formats: - Old: : Caption text {#tbl-id} - New: C | STRING |
| HIGH | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 1462 | Add or update the 'quiz' key in a QMD file's YAML frontmatter. This function safely modifies the YAML frontmat | STRING |
| HIGH | book/cli/core/config.py | 123 | Get the configuration file for a specific format and optional volume. Args: format_type: Format typ | STRING |
| HIGH | book/cli/core/config.py | 166 | Setup _quarto.yml symlink for the specified format and optional volume. Args: format_type: Format t | STRING |
| HIGH | book/cli/core/config.py | 272 | Read and parse a configuration file. Args: format_type: Format type ('html', 'pdf', 'epub') | STRING |
| HIGH | book/cli/core/discovery.py | 245 | Find a chapter file by name, using best-match scoring. Supports volume-prefixed names (e.g., 'vol1/intro') for | STRING |
| HIGH | book/cli/core/discovery.py | 461 | Validate a list of chapter names and return their paths. Args: chapter_names: List of chapter names | STRING |
| HIGH | book/quarto/publish/compress_pdf.py | 188 | Compress a PDF file using Ghostscript. Args: input_path: Path to input PDF file | STRING |
| HIGH | book/quarto/publish/compress_epub.py | 257 | Compress an EPUB file by optimizing embedded images. Args: input_path: Path to input EPUB | STRING |
| HIGH | mlsysim/mlsysim/engine/resolver_factory.py | 57 | Retrieves a resolver class by its registered name. Args: name: The class name of t | STRING |
| HIGH | tinytorch/src/15_quantization/15_quantization.py | 1506 | Measure parameter count and byte usage for a single layer. TODO: Count parameters and bytes differently for qu | STRING |
| HIGH | tinytorch/src/18_memoization/18_memoization.py | 566 | Retrieve cached key-value pairs for attention computation. TODO: Return only the valid cached portion | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | labs/tests/test_widget.py | 212 | # fill in the missing refs as requested by Marimo. | COMMENT |
| HIGH⚡ | .github/workflows/book-publish-live.yml | 9 | # creates a versioned Git tag, and publishes a GitHub Release with AI-generated notes. | COMMENT |
| HIGH | .github/workflows/book-publish-live.yml | 1936 | # Use AI-generated notes directly (they include proper header) | COMMENT |
| HIGH | .github/workflows/book-publish-live.yml | 2051 | # Use the AI-generated release notes | COMMENT |
| HIGH | book/tools/scripts/quizzes/build_audit_context.py | 287 | out.append("**Current quiz (generated by gpt-5.4)**:") | CODE |
| HIGH | tinytorch/quarto/community/dashboard.html | 871 | // Removed System Complexity Axis as requested | COMMENT |
| HIGH | tinytorch/quarto/community/tests/index.html | 718 | // Removed System Complexity Axis as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 142 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 143 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 144 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 145 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 146 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 148 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 150 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 151 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 153 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 156 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 164 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 165 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 172 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 173 | CODE | |
| MEDIUM | book/tools/audit/fmt/run_multiplier_lane.py | 177 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1113 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1114 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1115 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1136 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1137 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1138 | CODE | |
| MEDIUM | book/tools/audit/fmt/codemod_fmt.py | 1141 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | labs/mlsysbook_labs/reports.py | 70 | CODE | |
| LOW | labs/mlsysbook_labs/migration.py | 46 | CODE | |
| LOW | labs/mlsysbook_labs/migration.py | 94 | CODE | |
| LOW | book/tools/audit/fmt/run_scale_style_lane.py | 36 | CODE | |
| LOW | book/tools/audit/fmt/codemod_design_b_rates.py | 380 | CODE | |
| LOW | book/cli/checks/lego_prose_literals.py | 209 | CODE | |
| LOW | book/cli/commands/layout.py | 667 | CODE | |
| LOW | book/cli/commands/reference_check.py | 226 | CODE | |
| LOW | mlperf-edu/reference/edge/resnet_train.py | 44 | CODE | |
| LOW | mlperf-edu/reference/edge/resnet_train.py | 83 | CODE | |
| LOW | mlperf-edu/reference/edge/resnet_core.py | 71 | CODE | |
| LOW | mlperf-edu/src/mlperf/manifest.py | 248 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 525 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 1178 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 1899 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 1949 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 1988 | CODE | |
| LOW | mlsysim/mlsysim/fmt.py | 2080 | CODE | |
| LOW | mlsysim/mlsysim/cli/commands/serve.py | 10 | CODE | |
| LOW | mlsysim/mlsysim/engine/engine.py | 95 | CODE | |
| LOW | mlsysim/mlsysim/engine/solvers/serving.py | 53 | CODE | |
| LOW | mlsysim/mlsysim/engine/solvers/compression.py | 175 | CODE | |
| LOW | mlsysim/mlsysim/engine/solvers/distributed.py | 65 | CODE | |
| LOW | mlsysim/mlsysim/engine/solvers/training.py | 152 | CODE | |
| LOW | interviews/vault-cli/src/vault_cli/commands/release.py | 705 | CODE | |
| LOW | interviews/vault-cli/src/vault_cli/commands/audit.py | 67 | CODE | |
| LOW | interviews/vault-cli/src/vault_cli/commands/generate.py | 322 | CODE | |
| LOW | interviews/vault-cli/src/vault_cli/commands/ls.py | 33 | CODE | |
| LOW | …terviews/vault-cli/src/vault_cli/commands/authoring.py | 189 | CODE | |
| LOW | interviews/vault/vault.py | 1866 | CODE | |
| LOW | tinytorch/paper/scripts/benchmark_quick.py | 106 | CODE | |
| LOW | tinytorch/milestones/04_1998_cnn/01_lecun_tinydigits.py | 260 | CODE | |
| LOW | tinytorch/milestones/02_1969_xor/02_xor_solved.py | 212 | CODE | |
| LOW | tinytorch/src/12_attention/12_attention.py | 862 | CODE | |
| LOW | tinytorch/src/17_acceleration/17_acceleration.py | 585 | CODE | |
| LOW | tinytorch/src/17_acceleration/17_acceleration.py | 1349 | CODE | |
| LOW | tinytorch/src/11_embeddings/11_embeddings.py | 702 | CODE | |
| LOW | tinytorch/src/18_memoization/18_memoization.py | 153 | CODE | |
| LOW | tinytorch/src/13_transformers/13_transformers.py | 781 | CODE | |
| LOW | tinytorch/src/13_transformers/13_transformers.py | 1028 | CODE | |
| LOW | tinytorch/src/09_convolutions/09_convolutions.py | 2263 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | shared/scripts/sync-mirrors.sh | 13 | # Usage: | COMMENT |
| LOW | .github/scripts/flatten-vol-urls.sh | 20 | # Usage: | COMMENT |
| LOW | .github/scripts/visual_smoke.py | 29 | # Usage: | COMMENT |
| LOW | book/tools/scripts/utilities/analyze_footnotes.sh | 8 | # Usage: | COMMENT |
| LOW | book/tools/scripts/testing/apply_fix.sh | 5 | # Usage: | COMMENT |
| LOW⚡ | book/tools/scripts/publish/mit-press-release.sh | 8 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-pdf-vol2-copyedit.yml | 7 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-pdf-vol1.yml | 6 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-pdf-vol2.yml | 6 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-pdf-vol1-copyedit.yml | 7 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-epub-vol1.yml | 6 | # Usage: | COMMENT |
| LOW⚡ | book/quarto/config/_quarto-epub-vol2.yml | 6 | # Usage: | COMMENT |
| LOW⚡ | mlperf-edu/examples/configs/lab2_dense.yaml | 6 | # Usage: | COMMENT |
| LOW | socratiq/src_shadow/js/libs/agents/duck_search.js | 39 | // Example usage | COMMENT |
| LOW | socratiq/src_shadow/js/libs/agents/research.js | 175 | // Example usage | COMMENT |
| LOW | socratiq/src_shadow/js/libs/agents/research.js | 521 | // Example usage | COMMENT |
| LOW | socratiq/src_shadow/js/libs/utils/prompt_templater.js | 64 | // Usage example: | COMMENT |
| LOW | interviews/staffml/scripts/mirror-visuals.sh | 7 | # Usage: | COMMENT |
| LOW | interviews/vault/scripts/run_parallel.sh | 10 | # Usage: | COMMENT |
| LOW⚡ | tinytorch/scripts/test-fresh-install.sh | 8 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …s/student_optimizations/stub_custom_optimizer_train.py | 48 | dummy_data = torch.randint(0, 50257, (1, 16)).to(device) | CODE |
| LOW⚡ | …s/student_optimizations/stub_custom_optimizer_train.py | 51 | logits, loss = model(dummy_data, targets=dummy_targets) | CODE |
| LOW | …/js/libs/vector_db/vectordb/splitters/text_splitter.js | 111 | // const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt magna ut justo gravida, se | COMMENT |
| LOW | …/js/libs/vector_db/vectordb/splitters/text_splitter.js | 111 | // const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt magna ut justo gravida, se | COMMENT |
| LOW | socratiq/src_shadow/js/libs/utils/split_text.js | 45 | // const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt magna ut justo gravida, se | COMMENT |
| LOW | socratiq/src_shadow/js/libs/utils/split_text.js | 45 | // const text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur tincidunt magna ut justo gravida, se | COMMENT |
| LOW | …nts/highlight_menu/components/text_area_suggestions.js | 52 | this.removeAttribute('placeholder'); | CODE |
| LOW | …nts/highlight_menu/components/text_area_suggestions.js | 58 | this.setAttribute('placeholder', 'Write something...'); | CODE |
| LOW | …nts/highlight_menu/components/text_area_suggestions.js | 108 | this.removeAttribute('placeholder'); | CODE |
| LOW | interviews/vault-cli/docs/CORPUS_HARDENING_PLAN.md | 327 | "title_quality": "good" | "placeholder" | "malformed", | CODE |
| LOW | interviews/vault-cli/docs/JSON_OUTPUT.md | 283 | "new_provenance": "llm-then-human-edited", "reviewed_by": "user@example.com" } | CODE |
| LOW | interviews/vault-cli/scripts/summarize_audit.py | 107 | f"{title.get('placeholder', 0)} placeholder + " | CODE |
| LOW | interviews/vault-cli/scripts/summarize_audit.py | 243 | placeholders = [r for r in rows if r.get("title_quality") == "placeholder"] | CODE |
| LOW | interviews/vault-cli/scripts/summarize_audit.py | 292 | if r.get("title_quality") == "placeholder") | CODE |
| LOW | interviews/vault-cli/scripts/audit_corpus_batched.py | 206 | - title: rewrite ONLY when title_quality is "placeholder" or "malformed". | CODE |
| LOW | interviews/vault-cli/scripts/audit_corpus_batched.py | 245 | "title_quality": "good" | "placeholder" | "malformed" | CODE |
| LOW | interviews/vault/questions/global/data/global-0046.yaml | 14 | realistic_solution: 'Microservice equivalence fails on artifact cost and stochasticity. Submitting 24-hour training ru | CODE |
| LOW | …ch/quarto/community/tests/e2e/credentials.example.json | 3 | "email": "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 1318 | - ❌ Context-dependent phrases ("in this section", "as discussed above") | CODE |
| MEDIUM | book/tools/scripts/quizzes/_legacy/quizzes_reference.py | 1371 | - No references to "this section" or "as discussed above" | CODE |
| MEDIUM⚡ | interviews/staffml/src/data/tracks/tinyml.json | 1 | [{"id":"tinyml-deployment-the-firmware-brick-0","track":"tinyml","scope":"Visual Debugging","level":"L3","title":"The Fi | CODE |
| MEDIUM⚡ | interviews/staffml/src/data/tracks/mobile.json | 1 | [{"id":"mobile-on-demand-model-download-the-app-store-diet-0","track":"mobile","scope":"Ship And Update","level":"L2","t | CODE |
| LOW | tinytorch/src/10_tokenization/10_tokenization.py | 1056 | - Don't forget to call _build_mappings() at the end | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | socratiq/src_shadow/js/libs/agents/test-gemini-fix.js | 30 | console.log('[GEMINI_FIX] Expected URL:', 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flas | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tinytorch/tests/cli/test_nbgrader_command.py | 204 | "source": "def helper():\n return 1\n", | CODE |