5635a2653599ed42adc27e4dc529fc7a27be9c57,mir_eval/input_output.py,,load_patterns,#,194

Before Change


        occurrence = []     // Current occurrence, containing (onset, midi)
        for line in input_file.readlines():
            if "pattern" in line:
                append_if_necessary(pattern, occurrence)
                append_if_necessary(P, pattern)
                occurrence = []
                pattern = []
                continue

After Change



        // Add last occurrence and pattern to pattern_list
        if occurrence != []:
            pattern.append(occurrence)
        if pattern != []:
            pattern_list.append(pattern)

    return pattern_list
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: craffel/mir_eval
Commit Name: 5635a2653599ed42adc27e4dc529fc7a27be9c57
Time: 2014-07-03
Author: craffel@gmail.com
File Name: mir_eval/input_output.py
Class Name:
Method Name: load_patterns


Project Name: craffel/mir_eval
Commit Name: 5635a2653599ed42adc27e4dc529fc7a27be9c57
Time: 2014-07-03
Author: craffel@gmail.com
File Name: mir_eval/input_output.py
Class Name:
Method Name: load_patterns