Repository Analysis

fastapi/full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of fastapi/full-stack-fastapi-template, a TypeScript project with 44,222 GitHub stars. SynthScan v2.0 examined 17,039 lines of code across 197 source files, recording 82 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 6.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).

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
44.2K
Stars
TypeScript
Language
17.0K
Lines of Code
197
Files
82
Pattern Hits
2026-07-14
Scan Date
0.00
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 0MEDIUM 11LOW 71

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 82 distinct pattern matches across 7 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 Identifiers48 hits · 50 pts
SeverityFileLineSnippetContext
LOWbackend/app/utils.py69def generate_reset_password_email(email_to: str, email: str, token: str) -> EmailData:CODE
LOWbackend/app/utils.py86def generate_new_account_email(CODE
LOWbackend/app/utils.py104def generate_password_reset_token(email: str) -> str:CODE
LOWbackend/app/utils.py117def verify_password_reset_token(token: str) -> str | None:CODE
LOWbackend/app/main.py10def custom_generate_unique_id(route: APIRoute) -> str:CODE
LOWbackend/app/core/config.py108 def _enforce_non_default_secrets(self) -> Self:CODE
LOWbackend/app/api/deps.py52def get_current_active_superuser(current_user: CurrentUser) -> User:CODE
LOWbackend/app/api/routes/login.py105def recover_password_html_content(email: str, session: SessionDep) -> Any:CODE
LOWbackend/tests/conftest.py39def normal_user_token_headers(client: TestClient, db: Session) -> dict[str, str]:CODE
LOWbackend/tests/utils/user.py10def user_authentication_headers(CODE
LOWbackend/tests/utils/user.py30def authentication_token_from_email(CODE
LOWbackend/tests/utils/utils.py17def get_superuser_token_headers(client: TestClient) -> dict[str, str]:CODE
LOWbackend/tests/scripts/test_backend_pre_start.py8def test_init_successful_connection() -> None:CODE
LOWbackend/tests/scripts/test_test_pre_start.py8def test_init_successful_connection() -> None:CODE
LOWbackend/tests/crud/test_user.py30def test_not_authenticate_user(db: Session) -> None:CODE
LOWbackend/tests/crud/test_user.py37def test_check_if_user_is_active(db: Session) -> None:CODE
LOWbackend/tests/crud/test_user.py45def test_check_if_user_is_active_inactive(db: Session) -> None:CODE
LOWbackend/tests/crud/test_user.py53def test_check_if_user_is_superuser(db: Session) -> None:CODE
LOWbackend/tests/crud/test_user.py61def test_check_if_user_is_superuser_normal_user(db: Session) -> None:CODE
LOWbackend/tests/api/routes/test_login.py28def test_get_access_token_incorrect_password(client: TestClient) -> None:CODE
LOWbackend/tests/api/routes/test_login.py67def test_recovery_password_user_not_exits(CODE
LOWbackend/tests/api/routes/test_login.py113def test_reset_password_invalid_token(CODE
LOWbackend/tests/api/routes/test_items.py55def test_read_item_not_enough_permissions(CODE
LOWbackend/tests/api/routes/test_items.py100def test_update_item_not_found(CODE
LOWbackend/tests/api/routes/test_items.py114def test_update_item_not_enough_permissions(CODE
LOWbackend/tests/api/routes/test_items.py142def test_delete_item_not_found(CODE
LOWbackend/tests/api/routes/test_items.py154def test_delete_item_not_enough_permissions(CODE
LOWbackend/tests/api/routes/test_users.py15def test_get_users_superuser_me(CODE
LOWbackend/tests/api/routes/test_users.py26def test_get_users_normal_user_me(CODE
LOWbackend/tests/api/routes/test_users.py37def test_create_user_new_email(CODE
LOWbackend/tests/api/routes/test_users.py60def test_get_existing_user_as_superuser(CODE
LOWbackend/tests/api/routes/test_users.py79def test_get_non_existing_user_as_superuser(CODE
LOWbackend/tests/api/routes/test_users.py90def test_get_existing_user_current_user(client: TestClient, db: Session) -> None:CODE
LOWbackend/tests/api/routes/test_users.py117def test_get_existing_user_permissions_error(CODE
LOWbackend/tests/api/routes/test_users.py132def test_get_non_existing_user_permissions_error(CODE
LOWbackend/tests/api/routes/test_users.py146def test_create_user_existing_username(CODE
LOWbackend/tests/api/routes/test_users.py165def test_create_user_by_normal_user(CODE
LOWbackend/tests/api/routes/test_users.py267def test_update_password_me_incorrect_password(CODE
LOWbackend/tests/api/routes/test_users.py282def test_update_user_me_email_exists(CODE
LOWbackend/tests/api/routes/test_users.py300def test_update_password_me_same_password_error(CODE
LOWbackend/tests/api/routes/test_users.py342def test_register_user_already_exists_error(client: TestClient) -> None:CODE
LOWbackend/tests/api/routes/test_users.py384def test_update_user_not_exists(CODE
LOWbackend/tests/api/routes/test_users.py397def test_update_user_email_exists(CODE
LOWbackend/tests/api/routes/test_users.py451def test_delete_user_me_as_superuser(CODE
LOWbackend/tests/api/routes/test_users.py463def test_delete_user_super_user(CODE
LOWbackend/tests/api/routes/test_users.py482def test_delete_user_not_found(CODE
LOWbackend/tests/api/routes/test_users.py493def test_delete_user_current_super_user_error(CODE
LOWbackend/tests/api/routes/test_users.py508def test_delete_user_without_privileges(CODE
Self-Referential Comments11 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMcompose.override.yml23 # Create an entrypoint "http" listening on port 80COMMENT
MEDIUMcompose.override.yml25 # Create an entrypoint "https" listening on port 443COMMENT
MEDIUMcompose.traefik.yml15 # Define the port inside of the Docker service to useCOMMENT
MEDIUMcompose.traefik.yml48 # Create an entrypoint "http" listening on port 80COMMENT
MEDIUMcompose.traefik.yml50 # Create an entrypoint "https" listening on port 443COMMENT
MEDIUMcompose.traefik.yml52 # Create the certificate resolver "le" for Let's Encrypt, uses the environment variable EMAILCOMMENT
MEDIUMcompose.traefik.yml70 # Create a volume to store the certificates, even if the container is recreatedCOMMENT
MEDIUM…98dd8ec85a3_edit_replace_id_integers_in_all_models_.py25 # Create a new UUID column with a default UUID valueCOMMENT
MEDIUMbackend/tests/crud/test_user.py101 # Create a bcrypt hash directly (simulating legacy password)COMMENT
MEDIUMbackend/tests/api/routes/test_login.py136 # Create a bcrypt hash directly (simulating legacy password)COMMENT
MEDIUMbackend/tests/api/routes/test_login.py170 # Create an argon2 hash (current default)COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWREADME.md200- `first_superuser`: (default: `"admin@example.com"`) The email of the first superuser (in .env).CODE
LOWfrontend/src/routes/login.tsx91 placeholder="user@example.com"CODE
LOWfrontend/src/routes/recover-password.tsx101 placeholder="user@example.com"CODE
LOWfrontend/src/routes/signup.tsx122 placeholder="user@example.com"CODE
LOWbackend/tests/api/routes/test_login.py54 patch("app.core.config.settings.SMTP_USER", "admin@example.com"),CODE
LOWbackend/tests/api/routes/test_users.py43 patch("app.core.config.settings.SMTP_USER", "admin@example.com"),CODE
Unused Imports5 hits · 5 pts
SeverityFileLineSnippetContext
LOWbackend/app/alembic/env.py1CODE
LOW…rsions/fe56fa70289e_add_created_at_to_user_and_item.py10CODE
LOW…98dd8ec85a3_edit_replace_id_integers_in_all_models_.py10CODE
LOW…sions/1a31ce608336_add_cascade_delete_relationships.py10CODE
LOW…ons/9c0a54914c78_add_max_length_for_string_varchar_.py10CODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWfrontend/playwright.config.ts41 storageState: 'playwright/.auth/user.json',COMMENT
LOWfrontend/playwright.config.ts61 // dependencies: ['setup'],COMMENT
LOWbackend/alembic.ini1# A generic, single database configuration.COMMENT
LOWbackend/alembic.ini21# the 'revision' command, regardless of autogenerateCOMMENT
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWbackend/app/backend_pre_start.py10logger = logging.getLogger(__name__)CODE
LOWbackend/app/initial_data.py8logger = logging.getLogger(__name__)CODE
LOWbackend/app/utils.py16logger = logging.getLogger(__name__)CODE
LOWbackend/app/tests_pre_start.py10logger = logging.getLogger(__name__)CODE
Excessive Try-Catch Wrapping4 hits · 4 pts
SeverityFileLineSnippetContext
LOWbackend/app/backend_pre_start.py27 except Exception as e:CODE
LOWbackend/app/tests_pre_start.py27 except Exception as e:CODE
LOWbackend/tests/scripts/test_backend_pre_start.py26 except Exception:CODE
LOWbackend/tests/scripts/test_test_pre_start.py26 except Exception:CODE