original_string: public function getLocalIp()
      {
          $address = $this->getLocalAddress();
          $pos = strrpos($address, ':');
          if (!$pos) {
              return '';
          }
          return substr($address, 0, $pos);
      }
code: public function getLocalIp()
      {
          $address = $this->getLocalAddress();
          $pos = strrpos($address, ':');
          if (!$pos) {
              return '';
          }
          return substr($address, 0, $pos);
      }
code_tokens: public function getLocalIp ( ) { $ address = $ this -> getLocalAddress ( ) ; $ pos = strrpos ( $ address , ':' ) ; if ( ! $ pos ) { return '' ; } return substr ( $ address , 0 , $ pos ) ; }
docstring: Get local IP.
  
  @return string
docstring_tokens: Get local IP .