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

Before Change



//parsers both conceptnet4 and conceptnet4 nadya
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)

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: 4

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: etal/cnvkit
Commit Name: 8bb827838c60d008d1cd5124b050021a3b7734dc
Time: 2016-04-06
Author: eric.talevich@gmail.com
File Name: cnvlib/diagram.py
Class Name:
Method Name: create_diagram


Project Name: dgasmith/opt_einsum
Commit Name: cea9099ef36997bc0922e3fdf8c4be88c9910d9a
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: format_const_einsum_str