a1383be585a1798a3333139c4c1be149d3c5a454,padatious/util.py,,resolve_conflicts,#,128
Before Change
found_duplicate = True
if outputs[i] > outputs[j]:
outputs[j] = outputs[i]
if not found_duplicate:
new_in.append(inputs[i])
new_out.append(outputs[i])
return new_in, new_out
class StrEnum(object):
After Change
data = {}
for inp, out in zip(inputs, outputs):
tup = tuple(inp)
if tup in data:
data[tup].append(out)
else:
data[tup] = [out]
inputs, outputs = [], []
for inp, outs in data.items():
inputs.append(list(inp))
outputs.append(np.maximum.reduce(outs))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: MycroftAI/padatious
Commit Name: a1383be585a1798a3333139c4c1be149d3c5a454
Time: 2017-09-15
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts
Project Name: ntucllab/libact
Commit Name: 325fae8fbbc16b3c1ca40559bb2a9c783efaf440
Time: 2015-11-25
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: make_query
Project Name: tensorflow/hub
Commit Name: 4e10c7b32c6533148e75fe85755e293feab29818
Time: 2020-07-07
Author: no-reply@google.com
File Name: tfhub_dev/tools/validator.py
Class Name: ModelParsingPolicy
Method Name: __init__
Project Name: MycroftAI/padatious
Commit Name: a1383be585a1798a3333139c4c1be149d3c5a454
Time: 2017-09-15
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts