da1ea08d080269f4099a2bbbe704f985219904ea,fonduer/utils/udf.py,UDFRunner,apply_st,#UDFRunner#Any#Any#,75

Before Change


        for x in xs:
            if self.pb is not None:
                self.pb.update(1)
            all_sentences = [y for y in udf.apply(x, **kwargs)]
            udf.session.add_all(all_sentences)

        // Commit session and close progress bar if applicable
        udf.session.commit()

After Change


        for x in xs:
            if self.pb is not None:
                self.pb.update(1)
            udf.session.add_all(y for y in udf.apply(x, **kwargs))

        // Commit session and close progress bar if applicable
        udf.session.commit()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HazyResearch/fonduer
Commit Name: da1ea08d080269f4099a2bbbe704f985219904ea
Time: 2018-08-23
Author: jrausch@inf.ethz.ch
File Name: fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_st


Project Name: HazyResearch/fonduer
Commit Name: a6622f576a1db1a561b313e02f43a554c5eaf1de
Time: 2018-08-22
Author: jrausch@inf.ethz.ch
File Name: fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_st


Project Name: OpenMined/Grid
Commit Name: fa6bd25500ef229d03102aa49d71b969d64f1f09
Time: 2019-09-10
Author: mariannelinharesm@gmail.com
File Name: app/websocket/app/main/persistence/utils.py
Class Name:
Method Name: snapshot