7df8275e7f70013185f1afeaa2779c2abce4492d,allennlp/data/token_indexers/ner_tag_indexer.py,NerTagIndexer,pad_token_sequence,#NerTagIndexer#Any#Any#Any#,54

Before Change


                           tokens: List[int],
                           desired_num_tokens: int,
                           padding_lengths: Dict[str, int]) -> List[int]:  // pylint: disable=unused-argument
        return pad_sequence_to_length(tokens, desired_num_tokens)

After Change


                           tokens: Dict[str, List[int]],
                           desired_num_tokens: Dict[str, int],
                           padding_lengths: Dict[str, int]) -> Dict[str, List[int]]:  // pylint: disable=unused-argument
        return {key: pad_sequence_to_length(val, desired_num_tokens[key])
                for key, val in tokens.items()}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/token_indexers/ner_tag_indexer.py
Class Name: NerTagIndexer
Method Name: pad_token_sequence


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/token_indexers/single_id_token_indexer.py
Class Name: SingleIdTokenIndexer
Method Name: pad_token_sequence


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/token_indexers/pos_tag_indexer.py
Class Name: PosTagIndexer
Method Name: pad_token_sequence


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/token_indexers/dep_label_indexer.py
Class Name: DepLabelIndexer
Method Name: pad_token_sequence