be9467b5faed0506bda9dcdf231cc9fae3954170,graphbrain/agents/txt_parser.py,,paragraphs,#,6

Before Change


                cur_paragraph.append(line)
        if len(cur_paragraph) > 0:
            paragraph = " ".join(cur_paragraph)
            paragraphs.append(paragraph)
    return paragraphs


class TxtParser(Agent):
    def __init__(self, hg, lang, sequence=None):

After Change


        for line in f.readlines():
            paragraph = line.strip()
            if len(paragraph) > 0:
                yield paragraph


class TxtParser(Agent):
    def __init__(self, hg, lang, sequence=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: graphbrain/graphbrain
Commit Name: be9467b5faed0506bda9dcdf231cc9fae3954170
Time: 2020-06-16
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name:
Method Name: paragraphs


Project Name: erikbern/ann-benchmarks
Commit Name: 69b3611e0ff720c5b15a53f1d99b4c46d949a86f
Time: 2018-01-26
Author: mail@erikbern.com
File Name: ann_benchmarks/results.py
Class Name:
Method Name: load_results


Project Name: graphbrain/graphbrain
Commit Name: be9467b5faed0506bda9dcdf231cc9fae3954170
Time: 2020-06-16
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name:
Method Name: paragraphs


Project Name: daniellerch/aletheia
Commit Name: e7eefe879b9e5b7a279d80588af59d08f21365a1
Time: 2020-11-01
Author: kevin.clark@gmail.com
File Name: aletheialib/attacks.py
Class Name:
Method Name: groups