11ff3dd13572b33383bfff59717cfa71a44bb288,grid/ipfsapi/client.py,Client,pubsub_peers,#Client#Any#,776
Before Change
args = []
else:
args = [topic]
return self._client.request(
"/pubsub/peers", args, decoder="json", **kwargs)
def pubsub_pub(self, topic, payload, **kwargs):
args = (topic, payload)
return self._client.request(
After Change
args = []
else:
args = [topic]
response = self._client.request(
"/pubsub/peers", args, decoder="json", **kwargs)
if isinstance(response, dict):
// backward compatibility
return response["Strings"]
elif isinstance(response, list):
return response
elif isinstance(response, str):
return [response]
else:
return response
def pubsub_pub(self, topic, payload, **kwargs):
args = (topic, payload)
return self._client.request(
"/pubsub/pub", args, decoder="json", **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: OpenMined/Grid
Commit Name: 11ff3dd13572b33383bfff59717cfa71a44bb288
Time: 2018-03-19
Author: cthorey@xihelm.com
File Name: grid/ipfsapi/client.py
Class Name: Client
Method Name: pubsub_peers
Project Name: home-assistant/home-assistant
Commit Name: 2d4df42a6596d7004efa9d470a8b67bb046e8ae7
Time: 2016-10-07
Author: molobrakos@users.noreply.github.com
File Name: homeassistant/components/tellduslive.py
Class Name:
Method Name: request_sensors
Project Name: home-assistant/home-assistant
Commit Name: 2d4df42a6596d7004efa9d470a8b67bb046e8ae7
Time: 2016-10-07
Author: molobrakos@users.noreply.github.com
File Name: homeassistant/components/tellduslive.py
Class Name:
Method Name: request_switches