2c68ec2efddd1dde5edb192a701a1b1966ae4d98,dino/rest/resources/base.py,RoomNameBaseResource,join,#RoomNameBaseResource#Any#Any#,86
Before Change
def join(self, user_id, room_id):
session_ids = self.env.db.get_sids_for_user(user_id)
if len(session_ids) == 0:
logger.warning("no sessions found for user {}, can not join room {}".format(user_id, room_id))
return
if len(session_ids) > 1:
logger.warning("multiple session ids found for user {}, will make all join".format(user_id))
user_name = utils.get_user_name_for(user_id)
// need to find the correct node the user is on
self.user_manager.join_room(user_id, user_name, room_id, session_ids, self.namespace)
After Change
self.user_manager.room_created(user_id, user_name, room_id, session_ids, self.namespace)
def join(self, user_id, room_id):
session_ids , user_name = self._prepare_session_ids(user_id, room_id)
// need to find the correct node the user is on
self.user_manager.join_room(user_id, user_name, room_id, session_ids, self.namespace)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: thenetcircle/dino
Commit Name: 2c68ec2efddd1dde5edb192a701a1b1966ae4d98
Time: 2021-03-16
Author: oscar.eriks@gmail.com
File Name: dino/rest/resources/base.py
Class Name: RoomNameBaseResource
Method Name: join
Project Name: Qiskit/qiskit-aqua
Commit Name: 500d9c3d7bd1fac6cdc376100d52fca608d6a765
Time: 2019-07-17
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/algorithms/adaptive/vqe/vqe.py
Class Name: VQE
Method Name: _run
Project Name: victoresque/pytorch-template
Commit Name: 1517f6e321aee8e78aac0133e9d05cfcef0b42b0
Time: 2018-10-16
Author: sunq0313@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: __init__