f6ee86322866ed42040c28a2a8782c21138a2c4a,dino/hooks/status.py,OnStatusHooks,set_status,#Any#,14

Before Change


                OnStatusHooks.logger.info(info_message)
            except NoSuchUserException:
                OnStatusHooks.logger.error("no username found for op user {}".format(user_id))
            except Exception as e:
                OnStatusHooks.logger.error("exception while getting username for op {}: {}".format(user_id, str(e)))
                OnStatusHooks.logger.exception(e)
                environ.env.capture_exception(sys.exc_info())

        if status == "online":
            OnStatusHooks.set_online(user_id, user_name, image)

After Change


        status = activity.verb

        if user_name is None:
            try:
                user_name = utils.get_user_name_for(user_id)
            except NoSuchUserException:
                user_name = str(user_id)

        if not utils.is_valid_id(user_id):
            OnStatusHooks.logger.warning("got invalid user id for activity: {}".format(str(data)))
            return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: thenetcircle/dino
Commit Name: f6ee86322866ed42040c28a2a8782c21138a2c4a
Time: 2019-01-08
Author: oscar.eriks@gmail.com
File Name: dino/hooks/status.py
Class Name: OnStatusHooks
Method Name: set_status


Project Name: mlflow/mlflow
Commit Name: e2f830e34ff5ce508d4bcddf6e251a0da7654fbd
Time: 2018-09-25
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/mleap.py
Class Name:
Method Name: add_to_model


Project Name: eth-cscs/reframe
Commit Name: 24b605e8ec48b9b67e507ca959eaed4ff4afc6a6
Time: 2018-02-14
Author: karakasis@cscs.ch
File Name: reframe/frontend/executors/policies.py
Class Name: AsynchronousExecutionPolicy
Method Name: run_check