fdb77374313a8f53d5f5ab192ad88e96c4b65c23,src/python/pants/core/util_rules/stripped_source_files.py,,strip_source_roots,#Any#,23

Before Change


        str(file): root for file, root in source_roots_result.path_to_root.items()
    }
    files_grouped_by_source_root = {
        source_root.path: tuple(str(f) for f in files)
        for source_root, files in itertools.groupby(
            file_to_source_root.keys(), key=file_to_source_root.__getitem__
        )
    }

After Change



    source_roots_to_files = defaultdict(set)
    for f, root in source_roots_result.path_to_root.items():
        source_roots_to_files[root.path].add(str(f))

    if len(source_roots_to_files) == 1:
        source_root = next(iter(source_roots_to_files.keys()))
        if source_root == ".":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: fdb77374313a8f53d5f5ab192ad88e96c4b65c23
Time: 2020-10-16
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/core/util_rules/stripped_source_files.py
Class Name:
Method Name: strip_source_roots


Project Name: explosion/thinc
Commit Name: edd70b9132cbc32f866ee3aabbb023166c3dbe32
Time: 2017-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/affine.py
Class Name:
Method Name: _alloc_mem_if_able


Project Name: IndicoDataSolutions/finetune
Commit Name: 5b1cfa22c1dc08e92f8a21311728397cfb84ffe1
Time: 2018-08-22
Author: madison@indico.io
File Name: finetune/utils.py
Class Name:
Method Name: finetune_to_indico_sequence