AI Slop Code RIsk Monitor

tornadoweb/tornado

Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

18.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tornadoweb/tornado, a Python project with 22,164 GitHub stars. SynthScan examined 54,019 lines of code across 173 source files, recording 868 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 18.6 (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.6
Adjusted Signal
18.6
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
22.2K
Stars
Python
Language
54.0K
Lines of Code
173
Files
868
Pattern Hits
2026-10-12
Scan Date
0.26
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 44.8/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.0/100 · LOW

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

Agent Over-Engineering Ratio 51.0/100 · HIGH

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

PR Review Velocity Impact 65.9/100 · HIGH

Which changes need focused human review? 868 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 0HIGH 45MEDIUM 35LOW 788

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 868 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers484 hits · 429 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py139def missing_reference_handler(app, env, node, contnode):CODE
LOWtornado/auth.py227 def _on_authentication_verified(CODE
LOWtornado/auth.py520 def _oauth_request_parameters(CODE
LOWtornado/auth.py890 def get_google_oauth_settings(self) -> dict[str, str]:CODE
LOWtornado/concurrent.py117 def run_on_executor_decorator(fn: Callable) -> Callable[..., Future]:CODE
LOWtornado/concurrent.py186def future_set_result_unless_cancelled(CODE
LOWtornado/concurrent.py200def future_set_exception_unless_cancelled(CODE
LOWtornado/web.py165class RequestHandler:CODE
LOWtornado/web.py924 def get_signed_cookie_key_version(CODE
LOWtornado/web.py2063 def _handle_request_exception(self, e: BaseException) -> None:CODE
LOWtornado/web.py2128 def _clear_representation_headers(self) -> None:CODE
LOWtornado/web.py4194def get_signature_key_version(value: str | bytes) -> int | None:CODE
LOWtornado/web.py4224def _normalize_url_like_browser(url: str) -> str:CODE
LOWtornado/gen.py126def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any:CODE
LOWtornado/iostream.py1061 def _maybe_add_error_listener(self) -> None:CODE
LOWtornado/httputil.py1088def parse_multipart_form_data(STRING
LOWtornado/httputil.py1212def parse_response_start_line(line: str) -> ResponseStartLine:STRING
LOWtornado/locale.py178def load_gettext_translations(directory: str, domain: str) -> None:CODE
LOWtornado/curl_httpclient.py434 def handle_callback_exception(self, callback: Any) -> None:CODE
LOWtornado/testing.py753def setup_with_context_manager(testcase: unittest.TestCase, cm: Any) -> Any:CODE
LOWtornado/http1connection.py990def is_transfer_encoding_chunked(headers: httputil.HTTPHeaders) -> bool:CODE
LOWtornado/websocket.py651def _raise_not_supported_for_websockets(*args: Any, **kwargs: Any) -> None:CODE
LOWtornado/websocket.py926 def _handle_websocket_headers(self, handler: WebSocketHandler) -> None:CODE
LOWtornado/test/httpclient_test.py147 def _clear_representation_headers(self):CODE
LOWtornado/test/httpclient_test.py346 def test_patch_receives_payload(self):CODE
LOWtornado/test/httpclient_test.py371 def test_streaming_callback_large_body(self):CODE
LOWtornado/test/httpclient_test.py381 def test_streaming_decompression_bomb(self):CODE
LOWtornado/test/httpclient_test.py407 def test_decompression_bomb_without_streaming_callback(self):CODE
LOWtornado/test/httpclient_test.py432 def test_streaming_unsolicited_brotli_bomb(self):CODE
LOW⚡tornado/test/httpclient_test.py573 def test_redirect_without_location(self):STRING
LOW⚡tornado/test/httpclient_test.py581 def test_redirect_put_with_body(self):STRING
LOW⚡tornado/test/httpclient_test.py587 def test_redirect_put_without_body(self):STRING
LOW⚡tornado/test/httpclient_test.py596 def test_method_after_redirect(self):STRING
LOW⚡tornado/test/httpclient_test.py1374 def test_decompressed_body_size(self):STRING
LOW⚡tornado/test/httpclient_test.py1379 def test_streaming_callback_over_limit(self):STRING
LOW⚡tornado/test/httpclient_test.py1387 def test_streaming_callback_decompressed_over_limit(self):STRING
LOWtornado/test/httpclient_test.py523 def test_basic_auth_explicit_mode(self):STRING
LOWtornado/test/httpclient_test.py549 def test_unsupported_auth_mode(self):STRING
LOWtornado/test/httpclient_test.py736 def test_header_callback_to_parse_line(self):STRING
LOWtornado/test/httpclient_test.py860 def test_future_http_error_no_raise(self):STRING
LOWtornado/test/httpclient_test.py867 def test_reuse_request_from_response(self):STRING
LOWtornado/test/httpclient_test.py1029 def test_strip_headers_on_redirect(self):STRING
LOWtornado/test/httpclient_test.py1253 def test_if_modified_since_naive_deprecated(self):STRING
LOWtornado/test/queues_test.py88 def test_nonblocking_get_exception(self):CODE
LOWtornado/test/queues_test.py129 def test_get_timeout_preempted(self):CODE
LOWtornado/test/queues_test.py137 def test_get_clears_timed_out_putters(self):CODE
LOWtornado/test/queues_test.py153 def test_get_clears_timed_out_getters(self):CODE
LOWtornado/test/queues_test.py192 def test_nonblocking_put_exception(self):CODE
LOWtornado/test/queues_test.py208 def test_nonblocking_put_with_getters(self):CODE
LOWtornado/test/queues_test.py251 def test_put_timeout_preempted(self):CODE
LOWtornado/test/queues_test.py260 def test_put_clears_timed_out_putters(self):CODE
LOWtornado/test/queues_test.py275 def test_put_clears_timed_out_getters(self):CODE
LOWtornado/test/auth_test.py497 def test_twitter_redirect_gen_coroutine(self):CODE
LOWtornado/test/auth_test.py500 def test_twitter_authenticate_redirect(self):CODE
LOWtornado/test/auth_test.py544 def test_twitter_show_user_error(self):CODE
LOWtornado/test/httpserver_test.py85class HelloWorldRequestHandler(RequestHandler):CODE
LOWtornado/test/httpserver_test.py360 def test_query_string_encoding(self):CODE
LOWtornado/test/httpserver_test.py370 def test_empty_post_parameters(self):CODE
LOWtornado/test/httpserver_test.py433 def test_malformed_first_line_response(self):CODE
LOWtornado/test/httpserver_test.py443 def test_malformed_first_line_log(self):CODE
424 more matches not shown…
Empty Error Handlers44 hits · 220 pts
SeverityFileLineSnippetContext
HIGHtornado/options.py620except ValueError:CODE
HIGHtornado/web.py2499except TypeError:CODE
HIGHtornado/gen.py131except AttributeError:CODE
HIGHtornado/gen.py665except asyncio.CancelledError:CODE
HIGHtornado/iostream.py1239except BlockingIOError:CODE
HIGHtornado/iostream.py1418except OSError:CODE
HIGHtornado/iostream.py653except asyncio.CancelledError:CODE
HIGHtornado/iostream.py665except asyncio.CancelledError:CODE
HIGHtornado/iostream.py623except UnsatisfiableReadError:CODE
HIGHtornado/log.py68except Exception:CODE
HIGHtornado/netutil.py237except FileNotFoundError:CODE
HIGHtornado/httputil.py588except Exception:CODE
HIGHtornado/httputil.py594except Exception:CODE
HIGHtornado/ioloop.py773except asyncio.CancelledError:CODE
HIGHtornado/ioloop.py819except OSError:CODE
HIGHtornado/ioloop.py766except gen.BadYieldError:CODE
HIGHtornado/curl_httpclient.py142except pycurl.error:CODE
HIGHtornado/process.py50except NotImplementedError:CODE
HIGHtornado/process.py54except (AttributeError, ValueError):CODE
HIGHtornado/testing.py79except ValueError:CODE
HIGHtornado/testing.py186except asyncio.CancelledError:CODE
HIGHtornado/simple_httpclient.py668except KeyError:CODE
HIGHtornado/simple_httpclient.py695except KeyError:CODE
HIGHtornado/http1connection.py932except Exception:CODE
HIGHtornado/test/httpclient_test.py451except HTTPError:CODE
HIGHtornado/test/httpclient_test.py701except HTTPError:CODE
HIGHtornado/test/gen_test.py551except asyncio.CancelledError:CODE
HIGHtornado/test/gen_test.py676except ValueError:CODE
HIGHtornado/test/web_test.py4330except ValueError:CODE
HIGHtornado/test/websocket_test.py77except asyncio.CancelledError:CODE
HIGHtornado/test/websocket_test.py79except WebSocketClosedError:CODE
HIGHtornado/test/websocket_test.py123except RuntimeError:CODE
HIGHtornado/test/testing_test.py83except asyncio.CancelledError:CODE
HIGHtornado/test/tcpserver_test.py94except OSError:CODE
HIGHtornado/test/asyncio_test.py130except Exception:CODE
HIGHtornado/platform/asyncio.py234except RuntimeError:CODE
HIGHtornado/platform/asyncio.py241except AttributeError:CODE
HIGHtornado/platform/asyncio.py255except RuntimeError:CODE
HIGHtornado/platform/asyncio.py580except BlockingIOError:CODE
HIGHtornado/platform/asyncio.py586except BlockingIOError:CODE
HIGHtornado/platform/asyncio.py651except RuntimeError:CODE
HIGHtornado/platform/asyncio.py658except AttributeError:CODE
HIGHtornado/platform/asyncio.py124except KeyError:CODE
HIGHmaint/benchmark/dos_benchmark.py237except OSError:CODE
Over-Commented Block105 hits · 99 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1#COMMENT
LOWrequirements.txt21charset-normalizer==3.5.1COMMENT
LOWrequirements.txt41 # via -r requirements.inCOMMENT
LOWrequirements.txt61 # viaCOMMENT
LOWrequirements.txt81pycodestyle==2.14.0COMMENT
LOWrequirements.txt101roman-numerals==4.1.0COMMENT
LOWrequirements.txt121 # via sphinxCOMMENT
LOWrequirements.txt141 # via pip-toolsCOMMENT
LOWruntests.sh1#!/bin/shCOMMENT
LOWsetup.py1#COMMENT
LOWtox.ini1# Tox (https://tox.readthedocs.io) is a tool for running testsCOMMENT
LOWtox.ini21 py311,py312,py313,py314,py315,pypy3COMMENT
LOWtox.ini61 # cog.outl(f"{{{",".join(versions)}}}: TORNADO_EXTENSION=1")COMMENT
LOWtox.ini81COMMENT
LOWtox.ini121commands =COMMENT
LOWtornado/options.py1#COMMENT
LOWtornado/auth.py1#COMMENT
LOWtornado/concurrent.py1#COMMENT
LOWtornado/escape.py1#COMMENT
LOWtornado/web.py1#COMMENT
LOWtornado/web.py681 # Legacy check for control characters in cookie values. This check is no longer neededCOMMENT
LOWtornado/web.py2961COMMENT
LOWtornado/web.py3221 # and the path this method returns - refer to the file that willCOMMENT
LOWtornado/web.py3241 403, "cannot redirect path with two initial slashes"COMMENT
LOWtornado/web.py3341 permissions on a directory that untrusted users can write to.COMMENT
LOWtornado/queues.py1# Copyright 2015 The Tornado AuthorsCOMMENT
LOWtornado/_locale_data.py1# Copyright 2012 FacebookCOMMENT
LOWtornado/iostream.py1#COMMENT
LOWtornado/iostream.py601 else:COMMENT
LOWtornado/iostream.py781 # SSL sockets do some internal buffering, and if the data isCOMMENT
LOWtornado/iostream.py821 if self._read_future is not None:COMMENT
LOWtornado/iostream.py1501 def connect(COMMENT
LOWtornado/iostream.py1521 # Call the superclass method to check for errors.COMMENT
LOWtornado/iostream.py1581 # clip buffer size at 1GB since SSL sockets only support upto 2GBCOMMENT
LOWtornado/log.py1#COMMENT
LOWtornado/util.py81 # before the first member and between members, which are the onlyCOMMENT
LOWtornado/locks.py1# Copyright 2015 The Tornado AuthorsCOMMENT
LOWtornado/httpserver.py1#COMMENT
LOWtornado/__init__.py1#COMMENT
LOWtornado/netutil.py1#COMMENT
LOWtornado/netutil.py181 sock.bind(sockaddr)COMMENT
LOWtornado/netutil.py281 # (and rearranging this method to call accept() as many timesCOMMENT
LOWtornado/httputil.py1#COMMENT
LOWtornado/httputil.py281COMMENT
LOWtornado/httputil.py541 #COMMENT
LOWtornado/httputil.py1221 if not match:COMMENT
LOWtornado/ioloop.py1#COMMENT
LOWtornado/ioloop.py781COMMENT
LOWtornado/ioloop.py961 # to the start of the next. If one call takes too long,COMMENT
LOWtornado/routing.py1# Copyright 2015 The Tornado AuthorsCOMMENT
LOWtornado/tcpserver.py1#COMMENT
LOWtornado/template.py1#COMMENT
LOWtornado/locale.py1# Copyright 2009 FacebookCOMMENT
LOWtornado/curl_httpclient.py1#COMMENT
LOWtornado/curl_httpclient.py141 self.curl.pause(pycurl.PAUSE_CONT)COMMENT
LOWtornado/curl_httpclient.py281 try:COMMENT
LOWtornado/process.py1#COMMENT
LOWtornado/autoreload.py1#COMMENT
LOWtornado/autoreload.py41Additionally, modifying these variables will cause reloading to behaveCOMMENT
LOWtornado/autoreload.py61#COMMENT
45 more matches not shown…
Excessive Try-Catch Wrapping75 hits · 78 pts
SeverityFileLineSnippetContext
LOWtornado/options.py657 except Exception:CODE
LOWtornado/concurrent.py63 except Exception:CODE
LOWtornado/web.py1362 except Exception:CODE
LOWtornado/web.py1376 except Exception:CODE
LOWtornado/web.py1649 except Exception:CODE
LOWtornado/web.py2022 except Exception:CODE
LOWtornado/web.py2027 except Exception:CODE
LOWtornado/web.py2071 except Exception:CODE
LOWtornado/web.py3151 except Exception:CODE
LOWtornado/web.py3618 except Exception as e:CODE
LOWtornado/web.py4127 except Exception:CODE
LOWtornado/web.py4190 except Exception:CODE
MEDIUM⚡tornado/httpclient.py75 print("Error: " + str(e))STRING
LOW⚡tornado/httpclient.py76 except Exception as e:STRING
MEDIUM⚡tornado/httpclient.py78 print("Error: " + str(e))STRING
LOWtornado/httpclient.py149 except Exception as e:STRING
MEDIUMtornado/httpclient.py150 print("Error: %s" % e)STRING
LOWtornado/gen.py220 except Exception:CODE
LOWtornado/gen.py242 except Exception:CODE
LOWtornado/gen.py331 except Exception as e:STRING
MEDIUMtornado/gen.py332 print("Error {} from {}".format(e, wait_iterator.current_future))STRING
LOWtornado/gen.py667 except Exception as e:CODE
LOWtornado/gen.py847 except Exception:STRING
MEDIUMtornado/iostream.py806def _handle_read(self) -> None:CODE
LOWtornado/iostream.py760 except Exception as e:CODE
LOWtornado/iostream.py813 except Exception as e:CODE
LOWtornado/iostream.py1450 except Exception:STRING
LOWtornado/log.py68 except Exception:CODE
LOWtornado/log.py190 except Exception as e:STRING
MEDIUMtornado/log.py56def _stderr_supports_color() -> bool:CODE
LOWtornado/httputil.py575 except Exception as e:STRING
LOWtornado/httputil.py588 except Exception:CODE
LOWtornado/httputil.py594 except Exception:CODE
LOWtornado/httputil.py1060 except Exception as e:STRING
LOWtornado/httputil.py1084 except Exception as e:STRING
LOWtornado/ioloop.py505 except Exception:CODE
LOWtornado/ioloop.py775 except Exception:CODE
LOWtornado/ioloop.py944 except Exception:CODE
MEDIUMtornado/ioloop.py498def run() -> None:CODE
LOWtornado/tcpserver.py382 except Exception:CODE
LOWtornado/template.py342 except Exception:CODE
LOWtornado/locale.py212 except Exception as e:CODE
LOWtornado/curl_httpclient.py347 except Exception as e:CODE
LOWtornado/curl_httpclient.py382 except Exception:CODE
LOWtornado/curl_httpclient.py429 except Exception:CODE
LOWtornado/autoreload.py190 except Exception:CODE
LOWtornado/autoreload.py315 except Exception as e:STRING
LOWtornado/testing.py325 except Exception:CODE
MEDIUMtornado/testing.py320def timeout_func() -> None:CODE
LOWtornado/simple_httpclient.py447 except Exception:CODE
MEDIUMtornado/simple_httpclient.py283def run(self) -> None:CODE
LOWtornado/http1connection.py932 except Exception:CODE
LOWtornado/http1connection.py961 except Exception:CODE
LOWtornado/tcpclient.py145 except Exception as e:CODE
LOWtornado/websocket.py995 except Exception:CODE
LOWtornado/test/auth_test.py101 except Exception as e:CODE
MEDIUMtornado/test/httpserver_test.py341def decode_argument(self, value, name=None):CODE
LOWtornado/test/httpserver_test.py344 except Exception:CODE
LOWtornado/test/process_test.py124 except Exception:CODE
LOWtornado/test/twisted_test.py28except Exception:CODE
15 more matches not shown…
Deep Nesting53 hits · 42 pts
SeverityFileLineSnippetContext
LOWtornado/options.py361CODE
LOWtornado/escape.py278CODE
LOWtornado/web.py2175CODE
LOWtornado/web.py3768CODE
LOWtornado/web.py406CODE
LOWtornado/web.py1443CODE
LOWtornado/web.py1957CODE
LOWtornado/web.py2186CODE
LOWtornado/web.py2472CODE
LOWtornado/web.py2487CODE
LOWtornado/web.py3369CODE
LOWtornado/web.py3783CODE
LOWtornado/gen.py517CODE
LOWtornado/gen.py907CODE
LOWtornado/gen.py549CODE
LOWtornado/gen.py795CODE
LOWtornado/iostream.py576CODE
LOWtornado/iostream.py880CODE
LOWtornado/iostream.py947CODE
LOWtornado/iostream.py1432CODE
LOWtornado/log.py56CODE
LOWtornado/netutil.py75CODE
LOWtornado/httputil.py1029CODE
LOWtornado/httputil.py581CODE
LOWtornado/routing.py613CODE
LOWtornado/template.py863CODE
LOWtornado/locale.py91CODE
LOWtornado/locale.py329CODE
LOWtornado/curl_httpclient.py121CODE
LOWtornado/simple_httpclient.py283CODE
LOWtornado/simple_httpclient.py622CODE
LOWtornado/http1connection.py221CODE
LOWtornado/http1connection.py722CODE
LOWtornado/http1connection.py850CODE
LOWtornado/websocket.py1254CODE
LOWtornado/test/httpclient_test.py781CODE
LOWtornado/test/httpserver_test.py395CODE
LOWtornado/test/httpserver_test.py1288CODE
LOWtornado/test/circlerefs_test.py72CODE
LOWtornado/test/gen_test.py924CODE
LOWtornado/test/gen_test.py1008CODE
LOWtornado/test/web_test.py1951CODE
LOWtornado/test/autoreload_test.py105CODE
LOWtornado/test/simple_httpclient_test.py817CODE
LOWtornado/test/httputil_test.py377CODE
LOWtornado/test/util_test.py58CODE
LOWtornado/test/util_test.py91CODE
LOWtornado/test/util_test.py439CODE
LOWtornado/test/iostream_test.py990CODE
LOWtornado/test/iostream_test.py1686CODE
LOWtornado/platform/asyncio.py598CODE
LOWmaint/test/redbot/red_test.py76CODE
LOWdemos/file_upload/file_uploader.py26CODE
Self-Referential Comments14 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py151# Define the canonical URL if you are using a custom domain on Read the DocsCOMMENT
MEDIUMtornado/httpclient.py102 # Create the client while our IOLoop is "current", withoutCOMMENT
MEDIUMtornado/gen.py207 # This function is type-annotated with a comment to work aroundCOMMENT
MEDIUMtornado/iostream.py766 # This method is called from _handle_read and _try_inline_read.COMMENT
MEDIUMtornado/iostream.py1062 # This method is part of an optimization: to detect a connection thatCOMMENT
MEDIUMtornado/httputil.py687 """This method is called by the server when a new request has started.STRING
MEDIUMtornado/httputil.py699 """This method is called when a connection has been closed.STRING
MEDIUMtornado/ioloop.py272 # Create a new asyncio event loop for this thread.COMMENT
MEDIUMtornado/ioloop.py793 # This method is provided for use by `IOLoop` subclasses and shouldCOMMENT
MEDIUMtornado/ioloop.py808 # This method is provided for use by `IOLoop` subclasses (inCOMMENT
MEDIUMtornado/wsgi.py50# This function is like those in the tornado.escape module, but definedCOMMENT
MEDIUMtornado/platform/asyncio.py551 # Create a thread to run the select system call. We manage this threadCOMMENT
MEDIUMtornado/platform/asyncio.py731 # This class is a __getattribute__-based proxy. All attributes other than thoseCOMMENT
MEDIUMdemos/blog/blog.py300 # Create the global connection pool.COMMENT
Modern Structural Boilerplate32 hits · 31 pts
SeverityFileLineSnippetContext
LOWtornado/web.py333 def set_default_headers(self) -> None:CODE
LOWtornado/web.py343 def set_status(self, status_code: int, reason: str | None = None) -> None:CODE
LOWtornado/web.py376 def set_header(self, name: str, value: _HeaderTypes) -> None:CODE
LOWtornado/web.py1906 def set_etag_header(self) -> None:CODE
LOWtornado/web.py3110 def set_headers(self) -> None:CODE
LOWtornado/web.py3522 def set_extra_headers(self, path: str) -> None:CODE
LOWtornado/queues.py42__all__ = ["Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty"]CODE
LOWtornado/queues.py57def _set_timeout(future: Future, timeout: None | float | datetime.timedelta) -> None:CODE
LOWtornado/iostream.py561 def set_close_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWtornado/iostream.py694 def set_nodelay(self, value: bool) -> None:CODE
LOWtornado/iostream.py1370 def set_nodelay(self, value: bool) -> None:STRING
LOWtornado/locks.py24__all__ = ["Condition", "Event", "Semaphore", "BoundedSemaphore", "Lock"]CODE
LOWtornado/__init__.py31__all__ = [CODE
LOWtornado/httputil.py1003def set_parse_body_config(config: ParseBodyConfig) -> None:CODE
LOWtornado/ioloop.py420 def update_handler(self, fd: int | _Selectable, events: int) -> None:CODE
LOWtornado/ioloop.py741 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:CODE
LOWtornado/ioloop.py954 def _update_next(self, current_time: float) -> None:CODE
LOWtornado/locale.py77def set_default_locale(code: str) -> None:CODE
LOWtornado/curl_httpclient.py250 def _set_timeout(self, msecs: int) -> None:CODE
LOWtornado/process.py245 def set_exit_callback(self, callback: Callable[[int], None]) -> None:CODE
LOWtornado/process.py346 def _set_returncode(self, status: int) -> None:CODE
LOWtornado/http1connection.py374 def set_close_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWtornado/http1connection.py422 def set_body_timeout(self, timeout: float) -> None:CODE
LOWtornado/http1connection.py429 def set_max_body_size(self, max_body_size: int) -> None:CODE
LOWtornado/tcpclient.py204 def set_timeout(self, timeout: float) -> None:CODE
LOWtornado/tcpclient.py218 def set_connect_timeout(self, connect_timeout: float | datetime.timedelta) -> None:CODE
LOWtornado/websocket.py582 def set_nodelay(self, value: bool) -> None:CODE
LOWtornado/websocket.py751 def set_nodelay(self, x: bool) -> None:CODE
LOWtornado/websocket.py1377 def set_nodelay(self, x: bool) -> None:CODE
LOWtornado/platform/asyncio.py167 def update_handler(self, fd: int | _Selectable, events: int) -> None:CODE
LOWtornado/platform/asyncio.py266 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:CODE
LOWdemos/tcpecho/server.py11logger = logging.getLogger(__name__)CODE
Unused Imports33 hits · 30 pts
SeverityFileLineSnippetContext
LOWtornado/web.py108CODE
LOWtornado/web.py108CODE
LOWtornado/queues.py28CODE
LOWtornado/httpclient.py46CODE
LOWtornado/httpclient.py46CODE
LOWtornado/gen.py77CODE
LOWtornado/gen.py77CODE
LOWtornado/gen.py77CODE
LOWtornado/gen.py77CODE
LOWtornado/util.py13CODE
LOWtornado/locks.py19CODE
LOWtornado/locks.py19CODE
LOWtornado/httputil.py22CODE
LOWtornado/ioloop.py26CODE
LOWtornado/template.py221CODE
LOWtornado/locale.py40CODE
LOWtornado/testing.py26CODE
LOWtornado/testing.py26CODE
LOWtornado/simple_httpclient.py14CODE
LOWtornado/simple_httpclient.py14CODE
LOWtornado/http1connection.py27CODE
LOWtornado/http1connection.py27CODE
LOWtornado/tcpclient.py25CODE
LOWtornado/websocket.py27CODE
LOWtornado/websocket.py27CODE
LOWtornado/wsgi.py45CODE
LOWtornado/test/httpclient_test.py24CODE
LOWtornado/test/twisted_test.py38CODE
LOWtornado/test/ioloop_test.py12CODE
LOWtornado/test/ioloop_test.py18CODE
LOWtornado/test/websocket_test.py29CODE
LOWtornado/platform/asyncio.py49CODE
LOWtornado/platform/caresresolver.py3CODE
AI Slop Vocabulary10 hits · 20 pts
SeverityFileLineSnippetContext
LOWtox.ini127 # here (must be completely unset, not just set to zero/empty). Remove thisCOMMENT
LOWtornado/httpclient.py208 # It can't simply call _async_clients() because we may be inCOMMENT
LOWtornado/iostream.py1595 # simply return 0 bytes written.STRING
MEDIUMtornado/template.py912 # This is especially useful in conjunction with jquery templates,COMMENT
MEDIUMtornado/curl_httpclient.py461 # a bug in conjunction with the curl_multi_socket_action APICOMMENT
LOWtornado/test/httpserver_test.py831 # Unix sockets don't have remote addresses so they just return anSTRING
MEDIUMtornado/test/circlerefs_test.py119 # Construct a known leak scenario to make sure the test harness works.COMMENT
MEDIUMtornado/test/web_test.py1691 # to disable Tornado's path validation (in conjunction withCOMMENT
MEDIUMtornado/test/tcpserver_test.py156 # harness too.COMMENT
LOWtornado/platform/asyncio.py634 # polling the waker alone. If we are, just return to theCOMMENT
AI Structural Patterns10 hits · 9 pts
SeverityFileLineSnippetContext
LOWtornado/options.py525CODE
LOWtornado/web.py641CODE
LOWtornado/httpclient.py137CODE
LOWtornado/httpclient.py358CODE
LOWtornado/httpclient.py634CODE
LOWtornado/httpserver.py159CODE
LOWtornado/netutil.py441CODE
LOWtornado/httputil.py479CODE
LOWtornado/websocket.py1696CODE
LOWtornado/test/gen_test.py397CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtornado/autoreload.py50# -----------------COMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHtornado/web.py2147 * `.HTTPServerRequest.body` is undefined, and body arguments will notSTRING
Overly Generic Function Names4 hits · 2 pts
SeverityFileLineSnippetContext
LOWtornado/wsgi.py134 async def handle_request(self, request: httputil.HTTPServerRequest) -> None:STRING
LOWtornado/test/httpserver_test.py1511 def handle_request(request):STRING
LOWtornado/test/gen_test.py1123 def do_something():CODE
LOWtornado/test/gen_test.py1158 def do_something():CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtornado/web.py3444 # Close the file now, rather than when the generator is collected,COMMENT
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMtornado/routing.py64Here is a simple example of how we can we route toSTRING