fd02a88b18698a941a783cfcbc40da203b5ee9b3,onmt/IO.py,,make_features,#Any#Any#,109

Before Change


    else:
        data = batch.__dict__[side]
    feat_start = side + "_feat_"
    features = sorted(batch.__dict__[k]
                      for k in batch.__dict__ if feat_start in k)
    levels = [data] + features
    return torch.cat([level.unsqueeze(2) for level in levels], 2)

After Change


    else:
        data = batch.__dict__[side]
    feat_start = side + "_feat_"
    keys = sorted([k for k in batch.__dict__ if feat_start in k])
    features = [batch.__dict__[k] for k in keys]
    levels = [data] + features
    return torch.cat([level.unsqueeze(2) for level in levels], 2)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: fd02a88b18698a941a783cfcbc40da203b5ee9b3
Time: 2017-12-04
Author: da03@users.noreply.github.com
File Name: onmt/IO.py
Class Name:
Method Name: make_features


Project Name: OpenNMT/OpenNMT-py
Commit Name: 058200c5e55decea7377bef8533930c6609c3efb
Time: 2017-12-04
Author: da03@users.noreply.github.com
File Name: onmt/IO.py
Class Name:
Method Name: make_features


Project Name: deepmipt/DeepPavlov
Commit Name: 0066f83bc6f9f3861119db2593c3007796d2056c
Time: 2018-08-30
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/metrics/bleu.py
Class Name:
Method Name: per_item_dialog_bleu