f3384d39d6eac0b43452fe4b8b96795e37f14b06,QUANTAXIS/QAARP/QAAccount.py,QA_Account,QA_account_update,#QA_Account#Any#,54

Before Change


                                    new_amount=new_amount-self.portfolio[i][3]
                                    print(new_amount)
                                    self.portfolio.pop(i)
                                    if new_amount>0:
                                        continue
                                    else:
                                        break
                                elif new_amount<self.portfolio[i][3]:
                                    self.portfolio[i][3]=self.portfolio[i][3]-new_amount
                                    new_amount=0
                                    break 

After Change


                                    new_amount=0
                                    pop_list.append(i)
                print(pop_list)
                pop_list.sort()
                pop_list.reverse()
                for id in pop_list:
                    self.portfolio.pop(id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: f3384d39d6eac0b43452fe4b8b96795e37f14b06
Time: 2017-06-06
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAAccount.py
Class Name: QA_Account
Method Name: QA_account_update


Project Name: kmike/pymorphy2
Commit Name: 837b2efde71507b09033c3ea6f2502e2306f8eef
Time: 2013-02-18
Author: kmike84@gmail.com
File Name: pymorphy2/analyzer.py
Class Name: MorphAnalyzer
Method Name: _parse_as_word_with_known_suffix


Project Name: nipy/dipy
Commit Name: 61714567a844ab36f14385061b60ae1a08def1b5
Time: 2015-11-08
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dsi.py
Class Name:
Method Name: create_qtable