e5b6566d28bd0215588f5b47d2cf80867d07b65d,python/ray/serve/utils.py,,block_until_http_ready,#Any#Any#Any#,90
Before Change
backoff_time_s *= 2
retries -= 1
if retries == 0:
raise Exception(
"HTTP proxy not ready after {} retries.".format(num_retries))
def get_random_letters(length=6):
return "".join(random.choices(string.ascii_letters, k=length))
After Change
except Exception:
pass
if 0 < timeout < time.time() - start_time:
raise TimeoutError(
"HTTP proxy not ready after {} seconds.".format(timeout))
time.sleep(backoff_time_s)
def get_random_letters(length=6):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: ray-project/ray
Commit Name: e5b6566d28bd0215588f5b47d2cf80867d07b65d
Time: 2020-05-29
Author: krfricke@users.noreply.github.com
File Name: python/ray/serve/utils.py
Class Name:
Method Name: block_until_http_ready
Project Name: deepmind/sonnet
Commit Name: 869b558268f198de90822e4ea17182dc74b78213
Time: 2017-11-09
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv2D
Method Name: _build
Project Name: deepmind/sonnet
Commit Name: dc09af160f9f04c13fd0764b2712176b83538182
Time: 2017-11-09
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: SeparableConv2D
Method Name: __init__