94d6c6d68dce62d4f27b5492a09e530076cae955,conceptnet5/formats/convert.py,,msgpack_to_tab_separated,#Any#Any#,10
Before Change
for info in read_msgpack_stream(input_filename):
if info.get("surfaceText") is None:
info["surfaceText"] = ""
info["weight"] = str(info["weight"])
info["source_uri"] = disjunction_uri(*[item["@id"] for item in info["sources"]])
columns = [
"@id", "rel", "start", "end", "weight", "source_uri",
"@id", "dataset", "license", "surfaceText"
]
After Change
if info.get("surfaceText"):
extra_info["surfaceText"] = info["surfaceText"]
json_info = json.dumps(extra_info, ensure_ascii=False)
column_values = [info[col] for col in columns] + [json_info]
line = "\t".join(column_values)
assert "\n" not in line
print(line, file=out_stream)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: commonsense/conceptnet5
Commit Name: 94d6c6d68dce62d4f27b5492a09e530076cae955
Time: 2016-06-07
Author: rob@luminoso.com
File Name: conceptnet5/formats/convert.py
Class Name:
Method Name: msgpack_to_tab_separated
Project Name: sahana/eden
Commit Name: d0836dd9d191d5a0f0b944e8a71cedaeb2c05724
Time: 2020-07-15
Author: fran@aidiq.com
File Name: modules/s3/s3task.py
Class Name: S3Task
Method Name: run_async
Project Name: google/deepvariant
Commit Name: cd7de450d398f1b9b47d176011222386270afa79
Time: 2019-06-11
Author: sidharthgoel@google.com
File Name: deepvariant/vcf_stats.py
Class Name:
Method Name: variants_to_stats_json