Repository Analysis

python-poetry/poetry

Python packaging and dependency management made easy

24.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of python-poetry/poetry, a Python project with 34,296 GitHub stars. SynthScan v2.0 examined 82,681 lines of code across 366 source files, recording 1755 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 24.3 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).

24.3
Adjusted Score
24.3
Raw Score
100%
Time Factor
2026-07-13
Last Push
34.3K
Stars
Python
Language
82.7K
Lines of Code
366
Files
1.8K
Pattern Hits
2026-07-14
Scan Date
0.12
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 44HIGH 0MEDIUM 14LOW 1697

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 1755 distinct pattern matches across 13 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 Identifiers1224 hits · 997 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py176 def set_default_service_credential(CODE
LOWtests/conftest.py255def with_chained_fail_keyring(mocker: MockerFixture) -> None:CODE
LOWtests/conftest.py266def with_chained_null_keyring(mocker: MockerFixture) -> None:CODE
LOWtests/conftest.py663def disable_http_status_force_list(mocker: MockerFixture) -> Iterator[None]:CODE
LOWtests/conftest.py675def tmp_session_working_directory(tmp_path_factory: TempPathFactory) -> Iterator[Path]:CODE
LOWtests/conftest.py783def mocked_pythons_version_map() -> dict[str, findpython.PythonVersion]:CODE
LOWtests/conftest.py941def without_mocked_findpython(CODE
LOWtests/conftest.py1025def mocked_poetry_managed_python_register(CODE
LOWtests/conftest.py1054def wheel_with_path_traversal(tmp_path: Path, request: pytest.FixtureRequest) -> Path:CODE
LOWtests/conftest.py1087def wheel_with_path_traversal_via_symlink(CODE
LOWtests/test_conftest.py22def test_conftest_create_package(CODE
LOWtests/test_factory.py237def test_create_poetry_non_package_mode(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py243def test_create_poetry_version_ok(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py251def test_create_poetry_version_not_ok(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py260def test_create_poetry_check_version_before_validation(CODE
LOWtests/test_factory.py162def test_create_pyproject_from_package(CODE
LOWtests/test_factory.py194def test_create_poetry_with_packages_and_includes(CODE
LOWtests/test_factory.py225def test_create_poetry_with_multi_constraints_dependency(CODE
LOWtests/test_factory.py275def test_poetry_with_primary_source(CODE
LOWtests/test_factory.py288def test_poetry_with_multiple_supplemental_sources(CODE
LOWtests/test_factory.py303def test_poetry_with_multiple_sources(CODE
LOWtests/test_factory.py316def test_poetry_with_multiple_sources_pypi(CODE
LOWtests/test_factory.py331def test_poetry_with_no_default_source(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py340def test_poetry_with_supplemental_source(CODE
LOWtests/test_factory.py356def test_poetry_with_explicit_source(CODE
LOWtests/test_factory.py373def test_poetry_with_explicit_pypi_and_other(CODE
LOWtests/test_factory.py388def test_poetry_with_pypi_explicit_only(CODE
LOWtests/test_factory.py396def test_poetry_with_build_constraints(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py414def test_poetry_with_empty_build_constraints(fixture_dir: FixtureDirGetter) -> None:CODE
LOWtests/test_factory.py443def test_create_poetry_fails_on_invalid_configuration(CODE
LOWtests/test_factory.py457def test_create_poetry_fails_on_nameless_project(STRING
LOWtests/test_factory.py471def test_create_poetry_with_local_config(fixture_dir: FixtureDirGetter) -> None:STRING
LOWtests/test_factory.py481def test_create_poetry_with_plugins(STRING
LOWtests/test_factory.py502def test_create_package_source_invalid(STRING
LOWtests/test_helpers.py44 def test_returns_package_with_name_and_version(self) -> None:CODE
LOWtests/test_helpers.py50 def test_returns_package_not_yanked_by_default(self) -> None:CODE
LOWtests/test_helpers.py54 def test_returns_yanked_package_with_string_reason(self) -> None:CODE
LOWtests/test_helpers.py58 def test_returns_yanked_package_with_bool(self) -> None:CODE
LOWtests/test_helpers.py64 def test_returns_dependency_with_wildcard_constraint(self) -> None:CODE
LOWtests/test_helpers.py69 def test_returns_dependency_with_version_constraint(self) -> None:CODE
LOWtests/test_helpers.py73 def test_returns_dependency_with_dict_constraint(self) -> None:CODE
LOWtests/test_helpers.py77 def test_returns_optional_dependency(self) -> None:CODE
LOWtests/test_helpers.py81 def test_returns_dependency_with_groups(self) -> None:CODE
LOWtests/test_helpers.py86 def test_returns_dependency_allowing_prereleases(self) -> None:CODE
LOWtests/test_helpers.py139 def test_stores_path_as_string(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py149 def test_head_returns_mock_revision(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py153 def test_ignores_extra_kwargs(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py160 def test_clones_fixture_to_source_root(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py169 def test_clones_fixture_with_nested_path(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py179 def test_is_not_locked_by_default(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py184 def test_locked_sets_locked_state(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py393 def test_flattens_with_default_delimiter(self) -> None:CODE
LOWtests/test_helpers.py397 def test_flattens_deeply_nested_dict(self) -> None:CODE
LOWtests/test_helpers.py401 def test_returns_flat_dict_unchanged(self) -> None:CODE
LOWtests/test_helpers.py410 def test_redirects_to_original_url(self, http: RequestsMock) -> None:CODE
LOWtests/test_helpers.py101 def test_overwrites_existing_file(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py122 def test_overwrites_existing_directory(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py198 def test_is_fresh_always_returns_true(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py203 def test_mock_lock_data_sets_data(self, tmp_path: Path) -> None:CODE
LOWtests/test_helpers.py214 def test_write_lock_data_without_write_stores_in_memory(CODE
1164 more matches not shown…
Hallucination Indicators44 hits · 500 pts
SeverityFileLineSnippetContext
CRITICALtests/utils/test_helpers.py19from poetry.utils.helpers import DownloaderCODE
CRITICALtests/utils/test_helpers.py20from poetry.utils.helpers import HTTPRangeRequestSupportedErrorCODE
CRITICALtests/utils/test_helpers.py21from poetry.utils.helpers import directoryCODE
CRITICALtests/utils/test_helpers.py22from poetry.utils.helpers import download_fileCODE
CRITICALtests/utils/test_helpers.py23from poetry.utils.helpers import ensure_pathCODE
CRITICALtests/utils/test_helpers.py24from poetry.utils.helpers import extractallCODE
CRITICALtests/utils/test_helpers.py25from poetry.utils.helpers import get_file_hashCODE
CRITICALtests/utils/test_helpers.py26from poetry.utils.helpers import get_highest_priority_hash_typeCODE
CRITICALtests/utils/test_helpers.py27from poetry.utils.helpers import merge_dictsCODE
CRITICALtests/repositories/test_http_repository.py25from poetry.utils.helpers import HTTPRangeRequestSupportedErrorCODE
CRITICALtests/pyproject/test_pyproject_toml_file.py7from poetry.core.exceptions import PoetryCoreErrorCODE
CRITICALtests/console/commands/test_version.py129 old_pyproject = tester.command.poetry.file.path.read_text(encoding="utf-8")CODE
CRITICALtests/console/commands/test_version.py132 new_pyproject = tester.command.poetry.file.path.read_text(encoding="utf-8")CODE
CRITICALtests/console/commands/test_add.py567 demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix()STRING
CRITICALtests/console/commands/test_add.py790 demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix()STRING
CRITICALtests/console/commands/test_add.py829 demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix()STRING
CRITICALtests/console/commands/test_add.py859 demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix()STRING
CRITICALtests/console/commands/test_add.py895 demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix()STRING
CRITICALtests/console/commands/test_build.py18from poetry.utils.helpers import remove_directoryCODE
CRITICALsrc/poetry/toml/exceptions.py3from poetry.core.exceptions import PoetryCoreErrorCODE
CRITICALsrc/poetry/config/config.py220 from poetry.utils.helpers import merge_dictsCODE
CRITICALsrc/poetry/masonry/builders/editable.py20from poetry.utils.helpers import is_dir_writableCODE
CRITICALsrc/poetry/masonry/builders/editable.py242 "url": self._poetry.file.path.parent.absolute().as_uri(),STRING
CRITICALsrc/poetry/utils/cache.py21from poetry.utils.helpers import get_highest_priority_hash_typeCODE
CRITICALsrc/poetry/repositories/http_repository.py39from poetry.utils.helpers import HTTPRangeRequestSupportedErrorCODE
CRITICALsrc/poetry/repositories/http_repository.py40from poetry.utils.helpers import download_fileCODE
CRITICALsrc/poetry/repositories/http_repository.py41from poetry.utils.helpers import get_highest_priority_hash_typeCODE
CRITICALsrc/poetry/installation/chooser.py14from poetry.utils.helpers import get_highest_priority_hash_typeCODE
CRITICALsrc/poetry/installation/chef.py11from poetry.utils.helpers import extractallCODE
CRITICALsrc/poetry/installation/executor.py29from poetry.utils.helpers import DownloaderCODE
CRITICALsrc/poetry/installation/executor.py30from poetry.utils.helpers import get_file_hashCODE
CRITICALsrc/poetry/installation/executor.py31from poetry.utils.helpers import get_highest_priority_hash_typeCODE
CRITICALsrc/poetry/installation/executor.py32from poetry.utils.helpers import pluralizeCODE
CRITICALsrc/poetry/installation/executor.py33from poetry.utils.helpers import remove_directoryCODE
CRITICALsrc/poetry/inspection/info.py26from poetry.utils.helpers import extractallCODE
CRITICALsrc/poetry/vcs/git/backend.py32from poetry.utils.helpers import remove_directoryCODE
CRITICALsrc/poetry/packages/direct_origin.py14from poetry.utils.helpers import download_fileCODE
CRITICALsrc/poetry/packages/direct_origin.py15from poetry.utils.helpers import get_file_hashCODE
CRITICALsrc/poetry/console/application.py26from poetry.utils.helpers import directoryCODE
CRITICALsrc/poetry/console/application.py27from poetry.utils.helpers import ensure_pathCODE
CRITICALsrc/poetry/console/commands/build.py17from poetry.utils.helpers import remove_directoryCODE
CRITICALsrc/poetry/console/commands/show.py271 from poetry.utils.helpers import get_package_version_display_stringCODE
CRITICALsrc/poetry/console/commands/self/self_command.py20from poetry.utils.helpers import directoryCODE
CRITICALsrc/poetry/console/commands/self/show/plugins.py59 from poetry.utils.helpers import pluralizeSTRING
Unused Imports318 hits · 314 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py1CODE
LOWtests/test_conftest.py1CODE
LOWtests/test_factory.py1CODE
LOWtests/types.py1CODE
LOWtests/test_helpers.py1CODE
LOWtests/helpers.py1CODE
LOWtests/test_main.py1CODE
LOWtests/publishing/test_uploader.py1CODE
LOWtests/publishing/test_publisher.py1CODE
LOWtests/publishing/test_hash_manager.py1CODE
LOWtests/mixology/test_incompatibility.py1CODE
LOWtests/mixology/helpers.py1CODE
LOWtests/mixology/version_solver/conftest.py1CODE
LOWtests/mixology/version_solver/test_backtracking.py1CODE
LOWtests/mixology/version_solver/__init__.py1CODE
LOWtests/mixology/version_solver/test_unsolvable.py1CODE
LOWtests/mixology/version_solver/test_python_constraint.py1CODE
LOWtests/mixology/version_solver/test_dependency_cache.py1CODE
LOWtests/mixology/version_solver/test_with_lock.py1CODE
LOWtests/mixology/version_solver/test_basic_graph.py1CODE
LOWtests/puzzle/test_transaction.py1CODE
LOWtests/puzzle/conftest.py1CODE
LOWtests/puzzle/test_provider.py1CODE
LOWtests/puzzle/test_solver_internals.py1CODE
LOWtests/puzzle/test_solver.py1CODE
LOWtests/config/test_file_config_source.py1CODE
LOWtests/config/test_source.py1CODE
LOWtests/config/test_config_source.py1CODE
LOWtests/config/test_config.py1CODE
LOWtests/config/test_dict_config_source.py1CODE
LOWtests/plugins/test_plugin_manager.py1CODE
LOWtests/integration/test_utils_vcs_git.py1CODE
LOWtests/masonry/builders/test_editable_builder.py1CODE
LOWtests/utils/conftest.py1CODE
LOWtests/utils/test_authenticator.py1CODE
LOWtests/utils/test_threading.py1CODE
LOWtests/utils/test_password_manager.py1CODE
LOWtests/utils/test_isolated_build.py1CODE
LOWtests/utils/test_dependency_specification.py1CODE
LOWtests/utils/test_patterns.py1CODE
LOWtests/utils/test_wheel.py1CODE
LOWtests/utils/test_extras.py1CODE
LOWtests/utils/test_pip.py1CODE
LOWtests/utils/test_compat.py1CODE
LOWtests/utils/test_helpers.py1CODE
LOWtests/utils/test_python_manager.py1CODE
LOWtests/utils/test_cache.py1CODE
LOWtests/utils/test_log_utils.py1CODE
LOWtests/repositories/test_repository.py1CODE
LOWtests/repositories/conftest.py1CODE
LOWtests/repositories/test_pypi_repository.py1CODE
LOWtests/repositories/test_installed_repository.py1CODE
LOWtests/repositories/test_lockfile_repository.py1CODE
LOWtests/repositories/test_cached_repository.py1CODE
LOWtests/repositories/test_legacy_repository.py1CODE
LOWtests/repositories/test_repository_pool.py1CODE
LOWtests/repositories/test_http_repository.py1CODE
LOWtests/repositories/test_single_page_repository.py1CODE
LOWtests/repositories/parsers/test_pypi_search_parser.py1CODE
LOWtests/repositories/parsers/test_html_page_parser.py1CODE
258 more matches not shown…
Deep Nesting71 hits · 71 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py531CODE
LOWtests/conftest.py541CODE
LOWtests/mixology/helpers.py43CODE
LOWtests/puzzle/test_transaction.py267CODE
LOWtests/inspection/test_lazy_wheel.py76CODE
LOWtests/packages/test_locker.py1740CODE
LOWtests/console/commands/test_check.py318CODE
LOWtests/console/commands/test_check.py379CODE
LOWsrc/poetry/factory.py251CODE
LOWsrc/poetry/publishing/uploader.py200CODE
LOWsrc/poetry/publishing/uploader.py340CODE
LOWsrc/poetry/mixology/version_solver.py259CODE
LOWsrc/poetry/mixology/version_solver.py320CODE
LOWsrc/poetry/mixology/version_solver.py533CODE
LOWsrc/poetry/mixology/incompatibility.py108CODE
LOWsrc/poetry/mixology/failure.py143CODE
LOWsrc/poetry/puzzle/solver.py396CODE
LOWsrc/poetry/puzzle/solver.py450CODE
LOWsrc/poetry/puzzle/solver.py84CODE
LOWsrc/poetry/puzzle/solver.py190CODE
LOWsrc/poetry/puzzle/solver.py333CODE
LOWsrc/poetry/puzzle/provider.py282CODE
LOWsrc/poetry/puzzle/provider.py507CODE
LOWsrc/poetry/puzzle/provider.py833CODE
LOWsrc/poetry/puzzle/provider.py854CODE
LOWsrc/poetry/puzzle/provider.py1007CODE
LOWsrc/poetry/puzzle/transaction.py45CODE
LOWsrc/poetry/masonry/builders/editable.py142CODE
LOWsrc/poetry/utils/authenticator.py193CODE
LOWsrc/poetry/utils/cache.py248CODE
LOWsrc/poetry/utils/dependency_specification.py32CODE
LOWsrc/poetry/utils/helpers.py132CODE
LOWsrc/poetry/utils/helpers.py410CODE
LOWsrc/poetry/utils/helpers.py210CODE
LOWsrc/poetry/repositories/http_repository.py272CODE
LOWsrc/poetry/repositories/http_repository.py305CODE
LOWsrc/poetry/repositories/http_repository.py508CODE
LOWsrc/poetry/repositories/installed_repository.py41CODE
LOWsrc/poetry/repositories/installed_repository.py109CODE
LOWsrc/poetry/repositories/installed_repository.py240CODE
LOWsrc/poetry/repositories/parsers/pypi_search_parser.py41CODE
LOWsrc/poetry/repositories/link_sources/html.py36CODE
LOWsrc/poetry/installation/installer.py216CODE
LOWsrc/poetry/installation/executor.py153CODE
LOWsrc/poetry/installation/executor.py270CODE
LOWsrc/poetry/installation/executor.py527CODE
LOWsrc/poetry/installation/executor.py581CODE
LOWsrc/poetry/installation/executor.py862CODE
LOWsrc/poetry/inspection/lazy_wheel.py598CODE
LOWsrc/poetry/inspection/lazy_wheel.py704CODE
LOWsrc/poetry/inspection/info.py117CODE
LOWsrc/poetry/inspection/info.py370CODE
LOWsrc/poetry/inspection/info.py436CODE
LOWsrc/poetry/vcs/git/backend.py520CODE
LOWsrc/poetry/packages/locker.py95CODE
LOWsrc/poetry/packages/locker.py387CODE
LOWsrc/poetry/packages/locker.py518CODE
LOWsrc/poetry/console/application.py255CODE
LOWsrc/poetry/console/application.py424CODE
LOWsrc/poetry/console/commands/show.py261CODE
11 more matches not shown…
Modern Structural Boilerplate53 hits · 53 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py151 def set_password(self, service: str, username: str, password: str) -> None:CODE
LOWtests/conftest.py187 def set_password(self, service: str, username: str, password: str) -> None:CODE
LOWtests/conftest.py610def set_simple_log_formatter() -> None:CODE
LOWtests/test_helpers.py518 def set_password(self, service: str, username: str, password: str) -> None:CODE
LOWtests/helpers.py368def set_keyring_backend(backend: KeyringBackend) -> None:CODE
LOWtests/mixology/version_solver/conftest.py20 def set_package_python_versions(self, python_versions: str) -> None:CODE
LOWtests/puzzle/test_solver.py69def set_package_python_versions(provider: Provider, python_versions: str) -> None:CODE
LOWtests/installation/test_executor.py60 def set_directory_wheel(self, wheels: Path | list[Path]) -> None:CODE
LOWtests/installation/test_executor.py66 def set_sdist_wheel(self, wheels: Path | list[Path]) -> None:CODE
LOWsrc/poetry/factory.py44logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/publishing/__init__.py6__all__ = ["Publisher"]CODE
LOWsrc/poetry/publishing/publisher.py18logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/toml/__init__.py7__all__ = ["TOMLError", "TOMLFile"]CODE
LOWsrc/poetry/puzzle/provider.py60logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/puzzle/provider.py108 def _set_context(context: str | None) -> None:CODE
LOWsrc/poetry/puzzle/provider.py226 def set_overrides(self, overrides: dict[Package, dict[str, Dependency]]) -> None:CODE
LOWsrc/poetry/puzzle/__init__.py6__all__ = ["Solver"]CODE
LOWsrc/poetry/config/config.py146logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/plugins/__init__.py7__all__ = ["ApplicationPlugin", "Plugin"]CODE
LOWsrc/poetry/plugins/plugin_manager.py42logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/masonry/api.py10__all__ = [CODE
LOWsrc/poetry/masonry/builders/editable.py88 def _setup_build(self) -> None:STRING
LOWsrc/poetry/masonry/builders/__init__.py9__all__ = ["BUILD_FORMATS", "EditableBuilder"]CODE
LOWsrc/poetry/utils/authenticator.py39logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/utils/cache.py38logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/utils/password_manager.py20logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/utils/password_manager.py111 def set_password(self, name: str, username: str, password: str) -> None:CODE
LOWsrc/poetry/utils/password_manager.py212 def set_pypi_token(self, repo_name: str, token: str) -> None:CODE
LOWsrc/poetry/utils/password_manager.py258 def set_http_password(self, repo_name: str, username: str, password: str) -> None:CODE
LOWsrc/poetry/utils/_compat.py95__all__ = [CODE
LOWsrc/poetry/utils/helpers.py43logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/utils/wheel.py16logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/repositories/__init__.py7__all__ = ["Repository", "RepositoryPool"]CODE
LOWsrc/poetry/repositories/installed_repository.py27logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/repositories/pypi_repository.py28logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/repositories/link_sources/base.py41logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/installation/__init__.py6__all__ = ["Installer"]CODE
LOWsrc/poetry/installation/chooser.py27logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/installation/wheel_installer.py20logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/installation/operations/__init__.py8__all__ = ["Install", "Uninstall", "Update"]CODE
LOWsrc/poetry/inspection/lazy_wheel.py40logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/inspection/lazy_wheel.py361 def _setup_content(self) -> None:CODE
LOWsrc/poetry/inspection/info.py41logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/vcs/git/backend.py40logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/vcs/git/backend.py148 def _set_head(self, remote_refs: FetchPackResult, repo: Repo) -> None:CODE
LOWsrc/poetry/vcs/git/__init__.py6__all__ = ["Git"]CODE
LOWsrc/poetry/packages/locker.py47logger = logging.getLogger(__name__)CODE
LOWsrc/poetry/packages/locker.py133 def set_pyproject_data(self, pyproject_data: dict[str, Any]) -> None:CODE
LOWsrc/poetry/packages/locker.py137 def set_local_config(self, local_config: dict[str, Any]) -> None:CODE
LOWsrc/poetry/packages/__init__.py8__all__ = ["DependencyPackage", "Locker", "PackageCollection"]CODE
LOWsrc/poetry/console/commands/installer_command.py34 def set_installer(self, installer: Installer) -> None:CODE
LOWsrc/poetry/console/commands/command.py28 def set_poetry(self, poetry: Poetry) -> None:CODE
LOWsrc/poetry/console/commands/env_command.py24 def set_env(self, env: Env) -> None:CODE
Self-Referential Comments13 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMtests/vcs/git/test_backend.py303 # Create a source repository with an annotated tagCOMMENT
MEDIUMtests/vcs/git/test_backend.py320 # Create an annotated tagCOMMENT
MEDIUMtests/vcs/git/test_backend.py365 # Create a source repository with nested annotated tagsCOMMENT
MEDIUMtests/vcs/git/test_backend.py466 # Create a source repository with LFS supportCOMMENT
MEDIUMtests/vcs/git/test_backend.py481 # Create a regular fileCOMMENT
MEDIUMtests/vcs/git/test_backend.py486 # Create an LFS file with a pointerCOMMENT
MEDIUM.github/scripts/backport.sh142# Create a temporary directory in which to hold worktrees for each backport attempt.COMMENT
MEDIUM.github/scripts/backport.sh161 # Create a new backport branch, in a new worktree, based on the target branch.COMMENT
MEDIUM.github/scripts/backport.sh177 # Create a derived title and label for the PR.COMMENT
MEDIUM.github/scripts/backport.sh195 # Create a new pull request from the backport branch, against the target branch.COMMENT
MEDIUMsrc/poetry/mixology/version_solver.py417 # Create a new incompatibility by combining incompatibility with theCOMMENT
MEDIUMsrc/poetry/repositories/parsers/pypi_search_parser.py14# The following code was originally written for PDM projectCOMMENT
MEDIUMsrc/poetry/packages/locker.py263 # The following code is roughly equivalent toCOMMENT
Excessive Try-Catch Wrapping8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_cache.py359 except Exception:CODE
LOWsrc/poetry/mixology/version_solver.py207 except Exception:CODE
LOWsrc/poetry/mixology/version_solver.py613 except Exception:CODE
LOWsrc/poetry/config/file_config_source.py106 except Exception:CODE
LOWsrc/poetry/installation/executor.py312 except Exception as e:CODE
LOWsrc/poetry/installation/executor.py712 except Exception:CODE
LOWsrc/poetry/inspection/lazy_wheel.py96 except Exception as e:CODE
LOWsrc/poetry/console/logging/io_handler.py29 except Exception:CODE
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOW.github/scripts/backport.sh1#!/usr/bin/env bashCOMMENT
LOWsrc/poetry/mixology/version_solver.py341 # satisfied by _solution up to and including this assignment.COMMENT
LOWsrc/poetry/mixology/version_solver.py421 # incompatibility) while also approximating the intuitive notion of theCOMMENT
LOWsrc/poetry/mixology/partial_solution.py21 # total solution.COMMENT
LOWsrc/poetry/puzzle/provider.py61COMMENT
LOWsrc/poetry/puzzle/provider.py661 # • enum34; python_version=="2.7"COMMENT
LOWsrc/poetry/plugins/plugin_manager.py161 returnCOMMENT
Overly Generic Function Names5 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/utils/test_helpers.py200 def handle_request(request: PreparedRequest) -> HttpResponse:CODE
LOWtests/utils/test_helpers.py218 def handle_request(request: PreparedRequest) -> tuple[int, dict[str, Any], bytes]:CODE
LOWtests/utils/test_helpers.py255 def handle_request(request: PreparedRequest) -> tuple[int, dict[str, Any], bytes]:CODE
LOWtests/utils/test_helpers.py167 def handle_request(request: PreparedRequest) -> HttpResponse:CODE
LOWtests/inspection/test_lazy_wheel.py130 def handle_request(request: PreparedRequest) -> HttpResponse:CODE
AI Slop Vocabulary3 hits · 5 pts
SeverityFileLineSnippetContext
LOWtests/plugins/test_plugin_manager.py612 # just use a file dependency so that we do not have to set up a repositoryCOMMENT
MEDIUMtests/utils/test_dependency_specification.py98 ( # allow several equivalent versions to make test more robustCODE
LOWsrc/poetry/packages/locker.py425 # so we just set both file and hash.COMMENT
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/poetry/publishing/publisher.py64 # Check if we have a token firstCOMMENT
LOWsrc/poetry/puzzle/provider.py1085 # Set constraint to empty to mark dependency as "not required".COMMENT
LOWsrc/poetry/installation/installer.py102 # Check if refreshCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py460CODE
LOWtests/types.py56CODE
LOWsrc/poetry/inspection/info.py53CODE
LOWsrc/poetry/layouts/layout.py62CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWdocs/pyproject.md215 { name = "John Smith", email = "johnsmith@example.org" },CODE
LOWdocs/pyproject.md216 { name = "Jane Smith", email = "janesmith@example.org" },CODE