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
else:
//更新账户
pop_list=[]
while new_amount>0:
if len(self.portfolio)>1:
for i in range(0,len(self.portfolio)):
if new_code in self.portfolio[i]:
if new_amount>self.portfolio[i][3]:
new_amount=new_amount-self.portfolio[i][3]
print(new_amount)
pop_list.append(i)
elif new_amount<self.portfolio[i][3]:
self.portfolio[i][3]=self.portfolio[i][3]-new_amount
new_amount=0
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: ilastik/ilastik
Commit Name: 71a7e5b084e11d10e03fe33c0fe9824ecbab9d3e
Time: 2014-07-10
Author: webmaster@burgerdev.de
File Name: ilastik/widgets/stackFileSelectionWidget.py
Class Name: StackFileSelectionWidget
Method Name: _getGlobString
Project Name: rusty1s/pytorch_geometric
Commit Name: 492d3a52c0a0f92c9cfe3fa8c5e207cb2d34fc45
Time: 2017-11-06
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora.py
Class Name:
Method Name: