original_string: public function getNodeById($id, $published)
      {
          return $published ? PublishedNode::find($id) : Node::find($id);
      }
code: public function getNodeById($id, $published)
      {
          return $published ? PublishedNode::find($id) : Node::find($id);
      }
code_tokens: public function getNodeById ( $ id , $ published ) { return $ published ? PublishedNode :: find ( $ id ) : Node :: find ( $ id ) ; }
docstring: Returns a node by id
  
  @param int $id
  @param bool $published
  @return Node
docstring_tokens: Returns a node by id