AI Slop Code RIsk Monitor

zauberzeug/nicegui

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

13.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for zauberzeug/nicegui, a Python project with 16,279 GitHub stars. SynthScan examined 128,957 lines of code across 1029 source files, recording 1336 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 13.3 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

13.3
Adjusted Signal
13.3
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
16.3K
Stars
Python
Language
129.0K
Lines of Code
1.0K
Files
1.3K
Pattern Hits
2026-10-12
Scan Date
0.10
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 22.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 717 finding(s).

Hallucinated Dependency & Supply Chain Risk 23.8/100 · LOW

Are imports declared and package/API names verified? 461 finding(s).

Agent Over-Engineering Ratio 30.1/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 797 finding(s).

PR Review Velocity Impact 52.3/100 · HIGH

Which changes need focused human review? 1336 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 8HIGH 95MEDIUM 13LOW 1220

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1336 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers617 hits · 554 pts
SeverityFileLineSnippetContext
LOWmain.py173def _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.py253 # 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.py292def aggrid_with_dynamic_row_height():STRING
LOWwebsite/documentation/content/aggrid_documentation.py337def aggrid_filter_return_values():STRING
LOWwebsite/documentation/content/aggrid_documentation.py345def aggrid_access_api_via_javascript():STRING
LOWwebsite/documentation/content/aggrid_documentation.py364def 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.py483def _documentation_index_table():STRING
LOWwebsite/documentation/content/user_documentation.py170def 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/scene_documentation.py360def custom_object_javascript_module() -> None:STRING
LOWwebsite/documentation/content/scene_documentation.py381def materials_for_composite_objects() -> None:STRING
LOWwebsite/documentation/content/tooltip_documentation.py34def tooltip_with_other_content():STRING
LOWtests/test_serving_files.py31def assert_video_file_streaming(path: str) -> None:CODE
LOWtests/test_serving_files.py44def test_media_files_can_be_streamed(screen: Screen):CODE
LOWtests/test_serving_files.py55def test_media_files_against_path_traversal(screen: Screen, secret_file):CODE
LOWtests/test_serving_files.py70def test_adding_single_media_file(screen: Screen):CODE
LOWtests/test_serving_files.py95def test_malicious_chunk_size_is_clamped(screen: Screen):CODE
LOWtests/test_serving_files.py113def test_get_from_static_files_dir(url_path: str, screen: Screen):CODE
LOWtests/test_serving_files.py141def test_adding_single_static_file(screen: Screen):CODE
LOWtests/test_serving_files.py156def test_single_use_file_is_served_exactly_once(screen: Screen, secret_file: Path, add_file: Callable[..., str]):CODE
LOWtests/test_serving_files.py180def test_single_use_media_file_partial_content_is_not_cacheable(screen: Screen, secret_file: Path):CODE
LOWtests/test_serving_files.py194def test_auto_serving_file_from_image_source(screen: Screen):CODE
LOWtests/test_serving_files.py210def test_auto_serving_file_from_video_source(screen: Screen):STRING
LOWtests/test_serving_files.py221def test_mimetypes_of_static_files(screen: Screen):STRING
LOWtests/test_serving_files.py241def test_cache_control_header_of_static_files(screen: Screen):STRING
LOWtests/test_serving_files.py264def test_streamed_media_file_handle_is_released_on_teardown(monkeypatch: pytest.MonkeyPatch):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
557 more matches not shown…
Unused Imports384 hits · 323 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.py868CODE
LOWtests/test_json.py15CODE
LOWnicegui/element_filter.py1CODE
LOWnicegui/event.py1CODE
LOWnicegui/server.py1CODE
LOWnicegui/style.py9CODE
LOWnicegui/ui.py298CODE
LOWnicegui/ui.py299CODE
LOWnicegui/ui.py300CODE
LOWnicegui/ui.py301CODE
LOWnicegui/ui.py302CODE
LOWnicegui/ui.py303CODE
LOWnicegui/ui.py304CODE
LOWnicegui/ui.py305CODE
LOWnicegui/ui.py306CODE
324 more matches not shown…
Cross-Language Confusion47 hits · 281 pts
SeverityFileLineSnippetContext
HIGHwebsite/search.py56 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
HIGH⚡website/documentation/content/log_documentation.py65 ui.button('Normal', on_click=lambda: log.push('Text'))STRING
HIGH⚡website/documentation/content/log_documentation.py66 ui.button('Debug', on_click=lambda: log.push('Debug', classes='text-grey'))STRING
HIGH⚡website/documentation/content/log_documentation.py67 ui.button('Info', on_click=lambda: log.push('Info', classes='text-blue'))STRING
HIGH⚡website/documentation/content/log_documentation.py68 ui.button('Warning', on_click=lambda: log.push('Warning', classes='text-orange'))STRING
HIGH⚡website/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
HIGH⚡tests/test_skip_link.py13 return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&CODE
HIGH⚡tests/test_skip_link.py13 return rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&CODE
HIGH⚡tests/test_skip_link.py14 rect.left >= 0 && rect.right <= (window.innerWidth || document.documentElement.clientWidth);CODE
HIGH⚡tests/test_skip_link.py14 rect.left >= 0 && rect.right <= (window.innerWidth || document.documentElement.clientWidth);CODE
HIGHtests/test_codemirror_decorations.py67 'return !!(w && w.querySelector("b"));'CODE
HIGHtests/test_codemirror_decorations.py407 f'const s = document.querySelector(".cm-content span.{css_class}"); return s ? s.textContent : null;')CODE
HIGHtests/test_scene_objects.py34 screen.wait_for_js(f'(() => {{ const o = {lookup}; return o ? ({expression}) : null; }})()', expected, timeout=5.0)CODE
HIGH⚡tests/test_navigate.py78 'window.open = (url, target) => window.__open_calls.push([url, target]);')CODE
HIGH⚡tests/test_navigate.py87 ui.button('Push', on_click=lambda: ui.navigate.history.push('/");console.log("XSS");//'))CODE
HIGH⚡tests/test_line_plot.py9 plot.push([], [[]])CODE
HIGH⚡tests/test_line_plot.py10 plot.push([1], [[]])CODE
HIGH⚡tests/test_log.py12 log.push('A')CODE
HIGH⚡tests/test_log.py13 log.push('B')CODE
HIGH⚡tests/test_log.py14 log.push('C')CODE
HIGH⚡tests/test_log.py15 log.push('D')CODE
HIGH⚡tests/test_log.py32 log.push('A')CODE
HIGH⚡tests/test_log.py33 log.push('B')CODE
HIGH⚡tests/test_log.py34 log.push('C\nD')CODE
HIGH⚡tests/test_log.py63 log.push('50%')CODE
HIGH⚡tests/test_log.py64 ui.button('push', on_click=lambda: log.push('100%'))CODE
HIGH⚡tests/test_log.py81 log.push('Log line', classes='text-green', style='margin: 2rem', props='my-prop=B')CODE
HIGH⚡tests/test_scene.py287 child_geometry: child ? child.geometry.type : null,CODE
HIGH⚡tests/test_scene.py288 edge_count: (child && child.geometry.attributes.position) ? child.geometry.attributes.position.count : 0,CODE
HIGH⚡tests/test_scene.py289 child_color: (child && child.material) ? child.material.color.getHexString() : null,CODE
HIGH⚡tests/test_scene.py289 child_color: (child && child.material) ? child.material.color.getHexString() : null,CODE
HIGHnicegui/native/native_mode.py96 if (e.dataTransfer && e.dataTransfer.types.indexOf("Files") >= 0) e.preventDefault();CODE
HIGHnicegui/testing/screen.py200 js = 'return arguments[0].naturalWidth > 0 && arguments[0].naturalHeight > 0'CODE
HIGH⚡nicegui/testing/screen.py290 let lastId = window.nextMessageId || 0;CODE
HIGH⚡nicegui/testing/screen.py293 const currentId = window.nextMessageId || 0;CODE
HIGH⚡nicegui/testing/screen.py298 if (Date.now() - stableSince >= 100 || Date.now() >= deadline) {{CODE
HIGHnicegui/elements/skip_link.py57 if (el === null) return;CODE
HIGHnicegui/elements/aggrid/aggrid.py314 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 Repetition30 hits · 150 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
HIGHnicegui/elements/leaflet/leaflet.py0wait until the scene is initialized. *updated in version 3.17.0: awaiting scene view initialization cancels the awaitingSTRING
HIGHnicegui/elements/scene/scene.py0wait until the scene is initialized. *updated in version 3.17.0: awaiting scene view initialization cancels the awaitingSTRING
HIGHnicegui/elements/scene/scene_view.py0wait until the scene is initialized. *updated in version 3.17.0: awaiting scene view initialization cancels the awaitingSTRING
Empty Error Handlers18 hits · 90 pts
SeverityFileLineSnippetContext
HIGH…te/documentation/content/section_styling_appearance.py71except ValueError:CODE
HIGH…te/documentation/content/section_styling_appearance.py85except ValueError:CODE
HIGH…te/documentation/content/section_styling_appearance.py94except ValueError:CODE
HIGHtests/test_json.py16except ImportError:CODE
HIGHnicegui/run.py123except asyncio.CancelledError:CODE
HIGHnicegui/background_tasks.py219except asyncio.CancelledError:CODE
HIGHnicegui/optional_features.py31except (ModuleNotFoundError, ValueError):CODE
HIGHnicegui/page.py131except asyncio.CancelledError:CODE
HIGHnicegui/native/native_mode.py90except OSError:CODE
HIGHnicegui/testing/screen.py168except JavascriptException:CODE
HIGHnicegui/testing/screen.py191except StaleElementReferenceException:CODE
HIGHnicegui/testing/screen.py149except StaleElementReferenceException:CODE
HIGHnicegui/persistence/redis_persistent_dict.py83except asyncio.CancelledError:CODE
HIGHexamples/xterm/main.py39except OSError:CODE
HIGHexamples/xterm/main.py57except ChildProcessError:CODE
HIGHexamples/threaded_nicegui/main.py39except (EOFError, KeyboardInterrupt):CODE
HIGHexamples/ros2/ros2_ws/src/gui/gui/node.py77except ExternalShutdownException:CODE
HIGHexamples/infinite_scroll/main.py13except TimeoutError:CODE
Hallucination Indicators8 hits · 75 pts
SeverityFileLineSnippetContext
CRITICALmain.py168 base_path = ui.context.client.request.url.path.removeprefix(f'/{language}') or '/'STRING
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
CRITICALtests/test_reconnect.py72 '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
Modern Structural Boilerplate60 hits · 57 pts
SeverityFileLineSnippetContext
LOWmain.py127 def update_tree() -> None:CODE
LOWwebsite/__init__.py3__all__ = [CODE
LOWwebsite/search.py90 def _update_highlight(self) -> None:STRING
LOWwebsite/i18n.py26def set_language(language: str) -> None:CODE
LOWwebsite/documentation/__init__.py8__all__ = [CODE
LOWwebsite/documentation/content/__init__.py4__all__ = [CODE
LOWwebsite/documentation/content/scene_documentation.py344 def update_topology(self, p: int, q: int) -> None:STRING
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
LOWtests/test_scene_custom_types.py17 def set_value(self, value: int) -> None: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.py50def _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.py46 def set_always_on_top(self, on_top: bool) -> None:CODE
LOWnicegui/native/native.py67 def set_title(self, title: str) -> None:CODE
LOWnicegui/native/native.py85 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.py135 def _set_match(self, match: RouteMatch | None) -> None:CODE
LOWnicegui/elements/table.py438 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
LOW⚡nicegui/elements/choice_element.py41 def _update_values_and_labels(self) -> None:CODE
LOW⚡nicegui/elements/choice_element.py45 def _update_options(self) -> None:CODE
LOWnicegui/elements/codemirror/line_anchors.py83 def _update_anchor_mirror(self, e: GenericEventArguments) -> None:CODE
LOWnicegui/elements/codemirror/__init__.py6__all__ = ['CodeMirror']CODE
LOWnicegui/elements/codemirror/codemirror.py224 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.py331 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/scene_objects.py23__all__ = [CODE
LOWnicegui/elements/scene/__init__.py12__all__ = ['Object3D', 'Scene', 'SceneCamera', 'SceneObject', 'SceneView']CODE
LOWnicegui/elements/scene/objects/__init__.py20__all__ = [CODE
LOWnicegui/elements/sortable/__init__.py6__all__ = ['Sortable']CODE
LOWnicegui/json/__init__.py17__all__ = [CODE
LOWnicegui/persistence/__init__.py6__all__ = [CODE
LOWnicegui/functions/refreshable.py166 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 Nesting56 hits · 56 pts
SeverityFileLineSnippetContext
LOWwebsite/header.py60CODE
LOWwebsite/search.py62CODE
LOWwebsite/search.py63CODE
LOWwebsite/documentation/rendering.py10CODE
LOWwebsite/documentation/reference.py20CODE
LOWwebsite/documentation/reference.py58CODE
LOWwebsite/documentation/windows.py17CODE
LOWwebsite/documentation/windows.py44CODE
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.py12CODE
LOWwebsite/components/footer_section.py10CODE
LOWwebsite/components/examples_section.py11CODE
LOWwebsite/components/demos_section.py12CODE
LOWtests/test_keep_alive.py92CODE
LOWtests/test_keep_alive.py94CODE
LOWtests/test_select.py112CODE
LOWtests/test_storage.py513CODE
LOWtests/test_endpoint_docs.py9CODE
LOWnicegui/timer.py84CODE
LOWnicegui/client.py497CODE
LOWnicegui/page_arguments.py68CODE
LOWnicegui/page.py123CODE
LOWnicegui/page.py139CODE
LOWnicegui/outbox.py81CODE
LOWnicegui/dependencies.py127CODE
LOWnicegui/native/native_mode.py116CODE
LOWnicegui/native/native_mode.py128CODE
LOWnicegui/testing/screen.py139CODE
LOWnicegui/testing/screen.py183CODE
LOWnicegui/testing/screen.py232CODE
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.py35CODE
LOWnicegui/elements/select.py94CODE
LOWnicegui/elements/select.py147CODE
LOWnicegui/elements/line_plot.py47CODE
LOWnicegui/elements/echart/echart.py111CODE
LOWnicegui/persistence/redis_persistent_dict.py68CODE
LOWnicegui/persistence/redis_persistent_dict.py69CODE
LOWexamples/ros2/ros2_ws/src/gui/gui/node.py15CODE
LOWexamples/ros2/ros2_ws/src/gui/gui/node.py24CODE
Excessive Try-Catch Wrapping50 hits · 52 pts
SeverityFileLineSnippetContext
LOWdeploy.py60 except Exception:CODE
LOWwebsite/documentation/content/section_action_events.py270 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.py171 except Exception:CODE
MEDIUMtests/test_event.py168def click():CODE
LOWnicegui/run.py109 except Exception as e:CODE
LOWnicegui/event.py166 except Exception as e:CODE
LOWnicegui/background_tasks.py204 except Exception as e:CODE
LOWnicegui/background_tasks.py221 except Exception as e:CODE
LOWnicegui/background_tasks.py241 except Exception:CODE
LOWnicegui/events.py505 except Exception as e:CODE
LOWnicegui/timer.py101 except Exception as e:CODE
LOWnicegui/timer.py114 except Exception as e:CODE
LOWnicegui/client.py479 except Exception as e:CODE
LOWnicegui/client.py509 except Exception: # one failing handler must not prevent the others from runningCODE
LOWnicegui/client.py561 except Exception:CODE
LOWnicegui/page.py136 except Exception as e:CODE
LOWnicegui/page.py179 except Exception as e:CODE
LOWnicegui/page.py187 except Exception as e:CODE
LOWnicegui/slot.py74 except Exception:CODE
LOWnicegui/core.py55 except Exception:CODE
LOWnicegui/element.py143 except Exception:CODE
LOWnicegui/air.py118 except Exception:CODE
LOWnicegui/air.py234 except Exception:CODE
LOWnicegui/air.py252 except Exception:CODE
LOWnicegui/outbox.py130 except Exception as e:CODE
LOWnicegui/outbox.py134 except Exception as e:CODE
LOWnicegui/app/app.py115 except Exception as e:CODE
LOWnicegui/app/app.py192 except Exception: # one failing handler must not prevent the others from runningCODE
LOWnicegui/native/native.py150 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.py64 except Exception as e:CODE
LOWnicegui/testing/screen.py94 except Exception as e:CODE
LOWnicegui/testing/screen_plugin.py90 except Exception:CODE
LOWnicegui/elements/sub_pages.py113 except Exception as e:CODE
LOW⚡nicegui/persistence/redis_persistent_dict.py46 except Exception:CODE
LOW⚡nicegui/persistence/redis_persistent_dict.py55 except Exception:CODE
LOW⚡nicegui/persistence/redis_persistent_dict.py65 except Exception:CODE
LOWnicegui/persistence/redis_persistent_dict.py85 except Exception:CODE
MEDIUMnicegui/persistence/redis_persistent_dict.py69def listen():CODE
LOWnicegui/persistence/file_persistent_dict.py28 except Exception:CODE
LOWnicegui/persistence/file_persistent_dict.py38 except Exception:CODE
MEDIUMnicegui/persistence/file_persistent_dict.py20def initialize(self) -> None:CODE
MEDIUMnicegui/persistence/file_persistent_dict.py31def 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
AI Structural Patterns22 hits · 22 pts
SeverityFileLineSnippetContext
LOWnicegui/page.py25CODE
LOWnicegui/ui_run.py50CODE
LOWnicegui/ui_run_with.py22CODE
LOWnicegui/app/app.py355CODE
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.py16CODE
LOWnicegui/elements/colors.py9CODE
LOWnicegui/elements/codemirror/codemirror.py37CODE
LOWnicegui/elements/scene/scene.py66CODE
LOWnicegui/elements/scene/scene.py268CODE
LOWnicegui/elements/scene/scene_view.py106CODE
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
LOW⚡tests/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.py261 return [self._props.get(key) for key in ('text', 'label', 'icon', 'placeholder', 'error-message')]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.json2001 "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
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMwebsite/translations/zh.json2 "**Or, let your AI do it!**\nMost LLMs already know NiceGUI.\nFor the rest, paste our [LLM reference](/llms.txt) (a CODE
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