b69a4513d333266b032e11f9563d6bd14830aa86,conftest.py,,pytest_collection_modifyitems,#Any#Any#Any#,40
Before Change
by_parents = defaultdict(list)
for index, item in enumerate(items):
by_parents[item.parent].append(item)
for i, p in enumerate(by_parents.keys()):
if i % circle_node_total != circle_node_index:
deselected.extend(by_parents[p])
for d in deselected:
items.remove(d)
config.hook.pytest_deselected(items=deselected)
After Change
//for index, item in enumerate(items):
// by_parents[item.parent].append(item)
for item in items:
print(item.location)
i = hash(item.name)
if i % circle_node_total != circle_node_index:
deselected.append(i)
items.remove(item)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: markovmodel/PyEMMA
Commit Name: b69a4513d333266b032e11f9563d6bd14830aa86
Time: 2018-06-21
Author: m.scherer@fu-berlin.de
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems
Project Name: NifTK/NiftyNet
Commit Name: e4ae5c1ac1beaa9e19e8e51f3e48358ff1c2e8ec
Time: 2017-05-25
Author: wenqi.li@ucl.ac.uk
File Name: nn/preprocess.py
Class Name: HistNormaliser_bis
Method Name: train_normalisation_ref
Project Name: PIQuIL/QuCumber
Commit Name: d7efa57cd80cf38ff0da2d63f15eac2397f3b56c
Time: 2018-08-03
Author: emerali@users.noreply.github.com
File Name: qucumber/callbacks/metric_evaluator.py
Class Name: MetricEvaluator
Method Name: on_epoch_end