9db56d70bdf8205143b833e6fd72502e8cb619da,padatious/util.py,,resolve_conflicts,#,137

Before Change


    inputs, outputs = [], []
    for inp, outs in data.items():
        inputs.append(list(inp))
        outputs.append(np.maximum.reduce(outs))
    return inputs, outputs

After Change


    inputs, outputs = [], []
    for inp, outs in data.items():
        inputs.append(list(inp))
        combined = [0] * len(outs[0])
        for i in range(len(combined)):
            combined[i] = max(j[i] for j in outs)
        outputs.append(combined)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: MycroftAI/padatious
Commit Name: 9db56d70bdf8205143b833e6fd72502e8cb619da
Time: 2017-10-02
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts


Project Name: riga/tfdeploy
Commit Name: 20ea228773616f824fa5099d0a6e51b7f829d094
Time: 2016-03-10
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: Operation
Method Name: get


Project Name: riga/tfdeploy
Commit Name: 20ea228773616f824fa5099d0a6e51b7f829d094
Time: 2016-03-10
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name: Model
Method Name: get