Repository Analysis

maziggy/bambuddy

Your Bambu Lab. No Cloud. Your Rules. Self-hosted command center for Bambu Lab — from one A1 to a 40-printer farm.

20.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of maziggy/bambuddy, a Python project with 2,532 GitHub stars. SynthScan v2.0 examined 560,928 lines of code across 1156 source files, recording 8948 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 20.3 places this repository in the Moderate AI signal band.

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

20.3
Adjusted Score
20.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.5K
Stars
Python
Language
560.9K
Lines of Code
1.2K
Files
8.9K
Pattern Hits
2026-07-14
Scan Date
0.03
HC Hit Rate

What These Metrics Mean

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

Score History

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.

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

Severity Breakdown

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

CRITICAL 2HIGH 32MEDIUM 1282LOW 7632

Directory Score Breakdown

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

Pattern Findings

The scanner identified 8948 distinct pattern matches across 20 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.

Hyper-Verbose Identifiers5401 hits · 4799 pts
SeverityFileLineSnippetContext
LOWfrontend/src/utils/printer.ts39export function filterCompatibleQueueItems(CODE
LOWfrontend/src/utils/inventoryQueries.ts6export function invalidateInventoryLocations(queryClient: QueryClient) {CODE
LOWfrontend/src/utils/inventoryQueries.ts11export function invalidateSpoolAndLocationQueries(CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts52export function matchesPrinterModelSuffix(presetSuffix: string, printerModel: string): boolean {CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts132function extractPrinterPresetModel(printerPresetName: string): { model: string; nozzle: string | null } | null {CODE
LOWfrontend/src/utils/sidebarLayout.ts26export function getHiddenSidebarSystemItemIds(): string[] {CODE
LOWfrontend/src/utils/sidebarLayout.ts38export function saveHiddenSidebarSystemItemIds(ids: string[]) {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts38export function parsePreheatFilamentTargets(raw: string): Record<string, number> {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts59export function serializePreheatFilamentTargets(map: Record<string, number>): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts76export function normalizePreheatFilamentType(trayType: string): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts84export function deriveChamberTargetForTrays(CODE
LOWfrontend/src/components/ModelViewer.tsx140function parsePlateIdFromAttributes(element: Element): number | null {CODE
LOWfrontend/src/components/CreateUserAdvancedAuthModal.tsx32export function CreateUserAdvancedAuthModal({CODE
LOWfrontend/src/components/ConnectionDiagnostic.tsx103export function ConnectionDiagnosticModal(props: ConnectionDiagnosticModalProps) {CODE
LOW…ntend/src/components/VirtualPrinterDiagnosticModal.tsx32export function VirtualPrinterDiagnosticModal({CODE
LOWfrontend/src/components/NotificationTemplateEditor.tsx14export function NotificationTemplateEditor({ template, onClose }: NotificationTemplateEditorProps) {CODE
LOW…ontend/src/components/PreheatFilamentTargetsEditor.tsx22export function PreheatFilamentTargetsEditor({ value, onChange, disabled = false }: Props) {CODE
LOWfrontend/src/components/spool-form/ColorSection.tsx13function normalizeExtraColorsInput(raw: string): { value: string; invalid: string[] } {CODE
LOWfrontend/src/components/spool-form/utils.ts129function buildLocalFilamentOptions(localPresets: LocalPreset[]): FilamentOption[] {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx459 function makeMultiPlateLibraryResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx684 function makeMultiColorPlateResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx708 function makeMultiColorRequirementsResponse() {CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts199function computeMappingWithOverrides(CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts294export function useMultiPrinterFilamentMapping(CODE
LOWfrontend/src/api/client.ts86function parseContentDispositionFilename(header: string | null): string | null {CODE
LOWfrontend/src/pages/PrintersPage.tsx1324function NozzleTemperatureControlBox({CODE
LOW…end/src/pages/spoolbuddy/SpoolBuddyCalibrationPage.tsx173export function SpoolBuddyCalibrationPage() {CODE
LOWtests/e2e_toggle_persistence_test.py16def test_smart_plug_auto_off_toggle_persistence(page):CODE
LOWtests/e2e_toggle_persistence_test.py106def test_notification_event_toggle_persistence(page):CODE
LOWtests/e2e_toggle_persistence_test.py190def test_ams_alarm_toggle_persistence(page):CODE
LOWtests/e2e_toggle_persistence_test.py254def test_smart_plug_power_off_confirmation(page):CODE
LOWtests/e2e_comprehensive_test.py12def test_navigation_and_sidebar(page):CODE
LOWtests/e2e_comprehensive_test.py283def test_external_links_sidebar(page):CODE
LOWgcode_viewer/js/camera-controls.js266 var extractClientCoordFromEvent = function extractClientCoordFromEvent(event, out) {CODE
LOWgcode_viewer/js/prettygcode.js1635 function resizeCanvasToDisplaySize() {CODE
LOWbackend/app/main.py2067async def _capture_snapshot_for_notification(printer_id: int, printer, logger) -> bytes | None:CODE
LOWbackend/app/main.py5138 async def _background_layer_timelapse():CODE
LOWbackend/app/main.py5465def start_ams_history_recording():CODE
LOWbackend/app/main.py5473def stop_ams_history_recording():CODE
LOWbackend/app/main.py5594def start_printer_sensor_history_recording():CODE
LOWbackend/app/main.py5601def stop_printer_sensor_history_recording():CODE
LOWbackend/app/main.py5727async def _spoolbuddy_watchdog_loop():CODE
LOWbackend/app/main.py5741def start_spoolbuddy_watchdog():CODE
LOWbackend/app/main.py5795def _evict_stale_expected_prints() -> None:CODE
LOWbackend/app/main.py5833async def _expected_prints_cleanup_loop() -> None:CODE
LOWbackend/app/main.py5845def start_expected_prints_cleanup() -> None:CODE
LOWbackend/app/main.py5852def stop_expected_prints_cleanup() -> None:CODE
LOWbackend/app/main.py724def _compute_run_filament_grams(CODE
LOWbackend/app/main.py788def _scope_notification_archive_data_to_plate(CODE
LOWbackend/app/main.py853def _extract_filament_data_from_mqtt(data: dict, ams_mapping: list[int] | None = None) -> dict[str, str]:CODE
LOWbackend/app/main.py936def _maybe_start_layer_timelapse(printer, printer_id: int, archive_id: int) -> bool:CODE
LOWbackend/app/main.py961def _format_hms_error_summary(hms_errors: list[dict]) -> str | None:CODE
LOWbackend/app/main.py988async def _bump_library_file_usage_if_completed(db, item, queue_status: str) -> None:CODE
LOWbackend/app/main.py1005def mark_printer_stopped_by_user(printer_id: int) -> None:CODE
LOWbackend/app/main.py1021async def _maybe_notify_printer_offline(printer_id: int) -> None:CODE
LOWbackend/app/main.py2152async def _send_print_start_notification(CODE
LOWbackend/app/main.py2192async def _dispatch_user_print_email(CODE
LOWbackend/app/main.py2227def _load_objects_from_archive(archive, printer_id: int, logger) -> None:CODE
LOWbackend/app/main.py3358async def _capture_timelapse_baseline_at_start(printer, printer_id: int, logger: logging.Logger) -> None:CODE
LOWbackend/app/main.py3384async def _scan_for_timelapse_with_retries(archive_id: int, baseline_names: set[str] | None = None):CODE
5341 more matches not shown…
Decorative Section Separators1172 hits · 4085 pts
SeverityFileLineSnippetContext
MEDIUMdocker-publish.sh290# ============================================================COMMENT
MEDIUMdocker-publish.sh292# ============================================================COMMENT
MEDIUMtest_docker.sh134# ============================================COMMENT
MEDIUMtest_docker.sh136# ============================================COMMENT
MEDIUMtest_docker.sh161# ============================================COMMENT
MEDIUMtest_docker.sh163# ============================================COMMENT
MEDIUMtest_docker.sh189# ============================================COMMENT
MEDIUMtest_docker.sh191# ============================================COMMENT
MEDIUMtest_docker.sh202# ============================================COMMENT
MEDIUMtest_docker.sh204# ============================================COMMENT
MEDIUMtest_docker.sh215# ============================================COMMENT
MEDIUMtest_docker.sh217# ============================================COMMENT
MEDIUMtest_docker.sh282# ============================================COMMENT
MEDIUMtest_docker.sh284# ============================================COMMENT
MEDIUMdocker-publish-beta.sh199# ============================================================COMMENT
MEDIUMdocker-publish-beta.sh201# ============================================================COMMENT
MEDIUMtest_security.sh45# ── Temp directory for scan output ───────────────────────────────────────COMMENT
MEDIUMtest_security.sh58# ── SARIF parser (used for CodeQL result display) ────────────────────────COMMENT
MEDIUMtest_security.sh106# ── Scan functions (write to stdout, return exit code) ───────────────────COMMENT
MEDIUMtest_security.sh211# ── Job launcher (streams output live with prefix, captures to log) ──────COMMENT
MEDIUMtest_security.sh235# ── Wait for all scans ───────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh280# ── Summary ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh293 # ── Results table ────────────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh318 # ── Full output per scan ─────────────────────────────────────────────COMMENT
MEDIUMtest_security.sh350# ── Main ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM.gitleaks.toml7# ── Custom rules ─────────────────────────────────────────────────────────COMMENT
MEDIUM.gitleaks.toml37# ── Global allowlist ─────────────────────────────────────────────────────COMMENT
MEDIUMdocker-publish-daily-beta.sh100# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh102# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh125# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh127# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh286# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh288# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh378# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh380# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh398# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh400# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh429# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh431# ============================================================COMMENT
MEDIUMinstall/install.sh62# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh64# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh179# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh181# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh282# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh284# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh316# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh318# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh704# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh706# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh45# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh47# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh156# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh158# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh214# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh216# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh361# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/docker-install.sh363# -----------------------------------------------------------------------------COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx11// ─── Small reusable code input ────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx36// ─── Backup codes display ─────────────────────────────────────────────────────COMMENT
MEDIUMfrontend/src/components/TwoFactorSettings.tsx72// ─── TOTP setup wizard ────────────────────────────────────────────────────────COMMENT
1112 more matches not shown…
Excessive Try-Catch Wrapping674 hits · 593 pts
SeverityFileLineSnippetContext
LOWfrontend/docs/create_proxy_diagram.py41 except Exception as e:CODE
LOWtests/e2e_toggle_persistence_test.py310 except Exception as e:CODE
LOWtests/e2e_comprehensive_test.py366 except Exception as e:CODE
MEDIUMbackend/app/main.py4463def _notify_no_archive():CODE
LOWbackend/app/main.py1835 except Exception as e:CODE
LOWbackend/app/main.py2059 except Exception as e:CODE
LOWbackend/app/main.py2063 except Exception as e:CODE
LOWbackend/app/main.py4347 except Exception as e:CODE
LOWbackend/app/main.py4349 except Exception as e:CODE
LOWbackend/app/main.py5126 except Exception as e:CODE
LOWbackend/app/main.py5130 except Exception as e:CODE
LOWbackend/app/main.py5460 except Exception as e:CODE
LOWbackend/app/main.py5589 except Exception as e:CODE
LOWbackend/app/main.py5736 except Exception as e:CODE
LOWbackend/app/main.py5840 except Exception as e:CODE
LOWbackend/app/main.py675 except Exception as e:CODE
LOWbackend/app/main.py1062 except Exception as e:CODE
LOWbackend/app/main.py1192 except Exception:CODE
LOWbackend/app/main.py1244 except Exception as e:CODE
LOWbackend/app/main.py1345 except Exception as e:CODE
LOWbackend/app/main.py1390 except Exception:CODE
LOWbackend/app/main.py1408 except Exception as e:CODE
LOWbackend/app/main.py1541 except Exception:CODE
LOWbackend/app/main.py1589 except Exception as e:CODE
LOWbackend/app/main.py1755 except Exception:CODE
LOWbackend/app/main.py1891 except Exception as e:CODE
LOWbackend/app/main.py1917 except Exception as e:CODE
LOWbackend/app/main.py1928 except Exception as e:CODE
LOWbackend/app/main.py2025 except Exception as e:CODE
LOWbackend/app/main.py2122 except Exception as e:CODE
LOWbackend/app/main.py2147 except Exception as e:CODE
LOWbackend/app/main.py2188 except Exception as e:CODE
LOWbackend/app/main.py2245 except Exception as e:CODE
LOWbackend/app/main.py2287 except Exception:CODE
LOWbackend/app/main.py2300 except Exception as e:CODE
LOWbackend/app/main.py2310 except Exception as e:CODE
LOWbackend/app/main.py2405 except Exception as notif_err:CODE
LOWbackend/app/main.py2409 except Exception as plate_err:CODE
LOWbackend/app/main.py2626 except Exception:CODE
LOWbackend/app/main.py2670 except Exception as e:CODE
LOWbackend/app/main.py2929 except Exception as e:CODE
LOWbackend/app/main.py2994 except Exception as e:CODE
LOWbackend/app/main.py3079 except Exception as e:CODE
LOWbackend/app/main.py3193 except Exception:CODE
LOWbackend/app/main.py3207 except Exception as e:CODE
LOWbackend/app/main.py3214 except Exception as e:CODE
LOWbackend/app/main.py3264 except Exception:CODE
LOWbackend/app/main.py3295 except Exception as e:CODE
LOWbackend/app/main.py3309 except Exception as e:CODE
LOWbackend/app/main.py3351 except Exception as e:CODE
LOWbackend/app/main.py3380 except Exception as e:CODE
LOWbackend/app/main.py3449 except Exception as e:CODE
LOWbackend/app/main.py3528 except Exception as e:CODE
LOWbackend/app/main.py3569 except Exception as e:CODE
LOWbackend/app/main.py3829 except Exception as e:CODE
LOWbackend/app/main.py3953 except Exception as e:CODE
LOWbackend/app/main.py3993 except Exception as e:CODE
LOWbackend/app/main.py4040 except Exception:CODE
LOWbackend/app/main.py4203 except Exception as e:CODE
LOWbackend/app/main.py4240 except Exception as e:CODE
614 more matches not shown…
Unused Imports628 hits · 496 pts
SeverityFileLineSnippetContext
LOWbackend/app/cli.py9CODE
LOWbackend/app/core/auth.py1CODE
LOWbackend/app/core/trace.py30CODE
LOWbackend/app/core/encryption.py22CODE
LOWbackend/app/core/tasks.py22CODE
LOWbackend/app/core/compat.py6CODE
LOWbackend/app/core/paths.py11CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/database.py167CODE
LOWbackend/app/core/asyncio_handlers.py10CODE
LOWbackend/app/core/logging_filters.py11CODE
LOWbackend/app/core/local_config.py26CODE
LOWbackend/app/utils/tray_split.py17CODE
LOWbackend/app/utils/safe_path.py18CODE
568 more matches not shown…
Self-Referential Comments79 hits · 237 pts
SeverityFileLineSnippetContext
MEDIUMdocker-publish-daily-beta.sh332 # Create the release bodyCOMMENT
MEDIUMinstall/install.sh368 # Create the target user-owned (elevating only if its parent is root-owned,COMMENT
MEDIUMinstall/docker-install.sh312 # Create a modified compose file for macOSCOMMENT
MEDIUMbackend/app/main.py3107 # Create a fallback archive without 3MF data so the print is still trackedCOMMENT
MEDIUMbackend/app/api/routes/maintenance.py529 # Create the assignmentCOMMENT
MEDIUMbackend/app/api/routes/settings.py719 # Create a temporary engine for the import (current engine was disposed)COMMENT
MEDIUMbackend/app/api/routes/projects.py1689 # Create the projectCOMMENT
MEDIUMbackend/app/api/routes/projects.py1814 # Create the projectCOMMENT
MEDIUMbackend/app/services/layer_timelapse.py112 # Create a concat file listing all framesCOMMENT
MEDIUMbackend/app/services/smart_plug_manager.py443 # Create a minimal plug-like object for the serviceCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py2118 # Create a hash of relevant AMS data to detect changesCOMMENT
MEDIUMbackend/app/services/virtual_printer/manager.py1626 # This method is kept for backward compat with the settings endpoint.COMMENT
MEDIUMbackend/tests/conftest.py186 # Create a new session maker for the test engineCOMMENT
MEDIUMbackend/tests/conftest.py316 # Create a mock smart_plug_serviceCOMMENT
MEDIUM…kend/tests/unit/test_print_start_expected_promotion.py305 # Create a session without ams_mapping (simulates MQTT not providing it)COMMENT
MEDIUMbackend/tests/unit/test_archive_filtering.py640 # Create the expected output file (as FFmpeg would)COMMENT
MEDIUMbackend/tests/unit/services/test_external_camera.py279 # Create a buffer with one complete frameCOMMENT
MEDIUMbackend/tests/unit/services/test_stl_thumbnail.py42 # Create a dummy STL file (will fail to parse)COMMENT
MEDIUMbackend/tests/unit/services/test_stl_thumbnail.py61 # Create a simple ASCII STL cubeCOMMENT
MEDIUMbackend/tests/unit/services/test_virtual_printer.py430 # Create a temp 3mf fileCOMMENT
MEDIUMbackend/tests/unit/services/test_virtual_printer.py550 # Create a temp 3mf fileCOMMENT
MEDIUM…ckend/tests/unit/services/test_notification_service.py437 # Create a mock provider with digest enabledCOMMENT
MEDIUM…ckend/tests/unit/services/test_notification_service.py525 # Create a mock responseCOMMENT
MEDIUMbackend/tests/unit/services/mock_ftp_server.py152 # Create a unique handler class per instance so _failure_map is isolatedCOMMENT
MEDIUMbackend/tests/integration/test_camera_api.py294 # Create a fake JPEG (starts with FFD8)COMMENT
MEDIUMbackend/tests/integration/test_api_key_cloud_access.py119 # Create a legacy key directly in the DB (user_id NULL, mimickingCOMMENT
MEDIUMbackend/tests/integration/test_advanced_auth_api.py341 # Create a user with emailCOMMENT
MEDIUMbackend/tests/integration/test_security.py1571 # Create a low-privilege user (no group → no permissions in default seed).COMMENT
MEDIUMbackend/tests/integration/test_security.py1643 # Create a user explicitly in the Viewers group — it has SETTINGS_READCOMMENT
MEDIUMbackend/tests/integration/test_security.py2821 # Create a pre_auth token to simulate the post-login 2FA challenge step.COMMENT
MEDIUMbackend/tests/integration/test_ams_history_api.py95 # Create a recent recordCOMMENT
MEDIUMbackend/tests/integration/test_ams_history_api.py97 # Create an old record (outside default 24h)COMMENT
MEDIUMbackend/tests/integration/test_ams_history_api.py148 # Create an old recordCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py1129 # Create a regular user via user managementCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py2278 # Create a user firstCOMMENT
MEDIUMbackend/tests/integration/test_mfa_api.py4989 # Create a temporary group and use it as default_group_idCOMMENT
MEDIUMbackend/tests/integration/test_system_api.py195 # Create a test printerCOMMENT
MEDIUMbackend/tests/integration/test_print_queue_api.py1291 # Create a printer with model X1C so the API can validateCOMMENT
MEDIUMbackend/tests/integration/test_print_queue_api.py2123 # Create a batch of 3COMMENT
MEDIUMbackend/tests/integration/test_library_api.py457 # Create a test userCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py462 # Create a file with created_by_id setCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py909 # Create a file in DB but not on diskCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py725 # Create a fake file that's not a ZIPCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py737 # Create a simple ZIP file in memoryCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py758 # Create a ZIP file with folder structureCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py780 # Create a ZIP file with folder structureCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py801 # Create a ZIP file with macOS junk filesCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py822 # Create a ZIP file with some filesCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py932 # Create a simple ASCII STL cubeCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py985 # Create a simple STL fileCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1002 # Create a ZIP file containing an STLCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1023 # Create a folderCOMMENT
MEDIUMbackend/tests/integration/test_library_api.py1426 # Create a target folder the move can land in.COMMENT
MEDIUMbackend/tests/integration/test_projects_api.py993 # Create a linked folderCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1038 # Create a file-like objectCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1062 # Create a ZIP file in memoryCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1091 # Create a linked folder with is_external fieldsCOMMENT
MEDIUMbackend/tests/integration/test_projects_api.py1102 # Create a test file on diskCOMMENT
MEDIUMbackend/tests/integration/test_ownership_permissions.py439 # Create an archive to link to the queue itemCOMMENT
MEDIUMbackend/tests/integration/test_ownership_permissions.py966 # Create a new user with itemsCOMMENT
19 more matches not shown…
Deep Nesting276 hits · 202 pts
SeverityFileLineSnippetContext
LOWbackend/app/main.py1068CODE
LOWbackend/app/main.py1375CODE
LOWbackend/app/main.py2227CODE
LOWbackend/app/main.py2249CODE
LOWbackend/app/main.py3327CODE
LOWbackend/app/main.py3384CODE
LOWbackend/app/main.py3581CODE
LOWbackend/app/main.py3842CODE
LOWbackend/app/main.py3966CODE
LOWbackend/app/main.py5229CODE
LOWbackend/app/main.py5500CODE
LOWbackend/app/main.py5614CODE
LOWbackend/app/main.py5956CODE
LOWbackend/app/main.py4754CODE
LOWbackend/app/main.py4930CODE
LOWbackend/app/main.py5062CODE
LOWbackend/app/main.py5138CODE
LOWbackend/app/main.py4463CODE
LOWbackend/app/core/auth.py893CODE
LOWbackend/app/core/auth.py1229CODE
LOWbackend/app/core/database.py475CODE
LOWbackend/app/core/database.py659CODE
LOWbackend/app/core/database.py3406CODE
LOWbackend/app/utils/threemf_tools.py25CODE
LOWbackend/app/utils/threemf_tools.py214CODE
LOWbackend/app/utils/threemf_tools.py310CODE
LOWbackend/app/utils/threemf_tools.py427CODE
LOWbackend/app/utils/threemf_tools.py505CODE
LOWbackend/app/utils/threemf_tools.py563CODE
LOWbackend/app/utils/threemf_tools.py721CODE
LOWbackend/app/utils/threemf_tools.py925CODE
LOWbackend/app/utils/threemf_tools.py1021CODE
LOWbackend/app/utils/tray_split.py27CODE
LOWbackend/app/api/routes/mfa.py1133CODE
LOWbackend/app/api/routes/mfa.py1705CODE
LOWbackend/app/api/routes/slicer_presets.py99CODE
LOWbackend/app/api/routes/slicer_presets.py182CODE
LOWbackend/app/api/routes/auth.py214CODE
LOWbackend/app/api/routes/auth.py366CODE
LOWbackend/app/api/routes/auth.py664CODE
LOWbackend/app/api/routes/auth.py1774CODE
LOWbackend/app/api/routes/system.py244CODE
LOWbackend/app/api/routes/spoolman.py71CODE
LOWbackend/app/api/routes/spoolman.py175CODE
LOWbackend/app/api/routes/spoolman.py410CODE
LOWbackend/app/api/routes/spoolman.py791CODE
LOWbackend/app/api/routes/spoolman.py1150CODE
LOWbackend/app/api/routes/support.py667CODE
LOWbackend/app/api/routes/library.py450CODE
LOWbackend/app/api/routes/library.py543CODE
LOWbackend/app/api/routes/library.py606CODE
LOWbackend/app/api/routes/library.py1106CODE
LOWbackend/app/api/routes/library.py1213CODE
LOWbackend/app/api/routes/library.py1485CODE
LOWbackend/app/api/routes/library.py1785CODE
LOWbackend/app/api/routes/library.py1935CODE
LOWbackend/app/api/routes/library.py2103CODE
LOWbackend/app/api/routes/library.py2598CODE
LOWbackend/app/api/routes/library.py2953CODE
LOWbackend/app/api/routes/library.py3212CODE
216 more matches not shown…
Redundant / Tautological Comments122 hits · 177 pts
SeverityFileLineSnippetContext
LOWinstall/install.sh304 # Check if Homebrew is installedCOMMENT
LOWinstall/install.sh867 # Check if running via pipe (curl | bash) - interactive mode won't workCOMMENT
LOWinstall/docker-install.sh341 # Check if container is running (Up)COMMENT
LOWinstall/docker-install.sh347 # Check if container failedCOMMENT
LOWinstall/docker-install.sh469 # Check if running via pipe (curl | bash) - interactive mode won't workCOMMENT
LOWinstall/docker-install.sh498 # Check if Docker daemon is runningCOMMENT
LOWdeploy/docker-entrypoint.sh42 # Check if we have any certificates to process. Error if directory is emptyCOMMENT
LOWtests/e2e_comprehensive_test.py195 # Check if modal openedCOMMENT
LOWtests/e2e_comprehensive_test.py241 # Check if dark theme is applied (should be default)COMMENT
LOWbackend/app/main.py1843 # Check if Spoolman is enabledCOMMENT
LOWbackend/app/main.py1634 # Check if assignment already exists for this slotCOMMENT
LOWbackend/app/main.py1875 # Check if Spoolman is reachableCOMMENT
LOWbackend/app/main.py2494 # Check if this is an expected print from reprint/scheduledCOMMENT
LOWbackend/app/main.py2683 # Check if there's already a "printing" archive for this printer/fileCOMMENT
LOWbackend/app/main.py4309 # Check if queue is now empty and send notificationCOMMENT
LOWbackend/app/main.py4365 # Check if any provider has on_bed_cooled enabled (skip registration if none)COMMENT
LOWbackend/app/main.py4868 # Check if camera stream is active - use buffered frame to avoid freezeCOMMENT
LOWbackend/app/main.py6566 # Check if auth is enabled. Fail CLOSED on any exception during theCOMMENT
LOWbackend/app/core/auth.py1045 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1264 # Check if key matches (verify against hash)COMMENT
LOWbackend/app/core/auth.py1397 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1480 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1734 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/database.py1208 # Check if archive_id needs to be made nullable (requires table recreation in SQLite)STRING
LOWbackend/app/utils/threemf_tools.py342 # Check if only one extruder is active.COMMENT
LOWbackend/app/models/archive.py48 # Print resultCOMMENT
LOWbackend/app/api/routes/auth.py232 # Check if admin users already existCOMMENT
LOWbackend/app/api/routes/auth.py262 # Check if username already exists (shouldn't happen if no admin users exist, but check anyway)COMMENT
LOWbackend/app/api/routes/auth.py376 # Check if auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py401 # Check if LDAP is enabledCOMMENT
LOWbackend/app/api/routes/auth.py600 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/api/routes/auth.py972 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py1149 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/metrics.py66 # Check if enabledCOMMENT
LOWbackend/app/api/routes/spoolman.py181 # Check if Spoolman is enabled and connectedCOMMENT
LOWbackend/app/api/routes/spoolman.py415 # Check if Spoolman is enabledCOMMENT
LOWbackend/app/api/routes/spoolman.py762 # Check if spool has a tag in extra fieldCOMMENT
LOWbackend/app/api/routes/support.py1226 # Check if debug logging is enabled and collect sensitive values for redactionCOMMENT
LOWbackend/app/api/routes/library.py1744 # Check if subfolder has any remaining filesCOMMENT
LOWbackend/app/api/routes/library.py1752 # Check if it has any remaining child foldersCOMMENT
LOWbackend/app/api/routes/library.py2170 # Check if folder already existsCOMMENT
LOWbackend/app/api/routes/library.py2224 # Check if folder existsCOMMENT
LOWbackend/app/api/routes/library.py3003 # Check if this is the requested plateCOMMENT
LOWbackend/app/api/routes/users.py101 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/users.py106 # Check if username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py128 # Check if email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py257 # Check if new username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py269 # Check if new email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/maintenance.py518 # Check if already assignedCOMMENT
LOWbackend/app/api/routes/updates.py296 # Check if this is a prerelease (has b/beta/alpha/rc/daily suffix anywhere)COMMENT
LOWbackend/app/api/routes/updates.py389 # Check if beta updates should be includedCOMMENT
LOWbackend/app/api/routes/archives.py2932 # Check if source 3MF exists - this is where actual mesh data typically livesCOMMENT
LOWbackend/app/api/routes/groups.py95 # Check if group name already existsCOMMENT
LOWbackend/app/api/routes/groups.py179 # Check if updating name to one that already existsCOMMENT
LOWbackend/app/api/routes/groups.py286 # Check if user is already in groupCOMMENT
LOWbackend/app/api/routes/groups.py324 # Check if user is in groupCOMMENT
LOWbackend/app/api/routes/camera.py174 # Check if client disconnectedCOMMENT
LOWbackend/app/api/routes/camera.py544 # Check if stream was explicitly stopped (e.g., by stop endpoint)COMMENT
LOWbackend/app/api/routes/camera.py1026 # Check if there's an active stream for this printerCOMMENT
LOWbackend/app/api/routes/settings.py245 # Check if any MQTT settings are being updatedCOMMENT
62 more matches not shown…
Modern Structural Boilerplate159 hits · 160 pts
SeverityFileLineSnippetContext
LOWbackend/app/core/auth.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/encryption.py30logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/tasks.py29logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/database.py12logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/asyncio_handlers.py17logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/threemf_tools.py18logger = logging.getLogger(__name__)CODE
LOWbackend/app/models/__init__.py42__all__ = [CODE
LOWbackend/app/schemas/__init__.py25__all__ = [CODE
LOWbackend/app/api/routes/mfa.py624async def _set_email_2fa_enabled(db: AsyncSession, user_id: int, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/mfa.py89logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/slicer_presets.py55logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/auth.py183async def set_advanced_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/auth.py190async def set_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/auth.py205async def set_setup_completed(db: AsyncSession, completed: bool) -> None:CODE
LOWbackend/app/api/routes/library_trash.py43logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/user_notifications.py16logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/labels.py35logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/sponsor_prompt.py18logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolman.py39logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/support.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library.py76logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/print_log.py21logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/firmware.py28logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/cloud.py52logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolman_inventory.py69logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/discovery.py24logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/webhook.py16logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/maintenance.py31logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/slicer_pipelines.py30logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/updates.py23logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/local_presets.py32logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/archives.py40logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolbuddy.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/orca_cloud.py65logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/external_links.py29logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/pipeline_runs.py64logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/makerworld.py49logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/local_backup.py13logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/camera.py44logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/github_backup.py26logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/_spoolman_helpers.py20logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py22logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py92async def set_setting(db: AsyncSession, key: str, value: str) -> None:CODE
LOWbackend/app/api/routes/virtual_printers.py19logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/printers.py63logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/notifications.py27logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/api_keys.py19logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/smart_plugs.py43logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/print_queue.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/projects.py47logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library_tags.py51logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/archive_purge.py33logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/kprofiles.py26logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/obico.py13logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/bug_report.py23logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/websocket.py30logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/inventory.py72logger = logging.getLogger(__name__)CODE
LOWbackend/app/services/print_scheduler.py47logger = logging.getLogger(__name__)CODE
LOWbackend/app/services/timelapse_processor.py11logger = logging.getLogger(__name__)CODE
LOWbackend/app/services/library_trash.py32logger = logging.getLogger(__name__)CODE
99 more matches not shown…
Over-Commented Block202 hits · 160 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# Web FrameworkCOMMENT
LOWrequirements.txt101COMMENT
LOWrequirements.txt121# Transitive pin: urllib3 2.6.3 has CVE-2026-44431 and CVE-2026-44432;COMMENT
LOWdocker-publish.sh1#!/bin/bashCOMMENT
LOWdocker-publish-beta.sh1#!/bin/bashCOMMENT
LOWtest_security.sh1#!/usr/bin/env bashCOMMENT
LOWrequirements-dev.txt21# Transitive of pip-audit→CacheControl. 1.2.1 patches GHSA-6v7p-g79w-8964COMMENT
LOWdocker-compose.yml1services:COMMENT
LOWdocker-compose.yml21 #COMMENT
LOWdocker-compose.yml41 # 50000-50009, VP 2 → 50010-50019, VP 3 → 50020-50029, etc. The defaultCOMMENT
LOWdocker-compose.yml61 # narrowed range above.COMMENT
LOWdocker-compose.yml81 # so Bambuddy can request Let's Encrypt certs for virtual printers viaCOMMENT
LOWdocker-compose.yml101 # files back to the host share.COMMENT
LOWdocker-compose.yml121 # Example: DATABASE_URL=postgresql+asyncpg://bambuddy:password@db-host:5432/bambuddyCOMMENT
LOWdocker-compose.yml141 # Example for a single NAS mount:COMMENT
LOWdocker-publish-daily-beta.sh1#!/bin/bashCOMMENT
LOWdocker-publish-daily-beta.sh21# Prerequisites:COMMENT
LOWinstall/install.sh1#!/usr/bin/env bashCOMMENT
LOWinstall/docker-install.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/src/utils/colors.ts1// Runtime color-name catalog, populated once at app startup by ColorCatalogProviderCOMMENT
LOWfrontend/src/utils/slicePresetPicker.ts1// Pure-function helpers for the SliceModal's per-slot preset selection.COMMENT
LOWfrontend/src/utils/slicePresetPicker.ts121 // print/schedule modal: type match dominates, exact-colour-match bumps overCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts1// Printer-compatibility matching for the SliceModal's process / filamentCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts21// is the @BBL token → printer-preset fragment map derived from the backend'sCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts101// Bambu Studio's naming convention for bundled presets: the 0.4 nozzle isCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts161 // identical — e.g. "Q1" preset against "Bambu Lab Q1 0.4 nozzle" —COMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx201 const normalized = name.toLowerCase().trim();COMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx221//COMMENT
LOWfrontend/src/components/AssignSpoolModal.tsx61 setDisableFiltering(false);COMMENT
LOWfrontend/src/components/AssignSpoolModal.tsx241 );COMMENT
LOWfrontend/src/components/SlicerPipelinesPanel.tsx101 },COMMENT
LOWfrontend/src/components/SpoolFormModal.tsx341 // Legacy rows may carry a malformed rgba (e.g. the 7-char 'FFFFFFF'COMMENT
LOWfrontend/src/components/QueueTimelineView.tsx81 const nowMs = now.getTime();COMMENT
LOWfrontend/src/components/SliceModal.tsx61// preview slice on first open of an unsliced project file (cached after);COMMENT
LOWfrontend/src/components/SliceModal.tsx201 const [errorMessage, setErrorMessage] = useState<string | null>(null);COMMENT
LOWfrontend/src/components/SliceModal.tsx261 });COMMENT
LOWfrontend/src/components/spool-form/ColorSection.tsx41 // Current rgba in canonical 8-char uppercase form (RRGGBBAA). Used both forCOMMENT
LOWfrontend/src/components/spool-form/utils.ts121COMMENT
LOWfrontend/src/__tests__/setup.ts81COMMENT
LOWfrontend/src/__tests__/utils/date.test.ts441describe('localDateKey (#1446 — Print Activity heatmap bucketing)', () => {COMMENT
LOW…__tests__/pages/InventoryPageArchivedConsumed.test.tsx181COMMENT
LOWfrontend/src/__tests__/pages/SpoolBuddyAmsPage.test.tsx221 });COMMENT
LOWfrontend/src/hooks/useWebSocket.ts101 // A 401/403 from the token mint is an AUTH decision, not a transientCOMMENT
LOWfrontend/src/api/client.ts481 // Air conditioning mode (0=cooling, 1=heating)COMMENT
LOWfrontend/src/api/client.ts2821 // True when color_name was synthesised from subtype because Spoolman has noCOMMENT
LOWfrontend/src/pages/SettingsPage.tsx901 // causing the text field to reset mid-typing. Instead, let the useEffectCOMMENT
LOWfrontend/src/pages/MakerworldPage.tsx121 // MakerWorld folder" (auto-created if missing). Any other value is the idCOMMENT
LOWfrontend/src/pages/spoolbuddy/SpoolBuddyDashboard.tsx261 const byTag = spools.find((s) => tagsEquivalent(s.tag_uid, displayedTagId));COMMENT
LOWdeploy/docker-entrypoint.sh1#!/bin/shCOMMENT
LOWslicer-api/docker-compose.yml1# Optional slicer-API sidecar stack for Bambuddy.COMMENT
LOWgcode_viewer/js/prettygcode.js41 // next segment is recalculated. Reduces the number of sin/cos calls.COMMENT
LOWgcode_viewer/js/prettygcode.js141 // Calculate xy_segment_theta, z_segment_theta, and e_segment_thetaCOMMENT
LOWgcode_viewer/js/prettygcode.js981COMMENT
LOWgcode_viewer/js/bambuddy_adapter.js241 var args = Array.prototype.slice.call(arguments);COMMENT
LOWbackend/app/main.py261# per-request ContextVar so the format string above can reference it.COMMENT
LOWbackend/app/main.py341# fires when stg_cur enters 22 ("Filament unloading") at end-of-print — toolheadCOMMENT
LOWbackend/app/main.py361# (#1542 follow-up — power-cycle ghost prints). The value is True afterCOMMENT
LOWbackend/app/main.py401# Track printers waiting for bed to cool after print completion.COMMENT
LOWbackend/app/main.py421# Debounce: a printer must stay offline this long before we notify. SizedCOMMENT
LOWbackend/app/main.py501_expected_print_creators: dict[tuple[int, str], int] = {}COMMENT
142 more matches not shown…
Cross-Language Confusion21 hits · 102 pts
SeverityFileLineSnippetContext
HIGHbackend/app/core/auth.py1684 - Ownerless items (created_by_id = null) require ``all_permission``STRING
HIGHbackend/app/models/library.py96 # Soft-delete / trash bin (Issue #1008). When non-null, the file is in theCOMMENT
HIGHbackend/app/models/archive.py87 # Soft-delete sentinel (#1343). When non-null, the UI hides this archiveCOMMENT
HIGHbackend/app/schemas/library.py216 # never null, so the FE can iterate without a guard.COMMENT
HIGHbackend/app/api/routes/library.py4712 pass # leave hash null; dedup just won't match this rowCODE
HIGHbackend/app/api/routes/spoolman_inventory.py1923 _raise_if_partial_failure(spools_to_clear, results, "spool_weight clear (option B null)")CODE
HIGHbackend/app/api/routes/spoolman_inventory.py81 """Return True when a PATCH field explicitly removes a tag (null)."""STRING
HIGHbackend/app/api/routes/spoolman_inventory.py1859 is null, clears per-spool overrides so spools fall back to the filament value.STRING
HIGHbackend/app/api/routes/updates.py878 "git pull && docker compose build --pull && docker compose up -d"CODE
HIGHbackend/app/services/print_scheduler.py2069 2. Chamber target — `item.preheat_chamber_target_override` if non-null;STRING
HIGHbackend/app/services/spoolbuddy_ssh.py339 "sudo find /home -maxdepth 5 -path '*/chromium/Default/Service Worker' -type d -exec rm -rf {} + 2>/dev/nullCODE
HIGHbackend/tests/integration/test_library_api.py434 # User tracking fields should be present (even if null)COMMENT
HIGHbackend/tests/integration/test_library_api.py446 # User tracking fields should be present (even if null)COMMENT
HIGHbackend/tests/integration/test_ownership_permissions.py6- Ownerless items (created_by_id = null) require *_all permissionSTRING
HIGHbackend/tests/integration/test_ownership_permissions.py406 """Ownerless archive (created_by_id=null) requires REPRINT_ALL.STRING
HIGHbackend/tests/integration/test_inventory_assign.py444 """When slicer_filament_name is null, falls back to tray_sub_brands."""STRING
HIGH…ckend/tests/integration/test_spoolman_inventory_api.py2424 """Sending {tag_uid: null, tray_uuid: null} → at_least_one validator → 422."""STRING
HIGHbackend/tests/integration/test_color_catalog_extras.py52 """PUT with empty extra_colors clears the field (server normalizes "" → null)."""STRING
HIGHbackend/tests/integration/test_settings_api.py859 # And a fresh GET also sees it as null, not the literal string "None".COMMENT
HIGHbackend/tests/integration/test_printers_api.py1279 has filament_id=null, the frontend sends the setting_id in BOTH fieldsSTRING
HIGHinstallers/windows/build.py207 """Run ``npm ci && npm run build`` and return the build output path.STRING
Structural Annotation Overuse48 hits · 80 pts
SeverityFileLineSnippetContext
LOWdocker-publish-daily-beta.sh101# Step 1: Read and validate APP_VERSIONCOMMENT
LOWdocker-publish-daily-beta.sh126# Step 2: Build & push Docker imagesCOMMENT
LOWdocker-publish-daily-beta.sh287# Step 3: Create/update GitHub releaseCOMMENT
LOWdocker-publish-daily-beta.sh379# Step 4: VerifyCOMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx205 // Step 1: request verification code (proof of possession)COMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx222 // Step 2: confirm with the code received by emailCOMMENT
LOWfrontend/src/components/SliceModal.tsx496 // Step 1: plate picker for multi-plate 3MF sources. Cancelling closes theCOMMENT
LOWfrontend/src/components/spoolbuddy/DiagnosticModal.tsx37 // Step 1: Queue the diagnostic on the deviceCOMMENT
LOWfrontend/src/components/spoolbuddy/DiagnosticModal.tsx41 // Step 2: Poll for results with timeoutCOMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx548 // Step 1: pick Plate 2.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx552 // Step 2: profile dropdowns are now visible.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx555 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOWfrontend/src/api/client.ts3560 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOWfrontend/src/api/client.ts3563 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py3081 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py3105 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py239 # Step 2: Bind as the user to verify passwordCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py255 # Step 1: Test SSH connectivityCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py284 # Step 2: Git fetchCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py297 # Step 3: Git checkout + resetCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py310 # Step 4: Install dependenciesCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py323 # Step 5: Restart daemonCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py335 # Step 6: Clear browser cache and restart kioskCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4490 # Step 1: Stale detection triggersCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4494 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4499 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3003 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3015 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3028 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3041 # Step 4: UnloadCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py595 # Step 1: Print starts — plug turns onCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py610 # Step 2: Print completes — auto-off is scheduledCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py622 # Step 3: Auto-off executes via _mark_auto_off_executedCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2796 # Step 1: Initial TOTP setup (no active TOTP yet → no code required)COMMENT
LOWbackend/tests/integration/test_mfa_api.py2804 # Step 2: Enable TOTP with a valid codeCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2813 # Step 3: Determine current valid code and its counterCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2825 # Step 4: Pre-set last_totp_counter so this code looks already usedCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2829 # Step 5: Attempt setup_totp with the "already used" code → must be rejectedCOMMENT
LOW.github/MAINTAINERS.md9### Step 1: Basic SettingsCOMMENT
LOW.github/MAINTAINERS.md16### Step 2: Bypass List (optional)COMMENT
LOW.github/MAINTAINERS.md21### Step 3: Target BranchesCOMMENT
LOW.github/MAINTAINERS.md25### Step 4: Branch RulesCOMMENT
LOWspoolbuddy/daemon/nau7802.py96 # Step 1: Reset (set RR=1, then RR=0)COMMENT
LOWspoolbuddy/daemon/nau7802.py103 # Step 2: Power up digital (PUD=1 auto-starts AD conversion)COMMENT
LOWspoolbuddy/daemon/nau7802.py109 # Step 3: Wait for power-up ready (PUR bit 3)COMMENT
LOWspoolbuddy/daemon/nau7802.py127 # Step 4: Configure deviceCOMMENT
LOWspoolbuddy/daemon/nau7802.py145 # Step 5: Tuning per application notesCOMMENT
LOWspoolbuddy/daemon/nau7802.py151 # Step 6: Trigger fresh AD conversion and wait for first resultCOMMENT
Verbosity Indicators44 hits · 72 pts
SeverityFileLineSnippetContext
LOWdocker-publish-daily-beta.sh101# Step 1: Read and validate APP_VERSIONCOMMENT
LOWdocker-publish-daily-beta.sh126# Step 2: Build & push Docker imagesCOMMENT
LOWdocker-publish-daily-beta.sh287# Step 3: Create/update GitHub releaseCOMMENT
LOWdocker-publish-daily-beta.sh379# Step 4: VerifyCOMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx205 // Step 1: request verification code (proof of possession)COMMENT
LOWfrontend/src/components/TwoFactorSettings.tsx222 // Step 2: confirm with the code received by emailCOMMENT
LOWfrontend/src/components/SliceModal.tsx496 // Step 1: plate picker for multi-plate 3MF sources. Cancelling closes theCOMMENT
LOWfrontend/src/components/spoolbuddy/DiagnosticModal.tsx37 // Step 1: Queue the diagnostic on the deviceCOMMENT
LOWfrontend/src/components/spoolbuddy/DiagnosticModal.tsx41 // Step 2: Poll for results with timeoutCOMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx548 // Step 1: pick Plate 2.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx552 // Step 2: profile dropdowns are now visible.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx555 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOWfrontend/src/api/client.ts3560 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOWfrontend/src/api/client.ts3563 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py3081 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py3105 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py239 # Step 2: Bind as the user to verify passwordCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py255 # Step 1: Test SSH connectivityCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py284 # Step 2: Git fetchCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py297 # Step 3: Git checkout + resetCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py310 # Step 4: Install dependenciesCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py323 # Step 5: Restart daemonCOMMENT
LOWbackend/app/services/spoolbuddy_ssh.py335 # Step 6: Clear browser cache and restart kioskCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4490 # Step 1: Stale detection triggersCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4494 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4499 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3003 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3015 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3028 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3041 # Step 4: UnloadCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py595 # Step 1: Print starts — plug turns onCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py610 # Step 2: Print completes — auto-off is scheduledCOMMENT
LOWbackend/tests/unit/services/test_smart_plug_manager.py622 # Step 3: Auto-off executes via _mark_auto_off_executedCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2796 # Step 1: Initial TOTP setup (no active TOTP yet → no code required)COMMENT
LOWbackend/tests/integration/test_mfa_api.py2804 # Step 2: Enable TOTP with a valid codeCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2813 # Step 3: Determine current valid code and its counterCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2825 # Step 4: Pre-set last_totp_counter so this code looks already usedCOMMENT
LOWbackend/tests/integration/test_mfa_api.py2829 # Step 5: Attempt setup_totp with the "already used" code → must be rejectedCOMMENT
LOWspoolbuddy/daemon/nau7802.py96 # Step 1: Reset (set RR=1, then RR=0)COMMENT
LOWspoolbuddy/daemon/nau7802.py103 # Step 2: Power up digital (PUD=1 auto-starts AD conversion)COMMENT
LOWspoolbuddy/daemon/nau7802.py109 # Step 3: Wait for power-up ready (PUR bit 3)COMMENT
LOWspoolbuddy/daemon/nau7802.py127 # Step 4: Configure deviceCOMMENT
LOWspoolbuddy/daemon/nau7802.py145 # Step 5: Tuning per application notesCOMMENT
LOWspoolbuddy/daemon/nau7802.py151 # Step 6: Trigger fresh AD conversion and wait for first resultCOMMENT
Cross-File Repetition10 hits · 50 pts
SeverityFileLineSnippetContext
HIGH…ests/unit/test_library_file_type_backfill_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGHbackend/tests/unit/test_vp_mode_rename_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…s/unit/test_cancellation_cascade_recovery_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…ckend/tests/unit/test_vp_access_code_sync_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGHbackend/tests/unit/test_vp_mode_rename_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGH…s/unit/test_cancellation_cascade_recovery_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGH…ckend/tests/unit/test_vp_access_code_sync_migration.py0run_migrations touches multiple tables; the full schema must exist.STRING
HIGHbackend/tests/integration/test_spoolman_api.py0create spoolman settings in the database (enabled with url).STRING
HIGH…ckend/tests/integration/test_spoolman_inventory_api.py0create spoolman settings in the database (enabled with url).STRING
HIGHbackend/tests/integration/test_spoolbuddy.py0create spoolman settings in the database (enabled with url).STRING
Fake / Example Data47 hits · 42 pts
SeverityFileLineSnippetContext
LOWfrontend/src/components/CreateUserAdvancedAuthModal.tsx163 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOW…ntend/src/__tests__/components/SpoolFormModal.test.tsx289 input.getAttribute('placeholder')?.toLowerCase().includes('spool')CODE
LOW…ntend/src/__tests__/components/LdapUserPicker.test.tsx75 display_name: 'John Doe',CODE
LOWfrontend/src/i18n/locales/zh-TW.ts3178 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/pt-BR.ts3178 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/zh-CN.ts3178 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/en.ts3219 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/ko.ts3018 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/ja.ts3190 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/pages/SettingsPage.tsx6232 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOWfrontend/src/pages/UsersPage.tsx697 placeholder={t('users.form.emailPlaceholder') || 'user@example.com'}CODE
LOWbackend/app/api/routes/mfa.py1911 # and "user@example.com" are treated as the same identity, preventingCOMMENT
LOWbackend/tests/unit/test_db_dialect.py240 assert rows[0] == "user@example.com"CODE
LOWbackend/tests/unit/services/test_ldap_service.py482 displayName="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py483 cn="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py493 assert results[0].display_name == "John Doe"CODE
LOWbackend/tests/unit/services/test_ldap_service.py585 displayName="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py595 assert info.display_name == "John Doe"CODE
LOWbackend/tests/unit/services/test_orca_cloud.py221 await svc.password_login("user@example.com", "secret")CODE
LOWbackend/tests/unit/services/test_orca_cloud.py240 await svc.password_login("user@example.com", "secret")CODE
LOWbackend/tests/unit/services/test_orca_cloud.py250 await svc.password_login("user@example.com", "wrong")CODE
LOWbackend/tests/unit/services/test_email_service.py220 smtp_username="user@example.com",CODE
LOWbackend/tests/unit/services/test_email_service.py233 assert retrieved.smtp_username == "user@example.com"CODE
LOWbackend/tests/integration/test_advanced_auth_api.py383 json={"email": "test@test.com"},CODE
LOWbackend/tests/integration/test_advanced_auth_api.py17 "smtp_username": "test@test.com",CODE
LOWbackend/tests/integration/test_mfa_api.py2075 json={"email": "user@example.com"},CODE
LOWbackend/tests/integration/test_mfa_api.py2338 "smtp_username": "test@test.com",CODE
LOWbackend/tests/integration/test_mfa_api.py2481 fake_token = {"access_token": "acc_tok", "id_token": "fake.id.token"}CODE
LOWbackend/tests/integration/test_mfa_api.py2498 token_resp.json = MagicMock(return_value=fake_token)CODE
LOWbackend/tests/integration/test_mfa_api.py2509 mock_signing_key.key = "fake_key"CODE
LOWbackend/tests/integration/test_mfa_api.py3576 ("preferred_username", True, {"preferred_username": " User@EXAMPLE.COM "}, "user@example.com"),CODE
LOWbackend/tests/integration/test_mfa_api.py4092 claims={"sub": "nonstr-sub-1", "preferred_username": ["user@example.com"]},CODE
LOWbackend/tests/integration/test_mfa_api.py4153 assert link.provider_email == "user@example.com"CODE
LOWbackend/tests/integration/test_mfa_api.py4200 assert link.provider_email == "user@example.com"CODE
LOWbackend/tests/integration/test_mfa_api.py4532 fake_token = {"access_token": "acc_tok", "id_token": "fake.id.token"}CODE
LOWbackend/tests/integration/test_mfa_api.py4548 token_resp.json = MagicMock(return_value=fake_token)CODE
LOWbackend/tests/integration/test_mfa_api.py4559 mock_signing_key.key = "fake_key"CODE
LOWbackend/tests/integration/test_mfa_api.py4678 claims={"sub": "spaces-sub-1", "preferred_username": "John Doe"},CODE
LOWbackend/tests/integration/test_mfa_api.py4667 """preferred_username='John Doe' → sanitized to 'JohnDoe'."""STRING
LOWbackend/tests/integration/test_cloud_auth.py298 await store_token(db_session, "user-token-abc", "user@example.com", "global", user=user)CODE
LOWbackend/tests/integration/test_cloud_auth.py306 assert refreshed.cloud_email == "user@example.com"CODE
LOWbackend/tests/integration/test_cloud_auth.py543 json={"email": "user@example.com", "password": "x", "region": "china"},CODE
LOWbackend/tests/integration/test_cloud_auth.py566 "email": "user@example.com",CODE
LOWbackend/tests/integration/test_spoolbuddy.py216 fake_key = "ssh-ed25519 AAAATESTKEY bambuddy-spoolbuddy"CODE
LOWbackend/tests/integration/test_spoolbuddy.py221 AsyncMock(return_value=fake_key),CODE
LOWbackend/tests/integration/test_spoolbuddy.py231 assert resp.json()["ssh_public_key"] == fake_keyCODE
LOWbackend/tests/integration/test_ldap_provision.py167 display_name="John Doe",CODE
AI Slop Vocabulary16 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUM…end/src/__tests__/components/LibraryTagsModal.test.tsx94 // In-use message — substring match keeps the test robust to whitespace.COMMENT
MEDIUM…end/src/__tests__/pages/InventoryPageLowStock.test.tsx420 // The exact count cell is rendered separately. Easiest robust assertion:COMMENT
MEDIUMtests/e2e_comprehensive_test.py333 """Run all comprehensive tests."""STRING
LOWbackend/app/main.py1833 # nothing to identify, prompting "+ Add" would just createCOMMENT
MEDIUMbackend/app/api/routes/system.py407 """Get comprehensive system information."""STRING
LOWbackend/app/api/routes/spoolman.py1211 # identity → confirm would just create a fresh Spoolman row per push.COMMENT
MEDIUMbackend/app/api/routes/printers.py3836 # the publish is the robust ack signal.COMMENT
LOWbackend/app/api/routes/printers.py696 # No conversion needed - just use the raw value directlyCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py3214 # Track RUNNING state for more robust completion detectionCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py3305 # Use _was_running flag in addition to _previous_gcode_state for more robust detectionCOMMENT
LOWbackend/app/services/bambu_mqtt.py1876 # We've already processed the status fields above, so just return if no ams listCOMMENT
MEDIUMbackend/tests/unit/test_extract_video_last_frame.py161 # test fast — patch only inside the call so we don't affect the harness.COMMENT
LOWbackend/tests/unit/services/test_archive_service.py729 # When existing is None, just use additionalCOMMENT
MEDIUMbackend/tests/integration/test_security.py117 # by patching _load_or_generate_key directly. This is more robust thanCOMMENT
MEDIUM…/integration/test_users_groups_privilege_escalation.py159 # Operator attempts to elevate target to admin.COMMENT
MEDIUMbackend/tests/integration/test_ldap_provision.py351 # Operators group is auto-seeded by the test harness — no need to create it.COMMENT
AI Structural Patterns31 hits · 23 pts
SeverityFileLineSnippetContext
LOWbackend/app/api/routes/library.py1785CODE
LOWbackend/app/api/routes/print_log.py27CODE
LOWbackend/app/api/routes/cloud.py1158CODE
LOWbackend/app/api/routes/archives.py347CODE
LOWbackend/app/api/routes/archives.py619CODE
LOWbackend/app/api/routes/archives.py793CODE
LOWbackend/app/api/routes/archives.py892CODE
LOWbackend/app/api/routes/archives.py2604CODE
LOWbackend/app/api/routes/archives.py4109CODE
LOWbackend/app/api/routes/pipeline_runs.py780CODE
LOWbackend/app/api/routes/local_backup.py48CODE
LOWbackend/app/api/routes/camera.py976CODE
LOWbackend/app/api/routes/notification_templates.py173CODE
LOWbackend/app/api/routes/settings.py1243CODE
LOWbackend/app/api/routes/printers.py883CODE
LOWbackend/app/api/routes/printers.py2186CODE
LOWbackend/app/api/routes/notifications.py248CODE
LOWbackend/app/services/spoolman.py673CODE
LOWbackend/app/services/print_log.py16CODE
LOWbackend/app/services/notification_service.py140CODE
LOWbackend/app/services/usage_tracker.py863CODE
LOWbackend/app/services/export.py73CODE
LOWbackend/app/services/diagnostic_snapshot.py192CODE
LOWbackend/app/services/mqtt_smart_plug.py335CODE
LOWbackend/app/services/bambu_mqtt.py465CODE
LOWbackend/app/services/bambu_mqtt.py3601CODE
LOWbackend/app/services/email_service.py88CODE
LOWbackend/app/services/printer_manager.py680CODE
LOWbackend/app/services/virtual_printer/manager.py145CODE
LOWbackend/tests/integration/test_auth_apikey_rbac.py279CODE
LOWspoolbuddy/daemon/api_client.py60CODE
Modern AI Meta-Vocabulary6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMbackend/app/main.py4354 # Register bed cooldown waiter (event-driven via on_bed_temp_update callback).COMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py365# Source resolution + orchestrationCOMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py578 # set unconditionally since the orchestration actually got here.COMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py945 # orchestration single-sourced. The result inherits parent_run_id.COMMENT
MEDIUMbackend/app/services/bambu_mqtt.py2709 # Notify bed temperature updates (used by event-driven bed cooldown monitor)COMMENT
MEDIUMbackend/tests/integration/test_pipeline_runs_api.py88 # Materialise an empty file on disk so the orchestration's path-existsCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALgcode_viewer/js/three.min.js37c.update(h));h.material.uniforms.t2D.value=d;!0===d.matrixAutoUpdate&&d.updateMatrix();h.material.uniforms.uvTransform.vCODE
CRITICALgcode_viewer/js/jquery.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Example Usage Blocks9 hits · 12 pts
SeverityFileLineSnippetContext
LOWdocker-publish.sh4# Usage:COMMENT
LOWdocker-publish-beta.sh4# Usage:COMMENT
LOWtest_security.sh6# Usage:COMMENT
LOWdocker-compose.yml5 # Usage:COMMENT
LOWdocker-publish-daily-beta.sh4# Usage:COMMENT
LOWinstall/install.sh6# Usage:COMMENT
LOWinstall/docker-install.sh6# Usage:COMMENT
LOWslicer-api/docker-compose.yml15# Usage:COMMENT
LOWspoolbuddy/install/install.sh9# Usage:COMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbackend/app/services/firmware_check.py568 Check if a firmware update is available for a printer. Args: model: Printer model name STRING