Repository Analysis

amnweb/yasb

A highly configurable Windows status bar written in Python.

16.8 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of amnweb/yasb, a Python project with 5,193 GitHub stars. SynthScan v2.0 examined 131,557 lines of code across 447 source files, recording 1908 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 16.8 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).

16.8
Adjusted Score
16.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.2K
Stars
Python
Language
131.6K
Lines of Code
447
Files
1.9K
Pattern Hits
2026-07-14
Scan Date
0.06
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 0HIGH 25MEDIUM 152LOW 1731

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 1908 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Excessive Try-Catch Wrapping1095 hits · 1216 pts
SeverityFileLineSnippetContext
MEDIUMsrc/cli.py166 print(f"Error: {e}")CODE
MEDIUMsrc/cli.py987 print("Error: Missing Content-Length header.")CODE
MEDIUMsrc/cli.py993 print(f"Error: Invalid Content-Length value: {content_length}")CODE
MEDIUMsrc/cli.py1025 print("Error: Downloaded file size does not match expected size.")CODE
MEDIUMsrc/cli.py196def disable_startup(self):CODE
MEDIUMsrc/cli.py717def is_admin(self):CODE
LOWsrc/cli.py56 except Exception as e:CODE
LOWsrc/cli.py165 except Exception as e:CODE
LOWsrc/cli.py181 except Exception as e:CODE
LOWsrc/cli.py193 except Exception as e:CODE
LOWsrc/cli.py203 except Exception as e:CODE
MEDIUMsrc/cli.py535 print(f"Error retrieving monitor information: {e}")STRING
LOWsrc/cli.py771 except Exception as e:CODE
LOWsrc/cli.py783 except Exception:CODE
LOWsrc/cli.py877 except Exception as e:CODE
LOWsrc/cli.py969 except Exception as e:CODE
LOWsrc/cli.py588 except Exception as e:STRING
LOWsrc/cli.py596 except Exception as e:STRING
LOWsrc/cli.py605 except Exception as e:STRING
LOWsrc/cli.py534 except Exception as e:STRING
LOWsrc/cli.py570 except Exception as e:STRING
LOWsrc/cli.py621 except Exception as e:STRING
LOWsrc/cli.py651 except Exception as e:STRING
LOWsrc/cli.py658 except Exception as e:STRING
LOWsrc/main.py86 except Exception:CODE
LOWsrc/main.py172 except Exception as e:CODE
LOWsrc/main.py204 except Exception:CODE
LOWsrc/core/tray.py93 except Exception:CODE
LOWsrc/core/tray.py162 except Exception:CODE
LOWsrc/core/tray.py176 except Exception:CODE
LOWsrc/core/tray.py178 except Exception:CODE
LOWsrc/core/tray.py187 except Exception:CODE
LOWsrc/core/tray.py194 except Exception as e:CODE
LOWsrc/core/tray.py210 except Exception as e:CODE
LOWsrc/core/tray.py223 except Exception as e:CODE
LOWsrc/core/tray.py237 except Exception as e:CODE
MEDIUMsrc/core/tray.py87def _try_enable_dark_menu(self, hwnd):CODE
MEDIUMsrc/core/tray.py190def is_wm_installed(self, wm) -> bool:CODE
MEDIUMsrc/core/tray.py207def _open_config(self):CODE
MEDIUMsrc/core/tray.py214def wm_command():CODE
MEDIUMsrc/core/tray.py234def _open_in_browser(self, url):CODE
LOWsrc/core/bar.py98 except Exception as e:CODE
LOWsrc/core/watcher.py47 except Exception:CODE
LOWsrc/core/watcher.py71 except Exception:CODE
MEDIUMsrc/core/watcher.py38def _refresh_imported_stylesheets(self) -> None:CODE
MEDIUMsrc/core/watcher.py67def _file_hash(self, path):CODE
MEDIUMsrc/core/bar_helper.py930def _toggle_widget(self, widget, enabled):CODE
MEDIUMsrc/core/bar_helper.py969def _open_task_manager(self):CODE
LOWsrc/core/bar_helper.py297 except Exception as e:CODE
LOWsrc/core/bar_helper.py426 except Exception as e:CODE
LOWsrc/core/bar_helper.py469 except Exception:CODE
LOWsrc/core/bar_helper.py561 except Exception:CODE
LOWsrc/core/bar_helper.py604 except Exception as e:CODE
LOWsrc/core/bar_helper.py627 except Exception:CODE
LOWsrc/core/bar_helper.py704 except Exception:CODE
LOWsrc/core/bar_helper.py717 except Exception:CODE
LOWsrc/core/bar_helper.py772 except Exception as e:CODE
LOWsrc/core/bar_helper.py877 except Exception as e:CODE
LOWsrc/core/bar_helper.py952 except Exception as e:CODE
LOWsrc/core/bar_helper.py972 except Exception as e:CODE
1035 more matches not shown…
Hyper-Verbose Identifiers256 hits · 270 pts
SeverityFileLineSnippetContext
LOWsrc/cli.py118 def send_command_to_application(self, command: str):CODE
LOWsrc/cli.py885 def get_installed_product_code(self):CODE
LOWsrc/core/config.py143def get_config_and_stylesheet() -> tuple[YasbConfig, str]:CODE
LOWsrc/core/log.py58def _suppress_third_party_warnings():CODE
LOWsrc/core/log.py83def _install_qt_message_filter():CODE
LOWsrc/core/watcher.py38 def _refresh_imported_stylesheets(self) -> None:CODE
LOWsrc/core/bar_helper.py434 def execute_without_systray_interference(callback):CODE
LOWsrc/core/bar_manager.py59 def _disconnect_reload_signals(self):CODE
LOWsrc/core/ui/views/about.py185 def _refresh_update_button_style(self) -> None:CODE
LOWsrc/core/ui/views/about.py297 def _disable_update_capability(self) -> None:CODE
LOWsrc/core/ui/views/welcome.py174 def _download_and_extract_zip(self, url: str, fonts_dir: str) -> list[str]:CODE
LOWsrc/core/utils/cli_server.py246 def _handle_client_connection(self, pipe: int):CODE
LOWsrc/core/utils/update_service.py120 def _extract_commit_from_release_name(release_name: str) -> str:CODE
LOWsrc/core/utils/update_service.py133 def _normalize_version_segments(version: str) -> list[int]:CODE
LOWsrc/core/utils/update_service.py168 def _select_asset_for_architecture(self, assets: list[dict], channel: str = "stable") -> dict | None:CODE
LOWsrc/core/utils/validation_errors.py5def format_pydantic_errors_to_yaml(exc: ValidationError) -> str:CODE
LOWsrc/core/utils/widget_builder.py95 def raise_alerts_if_errors_present(self):CODE
LOWsrc/core/utils/widget_builder.py146 def _collect_nested_listeners(self, widget_names: list[str]) -> None:CODE
LOWsrc/core/utils/tooltip.py58 def _ensure_animations_created(self):CODE
LOWsrc/core/utils/tooltip.py275 def _on_fade_out_anim_finished(self):CODE
LOWsrc/core/utils/tooltip.py279 def _on_slide_out_anim_finished(self):CODE
LOWsrc/core/utils/progress_bar.py62 def _create_circular_progress_brush(self, rect):CODE
LOWsrc/core/utils/progress_bar.py75 def _create_linear_progress_brush(self, rect):CODE
LOWsrc/core/utils/css_processor.py71 def _extract_and_replace_variables(self, css: str) -> str:CODE
LOWsrc/core/utils/win32/backdrop.py59def set_window_corner_preference(hwnd, preference, border_color):CODE
LOWsrc/core/utils/win32/hotkeys.py276def collect_widget_keybindings(widget_name: str, keybindings: list[dict]) -> list[HotkeyBinding]:CODE
LOWsrc/core/utils/win32/app_loader.py44def _enumerate_control_panel_items():CODE
LOWsrc/core/utils/win32/system_function.py21def ensure_non_elevated_foreground():CODE
LOWsrc/core/utils/win32/utils.py73def is_running_under_emulation():CODE
LOWsrc/core/utils/win32/utils.py313def get_window_extended_frame_bounds(hwnd: int) -> dict:CODE
LOWsrc/core/utils/win32/event_listener.py47 def _emit_foreground_window_event(self):CODE
LOWsrc/core/widgets/yasb/quick_launch.py1323 def _on_search_input_context_menu(self, pos):CODE
LOWsrc/core/widgets/yasb/taskbar.py957 def _on_pinned_apps_changed_signal(self, action: str, unique_id: str) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py1189 def _get_widget_monitor_handle(self):CODE
LOWsrc/core/widgets/yasb/taskbar.py1975 def _clear_others_set_foreground(self, target_hwnd: int | None) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py621 def _find_insert_position_after_pinned(self) -> int:CODE
LOWsrc/core/widgets/yasb/taskbar.py637 def _update_pinned_order_from_layout(self) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py699 def _create_pinned_app_button(self, unique_id: str, metadata: dict) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py766 def _create_pinned_app_container(CODE
LOWsrc/core/widgets/yasb/taskbar.py1170 def _on_window_monitor_changed(self, hwnd, window_data):CODE
LOWsrc/core/widgets/yasb/taskbar.py1507 def _refresh_title_visibility(self, hwnd: int) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py2158 def _animate_or_set_title_visible(self, label: QWidget, visible: bool, duration: int = None) -> None:CODE
LOWsrc/core/widgets/yasb/media.py484 def _update_popup_menu_buttons(self):CODE
LOWsrc/core/widgets/yasb/media.py551 def _on_timeline_properties_changed(self):CODE
LOWsrc/core/widgets/yasb/media.py574 def _update_interpolated_position(self):CODE
LOWsrc/core/widgets/yasb/media.py624 def _on_session_status_changed(self):CODE
LOWsrc/core/widgets/yasb/media.py658 def _on_playback_info_changed(self):CODE
LOWsrc/core/widgets/yasb/media.py719 def _on_media_properties_changed(self):CODE
LOWsrc/core/widgets/yasb/media.py889 def _create_thumbnail_for_popup(self, img: Image.Image):CODE
LOWsrc/core/widgets/yasb/media.py1130 def _get_current_app_identifier(self) -> str | None:CODE
LOWsrc/core/widgets/yasb/media.py1159 def _match_session_by_mapping(self, sessions: list[MediaSession], aumid: str) -> MediaSession | None:CODE
LOWsrc/core/widgets/yasb/media.py1194 def _match_session_by_executable(self, sessions: list[MediaSession], identifier: str):CODE
LOWsrc/core/widgets/yasb/media.py1269 def _on_app_volume_slider_changed(self, value: int):CODE
LOWsrc/core/widgets/yasb/wifi.py76 def _create_dynamically_label(self, content: str, content_alt: str, is_ethernet: bool = False):CODE
LOWsrc/core/widgets/yasb/launchpad.py1811 def _start_background_loading(self, icon_requests):CODE
LOWsrc/core/widgets/yasb/launchpad.py1819 def _on_background_icon_loaded(self, icon_path: str, pixmap: QPixmap):CODE
LOWsrc/core/widgets/yasb/launchpad.py1829 def _recalculate_grid_columns(self):CODE
LOWsrc/core/widgets/yasb/launchpad.py1272 def _handle_popup_mouse_press(self, popup, event):CODE
LOWsrc/core/widgets/yasb/memory.py211 def _get_virtual_memory_threshold(self, virtual_memory_percent: float) -> str:CODE
LOWsrc/core/widgets/yasb/control_center.py76 def _on_brightness_service_changed(self, hmonitor: int, brightness: int):CODE
196 more matches not shown…
Deep Nesting285 hits · 256 pts
SeverityFileLineSnippetContext
LOWsrc/cli.py206CODE
LOWsrc/cli.py973CODE
LOWsrc/main.py28CODE
LOWsrc/main.py105CODE
LOWsrc/core/bar.py244CODE
LOWsrc/core/watcher.py74CODE
LOWsrc/core/bar_helper.py372CODE
LOWsrc/core/bar_helper.py538CODE
LOWsrc/core/bar_helper.py1136CODE
LOWsrc/core/bar_manager.py108CODE
LOWsrc/core/bar_manager.py136CODE
LOWsrc/core/bar_manager.py240CODE
LOWsrc/core/ui/views/themes.py1190CODE
LOWsrc/core/ui/views/updater.py92CODE
LOWsrc/core/ui/views/updater.py163CODE
LOWsrc/core/ui/views/welcome.py174CODE
LOWsrc/core/utils/cli_server.py116CODE
LOWsrc/core/utils/update_service.py229CODE
LOWsrc/core/utils/validation_errors.py5CODE
LOWsrc/core/utils/time_utils.py5CODE
LOWsrc/core/utils/tooltip.py166CODE
LOWsrc/core/utils/tooltip.py398CODE
LOWsrc/core/utils/markdown.py175CODE
LOWsrc/core/utils/utilities.py320CODE
LOWsrc/core/utils/utilities.py375CODE
LOWsrc/core/utils/utilities.py682CODE
LOWsrc/core/utils/utilities.py726CODE
LOWsrc/core/utils/win32/aumid.py168CODE
LOWsrc/core/utils/win32/aumid.py260CODE
LOWsrc/core/utils/win32/aumid.py277CODE
LOWsrc/core/utils/win32/app_icons.py36CODE
LOWsrc/core/utils/win32/app_icons.py181CODE
LOWsrc/core/utils/win32/hotkeys.py103CODE
LOWsrc/core/utils/win32/hotkeys.py235CODE
LOWsrc/core/utils/win32/app_loader.py44CODE
LOWsrc/core/utils/win32/app_loader.py81CODE
LOWsrc/core/utils/win32/window_actions.py178CODE
LOWsrc/core/events/service.py44CODE
LOWsrc/core/widgets/yasb/quick_launch.py979CODE
LOWsrc/core/widgets/yasb/quick_launch.py1210CODE
LOWsrc/core/widgets/yasb/quick_launch.py1323CODE
LOWsrc/core/widgets/yasb/taskbar.py62CODE
LOWsrc/core/widgets/yasb/taskbar.py105CODE
LOWsrc/core/widgets/yasb/taskbar.py132CODE
LOWsrc/core/widgets/yasb/taskbar.py183CODE
LOWsrc/core/widgets/yasb/taskbar.py637CODE
LOWsrc/core/widgets/yasb/taskbar.py820CODE
LOWsrc/core/widgets/yasb/taskbar.py957CODE
LOWsrc/core/widgets/yasb/taskbar.py1236CODE
LOWsrc/core/widgets/yasb/taskbar.py1420CODE
LOWsrc/core/widgets/yasb/taskbar.py1654CODE
LOWsrc/core/widgets/yasb/taskbar.py1683CODE
LOWsrc/core/widgets/yasb/taskbar.py1726CODE
LOWsrc/core/widgets/yasb/taskbar.py1975CODE
LOWsrc/core/widgets/yasb/taskbar.py2045CODE
LOWsrc/core/widgets/yasb/disk.py63CODE
LOWsrc/core/widgets/yasb/disk.py231CODE
LOWsrc/core/widgets/yasb/media.py215CODE
LOWsrc/core/widgets/yasb/media.py719CODE
LOWsrc/core/widgets/yasb/media.py1135CODE
225 more matches not shown…
Self-Referential Comments34 hits · 96 pts
SeverityFileLineSnippetContext
MEDIUMsrc/core/utils/cli_server.py119 # Create a new pipeCOMMENT
MEDIUMsrc/core/utils/utilities.py183 # Create the inner frameCOMMENT
MEDIUMsrc/core/widgets/yasb/taskbar.py1031 # Create the pinned buttonCOMMENT
MEDIUMsrc/core/widgets/yasb/taskbar.py1319 # Create the window widgetCOMMENT
MEDIUMsrc/core/widgets/yasb/media.py192 # Initialize tracking variablesCOMMENT
MEDIUMsrc/core/widgets/yasb/media.py226 # Create main layout for the popup dialogCOMMENT
MEDIUMsrc/core/widgets/yasb/media.py395 # Create a horizontal layout for the time labelsCOMMENT
MEDIUMsrc/core/widgets/yasb/media.py927 # Create the maskCOMMENT
MEDIUMsrc/core/widgets/yasb/media.py997 # Create the high-resolution maskCOMMENT
MEDIUMsrc/core/widgets/yasb/launchpad.py1686 # Create a minimal app data with just the group fieldCOMMENT
MEDIUMsrc/core/widgets/yasb/home.py81 # Create main vertical layout for the popupCOMMENT
MEDIUMsrc/core/widgets/yasb/libre_monitor.py34 # Create a network manager to handle the LHM connection asynchronouslyCOMMENT
MEDIUMsrc/core/widgets/yasb/libre_monitor.py41 # Create a requestCOMMENT
MEDIUMsrc/core/widgets/yasb/clock.py720 # Create main layoutCOMMENT
MEDIUMsrc/core/widgets/yasb/applications.py29 # Create a container widget for each labelCOMMENT
MEDIUMsrc/core/widgets/yasb/applications.py35 # Create the labelCOMMENT
MEDIUMsrc/core/widgets/yasb/weather.py280 # Create the icon label and pixmapCOMMENT
MEDIUMsrc/core/widgets/yasb/weather.py335 # Create a temporary icon fetcher to fetch the missing iconsCOMMENT
MEDIUMsrc/core/widgets/yasb/weather.py419 # Create the new class stringCOMMENT
MEDIUMsrc/core/widgets/yasb/whkd.py187 # Create a container widget for buttonsSTRING
MEDIUMsrc/core/widgets/yasb/whkd.py188 # Create a container widget for buttonsSTRING
MEDIUMsrc/core/widgets/yasb/notes.py348 # Create main layoutCOMMENT
MEDIUMsrc/core/widgets/yasb/volume.py320 # Create a container widget and layoutCOMMENT
MEDIUMsrc/core/widgets/yasb/cava.py274 # Create a clip rect for this stripCOMMENT
MEDIUMsrc/core/widgets/yasb/cava.py354 # Create a clip rect for this stripCOMMENT
MEDIUMsrc/core/widgets/yasb/traffic.py430 # Create a horizontal container for each data rowCOMMENT
MEDIUMsrc/core/widgets/yasb/github.py572 # Create a vertical layout to center the widgetsSTRING
MEDIUMsrc/core/widgets/yasb/microphone.py278 # Create a container widget for device buttonsCOMMENT
MEDIUMsrc/core/widgets/services/systray/systray_hook.py128 # Create the watchdog mutex - held for entire lifetime.COMMENT
MEDIUM…core/widgets/services/wallpapers/wallpapers_gallery.py127 # Create a transparent pixmap of the target sizeCOMMENT
MEDIUMsrc/core/widgets/services/taskbar/application_window.py235 # Initialize the COM object globally on the first callCOMMENT
MEDIUMsrc/core/widgets/services/weather/widgets.py324 # Create the curve path first so we can use it for the gradientCOMMENT
MEDIUMsrc/core/validation/export_schema.py63 # Create a model for this specific widget typeCOMMENT
MEDIUMsrc/core/validation/export_schema.py79 # Create a new model for export that overrides the widgets fieldCOMMENT
Redundant / Tautological Comments61 hits · 84 pts
SeverityFileLineSnippetContext
LOWsrc/cli.py805 # Check if already on target channelCOMMENT
LOWsrc/cli.py810 # Check if updates are supportedCOMMENT
LOWsrc/cli.py910 # Check if updates are supportedCOMMENT
LOWsrc/core/bar_helper.py205 # Check if mouse left during the animationCOMMENT
LOWsrc/core/bar_helper.py398 # Check if mouse is within screen bounds horizontallyCOMMENT
LOWsrc/core/bar_helper.py637 # Check if the fullscreen app's window should be excludedCOMMENT
LOWsrc/core/bar_helper.py867 # Check if autohide is enabled and start the hide timerCOMMENT
LOWsrc/core/utils/update_service.py271 # Check if it's actually an update for preview channelCOMMENT
LOWsrc/core/utils/update_service.py281 # Check if it's actually an update for stable channelCOMMENT
LOWsrc/core/utils/utilities.py383 # Check if click is inside popupCOMMENT
LOWsrc/core/utils/utilities.py391 # Check if click is inside any visible QMenu or QDialog (file dialogs, etc.)COMMENT
LOWsrc/core/utils/utilities.py114 # Check if YASB is installed via Scoop and if so, return the path to the executableCOMMENT
LOWsrc/core/utils/win32/app_icons.py352 # Check if icon is mask-basedCOMMENT
LOWsrc/core/utils/win32/utils.py177 # Check if this is a UWP app and get its proper display nameCOMMENT
LOWsrc/core/widgets/base.py82 # Check if this event is for our widget (by config name)COMMENT
LOWsrc/core/widgets/yasb/quick_launch.py801 # Check if the typed text matches a provider prefixCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1676 # Check if taskbar should be hidden after unpinningCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py65 # Check if there's already a preview showing for this hwndCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py657 # Check if it's a running pinned appCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py853 # Check if icon is already cachedCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py972 # Check if we have a running window that matches this unique_idCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1021 # Check if already displayed using direct lookupCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1081 # Check if taskbar should be hidden after unpinningCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1103 # Check if it's a running pinned appCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1124 # Check if we already have a widget for this appCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1245 # Check if this is a pinned appCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1365 # Check if this is a pinned app that needs to be replaced with pinned-only buttonCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1398 # Check if any other windows of the same app are still runningCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1604 # Check if the window is valid before attempting to close itCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1801 # Check if window is active using task manager dataCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1825 # Check if this is a Recycle Bin window - use monitored state instead of window iconCOMMENT
LOWsrc/core/widgets/yasb/taskbar.py1883 # Check if this is a pinned app that's not running (negative hwnd)COMMENT
LOWsrc/core/widgets/yasb/launchpad.py1288 # Check if it's a group or an appCOMMENT
LOWsrc/core/widgets/yasb/ai_chat.py506 # Check if the popup layout and buttons are still validCOMMENT
LOWsrc/core/widgets/yasb/systray.py378 # Check if the saved data exists for the icon by uuid and exe pathCOMMENT
LOWsrc/core/widgets/yasb/whkd.py313 # Check if line is a headerSTRING
LOWsrc/core/widgets/yasb/cava.py413 # Check if cava is availableCOMMENT
LOWsrc/core/widgets/yasb/language.py337 # Check if the focus window is a valid application windowCOMMENT
LOWsrc/core/widgets/yasb/active_window.py239 # Check if the window title is in the list of ignored titlesCOMMENT
LOWsrc/core/widgets/komorebi/control.py223 # Check if buttons should be disabledCOMMENT
LOWsrc/core/widgets/services/traffic/traffic_manager.py384 # Check if day has changedCOMMENT
LOWsrc/core/widgets/services/traffic/traffic_manager.py327 # Check if it's a new dayCOMMENT
LOWsrc/core/widgets/services/wifi/wifi_widgets.py644 # Check if location services are enabledCOMMENT
LOWsrc/core/widgets/services/wifi/wifi_managers.py440 # Check if we already have this SSID with better signal qualityCOMMENT
LOWsrc/core/widgets/services/systray/utils.py320 # Check if we're running in a frozen environmentCOMMENT
LOW…core/widgets/services/wallpapers/wallpapers_gallery.py587 # Check if we need to change pageCOMMENT
LOW…widgets/services/quick_launch/providers/file_search.py665 # Check if Everything is configured but not runningCOMMENT
LOW…widgets/services/quick_launch/providers/file_search.py690 # Check if Everything DLL loaded but service not runningCOMMENT
LOW…widgets/services/quick_launch/providers/file_search.py707 # Check if Everything returned empty due to IPC errorCOMMENT
LOWsrc/core/widgets/services/notes/utils.py219 # Check if we should enforce plain text pasteCOMMENT
LOWsrc/core/widgets/services/taskbar/window_manager.py535 # Check if window should be shown in taskbarCOMMENT
LOWsrc/core/widgets/services/taskbar/thumbnail.py604 # Check if window is flashing using existing taskbar logicCOMMENT
LOWsrc/core/widgets/services/taskbar/pin_manager.py502 # Check if we got a valid identifierCOMMENT
LOWsrc/core/widgets/services/taskbar/pin_manager.py670 # Check if elevation is required (WinError 740)COMMENT
LOWsrc/core/widgets/services/taskbar/app_menu.py258 # Check if this is specifically the Recycle BinCOMMENT
LOWsrc/core/widgets/services/taskbar/app_menu.py340 # Check if widget still exists before setting cursorCOMMENT
LOWsrc/core/widgets/services/taskbar/app_menu.py388 # Check if Recycle Bin is empty and disable the option if it isCOMMENT
LOWsrc/core/widgets/services/taskbar/app_menu.py437 # Check if this is UWP (AUMID) or Win32 (path)COMMENT
LOWsrc/core/widgets/services/weather/widgets.py485 # Check if it has styleSheet methodCOMMENT
LOW…re/widgets/services/recycle_bin/recycle_bin_monitor.py226 # Check if already empty using cached info (fast, no blocking)COMMENT
1 more matches not shown…
Modern Structural Boilerplate81 hits · 84 pts
SeverityFileLineSnippetContext
LOWsrc/core/bar.py168 def update_app_bar(self) -> None:CODE
LOWsrc/core/watcher.py50 def set_observer(self, observer) -> None:CODE
LOWsrc/core/ui/components/content_dialog.py220 def set_title(self, text: str) -> None:CODE
LOWsrc/core/ui/components/content_dialog.py224 def set_content(self, text: str) -> None:CODE
LOWsrc/core/ui/components/content_dialog.py228 def set_content_widget(self, widget: QWidget) -> None:CODE
LOWsrc/core/ui/components/input_dialog.py49 def set_accent_color(self, color: str) -> None:CODE
LOWsrc/core/ui/components/indicator.py95 def set_current(self, index: int) -> None:CODE
LOWsrc/core/ui/components/text_block.py49 def set_color_override(self, color: str | None) -> None:CODE
LOWsrc/core/ui/components/card.py97 def set_selected(self, selected: bool) -> None:CODE
LOWsrc/core/ui/components/card.py105 def _update_child_colors(self) -> None:CODE
LOWsrc/core/ui/components/slider.py93 def set_value(self, v: int) -> None:CODE
LOWsrc/core/ui/components/button.py167 def set_variant(self, variant: str) -> None:CODE
LOWsrc/core/ui/components/loader.py67 def set_color(self, color: str) -> None:CODE
LOWsrc/core/ui/components/loader.py137 def set_color(self, color: str) -> None:CODE
LOWsrc/core/ui/components/info_bar.py166 def _update_stylesheet(self) -> None:CODE
LOWsrc/core/ui/components/info_bar.py178 def set_severity(self, severity: InfoBarSeverity) -> None:CODE
LOWsrc/core/ui/components/info_bar.py184 def set_title(self, title: str) -> None:CODE
LOWsrc/core/ui/components/info_bar.py188 def set_message(self, message: str) -> None:CODE
LOWsrc/core/ui/components/toggle_switch.py239 def _update_label(self, checked: bool) -> None:CODE
LOWsrc/core/ui/components/dropdown.py68 def set_selected(self, selected: bool) -> None:CODE
LOWsrc/core/ui/components/dropdown.py275 def set_current(self, key: str) -> None:CODE
LOWsrc/core/ui/views/updater.py396 def _set_status(self, text: str = "", *, error: bool = False) -> None:STRING
LOWsrc/core/ui/views/updater.py404 def _set_idle_state(self, *, enabled: bool, status: str = "", error: bool = False) -> None:STRING
LOWsrc/core/ui/views/updater.py417 def set_release_info(self, release_info: ReleaseInfo) -> None:STRING
LOWsrc/core/ui/views/updater.py582 def _set_close_button_state(self, *, is_cancel: bool) -> None:STRING
LOWsrc/core/ui/views/welcome.py848 def _update_dots(self, current: int) -> None:CODE
LOWsrc/core/utils/stat_popup.py87 def set_data(self, data: list[float]) -> None:CODE
LOWsrc/core/utils/update_service.py327 def update_last_check_time(self) -> None:CODE
LOWsrc/core/utils/utilities.py511 def _update_elided_text(self) -> None:STRING
LOWsrc/core/utils/utilities.py618 def _set_idle_offset(self) -> None:STRING
LOWsrc/core/utils/win32/structs.py368 def set_ssid(self, ssid: bytes) -> None:CODE
LOWsrc/core/utils/win32/window_actions.py111def set_foreground(hwnd: int) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py637 def _update_pinned_order_from_layout(self) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py671 def _update_pinned_status(self, hwnd: int, is_pinned: bool) -> None:CODE
LOWsrc/core/widgets/yasb/taskbar.py1871 def _set_dragging(self, active: bool) -> None:CODE
LOWsrc/core/widgets/yasb/server_monitor.py116 def _set_menu_loader(self, active: bool) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py44 def set_value(self, value: float, max_value: float = 100.0) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py50 def set_thresholds(self, warning: int, critical: int) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py55 def set_class(self, class_name: str) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py70 def _update_state(self) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py83 def _update_fill(self) -> None:CODE
LOWsrc/core/widgets/yasb/copilot.py112 def set_data(self, data: list[dict]) -> None:CODE
LOWsrc/core/widgets/yasb/notes.py99 def update_all(cls) -> None:CODE
LOWsrc/core/widgets/yasb/windows_desktops.py431 def _update_button(self, workspace_btn: WorkspaceButton, schedule_update: bool = True) -> None:CODE
LOWsrc/core/widgets/yasb/glucose_monitor.py34 def set_url(self, host: str, secret: str) -> None:CODE
LOWsrc/core/widgets/yasb/glucose_monitor.py133 def _update_label(self) -> None:CODE
LOWsrc/core/widgets/yasb/claude_usage.py28 def _update_fill(self) -> None:CODE
LOWsrc/core/widgets/yasb/claude_usage.py153 def _update_label(self) -> None:CODE
LOWsrc/core/widgets/yasb/active_window.py153 def _set_no_window_or_hide(self) -> None:CODE
LOWsrc/core/widgets/yasb/active_window.py272 def _update_window_title(self, hwnd: int, win_info: dict, event: WinEvent) -> None:CODE
LOWsrc/core/widgets/yasb/window_controls.py270 def _update_maximize_button(self, maximized: bool) -> None:CODE
LOWsrc/core/widgets/yasb/window_controls.py334 def _update_label(self, app_name: str) -> None:CODE
LOWsrc/core/widgets/yasb/window_controls.py339 def _set_visible(self) -> None:CODE
LOWsrc/core/widgets/yasb/window_controls.py347 def _set_hidden(self) -> None:CODE
LOWsrc/core/widgets/yasb/power_plan.py98 def _update_label(self) -> None:CODE
LOWsrc/core/widgets/komorebi/stack.py372 def _update_button_status(self, window_btn: WindowButton) -> None:CODE
LOWsrc/core/widgets/komorebi/stack.py381 def _update_button_label(self, window_btn: WindowButton) -> None:CODE
LOWsrc/core/widgets/komorebi/workspaces.py462 def _update_button(self, workspace_btn: WorkspaceButton) -> None:CODE
LOW…re/widgets/services/control_center/sections/sliders.py425 def update_brightness(self, hmonitor: int, brightness: int) -> None:CODE
LOW…core/widgets/services/control_center/sections/power.py98 def _setup_button_layout(self, button: QWidget, title: str, label: QLabel, icon: str) -> None:CODE
21 more matches not shown…
Cross-File Repetition14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHsrc/core/utils/win32/bindings/kernel32.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/utils/win32/bindings/wlanapi.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/utils/win32/bindings/ole32.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/utils/win32/bindings/user32.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/utils/win32/bindings/powrprof.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/utils/win32/bindings/gdi32.py0wrappers for gdi32 win32 api functions to make them easier to use and have proper typesSTRING
HIGHsrc/core/widgets/yasb/launchpad.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/ai_chat.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/server_monitor.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/vscode.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/github.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/todo.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/services/wifi/wifi_widgets.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
HIGHsrc/core/widgets/yasb/notes.py0qscrollbar:vertical { border: none; background:transparent; width: 4px; } qscrollbar::add-page:vertical, qscrollbar::subSTRING
Cross-Language Confusion8 hits · 55 pts
SeverityFileLineSnippetContext
HIGHsrc/core/ui/views/themes.py435 s = url.toString()CODE
HIGHsrc/core/ui/views/updater.py227 cached = self._image_cache.get(url.toString())CODE
HIGH…ts/services/control_center/sections/system_controls.py136 ("Network && Internet", "ms-settings:network"),CODE
HIGH…ts/services/control_center/sections/system_controls.py137 ("Bluetooth && Devices", "ms-settings:bluetooth"),CODE
HIGH…ts/services/control_center/sections/system_controls.py140 ("Power && Battery", "ms-settings:powersleep"),CODE
HIGH…ts/services/control_center/sections/system_controls.py143 ("Privacy && Security", "ms-settings:privacy"),CODE
HIGHsrc/core/widgets/services/glazewm/client.py117 logger.debug("Connecting to %s", self._uri.toString())CODE
HIGHsrc/core/widgets/services/glazewm/client.py121 logger.debug("Connected to %s", self._uri.toString())CODE
Unused Imports45 hits · 42 pts
SeverityFileLineSnippetContext
LOWsrc/core/utils/win32/typecheck.py12CODE
LOWsrc/core/utils/win32/bindings/__init__.py2CODE
LOWsrc/core/utils/win32/bindings/__init__.py3CODE
LOWsrc/core/utils/win32/bindings/__init__.py4CODE
LOWsrc/core/utils/win32/bindings/__init__.py5CODE
LOWsrc/core/utils/win32/bindings/__init__.py6CODE
LOWsrc/core/utils/win32/bindings/__init__.py7CODE
LOWsrc/core/utils/win32/bindings/__init__.py8CODE
LOWsrc/core/utils/win32/bindings/__init__.py9CODE
LOWsrc/core/utils/win32/bindings/__init__.py10CODE
LOWsrc/core/utils/win32/bindings/__init__.py11CODE
LOWsrc/core/utils/win32/bindings/__init__.py12CODE
LOWsrc/core/utils/win32/bindings/__init__.py13CODE
LOWsrc/core/utils/win32/bindings/__init__.py14CODE
LOWsrc/core/utils/win32/bindings/__init__.py15CODE
LOWsrc/core/events/__init__.py1CODE
LOWsrc/core/events/__init__.py2CODE
LOWsrc/core/events/__init__.py3CODE
LOWsrc/core/events/__init__.py4CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py1CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py2CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py3CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py4CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py5CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py6CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py7CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py8CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py9CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py10CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py11CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py12CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py13CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py14CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py15CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py16CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py17CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py18CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py19CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py20CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py21CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py22CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py23CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py24CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py25CODE
LOW…re/widgets/services/quick_launch/providers/__init__.py26CODE
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/core/utils/update_service.py235Check GitHub for available updates. Supports both stable and preview channels: - Stable: Compares semanSTRING
HIGHsrc/core/utils/time_utils.py6 Convert an ISO 8601 timestamp to a human-readable relative time string. Args: iso_timestamp: ISO 8601 STRING
HIGHsrc/core/utils/win32/bindings/shell32.py28Launch a file, URL, or shortcut via ShellExecuteW. Args: file: Path to the file, URL, or shortcut to open. STRING
Fake / Example Data16 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/widgets/(Widget)-Quick-Launch.md229| `lorem` | Generate lorem ipsum paragraphs/words | `dev lorem` |CODE
LOWsrc/core/widgets/yasb/quick_launch.py1129 widget.setPlaceholderText(field_def.get("placeholder", ""))CODE
LOWsrc/core/widgets/yasb/quick_launch.py1135 widget.setPlaceholderText(field_def.get("placeholder", ""))CODE
LOWsrc/core/widgets/yasb/server_monitor.py341 placeholder.setProperty("class", "placeholder")STRING
LOW…e/widgets/services/quick_launch/providers/dev_tools.py23 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod "CODE
LOW…e/widgets/services/quick_launch/providers/dev_tools.py23 "lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod "CODE
LOW…e/widgets/services/quick_launch/providers/dev_tools.py53 "name": "Lorem Ipsum",CODE
LOW…ore/widgets/services/quick_launch/providers/example.py147 {"id": "name", "type": "text", "label": "Name:", "placeholder": "...", "value": ""},STRING
LOW…ore/widgets/services/quick_launch/providers/example.py148 {"id": "body", "type": "multiline", "label": "Content:", "placeholder": "...", "value": ""},STRING
LOW…re/widgets/services/quick_launch/providers/snippets.py204 {"id": "title", "type": "text", "label": "Title", "placeholder": "Snippet name", "value": title},CODE
LOW…re/widgets/services/quick_launch/providers/snippets.py209 "placeholder": "Snippet text that will be typed...",CODE
LOWsrc/core/widgets/services/quick_launch/providers/ssh.py191 return {"id": id_, "type": "text", "label": label, "placeholder": placeholder, "value": e.get(id_, "")}CODE
LOWsrc/core/widgets/services/media/tokenizer.py15 type: Literal["literal", "placeholder", "separator"]CODE
LOWsrc/core/widgets/services/media/tokenizer.py28 tokens.append(Token("placeholder", match, values.get(match[1:-1], "")))CODE
LOWsrc/core/widgets/services/media/tokenizer.py40 placeholder_positions = [i for i, t in enumerate(tokens) if t.type == "placeholder"]CODE
LOWsrc/core/widgets/services/media/tokenizer.py57 if tok.type == "placeholder":CODE
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWsrc/cli.py78 # If it's ping/pong, just return the object as isCOMMENT
LOWsrc/core/utils/cli_server.py60 # If it's ping/pong, just return the object as isCOMMENT
MEDIUMsrc/core/utils/update_service.py335 """Get comprehensive version and architecture information.STRING
LOWsrc/core/utils/win32/typecheck.py14 # NOTE: During runtime just use Any placeholdersCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/core/utils/progress_bar.py9CODE
LOWsrc/core/widgets/yasb/launchpad.py132CODE
LOWsrc/core/widgets/services/copilot/api.py297CODE
LOWsrc/core/widgets/services/taskbar/shortcut_resolver.py90CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/core/utils/win32/aumid.py257CODE
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/core/widgets/services/taskbar/pin_manager.py281COMMENT