925c3504051c0d131e5583c776b0b4c118be601e,onmt/translate/translation.py,Translation,log,#Translation#Any#,131

Before Change


        if len(self.pred_sents) > 1:
            output += "\nBEST HYP:\n"
            for score, sent in zip(self.pred_scores, self.pred_sents):
                output += "[{:.4f}] {}\n".format(score, sent)

        return output

After Change


            for score, sent in zip(self.pred_scores, self.pred_sents):
                msg.append("[{:.4f}] {}\n".format(score, sent))

        return "".join(msg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 925c3504051c0d131e5583c776b0b4c118be601e
Time: 2019-02-05
Author: dylan.flaute@gmail.com
File Name: onmt/translate/translation.py
Class Name: Translation
Method Name: log


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f3acc0e85cc78b6ad3c0e9568dccfe4a778c6354
Time: 2017-08-22
Author: akshayubhat@gmail.com
File Name: dvalib/analyzer.py
Class Name: OpenImagesAnnotator
Method Name: apply


Project Name: google/deepvariant
Commit Name: 124b32163e3975e15c59df8b16017f2508b6c233
Time: 2018-04-04
Author: mdepristo@google.com
File Name: third_party/nucleus/io/fasta.py
Class Name: InMemoryRefReader
Method Name: __str__


Project Name: dmlc/gluon-nlp
Commit Name: 8880acf0899efee237251cbd01c7ff81fc535789
Time: 2018-06-22
Author: szhengac@users.noreply.github.com
File Name: scripts/nmt/bleu.py
Class Name:
Method Name: _split_compound_word