d0cdf3f0ee8e1623bc04c4a558b2b653c0e09de9,dino/storage/cassandra.py,CassandraStorage,users_in_room,#CassandraStorage#Any#,216
Before Change
self.session.execute(self.statements[StatementKeys.room_insert_user].bind((room_id, user_id, user_name)))
def users_in_room(self, room_id: str) -> list:
return self.session.execute(self.statements[StatementKeys.room_select_users].bind((room_id, )))
def get_all_rooms(self, user_id: str=None) -> dict:
return self.session.execute(self.statements[StatementKeys.rooms_select])
After Change
self._room_insert_user(room_id, room_name, user_id, user_name)
def users_in_room(self, room_id: str) -> list:
return self._room_select_users(room_id)
def get_all_rooms(self, user_id: str=None) -> dict:
if user_id is None:
return self._rooms_select()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: thenetcircle/dino
Commit Name: d0cdf3f0ee8e1623bc04c4a558b2b653c0e09de9
Time: 2016-10-06
Author: scorch@stink
File Name: dino/storage/cassandra.py
Class Name: CassandraStorage
Method Name: users_in_room
Project Name: thenetcircle/dino
Commit Name: d0cdf3f0ee8e1623bc04c4a558b2b653c0e09de9
Time: 2016-10-06
Author: scorch@stink
File Name: dino/storage/cassandra.py
Class Name: CassandraStorage
Method Name: get_owners
Project Name: thenetcircle/dino
Commit Name: d0cdf3f0ee8e1623bc04c4a558b2b653c0e09de9
Time: 2016-10-06
Author: scorch@stink
File Name: dino/storage/cassandra.py
Class Name: CassandraStorage
Method Name: get_room_name