original_string: protected function get_response_counts($response) {
          $found = 0;
          $included = 0;
  
          if (isset($response->grouped->solr_filegroupingid->ngroups)) {
              // Get the number of results for file grouped queries.
              $found = $response->grouped->solr_filegroupingid->ngroups;
              $included = count($response->grouped->solr_filegroupingid->groups);
          } else if (isset($response->response->numFound)) {
              // Get the number of results for standard queries.
              $found = $response->response->numFound;
              if ($found > 0 && is_array($response->response->docs)) {
                  $included = count($response->response->docs);
              }
          }
  
          return array($included, $found);
      }
code: protected function get_response_counts($response) {
          $found = 0;
          $included = 0;
  
          if (isset($response->grouped->solr_filegroupingid->ngroups)) {
              // Get the number of results for file grouped queries.
              $found = $response->grouped->solr_filegroupingid->ngroups;
              $included = count($response->grouped->solr_filegroupingid->groups);
          } else if (isset($response->response->numFound)) {
              // Get the number of results for standard queries.
              $found = $response->response->numFound;
              if ($found > 0 && is_array($response->response->docs)) {
                  $included = count($response->response->docs);
              }
          }
  
          return array($included, $found);
      }
code_tokens: protected function get_response_counts ( $ response ) { $ found = 0 ; $ included = 0 ; if ( isset ( $ response -> grouped -> solr_filegroupingid -> ngroups ) ) { // Get the number of results for file grouped queries. $ found = $ response -> grouped -> solr_filegroupingid -> ngroups ; $ included = count ( $ response -> grouped -> solr_filegroupingid -> groups ) ; } else if ( isset ( $ response -> response -> numFound ) ) { // Get the number of results for standard queries. $ found = $ response -> response -> numFound ; if ( $ found > 0 && is_array ( $ response -> response -> docs ) ) { $ included = count ( $ response -> response -> docs ) ; } } return array ( $ included , $ found ) ; }
docstring: Returns count information for a provided response. Will return 0, 0 for invalid or empty responses.
  
  @param SolrDocument $response The response document from Solr.
  @return array A two part array. First how many response docs are in the response.
  Second, how many results are vailable in the engine.
docstring_tokens: Returns count information for a provided response . Will return 0 0 for invalid or empty responses .