82f9c7014e2d0acd3e3869066f5dc3142ec9e7a7,python/ray/autoscaler/_private/command_runner.py,KubernetesCommandRunner,_home,#KubernetesCommandRunner#,250
Before Change
"exec", "-it", self.node_id, "--", "printenv", "HOME"
]
joined_cmd = " ".join(cmd)
raw_out = self.process_runner.check_output(joined_cmd, shell=True)
self._home_cached = raw_out.decode().strip("\n\r")
return self._home_cached
class SSHOptions:
After Change
@property
def _home(self):
if self._home_cached is not None:
return self._home_cached
for _ in range(MAX_HOME_RETRIES - 1):
try:
self._home_cached = self._try_to_get_home()
return self._home_cached
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: ray-project/ray
Commit Name: 82f9c7014e2d0acd3e3869066f5dc3142ec9e7a7
Time: 2020-12-17
Author: 62982571+Gekho457@users.noreply.github.com
File Name: python/ray/autoscaler/_private/command_runner.py
Class Name: KubernetesCommandRunner
Method Name: _home
Project Name: quiltdata/quilt
Commit Name: 477137d143d4ac140291b44a1410a2e0b27e2b91
Time: 2018-01-05
Author: aeon.descriptor@gmail.com
File Name: compiler/quilt/test/test_cli.py
Class Name: TestCLI
Method Name: execute
Project Name: deepgram/kur
Commit Name: c10177e717a57c5db8b0e8ab7efa07051e77c4be
Time: 2016-12-05
Author: ajsyp@syptech.net
File Name: setup.py
Class Name:
Method Name: get_version