original_string: private function getHost($ipStr)
      {
          $ip = IP::fromStringIP($ipStr);
  
          $host = $ip->getHostname();
          $host = ($host === null ? $ipStr : $host);
  
          return trim(strtolower($host));
      }
code: private function getHost($ipStr)
      {
          $ip = IP::fromStringIP($ipStr);
  
          $host = $ip->getHostname();
          $host = ($host === null ? $ipStr : $host);
  
          return trim(strtolower($host));
      }
code_tokens: private function getHost ( $ ipStr ) { $ ip = IP :: fromStringIP ( $ ipStr ) ; $ host = $ ip -> getHostname ( ) ; $ host = ( $ host === null ? $ ipStr : $ host ) ; return trim ( strtolower ( $ host ) ) ; }
docstring: Returns the hostname given the IP address string
  
  @param string $ipStr IP Address
  @return string hostname (or human-readable IP address)
docstring_tokens: Returns the hostname given the IP address string