Event-driven networking engine written in Python.
This report presents the forensic synthetic code analysis of twisted/twisted, a Python project with 5,973 GitHub stars. SynthScan v2.0 examined 400,835 lines of code across 1160 source files, recording 1421 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 5.3 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 1421 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/core/examples/wxacceptance.py | 32 | CODE | |
| LOW | docs/core/examples/threadedselect/pygamedemo.py | 13 | CODE | |
| LOW | …examples/threadedselect/Cocoa/SimpleWebClient/setup.py | 10 | CODE | |
| LOW | …les/threadedselect/Cocoa/SimpleWebClient/Twistzilla.py | 5 | CODE | |
| LOW | …les/threadedselect/Cocoa/SimpleWebClient/Twistzilla.py | 8 | CODE | |
| LOW | docs/core/benchmarks/tpserver.py | 3 | CODE | |
| LOW | docs/core/benchmarks/tpserver.py | 7 | CODE | |
| LOW | docs/core/benchmarks/tpclient.py | 7 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19c_changes.py | 4 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19c_changes.py | 4 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19c_changes.py | 4 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger10.py | 3 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger10.py | 3 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger22.py | 4 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger22.py | 11 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19b_changes.py | 1 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19b_changes.py | 3 | CODE | |
| LOW | …re/howto/tutorial/listings/finger/finger19b_changes.py | 3 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger09.py | 3 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger/tap.py | 4 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger/tap.py | 4 | CODE | |
| LOW | docs/core/howto/tutorial/listings/finger/finger/tap.py | 5 | CODE | |
| LOW | docs/core/howto/listings/pb/copy2_sender.py | 10 | CODE | |
| LOW | docs/core/howto/listings/pb/cache_sender.py | 10 | CODE | |
| LOW | docs/core/howto/listings/pb/copy_sender.py | 8 | CODE | |
| LOW | docs/core/howto/listings/pb/cache_receiver.py | 7 | CODE | |
| LOW | docs/core/howto/listings/pb/copy2_receiver.py | 7 | CODE | |
| LOW | docs/core/howto/listings/ssl/wrapped_client.py | 9 | CODE | |
| LOW | docs/core/howto/listings/logger/loader-math.py | 1 | CODE | |
| LOW | docs/core/howto/listings/logger/saver.py | 1 | CODE | |
| LOW | docs/core/howto/listings/logger/loader.py | 1 | CODE | |
| LOW | docs/core/howto/listings/logger/offline_analyze.py | 1 | CODE | |
| LOW | docs/core/howto/listings/logger/ad_hoc_save.py | 1 | CODE | |
| LOW | docs/core/howto/listings/process/quotes.py | 1 | CODE | |
| LOW | docs/core/howto/listings/process/quotes.py | 4 | CODE | |
| LOW | docs/web/examples/websocket/websocket-client.py | 1 | CODE | |
| LOW | docs/web/examples/websocket/websocket-client.py | 6 | CODE | |
| LOW | src/twisted/copyright.py | 11 | CODE | |
| LOW | src/twisted/plugin.py | 13 | CODE | |
| LOW | src/twisted/words/tap.py | 7 | CODE | |
| LOW | src/twisted/words/xish/xmlstream.py | 36 | CODE | |
| LOW | src/twisted/words/test/test_tap.py | 4 | CODE | |
| LOW | src/twisted/words/protocols/jabber/xmlstream.py | 24 | CODE | |
| LOW | src/twisted/words/protocols/jabber/xmlstream.py | 37 | CODE | |
| LOW | src/twisted/words/protocols/jabber/jid.py | 14 | CODE | |
| LOW | src/twisted/names/dns.py | 11 | CODE | |
| LOW | src/twisted/names/dns.py | 298 | CODE | |
| LOW | src/twisted/names/dns.py | 298 | CODE | |
| LOW | src/twisted/names/client.py | 18 | CODE | |
| LOW | src/twisted/names/test/test_hosts.py | 7 | CODE | |
| LOW | src/twisted/logger/_json.py | 9 | CODE | |
| LOW | src/twisted/logger/_stdlib.py | 9 | CODE | |
| LOW | src/twisted/logger/_flatten.py | 11 | CODE | |
| LOW | src/twisted/logger/_observer.py | 9 | CODE | |
| LOW | src/twisted/logger/_io.py | 9 | CODE | |
| LOW | src/twisted/logger/_buffer.py | 9 | CODE | |
| LOW | src/twisted/logger/__init__.py | 92 | CODE | |
| LOW | src/twisted/logger/__init__.py | 92 | CODE | |
| LOW | src/twisted/logger/__init__.py | 94 | CODE | |
| LOW | src/twisted/logger/__init__.py | 96 | CODE | |
| 532 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/twisted/test/testutils.py | 0 | utility to pump data between clients and servers for protocol testing. perhaps this is a utility worthy of being in prot | STRING |
| HIGH | src/twisted/test/iosim.py | 0 | utility to pump data between clients and servers for protocol testing. perhaps this is a utility worthy of being in prot | STRING |
| HIGH | src/twisted/spread/test/test_pb.py | 0 | utility to pump data between clients and servers for protocol testing. perhaps this is a utility worthy of being in prot | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy_write.py | 0 | a protocol to hook up to stdio and observe its transport being half-closed. if all goes as expected, c{exitcode} will be | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose.py | 0 | a protocol to hook up to stdio and observe its transport being half-closed. if all goes as expected, c{exitcode} will be | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy.py | 0 | a protocol to hook up to stdio and observe its transport being half-closed. if all goes as expected, c{exitcode} will be | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy_write.py | 0 | this is the desired event. once it has happened, stop the reactor so the process will exit. | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose.py | 0 | this is the desired event. once it has happened, stop the reactor so the process will exit. | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy.py | 0 | this is the desired event. once it has happened, stop the reactor so the process will exit. | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy_write.py | 0 | this may only be invoked after c{readconnectionlost}. if it happens otherwise, mark it as an error and shut down. | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose.py | 0 | this may only be invoked after c{readconnectionlost}. if it happens otherwise, mark it as an error and shut down. | STRING |
| HIGH | src/twisted/test/stdio_test_halfclose_buggy.py | 0 | this may only be invoked after c{readconnectionlost}. if it happens otherwise, mark it as an error and shut down. | STRING |
| HIGH | src/twisted/mail/interfaces.py | 0 | get a unique identifier for a message. @type i: l{int} @param i: the 0-based index of a message. @rtype: l{bytes} @retur | STRING |
| HIGH | src/twisted/mail/maildir.py | 0 | get a unique identifier for a message. @type i: l{int} @param i: the 0-based index of a message. @rtype: l{bytes} @retur | STRING |
| HIGH | src/twisted/mail/pop3.py | 0 | get a unique identifier for a message. @type i: l{int} @param i: the 0-based index of a message. @rtype: l{bytes} @retur | STRING |
| HIGH | src/twisted/web/_http2.py | 0 | pause producing data. tells a producer that it has produced too much data to process for the time being, and to stop unt | STRING |
| HIGH | src/twisted/web/http.py | 0 | pause producing data. tells a producer that it has produced too much data to process for the time being, and to stop unt | STRING |
| HIGH | src/twisted/internet/interfaces.py | 0 | pause producing data. tells a producer that it has produced too much data to process for the time being, and to stop unt | STRING |
| HIGH | src/twisted/web/http.py | 0 | stop consuming data from a producer, without disconnecting. | STRING |
| HIGH | src/twisted/internet/abstract.py | 0 | stop consuming data from a producer, without disconnecting. | STRING |
| HIGH | src/twisted/internet/interfaces.py | 0 | stop consuming data from a producer, without disconnecting. | STRING |
| HIGH | src/twisted/internet/_pollingfile.py | 0 | stop consuming data from a producer, without disconnecting. | STRING |
| HIGH | src/twisted/internet/interfaces.py | 0 | see l{twisted.internet.interfaces.ireactortime.getdelayedcalls} | STRING |
| HIGH | src/twisted/internet/task.py | 0 | see l{twisted.internet.interfaces.ireactortime.getdelayedcalls} | STRING |
| HIGH | src/twisted/internet/base.py | 0 | see l{twisted.internet.interfaces.ireactortime.getdelayedcalls} | STRING |
| HIGH | src/twisted/internet/interfaces.py | 0 | checks if broadcast is currently allowed on this port. @return: whether this port may broadcast. @rtype: l{bool} | STRING |
| HIGH | src/twisted/internet/udp.py | 0 | checks if broadcast is currently allowed on this port. @return: whether this port may broadcast. @rtype: l{bool} | STRING |
| HIGH | src/twisted/internet/iocpreactor/udp.py | 0 | checks if broadcast is currently allowed on this port. @return: whether this port may broadcast. @rtype: l{bool} | STRING |
| HIGH | src/twisted/internet/epollreactor.py | 0 | add a socket filedescriptor for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/_threadedselect.py | 0 | add a socket filedescriptor for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/pollreactor.py | 0 | add a socket filedescriptor for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/selectreactor.py | 0 | add a socket filedescriptor for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/win32eventreactor.py | 0 | add a socket filedescriptor for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/epollreactor.py | 0 | add a socket filedescriptor for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/_threadedselect.py | 0 | add a socket filedescriptor for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/pollreactor.py | 0 | add a socket filedescriptor for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/selectreactor.py | 0 | add a socket filedescriptor for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/win32eventreactor.py | 0 | add a socket filedescriptor for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/epollreactor.py | 0 | remove a selectable for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/_threadedselect.py | 0 | remove a selectable for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/pollreactor.py | 0 | remove a selectable for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/selectreactor.py | 0 | remove a selectable for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/win32eventreactor.py | 0 | remove a selectable for notification of data available to read. | STRING |
| HIGH | src/twisted/internet/epollreactor.py | 0 | remove a selectable for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/_threadedselect.py | 0 | remove a selectable for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/pollreactor.py | 0 | remove a selectable for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/selectreactor.py | 0 | remove a selectable for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/win32eventreactor.py | 0 | remove a selectable for notification of data available to write. | STRING |
| HIGH | src/twisted/internet/unix.py | 0 | create and bind my socket, and begin listening on it. this is called on unserialization, and must be called after creati | STRING |
| HIGH | src/twisted/internet/tcp.py | 0 | create and bind my socket, and begin listening on it. this is called on unserialization, and must be called after creati | STRING |
| HIGH | src/twisted/internet/udp.py | 0 | create and bind my socket, and begin listening on it. this is called on unserialization, and must be called after creati | STRING |
| HIGH | src/twisted/internet/iocpreactor/udp.py | 0 | create and bind my socket, and begin listening on it. this is called on unserialization, and must be called after creati | STRING |
| HIGH | src/twisted/internet/tcp.py | 0 | returns the name of my class, to prefix log entries with. | STRING |
| HIGH | src/twisted/internet/iocpreactor/tcp.py | 0 | returns the name of my class, to prefix log entries with. | STRING |
| HIGH | src/twisted/internet/iocpreactor/udp.py | 0 | returns the name of my class, to prefix log entries with. | STRING |
| HIGH | src/twisted/pair/tuntap.py | 0 | returns the name of my class, to prefix log entries with. | STRING |
| HIGH | src/twisted/internet/test/test_unix.py | 0 | get the message expected to be logged when a tls port starts listening. | STRING |
| HIGH | src/twisted/internet/test/test_tcp.py | 0 | get the message expected to be logged when a tls port starts listening. | STRING |
| HIGH | src/twisted/internet/test/test_tls.py | 0 | get the message expected to be logged when a tls port starts listening. | STRING |
| HIGH | src/twisted/protocols/haproxy/_v2parser.py | 0 | consume a chunk of data and attempt to parse it. @param data: a bytestring. @type data: l{bytes} @return: a two-tuple co | STRING |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | docs/core/examples/pbgtk2.py | 103 | self._statusBar.push(self._statusContext, text) | CODE |
| HIGH | …les/threadedselect/Cocoa/SimpleWebClient/Twistzilla.py | 47 | s.replaceCharactersInRange_withString_((0, s.length()), html) | CODE |
| HIGH | …les/threadedselect/Cocoa/SimpleWebClient/Twistzilla.py | 52 | s.deleteCharactersInRange_((0, s.length())) | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 282 | self.assertEqual(r.toString(), "INVITE sip:foo SIP/2.0\r\nFoo: bar\r\n\r\n") | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 290 | r.toString(), "SIP/2.0 200 OK\r\nFoo: bar\r\nContent-Length: 4\r\n\r\n1234" | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 295 | self.assertEqual(r.toString(), "SIP/2.0 200 OK\r\n\r\n") | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 300 | s = v.toString() | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 373 | self.assertEqual(v.toString(), "SIP/2.0/UDP foo.bar:5060;rport") | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 383 | self.assertEqual(v.toString(), "SIP/2.0/UDP foo.bar:5060;rport") | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 393 | self.assertEqual(v.toString(), "SIP/2.0/UDP foo.bar:5060;rport=1") | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 552 | self.proxy.datagramReceived(r.toString(), ("1.1.1.1", 5060)) | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 562 | self.proxy.datagramReceived(r.toString(), ("1.1.1.1", 5060)) | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 572 | self.proxy.datagramReceived(r.toString(), ("client.com", 5060)) | CODE |
| HIGH⚡ | src/twisted/test/test_sip.py | 580 | self.proxy.datagramReceived(r.toString(), ("1.2.3.4", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 145 | self.assertEqual(m.uri.toString(), uri) | CODE |
| HIGH | src/twisted/test/test_sip.py | 330 | v.toString(), | CODE |
| HIGH | src/twisted/test/test_sip.py | 352 | self.assertEqual(v.toString(), "SIP/2.0/UDP example.com:5060;hidden") | CODE |
| HIGH | src/twisted/test/test_sip.py | 407 | self.assertNotEqual(v.toString().find("rport=12345"), -1) | CODE |
| HIGH | src/twisted/test/test_sip.py | 415 | self.assertEqual(v.toString(), s) | CODE |
| HIGH | src/twisted/test/test_sip.py | 471 | self.assertEqual(gurl.toString(), urls) | CODE |
| HIGH | src/twisted/test/test_sip.py | 501 | self.proxy.datagramReceived(r.toString(), ("1.2.3.4", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 506 | self.assertEqual(m.uri.toString(), "sip:foo") | CODE |
| HIGH | src/twisted/test/test_sip.py | 523 | self.proxy.datagramReceived(r.toString(), ("1.1.1.1", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 534 | self.proxy.datagramReceived(r.toString(), ("1.1.1.1", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 541 | self.proxy.datagramReceived(r.toString(), ("1.1.1.1", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 606 | self.proxy.datagramReceived(r.toString(), ("client.com", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 614 | self.proxy.datagramReceived(r.toString(), ("client.com", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 631 | self.assertEqual(uri.toString(), "sip:joe@client.com:5060") | CODE |
| HIGH | src/twisted/test/test_sip.py | 673 | self.proxy.datagramReceived(r.toString(), ("client.com", 5060)) | CODE |
| HIGH | src/twisted/test/test_sip.py | 681 | self.proxy.datagramReceived(r.toString(), ("client.com", 5060)) | CODE |
| HIGH | src/twisted/web/test/test_static.py | 1229 | If there are multiple byte ranges but only one is non-null, the | STRING |
| HIGH | src/twisted/web/test/requesthelper.py | 505 | verify.verifyObject(IAddress, null) | CODE |
| HIGH | src/twisted/web/test/test_domhelpers.py | 215 | "this string \" has && entities > < and some characters xml won't like<" | CODE |
| HIGH | src/twisted/persisted/styles.py | 299 | will be made. If any of these methods are undefined, a warning message | STRING |
| HIGH | src/twisted/conch/manhole.py | 267 | more = self.interpreter.push(line) | STRING |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 167 | self.assertEqual(self.entry.toString(), self.plaintextLine.rstrip(b"\n")) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 169 | self.assertEqual(multiHostEntry.toString(), self.hostIPLine.rstrip(b"\n")) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 205 | self.assertEqual(self.entry.toString(), self.hashedLine.rstrip(b"\n")) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 284 | self.assertEqual(b" This is a bogus entry. ", self.entry.toString()) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 303 | self.assertEqual(b" This is a bogus entry. ", self.entry.toString()) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 469 | self.assertEqual(entry.toString() + b"\n", path.getContent()) | CODE |
| HIGH | src/twisted/conch/test/test_knownhosts.py | 717 | hostsFileObj.write(entry.toString() + b"\n") | CODE |
| HIGH | src/twisted/conch/ssh/keys.py | 342 | string k || a | STRING |
| HIGH | src/twisted/conch/ssh/keys.py | 1360 | string k || a | STRING |
| HIGH | src/twisted/conch/client/knownhosts.py | 540 | b"\n".join([entry.toString() for entry in self._added]) + b"\n" | CODE |
| HIGH | src/twisted/scripts/_twistd_unix.py | 365 | os.dup2(null, i) | CODE |
| HIGH | src/twisted/scripts/_twistd_unix.py | 369 | os.close(null) | CODE |
| HIGH⚡ | src/twisted/protocols/sip.py | 820 | log.msg(f"Sending {message.toString()!r} to {destURL!r}") | CODE |
| HIGH⚡ | src/twisted/protocols/sip.py | 821 | data = message.toString() | CODE |
| HIGH | src/twisted/protocols/sip.py | 374 | return self.toString() | CODE |
| HIGH | src/twisted/protocols/sip.py | 556 | return "<SIP Request %d:%s %s>" % (id(self), self.method, self.uri.toString()) | CODE |
| HIGH | src/twisted/protocols/sip.py | 559 | return f"{self.method} {self.uri.toString()} SIP/2.0" | CODE |
| HIGH | src/twisted/protocols/sip.py | 766 | log.msg(f"Received {m.toString()!r} from {addr!r}") | CODE |
| HIGH | src/twisted/protocols/sip.py | 781 | message.headers["via"][0] = senderVia.toString() | CODE |
| HIGH | src/twisted/protocols/sip.py | 785 | message.headers["via"][0] = senderVia.toString() | CODE |
| HIGH | src/twisted/protocols/sip.py | 958 | if viaHeader.toString() in message.headers["via"]: | CODE |
| HIGH | src/twisted/protocols/sip.py | 963 | message.headers["via"].insert(0, viaHeader.toString()) | CODE |
| HIGH | src/twisted/protocols/sip.py | 1155 | response.addHeader("contact", registration.contactURL.toString()) | CODE |
| HIGH | src/twisted/protocols/sip.py | 1183 | msg.headers.setdefault("contact", []).append(registration.contactURL.toString()) | CODE |
| HIGH | src/twisted/protocols/sip.py | 1241 | log.msg(f"Registered {logicalURL.toString()} at {physicalURL.toString()}") | CODE |
| 1 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/core/examples/dbcred.py | 93 | CODE | |
| LOW | docs/core/examples/threadedselect/pygamedemo.py | 64 | CODE | |
| LOW | src/twisted/plugin.py | 115 | CODE | |
| LOW | src/twisted/plugin.py | 200 | CODE | |
| LOW | src/twisted/words/xish/utility.py | 243 | CODE | |
| LOW | src/twisted/words/xish/utility.py | 274 | CODE | |
| LOW | src/twisted/words/xish/xpath.py | 206 | CODE | |
| LOW | src/twisted/words/xish/xpath.py | 218 | CODE | |
| LOW | src/twisted/words/protocols/irc.py | 194 | CODE | |
| LOW | src/twisted/words/protocols/irc.py | 3798 | CODE | |
| LOW | src/twisted/names/server.py | 484 | CODE | |
| LOW | src/twisted/names/client.py | 167 | CODE | |
| LOW | src/twisted/names/authority.py | 107 | CODE | |
| LOW | src/twisted/names/authority.py | 137 | CODE | |
| LOW | src/twisted/names/authority.py | 226 | CODE | |
| LOW | src/twisted/names/authority.py | 352 | CODE | |
| LOW | src/twisted/names/root.py | 143 | CODE | |
| LOW | src/twisted/names/root.py | 174 | CODE | |
| LOW | src/twisted/logger/_json.py | 193 | CODE | |
| LOW | src/twisted/logger/_util.py | 13 | CODE | |
| LOW | src/twisted/logger/_legacy.py | 95 | CODE | |
| LOW | src/twisted/test/test_cooperator.py | 383 | CODE | |
| LOW | src/twisted/python/deprecate.py | 632 | CODE | |
| LOW | src/twisted/python/lockfile.py | 144 | CODE | |
| LOW | src/twisted/python/util.py | 310 | CODE | |
| LOW | src/twisted/python/util.py | 432 | CODE | |
| LOW | src/twisted/python/util.py | 794 | CODE | |
| LOW | src/twisted/python/util.py | 577 | CODE | |
| LOW | src/twisted/python/zipstream.py | 276 | CODE | |
| LOW | src/twisted/python/htmlizer.py | 31 | CODE | |
| LOW | src/twisted/python/failure.py | 42 | CODE | |
| LOW | src/twisted/python/failure.py | 313 | CODE | |
| LOW | src/twisted/python/text.py | 11 | CODE | |
| LOW | src/twisted/python/filepath.py | 438 | CODE | |
| LOW | src/twisted/python/filepath.py | 957 | CODE | |
| LOW | src/twisted/python/filepath.py | 1659 | CODE | |
| LOW | src/twisted/python/modules.py | 114 | CODE | |
| LOW | src/twisted/python/modules.py | 418 | CODE | |
| LOW | src/twisted/python/_shellcomp.py | 38 | CODE | |
| LOW | src/twisted/python/_shellcomp.py | 470 | CODE | |
| LOW | src/twisted/python/rebuild.py | 124 | CODE | |
| LOW | src/twisted/python/reflect.py | 534 | CODE | |
| LOW | src/twisted/mail/relaymanager.py | 1008 | CODE | |
| LOW | src/twisted/mail/alias.py | 51 | CODE | |
| LOW | src/twisted/mail/alias.py | 677 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4355 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4434 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4605 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4720 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4836 | CODE | |
| LOW | src/twisted/mail/imap4.py | 6107 | CODE | |
| LOW | src/twisted/mail/imap4.py | 6141 | CODE | |
| LOW | src/twisted/mail/imap4.py | 2186 | CODE | |
| LOW | src/twisted/mail/imap4.py | 2690 | CODE | |
| LOW | src/twisted/mail/imap4.py | 3161 | CODE | |
| LOW | src/twisted/mail/imap4.py | 3434 | CODE | |
| LOW | src/twisted/mail/imap4.py | 3912 | CODE | |
| LOW | src/twisted/mail/imap4.py | 4062 | CODE | |
| LOW | src/twisted/mail/imap4.py | 5922 | CODE | |
| LOW | src/twisted/mail/imap4.py | 5695 | CODE | |
| 155 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM⚡ | docs/core/examples/ftpserver.py | 33 | # Create a pass.dat file which looks like this: | COMMENT |
| MEDIUM | docs/core/examples/dbcred.py | 161 | # Create the table that will be used | COMMENT |
| MEDIUM | docs/core/examples/ftpclient.py | 80 | # Create the client | COMMENT |
| MEDIUM | docs/core/examples/ftpclient.py | 112 | # Create a buffer | COMMENT |
| MEDIUM | docs/mail/examples/smtpclient_tls.py | 38 | # Create a TLS context factory. | COMMENT |
| MEDIUM | src/twisted/_version.py | 5 | # This file is auto-generated! Do not edit! | COMMENT |
| MEDIUM | src/twisted/words/xish/domish.py | 99 | # Create the starttag | COMMENT |
| MEDIUM | src/twisted/words/test/test_irc.py | 2367 | # Create a lot of pings, more than MAX_PINGRING | COMMENT |
| MEDIUM | src/twisted/words/test/test_service.py | 36 | # Creating the same user again should not | COMMENT |
| MEDIUM | src/twisted/words/test/test_jabbercomponent.py | 133 | # Create a write list | COMMENT |
| MEDIUM | src/twisted/names/dns.py | 2849 | # Create a mapping from record types to their corresponding Record_* | COMMENT |
| MEDIUM | src/twisted/names/test/test_client.py | 1064 | # Create a resolver pointed at an invalid server - we won't be hitting | COMMENT |
| MEDIUM | src/twisted/logger/_legacy.py | 64 | # Create an object that implements __str__() in order to defer the | COMMENT |
| MEDIUM | src/twisted/test/test_defer.py | 1316 | # Create a synchronous Deferred that has a callback 'cb' that returns | COMMENT |
| MEDIUM | src/twisted/test/test_defer.py | 1388 | # Create a synchronous Deferred that has a callback 'cb' that returns | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1739 | # Create a canceller and weak reference to track if its been freed. | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1743 | # Create a Deferred with the above canceller, adding a reference to the | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1768 | # Create a canceller and weak reference to track if its been freed. | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1772 | # Create a Deferred with the above canceller, adding a reference to the | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1801 | # Create a canceller and weak reference to track if its been freed. | COMMENT |
| MEDIUM⚡ | src/twisted/test/test_defer.py | 1805 | # Create a Deferred with the above canceller, adding a reference to the | COMMENT |
| MEDIUM | src/twisted/test/test_defer.py | 4016 | # Create an object and weak reference to track if its gotten freed. | COMMENT |
| MEDIUM | src/twisted/test/test_ftp.py | 132 | # Create a directory | COMMENT |
| MEDIUM | src/twisted/test/test_ftp.py | 3100 | # Create a client, and give it a greeting. | COMMENT |
| MEDIUM | src/twisted/test/test_ftp.py | 3121 | # Create a client, and give it a greeting. | COMMENT |
| MEDIUM | src/twisted/test/test_policies.py | 868 | # Define an overflow protocol | COMMENT |
| MEDIUM | src/twisted/test/test_tcp.py | 1001 | # Create the server port to which a connection will be made. | COMMENT |
| MEDIUM | src/twisted/test/test_tcp.py | 1060 | # Create the client and initiate the connection | COMMENT |
| MEDIUM | src/twisted/python/twisted-completion.zsh | 12 | # This file is included in the official Zsh distribution as | COMMENT |
| MEDIUM | src/twisted/python/test/test_components.py | 110 | # Create a brand new, empty registry and put it onto the components | COMMENT |
| MEDIUM | src/twisted/python/test/test_zippath.py | 86 | # Create a path to the file rooted in the current working directory | COMMENT |
| MEDIUM | src/twisted/python/test/test_zippath.py | 117 | # Create a path to the file rooted in the current working directory | COMMENT |
| MEDIUM | src/twisted/mail/test/test_smtp.py | 999 | # Create a server which will fail the first message deliver attempt to | STRING |
| MEDIUM | src/twisted/mail/test/test_mailmail.py | 221 | # Create a config file with some invalid values | COMMENT |
| MEDIUM | src/twisted/trial/unittest.py | 13 | # Define the public API from the two implementation modules | COMMENT |
| MEDIUM | src/twisted/trial/_dist/disttrial.py | 388 | # Create a worker pool to use to execute them. | COMMENT |
| MEDIUM | src/twisted/trial/test/sample.py | 1 | """This module is used by test_loader to test the Trial test loading | STRING |
| MEDIUM | src/twisted/web/test/test_xml.py | 706 | # Create the root in one namespace. Microdom will probably make this | STRING |
| MEDIUM | src/twisted/web/test/test_xml.py | 775 | # Create a child with a specific namespace with a prefix bound to it. | STRING |
| MEDIUM | src/twisted/web/test/test_xml.py | 780 | # Create a child of that which has the outer namespace. | STRING |
| MEDIUM | src/twisted/spread/flavors.py | 373 | """This method is called when a client has stopped observing me. | STRING |
| MEDIUM | src/twisted/internet/epollreactor.py | 76 | # Create the poller we're going to use. The 1024 here is just a hint | COMMENT |
| MEDIUM | src/twisted/internet/_threadedselect.py | 289 | # The following methods are mostly for test-suite support, to make | COMMENT |
| MEDIUM | src/twisted/internet/tcp.py | 1224 | # The following block should not run arbitrary code | COMMENT |
| MEDIUM | src/twisted/internet/tcp.py | 1375 | # Create a new socket and make it listen | COMMENT |
| MEDIUM | src/twisted/internet/udp.py | 199 | # Create a new socket and make it listen | COMMENT |
| MEDIUM | src/twisted/internet/defer.py | 1817 | # This function is complicated by the need to prevent unbounded recursion | COMMENT |
| MEDIUM | src/twisted/internet/ssl.py | 109 | # Create a context object right now. This is to force validation of | COMMENT |
| MEDIUM | src/twisted/internet/base.py | 999 | # This function is called twice per reactor iteration, once in | COMMENT |
| MEDIUM | src/twisted/internet/test/test_posixprocess.py | 218 | # Create a new instance | COMMENT |
| MEDIUM | src/twisted/internet/test/test_process.py | 238 | # Create the process with no shared file descriptors, so that there | COMMENT |
| MEDIUM | src/twisted/internet/test/test_inlinecb.py | 402 | # Create an object and weak reference to track if its gotten freed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/twisted/web/test/test_distrib.py | 79 | self.sub.publisher.broker.transport.loseConnection() | CODE |
| CRITICAL | src/twisted/web/test/test_wsgi.py | 631 | # twisted.test.test_web.DummyChannel.transport.getHost().host | COMMENT |
| CRITICAL | src/twisted/conch/unix.py | 195 | ipAddress = self.avatar.conn.transport.transport.getPeer().host | CODE |
| CRITICAL | src/twisted/conch/unix.py | 238 | peer = self.avatar.conn.transport.transport.getPeer() | CODE |
| CRITICAL | src/twisted/conch/unix.py | 239 | host = self.avatar.conn.transport.transport.getHost() | CODE |
| CRITICAL⚡ | src/twisted/conch/unix.py | 258 | self.avatar.conn.transport.transport.setTcpNoDelay(1) | CODE |
| CRITICAL⚡ | src/twisted/conch/unix.py | 266 | peer = self.avatar.conn.transport.transport.getPeer() | CODE |
| CRITICAL⚡ | src/twisted/conch/unix.py | 267 | host = self.avatar.conn.transport.transport.getHost() | CODE |
| CRITICAL | src/twisted/conch/unix.py | 285 | self.avatar.conn.transport.transport.setTcpNoDelay(1) | CODE |
| CRITICAL | src/twisted/conch/test/test_recvline.py | 445 | return self.avatar.conn.transport.factory.serverProtocol() | CODE |
| CRITICAL | src/twisted/spread/test/test_pb.py | 626 | self.server.factory.protocolInstance.transport.loseConnection() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/development/listings/new_module_template.py | 10 | __all__ = [] | CODE |
| LOW | src/twisted/copyright.py | 9 | __all__ = ["copyright", "disclaimer", "longversion", "version"] | CODE |
| LOW | src/twisted/_version.py | 11 | __all__ = ["__version__"] | CODE |
| LOW | src/twisted/plugin.py | 262 | __all__ = ["getPlugins", "pluginPackagePaths"] | CODE |
| LOW | src/twisted/words/service.py | 1271 | __all__ = [ | CODE |
| LOW | src/twisted/words/iwords.py | 276 | __all__ = [ | CODE |
| LOW | src/twisted/words/ewords.py | 34 | __all__ = [ | CODE |
| LOW | src/twisted/words/protocols/jabber/xmlstream.py | 1114 | __all__ = [ | CODE |
| LOW | src/twisted/names/error.py | 83 | __all__ = [ | CODE |
| LOW | src/twisted/names/dns.py | 38 | __all__ = [ | CODE |
| LOW | src/twisted/names/secondary.py | 6 | __all__ = ["SecondaryAuthority", "SecondaryAuthorityService"] | CODE |
| LOW | src/twisted/names/_rfc1982.py | 261 | __all__ = ["SerialNumber"] | CODE |
| LOW | src/twisted/logger/__init__.py | 42 | __all__ = [ | CODE |
| LOW | src/twisted/test/test_plugin.py | 361 | __all__ = [] | CODE |
| LOW | src/twisted/test/proto_helpers.py | 12 | __all__ = [ | CODE |
| LOW | src/twisted/test/test_modules.py | 330 | def _setupSysPath(self) -> None: | CODE |
| LOW | src/twisted/test/test_modules.py | 399 | def _setupSysPath(self) -> None: | CODE |
| LOW | src/twisted/test/test_modules.py | 415 | def _setupSysPath(self) -> None: | CODE |
| LOW | src/twisted/test/test_modules.py | 494 | __all__ = [ | CODE |
| LOW | src/twisted/enterprise/__init__.py | 8 | __all__ = ["adbapi"] | CODE |
| LOW | src/twisted/enterprise/adbapi.py | 478 | __all__ = ["Transaction", "ConnectionPool"] | CODE |
| LOW | src/twisted/python/_tzhelper.py | 18 | __all__ = [ | CODE |
| LOW | src/twisted/python/deprecate.py | 84 | __all__ = [ | CODE |
| LOW | src/twisted/python/randbytes.py | 128 | __all__ = ["secureRandom", "insecureRandom", "SecureRandomNotAvailable"] | CODE |
| LOW | src/twisted/python/threadable.py | 137 | __all__ = ["isInIOThread", "registerAsIOThread", "getThreadID", "XLock"] | CODE |
| LOW | src/twisted/python/lockfile.py | 241 | __all__ = ["FilesystemLock", "isLocked"] | CODE |
| LOW | src/twisted/python/compat.py | 586 | __all__ = [ | CODE |
| LOW | src/twisted/python/util.py | 949 | __all__ = [ | STRING |
| LOW | src/twisted/python/_url.py | 11 | __all__ = ["URL"] | CODE |
| LOW | src/twisted/python/systemd.py | 14 | __all__ = ["ListenFDs"] | CODE |
| LOW | src/twisted/python/_textattributes.py | 305 | __all__ = ["flatten", "DefaultFormattingState", "CharacterAttributesMixin"] | CODE |
| LOW | src/twisted/python/zippath.py | 340 | __all__ = ["ZipArchive", "ZipPath"] | CODE |
| LOW | src/twisted/python/runtime.py | 7 | __all__ = [ | CODE |
| LOW | src/twisted/python/sendmsg.py | 13 | __all__ = ["sendmsg", "recvmsg", "getSocketFamily", "SCM_RIGHTS"] | CODE |
| LOW | src/twisted/python/url.py | 13 | __all__ = [ | CODE |
| LOW | src/twisted/python/fakepwd.py | 11 | __all__ = ["UserDatabase", "ShadowDatabase"] | CODE |
| LOW | src/twisted/python/versions.py | 13 | __all__ = ["Version", "getVersionString", "IncomparableVersions"] | CODE |
| LOW | src/twisted/python/components.py | 422 | __all__ = [ | CODE |
| LOW | src/twisted/python/reflect.py | 653 | __all__ = [ | CODE |
| LOW | src/twisted/plugins/twisted_reactors.py | 7 | __all__ = [] | CODE |
| LOW | src/twisted/mail/interfaces.py | 1035 | __all__ = [ | CODE |
| LOW | src/twisted/mail/imap4.py | 6202 | __all__ = [ | CODE |
| LOW | src/twisted/mail/_cred.py | 99 | __all__ = [ | CODE |
| LOW | src/twisted/mail/pop3.py | 1694 | __all__ = [ | CODE |
| LOW | src/twisted/mail/smtp.py | 66 | __all__ = [ | CODE |
| LOW | src/twisted/trial/unittest.py | 28 | __all__ = [ | CODE |
| LOW | src/twisted/trial/runner.py | 12 | __all__ = [ | CODE |
| LOW | src/twisted/trial/util.py | 32 | __all__ = [ | CODE |
| LOW | src/twisted/trial/_dist/test/matchers.py | 8 | __all__ = [ | CODE |
| LOW | src/twisted/web/server.py | 48 | __all__ = [ | CODE |
| LOW | src/twisted/web/error.py | 9 | __all__ = [ | CODE |
| LOW | src/twisted/web/xmlrpc.py | 624 | __all__ = [ | STRING |
| LOW | src/twisted/web/util.py | 9 | __all__ = [ | CODE |
| LOW | src/twisted/web/client.py | 1802 | __all__ = [ | CODE |
| LOW | src/twisted/web/resource.py | 12 | __all__ = [ | CODE |
| LOW | src/twisted/web/iweb.py | 830 | __all__ = [ | CODE |
| LOW | src/twisted/web/http_headers.py | 273 | __all__ = ["Headers"] | STRING |
| LOW | src/twisted/web/http.py | 37 | __all__ = [ | CODE |
| LOW | src/twisted/web/http.py | 3410 | def _set_logFile(self, newLogFile: BufferedIOBase | _MinimalLogFile) -> None: | STRING |
| LOW | src/twisted/web/http.py | 3422 | def _updateLogDateTime(self) -> None: | STRING |
| 73 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/core/examples/stdiodemo.py | 47 | except Exception as e: | CODE |
| LOW | docs/mail/examples/smtpclient_tls.py | 104 | except Exception as e: | CODE |
| LOW | src/twisted/words/protocols/jabber/sasl.py | 94 | except Exception as e: | CODE |
| LOW | src/twisted/names/tap.py | 95 | except Exception: | CODE |
| LOW | src/twisted/names/tap.py | 101 | except Exception: | CODE |
| LOW | src/twisted/logger/_observer.py | 84 | except Exception: | CODE |
| LOW | src/twisted/logger/_logger.py | 242 | except Exception: | STRING |
| LOW | src/twisted/logger/_format.py | 352 | except Exception: | CODE |
| LOW | src/twisted/test/test_defer.py | 3790 | except Exception: | CODE |
| LOW | src/twisted/test/test_defer.py | 3955 | except Exception: | CODE |
| LOW | src/twisted/test/test_adbapi.py | 710 | except Exception: | CODE |
| MEDIUM | src/twisted/test/test_adbapi.py | 450 | def can_connect(self): | CODE |
| LOW | src/twisted/test/test_usage.py | 399 | except Exception as e: | CODE |
| LOW | src/twisted/test/test_threads.py | 137 | except Exception as e: | CODE |
| MEDIUM | src/twisted/test/test_threads.py | 134 | def threadedFunc(): | CODE |
| LOW | src/twisted/test/test_udp.py | 490 | except Exception: | CODE |
| LOW | src/twisted/python/log.py | 429 | except Exception as e: | CODE |
| LOW | src/twisted/python/rebuild.py | 235 | except Exception: | CODE |
| LOW | src/twisted/python/test/test_shellcomp.py | 78 | except Exception as e: | CODE |
| MEDIUM | src/twisted/mail/imap4.py | 1156 | def _setupChallenge(self, chal, tag): | CODE |
| LOW | src/twisted/mail/imap4.py | 729 | except Exception as e: | CODE |
| LOW | src/twisted/mail/imap4.py | 1159 | except Exception as e: | CODE |
| LOW | src/twisted/mail/imap4.py | 3451 | except Exception as e: | CODE |
| LOW | src/twisted/trial/_asynctest.py | 226 | except Exception: | CODE |
| LOW | src/twisted/trial/_dist/disttrial.py | 273 | except Exception: | CODE |
| LOW | src/twisted/trial/_dist/disttrial.py | 363 | except Exception: | CODE |
| MEDIUM | src/twisted/trial/_dist/disttrial.py | 360 | def task(case): | CODE |
| LOW | src/twisted/trial/test/test_reporter.py | 635 | except Exception as e: | CODE |
| LOW | src/twisted/trial/test/test_reporter.py | 781 | except Exception as e: | CODE |
| MEDIUM | src/twisted/trial/test/test_reporter.py | 355 | def setUp(self): | CODE |
| LOW | src/twisted/trial/test/matchers.py | 44 | except Exception as e: | CODE |
| LOW | src/twisted/web/_flatten.py | 419 | except Exception as e: | CODE |
| LOW | src/twisted/web/xmlrpc.py | 144 | except Exception as e: | CODE |
| LOW | src/twisted/web/xmlrpc.py | 179 | except Exception as e: | CODE |
| LOW | src/twisted/web/xmlrpc.py | 189 | except Exception: | CODE |
| LOW | src/twisted/web/test/test_error.py | 278 | except Exception as e: | CODE |
| LOW | src/twisted/persisted/_tokenize.py | 891 | except Exception as err: | CODE |
| LOW | src/twisted/conch/checkers.py | 237 | except Exception: # any error should be treated as a failed login | CODE |
| LOW | src/twisted/conch/checkers.py | 638 | except Exception as e: # Any error should be treated as a failed login | CODE |
| LOW | src/twisted/conch/openssh_compat/factory.py | 36 | except Exception as e: | CODE |
| LOW | src/twisted/conch/openssh_compat/factory.py | 61 | except Exception as e: | CODE |
| LOW | src/twisted/conch/ssh/transport.py | 714 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/session.py | 84 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/session.py | 99 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/session.py | 117 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/session.py | 142 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/session.py | 154 | except Exception: | CODE |
| LOW | src/twisted/conch/ssh/connection.py | 166 | except Exception as e: | CODE |
| LOW | src/twisted/conch/ssh/filetransfer.py | 88 | except Exception: | CODE |
| LOW | src/twisted/conch/scripts/conch.py | 344 | except Exception: | STRING |
| LOW | src/twisted/conch/scripts/ckeygen.py | 282 | except Exception as e: | STRING |
| LOW | src/twisted/conch/client/knownhosts.py | 617 | except Exception: | CODE |
| LOW | src/twisted/cred/strcred.py | 197 | except Exception as e: | CODE |
| LOW | src/twisted/internet/asyncioreactor.py | 143 | except Exception as e: | CODE |
| LOW | src/twisted/internet/selectreactor.py | 72 | except Exception as e: | CODE |
| LOW | src/twisted/internet/tcp.py | 1043 | except Exception: | CODE |
| MEDIUM | src/twisted/internet/tcp.py | 288 | def _closeWriteConnection(self) -> None: | CODE |
| LOW | src/twisted/internet/test/test_inotify.py | 269 | except Exception: | CODE |
| LOW | src/twisted/internet/test/test_inotify.py | 297 | except Exception: | CODE |
| LOW | src/twisted/internet/test/test_inotify.py | 305 | except Exception: | CODE |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | codecov.yml | 21 | # New code should have 100% CI coverage as the minimum | COMMENT |
| LOW | .readthedocs.yml | 1 | version: 2 | COMMENT |
| LOW | tox.ini | 181 | # Set this to `True` to run similar to Read The Docs. | COMMENT |
| LOW | admin/black_separate_commits.sh | 1 | #!/bin/bash | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 101 | COMMENT | |
| LOW | docs/core/examples/tls_alpn_client.py | 21 | """ | COMMENT |
| LOW | docs/core/examples/tls_alpn_client.py | 41 | # how it affects the result. | COMMENT |
| LOW | docs/core/examples/ftpserver.py | 21 | # current working directory. | COMMENT |
| LOW | docs/core/examples/ftpserver.py | 41 | COMMENT | |
| LOW | docs/conch/examples/sshsimpleserver.py | 61 | # You would need a list for each SSH key size that you plan to support in your | COMMENT |
| LOW | .github/workflows/test.yaml | 61 | TOXENV: "${{ matrix.tox-env || 'alldeps-withcov-posix' }}" | COMMENT |
| LOW | .github/workflows/test.yaml | 81 | # This is the main tox target. | COMMENT |
| LOW | .github/workflows/test.yaml | 101 | COMMENT | |
| LOW | src/twisted/words/xish/xpathparser.py | 1 | # -*- test-case-name: twisted.words.test.test_xpath -*- | COMMENT |
| LOW | src/twisted/words/xish/xpathparser.py | 21 | # hasn't been touched since 2003 and has not been updated to work with | COMMENT |
| LOW | src/twisted/words/xish/domish.py | 881 | ## self.DocumentEndEvent = self.docEnd | COMMENT |
| LOW | src/twisted/words/test/test_xpath.py | 21 | # </bar> | COMMENT |
| LOW | src/twisted/words/im/interfaces.py | 1 | # -*- Python -*- | COMMENT |
| LOW | src/twisted/test/test_task.py | 581 | # The amount of time to let pass (the number of 1 second steps to | COMMENT |
| LOW | src/twisted/test/test_pcp.py | 1 | # -*- Python -*- | COMMENT |
| LOW | src/twisted/test/test_pcp.py | 21 | # - has a method write() | COMMENT |
| LOW | src/twisted/test/test_pcp.py | 381 | # would hang on the last block.) | COMMENT |
| LOW | src/twisted/test/test_log.py | 701 | # the '_collectWarnings' function which collects all warnings as a | COMMENT |
| LOW | src/twisted/test/test_tcp.py | 481 | def test_connectionRefusedErrorNumber(self): | COMMENT |
| LOW | src/twisted/test/test_tcp.py | 1041 | msg("UnreadingWriter.connectionMade write") | COMMENT |
| LOW | src/twisted/test/test_udp.py | 581 | # udp.Port's doRead calls recvfrom() in a loop, as an optimization. | COMMENT |
| LOW | src/twisted/test/test_modules.py | 61 | """ | COMMENT |
| LOW | src/twisted/python/twisted-completion.zsh | 1 | #compdef twist twistd trial conch cftp ckeygen pyhtmlizer tkconch | COMMENT |
| LOW | src/twisted/python/systemd.py | 121 | try: | COMMENT |
| LOW | src/twisted/python/_inotify.py | 61 | # an exception and we need to ignore the problem, one of | COMMENT |
| LOW | src/twisted/mail/imap4.py | 2081 | # It's important to run this *after* resetting the timeout to "rig | COMMENT |
| LOW | src/twisted/mail/imap4.py | 3361 | def __cbList(self, result, command): | COMMENT |
| LOW | src/twisted/mail/imap4.py | 3981 | # ["BODY", ["TEXT"], VALUE] | COMMENT |
| LOW | src/twisted/trial/runner.py | 441 | for searchName, remainingName in _qualNameWalker(name): | COMMENT |
| LOW | src/twisted/trial/_asynctest.py | 421 | # web/test/test_webclient.py: | COMMENT |
| LOW | src/twisted/trial/test/scripttest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | src/twisted/web/_http2.py | 281 | # handler that allows it to push data into the H2Stream. The H2Stream then | COMMENT |
| LOW | src/twisted/web/_http2.py | 301 | # streams off in priority order. | COMMENT |
| LOW | src/twisted/web/sux.py | 521 | COMMENT | |
| LOW | src/twisted/web/_newclient.py | 201 | """ | COMMENT |
| LOW | src/twisted/web/_newclient.py | 821 | # cancellation to the producer. | COMMENT |
| LOW | src/twisted/web/wsgi.py | 21 | from twisted.web.resource import IResource | COMMENT |
| LOW | src/twisted/web/wsgi.py | 281 | self.environ.update( | COMMENT |
| LOW | src/twisted/web/wsgi.py | 401 | # that underlying implementation does not, as yet, provide any way to | COMMENT |
| LOW | src/twisted/conch/test/test_filetransfer.py | 701 | #define SSH_FXP_READ 5 | COMMENT |
| LOW | src/twisted/conch/ssh/transport.py | 841 | @kexAlg.setter | COMMENT |
| LOW | src/twisted/conch/ssh/filetransfer.py | 41 | # (format all requests follow) is a 4 byte length prefix, a 1 byte | COMMENT |
| LOW | src/twisted/conch/scripts/cftp.py | 921 | f = open(fn) | COMMENT |
| LOW | src/twisted/conch/scripts/cftp.py | 941 | # can be passed with SSH_MSG_CHANNEL_EXTENDED_DATA messages, where a | COMMENT |
| LOW | src/twisted/conch/scripts/cftp.py | 961 | # (end of RFC quotations) | COMMENT |
| LOW | src/twisted/conch/insults/insults.py | 321 | ECMA 48 standardized modes | COMMENT |
| LOW | src/twisted/spread/pb.py | 541 | self.failures = [] | COMMENT |
| LOW | src/twisted/spread/test/test_banana.py | 301 | COMMENT | |
| LOW | src/twisted/internet/task.py | 261 | assert self.starttime is not None | COMMENT |
| LOW | src/twisted/internet/_sslverify.py | 1841 | _expandCipherString( | COMMENT |
| LOW | src/twisted/internet/_glibbase.py | 181 | # We don't actually know which versions of gtk do this so this might | COMMENT |
| LOW | src/twisted/internet/tcp.py | 1081 | """ | COMMENT |
| LOW | src/twisted/internet/tcp.py | 1101 | # event loops, such as libuv and libevent, also do not special case | COMMENT |
| LOW | src/twisted/internet/tcp.py | 1121 | # insufficient memory to allocate a new dentry. ECONNABORTED is | COMMENT |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | src/twisted/words/test/test_jabbercomponent.py | 144 | # Ensure the test service harness got notified | COMMENT |
| MEDIUM⚡ | src/twisted/words/test/test_jabbercomponent.py | 150 | # Ensure the test service harness got notified | COMMENT |
| MEDIUM⚡ | src/twisted/words/test/test_jabbercomponent.py | 156 | # Ensure the test service harness got notified | COMMENT |
| LOW | src/twisted/test/test_failure.py | 745 | # it will just use None. | COMMENT |
| LOW | src/twisted/test/test_tcp.py | 652 | # just call that directly. Some other test can make sure that | COMMENT |
| MEDIUM | src/twisted/test/test_persisted.py | 411 | # test more comprehensive, is welcome to do so. | COMMENT |
| LOW | src/twisted/python/test/test_shellcomp.py | 360 | # docstring for opt_silly is useless so it should just use the | COMMENT |
| LOW | src/twisted/mail/tap.py | 256 | # If there are any services set up, just return those. | STRING |
| LOW | src/twisted/mail/test/test_imap.py | 7049 | # be re-written to just use the default adapter for IMailbox to | STRING |
| LOW | src/twisted/web/_http2.py | 291 | # For flow control, we simply use the equivalent of the IPushProducer | COMMENT |
| LOW | src/twisted/web/_http2.py | 898 | # to expose it. So we just set it to None. | COMMENT |
| MEDIUM | src/twisted/web/test/test_web.py | 352 | # HELLLLLLLLLLP! This harness is Very Ugly. | COMMENT |
| MEDIUM | src/twisted/web/test/test_newclient.py | 2837 | # The protocol reference should be dropped, too, to facilitate GC or | COMMENT |
| LOW | src/twisted/web/test/test_http2.py | 907 | # This should not raise an exception, the function will just return | COMMENT |
| LOW | src/twisted/web/test/test_http2.py | 1013 | # That's absurdly hard, so instead we'll just call it ourselves. For | COMMENT |
| LOW | src/twisted/web/test/test_http2.py | 1551 | # That's absurdly hard, so instead we'll just call it ourselves. For | COMMENT |
| LOW | src/twisted/conch/manhole.py | 376 | # We couldn't do it. Strange. Oh well, just add the character. | STRING |
| LOW | src/twisted/internet/task.py | 276 | # Finally, if everything else is normal, we just return the | COMMENT |
| LOW | src/twisted/internet/asyncioreactor.py | 197 | # We don't have it, so just return OK. | COMMENT |
| LOW | src/twisted/internet/asyncioreactor.py | 220 | # We don't have it, so just return OK. | COMMENT |
| LOW | src/twisted/internet/defer.py | 811 | # if provided, otherwise just use L{cancelledToTimedOutError} | COMMENT |
| LOW | src/twisted/internet/posixbase.py | 167 | # Otherwise just use the base behavior | COMMENT |
| LOW | src/twisted/internet/test/test_protocol.py | 195 | # Cancel the Deferred, disconnecting the transport just set up and | COMMENT |
| LOW | src/twisted/scripts/trial.py | 326 | # we just add that to the test suite. | STRING |
| LOW | src/twisted/protocols/ftp.py | 2632 | # so just return it instead of making a new one | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmarks/test_conch_ssh.py | 76 | async def test_connect_and_disconnect(): | CODE |
| LOW | benchmarks/test_log_publisher.py | 20 | def test_log_publisher_call_dispatch(benchmark): | CODE |
| LOW | benchmarks/test_log_publisher.py | 41 | def test_log_publisher_add_remove(benchmark): | CODE |
| LOW | benchmarks/test_web_server.py | 76 | def test_bit_more_complex_response(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 17 | def test_deferred_await_unfired(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 42 | def test_deferred_callback_chain_fires_at_start(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 59 | def test_deferred_callback_chain_fires_at_end(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 76 | def test_deferred_errback_chain(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 104 | def test_deferred_chained_already_fired(benchmark): | CODE |
| LOW | benchmarks/test_deferred.py | 126 | def test_deferred_chained_not_fired(benchmark): | CODE |
| LOW | benchmarks/test_web_client.py | 25 | def test_http_client_small_response(benchmark): | CODE |
| LOW⚡ | src/twisted/test/test_defer.py | 1733 | def test_canceller_circular_reference_callback(self) -> None: | CODE |
| LOW⚡ | src/twisted/test/test_defer.py | 1762 | def test_canceller_circular_reference_errback(self) -> None: | CODE |
| LOW⚡ | src/twisted/test/test_defer.py | 1794 | def test_canceller_circular_reference_non_final(self) -> None: | CODE |
| LOW | src/twisted/test/test_paths.py | 736 | def test_getAndSet(self) -> None: | CODE |
| LOW | src/twisted/test/test_application.py | 988 | def test_calculates_correct_values(self): | CODE |
| LOW | src/twisted/test/test_application.py | 999 | def test_does_not_overflow_on_high_attempts(self): | CODE |
| LOW | src/twisted/test/test_application.py | 1011 | def test_does_not_overflow_with_large_factor_value(self): | CODE |
| LOW | src/twisted/trial/test/test_runner.py | 327 | def test_runner_can_get_reporter(self): | CODE |
| LOW | src/twisted/trial/test/test_runner.py | 363 | def test_runner_working_directory(self): | CODE |
| LOW | src/twisted/web/domhelpers.py | 86 | def getAndClear(node, nodeId): | CODE |
| LOW | src/twisted/web/test/test_domhelpers.py | 151 | def test_getAndClear(self): | CODE |
| LOW | src/twisted/conch/unix.py | 124 | def global_cancel_tcpip_forward(self, data): | CODE |
| LOW | src/twisted/conch/test/test_userauth.py | 755 | def test_unsupported_publickey(self): | CODE |
| LOW | src/twisted/conch/test/test_userauth.py | 1044 | def test_publickey_without_privatekey(self): | CODE |
| LOW | src/twisted/conch/test/test_session.py | 553 | def test_client_closed_with_env_subsystem(self): | CODE |
| LOW | src/twisted/conch/test/test_conch.py | 658 | def test_unsupported_algorithm(self): | CODE |
| LOW | src/twisted/conch/test/test_filetransfer.py | 157 | def test_interface_implementation(self): | CODE |
| LOW | src/twisted/conch/test/test_ssh.py | 120 | def global_cancel_tcpip_forward(self, data): | CODE |
| LOW | src/twisted/conch/ssh/userauth.py | 709 | def auth_keyboard_interactive(self) -> bool: | CODE |
| LOW | src/twisted/internet/test/test_process.py | 940 | def test_process_unregistered_before_protocol_ended_callback(self): | CODE |
| LOW | src/twisted/internet/test/test_tcp.py | 787 | def test_getaddrinfo_negative_port(self): | CODE |
| LOW | src/twisted/internet/test/test_tcp.py | 813 | def test_getaddrinfo_overflow_port(self): | CODE |
| LOW | src/twisted/protocols/test/test_tls.py | 1926 | def test_writes_get_aggregated(self, writes: list[bytes | None]) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/twisted/words/protocols/jabber/sasl_mechanisms.py | 263 | CODE | |
| LOW | src/twisted/names/dns.py | 1448 | CODE | |
| LOW | src/twisted/names/dns.py | 2409 | CODE | |
| LOW | src/twisted/names/dns.py | 2634 | CODE | |
| LOW | src/twisted/names/dns.py | 2956 | CODE | |
| LOW | src/twisted/test/test_defer.py | 3547 | CODE | |
| LOW | src/twisted/test/test_defer.py | 3570 | CODE | |
| LOW | src/twisted/test/test_sslverify.py | 2116 | CODE | |
| LOW | src/twisted/python/rebuild.py | 121 | CODE | |
| LOW | src/twisted/web/_flatten.py | 77 | CODE | |
| LOW | src/twisted/web/client.py | 1325 | CODE | |
| LOW | src/twisted/web/http.py | 1321 | CODE | |
| LOW | src/twisted/web/microdom.py | 200 | CODE | |
| LOW | src/twisted/persisted/sob.py | 177 | CODE | |
| LOW | src/twisted/conch/client/knownhosts.py | 104 | CODE | |
| LOW | src/twisted/conch/insults/helper.py | 51 | CODE | |
| LOW | src/twisted/spread/flavors.py | 237 | CODE | |
| LOW | src/twisted/internet/_sslverify.py | 1291 | CODE | |
| LOW | src/twisted/internet/tcp.py | 699 | CODE | |
| LOW | src/twisted/internet/process.py | 592 | CODE | |
| LOW | src/twisted/internet/endpoints.py | 473 | CODE | |
| LOW | src/twisted/internet/test/test_defer_yieldfrom.py | 29 | CODE | |
| LOW | src/twisted/internet/test/test_defer_yieldfrom.py | 52 | CODE | |
| LOW | src/twisted/internet/test/test_defer_yieldfrom.py | 57 | CODE | |
| LOW | src/twisted/internet/test/test_defer_yieldfrom.py | 80 | CODE | |
| LOW | src/twisted/internet/test/test_defer_yieldfrom.py | 176 | CODE | |
| LOW | src/twisted/internet/test/test_defer_await.py | 52 | CODE | |
| LOW | src/twisted/internet/test/test_defer_await.py | 57 | CODE | |
| LOW | src/twisted/internet/test/test_defer_await.py | 80 | CODE | |
| LOW | src/twisted/internet/test/test_defer_await.py | 94 | CODE | |
| LOW | src/twisted/protocols/sip.py | 156 | CODE | |
| LOW | src/twisted/protocols/sip.py | 307 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | docs/core/examples/ftpserver.py | 35 | # ===================== | COMMENT |
| MEDIUM⚡ | docs/core/examples/ftpserver.py | 38 | # ===================== | COMMENT |
| MEDIUM | src/twisted/words/xish/xmlstream.py | 70 | ### -------------------------------------------------------------- | COMMENT |
| MEDIUM | src/twisted/words/xish/xmlstream.py | 74 | ### -------------------------------------------------------------- | COMMENT |
| MEDIUM | src/twisted/words/xish/xmlstream.py | 109 | ### -------------------------------------------------------------- | COMMENT |
| MEDIUM | src/twisted/words/xish/xmlstream.py | 113 | ### -------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/twisted/words/xish/domish.py | 372 | >>> message['to'] = 'user@example.com' | STRING |
| LOW | src/twisted/words/xish/domish.py | 376 | u"<message to='user@example.com'><body>Hi!</body></message>" | STRING |
| LOW | src/twisted/words/xish/domish.py | 393 | u"<message to='user@example.com'><body>Hi!</body><envelope xmlns='http://example.com/'><presence xmlns=''/></envel | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 34 | "nonexistent@example.org", | CODE |
| LOW | src/twisted/mail/test/test_bounce.py | 41 | self.assertEqual(mess["From"], "postmaster@example.org") | CODE |
| LOW | src/twisted/mail/test/test_bounce.py | 58 | b"nonexistent@example.org", | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 65 | self.assertEqual(mess["From"], "postmaster@example.org") | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 82 | b"nonexistent@example.org", | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 90 | self.assertEqual(mess["From"], "postmaster@example.org") | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 106 | ioType(header + message), "moshez@example.com", "nonexistent@example.org" | STRING |
| LOW | src/twisted/mail/test/test_bounce.py | 111 | self.assertEqual(mess["From"], "postmaster@example.org") | STRING |
| LOW | src/twisted/mail/test/test_mail.py | 270 | self.address = b"user@example.com" | CODE |
| LOW | src/twisted/mail/test/test_smtp.py | 394 | b"foo@bar.com", | STRING |
| LOW | src/twisted/mail/test/test_smtp.py | 1014 | b"bob@example.org", | STRING |
| LOW | src/twisted/mail/test/test_smtp.py | 1662 | self.clientProtocol.getMailFrom = lambda: "test@example.org" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/twisted/test/test_defer.py | 2689 | def helper(resultValue: object, returnValue: object = None) -> object: | CODE |
| LOW | src/twisted/test/test_defer.py | 2762 | def helper(arg: object) -> Deferred[None]: | CODE |
| LOW | src/twisted/test/test_reflect.py | 660 | def test_function(self): | CODE |
| LOW | src/twisted/internet/test/test_testing.py | 430 | def helper(self, test: Callable[..., object], obj: _SupportsName) -> None: | CODE |
| LOW⚡ | src/twisted/protocols/sip.py | 826 | def handle_request(self, message, addr): | CODE |
| LOW | src/twisted/protocols/sip.py | 924 | def handle_request(self, message, addr): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/core/examples/shaper.py | 6 | look accurate with wget's rate-meter, don't forget to examine your network | STRING |
| LOW | src/twisted/test/test_process.py | 1444 | # Don't forget to raise an error, or you'll end up in parent | COMMENT |
| LOW | src/twisted/web/_newclient.py | 1592 | # Currently the rest parameter is ignored. Don't forget to use it if | COMMENT |
| LOW | src/twisted/internet/base.py | 1021 | # insert new delayed calls to make sure to include them in timeout value | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tox.ini | 181 | # Set this to `True` to run similar to Read The Docs. | COMMENT |
| LOW | docs/conch/examples/sshsimpleclient.py | 34 | # Set CLIENT_RSA_PUBLIC to empty to not use SSH key auth. | COMMENT |
| LOW | src/twisted/web/http.py | 2084 | # Check if we've run up against the trailer size limit: if the next | STRING |
| LOW | src/twisted/internet/tcp.py | 170 | # Set SO_LINGER to 1,0 which, by convention, causes a | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/twisted/web/xmlrpc.py | 82 | # event driven equivalent of 'raise UnimplementedError' | COMMENT |