b56da5ceac67374e9cfafee48212d7846d9d4369,deeppavlov/vocabs/typos.py,RussianWordsVocab,_get_source,#,101

Before Change



    @staticmethod
    def _get_source(*args, **kwargs):
        print("Downloading russian vocab from https://github.com/danakt/russian-words/", file=sys.stderr)
        url = "https://github.com/danakt/russian-words/raw/master/russian.txt"
        page = requests.get(url)
        return [word.strip() for word in page.content.decode("cp1251").split("\n")]

After Change



    @staticmethod
    def _get_source(*args, **kwargs):
        log.info("Downloading russian vocab from https://github.com/danakt/russian-words/")
        url = "https://github.com/danakt/russian-words/raw/master/russian.txt"
        page = requests.get(url)
        return [word.strip() for word in page.content.decode("cp1251").split("\n")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: b56da5ceac67374e9cfafee48212d7846d9d4369
Time: 2018-02-07
Author: alitinsky@gmail.com
File Name: deeppavlov/vocabs/typos.py
Class Name: RussianWordsVocab
Method Name: _get_source


Project Name: deepmipt/DeepPavlov
Commit Name: b56da5ceac67374e9cfafee48212d7846d9d4369
Time: 2018-02-07
Author: alitinsky@gmail.com
File Name: deeppavlov/vocabs/typos.py
Class Name: Wiki100KDictionary
Method Name: _get_source


Project Name: deepmipt/DeepPavlov
Commit Name: b56da5ceac67374e9cfafee48212d7846d9d4369
Time: 2018-02-07
Author: alitinsky@gmail.com
File Name: deeppavlov/vocabs/typos.py
Class Name: StaticDictionary
Method Name: __init__