2a74e12fec206dd222f98cd3ac2a15c48ebdf0a9,data/prepare_train_data.py,,main,#,59

Before Change


        for scene in tqdm(data_loader.scenes):
            dump_example(args, scene)
    else:
        Parallel(n_jobs=args.num_threads)(delayed(dump_example)(args, scene) for scene in tqdm(data_loader.scenes))

    print("Generating train val lists")
    np.random.seed(8964)

After Change


            dump_example(args, scene)
    else:
        with ProcessPool(max_workers=args.num_threads) as pool:
            tasks = pool.map(dump_example, [args]*n_scenes, data_loader.scenes)
            try:
                for _ in tqdm(tasks.result(), total=n_scenes):
                    pass
            except KeyboardInterrupt as e:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: ClementPinard/SfmLearner-Pytorch
Commit Name: 2a74e12fec206dd222f98cd3ac2a15c48ebdf0a9
Time: 2019-02-18
Author: clement.pinard@parrot.com
File Name: data/prepare_train_data.py
Class Name:
Method Name: main


Project Name: EpistasisLab/scikit-rebate
Commit Name: 971719830d589eba66434ddabfc62c1a689be677
Time: 2017-04-07
Author: weixuanf@upenn.edu
File Name: skrebate/relieff.py
Class Name: ReliefF
Method Name: _run_algorithm


Project Name: dgasmith/opt_einsum
Commit Name: 560726e17da36cfb80cad355860fe876faa7ee8a
Time: 2018-08-19
Author: fritzo@uber.com
File Name: opt_einsum/backends/shared.py
Class Name:
Method Name: einsum


Project Name: miso-belica/sumy
Commit Name: 6e545e41f1190c70462419d163390c291ee1ec55
Time: 2013-02-28
Author: miso.belica@gmail.com
File Name: sumy/algorithms/_luhn.py
Class Name: LuhnMethod
Method Name: stop_words