original_string: public function get_dategraded() {
          //TODO: HACK - create new fields (MDL-31379)
          if (is_null($this->finalgrade) and is_null($this->feedback)) {
              return null; // no grade == no date
          } else if ($this->overridden) {
              return $this->overridden;
          } else {
              return $this->timemodified;
          }
      }
code: public function get_dategraded() {
          //TODO: HACK - create new fields (MDL-31379)
          if (is_null($this->finalgrade) and is_null($this->feedback)) {
              return null; // no grade == no date
          } else if ($this->overridden) {
              return $this->overridden;
          } else {
              return $this->timemodified;
          }
      }
code_tokens: public function get_dategraded ( ) { //TODO: HACK - create new fields (MDL-31379) if ( is_null ( $ this -> finalgrade ) and is_null ( $ this -> feedback ) ) { return null ; // no grade == no date } else if ( $ this -> overridden ) { return $ this -> overridden ; } else { return $ this -> timemodified ; } }
docstring: Returns timestamp when last graded, null if no grade present
  
  @return int
docstring_tokens: Returns timestamp when last graded null if no grade present