a4d548941e83be736cd9795be397dc0bba7c5dbb,monkeylearn/classification.py,Classification,deploy,#Classification#Any#Any#,127

Before Change


        return MonkeyLearnResponse(response.json()["result"], [response])

    def deploy(self, module_id, sleep_if_throttled=True):
        url = self.endpoint + module_id + "/deploy/"
        response = self.make_request(url, "POST", sleep_if_throttled=sleep_if_throttled)
        self.handle_errors(response)
        return MonkeyLearnResponse(response.json()["result"], [response])

    def delete(self, module_id, sleep_if_throttled=True):
        url = self.endpoint + module_id + "/"
        response = self.make_request(url, "DELETE", sleep_if_throttled=sleep_if_throttled)

After Change


        response = self.make_request("PATCH", url, data, retry_if_throttled=retry_if_throttled)
        return MonkeyLearnResponse(response)

    def deploy(self, model_id, retry_if_throttled=True):
        url = self.get_detail_url(model_id, action="deploy")
        response = self.make_request("POST", url, retry_if_throttled=retry_if_throttled)
        return MonkeyLearnResponse(response)

    def delete(self, model_id, retry_if_throttled=True):
        url = self.get_detail_url(model_id)
        response = self.make_request("DELETE", url, retry_if_throttled=retry_if_throttled)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: monkeylearn/monkeylearn-python
Commit Name: a4d548941e83be736cd9795be397dc0bba7c5dbb
Time: 2018-05-28
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/classification.py
Class Name: Classification
Method Name: deploy


Project Name: monkeylearn/monkeylearn-python
Commit Name: a4d548941e83be736cd9795be397dc0bba7c5dbb
Time: 2018-05-28
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/classification.py
Class Name: Classification
Method Name: detail


Project Name: monkeylearn/monkeylearn-python
Commit Name: a4d548941e83be736cd9795be397dc0bba7c5dbb
Time: 2018-05-28
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/classification.py
Class Name: Classification
Method Name: delete