The Pokémon API
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ces/scripts/data/new_language/validate_new_language.py | 75 | def check_exact_language_names( | CODE |
| LOW | …ces/scripts/data/new_language/validate_new_language.py | 158 | def check_copied_table_coverage( | CODE |
| LOW | pokemon_v2/serializers.py | 641 | def get_region_version_groups(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 2681 | def group_relations_by_generation(self, serializer_data): | CODE |
| LOW | pokemon_v2/serializers.py | 2863 | def get_type_past_relationships(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 4001 | def get_pokemon_form_pokemon_names(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 4125 | def get_pokemon_form_triggers_conditions(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 4228 | def get_method_version_groups(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 5118 | def get_past_pokemon_abilities(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 6400 | def get_pokedex_version_groups(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 6476 | def get_version_group_regions(self, obj): | CODE |
| LOW | pokemon_v2/serializers.py | 6538 | def get_version_groups_pokedexes(self, obj): | CODE |
| LOW | pokemon_v2/test_models.py | 31 | def test_all_csv_identifiers_are_ascii_slugs(self): | CODE |
| LOW | pokemon_v2/test_models.py | 123 | def test_identifier_pattern_examples(self): | CODE |
| LOW⚡ | pokemon_v2/tests.py | 244 | def setup_item_attribute_map_data(cls, item, item_attribute): | CODE |
| LOW⚡ | pokemon_v2/tests.py | 251 | def setup_item_fling_effect_data(cls, name="itm flng efct"): | CODE |
| LOW⚡ | pokemon_v2/tests.py | 260 | def setup_item_fling_effect_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 81 | def setup_generation_name_data(cls, generation, name="gen nm"): | CODE |
| LOW | pokemon_v2/tests.py | 104 | def setup_version_group_region_data(cls, version_group=None, region=None): | CODE |
| LOW | pokemon_v2/tests.py | 157 | def setup_ability_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 170 | def setup_ability_change_data(cls, ability): | CODE |
| LOW | pokemon_v2/tests.py | 181 | def setup_ability_change_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 194 | def setup_ability_flavor_text_data(cls, ability, flavor_text="ablty flvr txt"): | CODE |
| LOW | pokemon_v2/tests.py | 211 | def setup_item_attribute_data(cls, name="itm attr"): | CODE |
| LOW | pokemon_v2/tests.py | 220 | def setup_item_attribute_name_data(cls, item_attribute, name="itm attr nm"): | CODE |
| LOW | pokemon_v2/tests.py | 231 | def setup_item_attribute_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 282 | def setup_item_pocket_name_data(cls, item_pocket, name="itm pkt nm"): | CODE |
| LOW | pokemon_v2/tests.py | 304 | def setup_item_category_name_data(cls, item_category, name="itm ctgry nm"): | CODE |
| LOW | pokemon_v2/tests.py | 359 | def setup_item_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 372 | def setup_item_flavor_text_data(cls, item, flavor_text="itm flvr txt"): | CODE |
| LOW | pokemon_v2/tests.py | 388 | def setup_item_game_index_data(cls, item, game_index=0): | CODE |
| LOW | pokemon_v2/tests.py | 409 | def setup_contest_type_name_data(cls, contest_type, name="cntst tp nm"): | CODE |
| LOW | pokemon_v2/tests.py | 420 | def setup_contest_effect_data(cls, appeal=2, jam=0): | CODE |
| LOW | pokemon_v2/tests.py | 427 | def setup_contest_effect_flavor_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 440 | def setup_contest_effect_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 453 | def setup_super_contest_effect_data(cls, appeal=2): | CODE |
| LOW | pokemon_v2/tests.py | 462 | def setup_super_contest_effect_flavor_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 489 | def setup_berry_flavor_name_data(cls, berry_flavor, name="bry flvr nm"): | CODE |
| LOW | pokemon_v2/tests.py | 500 | def setup_berry_firmness_data(cls, name="bry frmns"): | CODE |
| LOW | pokemon_v2/tests.py | 509 | def setup_berry_firmness_name_data(cls, berry_firmness, name="bry frmns nm"): | CODE |
| LOW | pokemon_v2/tests.py | 520 | def setup_berry_flavor_map_data(cls, berry, berry_flavor, potency=20): | CODE |
| LOW | pokemon_v2/tests.py | 575 | def setup_egg_group_name_data(cls, egg_group, name="ntr nm"): | CODE |
| LOW | pokemon_v2/tests.py | 594 | def setup_growth_rate_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 617 | def setup_location_game_index_data(cls, location, game_index=0): | CODE |
| LOW | pokemon_v2/tests.py | 650 | def setup_location_area_name_data(cls, location_area, name="lctn area nm"): | CODE |
| LOW | pokemon_v2/tests.py | 686 | def setup_type_game_index_data(cls, type, game_index=0): | CODE |
| LOW | pokemon_v2/tests.py | 754 | def setup_move_ailment_name_data(cls, move_ailment, name="mv almnt nm"): | CODE |
| LOW | pokemon_v2/tests.py | 765 | def setup_move_battle_style_data(cls, name="mv btl stl"): | CODE |
| LOW | pokemon_v2/tests.py | 772 | def setup_move_battle_style_name_data(cls, move_battle_style, name="mv almnt nm"): | CODE |
| LOW | pokemon_v2/tests.py | 790 | def setup_move_category_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 810 | def setup_move_effect_effect_text_data( | CODE |
| LOW | pokemon_v2/tests.py | 829 | def setup_move_damage_class_data(cls, name="mv dmg cls"): | CODE |
| LOW | pokemon_v2/tests.py | 836 | def setup_move_damage_class_name_data(cls, move_damage_class, name="mv dmg cls nm"): | CODE |
| LOW | pokemon_v2/tests.py | 847 | def setup_move_damage_class_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 862 | def setup_move_learn_method_data(cls, name="mv lrn mthd"): | CODE |
| LOW | pokemon_v2/tests.py | 869 | def setup_move_learn_method_name_data( | CODE |
| LOW | pokemon_v2/tests.py | 882 | def setup_move_learn_method_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 904 | def setup_move_target_name_data(cls, move_target, name="mv trgt nm"): | CODE |
| LOW | pokemon_v2/tests.py | 915 | def setup_move_target_description_data( | CODE |
| LOW | pokemon_v2/tests.py | 937 | def setup_version_group_move_learn_method_data( | CODE |
| 59 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pokemon_v2/serializers.py | 4301 | # "awesome_names": [ | COMMENT |
| LOW | pokemon_v2/serializers.py | 4501 | } | COMMENT |
| LOW | pokemon_v2/serializers.py | 4521 | # "url": "https://pokeapi.co/api/v2/version-group/1/" | COMMENT |
| LOW | pokemon_v2/serializers.py | 4541 | # "version_group": { | COMMENT |
| LOW | pokemon_v2/serializers.py | 4561 | # "url": "https://pokeapi.co/api/v2/move-learn-method/1/" | COMMENT |
| LOW | pokemon_v2/serializers.py | 4581 | # "move_learn_method": { | COMMENT |
| LOW | pokemon_v2/serializers.py | 4601 | # { | COMMENT |
| LOW | pokemon_v2/serializers.py | 4621 | # } | COMMENT |
| LOW | pokemon_v2/serializers.py | 4641 | # "name": "colosseum", | COMMENT |
| LOW | pokemon_v2/serializers.py | 4661 | # }, | COMMENT |
| LOW | pokemon_v2/serializers.py | 4681 | # "name": "level-up", | COMMENT |
| LOW | pokemon_v2/serializers.py | 4701 | # "level_learned_at": 1, | COMMENT |
| LOW | pokemon_v2/serializers.py | 4721 | # }, | COMMENT |
| LOW | pokemon_v2/serializers.py | 4741 | # "url": "https://pokeapi.co/api/v2/version-group/23/" | COMMENT |
| LOW | pokemon_v2/serializers.py | 4761 | # }, | COMMENT |
| LOW | pokemon_v2/serializers.py | 4901 | # { | COMMENT |
| LOW | pokemon_v2/serializers.py | 5041 | for ability in data: | COMMENT |
| LOW | pokemon_v2/serializers.py | 5281 | COMMENT | |
| LOW | data/v2/build.py | 1 | # To build out the data you'll need to jump into the Django shell | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config/docker-compose.py | 3 | CODE | |
| LOW | config/local.py | 1 | CODE | |
| LOW | config/docker.py | 2 | CODE | |
| LOW | …ces/scripts/data/new_language/validate_new_language.py | 4 | CODE | |
| LOW | …ources/scripts/data/new_language/apply_new_language.py | 7 | CODE | |
| LOW | Resources/scripts/data/gen8/read_swsh.py | 4 | CODE | |
| LOW | pokemon_v2/serializers.py | 2 | CODE | |
| LOW | pokemon_v2/serializers.py | 11 | CODE | |
| LOW | pokemon_v2/api.py | 12 | CODE | |
| LOW | pokemon_v2/api.py | 13 | CODE | |
| LOW | pokemon_v2/test_models.py | 6 | CODE | |
| LOW | pokemon_v2/tests.py | 5 | CODE | |
| LOW | pokemon_v2/urls.py | 10 | CODE | |
| LOW | data/v2/build.py | 18 | CODE | |
| LOW | data/v2/build.py | 20 | CODE | |
| LOW | data/v2/__init__.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Resources/scripts/data/gen8/to_csv.py | 35 | except Exception as error: | CODE |
| LOW | Resources/scripts/data/gen8/to_csv.py | 74 | except Exception as error: | CODE |
| LOW | pokemon_v2/api.py | 1088 | except Exception: | CODE |
| LOW | pokemon_v2/api.py | 1099 | except Exception: | CODE |
| LOW | pokemon_v2/api.py | 1111 | except Exception: | CODE |
| MEDIUM | pokemon_v2/api.py | 1079 | def list(self, request): | CODE |
| LOW | pokemon_v2/test_models.py | 80 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Resources/scripts/data/check_encounters.py | 44 | CODE | |
| LOW | Resources/scripts/data/gen8/read_swsh.py | 134 | CODE | |
| LOW | Resources/scripts/data/gen8/read_swsh.py | 188 | CODE | |
| LOW | pokemon_v2/test_models.py | 31 | CODE | |
| LOW | pokemon_v2/tests.py | 696 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pokemon_v2/serializers.py | 3289 | CODE | |
| LOW | pokemon_v2/serializers.py | 3738 | CODE | |
| LOW | pokemon_v2/tests.py | 529 | CODE | |
| LOW | pokemon_v2/tests.py | 973 | CODE | |
| LOW | pokemon_v2/tests.py | 1042 | CODE | |
| LOW | pokemon_v2/tests.py | 1082 | CODE | |
| LOW | pokemon_v2/tests.py | 1424 | CODE | |
| LOW | pokemon_v2/tests.py | 1755 | CODE | |
| LOW | pokemon_v2/tests.py | 1868 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Resources/scripts/updater.sh | 192 | # Check if the updater script has pushed the data to a new branch | COMMENT |
| LOW | pokemon_v2/test_models.py | 69 | # Check if identifier matches the pattern | COMMENT |