2708ccddd59bc7be358dc8ae8297dce26f545741,grid/websocket_client.py,WebsocketGridClient,models,#WebsocketGridClient#Any#,209

Before Change



    @property
    def models(self, N: int = 1):
        return json.loads(self._send_get("models/", N=N))["models"]

    def delete_model(self, model_id):
        result = json.loads(
            self._send_post(

After Change



    @property
    def models(self, N: int = 1):
        self.ws.send(json.dumps({"type": "list-models"}))
        response = json.loads(self.ws.recv())
        return response["models"]

    def delete_model(self, model_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: OpenMined/Grid
Commit Name: 2708ccddd59bc7be358dc8ae8297dce26f545741
Time: 2019-10-04
Author: ionesiojr@gmail.com
File Name: grid/websocket_client.py
Class Name: WebsocketGridClient
Method Name: models


Project Name: OpenMined/Grid
Commit Name: 2708ccddd59bc7be358dc8ae8297dce26f545741
Time: 2019-10-04
Author: ionesiojr@gmail.com
File Name: grid/websocket_client.py
Class Name: WebsocketGridClient
Method Name: run_remote_inference


Project Name: thenetcircle/dino
Commit Name: da1185bfed8fd88d27790e5d13e44900865e15ca
Time: 2017-05-26
Author: oscar.eriks@gmail.com
File Name: dino/hooks/message.py
Class Name: OnMessageHooks
Method Name: do_process


Project Name: thenetcircle/dino
Commit Name: 8bdeda7f5f3c0838c759002c39a9d254913a7657
Time: 2016-11-11
Author: oscar.eriks@gmail.com
File Name: dino/api.py
Class Name:
Method Name: on_invite


Project Name: testerSunshine/12306
Commit Name: ccde952432d5dd1f25f46c2ff01a8ff5ded52cf8
Time: 2019-04-03
Author: 931128603@qq.com
File Name: init/login.py
Class Name: GoLogin
Method Name: auth