36e46ed923ae809e50bfeaca1628e834028616e5,python/ray/autoscaler/_private/command_runner.py,KubernetesCommandRunner,run_rsync_down,#KubernetesCommandRunner#Any#Any#Any#,220
Before Change
])
def run_rsync_down(self, source, target, options=None):
if source.startswith("~"):
source = self.home + source[1:]
try:
flags = "-aqz" if is_rsync_silent() else "-avz"
self.process_runner.check_call([
KUBECTL_RSYNC,
After Change
self.log_prefix +
"rsync failed: "{}". Falling back to "kubectl cp"".format(e),
UserWarning)
if target.startswith("~"):
target = RAY_HOME + target[1:]
self.process_runner.check_call(self.kubectl + [
"cp", "{}/{}:{}".format(self.namespace, self.node_id, source),
target
])
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: ray-project/ray
Commit Name: 36e46ed923ae809e50bfeaca1628e834028616e5
Time: 2020-12-03
Author: ekhliang@gmail.com
File Name: python/ray/autoscaler/_private/command_runner.py
Class Name: KubernetesCommandRunner
Method Name: run_rsync_down
Project Name: microsoft/nni
Commit Name: 2aa825b4e1dba822624b497735c3bf0c0ffafd01
Time: 2019-06-25
Author: 871886504@qq.com
File Name: tools/nni_annotation/code_generator.py
Class Name: Transformer
Method Name: _visit_string
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 4ce9a9d078d41af1a960f0e5bf16e373f69d5117
Time: 2018-06-13
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/decoders/rnn_decoders.py
Class Name: RNNDecoderWithAttention
Method Name: _decode
Project Name: NVIDIA/OpenSeq2Seq
Commit Name: 4ce9a9d078d41af1a960f0e5bf16e373f69d5117
Time: 2018-06-13
Author: okuchaiev@nvidia.com
File Name: open_seq2seq/decoders/rnn_decoders.py
Class Name: BeamSearchRNNDecoderWithAttention
Method Name: _decode