original_string: public function can_be_edited() {
          if ($this->canbeedited === null) {
              $this->canbeedited = !quiz_has_attempts($this->quizobj->get_quizid());
          }
          return $this->canbeedited;
      }
code: public function can_be_edited() {
          if ($this->canbeedited === null) {
              $this->canbeedited = !quiz_has_attempts($this->quizobj->get_quizid());
          }
          return $this->canbeedited;
      }
code_tokens: public function can_be_edited ( ) { if ( $ this -> canbeedited === null ) { $ this -> canbeedited = ! quiz_has_attempts ( $ this -> quizobj -> get_quizid ( ) ) ; } return $ this -> canbeedited ; }
docstring: Quizzes can only be edited if they have not been attempted.
  @return bool whether the quiz can be edited.
docstring_tokens: Quizzes can only be edited if they have not been attempted .