c73bc6a1773ae39c0c79d8e7fc7b53124a9bfa1e,mir_eval/io.py,,load_annotation,#,65

Before Change


        for row, line in enumerate(input_file, 1):
            data = filter(lambda x: len(x) > 0, line.strip().split(delimiter))

            if len(data) > 3:
                data[2] = delimiter.join(data[2:])

            if len(data) == 2:

After Change


    times   = []
    labels  = []

    splitter = re.compile(delimiter)

    with open(filename, "r") as input_file:
        for row, line in enumerate(input_file, 1):
            data = splitter.split(line.strip(), 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: craffel/mir_eval
Commit Name: c73bc6a1773ae39c0c79d8e7fc7b53124a9bfa1e
Time: 2014-01-24
Author: brm2132@columbia.edu
File Name: mir_eval/io.py
Class Name:
Method Name: load_annotation


Project Name: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run


Project Name: craffel/mir_eval
Commit Name: c73bc6a1773ae39c0c79d8e7fc7b53124a9bfa1e
Time: 2014-01-24
Author: brm2132@columbia.edu
File Name: mir_eval/io.py
Class Name:
Method Name: load_events