db4b9f4d50af9e83733fc301c32e85cbe6d9c812,conceptnet5/builders/json_to_solr.py,,convert_to_solr,#Any#Any#,12
Before Change
for line in in_stream:
if not line.strip():
continue
info = json.loads(line.strip().decode("utf-8"))
writer.write(info)
writer.close()
if __name__ == "__main__":
After Change
out = codecs.open(output_filename, encoding="utf-8")
print("{", file=out)
for info in read_json_stream(input_filename):
boost = info["weight"]
if "surfaceText" in info and info["surfaceText"] is None:
del info["surfaceText"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: commonsense/conceptnet5
Commit Name: db4b9f4d50af9e83733fc301c32e85cbe6d9c812
Time: 2014-02-25
Author: rob@luminoso.com
File Name: conceptnet5/builders/json_to_solr.py
Class Name:
Method Name: convert_to_solr
Project Name: okfn-brasil/serenata-de-amor
Commit Name: e1d39a4c9158c9a9db1218cb5be9946152e2ca1b
Time: 2017-04-14
Author: marcus.rehm@gmail.com
File Name: src/fetch_cnpj_info.py
Class Name:
Method Name: fetch_cnpj_info
Project Name: stanfordnmbl/osim-rl
Commit Name: 22689227ac7f3300c66bff890331132b4444acc6
Time: 2019-06-03
Author: spmohanty91@gmail.com
File Name: osim/redis/service.py
Class Name: OsimRlRedisService
Method Name: run