1c22420943f1bcf841c5ee1f3efe929cd5dd385e,QUANTAXIS/QAMarket/QAOrderHandler.py,QA_OrderHandler,run,#QA_OrderHandler#Any#,93

Before Change


                try:
                    // 做一些容错处理
                    res = [event.broker[i].query_orders(
                        event.account_cookie[i], "") for i in range(len(event.account_cookie))]
                    res = pd.concat(res, axis=0) if len(
                        res) > 0 else None

After Change


            //         result = event.broker.query_deal
            //         time.sleep(1)
            if self.if_start_orderquery:
                res = [self.monitor[account].query_orders(
                    account.account_cookie, "filled") for account in list(self.monitor.keys())]

                try:
                    //res=[pd.DataFrame() if not isinstance(item,pd.DataFrame) else item for item in res]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1c22420943f1bcf841c5ee1f3efe929cd5dd385e
Time: 2018-08-18
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAMarket/QAOrderHandler.py
Class Name: QA_OrderHandler
Method Name: run


Project Name: ysig/GraKeL
Commit Name: 423292682b501364c201867370223545c4939a47
Time: 2018-01-29
Author: y.siglidis@gmail.com
File Name: grakel/graph.py
Class Name: graph
Method Name: convert_labels


Project Name: flow-project/flow
Commit Name: 21e45c08bf3a6407025f2507532d1493c6eb9381
Time: 2017-10-29
Author: akreidieh@gmail.com
File Name: flow/core/generator.py
Class Name: Generator
Method Name: make_routes