Program: 177751
Project: 177751
Buggy source:
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws Exception {
  Options options=new Options();
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(INDEX_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(NUM_HITS_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(QUERY_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(SIMILARITY_OPTION));
  CommandLine cmdline=null;
  CommandLineParser parser=new GnuParser();
  try {
    cmdline=parser.parse(options,args);
  }
 catch (  ParseException exp) {
    System.err.println("String_Node_Str" + exp.getMessage());
    System.exit(-1);
  }
  if (!cmdline.hasOption(QUERY_OPTION) || !cmdline.hasOption(INDEX_OPTION)) {
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(SearchStatuses.class.getName(),options);
    System.exit(-1);
  }
  File indexLocation=new File(cmdline.getOptionValue(INDEX_OPTION));
  if (!indexLocation.exists()) {
    System.err.println("String_Node_Str" + indexLocation + "String_Node_Str");
    System.exit(-1);
  }
  String queryText=cmdline.getOptionValue(QUERY_OPTION);
  int numHits=10;
  try {
    if (cmdline.hasOption(NUM_HITS_OPTION)) {
      numHits=Integer.parseInt(cmdline.getOptionValue(NUM_HITS_OPTION));
    }
  }
 catch (  NumberFormatException e) {
    System.err.println("String_Node_Str" + NUM_HITS_OPTION + "String_Node_Str"+ cmdline.getOptionValue(NUM_HITS_OPTION));
    System.exit(-1);
  }
  String similarity="String_Node_Str";
  if (cmdline.hasOption(SIMILARITY_OPTION)) {
    similarity=cmdline.getOptionValue(SIMILARITY_OPTION);
  }
  if (!Arrays.asList(SIMILARITIES).contains(similarity)) {
    System.err.println("String_Node_Str" + similarity);
    System.err.println("String_Node_Str" + Arrays.asList(SIMILARITIES));
    System.err.println("String_Node_Str");
  }
  PrintStream out=new PrintStream(System.out,true,"String_Node_Str");
  IndexReader reader=DirectoryReader.open(FSDirectory.open(indexLocation));
  IndexSearcher searcher=new IndexSearcher(reader);
  if (similarity.equalsIgnoreCase("String_Node_Str")) {
    Similarity simBM25=new BM25Similarity();
    searcher.setSimilarity(simBM25);
  }
 else   if (similarity.equalsIgnoreCase("String_Node_Str")) {
    NamedList<Double> paramNamedList=new NamedList<Double>();
    paramNamedList.add("String_Node_Str",2500.0);
    SolrParams params=SolrParams.toSolrParams(paramNamedList);
    LMDirichletSimilarityFactory factory=new LMDirichletSimilarityFactory();
    factory.init(params);
    Similarity simLMDir=factory.getSimilarity();
    searcher.setSimilarity(simLMDir);
  }
  out.println("String_Node_Str" + searcher.getSimilarity().toString());
  QueryParser p=new QueryParser(Version.LUCENE_41,IndexStatuses.StatusField.TEXT.name,IndexStatuses.ANALYZER);
  Query query=p.parse(cmdline.getOptionValue(QUERY_OPTION));
  Term t=new Term(IndexStatuses.StatusField.TEXT.name,queryText);
  query=new TermQuery(t);
  out.println("String_Node_Str" + query);
  TopDocs rs=searcher.search(query,numHits);
  for (  ScoreDoc scoreDoc : rs.scoreDocs) {
    Document hit=searcher.doc(scoreDoc.doc);
    Field created=(Field)hit.getField(IndexStatuses.StatusField.CREATED_AT.name);
    out.println(String.format("String_Node_Str",scoreDoc.score,hit.getField(IndexStatuses.StatusField.ID.name).stringValue(),hit.getField(IndexStatuses.StatusField.SCREEN_NAME.name).stringValue(),(created == null ? "String_Node_Str" : created.stringValue()),hit.getField(IndexStatuses.StatusField.TEXT.name).stringValue()));
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws Exception {
  Options options=new Options();
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(INDEX_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(NUM_HITS_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(MAX_ID_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(QUERY_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(SIMILARITY_OPTION));
  CommandLine cmdline=null;
  CommandLineParser parser=new GnuParser();
  try {
    cmdline=parser.parse(options,args);
  }
 catch (  ParseException exp) {
    System.err.println("String_Node_Str" + exp.getMessage());
    System.exit(-1);
  }
  if (!cmdline.hasOption(QUERY_OPTION) || !cmdline.hasOption(INDEX_OPTION)) {
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(SearchStatuses.class.getName(),options);
    System.exit(-1);
  }
  File indexLocation=new File(cmdline.getOptionValue(INDEX_OPTION));
  if (!indexLocation.exists()) {
    System.err.println("String_Node_Str" + indexLocation + "String_Node_Str");
    System.exit(-1);
  }
  String queryText=cmdline.getOptionValue(QUERY_OPTION);
  int numHits=10;
  try {
    if (cmdline.hasOption(NUM_HITS_OPTION)) {
      numHits=Integer.parseInt(cmdline.getOptionValue(NUM_HITS_OPTION));
    }
  }
 catch (  NumberFormatException e) {
    System.err.println("String_Node_Str" + NUM_HITS_OPTION + "String_Node_Str"+ cmdline.getOptionValue(NUM_HITS_OPTION));
    System.exit(-1);
  }
  long maxId=Long.MAX_VALUE;
  try {
    if (cmdline.hasOption(MAX_ID_OPTION)) {
      maxId=Long.parseLong(cmdline.getOptionValue(MAX_ID_OPTION));
    }
  }
 catch (  NumberFormatException e) {
    System.err.println("String_Node_Str" + MAX_ID_OPTION + "String_Node_Str"+ cmdline.getOptionValue(MAX_ID_OPTION));
    System.exit(-1);
  }
  String similarity="String_Node_Str";
  if (cmdline.hasOption(SIMILARITY_OPTION)) {
    similarity=cmdline.getOptionValue(SIMILARITY_OPTION);
  }
  PrintStream out=new PrintStream(System.out,true,"String_Node_Str");
  IndexReader reader=DirectoryReader.open(FSDirectory.open(indexLocation));
  IndexSearcher searcher=new IndexSearcher(reader);
  if (similarity.equalsIgnoreCase("String_Node_Str")) {
    Similarity simBM25=new BM25Similarity();
    searcher.setSimilarity(simBM25);
  }
 else   if (similarity.equalsIgnoreCase("String_Node_Str")) {
    NamedList<Double> paramNamedList=new NamedList<Double>();
    paramNamedList.add("String_Node_Str",2500.0);
    SolrParams params=SolrParams.toSolrParams(paramNamedList);
    LMDirichletSimilarityFactory factory=new LMDirichletSimilarityFactory();
    factory.init(params);
    Similarity simLMDir=factory.getSimilarity();
    searcher.setSimilarity(simLMDir);
  }
  out.println("String_Node_Str" + searcher.getSimilarity().toString());
  QueryParser p=new QueryParser(Version.LUCENE_41,IndexStatuses.StatusField.TEXT.name,IndexStatuses.ANALYZER);
  Query query=p.parse(queryText);
  Filter filter=NumericRangeFilter.newLongRange(DocField.TIME.name,0L,maxId,true,true);
  out.println("String_Node_Str" + query);
  TopDocs rs=searcher.search(query,filter,numHits);
  for (  ScoreDoc scoreDoc : rs.scoreDocs) {
    Document hit=searcher.doc(scoreDoc.doc);
    System.out.println(hit);
    Field epoch=(Field)hit.getField(IndexStatuses.StatusField.EPOCH.name);
    out.println(String.format("String_Node_Str",scoreDoc.score,hit.getField(IndexStatuses.StatusField.ID.name).stringValue(),hit.getField(IndexStatuses.StatusField.SCREEN_NAME.name).stringValue(),(epoch == null ? "String_Node_Str" : epoch.stringValue()),hit.getField(IndexStatuses.StatusField.TEXT.name).stringValue()));
  }
  reader.close();
}