Developer-friendly asynchrony for Django
This report presents the forensic synthetic code analysis of django/channels, a Python project with 6,354 GitHub stars. SynthScan v2.0 examined 6,519 lines of code across 69 source files, recording 60 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 9.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).
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 60 distinct pattern matches across 7 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 | tests/test_inmemorychannel.py | 74 | async def test_process_local_send_receive(channel_layer): | CODE |
| LOW | tests/test_layers.py | 68 | def test_backend_import_error_not_hidden(self): | CODE |
| LOW | tests/test_layers.py | 108 | def test_channel_and_group_name_validation(method, channel_name, expected_valid): | CODE |
| LOW | tests/test_layers.py | 122 | def test_group_name_length_error_message(name): | CODE |
| LOW | tests/test_layers.py | 140 | def test_channel_name_length_error_message(name): | CODE |
| LOW | tests/test_layers.py | 152 | def test_deprecated_valid_channel_name(): | CODE |
| LOW | tests/test_layers.py | 169 | def test_deprecated_valid_group_name(): | CODE |
| LOW | tests/test_generic_http.py | 95 | async def test_async_http_consumer_future(): | CODE |
| LOW | tests/test_generic_http.py | 131 | def receive_awaitable_callable(): | CODE |
| LOW | tests/test_routing.py | 22 | async def test_protocol_type_router(): | CODE |
| LOW | tests/test_routing.py | 184 | async def test_url_router_nesting_path(): | CODE |
| LOW | tests/test_http.py | 88 | async def test_session_samesite_invalid(samesite_invalid): | CODE |
| LOW | tests/test_http.py | 174 | async def test_session_save_update_error(): | CODE |
| LOW | tests/test_generic_websocket.py | 59 | async def test_multiple_websocket_consumers_with_sessions(): | CODE |
| LOW | tests/test_generic_websocket.py | 100 | async def test_websocket_consumer_subprotocol(): | CODE |
| LOW | tests/test_generic_websocket.py | 123 | async def test_websocket_consumer_groups(): | CODE |
| LOW | tests/test_generic_websocket.py | 159 | async def test_async_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 201 | async def test_async_websocket_consumer_subprotocol(): | CODE |
| LOW | tests/test_generic_websocket.py | 224 | async def test_async_websocket_consumer_groups(): | CODE |
| LOW | tests/test_generic_websocket.py | 261 | async def test_async_websocket_consumer_specific_channel_layer(): | CODE |
| LOW | tests/test_generic_websocket.py | 299 | async def test_json_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 332 | async def test_async_json_websocket_consumer(): | CODE |
| LOW | tests/test_generic_websocket.py | 365 | async def test_block_underscored_type_function_call(): | CODE |
| LOW | tests/test_generic_websocket.py | 401 | async def test_block_leading_dot_type_function_call(): | CODE |
| LOW | tests/test_generic_websocket.py | 492 | async def test_websocket_receive_with_none_text(): | CODE |
| LOW | tests/test_testing.py | 79 | async def test_websocket_communicator(): | CODE |
| LOW | tests/test_testing.py | 106 | async def test_websocket_incorrect_read_json(): | CODE |
| LOW | tests/test_testing.py | 125 | async def test_websocket_application(): | CODE |
| LOW | tests/security/test_auth.py | 99 | async def test_login_no_session_in_scope(): | CODE |
| LOW | tests/security/test_auth.py | 115 | async def test_login_no_user_in_scope(session): | CODE |
| LOW | tests/security/test_auth.py | 131 | async def test_login_user_as_argument(session, user_bob): | CODE |
| LOW | tests/security/test_auth.py | 236 | async def test_logout_not_logged_in(session): | CODE |
| LOW | tests/sample_project/tests/test_selenium.py | 30 | def test_real_time_create_message(self): | CODE |
| LOW | tests/sample_project/tests/test_selenium.py | 55 | def test_real_time_delete_message(self): | CODE |
| LOW | tests/sample_project/tests/selenium_mixin.py | 127 | def wait_for_websocket_connection(self, substring="WebSocket connected", timeout=5): | CODE |
| LOW | tests/sample_project/tests/selenium_mixin.py | 144 | def wait_for_websocket_message_handled(self, timeout=5): | CODE |
| LOW | channels/layers.py | 155 | def require_valid_channel_name(self, name, receive=False): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .readthedocs.yaml | 21 | # Build documentation in the "docs/" directory with Sphinx | COMMENT |
| LOW | docs/conf.py | 1 | # -*- coding: utf-8 -*- | COMMENT |
| LOW | docs/conf.py | 41 | # The encoding of source files. | COMMENT |
| LOW | docs/conf.py | 61 | # for a list of supported languages. | COMMENT |
| LOW | docs/conf.py | 81 | # If true, the current module name will be prepended to all description | COMMENT |
| LOW | docs/conf.py | 101 | # The theme to use for HTML and HTML Help pages. See the documentation for | COMMENT |
| LOW | docs/conf.py | 121 | # of the sidebar. | COMMENT |
| LOW | docs/conf.py | 141 | #html_last_updated_fmt = '%b %d, %Y' | COMMENT |
| LOW | docs/conf.py | 161 | #html_split_index = False | COMMENT |
| LOW | docs/conf.py | 201 | ('index', 'Channels.tex', u'Channels Documentation', | COMMENT |
| LOW | docs/conf.py | 241 | # Grouping the document tree into Texinfo files. List of tuples | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_http.py | 188 | # Create a session as normal: | COMMENT |
| MEDIUM | docs/conf.py | 6 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/auth.py | 21 | CODE | |
| LOW | channels/sessions.py | 169 | CODE | |
| LOW | channels/utils.py | 32 | CODE | |
| LOW | channels/routing.py | 69 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/testing/__init__.py | 1 | CODE | |
| LOW | channels/testing/__init__.py | 2 | CODE | |
| LOW | channels/testing/__init__.py | 3 | CODE | |
| LOW | channels/testing/__init__.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/sessions.py | 47 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | channels/testing/__init__.py | 6 | __all__ = [ | CODE |