original_string: protected function _getParametersCountToReplace($string)
      {
          $sprintfParameters = array('%s', '%1$s', '%2$s', '%3$s', '%4$s', '%5$s', '%6$s', '%7$s', '%8$s', '%9$s');
          $count = array();
          foreach ($sprintfParameters as $parameter) {
  
              $placeholderCount = substr_count($string, $parameter);
              if ($placeholderCount > 0) {
  
                  $count[$parameter] = $placeholderCount;
              }
          }
          return $count;
      }
code: protected function _getParametersCountToReplace($string)
      {
          $sprintfParameters = array('%s', '%1$s', '%2$s', '%3$s', '%4$s', '%5$s', '%6$s', '%7$s', '%8$s', '%9$s');
          $count = array();
          foreach ($sprintfParameters as $parameter) {
  
              $placeholderCount = substr_count($string, $parameter);
              if ($placeholderCount > 0) {
  
                  $count[$parameter] = $placeholderCount;
              }
          }
          return $count;
      }
code_tokens: protected function _getParametersCountToReplace ( $ string ) { $ sprintfParameters = array ( '%s' , '%1$s' , '%2$s' , '%3$s' , '%4$s' , '%5$s' , '%6$s' , '%7$s' , '%8$s' , '%9$s' ) ; $ count = array ( ) ; foreach ( $ sprintfParameters as $ parameter ) { $ placeholderCount = substr_count ( $ string , $ parameter ) ; if ( $ placeholderCount > 0 ) { $ count [ $ parameter ] = $ placeholderCount ; } } return $ count ; }
docstring: Counts the placeholder parameters n given string
  
  @param string $string
  @return array
docstring_tokens: Counts the placeholder parameters n given string