2ad33f20c2bd5fa3a788e7facf32ac42991dd857,bin/sites_hdf5_rnn.py,,main,#,23

Before Change


    num_sites = len(sites)

    // shuffle sites
    random.shuffle(sites)

    // get wig files and labels
    target_wigs = OrderedDict()
    for line in open(sample_wigs_file):

After Change


    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // finalize
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    target_labels = np.array(list(target_wigs.keys()), dtype="S")
    out_hdf5_open.create_dataset("target_labels", data=target_labels)

    if options.valid_test:
        out_hdf5_open.create_dataset("test_in", data=valid_in)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: calico/basenji
Commit Name: 2ad33f20c2bd5fa3a788e7facf32ac42991dd857
Time: 2016-06-24
Author: davidkelley44@gmail.com
File Name: bin/sites_hdf5_rnn.py
Class Name:
Method Name: main


Project Name: pandas-dev/pandas
Commit Name: 8051248bedd7387babba24c5756c286987c42eb1
Time: 2021-02-21
Author: jbrockmendel@gmail.com
File Name: asv_bench/benchmarks/hash_functions.py
Class Name:
Method Name: setup


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 2a1a6851344172e0134f3c5f4f5c1021975f2812
Time: 2018-03-11
Author: petrochukm@gmail.com
File Name: torchnlp/samplers/bucket_batch_sampler.py
Class Name: BucketBatchSampler
Method Name: __iter__