original_string: public function is_unanswered($nretakes) {
          global $DB, $USER;
          if (!$DB->count_records("lesson_attempts", array('pageid'=>$this->properties->id, 'userid'=>$USER->id, 'correct'=>1, 'retry'=>$nretakes))) {
              return true;
          }
          return false;
      }
code: public function is_unanswered($nretakes) {
          global $DB, $USER;
          if (!$DB->count_records("lesson_attempts", array('pageid'=>$this->properties->id, 'userid'=>$USER->id, 'correct'=>1, 'retry'=>$nretakes))) {
              return true;
          }
          return false;
      }
code_tokens: public function is_unanswered ( $ nretakes ) { global $ DB , $ USER ; if ( ! $ DB -> count_records ( "lesson_attempts" , array ( 'pageid' => $ this -> properties -> id , 'userid' => $ USER -> id , 'correct' => 1 , 'retry' => $ nretakes ) ) ) { return true ; } return false ; }
docstring: Checks to see if a page has been answered previously
  @param int $nretakes
  @return bool
docstring_tokens: Checks to see if a page has been answered previously