original_string: public function restore_recode_legacy_answer($state, $qtype) {
          $restorer = $this->get_qtype_restorer($qtype);
          if ($restorer) {
              return $restorer->recode_legacy_state_answer($state);
          } else {
              return $state->answer;
          }
      }
code: public function restore_recode_legacy_answer($state, $qtype) {
          $restorer = $this->get_qtype_restorer($qtype);
          if ($restorer) {
              return $restorer->recode_legacy_state_answer($state);
          } else {
              return $state->answer;
          }
      }
code_tokens: public function restore_recode_legacy_answer ( $ state , $ qtype ) { $ restorer = $ this -> get_qtype_restorer ( $ qtype ) ; if ( $ restorer ) { return $ restorer -> recode_legacy_state_answer ( $ state ) ; } else { return $ state -> answer ; } }
docstring: Recode the legacy answer field.
  @param object $state the state to recode the answer of.
  @param string $qtype the question type.
docstring_tokens: Recode the legacy answer field .