d0bfaa2292ccc5acd63c2374f03a6ef92bfd851c,QUANTAXIS/QAFetch/QATdx.py,,select_best_ip,#,54
Before Change
def select_best_ip():
QA_util_log_info("Selecting the Best Server IP of TDX")
listx = ["218.75.126.9", "115.238.90.165",
"124.160.88.183", "60.12.136.250", "218.108.98.244", "218.108.47.69",
"14.17.75.71", "180.153.39.51"]
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
data_future = [ping(x, "future") for x in future_ip_list]
best_stock_ip = stock_ip_list[data_stock.index(min(data_stock))]
best_future_ip = future_ip_list[data_future.index(min(data_future))]
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}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 9a062c6473109dfdd545d1db84f62b5037c53128
Time: 2017-06-13
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/caffe_input_lib.py
Class Name: ModelParser
Method Name: get_outbound_layers
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 31f768dd2cd555649d2b0e494935cb37cf223142
Time: 2019-03-22
Author: datarian@againstthecurrent.ch
File Name: category_encoders/one_hot.py
Class Name: OneHotEncoder
Method Name: reverse_dummies