ee73d97c6b0cb9115e8be3195c2ec89262dc56f0,asdl/lang/py/dataset.py,Django,parse_django_dataset,#Any#Any#Any#Any#Any#,213

Before Change


        assert "_STR:0_" in primitive_vocab

        // generate vocabulary for the code tokens!
        code_tokens = [tokenize_code(e["tgt_canonical_code"], mode="decoder") for e in loaded_examples]
        code_vocab = VocabEntry.from_corpus(code_tokens, size=5000, freq_cutoff=vocab_freq_cutoff)

        vocab = Vocab(source=src_vocab, primitive=primitive_vocab, code=code_vocab)

After Change


        assert "_STR:0_" in primitive_vocab

        // generate vocabulary for the code tokens!
        code_tokens = [tokenize_code(e.tgt_code, mode="decoder") for e in train_examples]
        code_vocab = VocabEntry.from_corpus(code_tokens, size=5000, freq_cutoff=vocab_freq_cutoff)

        vocab = Vocab(source=src_vocab, primitive=primitive_vocab, code=code_vocab)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pcyin/tranX
Commit Name: ee73d97c6b0cb9115e8be3195c2ec89262dc56f0
Time: 2018-11-19
Author: pcyin@cs.cmu.edu
File Name: asdl/lang/py/dataset.py
Class Name: Django
Method Name: parse_django_dataset


Project Name: pcyin/tranX
Commit Name: 62aff526f9631bcb4bb0fa939b5d8b21bd130e9e
Time: 2018-02-08
Author: pcyin1992@gmail.com
File Name: model/struct_vae.py
Class Name: StructVAE
Method Name: infer


Project Name: pcyin/tranX
Commit Name: 6225c47e42db18bab0e2a550887f9f7fef08f9be
Time: 2018-11-19
Author: pcyin@cs.cmu.edu
File Name: asdl/lang/py/dataset.py
Class Name: Django
Method Name: parse_django_dataset