original_string: private function getHostFromUrl($url)
      {
          if (strpos($url, '//')) {
              $url = substr($url, strpos($url, '//') + 2);
          }
          if (($p = strpos($url, '/')) !== false) {
              $url = substr($url, 0, $p);
          }
          return $url;
      }
code: private function getHostFromUrl($url)
      {
          if (strpos($url, '//')) {
              $url = substr($url, strpos($url, '//') + 2);
          }
          if (($p = strpos($url, '/')) !== false) {
              $url = substr($url, 0, $p);
          }
          return $url;
      }
code_tokens: private function getHostFromUrl ( $ url ) { if ( strpos ( $ url , '//' ) ) { $ url = substr ( $ url , strpos ( $ url , '//' ) + 2 ) ; } if ( ( $ p = strpos ( $ url , '/' ) ) !== false ) { $ url = substr ( $ url , 0 , $ p ) ; } return $ url ; }
docstring: Return search engine host in URL
  
  @param string $url
  @return string host
docstring_tokens: Return search engine host in URL