AI Slop Code Risk Monitor

gitpython-developers/GitPython

SlopCodeMonitor badge for gitpython-developers/GitPython Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

GitPython is a python library used to interact with Git repositories.

36.1 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for gitpython-developers/GitPython, a Python project with 5,192 GitHub stars. SynthScan examined 52,845 lines of code across 201 source files, recording 1384 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 36.1 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

36.1
Adjusted Signal
36.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.2K
Stars
Python
Language
52.8K
Lines of Code
201
Files
1.4K
Pattern Hits
2026-10-31
Scan Date
0.31
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 66.5/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 974 finding(s).

Hallucinated Dependency & Supply Chain Risk 29.7/100 · MEDIUM

Are imports declared and package/API names verified? 258 finding(s).

Agent Over-Engineering Ratio 61.1/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 834 finding(s).

PR Review Velocity Impact 85.6/100 · CRITICAL

Which changes need focused human review? 1384 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 61MEDIUM 171LOW 1150

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1384 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers675 hits · 611 pts
SeverityFileLineSnippetContext
LOWfuzzing/fuzz-targets/utils.py10def is_expected_exception_message(exception: Exception, error_message_list: List[str]) -> bool: # pragma: no coverCODE
LOW⚡fuzzing/fuzz-targets/utils.py78def match_exception_with_traceback(exception_list: Set[Tuple[str, str]], exc_traceback) -> bool:CODE
LOWfuzzing/fuzz-targets/utils.py89def check_exception_against_list(exc_traceback, exception_file: str = "explicit-exceptions-list.txt") -> bool:CODE
LOW⚡test/test_downstream_compatibility.py15def test_public_version_supports_downstream_provider_checks():CODE
LOW⚡test/test_downstream_compatibility.py19def test_legacy_typing_union_import_supports_downstream_registration():CODE
LOW⚡test/test_downstream_compatibility.py25def test_legacy_typing_optional_import_supports_downstream_plugin_import():CODE
LOW⚡test/test_downstream_compatibility.py33def test_config_section_assignment_restores_downstream_git_identity(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py57def test_repo_accepts_explicit_literal_path_selection(object_format, ref_format, monkeypatch):CODE
LOWtest/test_downstream_compatibility.py72def test_revision_root_tree_retains_iterable_path_context(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py84def test_missing_revision_paths_retain_tree_lookup_errors(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py101def test_local_tracking_branch_uses_gits_upstream_location(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py113def test_legacy_gitdb_selector_uses_the_managed_object_backend(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py128def test_index_entries_readers_retain_pending_and_published_snapshots(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py154def test_git_directory_option_selects_the_requested_worktree(object_format, ref_format):CODE
LOWtest/test_downstream_compatibility.py174def test_git_directory_option_retains_explicit_environment():CODE
LOWtest/test_downstream_compatibility.py187def test_separate_git_directory_retains_the_supplied_checkout(object_format, ref_format):CODE
LOWtest/conftest.py120def historical_dependency_sources(request):CODE
LOW⚡test/test_positional_args.py32def test_pull_rejects_option_shaped_refspec(repo, tmp_path, refspec, allow_unsafe_options):CODE
LOW⚡test/test_positional_args.py40def test_pull_rejects_option_shaped_remote(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py48def test_pull_preserves_operand_and_explicit_option_values(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py59def test_delete_head_cannot_override_force(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py68def test_rename_head_cannot_select_current_branch(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py77def test_checkout_rejects_option_shaped_branch_names(repo, tmp_path, name, allow_unsafe_options):CODE
LOW⚡test/test_positional_args.py85def test_tag_operands_follow_option_terminator(repo, tmp_path):CODE
LOWtest/test_positional_args.py98def test_remote_ref_delete_preserves_operand(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py110def test_move_treats_option_shaped_source_as_filename(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py116def test_move_cannot_override_overwrite_protection(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py125def test_ignored_treats_option_shaped_path_as_filename(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py129def test_move_cannot_override_dry_run(repo, tmp_path):CODE
LOW⚡test/test_positional_args.py137def test_remote_update_rejects_option_shaped_name(repo, tmp_path, name):CODE
LOWtest/test_cli_safety.py42def test_default_database_never_uses_python_storage(repo):CODE
LOWtest/test_cli_safety.py54def test_tag_storage_rejects_missing_tagger(plain_repo):CODE
LOWtest/test_cli_safety.py64def test_batch_queries_cannot_inject_a_second_request(repo):CODE
LOW⚡test/test_cli_safety.py75def test_batch_injection_rejected_before_process_start(plain_repo, query):CODE
LOW⚡test/test_cli_safety.py84def test_invalid_object_stream_does_not_start_git(plain_repo, kind, size, data):CODE
LOW⚡test/test_cli_safety.py92def test_library_calls_reject_shell_and_executable_configuration(plain_repo):CODE
LOWtest/test_cli_safety.py106def test_managed_commands_disable_implicit_execution(plain_repo):CODE
LOWtest/test_cli_safety.py121def test_blame_and_archive_do_not_run_configured_commands(repo):CODE
LOWtest/test_cli_safety.py147def test_minimum_git_is_checked_before_creating_repository(scratch):CODE
LOWtest/test_cli_safety.py155def test_raw_command_interface_keeps_its_passthrough_contract():CODE
LOWtest/test_cli_safety.py166def test_removed_object_backend_is_rejected_before_mutation(scratch):CODE
LOWtest/test_cli_safety.py179def test_paths_use_literal_environment_syntax_and_expand_tilde(scratch, monkeypatch):CODE
LOWtest/test_tree.py24def test_tree_cache_edits_do_not_update_object_ids_or_parents():CODE
LOWtest/test_tree.py47def test_invalid_tree_does_not_retain_partial_cache(object_format, invalid_position):CODE
LOWtest/test_tree.py71def test_tree_slicing_follows_list_order_without_changing_the_tree(selection):CODE
LOWtest/test_tree.py86def test_tree_slicing_rejects_a_zero_step():CODE
LOWtest/test_tree.py92def test_reversed_tree_preserves_order_and_nested_paths():CODE
LOWtest/test_tree.py133 def test_valid_unusual_tree_names_round_trip(self, rw_repo):CODE
LOWtest/test_tree.py153 def test_tree_modifier_ordering(self):CODE
LOWtest/test_tree.py188 def test_tree_names_are_checked_at_construction_and_serialization(self, name):CODE
LOWtest/test_tree.py231 def test_gitmodules_symlink_entries_are_rejected(self, rw_repo, name):CODE
LOWtest/test_tree.py289 def test_gitmodules_short_name_near_misses_round_trip(self, rw_repo, name):CODE
LOW⚡test/test_tree.py360 def test_repo_lookup_string_path(self):CODE
LOW⚡test/test_tree.py366 def test_repo_lookup_pathlike_path(self):CODE
LOW⚡test/test_tree.py372 def test_repo_lookup_invalid_string_path(self):CODE
LOW⚡test/test_tree.py377 def test_repo_lookup_invalid_pathlike_path(self):CODE
LOW⚡test/test_tree.py382 def test_repo_lookup_nested_string_path(self):CODE
LOW⚡test/test_tree.py388 def test_repo_lookup_nested_pathlike_path(self):CODE
LOW⚡test/test_tree.py394 def test_repo_lookup_folder_string_path(self):CODE
LOW⚡test/test_tree.py400 def test_repo_lookup_folder_pathlike_path(self):CODE
615 more matches not shown…
Self-Referential Comments128 hits · 388 pts
SeverityFileLineSnippetContext
MEDIUMcheck-version.sh3# This file is part of GitPython and is released under theCOMMENT
MEDIUMinit-tests-after-clone.sh3# This file is part of GitPython and is released under theCOMMENT
MEDIUMbuild-release.sh3# This file is part of GitPython and is released under theCOMMENT
MEDIUMfuzzing/oss-fuzz-scripts/build.sh3# This file is part of GitPython and is released under theCOMMENT
MEDIUM…ng/oss-fuzz-scripts/container-environment-bootstrap.sh3# This file is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_stats.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_tree.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_rev_parse.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_submodule.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_db.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_actor.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_blob_filter.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_typing.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_docs.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUM⚡test/test_docs.py111 # Create a new head/branch.COMMENT
MEDIUM⚡test/test_docs.py114 new_branch = cloned_repo.create_head("feature") # Create a new branch ...CODE
MEDIUM⚡test/test_docs.py122 # Create a new tag reference.COMMENT
MEDIUMtest/test_docs.py173 # Create a local branch at one of the remote's branches.COMMENT
MEDIUMtest/test_docs.py211 # Create a new submodule and check it out on the spot, set up to track theCOMMENT
MEDIUMtest/test_docs.py273 new_branch = repo.create_head("new") # Create a new one.CODE
MEDIUMtest/test_docs.py501 git_cmd.checkout("HEAD", b="my_new_branch") # Create a new branch.CODE
MEDIUM⚡test/test_imports.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_git.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_git.py454 # Create the child process that inherits the environment variable. The childCOMMENT
MEDIUMtest/test_cleanup.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_submodule_no_fetch.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_fun.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/__init__.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_clone.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_util.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/cleanup.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_diff.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_refs.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_refs.py771 # Create a new branch that is likely to touch the file we changed.COMMENT
MEDIUMtest/test_refs.py862 # Create a new non-head ref just to be sure we handle it even if packed.COMMENT
MEDIUMtest/tstrunner.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_installation.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_repo.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_reflog.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_index.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_remote.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_remote.py305 # Create a new UN-shared repo and fetch into it after we pushed a change to theCOMMENT
MEDIUMtest/test_quick_doc.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_fixture_health.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_exc.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUM⚡test/test_blob.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_base.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_commit.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/test_commit.py497 # Create a commit with Unicode in the message, and the author's name.COMMENT
MEDIUMtest/test_remote_progress.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/lib/__init__.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/lib/helper.py3# This module is part of GitPython and is released under theCOMMENT
MEDIUMtest/performance/__init__.py1# This module is part of GitPython and is released under theCOMMENT
MEDIUMsmmap/smmap/test/test_tutorial.py61 # Create a default buffer which can operate on the whole fileCOMMENT
MEDIUMsmmap/doc/source/conf.py5# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMdoc/source/conf.py4# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMgitdb/doc/source/conf.py5# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMgitdb/gitdb/pack.py3# This module is part of GitDB and is released underCOMMENT
MEDIUMgitdb/gitdb/fun.py3# This module is part of GitDB and is released underCOMMENT
MEDIUMgitdb/gitdb/util.py3# This module is part of GitDB and is released underCOMMENT
68 more matches not shown…
Unused Imports223 hits · 196 pts
SeverityFileLineSnippetContext
LOWtest/lib/__init__.py8CODE
LOWsmmap/smmap/__init__.py10CODE
LOWsmmap/smmap/__init__.py11CODE
LOWgitdb/gitdb/fun.py702CODE
LOWgitdb/gitdb/util.py14CODE
LOWgitdb/gitdb/util.py87CODE
LOWgitdb/gitdb/util.py87CODE
LOWgitdb/gitdb/util.py28CODE
LOWgitdb/gitdb/__init__.py14CODE
LOWgitdb/gitdb/__init__.py15CODE
LOWgitdb/gitdb/__init__.py16CODE
LOWgitdb/gitdb/stream.py30CODE
LOWgitdb/gitdb/test/lib.py21CODE
LOWgitdb/gitdb/test/db/lib.py6CODE
LOWgitdb/gitdb/test/db/lib.py6CODE
LOWgitdb/gitdb/test/db/lib.py6CODE
LOWgitdb/gitdb/test/db/test_ref.py11CODE
LOWgitdb/gitdb/db/__init__.py6CODE
LOWgitdb/gitdb/db/__init__.py7CODE
LOWgitdb/gitdb/db/__init__.py8CODE
LOWgitdb/gitdb/db/__init__.py9CODE
LOWgitdb/gitdb/db/__init__.py10CODE
LOWgitdb/gitdb/db/__init__.py11CODE
LOWgit/db.py19CODE
LOWgit/cmd.py6CODE
LOWgit/cmd.py73CODE
LOWgit/cmd.py74CODE
LOWgit/config.py25CODE
LOWgit/config.py26CODE
LOWgit/compat.py16CODE
LOWgit/compat.py16CODE
LOWgit/compat.py20CODE
LOWgit/compat.py20CODE
LOWgit/compat.py20CODE
LOWgit/compat.py20CODE
LOWgit/compat.py20CODE
LOWgit/remote.py46CODE
LOWgit/remote.py47CODE
LOWgit/remote.py48CODE
LOWgit/util.py73CODE
LOWgit/util.py73CODE
LOWgit/util.py73CODE
LOWgit/util.py73CODE
LOWgit/util.py89CODE
LOWgit/util.py83CODE
LOWgit/util.py84CODE
LOWgit/util.py84CODE
LOWgit/util.py85CODE
LOWgit/util.py86CODE
LOWgit/__init__.py91CODE
LOWgit/__init__.py93CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
LOWgit/__init__.py95CODE
163 more matches not shown…
Empty Error Handlers39 hits · 195 pts
SeverityFileLineSnippetContext
HIGHtest/test_util.py208except PermissionError:CODE
HIGHtest/cleanup.py51except FileNotFoundError:CODE
HIGHtest/test_repo.py1142except GitCommandError:CODE
HIGHtest/test_repo.py856except OSError:CODE
HIGHtest/test_repo.py432except OSError:CODE
HIGHtest/test_repo.py445except OSError:CODE
HIGHtest/test_remote.py69except ValueError:CODE
HIGHsmmap/smmap/mman.py65except (TypeError, KeyError):CODE
HIGHsmmap/smmap/test/lib.py33except OSError:CODE
HIGHgitdb/gitdb/pack.py39except ImportError:CODE
HIGHgitdb/gitdb/fun.py703except ImportError:CODE
HIGHgitdb/gitdb/util.py181except OSError:CODE
HIGHgitdb/gitdb/stream.py36except ImportError:CODE
HIGHgitdb/gitdb/test/test_pack.py174except UnsupportedOperation:CODE
HIGHgitdb/gitdb/test/lib.py44except AttributeError:CODE
HIGHgitdb/gitdb/test/test_example.py31except UnboundLocalError:CODE
HIGHgitdb/gitdb/test/performance/test_pack.py119except UnsupportedOperation:CODE
HIGHgitdb/gitdb/db/ref.py46except OSError:CODE
HIGHgitdb/gitdb/db/ref.py73except Exception:CODE
HIGHgitdb/gitdb/db/base.py188except KeyError:CODE
HIGHgit/cmd.py744except (GitCommandNotFound, PermissionError):CODE
HIGHgit/cmd.py138except OSError:CODE
HIGHgit/config.py443except (TypeError, ValueError):CODE
HIGHgit/remote.py1164except AttributeError:CODE
HIGHgit/remote.py859except ValueError:CODE
HIGHgit/util.py1196except OSError:CODE
HIGHgit/util.py1316except (AttributeError, TypeError):CODE
HIGHgit/objects/submodule/base.py264except ValueError:CODE
HIGHgit/objects/submodule/base.py294except AttributeError:CODE
HIGHgit/objects/submodule/base.py1576except KeyError:CODE
HIGHgit/objects/submodule/base.py1768except (cp.NoSectionError, ValueError):CODE
HIGHgit/objects/submodule/base.py464except FileNotFoundError:CODE
HIGHgit/objects/submodule/base.py1043except GitCommandError:CODE
HIGHgit/refs/symbolic.py776except ValueError:CODE
HIGHgit/index/base.py691except IndexError:CODE
HIGHgit/index/base.py480except OSError:CODE
HIGHgit/index/base.py1596except KeyError:CODE
HIGHgit/repo/base.py514except Exception:CODE
HIGHgit/repo/base.py347except ValueError:CODE
Cross-Language Confusion22 hits · 138 pts
SeverityFileLineSnippetContext
HIGHtest/test_byte_output.py85 pushed = target.push("refs/heads/*:refs/heads/*")CODE
HIGHtest/test_docs.py445 origin.push() # Attempt push, ignore errors.CODE
HIGHtest/test_docs.py446 origin.push().raise_if_error() # Push and raise error if it fails.CODE
HIGH⚡test/test_remote.py358 res = remote.push(lhead.reference, progress)CODE
HIGH⚡test/test_remote.py365 res = remote.push(lhead.reference)CODE
HIGH⚡test/test_remote.py371 res = remote.push("+%s" % lhead.reference)CODE
HIGH⚡test/test_remote.py384 res = remote.push(progress=progress, tags=True)CODE
HIGH⚡test/test_remote.py392 res = remote.push(tags=True)CODE
HIGH⚡test/test_remote.py398 res = remote.push("+%s" % new_tag.path)CODE
HIGH⚡test/test_remote.py403 res = remote.push(":%s" % new_tag.path)CODE
HIGH⚡test/test_remote.py413 res = remote.push(new_head, progress)CODE
HIGH⚡test/test_remote.py421 res = remote.push(":%s" % new_head.path, force_with_lease=force_with_lease)CODE
HIGH⚡test/test_remote.py428 res = remote.push(":%s" % new_head.path)CODE
HIGH⚡test/test_remote.py434 res = remote.push(all=True)CODE
HIGH⚡test/test_remote.py442 remote.push(":%s" % other_tag.path, kill_after_timeout=10.0)CODE
HIGHtest/test_remote.py326 remote.push(rw_repo.head.reference)CODE
HIGHtest/test_remote.py652 rem.push("__BAD_REF__")CODE
HIGHtest/test_remote.py918 remote.push(url)CODE
HIGHtest/test_remote.py936 remote.push(url, allow_unsafe_protocols=True)CODE
HIGHtest/test_remote.py956 remote.push(**unsafe_option)CODE
HIGHtest/test_remote.py984 remote.push(**unsafe_option, allow_unsafe_options=True)CODE
HIGHgit/remote.py121 info = remote.push()[0]STRING
Decorative Section Separators36 hits · 108 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_submodule.py1667 # ==================================================COMMENT
MEDIUMtest/test_submodule.py1708 # ==============COMMENT
MEDIUMtest/test_submodule.py1731 # ====================================COMMENT
MEDIUMtest/test_submodule.py1774 # =============COMMENT
MEDIUMtest/test_submodule.py1802 # ==============COMMENT
MEDIUMtest/test_submodule.py1831 # =================COMMENT
MEDIUMdoc/source/conf.py24# ---------------------COMMENT
MEDIUMdoc/source/conf.py94# -----------------------COMMENT
MEDIUMdoc/source/conf.py164# ------------------------COMMENT
MEDIUMgit/cmd.py76# ---------------------------------------------------------------------------------COMMENT
MEDIUMgit/cmd.py97# ==============================================================================COMMENT
MEDIUMgit/cmd.py99# ------------------------------------------------------------------------------COMMENT
MEDIUMgit/compat.py32# ---------------------------------------------------------------------------COMMENT
MEDIUMgit/remote.py54# -------------------------------------------------------------COMMENT
MEDIUMgit/util.py103# ---------------------------------------------------------------------COMMENT
MEDIUMgit/types.py171# -----------------------------------------------------------------------------------COMMENT
MEDIUMgit/exc.py58# ------------------------------------------------------------------COMMENT
MEDIUMgit/diff.py45# ------------------------------------------------------------------------COMMENT
MEDIUMgit/objects/tree.py51# --------------------------------------------------------COMMENT
MEDIUMgit/objects/util.py81# --------------------------------------------------------------------COMMENT
MEDIUMgit/objects/commit.py57# ------------------------------------------------------------------------COMMENT
MEDIUMgit/objects/base.py36# --------------------------------------------------------------------------COMMENT
MEDIUMgit/objects/tag.py35# ---------------------------------------------------COMMENT
MEDIUMgit/objects/submodule/root.py22# ----------------------------------------------------------------------------COMMENT
MEDIUMgit/objects/submodule/base.py79# -----------------------------------------------------------------------------COMMENT
MEDIUMgit/objects/submodule/base.py1001 # ===============================COMMENT
MEDIUMgit/objects/submodule/base.py1006 # ===============================COMMENT
MEDIUMgit/refs/remote.py23# ------------------------------------------------------------------------------COMMENT
MEDIUMgit/refs/symbolic.py48# ------------------------------------------------------------------------------COMMENT
MEDIUMgit/refs/head.py29# -------------------------------------------------------------------COMMENT
MEDIUMgit/refs/reference.py20# ------------------------------------------------------------------------------COMMENT
MEDIUMgit/refs/tag.py27# ------------------------------------------------------------------------------COMMENT
MEDIUMgit/index/util.py24# ---------------------------------------------------------------------------------COMMENT
MEDIUMgit/index/typ.py27# ---------------------------------------------------------------------------------COMMENT
MEDIUMgit/index/base.py83# ------------------------------------------------------------------------------------COMMENT
MEDIUMgit/repo/base.py94# -----------------------------------------------------------COMMENT
Deep Nesting110 hits · 89 pts
SeverityFileLineSnippetContext
LOWsetup.py42CODE
LOWfuzzing/fuzz-targets/fuzz_submodule.py23CODE
LOWtest/test_submodule.py86CODE
LOWtest/test_submodule.py163CODE
LOWtest/test_submodule.py198CODE
LOWtest/test_submodule.py298CODE
LOWtest/test_submodule.py564CODE
LOWtest/test_submodule.py602CODE
LOWtest/test_submodule.py627CODE
LOWtest/test_submodule.py2708CODE
LOWtest/test_submodule.py2720CODE
LOWtest/test_gix_backend.py82CODE
LOWtest/test_gix_backend.py137CODE
LOWtest/test_gix_backend.py267CODE
LOWtest/test_gix_backend.py326CODE
LOWtest/test_gix_backend.py352CODE
LOWtest/test_git.py518CODE
LOWtest/test_git.py891CODE
LOWtest/test_cleanup.py186CODE
LOWtest/test_fun.py69CODE
LOWtest/test_clone.py422CODE
LOWtest/test_command_guards.py42CODE
LOWtest/test_command_guards.py208CODE
LOWtest/test_command_guards.py249CODE
LOWtest/test_diff.py471CODE
LOWtest/test_refs.py95CODE
LOWtest/test_refs.py169CODE
LOWtest/test_refs.py200CODE
LOWtest/test_refs.py1143CODE
LOWtest/test_refs.py1163CODE
LOWtest/test_refs.py1179CODE
LOWtest/test_config.py269CODE
LOWtest/test_index.py534CODE
LOWtest/test_index.py975CODE
LOWtest/test_index.py1217CODE
LOWtest/test_index.py1267CODE
LOWtest/test_index.py553CODE
LOWtest/test_remote.py1054CODE
LOWtest/test_base.py36CODE
LOWtest/test_commit.py229CODE
LOWtest/test_commit.py537CODE
LOWtest/test_commit.py649CODE
LOWtest/lib/helper.py273CODE
LOWtest/lib/helper.py304CODE
LOWtest/lib/helper.py306CODE
LOWtest/lib/fixtures.py31CODE
LOWsmmap/smmap/mman.py303CODE
LOWsmmap/smmap/mman.py491CODE
LOWsmmap/smmap/test/test_mman.py50CODE
LOWsmmap/smmap/test/test_mman.py96CODE
LOWsmmap/smmap/test/test_buf.py25CODE
LOWgitdb/gitdb/pack.py862CODE
LOWgitdb/gitdb/fun.py536CODE
LOWgitdb/gitdb/fun.py248CODE
LOWgitdb/gitdb/test/test_stream.py76CODE
LOWgitdb/gitdb/test/performance/test_pack.py105CODE
LOWgitdb/gitdb/db/git.py44CODE
LOWgit/cmd.py104CODE
LOWgit/cmd.py143CODE
LOWgit/cmd.py190CODE
50 more matches not shown…
Modern Structural Boilerplate52 hits · 52 pts
SeverityFileLineSnippetContext
LOWtest/lib/__init__.py10__all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))]CODE
LOWtest/lib/helper.py6__all__ = [CODE
LOWsmmap/smmap/mman.py12__all__ = ["StaticWindowMapManager", "SlidingWindowMapManager", "WindowCursor"]CODE
LOWsmmap/smmap/buf.py4__all__ = ["SlidingWindowMapBuffer"]CODE
LOWsmmap/smmap/util.py8__all__ = ["align_to_mmap", "is_64_bit",CODE
LOWsmmap/smmap/test/lib.py6__all__ = ['TestBase', 'FileCreator']CODE
LOWgitdb/gitdb/exc.py8__all__ = [CODE
LOWgit/db.py6__all__ = ["GitCmdObjectDB", "GitDB"]CODE
LOWgit/cmd.py8__all__ = ["Git"]CODE
LOWgit/cmd.py1190 def set_persistent_git_options(self, **kwargs: Any) -> None:CODE
LOWgit/config.py8__all__ = ["GitConfigParser", "SectionConstraint"]CODE
LOWgit/remote.py8__all__ = ["RemoteProgress", "PushInfo", "FetchInfo", "Remote"]CODE
LOWgit/remote.py500 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/util.py8__all__ = [CODE
LOWgit/__init__.py8__all__ = [CODE
LOWgit/exc.py8__all__ = [CODE
LOWgit/diff.py6__all__ = ["DiffConstants", "NULL_TREE", "NULL_TREE_SHA", "INDEX", "Diffable", "DiffIndex", "Diff"]CODE
LOWgit/objects/tree.py6__all__ = ["TreeModifier", "Tree"]CODE
LOWgit/objects/tree.py218 def _set_cache_(self, attr: str) -> None:STRING
LOW⚡git/objects/fun.py8__all__ = []CODE
LOWgit/objects/util.py8__all__ = [CODE
LOWgit/objects/commit.py6__all__ = ["Commit"]CODE
LOWgit/objects/commit.py287 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/objects/__init__.py6__all__ = [CODE
LOWgit/objects/blob.py6__all__ = ["Blob"]CODE
LOWgit/objects/base.py6__all__ = ["Object", "IndexObject"]CODE
LOWgit/objects/base.py162 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/objects/base.py283 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/objects/tag.py12__all__ = ["TagObject"]CODE
LOWgit/objects/tag.py107 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/objects/submodule/util.py4__all__ = [CODE
LOWgit/objects/submodule/util.py185 def set_submodule(self, submodule: "Submodule") -> None:CODE
LOWgit/objects/submodule/__init__.py4__all__ = ["Submodule", "UpdateProgress", "RootModule", "RootUpdateProgress"]CODE
LOWgit/objects/submodule/root.py4__all__ = ["RootModule", "RootUpdateProgress"]CODE
LOWgit/objects/submodule/base.py4__all__ = ["Submodule", "UpdateProgress"]CODE
LOWgit/objects/submodule/base.py175 def _set_cache_(self, attr: str) -> None:CODE
LOWgit/refs/log.py6__all__ = ["RefLog", "RefLogEntry"]CODE
LOWgit/refs/remote.py6__all__ = ["RemoteReference"]CODE
LOWgit/refs/__init__.py4__all__ = [CODE
LOWgit/refs/symbolic.py4__all__ = ["SymbolicReference"]CODE
LOWgit/refs/head.py9__all__ = ["HEAD", "Head"]CODE
LOWgit/refs/reference.py4__all__ = ["Reference"]CODE
LOWgit/refs/tag.py11__all__ = ["TagReference", "Tag"]CODE
LOWgit/index/fun.py16__all__ = ["entry_key", "stat_mode_to_index_mode", "S_IFGITLINK", "run_commit_hook", "hook_path"]CODE
LOWgit/index/util.py6__all__ = ["TemporaryFileSwap", "default_index", "git_working_dir"]CODE
LOWgit/index/__init__.py6__all__ = [CODE
LOWgit/index/typ.py6__all__ = ["BlobFilter", "BaseIndexEntry", "IndexEntry", "StageType"]CODE
LOWgit/index/base.py9__all__ = ["IndexFile", "CheckoutError", "StageType"]CODE
LOWgit/repo/fun.py8__all__ = [CODE
LOWgit/repo/__init__.py6__all__ = ["Repo"]CODE
LOWgit/repo/base.py8__all__ = ["Repo"]CODE
LOWgit/repo/base.py1104 def _set_daemon_export(self, value: object) -> None:STRING
Over-Commented Block41 hits · 41 pts
SeverityFileLineSnippetContext
LOWfuzzing/fuzz-targets/fuzz_config.py1# Copyright 2023 Google LLCCOMMENT
LOWtest/test_docs.py41 # ACTUALLY skipped by git.util.rmtree (in local onerror function), from the lastCOMMENT
LOWtest/__init__.py1# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributorsCOMMENT
LOWtest/test_quick_doc.py81 # Outputs: [<git.Commit "SHA1-HEX_HASH-2">,COMMENT
LOWtest/test_quick_doc.py181COMMENT
LOWtest/test_quick_doc.py221COMMENT
LOWtest/performance/__init__.py1# This module is part of GitPython and is released under theCOMMENT
LOWsmmap/doc/source/conf.py1#COMMENT
LOWsmmap/doc/source/conf.py41copyright = '2011, Sebastian Thiel'COMMENT
LOWsmmap/doc/source/conf.py61COMMENT
LOWsmmap/doc/source/conf.py81#show_authors = FalseCOMMENT
LOWsmmap/doc/source/conf.py101# Add any paths that contain custom themes here, relative to this directory.COMMENT
LOWsmmap/doc/source/conf.py121# relative to this directory. They are copied after the builtin static files,COMMENT
LOWsmmap/doc/source/conf.py141#html_use_modindex = TrueCOMMENT
LOWsmmap/doc/source/conf.py181#latex_logo = NoneCOMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOW.github/workflows/codeql.yml41 - language: pythonCOMMENT
LOWdoc/source/conf.py1# GitPython documentation build configuration file, originally created byCOMMENT
LOWdoc/source/conf.py61# non-false value, then it is used:COMMENT
LOWdoc/source/conf.py101# html_title = NoneCOMMENT
LOWdoc/source/conf.py121# "default.css" will overwrite the builtin "default.css".COMMENT
LOWdoc/source/conf.py141COMMENT
LOWdoc/source/conf.py161COMMENT
LOWdoc/source/conf.py181COMMENT
LOWgitdb/doc/source/conf.py1#COMMENT
LOWgitdb/doc/source/conf.py41copyright = '2011, Sebastian Thiel'COMMENT
LOWgitdb/doc/source/conf.py61COMMENT
LOWgitdb/doc/source/conf.py101#html_theme_path = []COMMENT
LOWgitdb/doc/source/conf.py121# so a file named "default.css" will overwrite the builtin "default.css".COMMENT
LOWgitdb/doc/source/conf.py141COMMENT
LOWgitdb/doc/source/conf.py181COMMENT
LOWgitdb/gitdb/stream.py161 # is already complete, but there are still some bytes left in the compressedCOMMENT
LOWgitdb/gitdb/stream.py241 self._buflen = 0COMMENT
LOWgitdb/gitdb/stream.py281 # END handle tailCOMMENT
LOWgitdb/gitdb/stream.py321 # Stop when we have enough or there is no path to more output.COMMENT
LOWgitdb/gitdb/stream.py461 # We will use it as scratch space for all delta ops. If the finalCOMMENT
LOWgitdb/gitdb/test/__init__.py1# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributorsCOMMENT
LOWgitdb/gitdb/test/db/__init__.py1# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributorsCOMMENT
LOWgit/objects/util.py601 """For documentation, see :meth:`Traversable._traverse`."""COMMENT
LOWgit/objects/submodule/root.py321 orig_name = previous_remote.nameCOMMENT
LOWgit/objects/submodule/base.py1141 msg_base,COMMENT
Excessive Try-Catch Wrapping25 hits · 28 pts
SeverityFileLineSnippetContext
LOWfuzzing/fuzz-targets/fuzz_submodule.py114 except Exception as e:CODE
MEDIUMfuzzing/fuzz-targets/utils.py53 print(f"Error reading file {file_path}: {e}")CODE
LOW⚡fuzzing/fuzz-targets/utils.py72 except Exception as e:CODE
MEDIUM⚡fuzzing/fuzz-targets/utils.py73 print(f"Error loading exception list: {e}")CODE
LOWtest/lib/helper.py145 except Exception:CODE
LOWtest/lib/helper.py244 except Exception as ex:CODE
LOWtest/lib/helper.py268 except Exception as ex:CODE
LOWsmmap/smmap/mman.py360 except Exception:CODE
LOWsmmap/smmap/mman.py570 except Exception:CODE
LOWgitdb/gitdb/util.py75 except Exception:CODE
LOWgitdb/gitdb/test/lib.py72 except Exception:CODE
LOWgitdb/gitdb/db/ref.py73 except Exception:CODE
LOWgit/cmd.py207 except Exception as ex:STRING
LOWgit/remote.py874 except Exception as e:CODE
LOWgit/util.py558 except Exception as ex:CODE
LOWgit/util.py611 except Exception:CODE
LOWgit/util.py978 except Exception:CODE
LOWgit/__init__.py219except Exception as _exc:CODE
LOWgit/objects/submodule/root.py426 except Exception as err:CODE
LOWgit/objects/submodule/base.py1213 except Exception as err:CODE
LOWgit/objects/submodule/base.py1376 except Exception:CODE
LOWgit/objects/submodule/base.py1749 except Exception:CODE
LOWgit/objects/submodule/base.py1779 except Exception:CODE
LOWgit/repo/base.py514 except Exception:STRING
MEDIUMgit/repo/base.py511def __del__(self) -> None:CODE
Hallucination Indicators2 hits · 25 pts
SeverityFileLineSnippetContext
CRITICAL⚡test/test_refs.py510 res = rw_repo.remotes.origin.refs.HEAD.reference.checkout()CODE
CRITICALtest/test_repo.py675 for item in self.rorepo.head.commit.tree.traverse(CODE
Fake / Example Data11 hits · 14 pts
SeverityFileLineSnippetContext
LOW⚡test/test_git.py490 token = "fake-token-1234"CODE
LOW⚡test/test_util.py604 "GIT_AUTHOR_NAME": "John Doe",CODE
LOW⚡test/test_util.py606 "GIT_COMMITTER_NAME": "Jane Doe",CODE
LOW⚡test/test_util.py613 self.assertEqual(committer.name, "Jane Doe")CODE
LOW⚡test/test_util.py615 self.assertEqual(author.name, "John Doe")CODE
LOWtest/test_util.py795 authorization = "Bearer fake-token-1234"CODE
LOW⚡test/test_commit.py659 ("User <user@example.com> 0 +0000\n" + forged, "user@example.com"),CODE
LOW⚡test/test_commit.py662 ("Forged <forged@example.com>", "user@example.com"),CODE
LOW⚡test/test_commit.py664 ("User>", "user@example.com"),CODE
LOWtest/test_commit.py686 commit.replace(author=Actor("User\n" + forged, "user@example.com"))CODE
LOWgit/remote.py889 unset = "placeholder"CODE
Slop Phrases3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsmmap/smmap/test/test_tutorial.py31 # before you can use the cursor, you have to specify a window you want toCOMMENT
MEDIUMsmmap/smmap/test/test_tutorial.py64 # you can use it right awayCOMMENT
MEDIUM.github/workflows/codeql.yml49 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
AI Slop Vocabulary6 hits · 7 pts
SeverityFileLineSnippetContext
LOWtest/test_remote.py346 # master yet. We simply create it.COMMENT
MEDIUMsmmap/smmap/mman.py97 """Assign rhs to this instance. This is required in order to get a real copy.STRING
LOWsmmap/smmap/test/test_util.py103 assert isinstance(is_64_bit(), bool) # just call itCODE
LOWgitdb/gitdb/fun.py314 # this is very pythonic - we might have just use index based access here,COMMENT
LOWgitdb/gitdb/stream.py462 # target buffer is smaller than our allocated space, we just use partsCOMMENT
LOWgit/diff.py730 # is invalid. We just use the one mode we should have parsed.COMMENT
AI Structural Patterns7 hits · 5 pts
SeverityFileLineSnippetContext
LOWgit/cmd.py1345CODE
LOWgit/cmd.py1364CODE
LOWgit/objects/commit.py110CODE
LOWgit/objects/submodule/root.py77CODE
LOWgit/objects/submodule/base.py585CODE
LOWgit/objects/submodule/base.py877CODE
LOWgit/index/base.py1226CODE
Redundant / Tautological Comments4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtox.ini23 CLICOLOR_FORCE = 1 # Set NO_COLOR to override this.CODE
LOWtox.ini40 CLICOLOR_FORCE = 1 # Set NO_COLOR to override this.CODE
LOWtest/test_docs.py274 new_branch.commit = "HEAD~10" # Set branch to another commit without changing index or working trees.CODE
LOWtest/test_index.py382 # Write the file back.COMMENT