bb0740422c7b0d26a474bc894f7b03f5adfb9227,src/sos/executor_utils.py,,prepare_env,#Any#Any#Any#Any#,127
Before Change
raise RuntimeError(f"Remote host {host} is not defined in CONFIG["hosts"]. Available ones are {CONFIG["hosts"].keys()}")
cfg = env.sos_dict["CONFIG"]["hosts"][host]
if "paths" in cfg:
env.sos_dict.quick_update(cfg["paths"] )
def statementMD5(stmts):
def _get_tokens(statement):
After Change
CONFIG["hosts"] = {"localhost": {"paths": {}}}
// expose `paths` of localhost
if host == "localhost":
if "localhost" in env.sos_dict["CONFIG"]:
if "hosts" not in env.sos_dict["CONFIG"] or env.sos_dict["CONFIG"]["localhost"] not in env.sos_dict["CONFIG"]["hosts"]:
raise RuntimeError(f"Localhost {env.sos_dict["CONFIG"]["localhost"]} is not defined in CONFIG["hosts"]")
env.sos_dict.set("__host__", env.sos_dict["CONFIG"]["localhost"])
else:
if "hosts" in env.sos_dict["CONFIG"]:
if "localhost" not in env.sos_dict["hosts"]:
raise RuntimeError("locahost is not defined in "hosts".")
elif "paths" not in env.sos_dict["CONFIG"]["hosts"]["localhost"]:
env.sos_dict["CONFIG"]["hosts"]["localhost"]["paths"] = {}
env.sos_dict.set("__host__", "localhost")
else:
if "hosts" not in env.sos_dict["CONFIG"] or host not in env.sos_dict["CONFIG"]["hosts"]:
raise RuntimeError(f"Remote host {host} is not defined in CONFIG["hosts"]. Available ones are {CONFIG["hosts"].keys()}")
env.sos_dict.set("__host__", host)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: vatlab/SoS
Commit Name: bb0740422c7b0d26a474bc894f7b03f5adfb9227
Time: 2019-03-11
Author: ben.bog@gmail.com
File Name: src/sos/executor_utils.py
Class Name:
Method Name: prepare_env
Project Name: Esri/raster-functions
Commit Name: 6b642c8e0fa07c971a89e4fb70bdf539b04042cc
Time: 2015-05-25
Author: rsumbaly@esri.com
File Name: functions/KeyMetadata.py
Class Name: KeyMetadata
Method Name: updateKeyMetadata
Project Name: MolSSI/QCEngine
Commit Name: 5ad4810a4947b9d31777d71fca40c3ed7131e84a
Time: 2018-05-09
Author: malorian@me.com
File Name: qcengine/psi_compute.py
Class Name:
Method Name: run_psi4