9073f624821382ef34c8bc92102b60f3e2eab2c2,audeep/backend/parsers/compare19_cs.py,Compare19CSParser,parse,#Compare19CSParser#,101

Before Change


            label_numeric = float(metadata.loc[metadata["file_name"] == file.name]["label"])

            // test labels are missing and parsed as NaN
            if not math.isnan(label_numeric):
                label_numeric = int(label_numeric)
            else:
                label_numeric = None

After Change


            label = metadata.loc[metadata["file_name"] == file.name]["label"]

            // test labels are missing and parsed as NaN
            if all(l != "?" for l in label):
                label_numeric = int(label)
            else:
                label_numeric = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: auDeep/auDeep
Commit Name: 9073f624821382ef34c8bc92102b60f3e2eab2c2
Time: 2019-03-14
Author: 15089301+mauricege@users.noreply.github.com
File Name: audeep/backend/parsers/compare19_cs.py
Class Name: Compare19CSParser
Method Name: parse


Project Name: biolab/orange3
Commit Name: 6b3c00cf4628865d1fb1698c97f2a1e54fcf9316
Time: 2017-03-10
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owmergedata.py
Class Name:
Method Name: join_table_by_indices


Project Name: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 41a3e20440c61f4892d7731f89032b53932cce66
Time: 2019-08-14
Author: alexliu36@gmail.com
File Name: src/solver.py
Class Name: Solver
Method Name: write_log