original_docstring: 
      Check whether directory dir exists.
      If true delete and remake.
      
docstring: Check whether directory dir exists.
  If true delete and remake.
docstring_tokens: Check whether directory dir exists . If true delete and remake .
code: def delete_dir(dir):
      """
      Check whether directory dir exists.
      If true delete and remake.
      """
      if os.path.exists(dir):
          shutil.rmtree(dir)
          logging.warn("Directory {0} found.\nRemoving {0}".format(dir))
          os.makedirs(dir)
code_tokens: def delete_dir ( dir ) : if os . path . exists ( dir ) : shutil . rmtree ( dir ) logging . warn ( "Directory {0} found.\nRemoving {0}" . format ( dir ) ) os . makedirs ( dir )
short_docstring: Check whether directory dir exists.
short_docstring_tokens: Check whether directory dir exists .
comment: """
      Check whether directory dir exists.
      If true delete and remake.
      """