Repository Analysis

zauberzeug/nicegui

Create web-based user interfaces with Python. The nice way.

10.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of zauberzeug/nicegui, a Python project with 16,016 GitHub stars. SynthScan v2.0 examined 121,543 lines of code across 967 source files, recording 1066 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 10.9 places this repository in the Low AI signal band.

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

10.9
Adjusted Score
10.9
Raw Score
100%
Time Factor
2026-07-11
Last Push
16.0K
Stars
Python
Language
121.5K
Lines of Code
967
Files
1.1K
Pattern Hits
2026-07-14
Scan Date
0.07
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 6HIGH 65MEDIUM 14LOW 981

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 1066 distinct pattern matches across 18 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 Identifiers434 hits · 394 pts
SeverityFileLineSnippetContext
LOWmain.py122def _documentation_detail_page(name: str, tree: ui.tree) -> None:STRING
LOWwebsite/documentation/reference.py108def _generate_property_signature_description(property_: property | None) -> str:CODE
LOWwebsite/documentation/reference.py124def _generate_method_signature_description(method: Callable) -> str:CODE
LOWwebsite/documentation/reference.py152def _remove_indentation_from_docstring(text: str) -> str:CODE
LOWwebsite/documentation/search.py46def _collect_documentation_parts(*, include_code: bool = False) -> list[dict[str, str]]:CODE
LOWwebsite/documentation/content/section_security.py80def component_security_overview_demo():STRING
LOW…site/documentation/content/date_input_documentation.py28def date_input_with_filter_demo():STRING
LOWwebsite/documentation/content/section_action_events.py245 # def clear_content_and_show_error(error):STRING
LOWwebsite/documentation/content/aggrid_documentation.py59def adding_rows_preserving_edits():STRING
LOWwebsite/documentation/content/aggrid_documentation.py87def aggrid_with_selectable_rows():STRING
LOWwebsite/documentation/content/aggrid_documentation.py145def aggrid_with_conditional_cell_formatting():STRING
LOWwebsite/documentation/content/aggrid_documentation.py242def aggrid_with_complex_objects():STRING
LOWwebsite/documentation/content/aggrid_documentation.py260def aggrid_with_dynamic_row_height():STRING
LOWwebsite/documentation/content/aggrid_documentation.py299def aggrid_filter_return_values():STRING
LOWwebsite/documentation/content/aggrid_documentation.py307def aggrid_access_api_via_javascript():STRING
LOWwebsite/documentation/content/aggrid_documentation.py326def aggrid_handle_theme_change():STRING
LOWwebsite/documentation/content/event_documentation.py31def emitting_vs_calling_events():STRING
LOWwebsite/documentation/content/slider_documentation.py23def throttle_events_with_leading_and_trailing_options():STRING
LOWwebsite/documentation/content/page_documentation.py32def page_with_path_parameters_demo():STRING
LOW…bsite/documentation/content/expansion_documentation.py15def expansion_with_custom_header():STRING
LOWwebsite/documentation/content/tree_documentation.py31def tree_with_custom_header_and_body():STRING
LOWwebsite/documentation/content/table_documentation.py40def default_column_parameters():STRING
LOWwebsite/documentation/content/table_documentation.py76def table_with_expandable_rows():STRING
LOWwebsite/documentation/content/table_documentation.py179def table_with_drop_down_selection():STRING
LOWwebsite/documentation/content/table_documentation.py327def handle_pagination_changes() -> None:STRING
LOWwebsite/documentation/content/table_documentation.py340 async def show_filtered_sorted_rows():STRING
LOWwebsite/documentation/content/table_documentation.py458def table_with_masonry_like_grid():STRING
LOWwebsite/documentation/content/table_documentation.py485def slot_templates_with_nicegui_elements():STRING
LOW…ite/documentation/content/refreshable_documentation.py27def refreshable_with_parameters():STRING
LOW…umentation/content/section_configuration_deployment.py479def _documentation_index_table():STRING
LOWwebsite/documentation/content/user_documentation.py134def selecting_options_in_a_select():STRING
LOW…/documentation/content/section_audiovisual_elements.py25def captions_and_overlays_demo():STRING
LOWwebsite/documentation/content/markdown_documentation.py15def markdown_with_indentation():STRING
LOWwebsite/documentation/content/markdown_documentation.py33def markdown_with_code_blocks():STRING
LOWwebsite/documentation/content/echart_documentation.py98def echart_from_pyecharts_demo():STRING
LOW…te/documentation/content/section_styling_appearance.py242def overwrite_tailwind_style_demo():STRING
LOW…te/documentation/content/section_styling_appearance.py269def other_vue_ui_frameworks_demo():STRING
LOWwebsite/documentation/content/tooltip_documentation.py34def tooltip_with_other_content():STRING
LOWtests/test_serving_files.py25def assert_video_file_streaming(path: str) -> None:CODE
LOWtests/test_serving_files.py38def test_media_files_can_be_streamed(screen: Screen):CODE
LOWtests/test_serving_files.py49def test_media_files_against_path_traversal(screen: Screen, secret_file):CODE
LOWtests/test_serving_files.py64def test_adding_single_media_file(screen: Screen):CODE
LOWtests/test_serving_files.py89def test_malicious_chunk_size_is_clamped(screen: Screen):CODE
LOWtests/test_serving_files.py107def test_get_from_static_files_dir(url_path: str, screen: Screen):CODE
LOWtests/test_serving_files.py135def test_adding_single_static_file(screen: Screen):CODE
LOWtests/test_serving_files.py149def test_auto_serving_file_from_image_source(screen: Screen):CODE
LOWtests/test_serving_files.py165def test_auto_serving_file_from_video_source(screen: Screen):STRING
LOWtests/test_serving_files.py176def test_mimetypes_of_static_files(screen: Screen):STRING
LOWtests/test_serving_files.py196def test_cache_control_header_of_static_files(screen: Screen):STRING
LOWtests/test_skip_link.py25def test_skip_link_skips_to_offscreen_content(screen: Screen):STRING
LOWtests/test_skip_link.py42def test_skip_link_with_custom_text(screen: Screen):STRING
LOWtests/test_skip_link.py51def test_skip_link_with_context_manager_replaces_text(screen: Screen):STRING
LOWtests/test_skip_link.py73def test_link_is_deleted_with_calling_context(screen: Screen):STRING
LOWtests/test_vbuild.py52def test_template_with_scoped_style():STRING
LOWtests/test_vbuild.py71def test_scoped_style_applies_to_root_element():STRING
LOWtests/test_vbuild.py106def test_scoped_style_with_at_rules():STRING
LOWtests/test_vbuild.py163def test_scoped_style_with_nested_at_rules():STRING
LOWtests/test_vbuild.py184def test_scoped_style_with_pseudo_elements():STRING
LOWtests/test_vbuild.py207def test_scoped_style_with_braces_in_content():STRING
LOWtests/test_vbuild.py226def test_scoped_style_ignores_comments():STRING
374 more matches not shown…
Unused Imports342 hits · 282 pts
SeverityFileLineSnippetContext
LOWwebsite/__init__.py1CODE
LOWwebsite/__init__.py1CODE
LOWwebsite/__init__.py1CODE
LOWwebsite/__init__.py1CODE
LOWwebsite/__init__.py1CODE
LOWwebsite/examples.py1CODE
LOWwebsite/documentation/__init__.py1CODE
LOWwebsite/documentation/__init__.py1CODE
LOWwebsite/documentation/__init__.py1CODE
LOWwebsite/documentation/__init__.py2CODE
LOWwebsite/documentation/__init__.py3CODE
LOWwebsite/documentation/__init__.py4CODE
LOWwebsite/documentation/__init__.py5CODE
LOWwebsite/documentation/__init__.py6CODE
LOWwebsite/documentation/__init__.py6CODE
LOWwebsite/documentation/__init__.py6CODE
LOWwebsite/documentation/content/section_pages_routing.py89CODE
LOWwebsite/documentation/content/__init__.py1CODE
LOWwebsite/documentation/content/__init__.py1CODE
LOWwebsite/documentation/content/__init__.py2CODE
LOW…te/documentation/content/section_styling_appearance.py270CODE
LOWwebsite/documentation/content/run_documentation.py76CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/documentation/content/doc/__init__.py1CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWwebsite/components/__init__.py3CODE
LOWtests/test_speculative_loading.py1CODE
LOWtests/test_user_simulation.py857CODE
LOWtests/test_json.py15CODE
LOWnicegui/element_filter.py1CODE
LOWnicegui/event.py1CODE
LOWnicegui/server.py1CODE
LOWnicegui/style.py9CODE
LOWnicegui/ui.py297CODE
LOWnicegui/ui.py298CODE
LOWnicegui/ui.py299CODE
LOWnicegui/ui.py300CODE
LOWnicegui/ui.py301CODE
LOWnicegui/ui.py302CODE
LOWnicegui/ui.py303CODE
LOWnicegui/ui.py304CODE
LOWnicegui/ui.py305CODE
282 more matches not shown…
Cross-Language Confusion38 hits · 221 pts
SeverityFileLineSnippetContext
HIGHwebsite/search.py55 if (e.key === '/' || (e.key === 'k' && (e.ctrlKey || e.metaKey))) {CODE
HIGHwebsite/documentation/content/navigate_documentation.py33 ui.button('Push URL', on_click=lambda: ui.navigate.history.push('/a'))STRING
HIGHwebsite/documentation/content/keyboard_documentation.py43 if (e.key === 'a' && (e.ctrlKey || e.metaKey) && e.action === 'keydown') {CODE
HIGH…/documentation/content/element_filter_documentation.py79 log.push(f'{time.strftime("%H:%M:%S")}')STRING
HIGHwebsite/documentation/content/log_documentation.py11 ui.button('Log time', on_click=lambda: log.push(datetime.now().strftime('%X.%f')[:-5]))CODE
HIGHwebsite/documentation/content/log_documentation.py35 self.element.push(msg)STRING
HIGHwebsite/documentation/content/log_documentation.py65 ui.button('Normal', on_click=lambda: log.push('Text'))STRING
HIGHwebsite/documentation/content/log_documentation.py66 ui.button('Debug', on_click=lambda: log.push('Debug', classes='text-grey'))STRING
HIGHwebsite/documentation/content/log_documentation.py67 ui.button('Info', on_click=lambda: log.push('Info', classes='text-blue'))STRING
HIGHwebsite/documentation/content/log_documentation.py68 ui.button('Warning', on_click=lambda: log.push('Warning', classes='text-orange'))STRING
HIGHwebsite/documentation/content/log_documentation.py69 ui.button('Error', on_click=lambda: log.push('Error', classes='text-red'))STRING
HIGH…bsite/documentation/content/line_plot_documentation.py19 line_plot.push([now], [[y1], [y2]], y_limits=(-1.5, 1.5))CODE
HIGHtests/test_skip_link.py13 return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&CODE
HIGHtests/test_skip_link.py13 return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&CODE
HIGHtests/test_skip_link.py14 rect.left >= 0 && rect.right <= (window.innerWidth || document.documentElement.clientWidth);CODE
HIGHtests/test_skip_link.py14 rect.left >= 0 && rect.right <= (window.innerWidth || document.documentElement.clientWidth);CODE
HIGHtests/test_navigate.py78 'window.open = (url, target) => window.__open_calls.push([url, target]);')CODE
HIGHtests/test_navigate.py87 ui.button('Push', on_click=lambda: ui.navigate.history.push('/");console.log("XSS");//'))CODE
HIGHtests/test_log.py12 log.push('A')CODE
HIGHtests/test_log.py13 log.push('B')CODE
HIGHtests/test_log.py14 log.push('C')CODE
HIGHtests/test_log.py15 log.push('D')CODE
HIGHtests/test_log.py32 log.push('A')CODE
HIGHtests/test_log.py33 log.push('B')CODE
HIGHtests/test_log.py34 log.push('C\nD')CODE
HIGHtests/test_log.py63 log.push('50%')CODE
HIGHtests/test_log.py64 ui.button('push', on_click=lambda: log.push('100%'))CODE
HIGHtests/test_log.py81 log.push('Log line', classes='text-green', style='margin: 2rem', props='my-prop=B')CODE
HIGHnicegui/native/native_mode.py96 if (e.dataTransfer && e.dataTransfer.types.indexOf("Files") >= 0) e.preventDefault();CODE
HIGHnicegui/testing/screen.py177 js = 'return arguments[0].naturalWidth > 0 && arguments[0].naturalHeight > 0'CODE
HIGHnicegui/testing/screen.py267 let lastId = window.nextMessageId || 0;CODE
HIGHnicegui/testing/screen.py270 const currentId = window.nextMessageId || 0;CODE
HIGHnicegui/testing/screen.py275 if (Date.now() - stableSince >= 100 || Date.now() >= deadline) {{CODE
HIGHnicegui/elements/skip_link.py57 if (el === null) return;CODE
HIGHnicegui/elements/aggrid/aggrid.py309 getElement({self.id}).api.{API_METHODS[method]}(node => rowData.push(node.data));CODE
HIGHexamples/pyserial/main.py19 log.push(line.decode())CODE
HIGHexamples/zeromq/main.py22 number_received.subscribe(lambda number: line_plot.push([datetime.now()], [[number]]))CODE
HIGHexamples/descope_auth/user.py87 token = await ui.run_javascript('return sessionToken && !sdk.isJwtExpired(sessionToken) ? sessionToken : null;')STRING
Cross-File Repetition27 hits · 135 pts
SeverityFileLineSnippetContext
HIGHwebsite/documentation/content/input_documentation.py0the `clearable` prop from [quasar](https://quasar.dev/) adds a button to the input that clears the text.STRING
HIGHwebsite/documentation/content/textarea_documentation.py0the `clearable` prop from [quasar](https://quasar.dev/) adds a button to the input that clears the text.STRING
HIGHwebsite/documentation/content/number_documentation.py0the `clearable` prop from [quasar](https://quasar.dev/) adds a button to the input that clears the text.STRING
HIGHnicegui/element_filter.py0apply, remove, toggle, or replace html classes. this allows modifying the look of the element or its layout using `tailwSTRING
HIGHnicegui/classes.py0apply, remove, toggle, or replace html classes. this allows modifying the look of the element or its layout using `tailwSTRING
HIGHnicegui/elements/query.py0apply, remove, toggle, or replace html classes. this allows modifying the look of the element or its layout using `tailwSTRING
HIGHnicegui/element_filter.py0apply, remove, or replace css definitions. removing or replacing styles can be helpful if the predefined style is not deSTRING
HIGHnicegui/style.py0apply, remove, or replace css definitions. removing or replacing styles can be helpful if the predefined style is not deSTRING
HIGHnicegui/elements/query.py0apply, remove, or replace css definitions. removing or replacing styles can be helpful if the predefined style is not deSTRING
HIGHnicegui/element_filter.py0add or remove props. this allows modifying the look of the element or its layout using `quasar <https://quasar.dev/>`_ pSTRING
HIGHnicegui/props.py0add or remove props. this allows modifying the look of the element or its layout using `quasar <https://quasar.dev/>`_ pSTRING
HIGHnicegui/elements/query.py0add or remove props. this allows modifying the look of the element or its layout using `quasar <https://quasar.dev/>`_ pSTRING
HIGHnicegui/elements/tree.py0add a callback to be invoked when the selection state changes.STRING
HIGHnicegui/elements/table.py0add a callback to be invoked when the selection state changes.STRING
HIGHnicegui/elements/mixins/selectable_element.py0add a callback to be invoked when the selection state changes.STRING
HIGHnicegui/elements/mixins/icon_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/value_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/filter_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/source_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/label_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/text_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/content_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/visibility.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/disableable_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/selectable_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/name_element.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
HIGHnicegui/elements/mixins/color_elements.py0bind the text color of this element to the target object's target_name property. the binding works both ways, from this STRING
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALtests/test_reconnect.py35 screen.selenium.execute_script('window.socket.io.engine.transport.onClose("transport close");') # drop connectionCODE
CRITICALtests/test_reconnect.py53 screen.selenium.execute_script('window.socket.io.engine.transport.onClose("transport close");')CODE
CRITICALnicegui/elements/drawer.py57 page_container_index = self.client.layout.default_slot.children.index(self.client.page_container)CODE
CRITICALnicegui/static/unocss/preset-mini.global.js10`?i=!0:u!=="\r"&&i&&(i=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(t))}a+=1}a=l.end,l=l.next}return CODE
CRITICALnicegui/static/unocss/preset-wind4.global.js10`?i=!0:f!=="\r"&&i&&(i=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(t))}s+=1}s=c.end,c=c.next}return CODE
CRITICALnicegui/static/unocss/preset-wind3.global.js10`?i=!0:u!=="\r"&&i&&(i=!1,s===l.start||(this._splitChunk(l,s),l=l.next),l.prependRight(e))}s+=1}s=l.end,l=l.next}return CODE
Excessive Try-Catch Wrapping50 hits · 54 pts
SeverityFileLineSnippetContext
LOWdeploy.py66 except Exception:CODE
LOWwebsite/github_stars.py21 except Exception:CODE
MEDIUMwebsite/github_stars.py14def _fetch() -> None:CODE
LOWwebsite/documentation/content/section_action_events.py262 except Exception as e: # HIDESTRING
LOWwebsite/documentation/content/event_documentation.py49 except Exception as e:STRING
LOWwebsite/documentation/content/log_documentation.py36 except Exception:STRING
LOWtests/test_event.py112 except Exception:CODE
MEDIUMtests/test_event.py109def click():CODE
LOWnicegui/llms.md1288 except Exception as e:CODE
MEDIUMnicegui/llms.md1285def safe_task():CODE
LOWnicegui/run.py56 except Exception as e:CODE
LOWnicegui/event.py142 except Exception as e:CODE
LOWnicegui/background_tasks.py155 except Exception as e:CODE
LOWnicegui/background_tasks.py175 except Exception:CODE
LOWnicegui/events.py477 except Exception as e:CODE
LOWnicegui/events.py486 except Exception as e:CODE
LOWnicegui/timer.py101 except Exception as e:CODE
LOWnicegui/timer.py114 except Exception as e:CODE
LOWnicegui/client.py424 except Exception as e:CODE
LOWnicegui/client.py497 except Exception:CODE
LOWnicegui/page.py136 except Exception as e:CODE
LOWnicegui/page.py172 except Exception as e:CODE
LOWnicegui/page.py180 except Exception as e:CODE
LOWnicegui/slot.py74 except Exception:CODE
LOWnicegui/core.py55 except Exception:CODE
LOWnicegui/air.py114 except Exception:CODE
LOWnicegui/air.py226 except Exception:CODE
LOWnicegui/outbox.py130 except Exception as e:CODE
LOWnicegui/outbox.py134 except Exception as e:CODE
LOWnicegui/app/app.py110 except Exception as e:CODE
LOWnicegui/native/native.py151 except Exception:CODE
LOWnicegui/native/native_mode.py125 except Exception:STRING
LOWnicegui/native/native_mode.py155 except Exception:STRING
LOWnicegui/native/native_mode.py213 except Exception: # pylint: disable=broad-exceptSTRING
LOWnicegui/testing/screen.py63 except Exception as e:CODE
LOWnicegui/testing/screen.py93 except Exception as e:CODE
LOWnicegui/testing/screen_plugin.py90 except Exception:CODE
LOWnicegui/elements/sub_pages.py112 except Exception as e:CODE
LOWnicegui/elements/sub_pages.py124 except Exception as e:CODE
LOWnicegui/persistence/redis_persistent_dict.py45 except Exception:CODE
LOWnicegui/persistence/redis_persistent_dict.py55 except Exception:CODE
LOWnicegui/persistence/redis_persistent_dict.py72 except Exception:CODE
MEDIUMnicegui/persistence/redis_persistent_dict.py59def listen():CODE
LOWnicegui/persistence/file_persistent_dict.py27 except Exception:CODE
LOWnicegui/persistence/file_persistent_dict.py37 except Exception:CODE
MEDIUMnicegui/persistence/file_persistent_dict.py19def initialize(self) -> None:CODE
MEDIUMnicegui/persistence/file_persistent_dict.py30def initialize_sync(self) -> None:CODE
LOWnicegui/helpers/network.py14 except Exception:CODE
LOWexamples/google_one_tap_auth/main.py62 except Exception:STRING
LOWexamples/google_oauth2/main.py65 except Exception:CODE
Modern Structural Boilerplate54 hits · 52 pts
SeverityFileLineSnippetContext
LOWmain.py83 def update_tree() -> None:CODE
LOWwebsite/__init__.py3__all__ = [CODE
LOWwebsite/search.py89 def _update_highlight(self) -> None:STRING
LOWwebsite/documentation/__init__.py8__all__ = [CODE
LOWwebsite/documentation/content/__init__.py4__all__ = [CODE
LOW…bsite/documentation/content/line_plot_documentation.py14 def update_line_plot() -> None:CODE
LOW…te/documentation/content/context_menu_documentation.py21def update_context_menu() -> None:STRING
LOW…te/documentation/content/context_menu_documentation.py24 def update_menu(e: events.MouseEventArguments) -> None:STRING
LOWwebsite/documentation/content/query_documentation.py8 def set_background(color: str) -> None:CODE
LOWwebsite/documentation/content/doc/__init__.py16__all__ = [CODE
LOWwebsite/components/__init__.py16__all__ = [CODE
LOWnicegui/ui.py152__all__ = [CODE
LOWnicegui/__init__.py12__all__ = [CODE
LOWnicegui/props.py67 def set_optional(self, key: str, value: Any) -> None:STRING
LOWnicegui/props.py74 def set_bool(self, key: str, value: Any) -> None:STRING
LOWnicegui/binding.py49def _set_attribute(obj: object | Mapping, name: tuple[str, ...], value: Any) -> None:CODE
LOWnicegui/outbox.py58 def _set_enqueue_event(self) -> None:CODE
LOWnicegui/app/__init__.py4__all__ = [CODE
LOWnicegui/native/__init__.py5__all__ = [CODE
LOWnicegui/native/native.py47 def set_always_on_top(self, on_top: bool) -> None:CODE
LOWnicegui/native/native.py68 def set_title(self, title: str) -> None:CODE
LOWnicegui/native/native.py86 def set_window_size(self, width: int, height: int) -> None:CODE
LOWnicegui/testing/__init__.py13__all__ = [CODE
LOWnicegui/elements/interactive_image.py105 def _set_props(self, source: str | Path | PIL_Image) -> None:CODE
LOWnicegui/elements/interactive_image.py162 def _set_props(self, source: str | Path | PIL_Image) -> None:CODE
LOWnicegui/elements/tree.py63 def update_prop(name: str, value: Any) -> None:CODE
LOWnicegui/elements/code.py48 def _update_copy_button(self) -> None:CODE
LOWnicegui/elements/sub_pages.py148 def _set_match(self, match: RouteMatch | None) -> None:CODE
LOWnicegui/elements/table.py437 def update_rows(self, rows: list[dict], *, clear_selection: bool = True) -> None:STRING
LOWnicegui/elements/color_input.py62 def _update_preview(self) -> None:CODE
LOWnicegui/elements/image.py35 def _set_props(self, source: str | Path | PIL_Image) -> None:CODE
LOWnicegui/elements/choice_element.py40 def _update_values_and_labels(self) -> None:CODE
LOWnicegui/elements/choice_element.py44 def _update_options(self) -> None:CODE
LOWnicegui/elements/codemirror/__init__.py6__all__ = ['CodeMirror']CODE
LOWnicegui/elements/codemirror/codemirror.py167 def _update_codepoints(self) -> None:CODE
LOWnicegui/elements/xterm/__init__.py6__all__ = ['Xterm']CODE
LOWnicegui/elements/json_editor/__init__.py6__all__ = ['JsonEditor']CODE
LOWnicegui/elements/echart/__init__.py6__all__ = ['EChart']CODE
LOWnicegui/elements/mixins/source_element.py109 def _set_props(self, source: Any) -> None:CODE
LOWnicegui/elements/anywidget/__init__.py3__all__ = ['AnyWidget']CODE
LOWnicegui/elements/plotly/__init__.py6__all__ = ['Plotly']CODE
LOWnicegui/elements/leaflet/__init__.py6__all__ = ['Leaflet']CODE
LOWnicegui/elements/aggrid/aggrid.py326 def set_module_source(url: str) -> None:STRING
LOWnicegui/elements/aggrid/__init__.py6__all__ = ['AgGrid']CODE
LOWnicegui/elements/mermaid/__init__.py6__all__ = ['Mermaid']CODE
LOWnicegui/elements/joystick/__init__.py6__all__ = ['Joystick']CODE
LOWnicegui/elements/scene/__init__.py12__all__ = ['Object3D', 'Scene', 'SceneCamera', 'SceneObject', 'SceneView']CODE
LOWnicegui/elements/sortable/__init__.py3__all__ = ['Sortable']CODE
LOWnicegui/json/__init__.py17__all__ = [CODE
LOWnicegui/persistence/__init__.py6__all__ = [CODE
LOWnicegui/functions/refreshable.py170 def set_value(new_value: Any) -> None:CODE
LOWnicegui/helpers/__init__.py17__all__ = [CODE
LOWexamples/ros2/ros2_ws/src/simulator/simulator/node.py24 def update_pose(self) -> None:CODE
LOWexamples/local_file_picker/local_file_picker.py50 def update_grid(self) -> None:CODE
Deep Nesting50 hits · 50 pts
SeverityFileLineSnippetContext
LOWwebsite/header.py67CODE
LOWwebsite/search.py61CODE
LOWwebsite/search.py62CODE
LOWwebsite/documentation/rendering.py10CODE
LOWwebsite/documentation/reference.py20CODE
LOWwebsite/documentation/reference.py58CODE
LOWwebsite/documentation/windows.py16CODE
LOWwebsite/documentation/windows.py43CODE
LOWwebsite/documentation/content/section_foundations.py151CODE
LOWwebsite/documentation/content/menu_documentation.py35CODE
LOWwebsite/documentation/content/keyboard_documentation.py7CODE
LOWwebsite/documentation/content/keyboard_documentation.py10CODE
LOWwebsite/documentation/content/stepper_documentation.py28CODE
LOWwebsite/documentation/content/stepper_documentation.py29CODE
LOW…site/documentation/content/slide_item_documentation.py20CODE
LOWwebsite/documentation/content/date_documentation.py25CODE
LOWwebsite/documentation/content/sortable_documentation.py30CODE
LOWwebsite/documentation/content/time_documentation.py25CODE
LOW…te/documentation/content/section_styling_appearance.py43CODE
LOW…te/documentation/content/section_styling_appearance.py56CODE
LOWwebsite/documentation/content/tabs_documentation.py64CODE
LOWwebsite/components/sponsors_section.py14CODE
LOWwebsite/components/footer_section.py9CODE
LOWwebsite/components/examples_section.py10CODE
LOWwebsite/components/demos_section.py11CODE
LOWtests/test_keep_alive.py92CODE
LOWtests/test_keep_alive.py94CODE
LOWtests/test_select.py112CODE
LOWtests/test_endpoint_docs.py9CODE
LOWnicegui/element_filter.py106CODE
LOWnicegui/timer.py84CODE
LOWnicegui/page_arguments.py68CODE
LOWnicegui/page.py123CODE
LOWnicegui/page.py139CODE
LOWnicegui/outbox.py81CODE
LOWnicegui/native/native_mode.py116CODE
LOWnicegui/native/native_mode.py128CODE
LOWnicegui/testing/screen.py138CODE
LOWnicegui/testing/screen.py209CODE
LOWnicegui/testing/user_interaction.py31CODE
LOWnicegui/testing/user_interaction.py58CODE
LOWnicegui/testing/user_interaction.py77CODE
LOWnicegui/testing/user_simulation.py18CODE
LOWnicegui/testing/screen_plugin.py101CODE
LOWnicegui/testing/general.py34CODE
LOWnicegui/elements/select.py95CODE
LOWnicegui/elements/select.py148CODE
LOWnicegui/elements/echart/echart.py111CODE
LOWexamples/ros2/ros2_ws/src/gui/gui/node.py15CODE
LOWexamples/ros2/ros2_ws/src/gui/gui/node.py24CODE
AI Structural Patterns22 hits · 22 pts
SeverityFileLineSnippetContext
LOWnicegui/page.py25CODE
LOWnicegui/ui_run.py50CODE
LOWnicegui/ui_run_with.py22CODE
LOWnicegui/app/app.py332CODE
LOWnicegui/elements/timeline.py34CODE
LOWnicegui/elements/upload.py21CODE
LOWnicegui/elements/skeleton.py10CODE
LOWnicegui/elements/chip.py17CODE
LOWnicegui/elements/notification.py32CODE
LOWnicegui/elements/rating.py10CODE
LOWnicegui/elements/number.py14CODE
LOWnicegui/elements/chat_message.py13CODE
LOWnicegui/elements/button_dropdown.py15CODE
LOWnicegui/elements/input.py18CODE
LOWnicegui/elements/knob.py12CODE
LOWnicegui/elements/table.py30CODE
LOWnicegui/elements/select.py17CODE
LOWnicegui/elements/colors.py9CODE
LOWnicegui/elements/codemirror/codemirror.py24CODE
LOWnicegui/elements/scene/scene.py63CODE
LOWnicegui/elements/scene/scene.py231CODE
LOWnicegui/elements/scene/scene_view.py103CODE
Fake / Example Data22 hits · 20 pts
SeverityFileLineSnippetContext
LOWwebsite/documentation/content/notify_documentation.py27 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. \n'STRING
LOWwebsite/documentation/content/notify_documentation.py27 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. \n'STRING
LOWwebsite/documentation/content/card_documentation.py11 ui.label('Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...')CODE
LOWwebsite/documentation/content/card_documentation.py11 ui.label('Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...')CODE
LOW…te/documentation/content/section_binding_properties.py50 i = ui.input(value='Lorem ipsum')STRING
LOWwebsite/documentation/content/link_documentation.py20 'A: Lorem ipsum dolor sit amet, consectetur adipiscing elit, 'STRING
LOWwebsite/documentation/content/link_documentation.py20 'A: Lorem ipsum dolor sit amet, consectetur adipiscing elit, 'STRING
LOWtests/test_input.py15 ui.input('Your name', value='John Doe')CODE
LOWtests/test_input.py21 assert element.get_attribute('value') == 'John Doe'CODE
LOWtests/test_sub_pages_match_path.py104 assert ui.sub_pages._match_path('/user/{id}', '/user/user@example.com') == {'id': 'user@example.com'}CODE
LOWnicegui/element_filter.py123 element.props.get('placeholder'),CODE
LOWnicegui/elements/number.py55 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/elements/time_input.py34 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/elements/date_input.py37 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/elements/input.py63 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/elements/editor.py29 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/elements/color_input.py42 self._props.set_optional('placeholder', placeholder)CODE
LOWnicegui/static/tailwindcss.min.js10`,r){o+=c.length;let m=o;o+=2+a.value.length+2;let g=o;a.dst=[e,m,g],o+=1}}else if(a.kind==="context"||a.kind==="at-rootCODE
LOWnicegui/static/tailwindcss.min.js13`);console.warn(k)}}),i.value=Z(s)}),o.utilities.functional(r.slice(0,-2),i=>{let s=structuredClone(t),a=i.value,d=i.modCODE
LOWnicegui/static/unocss/preset-mini.global.js10`?i=!0:u!=="\r"&&i&&(i=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(t))}a+=1}a=l.end,l=l.next}return CODE
LOWnicegui/static/unocss/preset-wind4.global.js10`?i=!0:f!=="\r"&&i&&(i=!1,s===c.start||(this._splitChunk(c,s),c=c.next),c.prependRight(t))}s+=1}s=c.end,c=c.next}return CODE
LOWnicegui/static/unocss/preset-wind3.global.js10`?i=!0:u!=="\r"&&i&&(i=!1,s===l.start||(this._splitChunk(l,s),l=l.next),l.prependRight(e))}s+=1}s=l.end,l=l.next}return CODE
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMnicegui/elements/mermaid/package-lock.json1817 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMnicegui/static/quasar.umd.prod.js7(()=>{var sv=Object.defineProperty;var jr=(e,t)=>{for(var o in t)sv(e,o,{get:t[o],enumerable:!0})};var{h:i,ref:T,computeCODE
MEDIUMnicegui/static/quasar.umd.prod.js7(()=>{var sv=Object.defineProperty;var jr=(e,t)=>{for(var o in t)sv(e,o,{get:t[o],enumerable:!0})};var{h:i,ref:T,computeCODE
MEDIUMexamples/fullcalendar/lib/index.global.min.js6var FullCalendar=function(e){"use strict";var t,n,r,i,s,o,a,l,c,d={},u=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|iCODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocker-entrypoint.sh7# Check if the provided PUID and PGID are non-empty, numeric values; otherwise, assign default values.COMMENT
LOWdocker-entrypoint.sh14# Check if the specified group with PGID exists, if not, create it.COMMENT
LOW.github/workflows/_verify.yml16 # Check if the container is still runningCOMMENT
LOW.github/workflows/_verify.yml23 # Check if the "Error" string is present in the container outputCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/progress/main.py28 # Create a queue to communicate with the heavy computation processCOMMENT
MEDIUMexamples/progress/main.py33 # Create the UICOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUM…ite/documentation/content/page_layout_documentation.py11 [`ui.right_drawer`](page_layout#reference_for_ui_right_drawer) you can add additional layout elements to a page.CODE
MEDIUM…ite/documentation/content/page_layout_documentation.py22 With [`ui.page_scroller`](page_layout#reference_for_ui_page_scroller) you can add a scroll-to-top button to the pageCODE
LOWexamples/fullcalendar/lib/index.global.min.js6var FullCalendar=function(e){"use strict";var t,n,r,i,s,o,a,l,c,d={},u=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|iCODE
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippetContext
LOWwebsite/documentation/content/page_documentation.py101 See our [modularization example](https://github.com/zauberzeug/nicegui/blob/main/examples/modularization/api_router_COMMENT
LOWwebsite/documentation/content/page_documentation.py121 #COMMENT
LOW…bsite/documentation/content/sub_pages_documentation.py321 # ui.sub_pages({COMMENT
LOWwebsite/documentation/content/run_documentation.py81 #COMMENT
LOW.claude/skills/release-notes/release-notes.sh1#!/usr/bin/env bashCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW.claude/skills/release-notes/release-notes.sh7# Usage:COMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWexamples/ros2/ros2_ws/src/gui/gui/node.py68 # NOTE: This function is defined as the ROS entry point in setup.py, but it's empty to enable NiceGUI auto-reloadingCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_awaitable_response.py13 def do_something() -> AwaitableResponse:CODE