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


            for symbol in msg_dict["data"]:
                // 只导入上架交易对
                if (symbol["state"] == "online"):
                    datas.append(symbol)

    return datas

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: ray-project/ray
Commit Name: 2e4e285ef079a07fa4f54269751040f5a176785a
Time: 2020-11-25
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: test_spill_objects_automatically


Project Name: AlexsLemonade/refinebio
Commit Name: 9e9356fd14e49fd1ab5949768385c5bf6657fa40
Time: 2019-09-13
Author: davidsmejia@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/feed_the_beast.py
Class Name: Command
Method Name: handle