3cbeab42c246425425c584cd53f1cc25d8c738a7,torchreid/datasets/__init__.py,,init_vidreid_dataset,#Any#,52

Before Change




def init_vidreid_dataset(name, **kwargs):
    if name not in list(__vidreid_factory.keys()):
        raise KeyError("Invalid dataset, got "{}", but expected to be one of {}".format(name, list(__vidreid_factory.keys())))
    return __vidreid_factory[name](**kwargs)

After Change




def init_vidreid_dataset(name, **kwargs):
    avai_datasets = list(__vidreid_factory.keys())
    if name not in avai_datasets:
        raise RuntimeError("Invalid dataset name. Received "{}", but expected to be one of {}".format(name, avai_datasets))
    return __vidreid_factory[name](**kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 3cbeab42c246425425c584cd53f1cc25d8c738a7
Time: 2019-03-15
Author: k.zhou@qmul.ac.uk
File Name: torchreid/datasets/__init__.py
Class Name:
Method Name: init_vidreid_dataset


Project Name: ray-project/ray
Commit Name: 1d532d1cb8b829bdf7055a22c206032ca0b72e46
Time: 2020-04-02
Author: rkooo567@gmail.com
File Name: python/ray/dashboard/metrics_exporter/schema.py
Class Name: BaseModel
Method Name: parse_obj


Project Name: pfnet-research/chainer-chemistry
Commit Name: 67136779f681f817f3e4ec4cb9a4656c0a49b6e3
Time: 2018-07-10
Author: acc1ssnn9terias@gmail.com
File Name: chainer_chemistry/datasets/molnet/molnet.py
Class Name:
Method Name: get_molnet_filepath


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 3cbeab42c246425425c584cd53f1cc25d8c738a7
Time: 2019-03-15
Author: k.zhou@qmul.ac.uk
File Name: torchreid/datasets/__init__.py
Class Name:
Method Name: init_imgreid_dataset