Program: 153210
Project: 153210
Buggy source:
/** 
 * This will do the command argument extraction and give the parameter to the scanRepository class which will do the real repository scan.
 * @param scanCommand The command line.
 */
private static void runScan(ScanCommand scanCommand){
  String url=scanCommand.getURL(commandLine);
  long fromRev=scanCommand.getFromRev(commandLine);
  long toRev=scanCommand.getToRev(commandLine);
  String indexDirectory=scanCommand.getIndexDir(commandLine);
  boolean create=scanCommand.getCreate(commandLine);
  String username=scanCommand.getUsername(commandLine);
  String password=scanCommand.getPassword(commandLine);
  Index index=new Index();
  Analyzer analyzer=new StandardAnalyzer();
  index.setAnalyzer(analyzer);
  index.setCreate(create);
  IndexWriter indexWriter=index.createIndexWriter(indexDirectory);
  ISVNAuthenticationManager authManager=SVNWCUtil.createDefaultAuthenticationManager(username,password);
  Repository repository=new Repository(url,authManager);
  CLIInterceptor interceptor=new CLIInterceptor();
  scanRepository.registerScanInterceptor(interceptor);
  CLILogEntryInterceptor logEntryInterceptor=new CLILogEntryInterceptor();
  scanRepository.registerLogEntryInterceptor(logEntryInterceptor);
  scanRepository.setRepository(repository);
  scanRepository.setStartRevision(fromRev);
  scanRepository.setEndRevision(toRev);
  LOGGER.info("String_Node_Str");
  scanRepository.scan(indexWriter);
  LOGGER.info("String_Node_Str");
  try {
    indexWriter.optimize();
    indexWriter.close();
  }
 catch (  CorruptIndexException e) {
    System.err.println("String_Node_Str" + e);
  }
catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
/** 
 * This will do the command argument extraction and give the parameter to the scanRepository class which will do the real repository scan.
 * @param scanCommand The command line.
 */
private static void runScan(ScanCommand scanCommand){
  String url=scanCommand.getURL(commandLine);
  long fromRev=scanCommand.getFromRev(commandLine);
  long toRev=scanCommand.getToRev(commandLine);
  String indexDirectory=scanCommand.getIndexDir(commandLine);
  boolean create=scanCommand.getCreate(commandLine);
  String username=scanCommand.getUsername(commandLine);
  String password=scanCommand.getPassword(commandLine);
  Index index=new Index();
  Analyzer analyzer=new StandardAnalyzer();
  index.setAnalyzer(analyzer);
  index.setCreate(create);
  IndexWriter indexWriter=index.createIndexWriter(indexDirectory);
  ISVNAuthenticationManager authManager=SVNWCUtil.createDefaultAuthenticationManager(username,password);
  Repository repository=new Repository(url,authManager);
  CLIInterceptor interceptor=new CLIInterceptor();
  scanRepository.registerScanInterceptor(interceptor);
  CLILogEntryInterceptor logEntryInterceptor=new CLILogEntryInterceptor();
  scanRepository.registerLogEntryInterceptor(logEntryInterceptor);
  CLIChangeSetInterceptor changeSetInterceptor=new CLIChangeSetInterceptor();
  scanRepository.registerChangeSetInterceptor(changeSetInterceptor);
  scanRepository.setRepository(repository);
  scanRepository.setStartRevision(fromRev);
  scanRepository.setEndRevision(toRev);
  LOGGER.info("String_Node_Str");
  scanRepository.scan(indexWriter);
  LOGGER.info("String_Node_Str");
  try {
    indexWriter.optimize();
    indexWriter.close();
  }
 catch (  CorruptIndexException e) {
    System.err.println("String_Node_Str" + e);
  }
catch (  IOException e) {
    System.err.println("String_Node_Str" + e);
  }
}