original_string: public function connect() {
          $count = 0;
          do {
              $count += 1;
              $this->Resource = pg_connect($this->getConnectionString());
              if ($this->Resource !== false) {
                  return true;
              }
          } while ($count < $this->getConnectTries());
  
          throw new TriesOverConnectException();
      }
code: public function connect() {
          $count = 0;
          do {
              $count += 1;
              $this->Resource = pg_connect($this->getConnectionString());
              if ($this->Resource !== false) {
                  return true;
              }
          } while ($count < $this->getConnectTries());
  
          throw new TriesOverConnectException();
      }
code_tokens: public function connect ( ) { $ count = 0 ; do { $ count += 1 ; $ this -> Resource = pg_connect ( $ this -> getConnectionString ( ) ) ; if ( $ this -> Resource !== false ) { return true ; } } while ( $ count < $ this -> getConnectTries ( ) ) ; throw new TriesOverConnectException ( ) ; }
docstring: Connect to postgres instance
  @return bool connection result
  @throws TriesOverConnectException when connection tries was over
docstring_tokens: Connect to postgres instance