9cdbed54fcb5ccab77166022a0799c163e2942ef,release.py,,update_operator_values_yaml_file,#Any#Any#Any#,106
Before Change
if debug:
print("processing [{}]".format(fpath))
f = open(fpath)
yaml_data = f.read()
f.close()
d = yaml_to_dict(yaml_data)
d["image"]["tag"] = seldon_core_version
d["engine"]["image"]["tag"] = seldon_core_version
d["executor"]["image"]["tag"] = seldon_core_version
with open(fpath, "w") as f:
f.write(dict_to_yaml(d))
print("updated {fpath}".format(**locals()))
def update_versions_txt(seldon_core_version, debug=False):
After Change
err, out = run_command(args, debug)
// pp(out)
// pp(err)
if err == None:
print("updated operator values yaml".format(**locals()))
else:
print("error updating operator values yaml".format(**locals()))
print(err)
def update_versions_txt(seldon_core_version, debug=False):
with open("version.txt", "w") as f:
f.write("{seldon_core_version}\n".format(**locals()))
print("Updated version.txt")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: SeldonIO/seldon-core
Commit Name: 9cdbed54fcb5ccab77166022a0799c163e2942ef
Time: 2020-04-14
Author: gsunner2000@gmail.com
File Name: release.py
Class Name:
Method Name: update_operator_values_yaml_file
Project Name: xinntao/BasicSR
Commit Name: bf3d4f719d6dd880ec09bf228e56bcf6a5929210
Time: 2018-12-28
Author: wxt1994@126.com
File Name: codes/models/SR_model.py
Class Name: SRModel
Method Name: print_network
Project Name: cve-search/cve-search
Commit Name: 0f2d4db89845b9fe748bb8df19c166ebc937c930
Time: 2020-08-11
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_json.py
Class Name: CVEDownloads
Method Name: download_site