original_string: public function get_summary_after_try($tablerow, $slot) {
          $qa = $this->get_question_attempt($tablerow->usageid, $slot);
          if (!($qa->get_question() instanceof question_manually_gradable)) {
              // No responses, and we cannot call summarise_response below.
              return null;
          }
          $submissionsteps = $qa->get_steps_with_submitted_response_iterator();
          $step = $submissionsteps[$tablerow->try];
          if ($step === null) {
              return null;
          }
          $qtdata = $step->get_qt_data();
          return $qa->get_question()->summarise_response($qtdata);
      }
code: public function get_summary_after_try($tablerow, $slot) {
          $qa = $this->get_question_attempt($tablerow->usageid, $slot);
          if (!($qa->get_question() instanceof question_manually_gradable)) {
              // No responses, and we cannot call summarise_response below.
              return null;
          }
          $submissionsteps = $qa->get_steps_with_submitted_response_iterator();
          $step = $submissionsteps[$tablerow->try];
          if ($step === null) {
              return null;
          }
          $qtdata = $step->get_qt_data();
          return $qa->get_question()->summarise_response($qtdata);
      }
code_tokens: public function get_summary_after_try ( $ tablerow , $ slot ) { $ qa = $ this -> get_question_attempt ( $ tablerow -> usageid , $ slot ) ; if ( ! ( $ qa -> get_question ( ) instanceof question_manually_gradable ) ) { // No responses, and we cannot call summarise_response below. return null ; } $ submissionsteps = $ qa -> get_steps_with_submitted_response_iterator ( ) ; $ step = $ submissionsteps [ $ tablerow -> try ] ; if ( $ step === null ) { return null ; } $ qtdata = $ step -> get_qt_data ( ) ; return $ qa -> get_question ( ) -> summarise_response ( $ qtdata ) ; }
docstring: Get the summary of the response after the try.
  
  @param object $tablerow row data
  @param int $slot Slot number.
  @return string summary for the question after this try.
docstring_tokens: Get the summary of the response after the try .