3c877e3dd3fb64d737a4b9782c6d4549b00e26d1,src/sos/hosts.py,RemoteHost,run_command,#RemoteHost#Any#Any#Any#,633
Before Change
if realtime:
import pexpect
try:
child = pexpect.spawn(cmd, timeout=None)
while True:
try:
child.expect("\n")
if env.verbosity > 0:
After Change
env.logger.debug("Executing command ``{}``".format(cmd))
if realtime:
from utils import pexpect
return pexpect_run(cmd)
elif wait_for_task or sys.platform == "win32":
// keep proc persistent to avoid a subprocess is still running warning.
return subprocess.Popen(cmd, shell=True, **kwargs)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: vatlab/SoS
Commit Name: 3c877e3dd3fb64d737a4b9782c6d4549b00e26d1
Time: 2017-08-01
Author: BPeng1@BCBW31517465254.mdanderson.edu
File Name: src/sos/hosts.py
Class Name: RemoteHost
Method Name: run_command
Project Name: facebookresearch/ParlAI
Commit Name: 65115d2dd8a8e2f2097b371228d7f7324a19ed87
Time: 2019-07-17
Author: roller@fb.com
File Name: parlai/scripts/multiprocessing_train.py
Class Name:
Method Name: main
Project Name: vatlab/SoS
Commit Name: 3c877e3dd3fb64d737a4b9782c6d4549b00e26d1
Time: 2017-08-01
Author: BPeng1@BCBW31517465254.mdanderson.edu
File Name: src/sos/hosts.py
Class Name: LocalHost
Method Name: run_command
Project Name: pantsbuild/pants
Commit Name: fd1456ac36e0a1ebfb800c9593f1540858ca7bea
Time: 2015-07-17
Author: kwilson@twopensource.com
File Name: src/python/pants/java/nailgun_executor.py
Class Name: NailgunExecutor
Method Name: _spawn_nailgun_server