49d41416e440926f0a9a8243b4d77f6f5468efe9,app/server/utils.py,CoNLLHandler,parse,#CoNLLHandler#Any#,100

Before Change


                self.save_annotation(data, doc, user)

    def parse(self, file):
        words, tags = [], []
        for i, line in enumerate(file, start=1):
            line = line.decode("utf-8")
            line = line.strip()
            if line:

After Change


                yield data
                data = []
            try:
                j = json.loads(line)
                j["meta"] = json.dumps(j.get("meta", {}))
                data.append(j)
            except json.decoder.JSONDecodeError:
                raise FileParseException(line_num=i, line=line)
        if data:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/utils.py
Class Name: CoNLLHandler
Method Name: parse


Project Name: facebook/FAI-PEP
Commit Name: 6fb6b56a6f115414c5ba1166843a7f53b7d9575a
Time: 2019-04-02
Author: zhizhenqin@fb.com
File Name: benchmarking/remote/django_url_printer.py
Class Name: DjangoURLPrinter
Method Name: getDjangoParams


Project Name: quiltdata/quilt
Commit Name: e5c62b49200a6adef9f9c92469b866161f999046
Time: 2020-09-23
Author: kevinemoore@gmail.com
File Name: lambdas/pkgselect/test/test_pkgselect.py
Class Name: TestPackageSelect
Method Name: setUp