0c7f52ec5283148dda8ee74c056d42b38e188f94,TCP/Software/ingest_tools/generate_science_features.py,,generate_arff_using_raw_xml,#Any#,122
Before Change
include_arff_header = True
////// Generate the features:
tmp_stdout = sys.stdout
sys.stdout = open(os.devnull, "w")
signals_list = []
gen = generators_importers.from_xml(signals_list)
gen.generate(xml_handle=xml_str)
gen.sig.add_features_to_xml_string(signals_list)
gen.sig.x_sdict["src_id"] = new_srcid
dbi_src = db_importer.Source(make_dict_if_given_xml=False)
dbi_src.source_dict_to_xml(gen.sig.x_sdict)
sys.stdout.close()
sys.stdout = tmp_stdout
xml_fpath = dbi_src.xml_string
After Change
gen.generate(xml_handle=xml_str)
gen.sig.add_features_to_xml_string(signals_list)
// see what x_sdict contains at this point:
print("\n\nsig.x_sdict:\n\n", gen.sig.x_sdict, "\n\n")
gen.sig.x_sdict["src_id"] = new_srcid
dbi_src = db_importer.Source(make_dict_if_given_xml=False)
dbi_src.source_dict_to_xml(gen.sig.x_sdict)
//sys.stdout.close()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: cesium-ml/cesium
Commit Name: 0c7f52ec5283148dda8ee74c056d42b38e188f94
Time: 2015-01-12
Author: a.crellinquick@gmail.com
File Name: TCP/Software/ingest_tools/generate_science_features.py
Class Name:
Method Name: generate_arff_using_raw_xml
Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run1
Project Name: pfnet/optuna
Commit Name: dac1135635661f39b66432f702047abc704585d1
Time: 2018-06-24
Author: sano@preferred.jp
File Name: examples/chainermn_mnist.py
Class Name:
Method Name:
Project Name: openeventdata/mordecai
Commit Name: 580af77a96d8c6b306ad4425eafd7768df00338a
Time: 2018-06-27
Author: ahalterman0@gmail.com
File Name: mordecai/geoparse.py
Class Name: Geoparser
Method Name: batch_geoparse