bd4d167ff3514d28dbe44d9a728da3541905c951,dino/utils/__init__.py,,check_if_should_remove_room,#Any#Any#,438

Before Change


    room_name = get_room_name(room_id)
    channel_id = get_channel_for_room(room_id)

    if not environ.env.db.is_room_ephemeral(room_id) or not is_owner(room_id, user_id):
        return

    owners = get_owners_for_room(room_id)

After Change


    logger.info("checking whether to remove room %s or not" % room_id)

    if not environ.env.db.is_room_ephemeral(room_id):
        logger.info("room %s (%s) is not ephemeral, not considering removal" % (room_name, room_id))
        return

    owners = get_owners_for_room(room_id)
    users_in_room = get_users_in_room(room_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: thenetcircle/dino
Commit Name: bd4d167ff3514d28dbe44d9a728da3541905c951
Time: 2017-04-24
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: check_if_should_remove_room


Project Name: thenetcircle/dino
Commit Name: 5a59c956515f12ac18d7c121ec48e6ef971953be
Time: 2016-11-08
Author: oscar.eriks@gmail.com
File Name: dino/validation/request.py
Class Name: RequestValidator
Method Name: on_kick


Project Name: thenetcircle/dino
Commit Name: debd340be8bac0d4d2c677090bf57e7a2eaaf886
Time: 2016-10-31
Author: oscar.eriks@gmail.com
File Name: dino/validation/request.py
Class Name: RequestValidator
Method Name: on_set_acl