Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
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).
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.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/conf.py | 139 | def missing_reference_handler(app, env, node, contnode): | CODE |
| LOW | tornado/auth.py | 227 | def _on_authentication_verified( | CODE |
| LOW | tornado/auth.py | 520 | def _oauth_request_parameters( | CODE |
| LOW | tornado/auth.py | 890 | def get_google_oauth_settings(self) -> dict[str, str]: | CODE |
| LOW | tornado/concurrent.py | 117 | def run_on_executor_decorator(fn: Callable) -> Callable[..., Future]: | CODE |
| LOW | tornado/concurrent.py | 178 | def future_set_result_unless_cancelled( | CODE |
| LOW | tornado/concurrent.py | 192 | def future_set_exception_unless_cancelled( | CODE |
| LOW | tornado/web.py | 163 | class RequestHandler: | CODE |
| LOW | tornado/web.py | 915 | def get_signed_cookie_key_version( | CODE |
| LOW | tornado/web.py | 1903 | def _handle_request_exception(self, e: BaseException) -> None: | CODE |
| LOW | tornado/web.py | 1968 | def _clear_representation_headers(self) -> None: | CODE |
| LOW | tornado/web.py | 3776 | def get_signature_key_version(value: str | bytes) -> int | None: | CODE |
| LOW | tornado/gen.py | 126 | def _value_from_stopiteration(e: Union[StopIteration, "Return"]) -> Any: | CODE |
| LOW | tornado/iostream.py | 991 | def _maybe_add_error_listener(self) -> None: | CODE |
| LOW | tornado/httputil.py | 1059 | def parse_multipart_form_data( | STRING |
| LOW | tornado/httputil.py | 1181 | def parse_response_start_line(line: str) -> ResponseStartLine: | STRING |
| LOW | tornado/locale.py | 178 | def load_gettext_translations(directory: str, domain: str) -> None: | CODE |
| LOW | tornado/curl_httpclient.py | 289 | def handle_callback_exception(self, callback: Any) -> None: | CODE |
| LOW | tornado/testing.py | 753 | def setup_with_context_manager(testcase: unittest.TestCase, cm: Any) -> Any: | CODE |
| LOW | tornado/http1connection.py | 871 | def is_transfer_encoding_chunked(headers: httputil.HTTPHeaders) -> bool: | CODE |
| LOW | tornado/websocket.py | 635 | def _raise_not_supported_for_websockets(*args: Any, **kwargs: Any) -> None: | CODE |
| LOW | tornado/websocket.py | 895 | def _handle_websocket_headers(self, handler: WebSocketHandler) -> None: | CODE |
| LOW | tornado/test/httpclient_test.py | 109 | def _clear_representation_headers(self): | CODE |
| LOW | tornado/test/httpclient_test.py | 204 | def test_patch_receives_payload(self): | CODE |
| LOW | tornado/test/httpclient_test.py | 285 | def test_basic_auth_explicit_mode(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 311 | def test_unsupported_auth_mode(self): | STRING |
| LOW⚡ | tornado/test/httpclient_test.py | 335 | def test_redirect_without_location(self): | STRING |
| LOW⚡ | tornado/test/httpclient_test.py | 343 | def test_redirect_put_with_body(self): | STRING |
| LOW⚡ | tornado/test/httpclient_test.py | 349 | def test_redirect_put_without_body(self): | STRING |
| LOW⚡ | tornado/test/httpclient_test.py | 358 | def test_method_after_redirect(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 497 | def test_header_callback_to_parse_line(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 604 | def test_future_http_error_no_raise(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 611 | def test_reuse_request_from_response(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 773 | def test_strip_headers_on_redirect(self): | STRING |
| LOW | tornado/test/httpclient_test.py | 997 | def test_if_modified_since_naive_deprecated(self): | STRING |
| LOW | tornado/test/queues_test.py | 88 | def test_nonblocking_get_exception(self): | CODE |
| LOW | tornado/test/queues_test.py | 129 | def test_get_timeout_preempted(self): | CODE |
| LOW | tornado/test/queues_test.py | 137 | def test_get_clears_timed_out_putters(self): | CODE |
| LOW | tornado/test/queues_test.py | 153 | def test_get_clears_timed_out_getters(self): | CODE |
| LOW | tornado/test/queues_test.py | 192 | def test_nonblocking_put_exception(self): | CODE |
| LOW | tornado/test/queues_test.py | 208 | def test_nonblocking_put_with_getters(self): | CODE |
| LOW | tornado/test/queues_test.py | 251 | def test_put_timeout_preempted(self): | CODE |
| LOW | tornado/test/queues_test.py | 260 | def test_put_clears_timed_out_putters(self): | CODE |
| LOW | tornado/test/queues_test.py | 275 | def test_put_clears_timed_out_getters(self): | CODE |
| LOW | tornado/test/auth_test.py | 497 | def test_twitter_redirect_gen_coroutine(self): | CODE |
| LOW | tornado/test/auth_test.py | 500 | def test_twitter_authenticate_redirect(self): | CODE |
| LOW | tornado/test/auth_test.py | 544 | def test_twitter_show_user_error(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 85 | class HelloWorldRequestHandler(RequestHandler): | CODE |
| LOW | tornado/test/httpserver_test.py | 360 | def test_query_string_encoding(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 370 | def test_empty_post_parameters(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 433 | def test_malformed_first_line_response(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 443 | def test_malformed_first_line_log(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 461 | def test_invalid_host_header_with_whitespace(self): | CODE |
| LOW | tornado/test/httpserver_test.py | 473 | def test_chunked_request_body(self): | CODE |
| LOW⚡ | tornado/test/httpserver_test.py | 1399 | def test_large_body_buffered_chunked(self): | STRING |
| LOW⚡ | tornado/test/httpserver_test.py | 1409 | def test_large_body_streaming(self): | STRING |
| LOW⚡ | tornado/test/httpserver_test.py | 1415 | def test_large_body_streaming_chunked(self): | STRING |
| LOW⚡ | tornado/test/httpserver_test.py | 1424 | def test_large_body_streaming_override(self): | STRING |
| LOW⚡ | tornado/test/httpserver_test.py | 1430 | def test_large_body_streaming_chunked_override(self): | STRING |
| LOW | tornado/test/httpserver_test.py | 494 | def test_chunked_request_uppercase(self): | STRING |
| 312 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/options.py | 657 | except Exception: | CODE |
| LOW | tornado/concurrent.py | 63 | except Exception: | CODE |
| LOW | tornado/web.py | 1348 | except Exception: | CODE |
| LOW | tornado/web.py | 1362 | except Exception: | CODE |
| LOW | tornado/web.py | 1633 | except Exception: | CODE |
| LOW | tornado/web.py | 1864 | except Exception as e: | CODE |
| LOW | tornado/web.py | 1867 | except Exception: | CODE |
| LOW | tornado/web.py | 1911 | except Exception: | CODE |
| LOW | tornado/web.py | 2908 | except Exception: | CODE |
| LOW | tornado/web.py | 3206 | except Exception: | CODE |
| LOW | tornado/web.py | 3712 | except Exception: | CODE |
| LOW | tornado/web.py | 3772 | except Exception: | CODE |
| MEDIUM⚡ | tornado/httpclient.py | 75 | print("Error: " + str(e)) | STRING |
| LOW⚡ | tornado/httpclient.py | 76 | except Exception as e: | STRING |
| MEDIUM⚡ | tornado/httpclient.py | 78 | print("Error: " + str(e)) | STRING |
| LOW | tornado/httpclient.py | 149 | except Exception as e: | STRING |
| MEDIUM | tornado/httpclient.py | 150 | print("Error: %s" % e) | STRING |
| LOW | tornado/gen.py | 208 | except Exception: | CODE |
| LOW | tornado/gen.py | 228 | except Exception: | CODE |
| LOW | tornado/gen.py | 317 | except Exception as e: | STRING |
| MEDIUM | tornado/gen.py | 318 | print("Error {} from {}".format(e, wait_iterator.current_future)) | STRING |
| LOW | tornado/gen.py | 531 | except Exception as e: | CODE |
| LOW | tornado/gen.py | 628 | except Exception as e: | CODE |
| LOW | tornado/gen.py | 768 | except Exception as e: | STRING |
| LOW | tornado/gen.py | 796 | except Exception: | STRING |
| LOW | tornado/iostream.py | 716 | except Exception as e: | CODE |
| LOW | tornado/iostream.py | 769 | except Exception as e: | CODE |
| LOW | tornado/iostream.py | 1367 | except Exception: | STRING |
| MEDIUM | tornado/iostream.py | 762 | def _handle_read(self) -> None: | CODE |
| LOW | tornado/log.py | 68 | except Exception: | CODE |
| LOW | tornado/log.py | 190 | except Exception as e: | STRING |
| MEDIUM | tornado/log.py | 56 | def _stderr_supports_color() -> bool: | CODE |
| LOW | tornado/httputil.py | 583 | except Exception: | CODE |
| LOW | tornado/httputil.py | 589 | except Exception: | CODE |
| LOW | tornado/httputil.py | 1031 | except Exception as e: | STRING |
| LOW | tornado/httputil.py | 1055 | except Exception as e: | STRING |
| LOW | tornado/ioloop.py | 501 | except Exception: | CODE |
| LOW | tornado/ioloop.py | 771 | except Exception: | CODE |
| LOW | tornado/ioloop.py | 940 | except Exception: | CODE |
| MEDIUM | tornado/ioloop.py | 494 | def run() -> None: | CODE |
| LOW | tornado/tcpserver.py | 382 | except Exception: | CODE |
| LOW | tornado/template.py | 329 | except Exception: | CODE |
| LOW | tornado/locale.py | 212 | except Exception as e: | CODE |
| LOW | tornado/curl_httpclient.py | 216 | except Exception as e: | CODE |
| LOW | tornado/curl_httpclient.py | 284 | except Exception: | CODE |
| LOW | tornado/autoreload.py | 190 | except Exception: | CODE |
| LOW | tornado/autoreload.py | 315 | except Exception as e: | STRING |
| LOW | tornado/testing.py | 325 | except Exception: | CODE |
| MEDIUM | tornado/testing.py | 320 | def timeout_func() -> None: | CODE |
| LOW | tornado/simple_httpclient.py | 440 | except Exception: | CODE |
| MEDIUM | tornado/simple_httpclient.py | 283 | def run(self) -> None: | CODE |
| LOW | tornado/http1connection.py | 809 | except Exception: | CODE |
| LOW | tornado/http1connection.py | 842 | except Exception: | CODE |
| LOW | tornado/tcpclient.py | 136 | except Exception as e: | CODE |
| LOW | tornado/websocket.py | 658 | except Exception: | CODE |
| LOW | tornado/websocket.py | 964 | except Exception: | CODE |
| LOW | tornado/test/auth_test.py | 101 | except Exception as e: | CODE |
| MEDIUM | tornado/test/httpserver_test.py | 341 | def decode_argument(self, value, name=None): | CODE |
| LOW | tornado/test/httpserver_test.py | 344 | except Exception: | CODE |
| LOW | tornado/test/process_test.py | 125 | except Exception: | CODE |
| 16 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | requirements.txt | 1 | # | COMMENT |
| LOW | requirements.txt | 21 | click==8.3.1 | COMMENT |
| LOW | requirements.txt | 41 | # via requests | COMMENT |
| LOW | requirements.txt | 61 | # build | COMMENT |
| LOW | requirements.txt | 81 | # via flake8 | COMMENT |
| LOW | requirements.txt | 101 | # via sphinx | COMMENT |
| LOW | requirements.txt | 121 | sphinxcontrib-serializinghtml==2.0.0 | COMMENT |
| LOW | runtests.sh | 1 | #!/bin/sh | COMMENT |
| LOW | setup.py | 1 | # | COMMENT |
| LOW | tox.ini | 1 | # Tox (https://tox.readthedocs.io) is a tool for running tests | COMMENT |
| LOW | tox.ini | 21 | py310,py311,py312,py313,py314,pypy3 | COMMENT |
| LOW | tox.ini | 61 | # cog.outl(f"{{{",".join(versions)}}}: TORNADO_EXTENSION=1") | COMMENT |
| LOW | tox.ini | 81 | COMMENT | |
| LOW | tox.ini | 121 | commands = | COMMENT |
| LOW | tornado/options.py | 1 | # | COMMENT |
| LOW | tornado/auth.py | 1 | # | COMMENT |
| LOW | tornado/concurrent.py | 1 | # | COMMENT |
| LOW | tornado/escape.py | 1 | # | COMMENT |
| LOW | tornado/web.py | 1 | # | COMMENT |
| LOW | tornado/web.py | 681 | # in the next feature release. | COMMENT |
| LOW | tornado/web.py | 2801 | and (start >= size or (end is not None and start >= end)) | COMMENT |
| LOW | tornado/web.py | 2961 | # abspath always removes a trailing slash, except when | COMMENT |
| LOW | tornado/web.py | 3581 | # The v2 format consists of a version number and a series of | COMMENT |
| LOW | tornado/queues.py | 1 | # Copyright 2015 The Tornado Authors | COMMENT |
| LOW | tornado/_locale_data.py | 1 | # Copyright 2012 Facebook | COMMENT |
| LOW | tornado/iostream.py | 1 | # | COMMENT |
| LOW | tornado/iostream.py | 781 | # StreamClosedError instead of AssertionError. In particular, this | COMMENT |
| LOW | tornado/iostream.py | 1421 | self._server_hostname = server_hostname | COMMENT |
| LOW | tornado/log.py | 1 | # | COMMENT |
| LOW | tornado/locks.py | 1 | # Copyright 2015 The Tornado Authors | COMMENT |
| LOW | tornado/httpserver.py | 1 | # | COMMENT |
| LOW | tornado/__init__.py | 1 | # | COMMENT |
| LOW | tornado/netutil.py | 1 | # | COMMENT |
| LOW | tornado/netutil.py | 161 | try: | COMMENT |
| LOW | tornado/netutil.py | 261 | # entered this method, but this information is not available | COMMENT |
| LOW | tornado/httputil.py | 1 | # | COMMENT |
| LOW | tornado/httputil.py | 301 | # expecting both callers to decode the headers to strings before parsing them. This wasn't a | COMMENT |
| LOW | tornado/httputil.py | 541 | raise HTTPInputError("Missing Host header") | COMMENT |
| LOW | tornado/httputil.py | 1201 | # combinations of semicolons and double quotes. | COMMENT |
| LOW | tornado/ioloop.py | 1 | # | COMMENT |
| LOW | tornado/ioloop.py | 781 | # We accept both raw file descriptors and file-like objects as | COMMENT |
| LOW | tornado/ioloop.py | 961 | math.floor((current_time - self._next_timeout) / callback_time_sec) + 1 | COMMENT |
| LOW | tornado/routing.py | 1 | # Copyright 2015 The Tornado Authors | COMMENT |
| LOW | tornado/tcpserver.py | 1 | # | COMMENT |
| LOW | tornado/template.py | 1 | # | COMMENT |
| LOW | tornado/locale.py | 1 | # Copyright 2009 Facebook | COMMENT |
| LOW | tornado/curl_httpclient.py | 1 | # | COMMENT |
| LOW | tornado/curl_httpclient.py | 161 | # In theory, we shouldn't have to do this because curl will | COMMENT |
| LOW | tornado/process.py | 1 | # | COMMENT |
| LOW | tornado/autoreload.py | 1 | # | COMMENT |
| LOW | tornado/autoreload.py | 41 | Additionally, modifying these variables will cause reloading to behave | COMMENT |
| LOW | tornado/autoreload.py | 61 | # | COMMENT |
| LOW | tornado/testing.py | 161 | def tearDown(self) -> None: | COMMENT |
| LOW | tornado/http1connection.py | 1 | # | COMMENT |
| LOW | tornado/http1connection.py | 141 | self._body_timeout = self.params.body_timeout | COMMENT |
| LOW | tornado/tcpclient.py | 1 | # | COMMENT |
| LOW | tornado/wsgi.py | 1 | # | COMMENT |
| LOW | tornado/test/httpclient_test.py | 681 | ) | COMMENT |
| LOW | tornado/test/queues_test.py | 1 | # Licensed under the Apache License, Version 2.0 (the "License"); you may | COMMENT |
| LOW | tornado/test/twisted_test.py | 1 | # Author: Ovidiu Predescu | COMMENT |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/options.py | 361 | CODE | |
| LOW | tornado/escape.py | 266 | CODE | |
| LOW | tornado/web.py | 2015 | CODE | |
| LOW | tornado/web.py | 3356 | CODE | |
| LOW | tornado/web.py | 404 | CODE | |
| LOW | tornado/web.py | 1427 | CODE | |
| LOW | tornado/web.py | 2026 | CODE | |
| LOW | tornado/web.py | 2312 | CODE | |
| LOW | tornado/web.py | 2327 | CODE | |
| LOW | tornado/web.py | 2995 | CODE | |
| LOW | tornado/web.py | 3371 | CODE | |
| LOW | tornado/gen.py | 492 | CODE | |
| LOW | tornado/gen.py | 856 | CODE | |
| LOW | tornado/gen.py | 524 | CODE | |
| LOW | tornado/gen.py | 750 | CODE | |
| LOW | tornado/iostream.py | 551 | CODE | |
| LOW | tornado/iostream.py | 836 | CODE | |
| LOW | tornado/iostream.py | 892 | CODE | |
| LOW | tornado/iostream.py | 1349 | CODE | |
| LOW | tornado/log.py | 56 | CODE | |
| LOW | tornado/netutil.py | 56 | CODE | |
| LOW | tornado/httputil.py | 1004 | CODE | |
| LOW | tornado/httputil.py | 576 | CODE | |
| LOW | tornado/routing.py | 613 | CODE | |
| LOW | tornado/template.py | 844 | CODE | |
| LOW | tornado/locale.py | 91 | CODE | |
| LOW | tornado/locale.py | 329 | CODE | |
| LOW | tornado/simple_httpclient.py | 283 | CODE | |
| LOW | tornado/simple_httpclient.py | 615 | CODE | |
| LOW | tornado/http1connection.py | 187 | CODE | |
| LOW | tornado/http1connection.py | 645 | CODE | |
| LOW | tornado/http1connection.py | 659 | CODE | |
| LOW | tornado/http1connection.py | 733 | CODE | |
| LOW | tornado/websocket.py | 1216 | CODE | |
| LOW | tornado/test/httpserver_test.py | 395 | CODE | |
| LOW | tornado/test/httpserver_test.py | 1265 | CODE | |
| LOW | tornado/test/circlerefs_test.py | 64 | CODE | |
| LOW | tornado/test/gen_test.py | 795 | CODE | |
| LOW | tornado/test/gen_test.py | 860 | CODE | |
| LOW | tornado/test/autoreload_test.py | 103 | CODE | |
| LOW | tornado/test/httputil_test.py | 389 | CODE | |
| LOW | tornado/test/util_test.py | 316 | CODE | |
| LOW | tornado/platform/asyncio.py | 570 | CODE | |
| LOW | maint/test/redbot/red_test.py | 76 | CODE | |
| LOW | demos/file_upload/file_uploader.py | 26 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/conf.py | 151 | # Define the canonical URL if you are using a custom domain on Read the Docs | COMMENT |
| MEDIUM | tornado/httpclient.py | 102 | # Create the client while our IOLoop is "current", without | COMMENT |
| MEDIUM | tornado/gen.py | 200 | # This function is type-annotated with a comment to work around | COMMENT |
| MEDIUM | tornado/iostream.py | 722 | # This method is called from _handle_read and _try_inline_read. | COMMENT |
| MEDIUM | tornado/iostream.py | 992 | # This method is part of an optimization: to detect a connection that | COMMENT |
| MEDIUM | tornado/httputil.py | 682 | """This method is called by the server when a new request has started. | STRING |
| MEDIUM | tornado/httputil.py | 694 | """This method is called when a connection has been closed. | STRING |
| MEDIUM | tornado/ioloop.py | 268 | # Create a new asyncio event loop for this thread. | COMMENT |
| MEDIUM | tornado/ioloop.py | 789 | # This method is provided for use by `IOLoop` subclasses and should | COMMENT |
| MEDIUM | tornado/ioloop.py | 804 | # This method is provided for use by `IOLoop` subclasses (in | COMMENT |
| MEDIUM | tornado/wsgi.py | 50 | # This function is like those in the tornado.escape module, but defined | COMMENT |
| MEDIUM | tornado/platform/asyncio.py | 523 | # Create a thread to run the select system call. We manage this thread | COMMENT |
| MEDIUM | tornado/platform/asyncio.py | 703 | # This class is a __getattribute__-based proxy. All attributes other than those | COMMENT |
| MEDIUM | demos/blog/blog.py | 300 | # Create the global connection pool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/web.py | 331 | def set_default_headers(self) -> None: | CODE |
| LOW | tornado/web.py | 341 | def set_status(self, status_code: int, reason: str | None = None) -> None: | CODE |
| LOW | tornado/web.py | 374 | def set_header(self, name: str, value: _HeaderTypes) -> None: | CODE |
| LOW | tornado/web.py | 1758 | def set_etag_header(self) -> None: | CODE |
| LOW | tornado/web.py | 2867 | def set_headers(self) -> None: | CODE |
| LOW | tornado/web.py | 3118 | def set_extra_headers(self, path: str) -> None: | CODE |
| LOW | tornado/queues.py | 42 | __all__ = ["Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty"] | CODE |
| LOW | tornado/queues.py | 57 | def _set_timeout(future: Future, timeout: None | float | datetime.timedelta) -> None: | CODE |
| LOW | tornado/iostream.py | 536 | def set_close_callback(self, callback: Callable[[], None] | None) -> None: | CODE |
| LOW | tornado/iostream.py | 650 | def set_nodelay(self, value: bool) -> None: | CODE |
| LOW | tornado/iostream.py | 1289 | def set_nodelay(self, value: bool) -> None: | STRING |
| LOW | tornado/locks.py | 24 | __all__ = ["Condition", "Event", "Semaphore", "BoundedSemaphore", "Lock"] | CODE |
| LOW | tornado/__init__.py | 31 | __all__ = [ | CODE |
| LOW | tornado/httputil.py | 978 | def set_parse_body_config(config: ParseBodyConfig) -> None: | CODE |
| LOW | tornado/ioloop.py | 416 | def update_handler(self, fd: int | _Selectable, events: int) -> None: | CODE |
| LOW | tornado/ioloop.py | 737 | def set_default_executor(self, executor: concurrent.futures.Executor) -> None: | CODE |
| LOW | tornado/ioloop.py | 950 | def _update_next(self, current_time: float) -> None: | CODE |
| LOW | tornado/locale.py | 77 | def set_default_locale(code: str) -> None: | CODE |
| LOW | tornado/curl_httpclient.py | 123 | def _set_timeout(self, msecs: int) -> None: | CODE |
| LOW | tornado/process.py | 245 | def set_exit_callback(self, callback: Callable[[int], None]) -> None: | CODE |
| LOW | tornado/process.py | 346 | def _set_returncode(self, status: int) -> None: | CODE |
| LOW | tornado/http1connection.py | 321 | def set_close_callback(self, callback: Callable[[], None] | None) -> None: | CODE |
| LOW | tornado/http1connection.py | 369 | def set_body_timeout(self, timeout: float) -> None: | CODE |
| LOW | tornado/http1connection.py | 376 | def set_max_body_size(self, max_body_size: int) -> None: | CODE |
| LOW | tornado/tcpclient.py | 158 | def set_timeout(self, timeout: float) -> None: | CODE |
| LOW | tornado/tcpclient.py | 172 | def set_connect_timeout(self, connect_timeout: float | datetime.timedelta) -> None: | CODE |
| LOW | tornado/websocket.py | 566 | def set_nodelay(self, value: bool) -> None: | CODE |
| LOW | tornado/websocket.py | 726 | def set_nodelay(self, x: bool) -> None: | CODE |
| LOW | tornado/websocket.py | 1308 | def set_nodelay(self, x: bool) -> None: | CODE |
| LOW | tornado/platform/asyncio.py | 170 | def update_handler(self, fd: int | _Selectable, events: int) -> None: | CODE |
| LOW | tornado/platform/asyncio.py | 269 | def set_default_executor(self, executor: concurrent.futures.Executor) -> None: | CODE |
| LOW | demos/tcpecho/server.py | 11 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/web.py | 106 | CODE | |
| LOW | tornado/web.py | 106 | CODE | |
| LOW | tornado/queues.py | 28 | CODE | |
| LOW | tornado/httpclient.py | 46 | CODE | |
| LOW | tornado/httpclient.py | 46 | CODE | |
| LOW | tornado/gen.py | 77 | CODE | |
| LOW | tornado/gen.py | 77 | CODE | |
| LOW | tornado/gen.py | 77 | CODE | |
| LOW | tornado/gen.py | 77 | CODE | |
| LOW | tornado/util.py | 13 | CODE | |
| LOW | tornado/locks.py | 19 | CODE | |
| LOW | tornado/locks.py | 19 | CODE | |
| LOW | tornado/httputil.py | 22 | CODE | |
| LOW | tornado/ioloop.py | 26 | CODE | |
| LOW | tornado/template.py | 208 | CODE | |
| LOW | tornado/locale.py | 40 | CODE | |
| LOW | tornado/testing.py | 26 | CODE | |
| LOW | tornado/testing.py | 26 | CODE | |
| LOW | tornado/simple_httpclient.py | 14 | CODE | |
| LOW | tornado/simple_httpclient.py | 14 | CODE | |
| LOW | tornado/http1connection.py | 26 | CODE | |
| LOW | tornado/http1connection.py | 26 | CODE | |
| LOW | tornado/tcpclient.py | 24 | CODE | |
| LOW | tornado/websocket.py | 27 | CODE | |
| LOW | tornado/websocket.py | 27 | CODE | |
| LOW | tornado/wsgi.py | 45 | CODE | |
| LOW | tornado/test/twisted_test.py | 37 | CODE | |
| LOW | tornado/test/ioloop_test.py | 12 | CODE | |
| LOW | tornado/test/ioloop_test.py | 18 | CODE | |
| LOW | tornado/test/websocket_test.py | 23 | CODE | |
| LOW | tornado/platform/asyncio.py | 49 | CODE | |
| LOW | tornado/platform/caresresolver.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tox.ini | 127 | # here (must be completely unset, not just set to zero/empty). Remove this | COMMENT |
| LOW | tornado/httpclient.py | 208 | # It can't simply call _async_clients() because we may be in | COMMENT |
| LOW | tornado/iostream.py | 1512 | # simply return 0 bytes written. | STRING |
| MEDIUM | tornado/template.py | 893 | # This is especially useful in conjunction with jquery templates, | COMMENT |
| MEDIUM | tornado/curl_httpclient.py | 316 | # a bug in conjunction with the curl_multi_socket_action API | COMMENT |
| LOW | tornado/test/httpserver_test.py | 831 | # Unix sockets don't have remote addresses so they just return an | STRING |
| MEDIUM | tornado/test/circlerefs_test.py | 106 | # Construct a known leak scenario to make sure the test harness works. | COMMENT |
| MEDIUM | tornado/test/web_test.py | 1540 | # to disable Tornado's path validation (in conjunction with | COMMENT |
| MEDIUM | tornado/test/tcpserver_test.py | 141 | # harness too. | COMMENT |
| LOW | tornado/platform/asyncio.py | 606 | # polling the waker alone. If we are, just return to the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/options.py | 525 | CODE | |
| LOW | tornado/web.py | 639 | CODE | |
| LOW | tornado/httpclient.py | 137 | CODE | |
| LOW | tornado/httpclient.py | 358 | CODE | |
| LOW | tornado/httpclient.py | 629 | CODE | |
| LOW | tornado/httpserver.py | 159 | CODE | |
| LOW | tornado/netutil.py | 422 | CODE | |
| LOW | tornado/httputil.py | 486 | CODE | |
| LOW | tornado/websocket.py | 1627 | CODE | |
| LOW | tornado/test/gen_test.py | 374 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tornado/autoreload.py | 50 | # ----------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tornado/web.py | 1987 | * `.HTTPServerRequest.body` is undefined, and body arguments will not | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tornado/wsgi.py | 134 | async def handle_request(self, request: httputil.HTTPServerRequest) -> None: | STRING |
| LOW | tornado/test/httpserver_test.py | 1488 | def handle_request(request): | STRING |
| LOW | tornado/test/gen_test.py | 975 | def do_something(): | CODE |
| LOW | tornado/test/gen_test.py | 1010 | def do_something(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tornado/routing.py | 64 | Here is a simple example of how we can we route to | STRING |