4197dfb8fa62574a86ec09fa5ddc33fd117d6464,jieba/__init__.py,,load_userdict,#Any#,288

Before Change


            continue
        tup = line.split(" ")
        word, freq = tup[0], tup[1]
        if freq.isdigit() is False:
            continue
        if line_no == 1:
            word = word.replace("\ufeff","") //remove bom flag if it exists
        add_word(*tup)

After Change


        if not line.rstrip():
            continue
        tup = line.strip().split(" ")
        if tup[1].isdigit():
            add_word(*tup)

@require_initialized
def add_word(word, freq, tag=None):
    global FREQ, pfdict, total, user_word_tag_tab
    freq = int(freq)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: fxsjy/jieba
Commit Name: 4197dfb8fa62574a86ec09fa5ddc33fd117d6464
Time: 2015-02-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name:
Method Name: load_userdict


Project Name: facebookresearch/pytext
Commit Name: 9f2c085d688ebc0e26f00a3ddd5d7b301ce2ff0f
Time: 2019-06-05
Author: zsc@fb.com
File Name: pytext/utils/data.py
Class Name:
Method Name: unkify


Project Name: Logan1x/Python-Scripts
Commit Name: 2ef5c047b4296a807eea8366f67d7f271f0d47de
Time: 2020-06-28
Author: 59202862+Monsieurvishal@users.noreply.github.com
File Name: bin/password-strength-checker.py
Class Name:
Method Name: pass1