Repository Analysis

audreyfeldroy/cookiecutter-pypackage

Cookiecutter template for a Python package.

16.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of audreyfeldroy/cookiecutter-pypackage, a Python project with 4,590 GitHub stars. SynthScan v2.0 examined 5,892 lines of code across 68 source files, recording 85 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 16.2 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).

16.2
Adjusted Score
16.2
Raw Score
100%
Time Factor
2026-08-09
Last Push
4.6K
Stars
Python
Language
5.9K
Lines of Code
68
Files
85
Pattern Hits
2026-08-09
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

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 1MEDIUM 1LOW 83

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 85 distinct pattern matches across 5 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 Identifiers74 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/test_release.py43def test_unreleased_notes_are_finalized_before_tagging(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py68def test_legacy_versioned_notes_are_used_without_a_notes_commit(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py80def test_notes_push_failure_leaves_retryable_state(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py110def test_prepared_changelog_pair_is_retryable(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py122def test_local_tag_retry_pushes_without_retagging(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py140def test_existing_github_release_skips_republish(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py155def test_legacy_notes_push_main_before_tagging(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py193def test_publish_failures_abort_without_reporting_success(release, tmp_path, monkeypatch, tag_state, failed_command):CODE
LOWtests/test_release.py215def test_github_release_lookup_failure_is_reported(release, monkeypatch):CODE
LOWtests/test_release.py227def test_main_reports_unexpected_os_error(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py249def test_non_main_branch_aborts_before_release_mutation(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py271def test_diverged_main_aborts_before_release_mutation(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py293def test_remote_tag_is_fetched_and_verified(release, monkeypatch):CODE
LOWtests/test_release.py318def test_pre_release_tag_does_not_block_a_new_final_tag(release, monkeypatch):CODE
LOWtests/test_release.py334def test_tag_on_another_commit_is_rejected(release, monkeypatch):CODE
LOWtests/test_release.py354def test_remote_tag_on_another_commit_is_rejected(release, monkeypatch):CODE
LOWtests/test_release.py374def test_missing_executable_returns_a_readable_command_error(release, monkeypatch):CODE
LOWtests/test_release.py392def test_invalid_changelog_states_abort_before_writing(release, tmp_path, monkeypatch, versioned, unreleased):CODE
LOWtests/test_release.py407def test_empty_unreleased_notes_abort_before_writing(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py420def test_empty_legacy_notes_abort_before_writing(release, tmp_path, monkeypatch):CODE
LOWtests/test_release.py432def test_dirty_worktree_aborts_before_release_commands(release, monkeypatch):CODE
LOWtests/test_release.py447def test_outer_and_generated_release_scripts_stay_aligned():CODE
LOWtests/test_post_gen_project.py62def test_declining_setup_has_no_git_or_github_side_effects(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py78def test_visibility_reprompts_and_defaults_to_private(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py108def test_final_confirmation_cancels_before_any_write(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py133def test_empty_existing_repository_requires_separate_consent(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py166def test_nonempty_existing_repository_is_never_modified(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py190def test_explicit_public_mode_supports_noninteractive_automation(hook, monkeypatch):CODE
LOWtests/test_post_gen_project.py224def test_github_setup_pins_one_host_when_ambient_host_differs(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py278def test_explicit_private_mode_leaves_pages_disabled(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py321def test_push_uses_github_cli_git_protocol(hook, monkeypatch, protocol, remote_url):CODE
LOWtests/test_post_gen_project.py339def test_https_setup_configures_git_credentials(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py360def test_ssh_setup_does_not_change_git_credentials(hook, monkeypatch):CODE
LOWtests/test_post_gen_project.py371def test_https_credential_failure_stops_before_git_or_github_writes(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py402def test_commit_failure_reports_partial_local_git_state(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py422def test_unsupported_git_protocol_stops_before_writes(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py436def test_remote_settings_precede_first_push_and_push_failure_is_reported(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py472def test_explicit_automation_failure_returns_nonzero(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py496def test_pages_failure_is_reported_without_false_success(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py510def test_docs_deployment_failure_is_reported_with_recovery_command(hook, monkeypatch, capsys):CODE
LOWtests/test_post_gen_project.py532def test_description_is_rendered_as_a_safe_string_literal(tmp_path, description):CODE
LOWtests/test_post_gen_project.py539def test_all_hook_template_values_are_rendered_safely(tmp_path):CODE
LOWtests/test_bake_project.py22def test_year_compute_in_license_file(cookies):CODE
LOWtests/test_bake_project.py40def test_bake_starts_with_an_unreleased_changelog(cookies):CODE
LOWtests/test_bake_project.py50def test_baked_release_script_runs_the_release_lifecycle(cookies, monkeypatch):CODE
LOWtests/test_bake_project.py94def test_bake_withspecialchars_and_run_tests(cookies):CODE
LOWtests/test_bake_project.py102def test_bake_with_apostrophe_and_run_tests(cookies):CODE
LOWtests/test_bake_project.py117def test_bake_preserves_description_in_valid_toml(cookies, description):CODE
LOWtests/test_bake_project.py127def test_bake_builds_when_package_and_import_names_differ(cookies):CODE
LOWtests/test_bake_project.py140def test_bake_treats_import_name_as_data(cookies, tmp_path):CODE
LOWtests/test_bake_project.py152def test_just_quality_recipes(cookies):CODE
LOWtests/test_bake_project.py168def test_py_typed_marker_exists(cookies):CODE
LOWtests/test_bake_project.py176def test_typing_classifier_in_pyproject(cookies):CODE
LOWtests/test_bake_project.py184def test_baked_workflows_support_private_repositories(cookies):CODE
LOWtests/test_readme_author.py4def test_readme_created_by_without_website(cookies):CODE
LOWtests/test_readme_author.py32def test_readme_created_by_with_website(cookies):CODE
LOWtests/test_readme_author.py53def test_readme_no_duplicate_links(cookies):CODE
LOWtests/test_cli.py16def test_readme_direct_cookiecutter_command_keeps_failed_projects():CODE
LOWtests/test_cli.py23def test_find_template_dir_in_source_checkout(monkeypatch, tmp_path):CODE
LOWtests/test_cli.py33def test_find_template_dir_in_installed_package(monkeypatch, tmp_path):CODE
14 more matches not shown…
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/tutorial.md15## Step 1: Generate your packageCOMMENT
LOWdocs/tutorial.md103## Step 2: Look aroundCOMMENT
LOWdocs/tutorial.md125## Step 3: Install and verifyCOMMENT
LOWdocs/tutorial.md145## Step 4: Preview docs locallyCOMMENT
LOWdocs/tutorial.md153## Step 5: Write some codeCOMMENT
LOWdocs/tutorial.md174## Step 6: Set up PyPI publishingCOMMENT
LOWdocs/tutorial.md196## Step 7: ReleaseCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtests/test_bake_project.py199 "${{ github.event.repository.private == false || vars.CODE_SECURITY_ENABLED == 'true' }}"CODE
Excessive Try-Catch Wrapping2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdev.py61 except Exception as e:CODE
MEDIUMdev.py62 print(f"Error running cookiecutter: {e}")CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWhooks/post_gen_project.py542CODE