d3ee4125592e31af6d7548ad80728de1e74750dd,ninja.py,,parse_conceptnet4,#,127

Before Change


def parse_conceptnet4(prefix):
    lines = []
    for style in ["conceptnet4", "conceptnet4_nadya"]:
        for i in range(10):
            input = prefix+"raw/%s/%s_flat_%s.jsons"%(style, style, i)
            output = prefix+"edges/%s%s_flat_%s.msgpack"%(style, style, i)
            add_dep(lines, "parse", input, output, params={"filetype":"conceptnet4"})

    return lines


def parse_ptt_petgame(prefix):

After Change


def parse_conceptnet4(deps):
    for type in ["conceptnet4", "conceptnet4_nadya", "conceptnet_zh"]:
        for input in in_tar[type]:
            output = input.replace("jsons", "msgpack")\
                        .replace("txt", "msgpack")\
                        .replace("raw", "edges")
            parser = type if not type.endswith("zh") else "ptt_petgame"
            deps["parse %s"%type] = Dep(
                [input],
                [output],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: commonsense/conceptnet5
Commit Name: d3ee4125592e31af6d7548ad80728de1e74750dd
Time: 2015-06-22
Author: jchin@luminoso.com
File Name: ninja.py
Class Name:
Method Name: parse_conceptnet4


Project Name: commonsense/conceptnet5
Commit Name: d3ee4125592e31af6d7548ad80728de1e74750dd
Time: 2015-06-22
Author: jchin@luminoso.com
File Name: ninja.py
Class Name:
Method Name: parse_conceptnet4


Project Name: pyinstaller/pyinstaller
Commit Name: 5ae5a2d4af15e570a74bc4541ac153ad12cddec5
Time: 2021-01-05
Author: dan@yeaw.me
File Name: PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
Class Name:
Method Name:


Project Name: undertheseanlp/underthesea
Commit Name: e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4
Time: 2017-05-08
Author: brother.rain.1024@gmail.com
File Name: underthesea/word_sent/model.py
Class Name: CRFModel
Method Name: predict