16442e7865371dc940e46d74288fa74b36ca3023,underthesea/corpus/validate_corpus.py,,validate_sentence,#Any#,64

Before Change


            elif previous_line == "\n":
                stop_reading = True
                previous_line = None
            sentence += line
        else:
            sentence += line
        if not stop_reading:
            continue
        stop_reading = False
        nodes = sentence.split("\n")
        comment_nodes = [node for node in nodes if node.startswith("//")]
        has_sent_id = False
        has_text = False

After Change


    global error_count
    base_name = basename(file)
    for i, sentence in fetch_sentence(file):
        nodes = sentence.strip().split("\n")
        i_start = i - len(nodes) + 1
        comment_nodes = [node for node in nodes if node.startswith("//")]
        has_sent_id = False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 16442e7865371dc940e46d74288fa74b36ca3023
Time: 2020-11-02
Author: anhv.ict91@gmail.com
File Name: underthesea/corpus/validate_corpus.py
Class Name:
Method Name: validate_sentence


Project Name: undertheseanlp/underthesea
Commit Name: 16442e7865371dc940e46d74288fa74b36ca3023
Time: 2020-11-02
Author: anhv.ict91@gmail.com
File Name: underthesea/corpus/validate_corpus.py
Class Name:
Method Name: validate_sentence


Project Name: vatlab/SoS
Commit Name: 66ac3d23a624923817cac6ac9951978a673e7844
Time: 2016-11-07
Author: ben.bog@gmail.com
File Name: pysos/main.py
Class Name:
Method Name: get_tracked_files


Project Name: fxsjy/jieba
Commit Name: 4197dfb8fa62574a86ec09fa5ddc33fd117d6464
Time: 2015-02-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name:
Method Name: load_userdict