f509a520f72375acc486c1d9d22c8a2ac9fa1e8b,dino/api.py,,on_message,#Any#Any#,60
Before Change
if from_room_id is not None and from_room_id == room_id:
del data["actor"]["url"]
if activity.object.url is None or len(activity.object.url.strip()) == 0:
activity.object.url = utils.get_channel_for_room(room_id)
activity.object.display_name = utils.get_channel_name(activity.object.url)
if "object" not in data or len(data["object"]) == 0:
data["object"] = {
"url": activity.object.url,
"displayName": activity.object.display_name
}
else:
data["object"]["url"] = activity.object.url
data["object"]["displayName"] = activity.object.display_name
if from_room_id is not None and len(from_room_id.strip()) > 0:
activity.provider.url = utils.get_channel_for_room(from_room_id)
activity.provider.display_name = utils.get_channel_name(activity.provider.url)
if "provider" not in data or len(data["provider"]) == 0:
After Change
del data["actor"]["url"]
channel_id = None
if activity.target.object_type != "room":
if hasattr(activity, "object") and hasattr(activity.object, "url"):
channel_id = activity.object.url
if channel_id is None or len(channel_id.strip()) == 0:
channel_id = utils.get_channel_for_room(room_id)
channel_name = utils.get_channel_name(channel_id)
if not hasattr(activity, "object"):
activity.object = DefObject(dict())
activity.object.url = channel_id
activity.object.display_name = channel_name
if "object" not in data or len(data["object"]) == 0:
data["object"] = {
"url": activity.object.url,
"displayName": activity.object.display_name
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: thenetcircle/dino
Commit Name: f509a520f72375acc486c1d9d22c8a2ac9fa1e8b
Time: 2016-12-26
Author: oscar.eriks@gmail.com
File Name: dino/api.py
Class Name:
Method Name: on_message
Project Name: bokeh/bokeh
Commit Name: 5f6b5d3851d0b719f401eafbfc569420405d1ef3
Time: 2016-08-16
Author: canavandl@gmail.com
File Name: bokeh/models/formatters.py
Class Name: FuncTickFormatter
Method Name: from_py_func
Project Name: reinforceio/tensorforce
Commit Name: 8836649a652dc59f19245d98c5e063cb4622e4a5
Time: 2019-10-24
Author: alexkuhnle@t-online.de
File Name: tensorforce/agents/ppo.py
Class Name: ProximalPolicyOptimization
Method Name: __init__