bf9599809214cbc3082eb7f39c0ad3155822a2c5,src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py,ZincAnalysis,split,#ZincAnalysis#Any#Any#,172
Before Change
naive_external_api_splits = self._split_dict(self.apis.external, splits)
internal_api_splits = []
external_api_splits = []
for naive_internal_apis, external_apis, split in \
zip(naive_internal_api_splits, naive_external_api_splits, splits):
internal_apis = defaultdict(list)
for k, vs in naive_internal_apis.iteritems():
After Change
// Split apis.
// The splits, but expressed via class representatives of the sources (see above).
representative_splits = [filter(None, [representatives.get(s) for s in srcs]) for srcs in splits]
representative_to_internal_api = {}
for src, rep in representatives.items():
representative_to_internal_api[rep] = self.apis.internal.get(src)
// Note that the keys in self.apis.external are classes, not sources.
internal_api_splits = self._split_dict(self.apis.internal, splits)
external_api_splits = self._split_dict(self.apis.external, representative_splits)
// All externalized deps require a copy of the relevant api.
for external, external_api in zip(external_splits, external_api_splits):
for vs in external.values():
for v in vs:
if v in representative_to_internal_api:
external_api[v] = representative_to_internal_api[v]
apis_splits = []
for args in zip(internal_api_splits, external_api_splits):
apis_splits.append(APIs(args))
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: bf9599809214cbc3082eb7f39c0ad3155822a2c5
Time: 2014-02-12
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split
Project Name: pytorch/pytorch
Commit Name: 64255294ba92089e2acabde78293e057a1c5d144
Time: 2021-03-08
Author: chenlai@fb.com
File Name: .circleci/cimodel/data/simple/macos_definitions.py
Class Name: MacOsJob
Method Name: gen_tree
Project Name: biolab/orange3
Commit Name: ecf4e9aaf32e15b5759375e0c50ba569f0dca042
Time: 2016-06-17
Author: niko.colneric@gmail.com
File Name: Orange/widgets/unsupervised/owdistances.py
Class Name:
Method Name:
Project Name: AlexsLemonade/refinebio
Commit Name: 3f5563740b444d0f8eb86f87eb30edc3d0ff9189
Time: 2019-06-19
Author: arielsvn@gmail.com
File Name: workers/data_refinery_workers/processors/qn_reference.py
Class Name:
Method Name: _update_experiment_caches
Project Name: mlflow/mlflow
Commit Name: f38a634a118fe55d6f98ede2d82624f4cba38fcf
Time: 2019-09-04
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: get_experiment_by_name