ed49ea2188b8e8972a1a4a723635c57b48b5dc09,dino/db/rdbms/handler.py,DatabaseRdbms,room_contains,#DatabaseRdbms#Any#Any#,359

Before Change


        return private_room_ids

    def room_contains(self, room_id: str, user_id: str) -> bool:
        try:
            if self.channel_for_room(room_id) is None:
                raise NoSuchRoomException(room_id)
        except NoChannelFoundException:
            raise NoSuchRoomException(room_id)

        return room_id in self.rooms_for_user(user_id)

    @with_session
    def remove_current_rooms_for_user(self, user_id: str, session=None) -> None:

After Change


        return private_room_ids

    def room_contains(self, room_id: str, user_id: str) -> bool:
        self.get_room_name(room_id)
        self.channel_for_room(room_id)
        return room_id in self.rooms_for_user(user_id)

    @with_session
    def remove_current_rooms_for_user(self, user_id: str, session=None) -> None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: thenetcircle/dino
Commit Name: ed49ea2188b8e8972a1a4a723635c57b48b5dc09
Time: 2016-11-25
Author: oscar.eriks@gmail.com
File Name: dino/db/rdbms/handler.py
Class Name: DatabaseRdbms
Method Name: room_contains


Project Name: thenetcircle/dino
Commit Name: 5341a9e5947ef084513d9dc00b76d4a5c95cb65e
Time: 2016-11-24
Author: oscar.eriks@gmail.com
File Name: dino/db/redis.py
Class Name: DatabaseRedis
Method Name: get_all_acls_room


Project Name: thenetcircle/dino
Commit Name: 5341a9e5947ef084513d9dc00b76d4a5c95cb65e
Time: 2016-11-24
Author: oscar.eriks@gmail.com
File Name: dino/db/redis.py
Class Name: DatabaseRedis
Method Name: get_acls_in_room_for_action