ced4357a7174cb02821b66cb67686a261cb1fa62,sos/hosts.py,RemoteHost,_receive_from_host,#RemoteHost#Any#,354
Before Change
try :
ret = subprocess.call(cmd, shell=True, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
if (ret != 0 ):
raise RuntimeError ( "Failed to copy {} from {}" .format(source, self.alias))
except Exception as e:
raise RuntimeError ("Failed to copy {} from {}: {}" .format(source, self.alias, e) )
After Change
for source in sorted (receiving.keys() ):
dest = receiving[source]
dest_dir = os.path.dirname(dest)
if dest_dir and not os.path.isdir(dest_dir):
try :
os.path.makedirs(dest_dir)
except Exception as e:
env.logger.error("Failed to create destination directory {}" .format(dest_dir))
if self.is_shared(dest):
env.logger.debug("Skip retrieving ``{}`` from shared file system" .format(dest))
else :
cmd = interpolate(self.receive_cmd, "${ }" , {"source" : source, "dest" : dest, "host" : self.address, "port" : self.port})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: vatlab/SoS
Commit Name: ced4357a7174cb02821b66cb67686a261cb1fa62
Time: 2017-06-05
Author: BPeng1@BCBW31517465254.mdanderson.edu
File Name: sos/hosts.py
Class Name: RemoteHost
Method Name: _receive_from_host
Project Name: pantsbuild/pants
Commit Name: bc58220f0ae6c31e6274cf6180804058b2308cec
Time: 2018-02-16
Author: benjyw@gmail.com
File Name: contrib/mypy/src/python/pants/contrib/mypy/tasks/mypy_task.py
Class Name: MypyTask
Method Name: _run_mypy
Project Name: mne-tools/mne-python
Commit Name: 1e9d40246e5c4273ed968926afa77890a242afb2
Time: 2018-09-12
Author: larson.eric.d@gmail.com
File Name: mne/commands/mne_make_scalp_surfaces.py
Class Name:
Method Name: _run
Project Name: vatlab/SoS
Commit Name: ced4357a7174cb02821b66cb67686a261cb1fa62
Time: 2017-06-05
Author: BPeng1@BCBW31517465254.mdanderson.edu
File Name: sos/hosts.py
Class Name: RemoteHost
Method Name: _receive_from_host