d262a0d3c567cf0543760bd238f67411acb697c2,QUANTAXIS/QAFetch/QAhuobi.py,,QA_fetch_huobi_symbols,#,99
Before Change
print("Retry get_exchange_info //{}".format(retries - 1))
print(e.error_code)
print(e.error_message)
time.sleep(0.5)
// 转换成DICT,mongodb不接受专有类型
symbol_list = []
for symbol in exchange_info.symbol_list:
After Change
datas = list()
while (retries != 0):
try:
req = requests.get(url, timeout=TIMEOUT)
retries = 0
except (ConnectTimeout, ConnectionError, SSLError, ReadTimeout):
retries = retries + 1
if (retries % 6 == 0):
print(ILOVECHINA)
print("Retry get_exchange_info //{}".format(retries - 1))
time.sleep(0.5)
if (retries == 0):
msg_dict = json.loads(req.content)
if (("status" in msg_dict) and (msg_dict["status"] == "ok") and ("data" in msg_dict)):
if len(msg_dict["data"]) == 0:
return []
for symbol in msg_dict["data"]:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: d262a0d3c567cf0543760bd238f67411acb697c2
Time: 2020-02-26
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAhuobi.py
Class Name:
Method Name: QA_fetch_huobi_symbols
Project Name: comic/grand-challenge.org
Commit Name: e13d964b393f06324ccad2648076431e29da0620
Time: 2019-04-02
Author: code@jmsmkn.com
File Name: app/tests/container_exec_tests/test_services.py
Class Name:
Method Name: test_service_start_cleanup
Project Name: ray-project/ray
Commit Name: ada58abcd92cd7b38cf1c0ee1525d52e388558f9
Time: 2020-10-02
Author: swang@cs.berkeley.edu
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: test_spill_remote_object
Project Name: deepfakes/faceswap
Commit Name: 8bd1389b1437ef490da6d9834d90f6f995d17e10
Time: 2019-06-27
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/convert.py
Class Name: Convert
Method Name: convert_images