Repository Analysis

PokeAPI/pokeapi

The Pokémon API

2.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of PokeAPI/pokeapi, a Python project with 5,277 GitHub stars. SynthScan v2.0 examined 45,028 lines of code across 455 source files, recording 177 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 2.8 places this repository in the Likely human-written 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).

2.8
Adjusted Score
2.8
Raw Score
100%
Time Factor
2026-07-13
Last Push
5.3K
Stars
Python
Language
45.0K
Lines of Code
455
Files
177
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 1LOW 176

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 177 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 Identifiers119 hits · 78 pts
SeverityFileLineSnippetContext
LOW…ces/scripts/data/new_language/validate_new_language.py75def check_exact_language_names(CODE
LOW…ces/scripts/data/new_language/validate_new_language.py158def check_copied_table_coverage(CODE
LOWpokemon_v2/serializers.py641 def get_region_version_groups(self, obj):CODE
LOWpokemon_v2/serializers.py2681 def group_relations_by_generation(self, serializer_data):CODE
LOWpokemon_v2/serializers.py2863 def get_type_past_relationships(self, obj):CODE
LOWpokemon_v2/serializers.py4001 def get_pokemon_form_pokemon_names(self, obj):CODE
LOWpokemon_v2/serializers.py4125 def get_pokemon_form_triggers_conditions(self, obj):CODE
LOWpokemon_v2/serializers.py4228 def get_method_version_groups(self, obj):CODE
LOWpokemon_v2/serializers.py5118 def get_past_pokemon_abilities(self, obj):CODE
LOWpokemon_v2/serializers.py6400 def get_pokedex_version_groups(self, obj):CODE
LOWpokemon_v2/serializers.py6476 def get_version_group_regions(self, obj):CODE
LOWpokemon_v2/serializers.py6538 def get_version_groups_pokedexes(self, obj):CODE
LOWpokemon_v2/test_models.py31 def test_all_csv_identifiers_are_ascii_slugs(self):CODE
LOWpokemon_v2/test_models.py123 def test_identifier_pattern_examples(self):CODE
LOWpokemon_v2/tests.py244 def setup_item_attribute_map_data(cls, item, item_attribute):CODE
LOWpokemon_v2/tests.py251 def setup_item_fling_effect_data(cls, name="itm flng efct"):CODE
LOWpokemon_v2/tests.py260 def setup_item_fling_effect_effect_text_data(CODE
LOWpokemon_v2/tests.py81 def setup_generation_name_data(cls, generation, name="gen nm"):CODE
LOWpokemon_v2/tests.py104 def setup_version_group_region_data(cls, version_group=None, region=None):CODE
LOWpokemon_v2/tests.py157 def setup_ability_effect_text_data(CODE
LOWpokemon_v2/tests.py170 def setup_ability_change_data(cls, ability):CODE
LOWpokemon_v2/tests.py181 def setup_ability_change_effect_text_data(CODE
LOWpokemon_v2/tests.py194 def setup_ability_flavor_text_data(cls, ability, flavor_text="ablty flvr txt"):CODE
LOWpokemon_v2/tests.py211 def setup_item_attribute_data(cls, name="itm attr"):CODE
LOWpokemon_v2/tests.py220 def setup_item_attribute_name_data(cls, item_attribute, name="itm attr nm"):CODE
LOWpokemon_v2/tests.py231 def setup_item_attribute_description_data(CODE
LOWpokemon_v2/tests.py282 def setup_item_pocket_name_data(cls, item_pocket, name="itm pkt nm"):CODE
LOWpokemon_v2/tests.py304 def setup_item_category_name_data(cls, item_category, name="itm ctgry nm"):CODE
LOWpokemon_v2/tests.py359 def setup_item_effect_text_data(CODE
LOWpokemon_v2/tests.py372 def setup_item_flavor_text_data(cls, item, flavor_text="itm flvr txt"):CODE
LOWpokemon_v2/tests.py388 def setup_item_game_index_data(cls, item, game_index=0):CODE
LOWpokemon_v2/tests.py409 def setup_contest_type_name_data(cls, contest_type, name="cntst tp nm"):CODE
LOWpokemon_v2/tests.py420 def setup_contest_effect_data(cls, appeal=2, jam=0):CODE
LOWpokemon_v2/tests.py427 def setup_contest_effect_flavor_text_data(CODE
LOWpokemon_v2/tests.py440 def setup_contest_effect_effect_text_data(CODE
LOWpokemon_v2/tests.py453 def setup_super_contest_effect_data(cls, appeal=2):CODE
LOWpokemon_v2/tests.py462 def setup_super_contest_effect_flavor_text_data(CODE
LOWpokemon_v2/tests.py489 def setup_berry_flavor_name_data(cls, berry_flavor, name="bry flvr nm"):CODE
LOWpokemon_v2/tests.py500 def setup_berry_firmness_data(cls, name="bry frmns"):CODE
LOWpokemon_v2/tests.py509 def setup_berry_firmness_name_data(cls, berry_firmness, name="bry frmns nm"):CODE
LOWpokemon_v2/tests.py520 def setup_berry_flavor_map_data(cls, berry, berry_flavor, potency=20):CODE
LOWpokemon_v2/tests.py575 def setup_egg_group_name_data(cls, egg_group, name="ntr nm"):CODE
LOWpokemon_v2/tests.py594 def setup_growth_rate_description_data(CODE
LOWpokemon_v2/tests.py617 def setup_location_game_index_data(cls, location, game_index=0):CODE
LOWpokemon_v2/tests.py650 def setup_location_area_name_data(cls, location_area, name="lctn area nm"):CODE
LOWpokemon_v2/tests.py686 def setup_type_game_index_data(cls, type, game_index=0):CODE
LOWpokemon_v2/tests.py754 def setup_move_ailment_name_data(cls, move_ailment, name="mv almnt nm"):CODE
LOWpokemon_v2/tests.py765 def setup_move_battle_style_data(cls, name="mv btl stl"):CODE
LOWpokemon_v2/tests.py772 def setup_move_battle_style_name_data(cls, move_battle_style, name="mv almnt nm"):CODE
LOWpokemon_v2/tests.py790 def setup_move_category_description_data(CODE
LOWpokemon_v2/tests.py810 def setup_move_effect_effect_text_data(CODE
LOWpokemon_v2/tests.py829 def setup_move_damage_class_data(cls, name="mv dmg cls"):CODE
LOWpokemon_v2/tests.py836 def setup_move_damage_class_name_data(cls, move_damage_class, name="mv dmg cls nm"):CODE
LOWpokemon_v2/tests.py847 def setup_move_damage_class_description_data(CODE
LOWpokemon_v2/tests.py862 def setup_move_learn_method_data(cls, name="mv lrn mthd"):CODE
LOWpokemon_v2/tests.py869 def setup_move_learn_method_name_data(CODE
LOWpokemon_v2/tests.py882 def setup_move_learn_method_description_data(CODE
LOWpokemon_v2/tests.py904 def setup_move_target_name_data(cls, move_target, name="mv trgt nm"):CODE
LOWpokemon_v2/tests.py915 def setup_move_target_description_data(CODE
LOWpokemon_v2/tests.py937 def setup_version_group_move_learn_method_data(CODE
59 more matches not shown…
Over-Commented Block19 hits · 15 pts
SeverityFileLineSnippetContext
LOWpokemon_v2/serializers.py4301 # "awesome_names": [COMMENT
LOWpokemon_v2/serializers.py4501 }COMMENT
LOWpokemon_v2/serializers.py4521 # "url": "https://pokeapi.co/api/v2/version-group/1/"COMMENT
LOWpokemon_v2/serializers.py4541 # "version_group": {COMMENT
LOWpokemon_v2/serializers.py4561 # "url": "https://pokeapi.co/api/v2/move-learn-method/1/"COMMENT
LOWpokemon_v2/serializers.py4581 # "move_learn_method": {COMMENT
LOWpokemon_v2/serializers.py4601 # {COMMENT
LOWpokemon_v2/serializers.py4621 # }COMMENT
LOWpokemon_v2/serializers.py4641 # "name": "colosseum",COMMENT
LOWpokemon_v2/serializers.py4661 # },COMMENT
LOWpokemon_v2/serializers.py4681 # "name": "level-up",COMMENT
LOWpokemon_v2/serializers.py4701 # "level_learned_at": 1,COMMENT
LOWpokemon_v2/serializers.py4721 # },COMMENT
LOWpokemon_v2/serializers.py4741 # "url": "https://pokeapi.co/api/v2/version-group/23/"COMMENT
LOWpokemon_v2/serializers.py4761 # },COMMENT
LOWpokemon_v2/serializers.py4901 # {COMMENT
LOWpokemon_v2/serializers.py5041 for ability in data:COMMENT
LOWpokemon_v2/serializers.py5281COMMENT
LOWdata/v2/build.py1# To build out the data you'll need to jump into the Django shellCOMMENT
Unused Imports16 hits · 14 pts
SeverityFileLineSnippetContext
LOWconfig/docker-compose.py3CODE
LOWconfig/local.py1CODE
LOWconfig/docker.py2CODE
LOW…ces/scripts/data/new_language/validate_new_language.py4CODE
LOW…ources/scripts/data/new_language/apply_new_language.py7CODE
LOWResources/scripts/data/gen8/read_swsh.py4CODE
LOWpokemon_v2/serializers.py2CODE
LOWpokemon_v2/serializers.py11CODE
LOWpokemon_v2/api.py12CODE
LOWpokemon_v2/api.py13CODE
LOWpokemon_v2/test_models.py6CODE
LOWpokemon_v2/tests.py5CODE
LOWpokemon_v2/urls.py10CODE
LOWdata/v2/build.py18CODE
LOWdata/v2/build.py20CODE
LOWdata/v2/__init__.py1CODE
Excessive Try-Catch Wrapping7 hits · 8 pts
SeverityFileLineSnippetContext
LOWResources/scripts/data/gen8/to_csv.py35 except Exception as error:CODE
LOWResources/scripts/data/gen8/to_csv.py74 except Exception as error:CODE
LOWpokemon_v2/api.py1088 except Exception:CODE
LOWpokemon_v2/api.py1099 except Exception:CODE
LOWpokemon_v2/api.py1111 except Exception:CODE
MEDIUMpokemon_v2/api.py1079def list(self, request):CODE
LOWpokemon_v2/test_models.py80 except Exception as e:CODE
Deep Nesting5 hits · 4 pts
SeverityFileLineSnippetContext
LOWResources/scripts/data/check_encounters.py44CODE
LOWResources/scripts/data/gen8/read_swsh.py134CODE
LOWResources/scripts/data/gen8/read_swsh.py188CODE
LOWpokemon_v2/test_models.py31CODE
LOWpokemon_v2/tests.py696CODE
AI Structural Patterns9 hits · 4 pts
SeverityFileLineSnippetContext
LOWpokemon_v2/serializers.py3289CODE
LOWpokemon_v2/serializers.py3738CODE
LOWpokemon_v2/tests.py529CODE
LOWpokemon_v2/tests.py973CODE
LOWpokemon_v2/tests.py1042CODE
LOWpokemon_v2/tests.py1082CODE
LOWpokemon_v2/tests.py1424CODE
LOWpokemon_v2/tests.py1755CODE
LOWpokemon_v2/tests.py1868CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWResources/scripts/updater.sh192# Check if the updater script has pushed the data to a new branchCOMMENT
LOWpokemon_v2/test_models.py69 # Check if identifier matches the patternCOMMENT