Repository Analysis

tornadoweb/tornado

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

13.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tornadoweb/tornado, a Python project with 22,190 GitHub stars. SynthScan v2.0 examined 48,902 lines of code across 172 source files, recording 681 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 13.8 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).

13.8
Adjusted Score
13.8
Raw Score
100%
Time Factor
2026-07-08
Last Push
22.2K
Stars
Python
Language
48.9K
Lines of Code
172
Files
681
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 1MEDIUM 35LOW 645

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 681 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers372 hits · 342 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.py178def future_set_result_unless_cancelled(CODE
LOWtornado/concurrent.py192def future_set_exception_unless_cancelled(CODE
LOWtornado/web.py163class RequestHandler:CODE
LOWtornado/web.py915 def get_signed_cookie_key_version(CODE
LOWtornado/web.py1903 def _handle_request_exception(self, e: BaseException) -> None:CODE
LOWtornado/web.py1968 def _clear_representation_headers(self) -> None:CODE
LOWtornado/web.py3776def get_signature_key_version(value: str | bytes) -> int | None:CODE
LOWtornado/gen.py126def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any:CODE
LOWtornado/iostream.py991 def _maybe_add_error_listener(self) -> None:CODE
LOWtornado/httputil.py1059def parse_multipart_form_data(STRING
LOWtornado/httputil.py1181def parse_response_start_line(line: str) -> ResponseStartLine:STRING
LOWtornado/locale.py178def load_gettext_translations(directory: str, domain: str) -> None:CODE
LOWtornado/curl_httpclient.py289 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.py871def is_transfer_encoding_chunked(headers: httputil.HTTPHeaders) -> bool:CODE
LOWtornado/websocket.py635def _raise_not_supported_for_websockets(*args: Any, **kwargs: Any) -> None:CODE
LOWtornado/websocket.py895 def _handle_websocket_headers(self, handler: WebSocketHandler) -> None:CODE
LOWtornado/test/httpclient_test.py109 def _clear_representation_headers(self):CODE
LOWtornado/test/httpclient_test.py204 def test_patch_receives_payload(self):CODE
LOWtornado/test/httpclient_test.py285 def test_basic_auth_explicit_mode(self):STRING
LOWtornado/test/httpclient_test.py311 def test_unsupported_auth_mode(self):STRING
LOWtornado/test/httpclient_test.py335 def test_redirect_without_location(self):STRING
LOWtornado/test/httpclient_test.py343 def test_redirect_put_with_body(self):STRING
LOWtornado/test/httpclient_test.py349 def test_redirect_put_without_body(self):STRING
LOWtornado/test/httpclient_test.py358 def test_method_after_redirect(self):STRING
LOWtornado/test/httpclient_test.py497 def test_header_callback_to_parse_line(self):STRING
LOWtornado/test/httpclient_test.py604 def test_future_http_error_no_raise(self):STRING
LOWtornado/test/httpclient_test.py611 def test_reuse_request_from_response(self):STRING
LOWtornado/test/httpclient_test.py773 def test_strip_headers_on_redirect(self):STRING
LOWtornado/test/httpclient_test.py997 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
LOWtornado/test/httpserver_test.py461 def test_invalid_host_header_with_whitespace(self):CODE
LOWtornado/test/httpserver_test.py473 def test_chunked_request_body(self):CODE
LOWtornado/test/httpserver_test.py1399 def test_large_body_buffered_chunked(self):STRING
LOWtornado/test/httpserver_test.py1409 def test_large_body_streaming(self):STRING
LOWtornado/test/httpserver_test.py1415 def test_large_body_streaming_chunked(self):STRING
LOWtornado/test/httpserver_test.py1424 def test_large_body_streaming_override(self):STRING
LOWtornado/test/httpserver_test.py1430 def test_large_body_streaming_chunked_override(self):STRING
LOWtornado/test/httpserver_test.py494 def test_chunked_request_uppercase(self):STRING
312 more matches not shown…
Excessive Try-Catch Wrapping76 hits · 80 pts
SeverityFileLineSnippetContext
LOWtornado/options.py657 except Exception:CODE
LOWtornado/concurrent.py63 except Exception:CODE
LOWtornado/web.py1348 except Exception:CODE
LOWtornado/web.py1362 except Exception:CODE
LOWtornado/web.py1633 except Exception:CODE
LOWtornado/web.py1864 except Exception as e:CODE
LOWtornado/web.py1867 except Exception:CODE
LOWtornado/web.py1911 except Exception:CODE
LOWtornado/web.py2908 except Exception:CODE
LOWtornado/web.py3206 except Exception:CODE
LOWtornado/web.py3712 except Exception:CODE
LOWtornado/web.py3772 except Exception:CODE
MEDIUMtornado/httpclient.py75 print("Error: " + str(e))STRING
LOWtornado/httpclient.py76 except Exception as e:STRING
MEDIUMtornado/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.py208 except Exception:CODE
LOWtornado/gen.py228 except Exception:CODE
LOWtornado/gen.py317 except Exception as e:STRING
MEDIUMtornado/gen.py318 print("Error {} from {}".format(e, wait_iterator.current_future))STRING
LOWtornado/gen.py531 except Exception as e:CODE
LOWtornado/gen.py628 except Exception as e:CODE
LOWtornado/gen.py768 except Exception as e:STRING
LOWtornado/gen.py796 except Exception:STRING
LOWtornado/iostream.py716 except Exception as e:CODE
LOWtornado/iostream.py769 except Exception as e:CODE
LOWtornado/iostream.py1367 except Exception:STRING
MEDIUMtornado/iostream.py762def _handle_read(self) -> None:CODE
LOWtornado/log.py68 except Exception:CODE
LOWtornado/log.py190 except Exception as e:STRING
MEDIUMtornado/log.py56def _stderr_supports_color() -> bool:CODE
LOWtornado/httputil.py583 except Exception:CODE
LOWtornado/httputil.py589 except Exception:CODE
LOWtornado/httputil.py1031 except Exception as e:STRING
LOWtornado/httputil.py1055 except Exception as e:STRING
LOWtornado/ioloop.py501 except Exception:CODE
LOWtornado/ioloop.py771 except Exception:CODE
LOWtornado/ioloop.py940 except Exception:CODE
MEDIUMtornado/ioloop.py494def run() -> None:CODE
LOWtornado/tcpserver.py382 except Exception:CODE
LOWtornado/template.py329 except Exception:CODE
LOWtornado/locale.py212 except Exception as e:CODE
LOWtornado/curl_httpclient.py216 except Exception as e:CODE
LOWtornado/curl_httpclient.py284 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.py440 except Exception:CODE
MEDIUMtornado/simple_httpclient.py283def run(self) -> None:CODE
LOWtornado/http1connection.py809 except Exception:CODE
LOWtornado/http1connection.py842 except Exception:CODE
LOWtornado/tcpclient.py136 except Exception as e:CODE
LOWtornado/websocket.py658 except Exception:CODE
LOWtornado/websocket.py964 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.py125 except Exception:CODE
16 more matches not shown…
Over-Commented Block83 hits · 80 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1#COMMENT
LOWrequirements.txt21click==8.3.1COMMENT
LOWrequirements.txt41 # via requestsCOMMENT
LOWrequirements.txt61 # buildCOMMENT
LOWrequirements.txt81 # via flake8COMMENT
LOWrequirements.txt101 # via sphinxCOMMENT
LOWrequirements.txt121sphinxcontrib-serializinghtml==2.0.0COMMENT
LOWruntests.sh1#!/bin/shCOMMENT
LOWsetup.py1#COMMENT
LOWtox.ini1# Tox (https://tox.readthedocs.io) is a tool for running testsCOMMENT
LOWtox.ini21 py310,py311,py312,py313,py314,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 # in the next feature release.COMMENT
LOWtornado/web.py2801 and (start >= size or (end is not None and start >= end))COMMENT
LOWtornado/web.py2961 # abspath always removes a trailing slash, except whenCOMMENT
LOWtornado/web.py3581 # The v2 format consists of a version number and a series ofCOMMENT
LOWtornado/queues.py1# Copyright 2015 The Tornado AuthorsCOMMENT
LOWtornado/_locale_data.py1# Copyright 2012 FacebookCOMMENT
LOWtornado/iostream.py1#COMMENT
LOWtornado/iostream.py781 # StreamClosedError instead of AssertionError. In particular, thisCOMMENT
LOWtornado/iostream.py1421 self._server_hostname = server_hostnameCOMMENT
LOWtornado/log.py1#COMMENT
LOWtornado/locks.py1# Copyright 2015 The Tornado AuthorsCOMMENT
LOWtornado/httpserver.py1#COMMENT
LOWtornado/__init__.py1#COMMENT
LOWtornado/netutil.py1#COMMENT
LOWtornado/netutil.py161 try:COMMENT
LOWtornado/netutil.py261 # entered this method, but this information is not availableCOMMENT
LOWtornado/httputil.py1#COMMENT
LOWtornado/httputil.py301 # expecting both callers to decode the headers to strings before parsing them. This wasn't aCOMMENT
LOWtornado/httputil.py541 raise HTTPInputError("Missing Host header")COMMENT
LOWtornado/httputil.py1201# combinations of semicolons and double quotes.COMMENT
LOWtornado/ioloop.py1#COMMENT
LOWtornado/ioloop.py781 # We accept both raw file descriptors and file-like objects asCOMMENT
LOWtornado/ioloop.py961 math.floor((current_time - self._next_timeout) / callback_time_sec) + 1COMMENT
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.py161 # In theory, we shouldn't have to do this because curl willCOMMENT
LOWtornado/process.py1#COMMENT
LOWtornado/autoreload.py1#COMMENT
LOWtornado/autoreload.py41Additionally, modifying these variables will cause reloading to behaveCOMMENT
LOWtornado/autoreload.py61#COMMENT
LOWtornado/testing.py161 def tearDown(self) -> None:COMMENT
LOWtornado/http1connection.py1#COMMENT
LOWtornado/http1connection.py141 self._body_timeout = self.params.body_timeoutCOMMENT
LOWtornado/tcpclient.py1#COMMENT
LOWtornado/wsgi.py1#COMMENT
LOWtornado/test/httpclient_test.py681 )COMMENT
LOWtornado/test/queues_test.py1# Licensed under the Apache License, Version 2.0 (the "License"); you mayCOMMENT
LOWtornado/test/twisted_test.py1# Author: Ovidiu PredescuCOMMENT
23 more matches not shown…
Deep Nesting45 hits · 40 pts
SeverityFileLineSnippetContext
LOWtornado/options.py361CODE
LOWtornado/escape.py266CODE
LOWtornado/web.py2015CODE
LOWtornado/web.py3356CODE
LOWtornado/web.py404CODE
LOWtornado/web.py1427CODE
LOWtornado/web.py2026CODE
LOWtornado/web.py2312CODE
LOWtornado/web.py2327CODE
LOWtornado/web.py2995CODE
LOWtornado/web.py3371CODE
LOWtornado/gen.py492CODE
LOWtornado/gen.py856CODE
LOWtornado/gen.py524CODE
LOWtornado/gen.py750CODE
LOWtornado/iostream.py551CODE
LOWtornado/iostream.py836CODE
LOWtornado/iostream.py892CODE
LOWtornado/iostream.py1349CODE
LOWtornado/log.py56CODE
LOWtornado/netutil.py56CODE
LOWtornado/httputil.py1004CODE
LOWtornado/httputil.py576CODE
LOWtornado/routing.py613CODE
LOWtornado/template.py844CODE
LOWtornado/locale.py91CODE
LOWtornado/locale.py329CODE
LOWtornado/simple_httpclient.py283CODE
LOWtornado/simple_httpclient.py615CODE
LOWtornado/http1connection.py187CODE
LOWtornado/http1connection.py645CODE
LOWtornado/http1connection.py659CODE
LOWtornado/http1connection.py733CODE
LOWtornado/websocket.py1216CODE
LOWtornado/test/httpserver_test.py395CODE
LOWtornado/test/httpserver_test.py1265CODE
LOWtornado/test/circlerefs_test.py64CODE
LOWtornado/test/gen_test.py795CODE
LOWtornado/test/gen_test.py860CODE
LOWtornado/test/autoreload_test.py103CODE
LOWtornado/test/httputil_test.py389CODE
LOWtornado/test/util_test.py316CODE
LOWtornado/platform/asyncio.py570CODE
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.py200 # This function is type-annotated with a comment to work aroundCOMMENT
MEDIUMtornado/iostream.py722 # This method is called from _handle_read and _try_inline_read.COMMENT
MEDIUMtornado/iostream.py992 # This method is part of an optimization: to detect a connection thatCOMMENT
MEDIUMtornado/httputil.py682 """This method is called by the server when a new request has started.STRING
MEDIUMtornado/httputil.py694 """This method is called when a connection has been closed.STRING
MEDIUMtornado/ioloop.py268 # Create a new asyncio event loop for this thread.COMMENT
MEDIUMtornado/ioloop.py789 # This method is provided for use by `IOLoop` subclasses and shouldCOMMENT
MEDIUMtornado/ioloop.py804 # 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.py523 # Create a thread to run the select system call. We manage this threadCOMMENT
MEDIUMtornado/platform/asyncio.py703 # 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 · 32 pts
SeverityFileLineSnippetContext
LOWtornado/web.py331 def set_default_headers(self) -> None:CODE
LOWtornado/web.py341 def set_status(self, status_code: int, reason: str | None = None) -> None:CODE
LOWtornado/web.py374 def set_header(self, name: str, value: _HeaderTypes) -> None:CODE
LOWtornado/web.py1758 def set_etag_header(self) -> None:CODE
LOWtornado/web.py2867 def set_headers(self) -> None:CODE
LOWtornado/web.py3118 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.py536 def set_close_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWtornado/iostream.py650 def set_nodelay(self, value: bool) -> None:CODE
LOWtornado/iostream.py1289 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.py978def set_parse_body_config(config: ParseBodyConfig) -> None:CODE
LOWtornado/ioloop.py416 def update_handler(self, fd: int | _Selectable, events: int) -> None:CODE
LOWtornado/ioloop.py737 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:CODE
LOWtornado/ioloop.py950 def _update_next(self, current_time: float) -> None:CODE
LOWtornado/locale.py77def set_default_locale(code: str) -> None:CODE
LOWtornado/curl_httpclient.py123 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.py321 def set_close_callback(self, callback: Callable[[], None] | None) -> None:CODE
LOWtornado/http1connection.py369 def set_body_timeout(self, timeout: float) -> None:CODE
LOWtornado/http1connection.py376 def set_max_body_size(self, max_body_size: int) -> None:CODE
LOWtornado/tcpclient.py158 def set_timeout(self, timeout: float) -> None:CODE
LOWtornado/tcpclient.py172 def set_connect_timeout(self, connect_timeout: float | datetime.timedelta) -> None:CODE
LOWtornado/websocket.py566 def set_nodelay(self, value: bool) -> None:CODE
LOWtornado/websocket.py726 def set_nodelay(self, x: bool) -> None:CODE
LOWtornado/websocket.py1308 def set_nodelay(self, x: bool) -> None:CODE
LOWtornado/platform/asyncio.py170 def update_handler(self, fd: int | _Selectable, events: int) -> None:CODE
LOWtornado/platform/asyncio.py269 def set_default_executor(self, executor: concurrent.futures.Executor) -> None:CODE
LOWdemos/tcpecho/server.py11logger = logging.getLogger(__name__)CODE
Unused Imports32 hits · 30 pts
SeverityFileLineSnippetContext
LOWtornado/web.py106CODE
LOWtornado/web.py106CODE
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.py208CODE
LOWtornado/locale.py40CODE
LOWtornado/testing.py26CODE
LOWtornado/testing.py26CODE
LOWtornado/simple_httpclient.py14CODE
LOWtornado/simple_httpclient.py14CODE
LOWtornado/http1connection.py26CODE
LOWtornado/http1connection.py26CODE
LOWtornado/tcpclient.py24CODE
LOWtornado/websocket.py27CODE
LOWtornado/websocket.py27CODE
LOWtornado/wsgi.py45CODE
LOWtornado/test/twisted_test.py37CODE
LOWtornado/test/ioloop_test.py12CODE
LOWtornado/test/ioloop_test.py18CODE
LOWtornado/test/websocket_test.py23CODE
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.py1512 # simply return 0 bytes written.STRING
MEDIUMtornado/template.py893 # This is especially useful in conjunction with jquery templates,COMMENT
MEDIUMtornado/curl_httpclient.py316 # 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.py106 # Construct a known leak scenario to make sure the test harness works.COMMENT
MEDIUMtornado/test/web_test.py1540 # to disable Tornado's path validation (in conjunction withCOMMENT
MEDIUMtornado/test/tcpserver_test.py141 # harness too.COMMENT
LOWtornado/platform/asyncio.py606 # polling the waker alone. If we are, just return to theCOMMENT
AI Structural Patterns10 hits · 9 pts
SeverityFileLineSnippetContext
LOWtornado/options.py525CODE
LOWtornado/web.py639CODE
LOWtornado/httpclient.py137CODE
LOWtornado/httpclient.py358CODE
LOWtornado/httpclient.py629CODE
LOWtornado/httpserver.py159CODE
LOWtornado/netutil.py422CODE
LOWtornado/httputil.py486CODE
LOWtornado/websocket.py1627CODE
LOWtornado/test/gen_test.py374CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtornado/autoreload.py50# -----------------COMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHtornado/web.py1987 * `.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.py1488 def handle_request(request):STRING
LOWtornado/test/gen_test.py975 def do_something():CODE
LOWtornado/test/gen_test.py1010 def do_something():CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
MEDIUMtornado/routing.py64Here is a simple example of how we can we route toSTRING