cc90cfc15715f842b98016eab40f66feff8c0e14,chiron/utils/extract_sig_ref.py,,extract,#Any#,17

Before Change


                    if len(raw_signal) == 0:
                        raise ValueError("Failed in extracting " + (
                            os.path.join(raw_folder, os.path.splitext(file_n)[0] + ".signal")))
                except:
                    // logging.getLogger(__name__).error("Cannot extact file %s", file_n, exc_info=True)
                    continue
                with open(os.path.join(raw_folder, os.path.splitext(file_n)[0] + ".signal"), "w+") as signal_file:

After Change


            os.makedirs(FLAGS.output_dir)
        raw_folder = os.path.abspath(os.path.join(out_folder, "raw"))
        ref_folder = os.path.abspath(os.path.join(out_folder, "reference"))
        log_folder = os.path.abspath(os.path.join(out_folder, "log"))
    if not os.path.isdir(raw_folder):
        os.mkdir(raw_folder)
    if not os.path.isdir(ref_folder):
        os.mkdir(ref_folder)
    if not os.path.isdir(log_folder):
        os.mkdir(log_folder)
    logging.basicConfig(filename=os.path.join(log_folder,"extract.log"),
                        level=logging.DEBUG,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: haotianteng/Chiron
Commit Name: cc90cfc15715f842b98016eab40f66feff8c0e14
Time: 2018-11-24
Author: havens.teng@gmail.com
File Name: chiron/utils/extract_sig_ref.py
Class Name:
Method Name: extract


Project Name: vatlab/SoS
Commit Name: e3b90cfc15d91e73a0a76c8b9c932fa4a7ac2ea1
Time: 2016-11-30
Author: ben.bog@gmail.com
File Name: test/run_tests.py
Class Name:
Method Name:


Project Name: haotianteng/Chiron
Commit Name: cc90cfc15715f842b98016eab40f66feff8c0e14
Time: 2018-11-24
Author: havens.teng@gmail.com
File Name: chiron/utils/extract_sig_ref.py
Class Name:
Method Name: extract


Project Name: PPPLDeepLearning/plasma-python
Commit Name: e322a26c7cb05e926c28193b2d7b6abd10daef8a
Time: 2017-01-11
Author: asvyatkovskiy@gmail.com
File Name: plasma/conf.py
Class Name:
Method Name:


Project Name: regel/loudml
Commit Name: e7e01290997f66471c08848ee0a968e2526b4b9b
Time: 2019-09-29
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/_version.py
Class Name:
Method Name: