6e8311cd7ed93769ed72bc04aa7359be0fdd57b2,sensegram.py,SenseGram,get_senses,#SenseGram#,43

Before Change


        senses = []
        if ignore_case:
            words.append(word[0].upper() + word[1:])
            words.append(word[0].lower() + word[1:])
        
        words = set(words)
        for word in words:

After Change


        senses = []
        if ignore_case:
            words.add(word.title())
            words.add(word.lower())
        
        for word in words:
            if word not in self.inventory: continue
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: uhh-lt/sensegram
Commit Name: 6e8311cd7ed93769ed72bc04aa7359be0fdd57b2
Time: 2018-03-22
Author: panchenko.alexander@gmail.com
File Name: sensegram.py
Class Name: SenseGram
Method Name: get_senses


Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_tokens


Project Name: PIQuIL/QuCumber
Commit Name: a67455fabd95615d25f2f20c331101ed5e505bff
Time: 2019-09-03
Author: emerali@users.noreply.github.com
File Name: qucumber/callbacks/early_stopping.py
Class Name: EarlyStopping
Method Name: __init__


Project Name: shibing624/pycorrector
Commit Name: 4e144c9f842d7415d8be5bdbb5912d88ae32cced
Time: 2018-04-16
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/corpus_reader.py
Class Name: CGEDReader
Method Name: read_samples_by_string