old_contents: #!/usr/bin/env python
  
  import os,sys,common
  import fetch
  import time
  
  def main():
    if not os.path.exists(common.CORPUS_DIR) or not os.path.exists(common.LIBS_DIR):
      print "Please run python fetch.py first to fetch the corpus and/or necessary tools."
      sys.exit(1)
      return
  
    project = ""
    if len(sys.argv) == 2:
      project = sys.argv[1]
    else:
      print 'must supply single test name'
      exit()
  
    print "Running analysis on corpus."
    print time.strftime('%X %x')
    tools = ['randoop']
  
    print "Cleaning {}".format(project)
    common.clean_project(project)
    common.run_dljc(project, tools)
    print time.strftime('%X %x')
  
  if __name__ == "__main__":
    main()
  else:
    print 'huh?'
  
new_contents: #!/usr/bin/env python
  
  import os,sys,common
  import time
  
  def main():
    if not os.path.exists(common.CORPUS_DIR):
      print "Please run python fetch_corpus.py first to fetch the corpus."
      sys.exit(1)
      return
  
    if not os.path.exists(common.LIBS_DIR):
      print "Please run fetch_dependencies.sh first to fetch the necessary tools."
      sys.exit(1)
      return
  
    project = ""
    if len(sys.argv) == 2:
      project = sys.argv[1]
    else:
      print 'must supply single test name'
      exit()
  
    print "Running analysis on corpus."
    print time.strftime('%X %x')
    tools = ['randoop']
  
    print "Cleaning {}".format(project)
    common.clean_project(project)
    common.run_dljc(project, tools)
    print time.strftime('%X %x')
  
  if __name__ == "__main__":
    main()
  else:
    print 'huh?'
  
subject: correct for fetch changes