a1fe9d45b8603ec72ad96e6825cc44f813bfde99,src/python/pants/backend/python/lint/python_formatter.py,,format_python_target,#Any#Any#,31

Before Change


async def format_python_target(
    python_formatters: PythonFormatters, union_membership: UnionMembership
) -> LanguageFmtResults:
    adaptor_with_origin = python_formatters.adaptors_with_origins[0]
    prior_formatter_result = adaptor_with_origin.adaptor.sources.snapshot
    results: List[FmtResult] = []
    formatters: Iterable[Type[PythonFormatter]] = union_membership.union_rules[PythonFormatter]
    for formatter in formatters:

After Change


    python_formatters: PythonFormatters, union_membership: UnionMembership
) -> LanguageFmtResults:
    adaptors_with_origins = python_formatters.adaptors_with_origins
    original_sources = await Get[SourceFiles](
        AllSourceFilesRequest(
            adaptor_with_origin.adaptor for adaptor_with_origin in adaptors_with_origins
        )
    )
    prior_formatter_result = original_sources.snapshot

    results: List[FmtResult] = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: a1fe9d45b8603ec72ad96e6825cc44f813bfde99
Time: 2020-03-02
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/lint/python_formatter.py
Class Name:
Method Name: format_python_target


Project Name: pantsbuild/pants
Commit Name: 95a2e14c7613e4603a629dbc1c26799b40412391
Time: 2020-02-26
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/rules/python_create_binary.py
Class Name:
Method Name: create_python_binary


Project Name: pantsbuild/pants
Commit Name: 95a2e14c7613e4603a629dbc1c26799b40412391
Time: 2020-02-26
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/rules/prepare_chrooted_python_sources.py
Class Name:
Method Name: prepare_chrooted_python_sources