a886baab6b48d976f0b30addde5e588282de072f,util/select_pairs_for_ab.py,,main,#,60
Before Change
data2 = parse_sgm_file(args.file2)
assert(len(data1) == len(data2))
assert(len(data1) % len(contexts) == 0)
// deduplication
data = []
for context, inst1, inst2 in zip(cycle(contexts), data1, data2):
After Change
ap = ArgumentParser()
ap.add_argument("-n", "--num-samples", type=int, default=1000, help="number of samples to create")
ap.add_argument("-t", "--test-questions", action="store_true",
help="create test questions (uses just the 1st input file + contexts)")
ap.add_argument("context_file", type=str, help="file with contexts")
ap.add_argument("file1", type=str, help="1st file with outputs for comparison")
// TODO make optional if test questions are generated
ap.add_argument("file2", type=str, help="2nd file with outputs for comparison")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: UFAL-DSG/tgen
Commit Name: a886baab6b48d976f0b30addde5e588282de072f
Time: 2016-05-17
Author: odusek@ufal.mff.cuni.cz
File Name: util/select_pairs_for_ab.py
Class Name:
Method Name: main
Project Name: facebookresearch/fastMRI
Commit Name: 05b2b1c02a8ce5f471877243ebebe5df876ccc37
Time: 2020-04-15
Author: tulliemurrell@gmail.com
File Name: models/unet/train_unet.py
Class Name:
Method Name: main
Project Name: rusty1s/pytorch_geometric
Commit Name: f11eabc65072d34b431cc85419c27c0b0d00950c
Time: 2020-10-09
Author: matthias.fey@tu-dortmund.de
File Name: examples/autoencoder.py
Class Name:
Method Name: