d0bfaa2292ccc5acd63c2374f03a6ef92bfd851c,QUANTAXIS/QAFetch/QATdx.py,,select_best_ip,#,54

Before Change


    data = [ping(x) for x in listx]
    QA_util_log_info("===The BEST SERVER is :  %s ===" %
                     (listx[data.index(min(data))]))
    return listx[data.index(min(data))]


best_ip = select_best_ip()

After Change



    QA_util_log_info("=== The BEST SERVER ===\n stock_ip {} future_ip {}".format(
        best_stock_ip, best_future_ip))
    return {"stock": best_stock_ip, "future": best_future_ip}


best_ip = select_best_ip()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: d0bfaa2292ccc5acd63c2374f03a6ef92bfd851c
Time: 2017-12-09
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: select_best_ip


Project Name: estnltk/estnltk
Commit Name: fc94e852a9c55b50d0d2b25cfc74a6916b7be09e
Time: 2015-08-18
Author: tpetmanson@gmail.com
File Name: estnltk/database/database.py
Class Name: Database
Method Name: insert


Project Name: allenai/allennlp
Commit Name: 92083a3323755ba796ebcbfd5ae372c73768ea1f
Time: 2017-08-03
Author: mattg@allenai.org
File Name: allennlp/models/bidaf.py
Class Name: BidirectionalAttentionFlow
Method Name: predict_span


Project Name: IndicoDataSolutions/finetune
Commit Name: afef07922d8a5070e1afd54ee53b210c6b3ec527
Time: 2020-10-15
Author: benlt@hotmail.co.uk
File Name: finetune/target_models/sequence_labeling.py
Class Name: SequenceLabeler
Method Name: _predict