Repository Analysis

cookiecutter/cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.

13.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cookiecutter/cookiecutter-django, a Python project with 13,565 GitHub stars. SynthScan v2.0 examined 23,412 lines of code across 167 source files, recording 140 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 13.5 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).

13.5
Adjusted Score
13.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
13.6K
Stars
Python
Language
23.4K
Lines of Code
167
Files
140
Pattern Hits
2026-07-14
Scan Date
0.02
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 3MEDIUM 64LOW 73

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 140 distinct pattern matches across 12 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.

Decorative Section Separators59 hits · 206 pts
SeverityFileLineSnippetContext
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py10# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py22# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py32# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py54# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py60# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py93 # ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py103# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py109# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py120# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/local.py125# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py10# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py20# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py25# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py30# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py34# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py40# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/test.py45# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py231# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py236# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py245# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py255# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py21# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py48# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py65# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py72# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py115# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py120# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py134# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py154# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py175# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py189# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py196# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py267# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py294# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py336# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py360# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py367# -------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py393# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/config/settings/base.py405# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py26# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py33# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py37# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py52# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py118# ------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py214# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py230# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py235# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py302# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py330# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py335# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py412# ------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py442# -------------------------------------------------------------------------------COMMENT
MEDIUM…kiecutter.project_slug}}/config/settings/production.py450# ------------------------------------------------------------------------------COMMENT
MEDIUM…ookiecutter.project_slug}}/requirements/production.txt18# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/requirements/base.txt24# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/requirements/local.txt13# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/requirements/local.txt23# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/requirements/local.txt28# ------------------------------------------------------------------------------COMMENT
MEDIUM{{cookiecutter.project_slug}}/requirements/local.txt36# ------------------------------------------------------------------------------COMMENT
Hyper-Verbose Identifiers38 hits · 43 pts
SeverityFileLineSnippetContext
LOWtests/test_cookiecutter_generation.py223def test_django_upgrade_passes(cookies, context_override):CODE
LOWtests/test_cookiecutter_generation.py281def test_travis_invokes_pytest(cookies, context, use_docker, expected_test_script):CODE
LOWtests/test_cookiecutter_generation.py306def test_gitlab_invokes_precommit_and_pytest(cookies, context, use_docker, expected_test_script):CODE
LOWtests/test_cookiecutter_generation.py333def test_github_invokes_linter_and_pytest(cookies, context, use_docker, expected_test_script):CODE
LOWtests/test_cookiecutter_generation.py372def test_error_if_incompatible(cookies, context, invalid_context):CODE
LOWtests/test_cookiecutter_generation.py389def test_pycharm_docs_removed(cookies, context, editor, pycharm_docs_exist):CODE
LOWtests/test_cookiecutter_generation.py442def test_pre_commit_without_heroku(cookies, context):CODE
LOWtests/test_hooks.py21def test_append_to_gitignore_file(working_directory):CODE
LOWhooks/post_gen_project.py40def remove_custom_user_manager_files():CODE
LOWhooks/post_gen_project.py74def remove_nginx_docker_files():CODE
LOWhooks/post_gen_project.py200def remove_prettier_pre_commit():CODE
LOWhooks/post_gen_project.py204def remove_repo_from_pre_commit_config(repo_to_remove: str):CODE
LOWhooks/post_gen_project.py244def remove_dotgitlabciyml_file():CODE
LOWhooks/post_gen_project.py349def set_celery_flower_password(file_path, value=None):CODE
LOWhooks/post_gen_project.py386def set_flags_in_settings_files():CODE
LOWhooks/post_gen_project.py391def remove_envs_and_associated_files():CODE
LOWhooks/post_gen_project.py397def remove_celery_compose_dirs():CODE
LOWhooks/post_gen_project.py415def remove_ninja_starter_files():CODE
LOWscripts/node_version.py21def get_version_from_dockerfile() -> str:CODE
LOWscripts/node_version.py34def get_version_from_package_json() -> str:CODE
LOWscripts/node_version.py39def update_package_json_version(old_version: str, new_version: str) -> None:CODE
LOWscripts/node_version.py48def update_production_node_version(old_version: str, new_version: str) -> None:CODE
LOWscripts/update_changelog.py86def group_pulls_by_change_type(CODE
LOWscripts/create_django_issue.py88def get_all_latest_django_versions(CODE
LOWscripts/python_dependency_version.py33def get_requirements_txt_version(package_name: str) -> str:CODE
LOWscripts/python_dependency_version.py42def get_pyproject_toml_version(package_name: str) -> str:CODE
LOW…{cookiecutter.project_slug}}/users/tests/test_forms.py20 def test_username_validation_error_msg(self, user: User):CODE
LOW…okiecutter.project_slug}}/users/tests/test_managers.py32 def test_create_superuser_username_ignored(self):CODE
LOW…okiecutter.project_slug}}/users/tests/test_managers.py41def test_createsuperuser_command():CODE
LOW…cookiecutter.project_slug}}/users/tests/test_models.py9def test_user_get_absolute_url(user: User):CODE
LOW…ecutter.project_slug}}/users/tests/api/test_openapi.py8def test_api_docs_accessible_by_admin(admin_client):CODE
LOW…ecutter.project_slug}}/users/tests/api/test_openapi.py19def test_api_docs_not_accessible_by_anonymous_users(client):CODE
LOW…ecutter.project_slug}}/users/tests/api/test_openapi.py32def test_api_schema_generated_successfully(admin_client):CODE
LOW…kiecutter.project_slug}}/users/tests/api/test_views.py71def test_list_users_as_anonymous_user(client: Client):CODE
LOW…kiecutter.project_slug}}/users/tests/api/test_views.py77def test_list_users_as_authenticated_user(client: Client, user: User):CODE
LOW…kiecutter.project_slug}}/users/tests/api/test_views.py100def test_retrieve_current_user(client: Client, user: User):CODE
LOW…kiecutter.project_slug}}/users/tests/api/test_views.py131def test_retrieve_current_user(client: Client, user: User):CODE
LOW…kiecutter.project_slug}}/users/tests/api/test_views.py164def test_retrieve_another_user(client: Client, user: User):CODE
Over-Commented Block15 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py1# cookiecutter-django documentation build configuration file.COMMENT
LOWdocs/conf.py41master_doc = "index"COMMENT
LOWdocs/conf.py61# non-false value, then it is used:COMMENT
LOWdocs/conf.py81# output. They are ignored by default.COMMENT
LOWdocs/conf.py101COMMENT
LOWdocs/conf.py121# Add any paths that contain custom static files (such as style sheets) here,COMMENT
LOWdocs/conf.py141# If false, no module index is generated.COMMENT
LOWdocs/conf.py161# base URL from which the finished HTML is served.COMMENT
LOWdocs/conf.py201COMMENT
LOW{{cookiecutter.project_slug}}/config/settings/test.py21# https://docs.djangoproject.com/en/dev/ref/settings/#password-hashersCOMMENT
LOW{{cookiecutter.project_slug}}/config/settings/base.py21# ------------------------------------------------------------------------------COMMENT
LOW{{cookiecutter.project_slug}}/config/settings/base.py301CELERY_BROKER_USE_SSL = {"ssl_cert_reqs": ssl.CERT_NONE} if REDIS_SSL else NoneCOMMENT
LOW{{cookiecutter.project_slug}}/docs/conf.py61# a list of builtin themes.COMMENT
LOW…ecutter.project_slug}}/.devcontainer/devcontainer.json61 },COMMENT
LOW…ecutter.project_slug}}/users/tests/api/test_openapi.py41# No REST API framework was selected (rest_api = 'None').COMMENT
Excessive Try-Catch Wrapping5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMhooks/post_gen_project.py557 print(f"Error building Docker image: {e}", file=sys.stderr)CODE
MEDIUMhooks/post_gen_project.py571 print(f"Error installing production dependencies: {e}", file=sys.stderr)CODE
MEDIUMhooks/post_gen_project.py578 print(f"Error installing local dependencies: {e}", file=sys.stderr)CODE
LOWhooks/post_gen_project.py586 except Exception as e: # noqa: BLE001CODE
MEDIUMhooks/post_gen_project.py587 print(f"Error removing 'requirements' folder: {e}", file=sys.stderr)CODE
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscripts/update_changelog.py159 repo.git.push(server, GIT_BRANCH)CODE
HIGHscripts/update_changelog.py160 repo.git.push("--tags", server, GIT_BRANCH)CODE
Modern Structural Boilerplate5 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/node_version.py39def update_package_json_version(old_version: str, new_version: str) -> None:CODE
LOWscripts/node_version.py48def update_production_node_version(old_version: str, new_version: str) -> None:CODE
LOWscripts/update_changelog.py131def update_version(file_path: Path, release: str) -> None:CODE
LOWscripts/update_changelog.py142def update_git_repo(paths: list[Path], release: str) -> None:CODE
LOWscripts/python_dependency_version.py51def update_package_version(package_name: str, old_version: str, new_version: str) -> None:CODE
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/node_version.py1CODE
LOWscripts/create_django_issue.py10CODE
LOWscripts/python_dependency_version.py1CODE
LOW…r.project_slug}}/merge_production_dotenvs_in_dotenv.py1CODE
LOW…lug}}/tests/test_merge_production_dotenvs_in_dotenv.py1CODE
LOW…slug}}/{{cookiecutter.project_slug}}/users/managers.py7CODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/6-about/generative-ai.md17Maintainers may close issues and PRs that are not useful or productive, including those that are fully generated by AI. CODE
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOW…{cookiecutter.project_slug}}/users/tests/test_admin.py51 user = User.objects.get(email="admin@example.com")CODE
LOW…okiecutter.project_slug}}/users/tests/test_managers.py24 email="admin@example.com",CODE
LOW…okiecutter.project_slug}}/users/tests/test_managers.py27 assert user.email == "admin@example.com"CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_cookiecutter_generation.py333CODE
LOWscripts/update_changelog.py86CODE
LOWscripts/create_django_issue.py154CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdocs/conf.py3# This file is execfile()d with the current directory set to its containing dir.COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/create_django_issue.py289 # Check if there are any djsCOMMENT
LOW…tter.project_slug}}/utility/install_os_dependencies.sh9# Check if a requirements file exist for the current distribution.COMMENT