original_string: private function _getNodeType($nodeURL)
      {
          phpCAS::traceBegin();
          if (preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/", $nodeURL)) {
              phpCAS::traceEnd(self::IP);
              return self::IP;
          } else {
              phpCAS::traceEnd(self::HOSTNAME);
              return self::HOSTNAME;
          }
      }
code: private function _getNodeType($nodeURL)
      {
          phpCAS::traceBegin();
          if (preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/", $nodeURL)) {
              phpCAS::traceEnd(self::IP);
              return self::IP;
          } else {
              phpCAS::traceEnd(self::HOSTNAME);
              return self::HOSTNAME;
          }
      }
code_tokens: private function _getNodeType ( $ nodeURL ) { phpCAS :: traceBegin ( ) ; if ( preg_match ( "/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/" , $ nodeURL ) ) { phpCAS :: traceEnd ( self :: IP ) ; return self :: IP ; } else { phpCAS :: traceEnd ( self :: HOSTNAME ) ; return self :: HOSTNAME ; } }
docstring: Determine the node type from the URL.
  
  @param String $nodeURL The node URL.
  
  @return string hostname
docstring_tokens: Determine the node type from the URL .