Repository Analysis

coleifer/huey

a little task queue for python

19.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of coleifer/huey, a Python project with 5,984 GitHub stars. SynthScan v2.0 examined 14,434 lines of code across 95 source files, recording 193 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 19.9 places this repository in the Moderate 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).

19.9
Adjusted Score
19.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
6.0K
Stars
Python
Language
14.4K
Lines of Code
95
Files
193
Pattern Hits
2026-07-14
Scan Date
0.13
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 12MEDIUM 12LOW 169

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 193 distinct pattern matches across 10 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.

Cross-Language Confusion12 hits · 90 pts
SeverityFileLineSnippetContext
HIGHhuey/storage.py816 'queue text not null, key text not null, value blob not null, 'CODE
HIGHhuey/storage.py819 'id integer not null primary key, queue text not null, 'CODE
HIGHhuey/storage.py820 'data blob not null, timestamp real not null)')CODE
HIGHhuey/storage.py824 'id integer not null primary key, queue text not null, 'CODE
HIGHhuey/storage.py825 'data blob not null, priority real not null default 0.0)')CODE
HIGHhuey/storage.py829 'queue text not null, key text not null, 'CODE
HIGHhuey/storage.py1058 'queue text not null, key text not null, value bytea not null, 'CODE
HIGHhuey/storage.py1062 'id bigserial primary key, queue text not null, 'CODE
HIGHhuey/storage.py1063 'data bytea not null, timestamp double precision not null)',CODE
HIGHhuey/storage.py1069 'id bigserial primary key, queue text not null, 'CODE
HIGHhuey/storage.py1070 'data bytea not null, 'CODE
HIGHhuey/storage.py1077 'queue text not null, key text not null, 'CODE
Hyper-Verbose Identifiers62 hits · 58 pts
SeverityFileLineSnippetContext
LOWhuey/consumer.py590 def _handle_interrupt_signal_gevent(self, sig_num, frame):CODE
LOWhuey/consumer.py609 def _set_child_signal_handlers(self):CODE
LOWhuey/consumer.py620 def _handle_stop_signal_worker(self, sig_num, frame):CODE
LOWhuey/tests/test_registry.py62 def test_user_task_kwarg_preserved(self):CODE
LOWhuey/tests/test_registry.py75 def test_context_task_reserialization(self):CODE
LOWhuey/tests/test_utils.py107 def test_construct_preserves_lock_file(self):CODE
LOWhuey/tests/test_signals.py42 def test_signal_complete_result_ready(self):CODE
LOWhuey/tests/test_django_tasks.py168 def test_unserializable_return(self):CODE
LOWhuey/tests/test_django_tasks.py176 def test_unsupported_priority(self):CODE
LOWhuey/tests/test_django_tasks.py210 def test_consumer_integration(self):CODE
LOWhuey/tests/test_serializer.py40 def test_mismatched_compression(self):CODE
LOWhuey/tests/test_sql_huey.py110 def test_consumer_integration(self):CODE
LOWhuey/tests/test_crontab.py86 def test_crontab_all_together(self):CODE
LOWhuey/tests/test_storage.py111 def test_result_store_methods(self):CODE
LOWhuey/tests/test_storage.py199 def test_consumer_integration(self):CODE
LOWhuey/tests/test_storage.py231 def test_put_if_empty_concurrent(self):CODE
LOWhuey/tests/test_storage.py256 def test_conflicting_init_args(self):CODE
LOWhuey/tests/test_storage.py367 def test_dequeue_error_handling(self):CODE
LOWhuey/tests/test_storage.py385 def test_wait_result_timeout_clamp(self):CODE
LOWhuey/tests/test_storage.py411 def test_enqueued_items_limit(self):CODE
LOWhuey/tests/test_storage.py477 def test_filesystem_result_store(self):CODE
LOWhuey/tests/test_storage.py556 def test_consumer_integration(self):CODE
LOWhuey/tests/test_api.py245 def test_revoke_task_instance(self):CODE
LOWhuey/tests/test_api.py295 def test_revoke_task_instance_persistent(self):CODE
LOWhuey/tests/test_api.py497 def test_blocking_result_no_sentinel_leak(self):CODE
LOWhuey/tests/test_api.py733 def test_timeout_coop_helpers(self):CODE
LOWhuey/tests/test_api.py759 def test_timeout_cooperative_full(self):CODE
LOWhuey/tests/test_api.py865 def test_retries_with_override(self):CODE
LOWhuey/tests/test_api.py968 def test_retry_delay_periodic(self):CODE
LOWhuey/tests/test_api.py1122 def test_cancel_execution_task_retries(self):CODE
LOWhuey/tests/test_api.py1326 def test_dynamic_periodic_tasks(self):CODE
LOWhuey/tests/test_api.py1581 def test_group_error_chaining(self):CODE
LOWhuey/tests/test_api.py1644 def test_chord_result_handles(self):CODE
LOWhuey/tests/test_api.py1755 def test_chord_revoked_member(self):CODE
LOWhuey/tests/test_api.py1781 def test_chord_expired_member(self):CODE
LOWhuey/tests/test_api.py1805 def test_chord_member_retry_then_success(self):CODE
LOWhuey/tests/test_api.py1891 def test_chord_member_error_callback_independent(self):CODE
LOWhuey/tests/test_api.py1930 def test_chord_pipeline_member_tail_fails(self):CODE
LOWhuey/tests/test_api.py1960 def test_chord_pipeline_member_head_fails(self):CODE
LOWhuey/tests/test_api.py1989 def test_chord_pipeline_member_head_revoked(self):CODE
LOWhuey/tests/test_api.py2142 def test_nested_chord_callback_pipeline_tail_walking(self):CODE
LOWhuey/tests/test_api.py2273 def test_mixed_tasks_instances(self):CODE
LOWhuey/tests/test_api.py2289 def test_task_instances_args_kwargs(self):CODE
LOWhuey/tests/test_api.py2332 def test_error_callback_retries(self):CODE
LOWhuey/tests/test_api.py2365 def test_pipeline_error_midway(self):CODE
LOWhuey/tests/test_api.py2383 def test_pipeline_revoke_midway(self):CODE
LOWhuey/tests/test_api.py2638 def test_serialize_deserialize(self):CODE
LOWhuey/tests/test_api.py2657 def test_serialize_deserialize_signed(self):CODE
LOWhuey/tests/test_api.py2700 def test_disable_result_store(self):CODE
LOWhuey/tests/test_api.py2739 def test_intermediate_error_withheld(self):CODE
LOWhuey/tests/test_consumer.py73 def test_consumer_schedule_task(self):CODE
LOWhuey/tests/test_consumer.py115 def test_consumer_periodic_tasks(self):CODE
LOWhuey/tests/test_consumer.py145 def test_scheduler_periodic_catch_up(self):CODE
LOWhuey/tests/test_consumer.py197 def test_process_environment_uses_fork(self):CODE
LOWhuey/tests/test_consumer.py220 def test_process_worker_integration(self):CODE
LOWhuey/tests/test_immediate.py45 def test_immediate_scheduling(self):CODE
LOWhuey/tests/test_immediate.py60 def test_immediate_reschedule(self):CODE
LOWhuey/tests/test_immediate.py85 def test_immediate_revoke_restore(self):CODE
LOWhuey/tests/test_immediate.py255 def test_immediate_real_storage(self):CODE
LOWhuey/tests/test_postgres.py53 def test_blocking_dequeue_notify(self):CODE
2 more matches not shown…
Unused Imports50 hits · 50 pts
SeverityFileLineSnippetContext
LOWhuey/__init__.py5CODE
LOWhuey/__init__.py6CODE
LOWhuey/__init__.py7CODE
LOWhuey/__init__.py8CODE
LOWhuey/__init__.py9CODE
LOWhuey/__init__.py10CODE
LOWhuey/__init__.py11CODE
LOWhuey/__init__.py12CODE
LOWhuey/__init__.py13CODE
LOWhuey/__init__.py14CODE
LOWhuey/__init__.py15CODE
LOWhuey/__init__.py16CODE
LOWhuey/__init__.py17CODE
LOWhuey/__init__.py18CODE
LOWhuey/__init__.py19CODE
LOWhuey/__init__.py20CODE
LOWhuey/tests/test_signals.py5CODE
LOWhuey/tests/__init__.py1CODE
LOWhuey/tests/__init__.py2CODE
LOWhuey/tests/__init__.py3CODE
LOWhuey/tests/__init__.py4CODE
LOWhuey/tests/__init__.py5CODE
LOWhuey/tests/__init__.py6CODE
LOWhuey/tests/__init__.py7CODE
LOWhuey/tests/__init__.py8CODE
LOWhuey/tests/__init__.py9CODE
LOWhuey/tests/__init__.py10CODE
LOWhuey/tests/__init__.py11CODE
LOWhuey/tests/__init__.py12CODE
LOWhuey/tests/__init__.py13CODE
LOWhuey/tests/__init__.py14CODE
LOWhuey/tests/__init__.py15CODE
LOWhuey/tests/__init__.py16CODE
LOWhuey/tests/__main__.py4CODE
LOWhuey/contrib/sql_huey.py4CODE
LOWhuey/contrib/mini.py16CODE
LOWhuey/contrib/djhuey/__init__.py164CODE
LOWhuey/contrib/djhuey/__init__.py158CODE
LOWhuey/contrib/djhuey/__init__.py161CODE
LOWhuey/contrib/flask_admin/__init__.py1CODE
LOWhuey/contrib/flask_admin/__init__.py2CODE
LOWhuey/contrib/flask_admin/__init__.py5CODE
LOWexamples/mini/mini.py2CODE
LOWexamples/simple/amain.py10CODE
LOWexamples/simple/tasks.py6CODE
LOWexamples/simple/main.py6CODE
LOWexamples/flask_ex/main.py2CODE
LOWexamples/flask_ex/main.py3CODE
LOWexamples/flask_ex/main.py4CODE
LOWexamples/django_ex/djangoex/test_app/apps.py10CODE
Excessive Try-Catch Wrapping38 hits · 48 pts
SeverityFileLineSnippetContext
LOWhuey/api.py293 except Exception:CODE
LOWhuey/api.py506 except Exception as exc:CODE
LOWhuey/api.py615 except Exception:CODE
LOWhuey/api.py624 except Exception:CODE
LOWhuey/api.py737 except Exception:CODE
MEDIUMhuey/api.py290def _emit(self, signal, task, *args, **kwargs):CODE
LOWhuey/consumer.py104 except Exception:CODE
LOWhuey/consumer.py112 except Exception:CODE
LOWhuey/consumer.py119 except Exception:CODE
LOWhuey/consumer.py127 except Exception:CODE
LOWhuey/consumer.py177 except Exception:CODE
MEDIUMhuey/storage.py973def put_if_empty(self, key, value):CODE
LOWhuey/storage.py480 except Exception:CODE
LOWhuey/storage.py790 except Exception:CODE
LOWhuey/storage.py1118 except Exception:CODE
LOWhuey/storage.py1539 except Exception:CODE
LOWhuey/bin/huey_consumer.py20 except Exception:CODE
MEDIUMhuey/bin/huey_consumer.py17def load_huey(path):CODE
LOWhuey/tests/test_storage.py41 except Exception:CODE
LOWhuey/tests/test_postgres.py26 except Exception:CODE
LOWhuey/tests/test_postgres.py161 except Exception:CODE
LOWhuey/contrib/mini.py96 except Exception as exc:CODE
LOWhuey/contrib/mini.py130 except Exception:CODE
LOWhuey/contrib/stats.py119 except Exception:CODE
LOWhuey/contrib/stats.py149 except Exception:CODE
LOWhuey/contrib/stats.py172 except Exception:CODE
LOWhuey/contrib/stats.py270 except Exception:CODE
LOWhuey/contrib/stats.py279 except Exception:CODE
LOWhuey/contrib/stats.py287 except Exception:CODE
LOWhuey/contrib/stats.py296 except Exception:CODE
MEDIUMhuey/contrib/stats.py95def _on_signal(self, signal, task, exc=None):CODE
MEDIUMhuey/contrib/stats.py275def pending_tasks(huey, limit=50):CODE
MEDIUMhuey/contrib/stats.py283def scheduled_tasks(huey, limit=50):CODE
LOWhuey/contrib/djhuey/tasks_backend.py167 except Exception as exc:CODE
LOWhuey/contrib/djhuey/stats/apps.py54 except Exception:CODE
LOWhuey/contrib/djhuey/stats/admin.py143 except Exception:CODE
LOWhuey/contrib/flask_admin/panel.py50 except Exception:CODE
LOWhuey/contrib/flask_admin/panel.py96 except Exception:CODE
Self-Referential Comments5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMhuey/api.py78 # Create a huey instance.STRING
MEDIUMhuey/consumer.py333 # Create the execution environment helper.COMMENT
MEDIUMhuey/consumer.py339 # Create the event used to signal the process should terminate. We'llCOMMENT
MEDIUMhuey/consumer.py354 # Create the scheduler process (but don't start it yet).COMMENT
MEDIUMhuey/consumer.py358 # Create the worker process(es) (also not started yet).COMMENT
Deep Nesting11 hits · 10 pts
SeverityFileLineSnippetContext
LOWhuey/api.py1379CODE
LOWhuey/api.py1018CODE
LOWhuey/consumer.py115CODE
LOWhuey/utils.py89CODE
LOWhuey/storage.py950CODE
LOWhuey/contrib/sql_huey.py19CODE
LOWhuey/contrib/mini.py107CODE
LOWhuey/contrib/stats.py95CODE
LOWhuey/contrib/stats.py130CODE
LOWhuey/contrib/djhuey/stats/admin.py119CODE
LOWhuey/contrib/flask_admin/panel.py74CODE
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWhuey/api.py91CODE
LOWhuey/api.py171CODE
LOWhuey/api.py189CODE
LOWhuey/api.py829CODE
LOWhuey/api.py1018CODE
LOWhuey/consumer.py293CODE
LOWhuey/storage.py429CODE
LOWhuey/storage.py835CODE
LOWhuey/contrib/valkey_glide.py18CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMhuey/storage.py847 # is needed, then we will utilize Sqlite's AUTOINCREMENT functionality,COMMENT
LOWhuey/tests/test_api.py849 # it to re-read. Attempting to read again will just return the cachedCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWhuey/utils.py24logger = logging.getLogger(__name__)CODE
LOWhuey/contrib/djhuey/management/commands/run_huey.py11logger = logging.getLogger(__name__)CODE
LOWhuey/contrib/flask_admin/__init__.py14__all__ = ['HueyPanel', 'HueyStats', 'enable_stats']CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWhuey/consumer.py429 # Check if gevent is used, and if monkey-patch applied properly.COMMENT