original_string: public function getNodeAndSetLocale($name, $track = true, $published = true)
      {
          $node = $this->getNode($name, $track, $published);
  
          $locale = $node->getLocaleForNodeName($name);
  
          set_app_locale($locale);
  
          return $node;
      }
code: public function getNodeAndSetLocale($name, $track = true, $published = true)
      {
          $node = $this->getNode($name, $track, $published);
  
          $locale = $node->getLocaleForNodeName($name);
  
          set_app_locale($locale);
  
          return $node;
      }
code_tokens: public function getNodeAndSetLocale ( $ name , $ track = true , $ published = true ) { $ node = $ this -> getNode ( $ name , $ track , $ published ) ; $ locale = $ node -> getLocaleForNodeName ( $ name ) ; set_app_locale ( $ locale ) ; return $ node ; }
docstring: Returns a node by name and sets the locale
  
  @param string $name
  @param bool $track
  @param bool $published
  @return Node
docstring_tokens: Returns a node by name and sets the locale