b7ca885dd1148a94c13e87789d5a5947eaedfc37,dask_image/ndmeasure/__init__.py,,histogram,#,141
Before Change
lbl_mtch = _utils._get_label_matches(labels, index)
index_ranges = [_pycompat.irange(e) for e in index.shape]
result = numpy.empty(index.shape, dtype=object)
for i in itertools.product(*index_ranges):
After Change
max = int(max)
bins = int(bins)
func = functools.partial(_utils._histogram, min=min, max=max, bins=bins)
result = labeled_comprehension(input, labels, index, func, object, None)
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: dask/dask-image
Commit Name: b7ca885dd1148a94c13e87789d5a5947eaedfc37
Time: 2018-09-30
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: histogram
Project Name: tensorflow/agents
Commit Name: 19876eb87bde3a012284368b441b240803c83380
Time: 2020-12-17
Author: kbanoop@google.com
File Name: tf_agents/agents/ddpg/examples/v2/train_eval.py
Class Name:
Method Name:
Project Name: tensorflow/agents
Commit Name: 7c30c2f487a2ecb3c11a8092fdea5a8370ae3d5d
Time: 2021-01-14
Author: ormandi@google.com
File Name: tf_agents/train/learner_test.py
Class Name:
Method Name: