Repository Analysis

google/python-fire

Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.

17.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google/python-fire, a Python project with 28,218 GitHub stars. SynthScan v2.0 examined 13,206 lines of code across 76 source files, recording 171 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 17.7 places this repository in the Moderate 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).

17.7
Adjusted Score
17.7
Raw Score
100%
Time Factor
2026-07-01
Last Push
28.2K
Stars
Python
Language
13.2K
Lines of Code
76
Files
171
Pattern Hits
2026-07-14
Scan Date
0.18
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 14MEDIUM 2LOW 155

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 171 distinct pattern matches across 11 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.

Docstring Block Structure14 hits · 70 pts
SeverityFileLineSnippetContext
HIGHfire/test_components.py375Generators have a ``Yields`` section instead of a ``Returns`` section. Args: n (int): The upper limit of thSTRING
HIGHfire/core.py74This function, Fire, is the main entrypoint for Python Fire. Executes a command either from the `command` argument orSTRING
HIGHfire/core.py362Execute a Fire command on a target component using the args supplied. Arguments that come after a final isolated '--'STRING
HIGHfire/core.py623Returns a subcomponent of component by consuming an arg from args. Given a starting component and args, this functionSTRING
HIGHfire/core.py765Parses the positional and named arguments from the available supplied args. Modifies kwargs, removing args as they arSTRING
HIGHfire/core.py823Parses the supplied arguments for keyword arguments. Given a list of arguments, finds occurrences of --name value, anSTRING
HIGHfire/parser.py80Parse value as a Python literal, or container of containers and literals. First the AST of the value is updated so thSTRING
HIGHfire/__main__.py43Performs a module import given the filename. Args: path (str): the path to the file to be imported. Raises: STRING
HIGHfire/__main__.py79Imports a given module or filename. If the module_or_filename exists in the file system and ends with .py, we attemSTRING
HIGHfire/console/files.py34Internal function to a find an executable. Args: executable: The name of the executable to find. path: A listSTRING
HIGHfire/console/files.py75Searches for `executable` in the directories listed in `path` or $PATH. Executable must not contain a directory or anSTRING
HIGHfire/console/platforms.py116Gets the enum corresponding to the given operating system id. Args: os_id: str, The operating system id to paSTRING
HIGHfire/console/platforms.py240Gets the enum corresponding to the given architecture id. Args: architecture_id: str, The architecture id to STRING
HIGHfire/console/platforms.py422Ensure that the Python version we are using is compatible. This will print an error message if not compatible. STRING
Over-Commented Block57 hits · 57 pts
SeverityFileLineSnippetContext
LOWfire/custom_descriptions.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/fire_import_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/interact_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/trace.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/test_components.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/decorators_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/test_components_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/formatting_windows.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/docstrings_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/trace_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/completion.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/helptext_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/testutils.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/inspectutils.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/fire_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/__init__.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/completion_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/core.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/parser_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/formatting.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/custom_descriptions_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/core_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/docstrings.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/parser.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/parser_fuzz_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/formatting_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/test_components_py3.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/test_components_bin.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/helptext.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/docstrings_fuzz_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/value_types.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/main_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/testutils_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/interact.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/__main__.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/inspectutils_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/decorators.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWfire/console/files.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/encoding.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/encoding.py101 return string.decode(sys.getdefaultencoding())COMMENT
LOWfire/console/console_io.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/platforms.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/console_attr_os.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/console_pager.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/text.py1# -*- coding: utf-8 -*- #COMMENT
LOWfire/console/console_attr.py1# -*- coding: utf-8 -*- #COMMENT
LOWexamples/widget/widget_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/widget/widget.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/widget/collector.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/widget/collector_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/identity/identity.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/cipher/cipher_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/cipher/cipher.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/diff/diff_test.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/diff/diff.py1# Copyright (C) 2018 Google Inc.COMMENT
LOWexamples/diff/difffull.py1# Copyright (C) 2018 Google Inc.COMMENT
LOW.github/scripts/build.sh1# Copyright (C) 2018 Google Inc.COMMENT
Hyper-Verbose Identifiers35 hits · 34 pts
SeverityFileLineSnippetContext
LOWfire/test_components.py30def multiplier_with_docstring(num, rate=2):CODE
LOWfire/test_components.py448def function_with_keyword_arguments(arg1, arg2=3, **kwargs):CODE
LOWfire/test_components.py453def fn_with_code_in_docstring():CODE
LOWfire/test_components.py548def fn_with_kwarg_and_defaults(arg1, arg2, opt=True, **kwargs):CODE
LOWfire/test_components.py559def fn_with_multiple_defaults(first='first', last='last', late='late'):CODE
LOWfire/docstrings_test.py37 def test_one_line_simple_whitespace(self):CODE
LOWfire/docstrings_test.py73 def test_one_line_runs_over_whitespace(self):STRING
LOWfire/docstrings_test.py85 def test_google_format_args_only(self):STRING
LOWfire/docstrings_test.py102 def test_google_format_arg_named_args(self):STRING
LOWfire/docstrings_test.py115 def test_google_format_typed_args_and_returns(self):STRING
LOWfire/docstrings_test.py143 def test_google_format_multiline_arg_description(self):STRING
LOWfire/docstrings_test.py169 def test_rst_format_typed_args_and_returns(self):STRING
LOWfire/docstrings_test.py198 def test_numpy_format_typed_args_and_returns(self):STRING
LOWfire/docstrings_test.py232 def test_numpy_format_multiline_arg_description(self):STRING
LOWfire/docstrings_test.py261 def test_multisection_docstring(self):STRING
LOWfire/docstrings_test.py280 def test_google_section_with_blank_first_line(self):STRING
LOWfire/docstrings_test.py293 def test_ill_formed_docstring(self):STRING
LOWfire/docstrings_test.py309 def test_numpy_colon_in_description(self):STRING
LOWfire/docstrings_test.py335 def test_rst_format_typed_args_and_kwargs(self):STRING
LOWfire/custom_descriptions_test.py25 def test_string_type_summary_enough_space(self):CODE
LOWfire/custom_descriptions_test.py31 def test_string_type_summary_not_enough_space_truncated(self):CODE
LOWfire/custom_descriptions_test.py37 def test_string_type_summary_not_enough_space_new_line(self):CODE
LOWfire/custom_descriptions_test.py43 def test_string_type_summary_not_enough_space_long_truncated(self):CODE
LOWfire/custom_descriptions_test.py49 def test_string_type_description_enough_space(self):CODE
LOWfire/custom_descriptions_test.py55 def test_string_type_description_not_enough_space_truncated(self):CODE
LOWfire/custom_descriptions_test.py61 def test_string_type_description_not_enough_space_new_line(self):CODE
LOWfire/docstrings.py274def _get_or_create_arg_by_name(state, name, is_kwarg=False):CODE
LOWfire/docstrings.py386def _consume_google_args_line(line_info, state):CODE
LOWfire/docstrings.py577def _google_section_permitted(line_info, state):CODE
LOWfire/docstrings.py639def _section_from_possible_title(possible_title):CODE
LOWfire/docstrings.py751def _line_is_numpy_parameter_type(line_info):CODE
LOWfire/formatting_test.py37 def test_indent_multiple_lines(self):CODE
LOWfire/formatting_test.py58 def test_ellipsis_truncate_not_enough_space(self):CODE
LOWfire/formatting_test.py64 def test_ellipsis_middle_truncate(self):CODE
LOWfire/formatting_test.py70 def test_ellipsis_middle_truncate_not_enough_space(self):CODE
Unused Imports26 hits · 26 pts
SeverityFileLineSnippetContext
LOWfire/interact_test.py24CODE
LOWfire/test_components.py21CODE
LOWfire/__init__.py17CODE
LOWfire/formatting.py17CODE
LOWfire/test_components_py3.py17CODE
LOWfire/console/files.py18CODE
LOWfire/console/files.py19CODE
LOWfire/console/files.py20CODE
LOWfire/console/encoding.py19CODE
LOWfire/console/encoding.py20CODE
LOWfire/console/encoding.py21CODE
LOWfire/console/platforms.py18CODE
LOWfire/console/platforms.py19CODE
LOWfire/console/platforms.py20CODE
LOWfire/console/console_attr_os.py18CODE
LOWfire/console/console_attr_os.py19CODE
LOWfire/console/console_attr_os.py20CODE
LOWfire/console/console_pager.py18CODE
LOWfire/console/console_pager.py19CODE
LOWfire/console/console_pager.py20CODE
LOWfire/console/text.py17CODE
LOWfire/console/text.py18CODE
LOWfire/console/text.py19CODE
LOWfire/console/console_attr.py90CODE
LOWfire/console/console_attr.py91CODE
LOWfire/console/console_attr.py92CODE
Deep Nesting21 hits · 21 pts
SeverityFileLineSnippetContext
LOWfire/formatting_windows.py30CODE
LOWfire/completion.py479CODE
LOWfire/testutils.py71CODE
LOWfire/inspectutils.py49CODE
LOWfire/inspectutils.py87CODE
LOWfire/core.py239CODE
LOWfire/core.py361CODE
LOWfire/core.py763CODE
LOWfire/core.py822CODE
LOWfire/core.py965CODE
LOWfire/docstrings.py386CODE
LOWfire/docstrings.py411CODE
LOWfire/parser.py79CODE
LOWfire/helptext.py191CODE
LOWfire/helptext.py597CODE
LOWfire/console/console_io.py68CODE
LOWfire/console/platforms.py141CODE
LOWfire/console/platforms.py421CODE
LOWfire/console/console_attr_os.py158CODE
LOWfire/console/console_attr_os.py165CODE
LOWfire/console/console_pager.py169CODE
Fake / Example Data8 hits · 12 pts
SeverityFileLineSnippetContext
LOWfire/custom_descriptions_test.py44 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py44 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py56 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py56 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py62 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py62 component = 'Lorem ipsum dolor sit amet'CODE
LOWfire/custom_descriptions_test.py65 self.assertEqual(description, 'The string "Lorem ipsum dolor sit amet"')CODE
LOWfire/custom_descriptions_test.py65 self.assertEqual(description, 'The string "Lorem ipsum dolor sit amet"')CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWfire/core.py221 # Check if --help would be consumed as a keyword argument, or is a member.COMMENT
LOWfire/helptext.py196 # Check if positional args are allowed. If not, require flag syntax for args.COMMENT
LOWfire/helptext.py336 # Check if positional args are allowed. If not, require flag syntax for args.COMMENT
LOWfire/helptext.py708 # Check if positional args are allowed. If not, show flag syntax for args.COMMENT
Self-Referential Comments2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMfire/formatting_windows.py15"""This module is used for enabling formatting on Windows."""STRING
MEDIUMfire/console/platforms.py371 # Create a new session with the new process the group leader.COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWfire/trace.py246CODE
LOWfire/core.py164CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfire/inspectutils.py109 except Exception:CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfire/__init__.py19__all__ = ['Fire']CODE