251a43f5bfa33fcbdf47d229cd969eb919e0f8ca,underthesea/corpus/readers/dictionary_loader.py,DictionaryLoader,words,#DictionaryLoader#,20

Before Change


    def words(self):
        if not self.words_data:
             with io.open(self.data_file, "r", encoding="utf-8") as f:
                words = f.read().splitlines()
                unicode_transformer = UnicodeTransformer()
                words = [unicode_transformer.transform(word) for word in words]
                self.words_data = words
        return self.words_data

After Change


    def words(self):
        if not self.words_data:
            content = read(self.data_file).strip()
            words = content.split("\n")
            self.words_data = words
        return self.words_data
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: undertheseanlp/underthesea
Commit Name: 251a43f5bfa33fcbdf47d229cd969eb919e0f8ca
Time: 2017-07-07
Author: brother.rain.1024@gmail.com
File Name: underthesea/corpus/readers/dictionary_loader.py
Class Name: DictionaryLoader
Method Name: words


Project Name: kmike/pymorphy2
Commit Name: 5a38aa2be9545b5aec6df19c9af4dd020c2aee0f
Time: 2013-03-07
Author: kmike84@gmail.com
File Name: tests/test_lexemes.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: dd9d7ec6f38eceba49a50a1f5158afcc0f7df7a8
Time: 2015-10-24
Author: matt@digital-wanderlust.com
File Name: src/python/pants/backend/python/tasks/checkstyle/common.py
Class Name: PythonFile
Method Name: _remove_coding_header