original_string: protected function is_graded($userid) {
          $grade = $this->get_user_grade($userid, false);
          if ($grade) {
              return ($grade->grade !== null && $grade->grade >= 0);
          }
          return false;
      }
code: protected function is_graded($userid) {
          $grade = $this->get_user_grade($userid, false);
          if ($grade) {
              return ($grade->grade !== null && $grade->grade >= 0);
          }
          return false;
      }
code_tokens: protected function is_graded ( $ userid ) { $ grade = $ this -> get_user_grade ( $ userid , false ) ; if ( $ grade ) { return ( $ grade -> grade !== null && $ grade -> grade >= 0 ) ; } return false ; }
docstring: See if this assignment has a grade yet.
  
  @param int $userid
  @return bool
docstring_tokens: See if this assignment has a grade yet .