original_docstring: 
      Function to create index from scratch
      :param dirname: path of the index_dir
      
docstring: Function to create index from scratch
docstring_tokens: Function to create index from scratch
code: def clean_index(dirname):
      """
      Function to create index from scratch
      :param dirname: path of the index_dir
      """
      ix = create_in(dirname, schema=create_schema())
      writer = ix.writer()
      link_files = get_link_files()
      for path in link_files:
          add_doc(writer, path)
      print '\n Committing :::'
      writer.commit()
code_tokens: def clean_index ( dirname ) : ix = create_in ( dirname , schema = create_schema ( ) ) writer = ix . writer ( ) link_files = get_link_files ( ) for path in link_files : add_doc ( writer , path ) print '\n Committing :::' writer . commit ( )
short_docstring: Function to create index from scratch
short_docstring_tokens: Function to create index from scratch
comment: """
      Function to create index from scratch
      :param dirname: path of the index_dir
      """