original_string: public function sendPresence(\sb\XMPP\Presence $presence)
      {
  
          $presence->setFrom($this->jid);
          return $this->write($presence);
      }
code: public function sendPresence(\sb\XMPP\Presence $presence)
      {
  
          $presence->setFrom($this->jid);
          return $this->write($presence);
      }
code_tokens: public function sendPresence ( \ sb \ XMPP \ Presence $ presence ) { $ presence -> setFrom ( $ this -> jid ) ; return $ this -> write ( $ presence ) ; }
docstring: Converts a presense request instance to XML and sends it.  It sets the from
  to the bots jid for you
  
  @param \sb\XMPP\Presence $presence The presence instance to send
  @return boolean
docstring_tokens: Converts a presense request instance to XML and sends it . It sets the from to the bots jid for you