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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

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: analysiscenter/batchflow
Commit Name: 11c6bf1dbd051d087519ff771b39dac600c0d96d
Time: 2019-07-29
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: head


Project Name: reinforceio/tensorforce
Commit Name: 980fe014b6215730ac4fdfa451b067e6fb44e622
Time: 2020-08-13
Author: alexkuhnle@t-online.de
File Name: tensorforce/agents/dpg.py
Class Name: DeterministicPolicyGradient
Method Name: __init__