Repository Analysis

rq/django-rq

A simple app that provides django integration for RQ (Redis Queue)

12.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of rq/django-rq, a Python project with 1,946 GitHub stars. SynthScan v2.0 examined 10,443 lines of code across 93 source files, recording 129 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 12.9 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).

12.9
Adjusted Score
12.9
Raw Score
100%
Time Factor
2026-07-13
Last Push
1.9K
Stars
Python
Language
10.4K
Lines of Code
93
Files
129
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 1LOW 127

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 129 distinct pattern matches across 11 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 Identifiers83 hits · 86 pts
SeverityFileLineSnippetContext
LOWREADME.md465 def test_something_that_creates_jobs(self):CODE
LOWintegration_test/_tests.py57def terminate_all_postgres_connections(profile="default"):CODE
LOWintegration_test/_tests.py120 def test_site_fails_and_the_reconnects(self):CODE
LOWintegration_test/_tests.py131 def test_worker_lost_connection(self):CODE
LOWdjango_rq/connection_utils.py113def get_unique_connection_configs(config: dict[str, dict[str, Any]] | None = None) -> list[dict[str, Any]]:CODE
LOWdjango_rq/utils.py66def get_displayable_connection_kwargs(queue: Queue) -> dict[str, Any]:CODE
LOWtests/test_connections.py24 def test_get_connection_default(self):CODE
LOWtests/test_connections.py43 def test_get_connection_sentinel(self, sentinel_class_mock):CODE
LOWtests/test_connections.py66 def test_sentinel_class_initialized_with_kw_args(self, sentinel_class_mock):CODE
LOWtests/test_connections.py94 def test_get_unique_connection_configs(self):CODE
LOWtests/test_connections.py117 def test_get_unique_connection_configs_with_different_timeout(self):CODE
LOWtests/test_connections.py142 def test_get_unique_connection_configs_deterministic_order(self):CODE
LOWtests/test_connections.py194 def test_get_connection_by_index(self):CODE
LOWtests/test_connections.py230 def test_get_queue_django_redis(self, mocked):CODE
LOWtests/test_connections.py240 def test_get_queue_django_redis_cache(self):CODE
LOWtests/test_commit_modes.py14 def test_default_commit_mode_is_on_db_commit(self):CODE
LOWtests/test_commit_modes.py18 def test_commit_mode_auto_explicit(self):CODE
LOWtests/test_commit_modes.py22 def test_commit_mode_request_finished(self):CODE
LOWtests/test_commit_modes.py26 def test_commit_mode_on_db_commit(self):CODE
LOWtests/test_commit_modes.py30 def test_autocommit_fallback_with_warning(self):CODE
LOWtests/test_commit_modes.py36 def test_commit_mode_empty_string_falls_back(self):CODE
LOWtests/test_commit_modes.py40 def test_commit_mode_invalid_type(self):CODE
LOWtests/test_commit_modes.py45 def test_commit_mode_invalid_bool(self):CODE
LOWtests/test_commit_modes.py50 def test_commit_mode_invalid_value(self):CODE
LOWtests/test_commit_modes.py57 def test_enqueue_autocommit_on(self):CODE
LOWtests/test_commit_modes.py68 def test_enqueue_autocommit_off(self):CODE
LOWtests/test_commit_modes.py135 def test_job_enqueued_after_transaction_commits(self):CODE
LOWtests/test_commit_modes.py151 def test_job_discarded_on_rollback(self):CODE
LOWtests/test_commit_modes.py170 def test_job_enqueued_immediately_without_transaction(self):CODE
LOWtests/test_commit_modes.py188 def test_nested_atomic_blocks(self):CODE
LOWtests/test_views.py83 def test_job_details_with_webhooks(self):CODE
LOWtests/test_views.py103 def test_job_details_with_results(self):CODE
LOWtests/test_views.py159 def test_job_details_on_deleted_dependency(self):CODE
LOWtests/test_views.py172 def test_job_details_with_dependents(self):CODE
LOWtests/test_views.py228 def test_requeue_all_if_deleted_job(self):CODE
LOWtests/test_views.py279 def test_confirm_action_filters_missing_jobs(self):CODE
LOWtests/test_views.py413 def test_scheduled_jobs_registry_removal(self):CODE
LOWtests/test_views.py482 def test_statistics_json_view(self):CODE
LOWtests/test_cron.py18 def test_django_cron_scheduler_init(self):CODE
LOWtests/test_cron.py27 def test_first_register_initializes_connection(self):CODE
LOWtests/test_cron.py45 def test_register_with_webhooks(self):CODE
LOWtests/test_cron.py54 def test_connection_validation(self):CODE
LOWtests/test_cron.py82 def test_connection_index_property(self):CODE
LOWtests/test_cron.py137 def test_rqcron_command_exceptions(self, mock_load_config, mock_start):CODE
LOWtests/test_cron.py153 def test_rqcron_command_successful_run(self):CODE
LOWtests/test_cron.py189 def test_cron_scheduler_detail_view(self):CODE
LOWtests/test_cron.py256 def test_cron_scheduler_detail_view_with_no_jobs(self):CODE
LOWtests/test_admin_integration.py98 def test_url_names_still_work(self):CODE
LOWtests/test_admin_integration.py126 def test_requires_staff_authentication(self):CODE
LOWtests/test_admin_integration.py146 def test_api_token_authentication(self):CODE
LOWtests/test_prometheus_metrics.py138 def test_no_metrics_without_prometheus_client(self):CODE
LOWtests/tests.py191 def test_get_queues_same_connection(self):CODE
LOWtests/tests.py197 def test_get_queues_different_connections(self):CODE
LOWtests/tests.py204 def test_get_queues_different_classes(self):CODE
LOWtests/tests.py211 def test_pass_queue_via_commandline_args(self):CODE
LOWtests/tests.py421 def test_get_worker_specified(self):CODE
LOWtests/tests.py431 def test_get_worker_custom_classes(self):CODE
LOWtests/tests.py441 def test_get_worker_custom_serializer(self):CODE
LOWtests/tests.py447 def test_get_worker_default_serializer(self):CODE
LOWtests/tests.py69 def test_get_connection_default(self):CODE
23 more matches not shown…
Unused Imports23 hits · 20 pts
SeverityFileLineSnippetContext
LOWintegration_test/manage.py14CODE
LOWdjango_rq/__init__.py3CODE
LOWdjango_rq/__init__.py4CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py5CODE
LOWdjango_rq/__init__.py6CODE
LOWdjango_rq/thread_queue.py5CODE
LOWdjango_rq/settings.py1CODE
LOWdjango_rq/decorators.py8CODE
LOWdjango_rq/management/commands/rqworker-pool.py2CODE
LOWtests/test_connections.py1CODE
LOWtests/test_connections.py2CODE
LOWtests/settings.py11CODE
LOWtests/settings.py16CODE
LOWtests/tests.py3CODE
LOWtests/tests.py6CODE
LOWtests/tests.py7CODE
LOWtests/tests.py15CODE
LOWtests/tests.py24CODE
LOWtests/tests.py28CODE
LOWtests/tests.py38CODE
LOWtests/redis_config.py1CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWdjango_rq/utils.py259CODE
LOWdjango_rq/views.py579CODE
LOWdjango_rq/views.py611CODE
LOWdjango_rq/views.py688CODE
LOWdjango_rq/contrib/prometheus.py16CODE
LOWtests/test_connections.py194CODE
LOWtests/utils.py35CODE
LOWtests/redis_config.py17CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdjango_rq/cron.py83 Register a function to be run at regular intervals. On first call, this sets the Redis connection for STRING
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippetContext
LOWdjango_rq/utils.py42 except Exception:CODE
LOWdjango_rq/utils.py195 except Exception:CODE
LOWdjango_rq/utils.py252 except Exception:CODE
LOWdjango_rq/templatetags/django_rq.py53 except Exception as e:CODE
LOWtests/test_commit_modes.py164 except Exception:CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_cron.py191 # Create a real scheduler and register itCOMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWintegration_test/_tests.py18logger = logging.getLogger(__name__)CODE
LOWdjango_rq/__init__.py8__all__ = [CODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdjango_rq/queues.py116CODE
LOWdjango_rq/cron.py68CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_views.py561 # }COMMENT
LOWtests/test_views.py581 # func=access_self,COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_views.py532 # Check if the jobs are startedCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/test_admin_integration.py38 username='admin', email='admin@example.com', password='admin123'CODE