c776afc9c31227c919b75a42f1b3922095ae1d53,perfzero/lib/cloud_manager.py,,run_command,#Any#Any#,32
Before Change
while exit_code is None:
exit_code = p.poll()
line = p.stdout.readline().decode("utf-8").strip()
if not line:
continue
if is_from_user:
logging.info(line)
else:
logging.debug(line)
stdout = stdout + line + "\n"
if exit_code and is_from_user:
sys.exit(exit_code)
After Change
Exception: raised when the command execution has non-zero exit code
_log = logging.info if is_from_user else logging.debug
_log("Executing command: {}".format(cmd))
p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, shell=True)
exit_code = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: tensorflow/benchmarks
Commit Name: c776afc9c31227c919b75a42f1b3922095ae1d53
Time: 2019-05-15
Author: ayushd@google.com
File Name: perfzero/lib/cloud_manager.py
Class Name:
Method Name: run_command
Project Name: tensorflow/models
Commit Name: 2d34259281a6251cbdc67103ce8a1310010b8ceb
Time: 2020-10-05
Author: dhr@google.com
File Name: orbit/controller.py
Class Name: Controller
Method Name: evaluate
Project Name: tensorflow/models
Commit Name: 2d34259281a6251cbdc67103ce8a1310010b8ceb
Time: 2020-10-05
Author: dhr@google.com
File Name: orbit/controller.py
Class Name: Controller
Method Name: train