937907d721b8e4e9628b6d13bb59423e4406a5f1,src/python/pants/backend/jvm/tasks/junit_run.py,_JUnitRunner,_collect_test_targets,#_JUnitRunner#Any#,199
Before Change
def _collect_test_targets(self, targets):
if self._tests_to_run:
return list(self._get_tests_to_run())
else:
java_tests_targets = list(self._test_target_candidates(targets))
return list(self._calculate_tests_from_targets(java_tests_targets))
After Change
tests_with_targets = {}
for test in self._get_tests_to_run():
// A test might contain //specific_method, which is not needed to find a target.
test_class_name = test .partition("//")[0]
target = tests_from_targets.get(test_class_name)
tests_with_targets[test] = target
return tests_with_targets
else:
return tests_from_targets
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: 937907d721b8e4e9628b6d13bb59423e4406a5f1
Time: 2015-04-20
Author: itay@twitter.com
File Name: src/python/pants/backend/jvm/tasks/junit_run.py
Class Name: _JUnitRunner
Method Name: _collect_test_targets
Project Name: modAL-python/modAL
Commit Name: b298e11138d4198ad612b400fa6d2f8dad096332
Time: 2017-11-23
Author: 28926195+cosmic-cortex@users.noreply.github.com
File Name: modAL/utilities.py
Class Name:
Method Name: classifier_margin
Project Name: theislab/scanpy
Commit Name: a49923f5f7072986555584884a4fe995b0e52344
Time: 2019-02-17
Author: ivirshup@gmail.com
File Name: scanpy/preprocessing/_qc.py
Class Name:
Method Name: top_segment_proportions_sparse_csr
Project Name: IndicoDataSolutions/finetune
Commit Name: 29f42297a50a71acbdc469c4badd440d2ddfbf3a
Time: 2018-09-06
Author: madison@indico.io
File Name: finetune/config.py
Class Name:
Method Name: all_gpus