original_string: public function recode_legacy_state_answer($state) {
          $answer = $state->answer;
          $result = '';
          if ($answer) {
              $result = $this->get_mappingid('question_answer', $answer);
          }
          return $result;
      }
code: public function recode_legacy_state_answer($state) {
          $answer = $state->answer;
          $result = '';
          if ($answer) {
              $result = $this->get_mappingid('question_answer', $answer);
          }
          return $result;
      }
code_tokens: public function recode_legacy_state_answer ( $ state ) { $ answer = $ state -> answer ; $ result = '' ; if ( $ answer ) { $ result = $ this -> get_mappingid ( 'question_answer' , $ answer ) ; } return $ result ; }
docstring: Given one question_states record, return the answer
  recoded pointing to all the restored stuff for truefalse questions
  
  if not empty, answer is one question_answers->id
docstring_tokens: Given one question_states record return the answer recoded pointing to all the restored stuff for truefalse questions