parameters: (filename, first=None, after=None, numlines=None, numblanks=None, dedent=True)
docstring: Include text from a file.
docstring_summary: Include text from a file.
docstring_tokens: Include text from a file .
function: def include(filename, first=None, after=None, numlines=None, numblanks=None, dedent=True):
      """
      Include text from a file.
      """
      global LAST_LINES, LAST_FILENAME
      if filename != LAST_FILENAME:
          with open(filename) as f:
              lines = LAST_LINES = f.readlines()
          LAST_FILENAME = filename
      else:
          lines = LAST_LINES
  
      including = "".join(selected_lines(lines, first, after, numlines, numblanks))
      if dedent:
          including = textwrap.dedent(including)
  
      cog.outl("```")
      cog.out(including)
      cog.outl("```")
function_tokens: def include ( filename , first = None , after = None , numlines = None , numblanks = None , dedent = True ) : global LAST_LINES , LAST_FILENAME if filename != LAST_FILENAME : with open ( filename ) as f : lines = LAST_LINES = f . readlines ( ) LAST_FILENAME = filename else : lines = LAST_LINES including = "" . join ( selected_lines ( lines , first , after , numlines , numblanks ) ) if dedent : including = textwrap . dedent ( including ) cog . outl ( "```" ) cog . out ( including ) cog . outl ( "```" )