c73bc6a1773ae39c0c79d8e7fc7b53124a9bfa1e,mir_eval/io.py,,load_events,#,5

Before Change


            data = filter(lambda x: len(x) > 0, line.strip().split(delimiter))
            
            if len(data) > 2:
                data[2:] = delimiter.join(data[2:])

            if len(data) == 1:
                times.append(converter(data[0]))
                labels.append("%s%d" % (label_prefix, row))

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(), 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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_events


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_annotation