original_string: public static function can_grade_user_in_course($userid, $courseid) {
          $ratecap = 'moodle/competency:competencygrade';
          return has_capability($ratecap, context_course::instance($courseid))
              || static::can_grade_user($userid);
      }
code: public static function can_grade_user_in_course($userid, $courseid) {
          $ratecap = 'moodle/competency:competencygrade';
          return has_capability($ratecap, context_course::instance($courseid))
              || static::can_grade_user($userid);
      }
code_tokens: public static function can_grade_user_in_course ( $ userid , $ courseid ) { $ ratecap = 'moodle/competency:competencygrade' ; return has_capability ( $ ratecap , context_course :: instance ( $ courseid ) ) || static :: can_grade_user ( $ userid ) ; }
docstring: Can the current user grade a user's user competency in a course?
  
  @param int $userid The user ID the competency belongs to.
  @param int $courseid The course ID.
  @return bool
docstring_tokens: Can the current user grade a user s user competency in a course?