Repository Analysis

magic-wormhole/magic-wormhole

get things from one computer to another, safely

8.8 Low AI signal View on GitHub
8.8
Adjusted Score
8.8
Raw Score
100%
Time Factor
2026-05-19
Last Push
22,635
Stars
Python
Language
29,573
Lines of Code
115
Files
230
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 0MEDIUM 10LOW 219

Pattern Findings

230 matches across 8 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers133 hits · 138 pts
SeverityFileLineSnippet
LOWversioneer.py691def git_versions_from_keywords(
LOWversioneer.py1222def git_versions_from_keywords(
LOWmisc/demo-journal.py217 def wormhole_dispatch_got_code(self, code, iid):
LOWmisc/demo-journal.py225 def wormhole_dispatch_got_verifier(self, verifier, iid):
LOWmisc/demo-journal.py228 def wormhole_dispatch_verified(self, _, iid):
LOWmisc/demo-journal.py231 def wormhole_dispatch_got_data(self, data, iid):
LOWsrc/wormhole/_rlcompleter.py67 def _commit_and_build_completions(self, text):
LOWsrc/wormhole/_rlcompleter.py153def _input_code_with_completion(prompt, input_helper, reactor):
LOWsrc/wormhole/transit.py83def build_sided_relay_handshake(key, side):
LOWsrc/wormhole/_version.py184def git_versions_from_keywords(
LOWsrc/wormhole/_nameplate.py164 def send_status_code_allocated(self):
LOWsrc/wormhole/_nameplate.py170 def send_status_code_consumed(self):
LOWsrc/wormhole/_interfaces.py59 def wormhole_got_unverified_key(key: bytes) -> None: # XXX definitely bytes?
LOWsrc/wormhole/_interfaces.py416 def get_nameplate_completions(prefix):
LOWsrc/wormhole/_interfaces.py451 def when_wordlist_is_available():
LOWsrc/wormhole/_rendezvous.py178 def _initial_connection_failed(self, f):
LOWsrc/wormhole/_rendezvous.py287 def _response_handle_allocated(self, msg):
LOWsrc/wormhole/_rendezvous.py292 def _response_handle_nameplates(self, msg):
LOWsrc/wormhole/_rendezvous.py332 def _response_handle_released(self, msg):
LOWsrc/wormhole/_key.py120 def deliver_code_and_stashed_pake(self, code):
LOWsrc/wormhole/_boss.py402 def send_status_confirmed_key(self, plaintext):
LOWsrc/wormhole/_input.py46 def when_wordlist_is_available(self):
LOWsrc/wormhole/_input.py94 def get_nameplate_completions(self, prefix):
LOWsrc/wormhole/_input.py129 def _get_nameplate_completions(self, prefix):
LOWsrc/wormhole/_input.py316 def get_nameplate_completions(self, prefix):
LOWsrc/wormhole/_input.py326 def when_wordlist_is_available(self):
LOWsrc/wormhole/test/test_machines.py822def test_close_while_idle_nameplate():
LOWsrc/wormhole/test/test_machines.py828def test_close_while_idle_connected():
LOWsrc/wormhole/test/test_machines.py836def test_close_while_unclaimed():
LOWsrc/wormhole/test/test_machines.py842def test_close_while_claiming():
LOWsrc/wormhole/test/test_machines.py1185def test_close_while_idle_but_connected():
LOWsrc/wormhole/test/test_machines.py1191def test_close_while_mailbox_disconnected():
LOWsrc/wormhole/test/test_machines.py1197def test_close_while_reconnecting():
LOWsrc/wormhole/test/test_machines.py504def test_connect_first_lister():
LOWsrc/wormhole/test/test_machines.py531def test_connect_first_ask_twice():
LOWsrc/wormhole/test/test_machines.py627def test_connect_first_allocator():
LOWsrc/wormhole/test/test_machines.py700def test_connect_first_nameplate():
LOWsrc/wormhole/test/test_machines.py726def test_reconnect_while_claiming():
LOWsrc/wormhole/test/test_machines.py740def test_reconnect_while_claimed():
LOWsrc/wormhole/test/test_machines.py763def test_reconnect_while_releasing():
LOWsrc/wormhole/test/test_machines.py790def test_reconnect_while_done():
LOWsrc/wormhole/test/test_machines.py857def test_close_while_claiming_but_disconnected():
LOWsrc/wormhole/test/test_machines.py901def test_close_while_claimed_but_disconnected():
LOWsrc/wormhole/test/test_machines.py928def test_close_while_releasing():
LOWsrc/wormhole/test/test_machines.py954def test_close_while_releasing_but_disconnecteda():
LOWsrc/wormhole/test/test_machines.py1017def test_close_while_done_but_disconnected():
LOWsrc/wormhole/test/test_machines.py1069def test_connect_first_mailbox(): # connect before got_mailbox
LOWsrc/wormhole/test/test_transit.py39async def test_there_might_also_be_none():
LOWsrc/wormhole/test/test_transit.py74async def test_cancel_after_one_failure():
LOWsrc/wormhole/test/test_transit.py124async def test_not_forever_cancel_early(forever):
LOWsrc/wormhole/test/test_transit.py152def test_allocate_port_no_reuseaddr():
LOWsrc/wormhole/test/test_transit.py204async def test_ignore_localhost_hint_orig():
LOWsrc/wormhole/test/test_transit.py219async def test_ignore_localhost_hint():
LOWsrc/wormhole/test/test_transit.py234async def test_keep_only_localhost_hint():
LOWsrc/wormhole/test/test_transit.py270async def test_transit_key_already_set():
LOWsrc/wormhole/test/test_transit.py464async def test_one_fail_one_success():
LOWsrc/wormhole/test/test_transit.py669async def test_handshake_other_error():
LOWsrc/wormhole/test/test_transit.py812async def test_receiver_rejected_politely():
LOWsrc/wormhole/test/test_transit.py844async def test_receiver_rejected_rudely():
LOWsrc/wormhole/test/test_transit.py875async def test_cancel_during_negotiation():
73 more matches not shown…
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippet
LOW.appveyor.yml41after_test:
LOWversioneer.py1881 # this fixes the "python setup.py develop" case (also 'install' and
LOWversioneer.py1921 #
LOWmisc/demo-journal.py201 return b"ok"
LOWmisc/web/timeline.js101 // [id], details={} }
LOWdocs/conf.py1
LOWdocs/conf.py141 # The paper size ('letterpaper' or 'a4paper').
LOWsrc/wormhole/_rlcompleter.py101 if not self._committed_nameplate:
LOWsrc/wormhole/_rlcompleter.py181 # user into satisfying the blocking read so we can exit.
LOWsrc/wormhole/transit.py41
LOWsrc/wormhole/transit.py281
LOWsrc/wormhole/transit.py921# how should the Listener be managed? we want to shut it down when the
LOWsrc/wormhole/_rendezvous.py241 # CLOSE_STATUS_CODE_ABNORMAL_CLOSE, and delivers onClose() without
LOWsrc/wormhole/_boss.py201
LOWsrc/wormhole/wormhole.py21
LOWsrc/wormhole/wormhole.py301 client_version = ("python", v)
LOWsrc/wormhole/test/test_machines.py1701# #Terminator
LOWsrc/wormhole/test/test_cli.py241 f.write(b"fail")
LOWsrc/wormhole/test/test_cli.py321 return pytest.skip(
LOWsrc/wormhole/test/dilate/test_record.py141 assert n.mock_calls == [mock.call.start_handshake(),
LOWsrc/wormhole/test/dilate/test_record.py161 # | 3 | | write_message | handshake | |
LOWsrc/wormhole/cli/cmd_receive.py81 tor=self._tor,
LOWsrc/wormhole/cli/cmd_send.py181 notify.cancel()
LOWsrc/wormhole/cli/cmd_send.py301 # os.path.joined with the unicode args.what .
LOWsrc/wormhole/cli/cmd_send.py321 # * we're running on windows
LOWsrc/wormhole/_dilation/inbound.py141
LOWsrc/wormhole/_dilation/connection.py21# The next object up knows whether it's expecting a Handshake or a message. It
LOWsrc/wormhole/_dilation/connection.py61# * send "sided relay handshake": "please relay TOKEN for side SIDE\n"
LOWsrc/wormhole/_dilation/outbound.py21# to reestablish a new one), registered subchannels will be paused, but
LOWsrc/wormhole/_dilation/outbound.py41# unusual because we have multiple Subchannels that get merged into the
LOWsrc/wormhole/_dilation/outbound.py61# Producers will be paused, and others will be resumed
LOWsrc/wormhole/_dilation/outbound.py81# queues some data on the TCP connection (and then might call
LOWsrc/wormhole/_dilation/outbound.py101#
LOWsrc/wormhole/_dilation/outbound.py121# * keep a set of IPushProducers which are paused, a second set of
LOWsrc/wormhole/_dilation/outbound.py141#
LOWsrc/wormhole/_dilation/subchannel.py21# length prefix itself), so the padded message must be less than 2**32 bytes
LOWsrc/wormhole/_dilation/connector.py341 made_direct = True
LOWsrc/wormhole/_dilation/manager.py141# in WANTING, then we process all previously-queued inbound DILATE-n
Excessive Try-Catch Wrapping18 hits · 22 pts
SeverityFileLineSnippet
LOWsrc/wormhole/_rlcompleter.py43 except Exception as e:
MEDIUMsrc/wormhole/_rlcompleter.py40def completer(self, text, state):
LOWsrc/wormhole/transit.py138 except Exception as e:
MEDIUMsrc/wormhole/transit.py135def dataReceived(self, data):
LOWsrc/wormhole/_rendezvous.py32 except Exception:
LOWsrc/wormhole/_rendezvous.py204 except Exception as e:
LOWsrc/wormhole/_rendezvous.py231 except Exception as e:
LOWsrc/wormhole/tor_manager.py107 except Exception:
LOWsrc/wormhole/eventual.py32 except Exception:
LOWsrc/wormhole/ipaddrs.py60 except Exception:
LOWsrc/wormhole/cli/cmd_receive.py114 except Exception:
MEDIUMsrc/wormhole/cli/cmd_receive.py111def _bad(f):
LOWsrc/wormhole/cli/cmd_ssh.py52 except Exception:
LOWsrc/wormhole/cli/cmd_send.py94 except Exception:
MEDIUMsrc/wormhole/cli/cmd_send.py91def _bad(f):
LOWsrc/wormhole/cli/cli.py179 except Exception as e:
LOWsrc/wormhole/_dilation/outbound.py353 except Exception:
LOWsrc/wormhole/_dilation/outbound.py360 except Exception:
Deep Nesting18 hits · 18 pts
SeverityFileLineSnippet
LOWversioneer.py1194
LOWversioneer.py1427
LOWversioneer.py1752
LOWversioneer.py2172
LOWsrc/wormhole/transit.py681
LOWsrc/wormhole/_version.py156
LOWsrc/wormhole/_version.py602
LOWsrc/wormhole/tor_manager.py32
LOWsrc/wormhole/test/test_ssh.py44
LOWsrc/wormhole/test/test_cli.py416
LOWsrc/wormhole/test/test_cli.py808
LOWsrc/wormhole/cli/cmd_receive.py406
LOWsrc/wormhole/cli/cmd_ssh.py15
LOWsrc/wormhole/cli/cmd_send.py273
LOWsrc/wormhole/_dilation/connection.py213
LOWsrc/wormhole/_dilation/connection.py635
LOWsrc/wormhole/_dilation/manager.py460
LOWsrc/wormhole/_dilation/manager.py583
AI Slop Vocabulary7 hits · 15 pts
SeverityFileLineSnippet
LOWversioneer.py533 # each be defined on a line of their own. _version.py will just call
LOWsrc/wormhole/transit.py483 # close-on-exec because we close it right away. So just add SO_REUSEADDR.
MEDIUMsrc/wormhole/_status.py108# note that the tests (e.g. test_api.py) leverage the order of these
LOWsrc/wormhole/_version.py26 # each be defined on a line of their own. _version.py will just call
MEDIUMsrc/wormhole/test/dilate/test_record.py302 # structures can be set up and paired properly. Essentially
MEDIUMsrc/wormhole/_dilation/manager.py29# note that these are strings, not numbers, to facilitate
LOWsrc/wormhole/_dilation/manager.py975 # invoked; upstream calls are basically just call-through -- so
Unused Imports12 hits · 12 pts
SeverityFileLineSnippet
LOWversioneer.py318
LOWversioneer.py318
LOWversioneer.py318
LOWmisc/dump-timing.py5
LOWmisc/dump-timing.py5
LOWsrc/wormhole/__init__.py1
LOWsrc/wormhole/__init__.py2
LOWsrc/wormhole/__init__.py3
LOWsrc/wormhole/__init__.py3
LOWsrc/wormhole/__init__.py4
LOWsrc/wormhole/_dilation/_noise.py5
LOWsrc/wormhole/_dilation/_noise.py11
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALsrc/wormhole/test/test_wormhole.py715 w1._boss._RC._ws.transport.loseConnection()
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMversioneer.py514# This file is released into the public domain.
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its
MEDIUMsrc/wormhole/_version.py7# This file is released into the public domain.