c6c9864bd5be1822892e71f640dc71e28ef512ab,src/codebase/tasks.py,RTETask,load_data,#RTETask#Any#Any#,743

Before Change


                return all_paths

        dev_data = []
        test_data = []
        dev_data = load_files(get_paths(path, "dev"))
        test_data = load_files(get_paths(path, "test"))

        def reformat(data):

After Change



        n_exs = len(dev_sents1)
        split_pt = int(.2 * n_exs)
        tmp = list(zip(dev_sents1, dev_sents2, dev_targs))
        random.shuffle(tmp)
        dev_sents1, dev_sents2, dev_targs = zip(*tmp)
        tr_data = sort_data(dev_sents1[split_pt:], dev_sents2[split_pt:], dev_targs[split_pt:])
        val_data = sort_data(dev_sents1[:split_pt], dev_sents2[:split_pt], dev_targs[:split_pt])
        te_data = sort_data(te_sents1, te_sents2, te_targs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jsalt18-sentence-repl/jiant
Commit Name: c6c9864bd5be1822892e71f640dc71e28ef512ab
Time: 2017-12-11
Author: wang.alex.c@gmail.com
File Name: src/codebase/tasks.py
Class Name: RTETask
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