95a2e14c7613e4603a629dbc1c26799b40412391,src/python/pants/backend/python/rules/prepare_chrooted_python_sources.py,,prepare_chrooted_python_sources,#Any#,21

Before Change


    
    source_root_stripped_sources = await MultiGet(
        Get[SourceRootStrippedSources](StripTargetRequest(hydrated_target.adaptor))
        for hydrated_target in hydrated_targets
    )
    sources_snapshot = await Get[Snapshot](
        DirectoriesToMerge(
            directories=tuple(
                stripped_sources.snapshot.directory_digest
                for stripped_sources in source_root_stripped_sources
            )
        )
    )
    result = await Get[InitInjectedSnapshot](InjectInitRequest(sources_snapshot))
    return ChrootedPythonSources(result.snapshot)

After Change


    stripping source roots.
    
    stripped_sources = await Get[SourceFiles](
        AllSourceFilesRequest((ht.adaptor for ht in hydrated_targets), strip_source_roots=True)
    )
    init_injected = await Get[InitInjectedSnapshot](InjectInitRequest(stripped_sources.snapshot))
    return ChrootedPythonSources(init_injected.snapshot)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/isort/rules_integration_test.py
Class Name: IsortIntegrationTest
Method Name: run_isort


Project Name: pantsbuild/pants
Commit Name: 9228ad83a3ecde2fb5a714d1eb43c7c1ee2e200b
Time: 2020-04-15
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/black/rules_integration_test.py
Class Name: BlackIntegrationTest
Method Name: run_black