37d609be15fcc593ee7909df244862d2e012e6fc,chainercv/datasets/directory_parsing_classification_dataset.py,,_parse_classification_dataset,#Any#Any#Any#Any#,47
Before Change
sort_func = lambda x: sorted(x)
// Use label_name_to_idx for performance.
label_name_to_idx = {label_names[i] : i for i in range(len(label_names)) }
img_paths = []
labels = []
After Change
img_paths = []
labels = []
for label, label_name in enumerate(label_names) :
label_dir = os.path.join(root, label_name)
if not os.path.isdir(label_dir):
continue
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: chainer/chainercv
Commit Name: 37d609be15fcc593ee7909df244862d2e012e6fc
Time: 2017-07-03
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/directory_parsing_classification_dataset.py
Class Name:
Method Name: _parse_classification_dataset
Project Name: uber/ludwig
Commit Name: dbe7c3364672bcb8c3907ffb69c1b781056949a4
Time: 2020-06-30
Author: w4nderlust@gmail.com
File Name: ludwig/features/bag_feature.py
Class Name: BagBaseFeature
Method Name: feature_data
Project Name: asyml/texar
Commit Name: cc4b3aa128c0e9331c4eaaa0bbbe4f0177ebe668
Time: 2018-07-17
Author: zhitinghu@gmail.com
File Name: texar/utils/utils.py
Class Name:
Method Name: shape_list
Project Name: ray-project/ray
Commit Name: f69d8b951ef81710ac99375432c37e894b71633a
Time: 2020-07-07
Author: ian.rodney@gmail.com
File Name: python/ray/tests/test_cancel.py
Class Name:
Method Name: test_stress
Project Name: NTMC-Community/MatchZoo
Commit Name: b76ebb090ae45ca93604b5e162881932e9ab569a
Time: 2019-01-04
Author: 948280670@qq.com
File Name: matchzoo/processor_units/processor_units.py
Class Name: WordHashingUnit
Method Name: transform