81633e02b2c07bd6080e5639c04e4f73eb7d1cce,util/completion_service.py,CompletionService,submitTask,#CompletionService#Any#Any#,93

Before Change


            artifacts=artifacts,
            resources_needed=self.resources_needed)

        with model.get_db_provider(self.config) as db:
            db.add_experiment(experiment)
        
        import pdb
        pdb.set_trace()
        runner.submit_experiments(
            [experiment],

After Change


        cwd = os.path.dirname(os.path.realpath(__file__)),
        experiment_name = self.project_name + "_" + str(uuid.uuid4())   
         
        tmpdir = tempfile.gettempdir()
        args_file = os.path.join(tmpdir, experiment_name + "_args.pkl")
        
        artifacts = {
            "retval": {
                "mutable": True
            },
            "clientscript": {
                "mutable": False,
                "local": clientCodeFile
            }, 
            "args": {
                "mutable": False,
                "local": args_file
            }
        }

        with open(args_file, "w") as f:
            f.write(pickle.dumps(args))

        experiment = model.create_experiment(
            "completion_service_client.py",
            [],
            experiment_name=experiment_name,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: studioml/studio
Commit Name: 81633e02b2c07bd6080e5639c04e4f73eb7d1cce
Time: 2017-09-10
Author: peter.zhokhov@sentient.ai
File Name: util/completion_service.py
Class Name: CompletionService
Method Name: submitTask


Project Name: pyinstaller/pyinstaller
Commit Name: a5505747ac8b1f3891a63363a9b86af480452f77
Time: 2018-05-29
Author: itsayellow+dev@gmail.com
File Name: PyInstaller/building/osx.py
Class Name: BUNDLE
Method Name: assemble


Project Name: nilearn/nilearn
Commit Name: a0d70d5a13d771ba944b4cf2a1c32226eafa393b
Time: 2015-11-04
Author: alexandre.abadie@inria.fr
File Name: nilearn/tests/test_numpy_conversions.py
Class Name:
Method Name: test_csv_to_array


Project Name: pantsbuild/pants
Commit Name: 0f80c70a2bdaffbf4b1797aea481a62641701e93
Time: 2018-10-14
Author: benjyw@gmail.com
File Name: src/python/pants/releases/reversion.py
Class Name:
Method Name: reversion