Repository Analysis

coleifer/huey

a little task queue for python

20.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of coleifer/huey, a Python project with 6,019 GitHub stars. SynthScan v2.0 examined 14,905 lines of code across 96 source files, recording 207 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 20.3 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).

20.3
Adjusted Score
20.3
Raw Score
100%
Time Factor
2026-08-16
Last Push
6.0K
Stars
Python
Language
14.9K
Lines of Code
96
Files
207
Pattern Hits
2026-08-29
Scan Date
0.12
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 12MEDIUM 12LOW 183

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 207 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.py823 'queue text not null, key text not null, value blob not null, 'CODE
HIGHhuey/storage.py826 'id integer not null primary key, queue text not null, 'CODE
HIGHhuey/storage.py827 'data blob not null, timestamp real not null)')CODE
HIGHhuey/storage.py831 'id integer not null primary key, queue text not null, 'CODE
HIGHhuey/storage.py832 'data blob not null, priority real not null default 0.0)')CODE
HIGHhuey/storage.py836 'queue text not null, key text not null, 'CODE
HIGHhuey/storage.py1099 'queue text not null, key text not null, value bytea not null, 'CODE
HIGHhuey/storage.py1103 'id bigserial primary key, queue text not null, 'CODE
HIGHhuey/storage.py1104 'data bytea not null, timestamp double precision not null)',CODE
HIGHhuey/storage.py1110 'id bigserial primary key, queue text not null, 'CODE
HIGHhuey/storage.py1111 'data bytea not null, 'CODE
HIGHhuey/storage.py1118 'queue text not null, key text not null, 'CODE
Hyper-Verbose Identifiers73 hits · 70 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_stats.py52 def test_init_closes_own_connection(self):CODE
LOWhuey/tests/test_stats.py56 def test_init_preserves_open_connection(self):CODE
LOWhuey/tests/test_stats.py101 def test_attempt_enders_clear_inflight(self):CODE
LOWhuey/tests/test_stats.py117 def test_error_then_retry_duration_attributed_once(self):CODE
LOWhuey/tests/test_stats.py151 def test_writer_restarted_in_child(self):CODE
LOWhuey/tests/test_stats.py176 def test_buffered_rows_written_by_parent_alone(self):CODE
LOWhuey/tests/test_stats.py192 def test_shutdown_hook_flushes_in_child(self):CODE
LOWhuey/tests/test_stats.py204 def test_closed_recorder_not_revived(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.py183 def test_moved_function_marks_failed(self):CODE
LOWhuey/tests/test_django_tasks.py222 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.py117 def test_result_store_methods(self):CODE
LOWhuey/tests/test_storage.py205 def test_consumer_integration(self):CODE
LOWhuey/tests/test_storage.py237 def test_put_if_empty_concurrent(self):CODE
LOWhuey/tests/test_storage.py262 def test_conflicting_init_args(self):CODE
LOWhuey/tests/test_storage.py373 def test_dequeue_error_handling(self):CODE
LOWhuey/tests/test_storage.py391 def test_wait_result_timeout_clamp(self):CODE
LOWhuey/tests/test_storage.py417 def test_enqueued_items_limit(self):CODE
LOWhuey/tests/test_storage.py481 def test_sqlite_params_normalized(self):CODE
LOWhuey/tests/test_storage.py534 def test_filesystem_result_store(self):CODE
LOWhuey/tests/test_storage.py612 def test_fs_threaded_file_lock(self):CODE
LOWhuey/tests/test_storage.py635 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.py867 def test_retries_with_override(self):CODE
LOWhuey/tests/test_api.py970 def test_retry_delay_periodic(self):CODE
LOWhuey/tests/test_api.py1124 def test_cancel_execution_task_retries(self):CODE
LOWhuey/tests/test_api.py1328 def test_dynamic_periodic_tasks(self):CODE
LOWhuey/tests/test_api.py1583 def test_group_error_chaining(self):CODE
LOWhuey/tests/test_api.py1646 def test_chord_result_handles(self):CODE
LOWhuey/tests/test_api.py1757 def test_chord_revoked_member(self):CODE
LOWhuey/tests/test_api.py1783 def test_chord_expired_member(self):CODE
LOWhuey/tests/test_api.py1807 def test_chord_member_retry_then_success(self):CODE
LOWhuey/tests/test_api.py1893 def test_chord_member_error_callback_independent(self):CODE
LOWhuey/tests/test_api.py1932 def test_chord_pipeline_member_tail_fails(self):CODE
LOWhuey/tests/test_api.py1962 def test_chord_pipeline_member_head_fails(self):CODE
LOWhuey/tests/test_api.py1991 def test_chord_pipeline_member_head_revoked(self):CODE
LOWhuey/tests/test_api.py2144 def test_nested_chord_callback_pipeline_tail_walking(self):CODE
LOWhuey/tests/test_api.py2275 def test_mixed_tasks_instances(self):CODE
LOWhuey/tests/test_api.py2291 def test_task_instances_args_kwargs(self):CODE
LOWhuey/tests/test_api.py2334 def test_error_callback_retries(self):CODE
LOWhuey/tests/test_api.py2367 def test_pipeline_error_midway(self):CODE
LOWhuey/tests/test_api.py2385 def test_pipeline_revoke_midway(self):CODE
LOWhuey/tests/test_api.py2640 def test_serialize_deserialize(self):CODE
LOWhuey/tests/test_api.py2659 def test_serialize_deserialize_signed(self):CODE
LOWhuey/tests/test_api.py2702 def test_disable_result_store(self):CODE
13 more matches not shown…
Unused Imports53 hits · 53 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/__init__.py21CODE
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/__init__.py17CODE
LOWhuey/tests/test_mini.py11CODE
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.py294 except Exception:CODE
LOWhuey/api.py507 except Exception as exc:CODE
LOWhuey/api.py616 except Exception:CODE
LOWhuey/api.py625 except Exception:CODE
LOWhuey/api.py739 except Exception:CODE
MEDIUMhuey/api.py291def _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.py981def put_if_empty(self, key, value):CODE
LOWhuey/storage.py485 except Exception:CODE
LOWhuey/storage.py795 except Exception:CODE
LOWhuey/storage.py1159 except Exception:CODE
LOWhuey/storage.py1580 except Exception:CODE
LOWhuey/bin/huey_consumer.py20 except Exception:CODE
MEDIUMhuey/bin/huey_consumer.py17def load_huey(path):CODE
LOWhuey/tests/test_storage.py47 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.py158 except Exception:CODE
LOWhuey/contrib/stats.py195 except Exception:CODE
LOWhuey/contrib/stats.py220 except Exception:CODE
LOWhuey/contrib/stats.py318 except Exception:CODE
LOWhuey/contrib/stats.py327 except Exception:CODE
LOWhuey/contrib/stats.py335 except Exception:CODE
LOWhuey/contrib/stats.py344 except Exception:CODE
MEDIUMhuey/contrib/stats.py134def _on_signal(self, signal, task, exc=None):CODE
MEDIUMhuey/contrib/stats.py323def pending_tasks(huey, limit=50):CODE
MEDIUMhuey/contrib/stats.py331def scheduled_tasks(huey, limit=50):CODE
LOWhuey/contrib/djhuey/tasks_backend.py167 except Exception as exc:CODE
LOWhuey/contrib/djhuey/stats/apps.py58 except Exception:CODE
LOWhuey/contrib/djhuey/stats/admin.py145 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.py79 # 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.py1381CODE
LOWhuey/api.py1020CODE
LOWhuey/consumer.py115CODE
LOWhuey/utils.py90CODE
LOWhuey/storage.py958CODE
LOWhuey/contrib/sql_huey.py19CODE
LOWhuey/contrib/mini.py107CODE
LOWhuey/contrib/stats.py134CODE
LOWhuey/contrib/stats.py169CODE
LOWhuey/contrib/djhuey/stats/admin.py121CODE
LOWhuey/contrib/flask_admin/panel.py74CODE
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWhuey/api.py92CODE
LOWhuey/api.py172CODE
LOWhuey/api.py190CODE
LOWhuey/api.py831CODE
LOWhuey/api.py1020CODE
LOWhuey/consumer.py293CODE
LOWhuey/storage.py434CODE
LOWhuey/storage.py842CODE
LOWhuey/contrib/valkey_glide.py18CODE
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMhuey/storage.py854 # is needed, then we will utilize Sqlite's AUTOINCREMENT functionality,COMMENT
LOWhuey/tests/test_api.py851 # it to re-read. Attempting to read again will just return the cachedCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWhuey/utils.py25logger = 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