Program: 177752
Project: 177752
Buggy source:
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws Exception {
  Options options=new Options();
  options.addOption(new Option(HELP_OPTION,"String_Node_Str"));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(HOST_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(PORT_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(QUERIES_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(GROUP_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(TOKEN_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(HOST_OPTION) || !cmdline.hasOption(PORT_OPTION) || !cmdline.hasOption(QUERIES_OPTION)) {
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(TrecSearchThriftClientCli.class.getName(),options);
    System.exit(-1);
  }
  String queryFile=cmdline.getOptionValue(QUERIES_OPTION);
  if (!new File(queryFile).exists()) {
    System.err.println("String_Node_Str" + queryFile + "String_Node_Str");
    System.exit(-1);
  }
  IndriQueryParams queryParams=new IndriQueryParams();
  queryParams.ParseXMLQueryFile(queryFile);
  String group=cmdline.hasOption(GROUP_OPTION) ? cmdline.getOptionValue(GROUP_OPTION) : null;
  String token=cmdline.hasOption(TOKEN_OPTION) ? cmdline.getOptionValue(TOKEN_OPTION) : null;
  TrecSearchThriftClient client=new TrecSearchThriftClient(cmdline.getOptionValue(HOST_OPTION),Integer.parseInt(cmdline.getOptionValue(PORT_OPTION)),group,token);
  Queries queries=queryParams.getQueries();
  Query query;
  while ((query=queries.getNextQuery()) != null) {
    List<TResult> results=client.search(query.getQueryString(),Long.parseLong(query.getMetadataField("String_Node_Str")),10000);
    int i=1;
    for (    TResult result : results) {
      System.out.println(query.getQueryName() + "String_Node_Str" + result.id+ "String_Node_Str"+ i+ "String_Node_Str"+ result.rsv+ "String_Node_Str");
      i++;
    }
  }
  client.close();
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void main(String[] args) throws Exception {
  Options options=new Options();
  options.addOption(new Option(HELP_OPTION,"String_Node_Str"));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(HOST_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(PORT_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(QUERIES_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(GROUP_OPTION));
  options.addOption(OptionBuilder.withArgName("String_Node_Str").hasArg().withDescription("String_Node_Str").create(TOKEN_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(HOST_OPTION) || !cmdline.hasOption(PORT_OPTION) || !cmdline.hasOption(QUERIES_OPTION)) {
    HelpFormatter formatter=new HelpFormatter();
    formatter.printHelp(TrecSearchThriftClientCli.class.getName(),options);
    System.exit(-1);
  }
  String queryFile=cmdline.getOptionValue(QUERIES_OPTION);
  if (!new File(queryFile).exists()) {
    System.err.println("String_Node_Str" + queryFile + "String_Node_Str");
    System.exit(-1);
  }
  IndriQueryParams queryParams=new IndriQueryParams();
  queryParams.ParseXMLQueryFile(queryFile);
  String group=cmdline.hasOption(GROUP_OPTION) ? cmdline.getOptionValue(GROUP_OPTION) : null;
  String token=cmdline.hasOption(TOKEN_OPTION) ? cmdline.getOptionValue(TOKEN_OPTION) : null;
  TrecSearchThriftClient client=new TrecSearchThriftClient(cmdline.getOptionValue(HOST_OPTION),Integer.parseInt(cmdline.getOptionValue(PORT_OPTION)),group,token);
  Queries queries=queryParams.getQueries();
  Query query;
  while ((query=queries.getNextQuery()) != null) {
    List<TResult> results=client.search(query.getQueryString(),Long.parseLong(query.getMetadataField("String_Node_Str")),1000);
    int i=1;
    for (    TResult result : results) {
      System.out.println(query.getQueryName() + "String_Node_Str" + result.id+ "String_Node_Str"+ i+ "String_Node_Str"+ result.rsv+ "String_Node_Str");
      i++;
    }
  }
}