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


    @property
    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: 8

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: mozilla/TTS
Commit Name: 278c7a91b77448236af73d6942da425a5d5a2e34
Time: 2019-04-28
Author: egolge@mozilla.com
File Name: datasets/preprocess.py
Class Name:
Method Name: mozilla


Project Name: dirty-cat/dirty_cat
Commit Name: f70e71d5c7fdc8e25391e54e74c3402fb323ad5c
Time: 2018-06-06
Author: pierreglaser@msn.com
File Name: examples/plot_employee_salaries.py
Class Name:
Method Name: