original_string: protected function getNodeName($data)
      {
          if (is_object($data)) {
              $nodeName = preg_replace('/.*\\\/', '', get_class($data));
              return preg_replace('/\W/', '', $nodeName);
          } elseif (is_array($data)) {
              return 'array';
          }
          return $this->defaultNodeName;
      }
code: protected function getNodeName($data)
      {
          if (is_object($data)) {
              $nodeName = preg_replace('/.*\\\/', '', get_class($data));
              return preg_replace('/\W/', '', $nodeName);
          } elseif (is_array($data)) {
              return 'array';
          }
          return $this->defaultNodeName;
      }
code_tokens: protected function getNodeName ( $ data ) { if ( is_object ( $ data ) ) { $ nodeName = preg_replace ( '/.*\\\/' , '' , get_class ( $ data ) ) ; return preg_replace ( '/\W/' , '' , $ nodeName ) ; } elseif ( is_array ( $ data ) ) { return 'array' ; } return $ this -> defaultNodeName ; }
docstring: Try to guess the node name
  @param mixed $data Data to try to find the name of
  @return mixed|string
docstring_tokens: Try to guess the node name