82bc6dbe5ce4062dae837a812848c687b34f854d,parlai/scripts/train_model.py,TrainLoop,_average_dicts,#TrainLoop#Any#,316

Before Change


        to_reduce = {}
        for d in all_versions:
            for k, v in d.items():
                if k not in to_reduce:
                    to_reduce[k] = []
                to_reduce[k].append(v)
        // now perform the reduction
        finalized = {}
        for k, values in to_reduce.items():

After Change


        to_reduce = {}
        for d in all_versions:
            for k, v in d.items():
                to_reduce.setdefault(k, []).append(v)
        // now perform the reduction
        finalized = {}
        for k, values in to_reduce.items():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 82bc6dbe5ce4062dae837a812848c687b34f854d
Time: 2019-01-17
Author: roller@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: _average_dicts


Project Name: keras-team/keras
Commit Name: b6ca3ef051107f544b97cdb315eaf1b8e12665d9
Time: 2016-06-19
Author: lucas.moura128@gmail.com
File Name: keras/callbacks.py
Class Name: History
Method Name: on_epoch_end


Project Name: facebookresearch/ParlAI
Commit Name: 9798c7be0ff5147752e75fd2522d8528df99b0b6
Time: 2018-03-01
Author: edinan@fb.com
File Name: parlai/messenger/core/messenger_manager.py
Class Name: MessengerManager
Method Name: add_agent_to_pool