original_string: public function count_response($actualresponse, $fraction, $try) {
          if (!isset($this->actualresponses[$actualresponse])) {
              if ($fraction === null) {
                  $fraction = $this->fraction;
              }
              $this->add_response($actualresponse, $fraction);
          }
          $this->get_response($actualresponse)->increment_count($try);
      }
code: public function count_response($actualresponse, $fraction, $try) {
          if (!isset($this->actualresponses[$actualresponse])) {
              if ($fraction === null) {
                  $fraction = $this->fraction;
              }
              $this->add_response($actualresponse, $fraction);
          }
          $this->get_response($actualresponse)->increment_count($try);
      }
code_tokens: public function count_response ( $ actualresponse , $ fraction , $ try ) { if ( ! isset ( $ this -> actualresponses [ $ actualresponse ] ) ) { if ( $ fraction === null ) { $ fraction = $ this -> fraction ; } $ this -> add_response ( $ actualresponse , $ fraction ) ; } $ this -> get_response ( $ actualresponse ) -> increment_count ( $ try ) ; }
docstring: Keep a count of a response to this question sub part that falls within this class.
  
  @param string     $actualresponse
  @param float|null $fraction
  @param int        $try
  @return \core_question\statistics\responses\analysis_for_actual_response
docstring_tokens: Keep a count of a response to this question sub part that falls within this class .