52c7c260e7c0a85e6b051af48b46e8fe9493b117,src/python/pants/core/util_rules/determine_source_files.py,,determine_specified_source_files,#Any#,132

Before Change


        )

    all_snapshots: Iterable[Snapshot] = (*full_snapshots.values(), *snapshot_subsets)
    if request.strip_source_roots:
        all_sources_fields = (*full_snapshots.keys(), *digest_subset_requests.keys())
        stripped_snapshots = await MultiGet(
            Get(
                SourceRootStrippedSources,
                StripSourcesFieldRequest(
                    sources_field,
                    specified_files_snapshot=snapshot,
                    for_sources_types=request.for_sources_types,
                    enable_codegen=request.enable_codegen,
                ),
            )
            for sources_field, snapshot in zip(all_sources_fields, all_snapshots)
        )
        all_snapshots = (stripped_snapshot.snapshot for stripped_snapshot in stripped_snapshots)
    result = await Get(Snapshot, MergeDigests(snapshot.digest for snapshot in all_snapshots))
    return SourceFiles(result)

After Change



    all_snapshots: Iterable[Snapshot] = (*full_snapshots.values(), *snapshot_subsets)
    result = await Get(Snapshot, MergeDigests(snapshot.digest for snapshot in all_snapshots))
    unrooted_files = all_unrooted_files.intersection(result.files)
    return SourceFiles(result, tuple(sorted(unrooted_files)))


def rules():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 52c7c260e7c0a85e6b051af48b46e8fe9493b117
Time: 2020-08-04
Author: benjyw@gmail.com
File Name: src/python/pants/core/util_rules/determine_source_files.py
Class Name:
Method Name: determine_specified_source_files


Project Name: pantsbuild/pants
Commit Name: 32479c73b83a9a875a28d1adce327573b39af37e
Time: 2014-04-30
Author: benjy@foursquare.com
File Name: src/python/pants/commands/goal.py
Class Name: Goal
Method Name: setup_parser


Project Name: IDSIA/sacred
Commit Name: 047eb9dd373ca0d59251a1b6cdb80f8817786eb8
Time: 2014-07-14
Author: klaus@idsia.ch
File Name: sacred/custom_containers.py
Class Name: DogmaticDict
Method Name: __init__