5c1a871f1aaa09f74205ac8e0a1955215211c464,keyword_spotting_data_generator/evaluation/utils/csv_writer.py,CsvWriter,__init__,#CsvWriter#,2

Before Change


        if file_name:
            self.file = open(file_name, "a+")
        else:
            self.file = open(keyword+".csv", "w")

    def write(self, rows):
        for row in rows:
            self.file.write(",".join([str(i) for i in row]) + "\n")

After Change


            file_path = os.path.join(folder_path, file_name)
            self.file = open(file_path, "a+")
        else:
            file_path = os.path.join(folder_path, keyword+".csv")
            print(file_path)
            self.file = open(file_path, "w")

    def write(self, rows):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: castorini/honk
Commit Name: 5c1a871f1aaa09f74205ac8e0a1955215211c464
Time: 2019-02-18
Author: ljj7975@gmail.com
File Name: keyword_spotting_data_generator/evaluation/utils/csv_writer.py
Class Name: CsvWriter
Method Name: __init__


Project Name: victoresque/pytorch-template
Commit Name: c6e0818c58d767becf67d2375d09515960d6c8e3
Time: 2018-09-27
Author: sunq0313@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: __init__


Project Name: castorini/honk
Commit Name: 5c1a871f1aaa09f74205ac8e0a1955215211c464
Time: 2019-02-18
Author: ljj7975@gmail.com
File Name: keyword_spotting_data_generator/evaluation/url_file_generator.py
Class Name:
Method Name: main