6955fab0f4f0a38ead24cec84152d82769a0cfa2,scripts/bert/run_pretraining_hvd.py,,,#,248

Before Change


                raise UserWarning("argument cased is valid only when --raw is set")
            if args.max_seq_length:
                raise UserWarning("argument max_seq_length is valid only when --raw is set")
            if args.short_seq_prob:
                raise UserWarning("argument short_seq_prob is valid only when --raw is set")
            if args.masked_lm_prob:
                raise UserWarning("argument masked_lm_prob is valid only when --raw is set")
            if args.max_predictions_per_seq:
                raise UserWarning("argument max_predictions_per_seq is valid only when "

After Change


        else:
            tokenizer = nlp.data.BERTTokenizer(vocab=vocab, lower=not args.cased)

        cache_dir = os.path.join(args.ckpt_dir, "data_eval_cache")
        cache_file = os.path.join(cache_dir, "part-000.npz")
        nlp.utils.mkdir(cache_dir)

        // generate dev dataset from the raw text if needed
        if not args.eval_use_npz:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 6955fab0f4f0a38ead24cec84152d82769a0cfa2
Time: 2019-06-21
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/run_pretraining_hvd.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: 7e470179b0d874c43ec6d5dba11d7981ad83dff1
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/sintel/sintel_dataset.py
Class Name: SintelDataset
Method Name: __init__


Project Name: streamlit/streamlit
Commit Name: d32ecf41fbcfd2b050cf14a76638a9e5b9e5345a
Time: 2019-10-08
Author: tconkling@gmail.com
File Name: lib/tests/streamlit/credentials_test.py
Class Name: CredentialsClassTest
Method Name: test_Credentials_save


Project Name: keras-team/autokeras
Commit Name: a71e59578a0ba78b81b40678ddd99e53edfc5fce
Time: 2019-01-03
Author: song_3134@tamu.edu
File Name: autokeras/tabular/tabular_supervised.py
Class Name: TabularSupervised
Method Name: __init__