original_string: public function setShow($show)
      {
  
          if($show == 'unavailable') {
              $this->setType($show);
          }
  
          $node = $this->getShow(false);
          if(!$node){
              $node = $this->createElement('show');
              $this->doc->appendChild($node);
          }
  
          $node->nodeValue = htmlspecialchars($show);
  
      }
code: public function setShow($show)
      {
  
          if($show == 'unavailable') {
              $this->setType($show);
          }
  
          $node = $this->getShow(false);
          if(!$node){
              $node = $this->createElement('show');
              $this->doc->appendChild($node);
          }
  
          $node->nodeValue = htmlspecialchars($show);
  
      }
code_tokens: public function setShow ( $ show ) { if ( $ show == 'unavailable' ) { $ this -> setType ( $ show ) ; } $ node = $ this -> getShow ( false ) ; if ( ! $ node ) { $ node = $ this -> createElement ( 'show' ) ; $ this -> doc -> appendChild ( $ node ) ; } $ node -> nodeValue = htmlspecialchars ( $ show ) ; }
docstring: Shows the status of the bot
  @param string $show A code to describe the state. see http://xmpp.org/rfcs/rfc3921.html
  away - The entity or resource is temporarily away.
  chat - The entity or resource is actively interested in chatting.
  dnd - The entity or resource is busy (dnd = "Do Not Disturb").
  xa - The entity or resource is away for an extended period (xa = "eXtended Away").
docstring_tokens: Shows the status of the bot