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
SourceRootsRequest.for_files(rooted_files_snapshot.files),
)
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 == ".":
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: dmlc/dgl
Commit Name: c50b90cf7e9d5fd7c861ff3b8c162c8b640505ed
Time: 2018-07-12
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph.py
Class Name: DGLGraph
Method Name: update_by_edge
Project Name: tensorflow/datasets
Commit Name: b700c8d604c931ce06e5705963aec152822190a7
Time: 2020-06-20
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/custom_dataset/translate_dataset.py
Class Name: TranslateDataset
Method Name: __init__