A simple app that provides django integration for RQ (Redis Queue)
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 465 | def test_something_that_creates_jobs(self): | CODE |
| LOW | integration_test/_tests.py | 57 | def terminate_all_postgres_connections(profile="default"): | CODE |
| LOW | integration_test/_tests.py | 120 | def test_site_fails_and_the_reconnects(self): | CODE |
| LOW | integration_test/_tests.py | 131 | def test_worker_lost_connection(self): | CODE |
| LOW | django_rq/connection_utils.py | 113 | def get_unique_connection_configs(config: dict[str, dict[str, Any]] | None = None) -> list[dict[str, Any]]: | CODE |
| LOW | django_rq/utils.py | 66 | def get_displayable_connection_kwargs(queue: Queue) -> dict[str, Any]: | CODE |
| LOW | tests/test_connections.py | 24 | def test_get_connection_default(self): | CODE |
| LOW | tests/test_connections.py | 43 | def test_get_connection_sentinel(self, sentinel_class_mock): | CODE |
| LOW | tests/test_connections.py | 66 | def test_sentinel_class_initialized_with_kw_args(self, sentinel_class_mock): | CODE |
| LOW | tests/test_connections.py | 94 | def test_get_unique_connection_configs(self): | CODE |
| LOW | tests/test_connections.py | 117 | def test_get_unique_connection_configs_with_different_timeout(self): | CODE |
| LOW | tests/test_connections.py | 142 | def test_get_unique_connection_configs_deterministic_order(self): | CODE |
| LOW | tests/test_connections.py | 194 | def test_get_connection_by_index(self): | CODE |
| LOW | tests/test_connections.py | 230 | def test_get_queue_django_redis(self, mocked): | CODE |
| LOW | tests/test_connections.py | 240 | def test_get_queue_django_redis_cache(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 14 | def test_default_commit_mode_is_on_db_commit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 18 | def test_commit_mode_auto_explicit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 22 | def test_commit_mode_request_finished(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 26 | def test_commit_mode_on_db_commit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 30 | def test_autocommit_fallback_with_warning(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 36 | def test_commit_mode_empty_string_falls_back(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 40 | def test_commit_mode_invalid_type(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 45 | def test_commit_mode_invalid_bool(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 50 | def test_commit_mode_invalid_value(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 57 | def test_enqueue_autocommit_on(self): | CODE |
| LOW | tests/test_commit_modes.py | 68 | def test_enqueue_autocommit_off(self): | CODE |
| LOW | tests/test_commit_modes.py | 135 | def test_job_enqueued_after_transaction_commits(self): | CODE |
| LOW | tests/test_commit_modes.py | 151 | def test_job_discarded_on_rollback(self): | CODE |
| LOW | tests/test_commit_modes.py | 170 | def test_job_enqueued_immediately_without_transaction(self): | CODE |
| LOW | tests/test_commit_modes.py | 188 | def test_nested_atomic_blocks(self): | CODE |
| LOW | tests/test_views.py | 83 | def test_job_details_with_webhooks(self): | CODE |
| LOW | tests/test_views.py | 103 | def test_job_details_with_results(self): | CODE |
| LOW | tests/test_views.py | 159 | def test_job_details_on_deleted_dependency(self): | CODE |
| LOW | tests/test_views.py | 172 | def test_job_details_with_dependents(self): | CODE |
| LOW | tests/test_views.py | 228 | def test_requeue_all_if_deleted_job(self): | CODE |
| LOW | tests/test_views.py | 279 | def test_confirm_action_filters_missing_jobs(self): | CODE |
| LOW | tests/test_views.py | 413 | def test_scheduled_jobs_registry_removal(self): | CODE |
| LOW | tests/test_views.py | 482 | def test_statistics_json_view(self): | CODE |
| LOW | tests/test_cron.py | 18 | def test_django_cron_scheduler_init(self): | CODE |
| LOW | tests/test_cron.py | 27 | def test_first_register_initializes_connection(self): | CODE |
| LOW | tests/test_cron.py | 45 | def test_register_with_webhooks(self): | CODE |
| LOW | tests/test_cron.py | 54 | def test_connection_validation(self): | CODE |
| LOW | tests/test_cron.py | 82 | def test_connection_index_property(self): | CODE |
| LOW | tests/test_cron.py | 137 | def test_rqcron_command_exceptions(self, mock_load_config, mock_start): | CODE |
| LOW | tests/test_cron.py | 153 | def test_rqcron_command_successful_run(self): | CODE |
| LOW | tests/test_cron.py | 189 | def test_cron_scheduler_detail_view(self): | CODE |
| LOW | tests/test_cron.py | 256 | def test_cron_scheduler_detail_view_with_no_jobs(self): | CODE |
| LOW | tests/test_admin_integration.py | 98 | def test_url_names_still_work(self): | CODE |
| LOW | tests/test_admin_integration.py | 126 | def test_requires_staff_authentication(self): | CODE |
| LOW | tests/test_admin_integration.py | 146 | def test_api_token_authentication(self): | CODE |
| LOW | tests/test_prometheus_metrics.py | 138 | def test_no_metrics_without_prometheus_client(self): | CODE |
| LOW⚡ | tests/tests.py | 191 | def test_get_queues_same_connection(self): | CODE |
| LOW⚡ | tests/tests.py | 197 | def test_get_queues_different_connections(self): | CODE |
| LOW⚡ | tests/tests.py | 204 | def test_get_queues_different_classes(self): | CODE |
| LOW⚡ | tests/tests.py | 211 | def test_pass_queue_via_commandline_args(self): | CODE |
| LOW⚡ | tests/tests.py | 421 | def test_get_worker_specified(self): | CODE |
| LOW⚡ | tests/tests.py | 431 | def test_get_worker_custom_classes(self): | CODE |
| LOW⚡ | tests/tests.py | 441 | def test_get_worker_custom_serializer(self): | CODE |
| LOW⚡ | tests/tests.py | 447 | def test_get_worker_default_serializer(self): | CODE |
| LOW | tests/tests.py | 69 | def test_get_connection_default(self): | CODE |
| 23 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integration_test/manage.py | 14 | CODE | |
| LOW | django_rq/__init__.py | 3 | CODE | |
| LOW | django_rq/__init__.py | 4 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 6 | CODE | |
| LOW | django_rq/thread_queue.py | 5 | CODE | |
| LOW | django_rq/settings.py | 1 | CODE | |
| LOW | django_rq/decorators.py | 8 | CODE | |
| LOW | django_rq/management/commands/rqworker-pool.py | 2 | CODE | |
| LOW | tests/test_connections.py | 1 | CODE | |
| LOW | tests/test_connections.py | 2 | CODE | |
| LOW | tests/settings.py | 11 | CODE | |
| LOW | tests/settings.py | 16 | CODE | |
| LOW | tests/tests.py | 3 | CODE | |
| LOW | tests/tests.py | 6 | CODE | |
| LOW | tests/tests.py | 7 | CODE | |
| LOW | tests/tests.py | 15 | CODE | |
| LOW | tests/tests.py | 24 | CODE | |
| LOW | tests/tests.py | 28 | CODE | |
| LOW | tests/tests.py | 38 | CODE | |
| LOW | tests/redis_config.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/utils.py | 259 | CODE | |
| LOW | django_rq/views.py | 579 | CODE | |
| LOW | django_rq/views.py | 611 | CODE | |
| LOW | django_rq/views.py | 688 | CODE | |
| LOW | django_rq/contrib/prometheus.py | 16 | CODE | |
| LOW | tests/test_connections.py | 194 | CODE | |
| LOW | tests/utils.py | 35 | CODE | |
| LOW | tests/redis_config.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | django_rq/cron.py | 83 | Register a function to be run at regular intervals. On first call, this sets the Redis connection for | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/utils.py | 42 | except Exception: | CODE |
| LOW | django_rq/utils.py | 195 | except Exception: | CODE |
| LOW | django_rq/utils.py | 252 | except Exception: | CODE |
| LOW | django_rq/templatetags/django_rq.py | 53 | except Exception as e: | CODE |
| LOW | tests/test_commit_modes.py | 164 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cron.py | 191 | # Create a real scheduler and register it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integration_test/_tests.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | django_rq/__init__.py | 8 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/queues.py | 116 | CODE | |
| LOW | django_rq/cron.py | 68 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_views.py | 561 | # } | COMMENT |
| LOW | tests/test_views.py | 581 | # func=access_self, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_views.py | 532 | # Check if the jobs are started | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_admin_integration.py | 38 | username='admin', email='admin@example.com', password='admin123' | CODE |