Repository Analysis

kitao/pyxel

A retro game engine for Python

6.4 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of kitao/pyxel, a Rust project with 17,581 GitHub stars. SynthScan v2.0 examined 69,462 lines of code across 239 source files, recording 355 pattern matches distributed across 9 syntactic categories. The overall adjusted score of 6.4 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.4
Adjusted Score
6.4
Raw Score
100%
Time Factor
2026-07-13
Last Push
17.6K
Stars
Rust
Language
69.5K
Lines of Code
239
Files
355
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 1HIGH 0MEDIUM 4LOW 350

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 355 distinct pattern matches across 9 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 Identifiers315 hits · 388 pts
SeverityFileLineSnippetContext
LOWpython/pyxel/cli.py172def _run_python_script_in_separate_process(python_script_file):CODE
LOWpython/pyxel/cli.py244def watch_and_run_python_script(watch_dir: str, python_script_file: str) -> None:CODE
LOWpython/pyxel/cli.py383def create_executable_from_pyxel_app(pyxel_app_file: str) -> None:CODE
LOWpython/pyxel/cli.py437def create_html_from_pyxel_app(pyxel_app_file: str) -> None:CODE
LOWpython/pyxel/editor/tilemap_editor.py122 def __on_tilemap_picker_change(self, value):CODE
LOWpython/pyxel/editor/tilemap_editor.py125 def __on_tilemap_picker_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/sound_editor.py206 def __on_sound_picker_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/sound_editor.py215 def __on_play_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/sound_editor.py221 def __on_stop_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/sound_editor.py224 def __on_loop_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/music_editor.py162 def __on_music_picker_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/music_editor.py168 def __on_play_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/music_editor.py174 def __on_stop_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/music_editor.py177 def __on_loop_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/app.py130 def __on_editor_button_change(self, value):CODE
LOWpython/pyxel/editor/app.py134 def __on_editor_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/app.py140 def __on_undo_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/app.py146 def __on_redo_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/app.py152 def __on_save_button_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/image_editor.py102 def __on_color_picker_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/image_editor.py105 def __on_image_picker_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/editor_base.py81 def check_tool_button_shortcuts(self):CODE
LOWpython/pyxel/editor/editor_base.py105 def __on_number_picker_dec_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/editor_base.py108 def __on_number_picker_inc_mouse_hover(self, _x, _y):CODE
LOWpython/pyxel/editor/editor_base.py111 def __on_tool_button_mouse_hover(self, x, y):CODE
LOWpython/pyxel/editor/widgets/widget.py266 def remove_var_event_listener(self, name, event, listener):CODE
LOWpython/tests/test_music.py11 def test_set_pads_to_num_channels(self):CODE
LOWpython/tests/test_music.py40 def test_set_overwrites_previous(self):CODE
LOWpython/tests/test_music.py47 def test_snds_list_aliases_seqs_deprecated(self, capfd):CODE
LOWpython/tests/test_music.py65 def test_seqs_inner_seq_access(self):CODE
LOWpython/tests/test_music.py74 def test_seqs_inner_seq_setitem(self):CODE
LOWpython/tests/test_music.py82 def test_seqs_inner_seq_append(self):CODE
LOWpython/tests/test_music.py90 def test_seqs_inner_seq_delitem(self):CODE
LOWpython/tests/test_music.py97 def test_seqs_append_new_channel(self):CODE
LOWpython/tests/test_music.py105 def test_seqs_setitem_channel(self):CODE
LOWpython/tests/test_music.py129 def test_seqs_reversed_step_one_slice_assignment_inserts(self):CODE
LOWpython/tests/test_music.py199 def test_seqs_from_list_deprecated(self, capfd):CODE
LOWpython/tests/test_music.py206 def test_seqs_to_list_deprecated(self, capfd):CODE
LOWpython/tests/test_tilemap.py10 def test_new_with_image_instance(self):CODE
LOWpython/tests/test_tilemap.py16 def test_imgsrc_read_write_int(self):CODE
LOWpython/tests/test_tilemap.py23 def test_imgsrc_read_write_image(self):CODE
LOWpython/tests/test_tilemap.py29 def test_pset_pget_returns_tuple(self):CODE
LOWpython/tests/test_tilemap.py144 def test_blt_with_tilemap_instance(self):CODE
LOWpython/tests/test_tilemap.py188 def test_clip_restricts_drawing(self):CODE
LOWpython/tests/test_tilemap.py197 def test_camera_offsets_drawing(self):CODE
LOWpython/tests/test_tilemap.py214 def test_from_tmx_masks_tile_flip_flags(self, tmp_path):CODE
LOWpython/tests/test_tilemap.py275 def test_collide_returns_tuple_of_floats(self):CODE
LOWpython/tests/test_tilemap.py284 def test_collide_horizontal_wall(self):CODE
LOWpython/tests/test_tilemap.py296 def test_collide_vertical_wall(self):CODE
LOWpython/tests/test_tilemap.py313 def test_collide_multiple_wall_tiles(self):CODE
LOWpython/tests/test_tilemap.py326 def test_collide_negative_direction(self):CODE
LOWpython/tests/test_tilemap.py336 def test_collide_empty_walls_list(self):CODE
LOWpython/tests/test_tilemap.py346 def test_image_property_aliases_imgsrc(self, capfd):CODE
LOWpython/tests/test_tilemap.py353 def test_image_setter_deprecated(self, capfd):CODE
LOWpython/tests/test_tilemap.py361 def test_refimg_property_aliases_imgsrc(self, capfd):CODE
LOWpython/tests/test_tilemap.py368 def test_refimg_setter_deprecated(self, capfd):CODE
LOWpython/tests/test_utils.py5 def test_returns_dict_with_system_and_local_keys(self, tmp_path):CODE
LOWpython/tests/test_utils.py12 def test_extracts_system_imports(self, tmp_path):CODE
LOWpython/tests/test_utils.py19 def test_extracts_from_imports(self, tmp_path):CODE
LOWpython/tests/test_utils.py25 def test_extracts_local_imports(self, tmp_path):CODE
255 more matches not shown…
Unused Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWpython/pyxel/__init__.py18CODE
LOWpython/pyxel/editor/__init__.py1CODE
LOWpython/pyxel/editor/__init__.py2CODE
LOWpython/pyxel/editor/widgets/__init__.py1CODE
LOWpython/pyxel/editor/widgets/__init__.py2CODE
LOWpython/pyxel/editor/widgets/__init__.py3CODE
LOWpython/pyxel/editor/widgets/__init__.py4CODE
LOWpython/pyxel/editor/widgets/__init__.py5CODE
LOWpython/pyxel/editor/widgets/__init__.py6CODE
LOWpython/pyxel/editor/widgets/__init__.py7CODE
LOWpython/pyxel/editor/widgets/__init__.py8CODE
LOWpython/pyxel/editor/widgets/__init__.py9CODE
LOWpython/pyxel/editor/widgets/__init__.py10CODE
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWpython/pyxel/cli.py200CODE
LOWpython/pyxel/cli.py244CODE
LOWpython/pyxel/cli.py341CODE
LOWpython/pyxel/utils.py49CODE
LOWpython/pyxel/examples/10_platformer.py193CODE
LOWpython/pyxel/examples/06_click_game.py59CODE
LOWpython/pyxel/examples/07_snake.py123CODE
LOWpython/pyxel/editor/canvas_panel.py283CODE
LOWpython/pyxel/editor/piano_keyboard.py160CODE
LOWpython/pyxel/editor/image_editor.py128CODE
LOWpython/pyxel/editor/editor_base.py81CODE
LOWpython/tests/_runner.py160CODE
LOWpython/tests/_runner.py192CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALweb/code-maker/index.html377 resourceEditor.contentWindow.pyxelContext.pyodide.FS.readFile(CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMpython/pyxel/examples/09_shooter.py189 # Create the player sprite.COMMENT
MEDIUMpython/pyxel/examples/09_shooter.py205 # Create the enemy sprite.COMMENT
MEDIUMpython/pyxel/examples/04_sound_api.py8 # Create the note icon sprite.COMMENT
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWcrates/pyxel-core/src/bgm_generator.rs1// Shared between Pyxel (https://github.com/kitao/pyxel) andCOMMENT
LOWcrates/pyxel-core/src/bgm_generator.rs61#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]COMMENT
LOWpython/pyxel/editor/tilemap_editor.py21 # tilemap_index_varCOMMENT
LOWpython/pyxel/editor/canvas_panel.py21COMMENT
LOWpython/pyxel/editor/sound_editor.py21COMMENT
LOWpython/pyxel/editor/widgets/widget.py21COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMpython/pyxel/examples/15_tiled_map_file.py20 # This example loads a PNG file as the tileset image, but you can also useCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_utils.py46 # Syntax error should not raise, just return empty/partial result.COMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpython/pyxel/editor/__init__.py4__all__ = ["App", "extensions"]CODE
LOWpython/pyxel/editor/widgets/__init__.py12__all__ = [CODE