a1383be585a1798a3333139c4c1be149d3c5a454,padatious/util.py,,resolve_conflicts,#Any#Any#,128
Before Change
tuple<inputs, outputs>: The modified inputs and outputs
new_in, new_out = [], []
for i, inp in enumerate(inputs):
found_duplicate = False
for j in range(i + 1, len(inputs)):
if inp == inputs[j]:
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
inputs, outputs = [], []
for inp, outs in data.items():
inputs.append(list(inp))
outputs.append(np.maximum.reduce(outs))
return inputs, outputs
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: Qiskit/qiskit-aqua
Commit Name: 986cdd57271be984d8279c87ef6e5b592b48e726
Time: 2018-10-17
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/vqe/vqe.py
Class Name: VQE
Method Name: _energy_evaluation
Project Name: rusty1s/pytorch_geometric
Commit Name: 651b7d63f09c73e5a093b64c97dd6266265ff930
Time: 2017-10-21
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/functional/spline_utils.py
Class Name:
Method Name: weight_index