original_string: public function replace_loaded_question_attempt_info($slot, $qa) {
          $this->check_slot($slot);
          $this->questionattempts[$slot] = $qa;
      }
code: public function replace_loaded_question_attempt_info($slot, $qa) {
          $this->check_slot($slot);
          $this->questionattempts[$slot] = $qa;
      }
code_tokens: public function replace_loaded_question_attempt_info ( $ slot , $ qa ) { $ this -> check_slot ( $ slot ) ; $ this -> questionattempts [ $ slot ] = $ qa ; }
docstring: Replace a particular question_attempt with a different one.
  
  For internal use only. Used when reloading the state of a question from the
  database.
  
  @param array $records Raw records loaded from the database.
  @param int $questionattemptid The id of the question_attempt to extract.
  @return question_attempt The newly constructed question_attempt_step.
docstring_tokens: Replace a particular question_attempt with a different one .