original_string: public function dump($input, array $config = array())
      {
          $config = array_replace_recursive(array(
              'encoding' => 'UTF-8',
              'options'  => LIBXML_PARSEHUGE,
          ), $config);
  
          $this->prepare($input, $config);
  
          $paths = array();
  
          while ($this->nextElement()) {
              if (! $this->reader->isEmptyElement && $this->reader->nodeType === XMLReader::ELEMENT) {
                  $paths[] = $this->current;
              }
          }
  
          return array_count_values($paths);
      }
code: public function dump($input, array $config = array())
      {
          $config = array_replace_recursive(array(
              'encoding' => 'UTF-8',
              'options'  => LIBXML_PARSEHUGE,
          ), $config);
  
          $this->prepare($input, $config);
  
          $paths = array();
  
          while ($this->nextElement()) {
              if (! $this->reader->isEmptyElement && $this->reader->nodeType === XMLReader::ELEMENT) {
                  $paths[] = $this->current;
              }
          }
  
          return array_count_values($paths);
      }
code_tokens: public function dump ( $ input , array $ config = array ( ) ) { $ config = array_replace_recursive ( array ( 'encoding' => 'UTF-8' , 'options' => LIBXML_PARSEHUGE , ) , $ config ) ; $ this -> prepare ( $ input , $ config ) ; $ paths = array ( ) ; while ( $ this -> nextElement ( ) ) { if ( ! $ this -> reader -> isEmptyElement && $ this -> reader -> nodeType === XMLReader :: ELEMENT ) { $ paths [ ] = $ this -> current ; } } return array_count_values ( $ paths ) ; }
docstring: Dump XPaths and all their occurrences
  
  @param   mixed  $input  Input data
  @param   array  $config Configuration settings (optional)
  @return  array
docstring_tokens: Dump XPaths and all their occurrences