original_docstring:  Read contents of local file.
  
          :param str file_name: File to read.
          :return: File contents.
          :rtype: str
          
docstring: Read contents of local file.
docstring_tokens: Read contents of local file .
code: def read_file_contents(self, file_name, directory=None, **kwargs):
          """ Read contents of local file.
  
          :param str file_name: File to read.
          :return: File contents.
          :rtype: str
          """
          if directory is not None:
              file_name = os.path.join(directory, file_name)
  
          logging.debug('Reads {}'.format(file_name))
          with open(file_name) as f:
              contents = f.read()
  
          return contents
code_tokens: def read_file_contents ( self , file_name , directory = None , ** kwargs ) : if directory is not None : file_name = os . path . join ( directory , file_name ) logging . debug ( 'Reads {}' . format ( file_name ) ) with open ( file_name ) as f : contents = f . read ( ) return contents
short_docstring: Read contents of local file.
short_docstring_tokens: Read contents of local file .
comment: """ Read contents of local file.
  
          :param str file_name: File to read.
          :return: File contents.
          :rtype: str
          """