ebb357210205d3ad5fef77e8d33904625fb02a24,loudml/loudml/fingerprints.py,FingerprintsModel,show,#FingerprintsModel#Any#,684

Before Change


            counts[x,y] += 1

        if show_summary == True:
            return "\n".join(["".join(["{:3}".format(cnt) for cnt in row]) for row in counts])

        grid = []
        for x in range(self.h):
            for y in range(self.w):

After Change



        if show_summary == True:
            l = [ [x, y, locs] for (x, y), locs in locations.items() ]
            detail = "\n".join("{},{}: {}".format(x, y, loc) for x, y, loc in sorted(l, key = operator.itemgetter(0, 1)))
            grid = "\n".join(["".join(["{:3}".format(cnt) for cnt in row]) for row in counts])
            return grid + "\n" + detail

        return result

    def generate_fake_prediction(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: regel/loudml
Commit Name: ebb357210205d3ad5fef77e8d33904625fb02a24
Time: 2019-02-10
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/fingerprints.py
Class Name: FingerprintsModel
Method Name: show


Project Name: chartbeat-labs/textacy
Commit Name: fee8eeac1d22d128498937337541e133db94e28e
Time: 2019-07-14
Author: burtdewilde@gmail.com
File Name: textacy/ke/yake.py
Class Name:
Method Name: yake


Project Name: shibing624/pycorrector
Commit Name: dad1abdcffb4d37256502a73a1c236aa2f07636b
Time: 2020-03-17
Author: xuming624@qq.com
File Name: pycorrector/bert/bert_corrector.py
Class Name: BertCorrector
Method Name: bert_correct