db4b9f4d50af9e83733fc301c32e85cbe6d9c812,conceptnet5/builders/json_to_solr.py,,convert_to_solr,#Any#Any#,12
Before Change
writer = SolrEdgeWriter(out_stream)
for line in in_stream:
if not line.strip():
continue
info = json.loads(line.strip().decode("utf-8"))
writer.write(info)
writer.close()
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: 6
Non-data size: 4
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: deeptools/HiCExplorer
Commit Name: 510958e6a3123b1e41ccb280d0e5c499aa1fbd09
Time: 2017-11-24
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: getPearson
Project Name: nipy/dipy
Commit Name: 39e8146b3d7354d1e34cd41a4eca19e70c053a4a
Time: 2019-08-05
Author: bramshq@gmail.com
File Name: dipy/denoise/localpca.py
Class Name:
Method Name: localpca
Project Name: AllenCellModeling/pytorch_fnet
Commit Name: 2b4dfea5674a6b6b4d6556d7546a387f41f947fa
Time: 2017-11-10
Author: chek.o@outlook.com
File Name: tools/colorize_tifs.py
Class Name:
Method Name:
Project Name: openeventdata/mordecai
Commit Name: 963200b8ecdf80eeacb546991c645111319cb1af
Time: 2017-10-26
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparse
Method Name: process_text
Project Name: akkana/scripts
Commit Name: 9a88eac5a23150345337d62e83621316cf2d986f
Time: 2019-09-21
Author: akkana@shallowsky.com
File Name: censusdata.py
Class Name:
Method Name: codesFromZipFile