Repository Analysis

gradio-app/gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!

5.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gradio-app/gradio, a Python project with 43,125 GitHub stars. SynthScan v2.0 examined 425,929 lines of code across 2562 source files, recording 2051 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 5.4 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).

5.4
Adjusted Score
5.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
43.1K
Stars
Python
Language
425.9K
Lines of Code
2.6K
Files
2.1K
Pattern Hits
2026-07-14
Scan Date
0.02
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 1HIGH 56MEDIUM 90LOW 1904

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 2051 distinct pattern matches across 23 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 Identifiers818 hits · 772 pts
SeverityFileLineSnippetContext
LOWdemo/chicago-bikeshare-dashboard/run.py27def get_most_popular_stations():CODE
LOWdemo/image_editor_sketchpad/run.py4def percent_of_pixels_selected(image):CODE
LOWdemo/navbar_query_params/run.py11def update_dropdown_based_on_query(request: gr.Request):CODE
LOWdemo/super_html/run.py76 def update_templated_html_css(name, color, bold):STRING
LOWdemo/image_editor_inpainting/run.py4def average_inpainting_colors(image):CODE
LOWtest/test_workflow_api.py75 def test_upstream_includes_transitive_deps(self):CODE
LOWtest/test_workflow_api.py82 def test_free_inputs_excludes_computed_reference(self):CODE
LOWtest/test_workflow_api.py98 def test_runs_demo_end_to_end(self):CODE
LOWtest/test_workflow_api.py156 def test_unknown_subject_raises(self):CODE
LOWtest/test_workflow_api.py169 def test_demo_exposes_named_endpoint(self):CODE
LOWtest/test_workflow_api.py60 def test_orders_dependencies_first(self):CODE
LOWtest/test_workflow_api.py183 def test_endpoint_fn_runs_with_injected_request_token(self):CODE
LOWtest/test_workflow_api.py219 def test_describe_parameter_names_match_info(self, tmp_path):CODE
LOWtest/test_workflow_api.py298 def test_sync_adds_and_removes_endpoints(self, tmp_path):CODE
LOWtest/test_workflow_api.py320 def test_rename_changes_api_name(self, tmp_path):CODE
LOWtest/test_workflow_api.py335 def test_save_workflow_resyncs_endpoints(self, tmp_path):CODE
LOWtest/test_workflow_api.py354 def test_save_workflow_rejects_malformed_schema(self, tmp_path):CODE
LOWtest/test_workflow_api.py408 def test_multi_output_endpoint_callable_via_gradio_client(self):CODE
LOWtest/test_workflow_api.py434 def test_info_route_lists_endpoints(self):CODE
LOWtest/test_workflow_api.py566 def test_subjects_in_one_component_form_one_group(self):CODE
LOWtest/test_workflow_api.py573 def test_one_endpoint_with_two_returns(self, tmp_path):CODE
LOWtest/test_workflow_api.py590 def test_shared_operator_runs_once_and_returns_both(self):CODE
LOWtest/test_workflow_api.py621 def test_file_port_maps_to_file_component(self):CODE
LOWtest/test_queueing.py79 def test_cached_generator_finishes_on_queue_cache_hit(self, connect):CODE
LOWtest/test_queueing.py107 def test_queue_average_excludes_manual_cache_hits(self, connect):CODE
LOWtest/test_queueing.py145 def test_default_concurrency_limits(self, default_concurrency_limit, statuses):CODE
LOWtest/test_queueing.py180def test_heartbeat_task_cancelled_after_stream_completes():CODE
LOWtest/test_queueing.py234def test_cancel_removes_pending_event_from_queue():CODE
LOWtest/test_components.py32 def test_get_component_instance_rendering(CODE
LOWtest/test_components.py44 def test_no_duplicate_uncased_names(self, io_components):CODE
LOWtest/test_components.py49def test_dataframe_process_example_converts_dataframes():CODE
LOWtest/test_components.py66def test_process_example_returns_file_basename(component):CODE
LOWtest/test_components.py102def test_template_component_configs(io_components):CODE
LOWtest/test_components.py122def test_component_example_values(io_components):CODE
LOWtest/test_components.py131def test_component_example_payloads(io_components):CODE
LOWtest/test_components.py154def test_all_io_components_are_pickleable(io_components):CODE
LOWtest/test_components.py169def test_all_components_have_change_event(io_components):CODE
LOWtest/test_utils.py61 def test_colab_check_no_ipython(self, mock_get_ipython):CODE
LOWtest/test_utils.py66 def test_ipython_check_import_fail(self, mock_get_ipython):CODE
LOWtest/test_utils.py71 def test_ipython_check_no_ipython(self, mock_get_ipython):CODE
LOWtest/test_utils.py75 def test_download_if_url_doesnt_crash_on_connection_error(self):CODE
LOWtest/test_utils.py100 def test_download_if_url_correct_parse(self):CODE
LOWtest/test_utils.py105 def test_is_hosted_notebook_false(self):CODE
LOWtest/test_utils.py108 def test_kaggle_check_true_when_run_type_set(self):CODE
LOWtest/test_utils.py115def test_assert_configs_are_equivalent():CODE
LOWtest/test_utils.py870 def test_function_with_no_docstring(self):CODE
LOWtest/test_utils.py879 def test_function_with_no_parameters(self):CODE
LOWtest/test_utils.py889 def test_function_with_alternate_parameter_section(self):CODE
LOWtest/test_utils.py998 def test_unload_registered_last(self):CODE
LOWtest/test_utils.py1007 def test_unload_registered_first(self):CODE
LOWtest/test_utils.py1016 def test_unload_registered_in_middle(self):CODE
LOWtest/test_utils.py1026 def test_no_unload_no_heartbeat(self):CODE
LOWtest/test_utils.py1034 def test_per_session_manual_cache_connects_heartbeat(self):CODE
LOWtest/test_utils.py1099 async def test_aclose_retries_on_already_executing(self):CODE
LOWtest/test_utils.py1109 async def test_aclose_timeout_raises(self):CODE
LOWtest/test_utils.py1118 async def test_aclose_raises_other_value_error(self):CODE
LOWtest/test_utils.py163 def test_format_ner_list_standard(self):CODE
LOWtest/test_utils.py178 def test_format_ner_list_empty(self):CODE
LOWtest/test_utils.py284 def test_abspath_symlink_path(self):CODE
LOWtest/test_utils.py328 def test_get_type_hints_with_unresolvable_forward_ref(self):CODE
758 more matches not shown…
Unused Imports452 hits · 364 pts
SeverityFileLineSnippetContext
LOWdemo/random_demos.py7CODE
LOWdemo/many_tabs/run.py3CODE
LOWdemo/blocks_inputs/run.py2CODE
LOWdemo/login_with_huggingface/run.py1CODE
LOWdemo/state_cleanup/run.py1CODE
LOWdemo/stream_audio_out/run.py4CODE
LOWdemo/theme_new_step_3/run.py1CODE
LOWdemo/theme_new_step_2/run.py1CODE
LOWdemo/clear_components/run.py3CODE
LOWdemo/iframe_resizer/run.py3CODE
LOWdemo/kitchen_sink/run.py1CODE
LOWtest/test_utils.py1CODE
LOWjs/_website/generate_jsons/embed.py3CODE
LOWjs/_website/generate_jsons/embed.py4CODE
LOWjs/_website/generate_jsons/embed.py5CODE
LOWjs/_website/generate_jsons/embed.py7CODE
LOWjs/_website/generate_jsons/embed.py8CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py6CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py7CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py12CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py13CODE
LOWjs/preview/test/test/backend/gradio_test/__init__.py2CODE
LOWgradio/flagging.py1CODE
LOWgradio/image_utils.py1CODE
LOWgradio/server.py3CODE
LOWgradio/renderable.py1CODE
LOWgradio/node_server.py1CODE
LOWgradio/events.py4CODE
LOWgradio/block_function.py1CODE
LOWgradio/queueing.py1CODE
LOWgradio/route_utils.py1CODE
LOWgradio/validators.py6CODE
LOWgradio/processing_utils.py1CODE
LOWgradio/state_holder.py1CODE
LOWgradio/interface.py5CODE
LOWgradio/component_meta.py1CODE
LOWgradio/chat_interface.py5CODE
LOWgradio/__init__.py1CODE
LOWgradio/__init__.py3CODE
LOWgradio/__init__.py4CODE
LOWgradio/__init__.py5CODE
LOWgradio/__init__.py6CODE
LOWgradio/__init__.py7CODE
LOWgradio/__init__.py7CODE
LOWgradio/__init__.py7CODE
LOWgradio/__init__.py7CODE
LOWgradio/__init__.py7CODE
LOWgradio/__init__.py8CODE
LOWgradio/__init__.py9CODE
LOWgradio/__init__.py9CODE
LOWgradio/__init__.py10CODE
LOWgradio/__init__.py11CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
LOWgradio/__init__.py12CODE
392 more matches not shown…
Excessive Try-Catch Wrapping177 hits · 195 pts
SeverityFileLineSnippetContext
LOWdemo/dialogue_diarization_demo/run.py60 except Exception as e:CODE
MEDIUMdemo/dialogue_diarization_demo/run.py61 print(f"Error in diarization: {str(e)}")CODE
LOWdemo/dialogue_diarization_demo/run.py73 except Exception as e:CODE
LOWdemo/all_demos/run.py26 except Exception as e:CODE
LOWdemo/depth_estimation/run.py41 except Exception:CODE
MEDIUMdemo/depth_estimation/run.py47 print("Error reconstructing 3D model")CODE
LOWdemo/workflow/run.py24 except Exception:CODE
MEDIUMtest/test_utils.py433def my_check(path_1, path_2):CODE
LOWtest/test_utils.py456 except Exception as e:CODE
LOWtest/test_node_proxy.py209 except Exception:CODE
LOWtest/test_node_proxy.py213 except Exception:CODE
LOWtest/test_networking.py212 except Exception as e:CODE
MEDIUMtest/test_networking.py213 print(f"Error processing HTML: {str(e)}")CODE
LOWtest/test_networking.py258 except Exception as e:CODE
LOWtest/test_networking.py294 except Exception:CODE
LOWtest/test_docker/conftest.py117 except Exception as e:CODE
LOWtest/test_docker/conftest.py169 except Exception as e:CODE
MEDIUMtest/test_docker/conftest.py170 print(f"Error during service check: {e}")CODE
LOWtest/test_docker/conftest.py180 except Exception as e:CODE
MEDIUMtest/test_docker/conftest.py181 print(f"Error during cleanup: {e}")CODE
LOWjs/_website/generate_jsons/generate.py26 except Exception as e:CODE
MEDIUMjs/_website/generate_jsons/generate.py27 print(f"Error listing objects in bucket {bucket_name}: {e}")CODE
LOWjs/_website/generate_jsons/generate.py40 except Exception as e:CODE
MEDIUMjs/_website/generate_jsons/generate.py41 print(f"Error downloading {s3_key}: {e}")CODE
LOWjs/preview/src/examine.py74 except Exception as e:CODE
LOWgradio/flagging.py277 except Exception:CODE
LOWgradio/flagging.py416 except Exception as e:CODE
MEDIUMgradio/flagging.py417 print(f"Error while flagging: {e}")CODE
LOWgradio/image_utils.py197 except Exception:CODE
LOWgradio/image_utils.py311 except Exception:CODE
LOWgradio/node_server.py167 except Exception as e:CODE
LOWgradio/node_server.py197 except Exception:CODE
LOWgradio/node_server.py214 except Exception:CODE
LOWgradio/block_function.py11except Exception:CODE
LOWgradio/queueing.py171 except Exception as e:CODE
LOWgradio/queueing.py370 except Exception as e:CODE
LOWgradio/queueing.py449 except Exception:CODE
LOWgradio/queueing.py882 except Exception as e:CODE
LOWgradio/queueing.py969 except Exception as e:CODE
LOWgradio/queueing.py1043 except Exception as e:CODE
LOWgradio/queueing.py1093 except Exception:CODE
MEDIUMgradio/queueing.py521def start_processing(self) -> None:CODE
LOWgradio/route_utils.py897 except Exception:CODE
LOWgradio/route_utils.py1228 except Exception as e:CODE
LOWgradio/route_utils.py1234 except Exception as e:CODE
LOWgradio/route_utils.py1246 except Exception as e:CODE
LOWgradio/route_utils.py1310 except Exception as e:CODE
MEDIUMgradio/processing_utils.py1119 print(f"Error converting video to browser-playable format {str(e)}")CODE
LOWgradio/screen_recording_utils.py176 except Exception:CODE
LOWgradio/screen_recording_utils.py326 except Exception:CODE
LOWgradio/external_utils.py152 except Exception as e:CODE
LOWgradio/external_utils.py248 except Exception as e:CODE
LOWgradio/external_utils.py254 except Exception:CODE
LOWgradio/external_utils.py428 except Exception as e:CODE
LOWgradio/caching.py153 except Exception:CODE
MEDIUMgradio/caching.py146def _get_session_hash() -> str | None:CODE
MEDIUMgradio/mcp.py1120def handle_sse(request):CODE
LOWgradio/mcp.py1131 except Exception as e:CODE
LOWgradio/mcp.py1496 except Exception:CODE
LOWgradio/networking.py41 except Exception as e:CODE
117 more matches not shown…
Deep Nesting182 hits · 168 pts
SeverityFileLineSnippetContext
LOWdemo/chatbot_core_components_simple/run.py31CODE
LOWdemo/calculator_live/run.py3CODE
LOWdemo/dialogue_diarization_demo/run.py22CODE
LOWdemo/image_segmentation/run.py32CODE
LOWdemo/calculator/run.py3CODE
LOWdemo/mini_leaderboard/run.py102CODE
LOWdemo/outbreak_forecast/run.py6CODE
LOWdemo/bar_plot/run.py53CODE
LOWdemo/cache_demo/run.py55CODE
LOWdemo/chatbot_core_components/run.py160CODE
LOWdemo/dashboard/helpers.py68CODE
LOWdemo/calculator_blocks/run.py3CODE
LOWdemo/calculator_blocks_cached/run.py3CODE
LOWdemo/line_plot/run.py40CODE
LOWtest/test_queueing.py180CODE
LOWtest/test_queueing.py234CODE
LOWtest/test_components.py131CODE
LOWtest/test_node_proxy.py272CODE
LOWtest/test_node_proxy.py300CODE
LOWtest/test_networking.py68CODE
LOWtest/test_networking.py121CODE
LOWtest/test_blocks.py2107CODE
LOWtest/test_routes.py2337CODE
LOWtest/test_docker/conftest.py74CODE
LOWtest/test_docker/conftest.py77CODE
LOW…everse_proxy_root_path/test_reverse_proxy_root_path.py45CODE
LOW…t/test_docker/test_reverse_proxy/test_reverse_proxy.py45CODE
LOW…roxy_fastapi_mount/test_reverse_proxy_fastapi_mount.py45CODE
LOW…oot_path/test_reverse_proxy_fastapi_mount_root_path.py58CODE
LOWjs/_website/generate_jsons/chunking.py22CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py51CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py68CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py87CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py115CODE
LOWjs/_website/generate_jsons/src/docs/__init__.py143CODE
LOWgradio/flagging.py241CODE
LOWgradio/image_utils.py48CODE
LOWgradio/image_utils.py84CODE
LOWgradio/image_utils.py113CODE
LOWgradio/image_utils.py265CODE
LOWgradio/tunneling.py83CODE
LOWgradio/queueing.py279CODE
LOWgradio/queueing.py521CODE
LOWgradio/queueing.py585CODE
LOWgradio/queueing.py631CODE
LOWgradio/queueing.py669CODE
LOWgradio/queueing.py787CODE
LOWgradio/route_utils.py275CODE
LOWgradio/route_utils.py988CODE
LOWgradio/route_utils.py765CODE
LOWgradio/processing_utils.py431CODE
LOWgradio/processing_utils.py551CODE
LOWgradio/processing_utils.py720CODE
LOWgradio/processing_utils.py771CODE
LOWgradio/processing_utils.py459CODE
LOWgradio/processing_utils.py579CODE
LOWgradio/processing_utils.py869CODE
LOWgradio/interface.py84CODE
LOWgradio/interface.py555CODE
LOWgradio/interface.py619CODE
122 more matches not shown…
Decorative Section Separators45 hits · 159 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_workflow_api.py92# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py94# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py163# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py165# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py33# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py35# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py236# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py238# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py378# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py380# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py458# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow_api.py460# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py68# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py70# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py107# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py109# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py130# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py132# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py275# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py277# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py329# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py331# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py199# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_workflow.py201# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMjs/chatbot/Chatbot.test.ts1311// ── Visual-only (test.todo) ──────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/workflow-store.ts96// ─── Actions ────────────────────────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/workflow-types.ts96// ─── v2 schema ──────────────────────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/workflow-migration.ts147// ─── v2 → v1 adapter ────────────────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/WorkflowCanvas.svelte197 // ─── Canvas state ───────────────────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/WorkflowCanvas.svelte253 // ─── App state ──────────────────────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/WorkflowCanvas.svelte420 // ─── Context for node components ────────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/WorkflowCanvas.svelte533 // ─── Custom canvas event handlers ───────────────────────────────────────────COMMENT
MEDIUMjs/workflowcanvas/workflow/WorkflowCanvas.svelte1297 // ─── Helpers ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py55# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py57# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py271# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py273# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py347# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py349# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py584# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/workflow_api.py586# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py24# ================================================================COMMENT
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py27# ================================================================COMMENT
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py159# =========================================================COMMENT
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py161# =========================================================COMMENT
Cross-File Repetition31 hits · 155 pts
SeverityFileLineSnippetContext
HIGHCHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHdemo/state_cleanup/run.py0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHgradio/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHclient/python/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHclient/python/gradio_client/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHclient/js/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via demSTRING
HIGHCHANGELOG.md0# hello world! start typing below to see the output.STRING
HIGHdemo/blocks_hello/run.py0# hello world! start typing below to see the output.STRING
HIGH.agents/skills/gradio/references/examples.md0# hello world! start typing below to see the output.STRING
HIGHgradio/CHANGELOG.md0# hello world! start typing below to see the output.STRING
HIGHdemo/star_rating_simple/run.py0img { height: 50px; display: inline-block; cursor: pointer; } .faded { filter: grayscale(100%); opacity: 0.3; }STRING
HIGHdemo/star_rating_templates/run.py0img { height: 50px; display: inline-block; cursor: pointer; } .faded { filter: grayscale(100%); opacity: 0.3; }STRING
HIGHdemo/star_rating_events/run.py0img { height: 50px; display: inline-block; cursor: pointer; } .faded { filter: grayscale(100%); opacity: 0.3; }STRING
HIGHdemo/star_rating_component/run.py0img { height: 50px; display: inline-block; cursor: pointer; } .faded { filter: grayscale(100%); opacity: 0.3; }STRING
HIGHdemo/star_rating_templates/run.py0<h2>${label} rating:</h2> ${array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://uplSTRING
HIGHdemo/star_rating_props/run.py0<h2>${label} rating:</h2> ${array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://uplSTRING
HIGHdemo/star_rating_component/run.py0<h2>${label} rating:</h2> ${array.from({length: 5}, (_, i) => `<img class='${i < value ? '' : 'faded'}' src='https://uplSTRING
HIGHgradio/components/clear_button.py0parameters: parameters: value: default text for the button to display. if a function is provided, the function will be cSTRING
HIGHgradio/components/button.py0parameters: parameters: value: default text for the button to display. if a function is provided, the function will be cSTRING
HIGHgradio/components/duplicate_button.py0parameters: parameters: value: default text for the button to display. if a function is provided, the function will be cSTRING
HIGHgradio/components/color_picker.py0parameters: value: a path or url for the default value that simpleimage component is going to take. if a function is proSTRING
HIGHgradio/_simple_templates/simpledropdown.py0parameters: value: a path or url for the default value that simpleimage component is going to take. if a function is proSTRING
HIGHgradio/_simple_templates/simpleimage.py0parameters: value: a path or url for the default value that simpleimage component is going to take. if a function is proSTRING
HIGHgradio/components/textbox.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.STRING
HIGHgradio/components/datetime.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.STRING
HIGHgradio/_simple_templates/simpletextbox.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.STRING
HIGHgradio/layouts/tabs.py0parameters: visible: if false, group will be hidden. elem_id: an optional string that is assigned as the id of this compSTRING
HIGHgradio/layouts/draggable.py0parameters: visible: if false, group will be hidden. elem_id: an optional string that is assigned as the id of this compSTRING
HIGHgradio/layouts/walkthrough.py0parameters: visible: if false, group will be hidden. elem_id: an optional string that is assigned as the id of this compSTRING
HIGHgradio/layouts/accordion.py0parameters: visible: if false, group will be hidden. elem_id: an optional string that is assigned as the id of this compSTRING
HIGHgradio/layouts/group.py0parameters: visible: if false, group will be hidden. elem_id: an optional string that is assigned as the id of this compSTRING
AI Structural Patterns117 hits · 116 pts
SeverityFileLineSnippetContext
LOWdemo/llm_hf_transformers/run.py18CODE
LOWdemo/chatinterface_save_history/run.py5CODE
LOWdemo/validator_test/run.py20CODE
LOWdemo/dashboard/helpers.py127CODE
LOWdemo/dashboard/helpers.py161CODE
LOWdemo/theme_new_step_3/run.py9CODE
LOWdemo/theme_new_step_2/run.py9CODE
LOWdemo/chatbot_reasoning_tags/run.py19CODE
LOWdemo/validator_interface/run.py20CODE
LOWgradio/server.py60CODE
LOWgradio/server.py180CODE
LOWgradio/server.py221CODE
LOWgradio/events.py838CODE
LOWgradio/events.py1067CODE
LOWgradio/events.py542CODE
LOWgradio/events.py614CODE
LOWgradio/block_function.py23CODE
LOWgradio/interface.py84CODE
LOWgradio/chat_interface.py72CODE
LOWgradio/templates.py27CODE
LOWgradio/templates.py105CODE
LOWgradio/templates.py191CODE
LOWgradio/templates.py275CODE
LOWgradio/templates.py365CODE
LOWgradio/templates.py446CODE
LOWgradio/templates.py525CODE
LOWgradio/templates.py587CODE
LOWgradio/templates.py676CODE
LOWgradio/templates.py765CODE
LOWgradio/blocks.py639CODE
LOWgradio/blocks.py2177CODE
LOWgradio/blocks.py2605CODE
LOWgradio/helpers.py40CODE
LOWgradio/helpers.py103CODE
LOWgradio/routes.py2457CODE
LOWgradio/_vendor/aiofiles/threadpool/__init__.py37CODE
LOWgradio/_vendor/aiofiles/threadpool/__init__.py66CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py93CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py121CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py278CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py30CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py63CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py164CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py222CODE
LOWgradio/cli/commands/skills.py285CODE
LOWgradio/cli/commands/load_chat.py10CODE
LOWgradio/cli/commands/components/create.py22CODE
LOWgradio/cli/commands/components/docs.py25CODE
LOWgradio/cli/commands/components/publish.py69CODE
LOWgradio/components/plot.py47CODE
LOWgradio/components/model3d.py35CODE
LOWgradio/components/login_button.py40CODE
LOWgradio/components/annotated_image.py51CODE
LOWgradio/components/highlighted_text.py42CODE
LOWgradio/components/clear_button.py32CODE
LOWgradio/components/dataframe.py63CODE
LOWgradio/components/checkboxgroup.py30CODE
LOWgradio/components/file_explorer.py40CODE
LOWgradio/components/paramviewer.py37CODE
LOWgradio/components/number.py31CODE
57 more matches not shown…
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHtest/test_utils.py846This is a test function. Args: param1: First parameter param2: Second parameSTRING
HIGHgradio/media.py38 Internal function to get the path to a media file. Args: media_type: Type of media (images, videos, auSTRING
HIGHgradio/media.py76 Get path to an image file. Args: filename: Filename of the image (e.g., "tower.jpg"). If None, returnsSTRING
HIGHgradio/media.py93 Get path to a video file. Args: filename: Filename of the video (e.g., "world.mp4"). If None, returns STRING
HIGHgradio/media.py110 Get path to an audio file. Args: filename: Filename of the audio (e.g., "cantina.wav"). If None, returSTRING
HIGHgradio/media.py127 Get path to a 3D model file. Args: filename: Filename of the 3D model (e.g., "Duck.glb"). If None, retSTRING
HIGHgradio/media.py144 Get path to a data file (CSV, JSON, text, etc.). Args: filename: Filename of the data file (e.g., "titSTRING
HIGHgradio/utils.py821 Runs coroutines in background. Warning, be careful to not use this function in other than FastAPI scope, becauSTRING
HIGHgradio/utils.py1927 Get the description of a function, its parameters, and return values by parsing the docstring. The docstring shSTRING
HIGHgradio/blocks.py2659 Launches a simple web server that serves the demo. Can also be used to create a public link used by anySTRING
HIGHgradio/external.py54 Constructs a Gradio app automatically from a Hugging Face model/Space repo name or a 3rd-party API provider. Note tSTRING
HIGHgradio/external.py939 Load a Gradio app from an OpenAPI v3 specification. Parameters: openapi_spec: URL, file path, or dictiSTRING
HIGHgradio/data_classes.py298 Copies the file to a specified directory and returns a new FileData object representing the copied file. STRING
HIGHguides/10_mcp/01_building-mcp-server-with-gradio.md155Make a request to everyone's favorite API. Args: prompt: The prompt to send to the API. Returns: STRING
HIGHclient/python/gradio_client/client.py480 Calls the Gradio API and returns the result (this is a blocking call). Arguments can be provided as positional STRING
HIGHclient/python/gradio_client/client.py521 Creates and returns a Job object which calls the Gradio API in a background thread. The job can be used to retrSTRING
Structural Annotation Overuse44 hits · 66 pts
SeverityFileLineSnippetContext
LOW.agents/skills/hf-gradio/SKILL.md10## Step 1 - Verify installationCOMMENT
LOW.agents/skills/hf-gradio/SKILL.md20### Step 2 - Use `info` to discover endpoints and payload formatCOMMENT
LOW.agents/skills/hf-gradio/SKILL.md53## Step 3 - Use `predict` to generate the predictionCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md9## Step 0: PrerequisitesCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md15## Step 1: Creating the custom componentCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md35## Step 2: Frontend - modify javascript dependenciesCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md89## Step 3: Frontend - Launching the Dev ServerCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md105## Step 4: Frontend - The basic skeletonCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md184## Step 5: Frontend - Nicer Upload TextCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md264## Step 6: PDF Rendering logicCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md351## Step 7: Handling The File Upload And ClearCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md395## Step 8: Adding buttons to navigate pagesCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md532## Step 9: The backendCOMMENT
LOWguides/08_custom-components/07_pdf-component-example.md600## Step 10: Add a demo and publish!COMMENT
LOW…ents-and-lite/07_fastapi-app-with-the-gradio-client.md29## Step 1: Write the Video Processing FunctionCOMMENT
LOW…ents-and-lite/07_fastapi-app-with-the-gradio-client.md89## Step 2: Create a FastAPI app (Backend Routes)COMMENT
LOW…ents-and-lite/07_fastapi-app-with-the-gradio-client.md131## Step 3: Create a FastAPI app (Frontend Template)COMMENT
LOW…ents-and-lite/07_fastapi-app-with-the-gradio-client.md173## Step 4: Run your FastAPI appCOMMENT
LOW…-clients-and-lite/03_querying-gradio-apps-with-curl.md58## Step 0: Get the URL for your Gradio AppCOMMENT
LOW…-clients-and-lite/03_querying-gradio-apps-with-curl.md85## Step 1: Make a Prediction (POST)COMMENT
LOW…-clients-and-lite/03_querying-gradio-apps-with-curl.md187## Step 2: GET the resultCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md21### Step 1: Create a ServerCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md27### Step 2: Configure DNS SettingsCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md48### Step 3: Test Your Server ConnectionCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md63### Step 4: Install the Disco CLI on Your Local MachineCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md79### Step 5: Initialize Your Server with DiscoCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md97### Step 6: Fork the Example Gradio AppCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md101### Step 7: Connect Disco to GitHubCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md115### Step 8: Deploy Your Gradio AppCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-disco.md128### Step 9: Test Your Deployed AppCOMMENT
LOW…_other-tutorials/create-your-own-friends-with-a-gan.md143## Step 5 - Polishing it upCOMMENT
LOWguides/11_other-tutorials/plot-component-for-maps.md15## Step 1 - Loading CSV data 💾COMMENT
LOWguides/11_other-tutorials/plot-component-for-maps.md35## Step 2 - Map Figure 🌐COMMENT
LOWguides/11_other-tutorials/plot-component-for-maps.md73## Step 3 - Gradio App ⚡️COMMENT
LOWguides/11_other-tutorials/plot-component-for-maps.md96## Step 4 - Deployment 🤗COMMENT
LOW…des/11_other-tutorials/deploying-gradio-with-docker.md18#### Step 1: Create Your Gradio AppCOMMENT
LOW…des/11_other-tutorials/deploying-gradio-with-docker.md33#### Step 2: Create a DockerfileCOMMENT
LOW…des/11_other-tutorials/deploying-gradio-with-docker.md57#### Step 3: Build and Run Your Docker ContainerCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-modal.md47### Step 1: Define our `modal.Image`COMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-modal.md67### Step 2: Wrap the Gradio app in a Modal-deployed FastAPI appCOMMENT
LOW…ides/11_other-tutorials/deploying-gradio-with-modal.md100### Step 3: Deploying on ModalCOMMENT
LOWguides/11_other-tutorials/running-background-tasks.md25## Step 1 - Write your database logic 💾COMMENT
LOWguides/11_other-tutorials/running-background-tasks.md80## Step 2 - Create a gradio app ⚡COMMENT
LOWguides/11_other-tutorials/running-background-tasks.md99## Step 3 - Synchronize with HuggingFace Datasets 🤗COMMENT
Fake / Example Data50 hits · 47 pts
SeverityFileLineSnippetContext
LOWdemo/blocks_essay_simple/run.py7 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")CODE
LOWdemo/blocks_essay_simple/run.py7 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")CODE
LOWdemo/sentence_builder/run.py16 ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ipCODE
LOWdemo/sentence_builder/run.py16 ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ipCODE
LOWdemo/dataframe_widths/run.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWdemo/dataframe_widths/run.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWdemo/blocks_xray/run.py15With this model you can lorem ipsumSTRING
LOWdemo/dataset_component/run.py11 ["Lorem ipsum"],CODE
LOWdemo/blocks_essay/run.py13 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True)CODE
LOWdemo/blocks_essay/run.py13 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True)CODE
LOWdemo/kitchen_sink/run.py90 gr.Textbox(value="Lorem ipsum", label="Textbox"),CODE
LOWtest/test_utils.py76 in_article = "placeholder"CODE
LOWtest/test_analytics.py31 analytics._do_normal_analytics_request("placeholder", {})CODE
LOWtest/test_analytics.py37 analytics.error_analytics("placeholder")CODE
LOWtest/test_external.py390 token="fake-token",STRING
LOWtest/test_external.py408 "http://fake-api.com/v1", model="test-model", token="fake-token", streaming=TrueSTRING
LOWtest/components/test_image_editor.py75 "placeholder": None,CODE
LOWtest/components/test_image.py58 "placeholder": None,CODE
LOWtest/components/test_textbox.py21 "placeholder": None,CODE
LOWtest/components/test_number.py37 "placeholder": None,CODE
LOWtest/components/test_number.py74 "placeholder": None,CODE
LOWtest/components/test_chatbot.py85 "placeholder": None,CODE
LOWtest/test_files/xray_config.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",CODE
LOWtest/test_files/xray_config_diff_ids.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",CODE
LOWtest/test_files/xray_config_wrong.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",CODE
LOWjs/atoms/src/Block.svelte150 class="placeholder"CODE
LOWjs/chatbot/shared/Examples.svelte39 <div class="placeholder">CODE
LOWjs/utils/src/utils.svelte.ts13 "placeholder",CODE
LOWjs/spa/test/kitchen_sink.spec.ts47 await expect(textbox).toHaveValue("Lorem ipsum");CODE
LOWjs/spa/test/chatbot_multimodal.spec.ts7 await textbox.fill("Lorem ipsum");CODE
LOWjs/spa/test/chatbot_multimodal.spec.ts19 await expect(user_message).toEqual("Lorem ipsum");CODE
LOWjs/spa/test/blocks_essay.spec.ts11 await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet");CODE
LOWjs/spa/test/blocks_essay.spec.ts11 await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet");CODE
LOW.agents/skills/gradio/references/examples.md14 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")CODE
LOW.agents/skills/gradio/references/examples.md14 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")CODE
LOWgradio/test_data/blocks_configs.py11 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsumCODE
LOWgradio/test_data/blocks_configs.py359 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsumCODE
LOWgradio/test_data/blocks_configs.py708 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsumCODE
LOWgradio/layouts/accordion.py22 gr.Markdown("lorem ipsum")STRING
LOWgradio/themes/builder_app.py324 placeholder="John Doe",CODE
LOWgradio/themes/builder_app.py325 value="John Doe",CODE
LOWgradio/themes/builder_app.py342 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt CODE
LOWgradio/themes/builder_app.py342 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt CODE
LOWgradio/themes/app.py37 placeholder="John Doe",STRING
LOWgradio/themes/app.py38 value="John Doe",STRING
LOWgradio/themes/app.py53 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborSTRING
LOWgradio/themes/app.py53 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut laborSTRING
LOWguides/05_chatbots/01_creating-a-chatbot-fast.md171Here's another example that adds a "placeholder" for your chat interface, which appears before the user has started chatCODE
LOWscripts/overwrite_xray_config.py24 With this model you can lorem ipsumSTRING
LOWscripts/overwrite_xray_config.py63 With this model you can lorem ipsumSTRING
Cross-Language Confusion9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHdemo/super_html/run.py301 completed.push(index);CODE
HIGHdemo/kitchen_sink/run.py10JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu": 0.55,"batters":{"batter":[{ "id": "100CODE
HIGHgradio/mcp.py294 return client.command ? client.command : JSON.stringify(client.config, null, 2);CODE
HIGHgradio/mcp.py325 if (navigator.clipboard && navigator.clipboard.writeText) {CODE
HIGHgradio/routes.py1402 success, event_id, state = await blocks._queue.push(CODE
HIGHgradio/components/deep_link_button.py122 navigator.clipboard.writeText(currentUrl.toString());CODE
HIGH…dio/components/custom_html_components/audio_gallery.py23 <div class="audio-label">${labels && labels[i] ? labels[i] : 'Audio ' + (i + 1)}</div>CODE
HIGH…dio/components/custom_html_components/audio_gallery.py87 timeDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;CODE
HIGHgradio/themes/builder_app.py858 if (fonts && Array.isArray(fonts)) {CODE
Over-Commented Block44 hits · 44 pts
SeverityFileLineSnippetContext
LOWdemo/scatter_plot/run.py1import gradio as grCOMMENT
LOWdemo/line_plot/run.py21# [COMMENT
LOWtest/test_theme_sharing.py281 def test_get_next_version(self, mock):COMMENT
LOWtest/requirements.txt1# This file was autogenerated by uv via the following command:COMMENT
LOWtest/requirements.txt21 # viaCOMMENT
LOWtest/requirements.txt41 # via typer-slimCOMMENT
LOWtest/requirements.txt61 # via pydanticCOMMENT
LOWtest/requirements.txt81fsspec==2024.12.0COMMENT
LOWtest/requirements.txt101 # tokenizersCOMMENT
LOWtest/requirements.txt121jedi==0.19.2COMMENT
LOWtest/requirements.txt141kiwisolver==1.4.8COMMENT
LOWtest/requirements.txt161numpy==2.2.2COMMENT
LOWtest/requirements.txt181 # pytestCOMMENT
LOWtest/requirements.txt201polars==1.31.0COMMENT
LOWtest/requirements.txt221 # via buildCOMMENT
LOWtest/requirements.txt241pyyaml==6.0.2COMMENT
LOWtest/requirements.txt261 # jsonschemaCOMMENT
LOWtest/requirements.txt281sortedcontainers==2.4.0COMMENT
LOWtest/requirements.txt301 # via -r test/requirements.inCOMMENT
LOWtest/requirements.txt321 # viaCOMMENT
LOWtest/requirements.txt341 # botocoreCOMMENT
LOWtest/tmp/tmp.txt1# tmp files saved hereCOMMENT
LOWjs/core/src/stores.ts1import { type Writable, writable, get } from "svelte/store";COMMENT
LOWjs/core/src/init.svelte.ts481 node!.props.props[key] = new_props.props[key];COMMENT
LOWjs/spa/test/components.test.ts101 show_select_all: falseCOMMENT
LOWjs/spa/test/components.test.ts121 // [COMMENT
LOWjs/row/Index.svelte1<script lang="ts">COMMENT
LOWjs/_spaces-test/vite.config.js101 // discloseVersion: false,COMMENT
LOWjs/theme/src/index.ts1// export { default as reset } from "./reset.css";COMMENT
LOWjs/workflowcanvas/workflow/WorkflowCanvas.svelte81COMMENT
LOWjs/_website/generate_jsons/chunking.py141 chunks.content.pop(i)COMMENT
LOWjs/_website/generate_jsons/embed.py21# def embed_and_upload(title, _type, url, contents):COMMENT
LOWjs/_website/generate_jsons/embed.py41# data = response.json()COMMENT
LOWjs/_website/generate_jsons/embed.py61# {"role": "user", "content": content}COMMENT
LOWjs/_website/generate_jsons/embed.py81# chunks = chunker.chunk_page(guide["title"], guide["slug"], description, guide["type"])COMMENT
LOWjs/_website/generate_jsons/embed.py101# WHERE type = 'DEMO'COMMENT
LOWjs/_website/generate_jsons/embed.py141 )COMMENT
LOWjs/preview/src/plugins.ts141COMMENT
LOWjs/tootils/src/index.ts241 // With the new setup, each testcase launches its own Gradio app.COMMENT
LOWjs/imageeditor/types.ts61// export let _selectable = false;COMMENT
LOWscripts/helpers.sh21#######################################COMMENT
LOWscripts/helpers.sh41}COMMENT
LOWscripts/helpers.sh61function aws_required() {COMMENT
LOWscripts/profile_e2e/run.sh1#!/usr/bin/env bashCOMMENT
Self-Referential Comments10 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMdemo/mcp_resources_and_prompts/fastmcp.py9# Create an MCP serverCOMMENT
MEDIUMdemo/yolov10_webcam_stream/utils.py87# Create a list of colors for each class where each color is a tuple of 3 integer valuesCOMMENT
MEDIUMdemo/magic_8_ball/run.py52 # Create an audio segment from the numpy arrayCOMMENT
MEDIUMgradio/route_utils.py789 # Create the parser.COMMENT
MEDIUMgradio/external.py563 if "allow_flagging" in config: # Create an Interface for Gradio 2.x SpacesCODE
MEDIUMgradio/external.py567 else: # Create a Blocks for Gradio 3.x SpacesCODE
MEDIUMscripts/upload_demo_to_space.py38 # Create the repository if it doesn't existCOMMENT
MEDIUMscripts/upload_demo_to_space.py75 # Create the repository if it doesn't existSTRING
MEDIUMclient/python/gradio_client/client.py200 # Create a pool of threads to handle the requestsCOMMENT
MEDIUMclient/python/gradio_client/utils.py561 # Create a new copy of the error dict so weCOMMENT
Modern Structural Boilerplate21 hits · 21 pts
SeverityFileLineSnippetContext
LOWjs/preview/test/test/backend/gradio_test/__init__.py4__all__ = ['Test']CODE
LOWgradio/chat_interface.py549 def _setup_events(self) -> None:CODE
LOWgradio/__init__.py147__all__ = [CODE
LOWgradio/ranged_response.py85 def set_range_headers(self, range: ClosedRange) -> None:CODE
LOWgradio/utils.py1314def set_static_paths(paths: str | Path | list[str | Path]) -> None:CODE
LOWgradio/workflow.py133logger = logging.getLogger(__name__)CODE
LOWgradio/workflow_api.py27logger = logging.getLogger(__name__)CODE
LOWgradio/_vendor/aiofiles/os.py8__all__ = [CODE
LOWgradio/_vendor/aiofiles/__init__.py14__all__ = [CODE
LOWgradio/_vendor/aiofiles/tempfile/__init__.py16__all__ = [CODE
LOWgradio/_vendor/ffmpy/__init__.py3__all__ = ["FFmpeg", "FFprobe", "FFExecutableNotFoundError", "FFRuntimeError"]CODE
LOWgradio/cli/__init__.py4__all__ = ["cli", "deploy", "custom_component", "sketch"]CODE
LOWgradio/cli/commands/__init__.py13__all__ = [CODE
LOWgradio/cli/commands/components/_create_utils.py458__all__ = ['{name}']CODE
LOWgradio/cli/commands/components/__init__.py3__all__ = ["app"]CODE
LOWgradio/components/__init__.py66__all__ = [CODE
LOWgradio/layouts/__init__.py11__all__ = [CODE
LOWgradio/_simple_templates/__init__.py5__all__ = ["SimpleDropdown", "SimpleTextbox", "SimpleImage"]CODE
LOWgradio/themes/__init__.py18__all__ = [CODE
LOWgradio/themes/utils/__init__.py7__all__ = [CODE
LOWclient/python/gradio_client/__init__.py5__all__ = [CODE
Modern AI Meta-Vocabulary6 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md228- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4CODE
MEDIUMdemo/llm_llamaindex/run.py1# This is a simple RAG chatbot built on top of Llama Index and Gradio. It allows you to upload any text or PDF files andCOMMENT
MEDIUMjs/statustracker/CHANGELOG.md31- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4CODE
MEDIUMjs/markdown-code/CHANGELOG.md27- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4CODE
MEDIUMgradio/CHANGELOG.md228- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4CODE
MEDIUMclient/js/CHANGELOG.md33- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4CODE
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippetContext
LOWdemo/chatbot_feedback/run.py8 # Set feedback_value to ["Like"] for the assistant messageCOMMENT
LOWtest/test_networking.py128 # Check if the path is for a JS moduleCOMMENT
LOWtest/test_interfaces.py276 live=True, # Set live to True for real-time feedbackCODE
LOWtest/test_docker/conftest.py18 # Check if wheels already exist (e.g., copied from CI artifacts)COMMENT
LOWgradio/route_utils.py362 # Set parent to None to avoid pickle issues in ZeroGPUCOMMENT
LOWgradio/route_utils.py795 # Write file data, it needs to use await with the UploadFile methodsCOMMENT
LOWgradio/utils.py526 try: # Check if running interactively using ipython.CODE
LOWgradio/utils.py553 try: # Check if running interactively using ipython.CODE
LOWgradio/blocks.py3176 # Check if running in a Python notebook in which case, display inlineCOMMENT
Slop Phrases7 hits · 10 pts
SeverityFileLineSnippetContext
LOWdemo/llm_openai/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:COMMENT
LOWdemo/llm_claude/run.py2# Before running this, make sure you have exported your Anthropic API key as an environment variable:COMMENT
LOWdemo/llm_minimax/run.py2# Before running this, make sure you have exported your MiniMax API key as an environment variable:COMMENT
LOWdemo/llm_llamaindex/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:COMMENT
LOWdemo/llm_langchain/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:COMMENT
LOWdemo/llm_hyperbolic/run.py2# Before running this, make sure you have exported your Hyperbolic API key as an environment variable:COMMENT
LOWdemo/llm_sambanova/run.py2# Before running this, make sure you have exported your SambaNova API key as an environment variable:COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALjs/plot/shared/plot_types/altair_utils.ts83 d.encoding.color.scale.range = d.encoding.color.scale.range.map(CODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
LOWgradio/blocks.py367 # copying the file to the cache and just use the remote file path.COMMENT
LOWgradio/blocks.py407 # copying the file to the cache and just use the remote file path.COMMENT
LOWgradio/cli/commands/components/publish.py58 # If anything goes wrong, just return None so we upload all filesCOMMENT
LOWgradio/components/video.py289 # to another format and have a watermark added, we can just return the URLCOMMENT
MEDIUMscripts/download_offline_assets.py151 # test harness), so fetch the pinned v4.3.1 build rather than copying it.COMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtest/test_networking.py121 def handle_request(self):CODE
LOWgradio/helpers.py681 def my_function(x, progress=gr.Progress()):STRING
LOWclient/python/test/conftest.py140 def my_function(x, progress=gr.Progress()):CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_routes.py1846CODE
Example Usage Blocks2 hits · 2 pts
SeverityFileLineSnippetContext
LOWgradio/cli/commands/components/_create_utils.py411## Example usageSTRING
LOWscripts/profile_e2e/run.sh4# Usage:COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgradio/analytics.py139 # Sometimes the target can be the Blocks object itself, so we need to check if its in blocks.blocksCOMMENT