0b7e77d795a0df176ad79fa229dd1d55fef8e322,studio/http_provider.py,HTTPProvider,start_experiment,#HTTPProvider#Any#,132

Before Change


            key = experiment.key

        headers = self._get_headers()
        request = requests.post(self.url + "/api/start_experiment",
                                headers=headers,
                                data=json.dumps({"key": key})
                                )
        self._raise_detailed_error(request)
        experiment.time_started = time.time()

    def stop_experiment(self, experiment):
        if isinstance(experiment, six.string_types):

After Change


                                    data=json.dumps({"key": key})
                                    )
            self._raise_detailed_error(request)
        retry(post_request, sleep_time=10, logger=self.logger)

        if not isinstance(experiment, six.string_types):
            experiment.time_started = time.time()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: studioml/studio
Commit Name: 0b7e77d795a0df176ad79fa229dd1d55fef8e322
Time: 2017-12-01
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: start_experiment


Project Name: studioml/studio
Commit Name: 0b7e77d795a0df176ad79fa229dd1d55fef8e322
Time: 2017-12-01
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: stop_experiment


Project Name: studioml/studio
Commit Name: 70835cd9b5108c18f8333bb2bb26d442f0576acc
Time: 2017-11-09
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: add_experiment


Project Name: studioml/studio
Commit Name: 0b7e77d795a0df176ad79fa229dd1d55fef8e322
Time: 2017-12-01
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: finish_experiment


Project Name: studioml/studio
Commit Name: 2aa4873cddd525c4900f644bc70a97861b11d84b
Time: 2017-11-30
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: checkpoint_experiment


Project Name: studioml/studio
Commit Name: b05008351bbbc981d05114e4ace17f14e213821b
Time: 2017-11-10
Author: peter.zhokhov@sentient.ai
File Name: studio/http_provider.py
Class Name: HTTPProvider
Method Name: delete_experiment