8f56cd7ecd8c4e04f5e0963eda15e97ef0653529,src/codebase/tasks.py,RTE8Task,load_data,#RTE8Task#Any#Any#Any#,593

Before Change



        train_data = []
        test_data = []
        for sub in subdirs:
            train_data.append(load_files(get_paths(path, "training", way_type, sub), sub))
            test_data.append(load_files(get_paths(path, "test", way_type, sub), sub))

        targ_map = {"incorrect":0, "correct":1, "contradictory":2}
        def reformat(data):
            sents1, sents2, targs = [], [], []
            merged = data[0]

After Change



        sent1s, sent2s, targs = do_everything("training", domains)
        tmp = list(zip(sent1s, sent2s, targs))
        random.shuffle(tmp)
        sent1s, sent2s, targs = zip(*tmp)
        n_exs = len(sent1s)
        split_pt = int(.1 * n_exs)
        tr_data = sort_data(sent1s[split_pt:], sent2s[split_pt:], targs[split_pt:])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 8f56cd7ecd8c4e04f5e0963eda15e97ef0653529
Time: 2018-01-04
Author: wang.alex.c@gmail.com
File Name: src/codebase/tasks.py
Class Name: RTE8Task
Method Name: load_data


Project Name: danforthcenter/plantcv
Commit Name: 96c26bd09d02bb9cddbc083c75ba2ea65b5d377a
Time: 2020-07-16
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/color_palette.py
Class Name:
Method Name: color_palette


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 8f56cd7ecd8c4e04f5e0963eda15e97ef0653529
Time: 2018-01-04
Author: wang.alex.c@gmail.com
File Name: src/codebase/tasks.py
Class Name: RTE8Task
Method Name: load_data


Project Name: mariogeiger/se3cnn
Commit Name: b4447d7d91c83eaa3dddd3a14af9d8a8022c7c20
Time: 2017-11-15
Author: geiger.mario@gmail.com
File Name: arch/lung1.py
Class Name: MyModel
Method Name: create_train_batches