AI Slop Code RIsk Monitor

onionshare/onionshare

Securely and anonymously share files, host websites, and chat with friends using the Tor network

18.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for onionshare/onionshare, a Python project with 7,134 GitHub stars. SynthScan examined 54,353 lines of code across 264 source files, recording 494 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 18.4 (Elevated 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.

18.4
Adjusted Signal
18.4
Raw Pattern Score
100%
Time Factor
2026-10-07
Last Push
7.1K
Stars
Python
Language
54.4K
Lines of Code
264
Files
494
Pattern Hits
2026-10-12
Scan Date
0.37
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 31.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 6.2/100 · LOW

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

Agent Over-Engineering Ratio 50.5/100 · HIGH

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

PR Review Velocity Impact 62.4/100 · HIGH

Which changes need focused human review? 494 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 4HIGH 94MEDIUM 31LOW 365

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 494 distinct pattern matches across 14 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.

Cross-File Repetition62 hits · 310 pts
SeverityFileLineSnippetContext
HIGHdesktop/setup-freeze.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tor_settings_tab.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/main_window.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tor_connection.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/moat_dialog.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/gui_common.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/settings_tab.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/widgets.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/threads.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab_widget.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/update_checker.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/__main__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/strings.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/server_status.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/tab.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/mode_settings_widget.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/file_selection.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/history.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/receive_mode/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/share_mode/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/share_mode/threads.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/chat_mode/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/website_mode/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/setup.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/onionshare.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/censorship.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/mode_settings.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/common.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/meek.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/settings.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/onion.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/web.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/share_mode.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/send_base_mode.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/chat_mode.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/__init__.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/website_mode.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHcli/onionshare_cli/web/receive_mode.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/connection_tab.py0onionshare | https://onionshare.org/ copyright (c) 2014-2021 micah lee, et al. <micah@micahflee.com> this program is freSTRING
HIGHdesktop/onionshare/tab/mode/__init__.py0returns the type of mode as a string (e.g. "share", "receive", etc.)STRING
HIGHdesktop/onionshare/tab/mode/receive_mode/__init__.py0returns the type of mode as a string (e.g. "share", "receive", etc.)STRING
HIGHdesktop/onionshare/tab/mode/share_mode/__init__.py0returns the type of mode as a string (e.g. "share", "receive", etc.)STRING
HIGHdesktop/onionshare/tab/mode/chat_mode/__init__.py0returns the type of mode as a string (e.g. "share", "receive", etc.)STRING
HIGHdesktop/onionshare/tab/mode/website_mode/__init__.py0returns the type of mode as a string (e.g. "share", "receive", etc.)STRING
HIGHdesktop/onionshare/tab/mode/__init__.py0return the string to put on the stop server button, if there's an auto-stop timerSTRING
HIGHdesktop/onionshare/tab/mode/receive_mode/__init__.py0return the string to put on the stop server button, if there's an auto-stop timerSTRING
HIGHdesktop/onionshare/tab/mode/share_mode/__init__.py0return the string to put on the stop server button, if there's an auto-stop timerSTRING
HIGHdesktop/onionshare/tab/mode/chat_mode/__init__.py0return the string to put on the stop server button, if there's an auto-stop timerSTRING
HIGHdesktop/onionshare/tab/mode/website_mode/__init__.py0return the string to put on the stop server button, if there's an auto-stop timerSTRING
HIGHdesktop/onionshare/tab/mode/__init__.py0the auto-stop timer expired, should we stop the server? returns a boolSTRING
HIGHdesktop/onionshare/tab/mode/receive_mode/__init__.py0the auto-stop timer expired, should we stop the server? returns a boolSTRING
HIGHdesktop/onionshare/tab/mode/share_mode/__init__.py0the auto-stop timer expired, should we stop the server? returns a boolSTRING
HIGHdesktop/onionshare/tab/mode/chat_mode/__init__.py0the auto-stop timer expired, should we stop the server? returns a boolSTRING
HIGHdesktop/onionshare/tab/mode/website_mode/__init__.py0the auto-stop timer expired, should we stop the server? returns a boolSTRING
HIGHdesktop/tests/test_gui_share.py0our custom 405 page should return for invalid methodsSTRING
HIGHdesktop/tests/test_gui_receive.py0our custom 405 page should return for invalid methodsSTRING
2 more matches not shown…
Hyper-Verbose Identifiers215 hits · 240 pts
SeverityFileLineSnippetContext
LOWflatpak/pyproject-to-requirements.py58def pyproject_to_requirements(pyproject_filename):CODE
LOWdesktop/onionshare/tor_settings_tab.py527 def connection_type_bundled_toggled(self, checked):CODE
LOWdesktop/onionshare/tor_settings_tab.py537 def bridge_use_checkbox_state_changed(self):CODE
LOWdesktop/onionshare/tor_settings_tab.py550 def bridge_builtin_radio_toggled(self, checked):CODE
LOWdesktop/onionshare/tor_settings_tab.py559 def bridge_builtin_dropdown_changed(self, selection):CODE
LOWdesktop/onionshare/tor_settings_tab.py572 def bridge_moat_radio_toggled(self, checked):CODE
LOWdesktop/onionshare/tor_settings_tab.py581 def bridge_moat_button_clicked(self):CODE
LOW⚡desktop/onionshare/tor_settings_tab.py599 def bridge_custom_radio_toggled(self, checked):CODE
LOW⚡desktop/onionshare/tor_settings_tab.py608 def connection_type_automatic_toggled(self, checked):CODE
LOW⚡desktop/onionshare/tor_settings_tab.py618 def connection_type_control_port_toggled(self, checked):CODE
LOWdesktop/onionshare/tor_settings_tab.py632 def connection_type_socket_file_toggled(self, checked):CODE
LOWdesktop/onionshare/tor_settings_tab.py646 def authenticate_no_auth_toggled(self, checked):CODE
LOWdesktop/onionshare/main_window.py221 def tor_connection_open_tor_settings(self):CODE
LOWdesktop/onionshare/tor_connection.py141 def _canceled_connecting_to_tor(self):CODE
LOWdesktop/onionshare/connection_tab.py161 def first_launch_widget_connect_clicked(self):CODE
LOWdesktop/onionshare/connection_tab.py171 def try_again_without_bridges_clicked(self):CODE
LOWdesktop/onionshare/connection_tab.py205 def _censorship_progress_update(self, progress, summary):CODE
LOWdesktop/onionshare/connection_tab.py225 def use_bridge_connect_clicked(self):CODE
LOWdesktop/onionshare/connection_tab.py715 def _detect_automatic_toggled(self):CODE
LOWdesktop/onionshare/moat_dialog.py231 def solution_lineedit_editing_finished(self):CODE
LOWdesktop/onionshare/settings_tab.py205 def close_forced_update_thread():CODE
LOWdesktop/onionshare/settings_tab.py325 def _update_autoupdate_timestamp(self, autoupdate_timestamp):CODE
LOW⚡desktop/onionshare/tab/server_status.py507 def show_url_qr_code_button_clicked(self):CODE
LOW⚡desktop/onionshare/tab/server_status.py515 def show_client_auth_qr_code_button_clicked(self):CODE
LOW⚡desktop/onionshare/tab/server_status.py525 def client_auth_toggle_button_clicked(self):CODE
LOWdesktop/onionshare/tab/tab.py402 def update_server_status_indicator(self):CODE
LOWdesktop/onionshare/tab/tab.py481 def set_server_status_indicator_stopped(self, label_text):CODE
LOWdesktop/onionshare/tab/tab.py492 def set_server_status_indicator_working(self, label_text):CODE
LOWdesktop/onionshare/tab/tab.py501 def set_server_status_indicator_started(self, label_text):CODE
LOWdesktop/onionshare/tab/mode/mode_settings_widget.py228 def persistent_checkbox_clicked(self):CODE
LOW⚡desktop/onionshare/tab/mode/mode_settings_widget.py243 def persistent_autostart_on_launch_checkbox_clicked(self):CODE
LOW⚡desktop/onionshare/tab/mode/mode_settings_widget.py249 def autostart_timer_checkbox_clicked(self):CODE
LOW⚡desktop/onionshare/tab/mode/mode_settings_widget.py259 def autostop_timer_checkbox_clicked(self):CODE
LOWdesktop/onionshare/tab/mode/__init__.py233 def get_stop_server_autostop_timer_text(self):CODE
LOWdesktop/onionshare/tab/mode/__init__.py239 def autostop_timer_finished_should_stop_server(self):CODE
LOWdesktop/onionshare/tab/mode/__init__.py391 def start_server_error_custom(self):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py497 def handle_request_upload_includes_message(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py503 def handle_request_upload_file_renamed(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py509 def handle_request_upload_message(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py515 def handle_request_upload_set_dir(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py521 def handle_request_upload_finished(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py527 def handle_request_upload_canceled(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/__init__.py533 def handle_request_individual_file_started(self, event):CODE
LOWdesktop/onionshare/tab/mode/__init__.py545 def handle_request_individual_file_progress(self, event):CODE
LOWdesktop/onionshare/tab/mode/__init__.py555 def handle_request_individual_file_canceled(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/receive_mode/__init__.py346 def disable_text_checkbox_clicked(self):CODE
LOW⚡desktop/onionshare/tab/mode/receive_mode/__init__.py356 def disable_files_checkbox_clicked(self):CODE
LOW⚡desktop/onionshare/tab/mode/receive_mode/__init__.py366 def webhook_url_checkbox_clicked(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py377 def webhook_url_editing_finished(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py386 def max_upload_size_checkbox_clicked(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py402 def max_upload_size_total_checkbox_clicked(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py414 def set_max_upload_size_widgets(self, size):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py439 def get_stop_server_autostop_timer_text(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py445 def autostop_timer_finished_should_stop_server(self):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py552 def handle_request_upload_includes_message(self, event):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py558 def handle_request_upload_file_renamed(self, event):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py571 def handle_request_upload_set_dir(self, event):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py584 def handle_request_upload_finished(self, event):CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py594 def handle_request_upload_canceled(self, event):CODE
LOW⚡desktop/onionshare/tab/mode/share_mode/__init__.py184 def autostop_sharing_checkbox_clicked(self):CODE
155 more matches not shown…
Empty Error Handlers32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHdesktop/onionshare/threads.py262except Exception:CODE
HIGHdesktop/onionshare/tab_widget.py158except KeyError:CODE
HIGHdesktop/onionshare/tab/server_status.py227except Exception:CODE
HIGHdesktop/onionshare/tab/mode/__init__.py438except Exception:CODE
HIGHdesktop/onionshare/tab/mode/share_mode/threads.py60except AttributeError:CODE
HIGHdesktop/tests/test_receive_data_dir_writable.py41except OSError:CODE
HIGHdesktop/scripts/build-macos.py183except FileNotFoundError:CODE
HIGHdesktop/scripts/build-macos.py188except FileNotFoundError:CODE
HIGHdesktop/scripts/build-macos.py193except FileNotFoundError:CODE
HIGHcli/onionshare_cli/onionshare.py135except OSError:CODE
HIGHcli/onionshare_cli/mode_settings.py154except Exception:CODE
HIGHcli/onionshare_cli/common.py675except OSError:CODE
HIGHcli/onionshare_cli/settings.py185except Exception:CODE
HIGHcli/onionshare_cli/settings.py179except Exception:CODE
HIGHcli/onionshare_cli/onion.py849except Exception:CODE
HIGHcli/onionshare_cli/onion.py925except Exception:CODE
HIGHcli/onionshare_cli/onion.py270except Exception:CODE
HIGHcli/onionshare_cli/onion.py500except FileNotFoundError:CODE
HIGHcli/onionshare_cli/onion.py516except Exception:CODE
HIGHcli/onionshare_cli/onion.py526except Exception:CODE
HIGHcli/onionshare_cli/onion.py892except Exception:CODE
HIGHcli/onionshare_cli/onion.py540except Exception:CODE
HIGHcli/onionshare_cli/web/web.py55except Exception:CODE
HIGHcli/onionshare_cli/web/web.py355except queue.Empty:CODE
HIGHcli/onionshare_cli/web/web.py417except OSError:CODE
HIGHcli/onionshare_cli/web/web.py424except OSError:CODE
HIGHcli/onionshare_cli/web/web.py428except OSError:CODE
HIGHcli/onionshare_cli/web/share_mode.py400except Exception:CODE
HIGHcli/onionshare_cli/web/receive_mode.py880except Exception:CODE
HIGHcli/onionshare_cli/web/receive_mode.py685except OSError:CODE
HIGHcli/onionshare_cli/web/receive_mode.py861except OSError:CODE
HIGHcli/tests/conftest.py113except Exception:CODE
Self-Referential Comments30 hits · 99 pts
SeverityFileLineSnippetContext
MEDIUMflatpak/generate-golang-dependencies.py8# Define the repositories, tags, and subfoldersCOMMENT
MEDIUMflatpak/generate-golang-dependencies.py19# Create the flatpak folder and subfoldersCOMMENT
MEDIUMdesktop/setup.py2# This file is used to build the Snapcraft and Flatpak packagesCOMMENT
MEDIUMdesktop/onionshare/main_window.py157 # Create the close warning dialog -- the dialog widget needs to be in the constructorCOMMENT
MEDIUMdesktop/onionshare/tab_widget.py56 # Define the new tab buttonCOMMENT
MEDIUMdesktop/onionshare/tab/tab.py214 # Create the timerCOMMENT
MEDIUMdesktop/onionshare/tab/tab.py228 # Create the close warning dialog -- the dialog widget needs to be in the constructorCOMMENT
MEDIUMdesktop/onionshare/tab/mode/file_selection.py287 # Create a new itemCOMMENT
MEDIUMdesktop/onionshare/tab/mode/file_selection.py331 # Create the item's widget and layoutsCOMMENT
MEDIUMdesktop/onionshare/tab/mode/receive_mode/__init__.py44 # Create the Web objectCOMMENT
MEDIUMdesktop/onionshare/tab/mode/share_mode/__init__.py48 # Create the Web objectCOMMENT
MEDIUMdesktop/onionshare/tab/mode/chat_mode/__init__.py43 # Create the Web objectCOMMENT
MEDIUMdesktop/onionshare/tab/mode/website_mode/__init__.py48 # Create the Web objectCOMMENT
MEDIUMcli/onionshare_cli/__init__.py353 # Create the Web objectCOMMENT
MEDIUMcli/onionshare_cli/onion.py228 # Create a torrc for this sessionCOMMENT
MEDIUMcli/onionshare_cli/onion.py242 # Create the torrcCOMMENT
MEDIUMcli/onionshare_cli/web/web.py157 # Define the web app routesCOMMENT
MEDIUMcli/onionshare_cli/web/web.py160 # Create the mode web object, which defines its own routesCOMMENT
MEDIUMcli/onionshare_cli/web/send_base_mode.py47 # Create a temporary dir to store gzip files inCOMMENT
MEDIUMcli/onionshare_cli/web/receive_mode.py603 # Create an history_id, attach it to the requestCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py24 # Create a unique temp directory for this test setupCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py27 # Create the secret file outside the shared directoryCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py32 # Create the shared directoryCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py36 # Create a normal file in the shared directoryCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py41 # Create a symlink to the secret inside the shared directoryCOMMENT
MEDIUM⚡cli/tests/test_cli_web_symlink.py45 # Create a nested directory with files and symlinksCOMMENT
MEDIUMcli/tests/test_cli_web_symlink.py184 # Create a directory with only a symlink (no normal files)COMMENT
MEDIUMcli/tests/test_cli_web_symlink.py242 # Create a unique temp directory for this testCOMMENT
MEDIUMcli/tests/test_cli_web_symlink.py255 # Create a symlink to a directoryCOMMENT
MEDIUMcli/tests/test_cli_web_symlink.py259 # Create a normal fileCOMMENT
Excessive Try-Catch Wrapping53 hits · 52 pts
SeverityFileLineSnippetContext
LOWdesktop/onionshare/tor_connection.py213 except Exception as e:CODE
LOWdesktop/onionshare/moat_dialog.py348 except Exception as e:CODE
LOWdesktop/onionshare/moat_dialog.py417 except Exception as e:CODE
LOWdesktop/onionshare/threads.py109 except Exception as e:CODE
LOWdesktop/onionshare/threads.py262 except Exception:CODE
LOWdesktop/onionshare/update_checker.py147 except Exception as e:CODE
LOWdesktop/onionshare/update_checker.py210 except Exception as e:CODE
LOWdesktop/onionshare/tab/server_status.py227 except Exception:CODE
LOWdesktop/onionshare/tab/mode/__init__.py438 except Exception:CODE
LOWdesktop/onionshare/tab/mode/history.py258 except Exception:CODE
LOWcli/onionshare_cli/onionshare.py63 except Exception:CODE
LOWcli/onionshare_cli/__init__.py376 except Exception:CODE
LOWcli/onionshare_cli/mode_settings.py154 except Exception:CODE
LOW⚡cli/onionshare_cli/common.py414 except Exception:CODE
LOW⚡cli/onionshare_cli/common.py420 except Exception:CODE
LOW⚡cli/onionshare_cli/common.py430 except Exception:CODE
LOWcli/onionshare_cli/meek.py173 except Exception:CODE
LOWcli/onionshare_cli/settings.py179 except Exception:CODE
LOWcli/onionshare_cli/settings.py185 except Exception:CODE
LOWcli/onionshare_cli/settings.py204 except Exception:CODE
LOWcli/onionshare_cli/onion.py250 except Exception:CODE
LOWcli/onionshare_cli/onion.py270 except Exception:CODE
LOWcli/onionshare_cli/onion.py281 except Exception:CODE
LOWcli/onionshare_cli/onion.py450 except Exception as e:CODE
LOWcli/onionshare_cli/onion.py516 except Exception:CODE
LOWcli/onionshare_cli/onion.py526 except Exception:CODE
LOWcli/onionshare_cli/onion.py540 except Exception:CODE
LOWcli/onionshare_cli/onion.py562 except Exception:CODE
LOWcli/onionshare_cli/onion.py569 except Exception:CODE
LOWcli/onionshare_cli/onion.py592 except Exception:CODE
LOWcli/onionshare_cli/onion.py671 except Exception:CODE
LOWcli/onionshare_cli/onion.py823 except Exception:CODE
LOWcli/onionshare_cli/onion.py844 except Exception:CODE
LOWcli/onionshare_cli/onion.py849 except Exception:CODE
LOWcli/onionshare_cli/onion.py892 except Exception:CODE
LOWcli/onionshare_cli/onion.py912 except Exception:CODE
LOWcli/onionshare_cli/onion.py925 except Exception:CODE
LOWcli/onionshare_cli/web/web.py55except Exception:CODE
LOWcli/onionshare_cli/web/web.py386 except Exception as e:CODE
LOWcli/onionshare_cli/web/share_mode.py376 except Exception:CODE
LOWcli/onionshare_cli/web/share_mode.py400 except Exception:CODE
LOWcli/onionshare_cli/web/send_base_mode.py344 except Exception:CODE
LOWcli/onionshare_cli/web/chat_mode.py86 except Exception as e:CODE
MEDIUMcli/onionshare_cli/web/chat_mode.py78def validate_username(self, username):CODE
LOW⚡cli/onionshare_cli/web/receive_mode.py410 except Exception:CODE
LOWcli/onionshare_cli/web/receive_mode.py370 except Exception as e:CODE
LOWcli/onionshare_cli/web/receive_mode.py462 except Exception:CODE
LOWcli/onionshare_cli/web/receive_mode.py476 except Exception:CODE
LOWcli/onionshare_cli/web/receive_mode.py540 except Exception:CODE
LOWcli/onionshare_cli/web/receive_mode.py880 except Exception:CODE
LOWcli/tests/conftest.py113 except Exception:CODE
LOWcli/tests/test_cli_web.py639 except Exception:CODE
LOWcli/tests/test_cli_web.py661 except Exception:CODE
Deep Nesting47 hits · 45 pts
SeverityFileLineSnippetContext
LOWflatpak/pyproject-to-requirements.py11CODE
LOWdesktop/onionshare/tor_settings_tab.py418CODE
LOWdesktop/onionshare/tor_settings_tab.py682CODE
LOWdesktop/onionshare/moat_dialog.py267CODE
LOWdesktop/onionshare/__init__.py139CODE
LOWdesktop/onionshare/gui_common.py632CODE
LOWdesktop/onionshare/threads.py205CODE
LOWdesktop/onionshare/tab_widget.py416CODE
LOWdesktop/onionshare/tab/server_status.py230CODE
LOWdesktop/onionshare/tab/server_status.py333CODE
LOWdesktop/onionshare/tab/server_status.py435CODE
LOWdesktop/onionshare/tab/tab.py241CODE
LOWdesktop/onionshare/tab/tab.py402CODE
LOWdesktop/onionshare/tab/tab.py514CODE
LOWdesktop/onionshare/tab/tab.py633CODE
LOWdesktop/onionshare/tab/tab.py646CODE
LOWdesktop/onionshare/tab/mode/mode_settings_widget.py201CODE
LOWdesktop/onionshare/tab/mode/__init__.py167CODE
LOWdesktop/onionshare/tab/mode/history.py385CODE
LOWdesktop/tests/test_gui_receive.py71CODE
LOWdesktop/tests/test_gui_receive.py273CODE
LOWdesktop/tests/test_gui_receive.py361CODE
LOWdesktop/scripts/get-tor.py267CODE
LOWdesktop/scripts/macos-check-arch.py5CODE
LOWdesktop/scripts/build-windows.py65CODE
LOWdesktop/scripts/common.py5CODE
LOWcli/onionshare_cli/__init__.py38CODE
LOWcli/onionshare_cli/censorship.py228CODE
LOWcli/onionshare_cli/mode_settings.py95CODE
LOWcli/onionshare_cli/common.py322CODE
LOWcli/onionshare_cli/meek.py149CODE
LOWcli/onionshare_cli/settings.py199CODE
LOWcli/onionshare_cli/onion.py194CODE
LOWcli/onionshare_cli/onion.py828CODE
LOWcli/onionshare_cli/web/web.py86CODE
LOWcli/onionshare_cli/web/web.py189CODE
LOWcli/onionshare_cli/web/share_mode.py51CODE
LOWcli/onionshare_cli/web/share_mode.py303CODE
LOWcli/onionshare_cli/web/share_mode.py431CODE
LOWcli/onionshare_cli/web/send_base_mode.py73CODE
LOWcli/onionshare_cli/web/send_base_mode.py251CODE
LOWcli/onionshare_cli/web/send_base_mode.py292CODE
LOWcli/onionshare_cli/web/website_mode.py71CODE
LOWcli/onionshare_cli/web/receive_mode.py488CODE
LOWcli/onionshare_cli/web/receive_mode.py660CODE
LOWcli/onionshare_cli/web/receive_mode.py790CODE
LOWcli/tests/test_cli_web.py646CODE
Hallucination Indicators4 hits · 40 pts
SeverityFileLineSnippetContext
CRITICALdesktop/tests/gui_base_test.py110 tab.share_mode.server_status.file_selection.file_list.add_file(filename)CODE
CRITICALdesktop/tests/gui_base_test.py147 tab.website_mode.server_status.file_selection.file_list.add_file(filename)CODE
CRITICALdocs/gettext/_static/jquery.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
CRITICAL…share_cli/resources/static/js/jquery-3.7.1.slim.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
Unused Imports30 hits · 28 pts
SeverityFileLineSnippetContext
LOWdesktop/setup-freeze.py25CODE
LOWdesktop/onionshare/main_window.py21CODE
LOWdesktop/onionshare/__init__.py21CODE
LOWdesktop/onionshare/__init__.py29CODE
LOWdesktop/onionshare/__init__.py31CODE
LOWdesktop/onionshare/settings_parent_tab.py1CODE
LOWdesktop/onionshare/settings_parent_tab.py3CODE
LOWdesktop/onionshare/settings_parent_tab.py6CODE
LOWdesktop/onionshare/settings_parent_tab.py7CODE
LOWdesktop/onionshare/settings_parent_tab.py8CODE
LOWdesktop/onionshare/settings_parent_tab.py11CODE
LOWdesktop/onionshare/tab/__init__.py21CODE
LOWdesktop/onionshare/tab/mode/receive_mode/__init__.py31CODE
LOWdesktop/tests/gui_base_test.py12CODE
LOWdesktop/tests/gui_base_test.py14CODE
LOWdesktop/scripts/get-tor.py2CODE
LOWdesktop/scripts/get-tor.py8CODE
LOWdesktop/scripts/build-macos.py9CODE
LOWdesktop/scripts/build-macos.py10CODE
LOWcli/onionshare_cli/common.py28CODE
LOWcli/onionshare_cli/web/web.py20CODE
LOWcli/onionshare_cli/web/web.py25CODE
LOWcli/onionshare_cli/web/web.py26CODE
LOWcli/onionshare_cli/web/web.py30CODE
LOWcli/onionshare_cli/web/web.py30CODE
LOWcli/onionshare_cli/web/__init__.py21CODE
LOWcli/tests/test_cli_web_symlink.py2CODE
LOWcli/tests/test_cli_web_symlink.py7CODE
LOWcli/tests/test_cli_web_symlink.py9CODE
LOWcli/tests/test_cli_web.py8CODE
Redundant / Tautological Comments8 hits · 13 pts
SeverityFileLineSnippetContext
LOWdesktop/onionshare/tor_settings_tab.py423 # Check if autoconnect was enabledCOMMENT
LOWdesktop/onionshare/main_window.py277 # Check if color mode switched while onionshare was open, if so, ask user to restartCOMMENT
LOWdesktop/onionshare/tab_widget.py329 # Check if the last tab is closed, or there is only one tabCOMMENT
LOWdesktop/onionshare/tab/mode/history.py744 # Add it to the listCOMMENT
LOWcli/onionshare_cli/web/share_mode.py491 # Check if there's only 1 file and no foldersCOMMENT
LOW⚡cli/onionshare_cli/web/receive_mode.py406 # Open the fileCOMMENT
LOWcli/onionshare_cli/web/receive_mode.py180 # Check if files were submitted when disabledCOMMENT
LOWcli/onionshare_cli/web/receive_mode.py764 # Check if file uploads are disabled - reject file streams earlyCOMMENT
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWflatpak/snowflake/modules.txt41github.com/aws/aws-sdk-go-v2/credentials/ssocredsCOMMENT
LOWflatpak/snowflake/modules.txt121## explicitCOMMENT
LOWflatpak/snowflake/modules.txt321# github.com/stretchr/testify v1.11.1COMMENT
LOWflatpak/snowflake/modules.txt341## explicit; go 1.20COMMENT
LOWcli/onionshare_cli/web/receive_mode.py21import tempfileCOMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql-analysis.yml41 # Initializes the CodeQL tools for scanning.COMMENT
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWcli/onionshare_cli/__init__.py318 # The assumption is that if we didn't just create the mode settings,COMMENT
LOWcli/onionshare_cli/onion.py804 # it would need to be in the format below. However, let's just set the private keyCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOW⚡cli/onionshare_cli/web/receive_mode.py412 # OnionShare is running, but if it does make sure to throw an errorCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdesktop/tests/gui_base_test.py65 "<html><body><p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laCODE
LOWdesktop/tests/gui_base_test.py65 "<html><body><p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laCODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdesktop/onionshare/tab/mode/__init__.py165CODE