c633852494f2fc19a90dcdb7b7d1dead527d6311,chainercv/datasets/image_folder_dataset.py,,_parse_classification_dataset,#Any#Any#Any#,23

Before Change


            for filename in filenames:
                if check_img_file(filename):
                    img_paths.append(os.path.join(cur_dir, filename))
                    labels.append(label_names.index(label_name))

    return img_paths, np.array(labels, np.int32)

After Change


            for filename in filenames:
                if check_img_file(filename):
                    img_paths.append(os.path.join(cur_dir, filename))
                    labels.append(label_name_to_idx[label_name])

    return img_paths, np.array(labels, np.int32)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: chainer/chainercv
Commit Name: c633852494f2fc19a90dcdb7b7d1dead527d6311
Time: 2017-06-13
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/image_folder_dataset.py
Class Name:
Method Name: _parse_classification_dataset


Project Name: deepmipt/DeepPavlov
Commit Name: d86f0ef86868899b112ac61e598a3333fac66ad2
Time: 2018-01-24
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/encoders/bow.py
Class Name: BoW_encoder
Method Name: _encode


Project Name: deepmipt/DeepPavlov
Commit Name: 16ff3c29203c6bd5be8a1ac3bbb76c528e354346
Time: 2017-12-29
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/encoders/bow.py
Class Name: BoW_encoder
Method Name: _encode