f5766226bfcdb565f326deb73d4d42f0779504c6,nlgeval/pycocoevalcap/meteor/meteor.py,Meteor,compute_score,#Meteor#,33

Before Change


            self.meteor_p.stdin.write("{}\n".format(eval_line))
            self.meteor_p.stdin.flush()
            for i in range(0, len(imgIds)):
                scores.append(float(self.meteor_p.stdout.readline().strip()))
            score = float(self.meteor_p.stdout.readline().strip())

        return score, scores

After Change


            self.meteor_p.stdin.flush()
            for i in range(0, len(imgIds)):
                scores.append(float(dec(self.meteor_p.stdout.readline().strip())))
            score = float(dec(self.meteor_p.stdout.readline()).strip())

        return score, scores
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Maluuba/nlg-eval
Commit Name: f5766226bfcdb565f326deb73d4d42f0779504c6
Time: 2018-07-09
Author: hannes.schulz@microsoft.com
File Name: nlgeval/pycocoevalcap/meteor/meteor.py
Class Name: Meteor
Method Name: compute_score


Project Name: Maluuba/nlg-eval
Commit Name: f5766226bfcdb565f326deb73d4d42f0779504c6
Time: 2018-07-09
Author: hannes.schulz@microsoft.com
File Name: nlgeval/pycocoevalcap/meteor/meteor.py
Class Name: Meteor
Method Name: _score


Project Name: Maluuba/nlg-eval
Commit Name: f5766226bfcdb565f326deb73d4d42f0779504c6
Time: 2018-07-09
Author: hannes.schulz@microsoft.com
File Name: nlgeval/pycocoevalcap/meteor/meteor.py
Class Name: Meteor
Method Name: _stat