dcf574598f2e0ac2ea78de2b50738101f7ec987a,sos/sos_step.py,Base_Step_Executor,prepare_task,#Base_Step_Executor#,619

Before Change


            task_vars["__signature_vars__"], task_vars).sig_id

        job_file = os.path.join(os.path.expanduser("~"), ".sos", "tasks", task_id + ".def")
        with open(job_file, "wb") as jf:
            try:
                pickle.dump(param, jf)
            except Exception as e:
                env.logger.warning(e)
                raise

        return task_id

    def wait_for_results(self):
        results = self.pending_tasks([x for x in self.proc_results if isinstance(x, str)])

After Change


            task_vars["__signature_vars__"], task_vars).sig_id

        job_file = os.path.join(os.path.expanduser("~"), ".sos", "tasks", task_id + ".def")
        taskdef.save(job_file)
        return task_id

    def wait_for_results(self):
        results = self.pending_tasks([x for x in self.proc_results if isinstance(x, str)])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: dcf574598f2e0ac2ea78de2b50738101f7ec987a
Time: 2017-05-11
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name: Base_Step_Executor
Method Name: prepare_task


Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: save


Project Name: vatlab/SoS
Commit Name: 5456821a4abed83c2e7f57c0bdbf1af093cbddb9
Time: 2017-05-11
Author: ben.bog@gmail.com
File Name: sos/hosts.py
Class Name: LocalHost
Method Name: prepare_task


Project Name: stanfordnlp/stanza
Commit Name: 4afbe858d45d6be706a916c9cde243a092fe600c
Time: 2018-06-15
Author: qipeng@users.noreply.github.com
File Name: models/common/trainer.py
Class Name: Trainer
Method Name: save


Project Name: biolab/orange3
Commit Name: a9e5de3ef11fde8723ae6cc0f4faaeec5aa05cb7
Time: 2016-05-30
Author: anze.staric@gmail.com
File Name: Orange/canvas/report/owreport.py
Class Name: OWReport
Method Name: save_report


Project Name: HazyResearch/fonduer
Commit Name: c12f538d2d496f5e8f932abc1ee72a586b9ea855
Time: 2018-08-14
Author: senwu@cs.stanford.edu
File Name: fonduer/learning/disc_learning.py
Class Name: TFNoiseAwareModel
Method Name: save