89d600dbc19427e71b3aaa4e3ce250f378404d9b,QUANTAXIS/QAARP/QAUser.py,QA_User,register_account,#QA_User#Any#,77

Before Change


        if len(self.portfolio_list.keys()) < 1:
            po = self.new_portfolio()
            self.get_portfolio(po).add_account(account)
            return (po, account.account_cookie)


if __name__ == "__main__":
    user = QA_User()

After Change


        if len(self.portfolio_list.keys()) < 1:
            po = self.new_portfolio()
        else:
            po = self.portfolio_list.values()[0]
        po.add_account(account)
        return (po, account)


if __name__ == "__main__":
    user = QA_User()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 89d600dbc19427e71b3aaa4e3ce250f378404d9b
Time: 2018-01-26
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAUser.py
Class Name: QA_User
Method Name: register_account


Project Name: senarvi/theanolm
Commit Name: 0a0688c0fd83165b428d1eafb1b6fb19e1674e29
Time: 2015-10-06
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/theanolm/dictionary.py
Class Name: WordClass
Method Name: sample


Project Name: ilastik/ilastik
Commit Name: 3cf192390ee223f44c19c5d750cb6f487eaa7090
Time: 2012-07-30
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/pixelClassification/pixelClassificationSerializer.py
Class Name: PixelClassificationSerializer
Method Name: isDirty


Project Name: OpenMined/PySyft
Commit Name: 489972a9e467eb20a7ebbe2b5e37c63b3d5bb2aa
Time: 2020-10-19
Author: murarugeorgec@gmail.com
File Name: syft/frameworks/torch/tensors/interpreters/additive_shared.py
Class Name: AdditiveSharingTensor
Method Name: get_garbage_collect_data