fc3054e38f307f1ca20e04e156b0023ef2008866,estnltk/wordnet/wn.py,,all_synsets,#,269

Before Change


        stored_synsets = []
        
        for i in range(len(synset_idxes)):
            if synset_idxes[i] in SYNSETS_DICT:
                stored_synsets.append(SYNSETS_DICT[synset_idxes.pop(i)])
        synset_offsets = _get_synset_offsets(synset_idxes)
        synsets = _get_synsets(synset_offsets)

        for synset in synsets:

After Change


            return []

        stored_synsets = [SYNSETS_DICT[synset_idxes[i]] for i in range(len(synset_idxes)) if synset_idxes[i] in SYNSETS_DICT]
        unstored_synset_idxes = [synset_idxes[i] for i in range(len(synset_indxes)) if synset_idxes[i] not in SYNSETS_DICT]
        
        synset_offsets = _get_synset_offsets(unstored_synset_idxes)
        synsets = _get_synsets(synset_offsets)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: estnltk/estnltk
Commit Name: fc3054e38f307f1ca20e04e156b0023ef2008866
Time: 2015-06-08
Author: komasing@gmail.com
File Name: estnltk/wordnet/wn.py
Class Name:
Method Name: all_synsets


Project Name: arogozhnikov/einops
Commit Name: 29389772364178f76ccf565917870639cad283bb
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: get_axes_names


Project Name: PetrochukM/PyTorch-NLP
Commit Name: 2a1a6851344172e0134f3c5f4f5c1021975f2812
Time: 2018-03-11
Author: petrochukm@gmail.com
File Name: torchnlp/samplers/bucket_batch_sampler.py
Class Name: BucketBatchSampler
Method Name: __iter__