Program: 25374
Project: 25374
Buggy source:
public void runQueries(String fileName) throws IOException {
  InputStream file=SampleMetastore.class.getClassLoader().getResourceAsStream(fileName);
  BufferedReader reader=new BufferedReader(new InputStreamReader(file));
  String query;
  while ((query=reader.readLine()) != null) {
    if (StringUtils.isBlank(query)) {
      continue;
    }
    if (query.startsWith("String_Node_Str")) {
      continue;
    }
    total++;
    System.out.println("String_Node_Str" + query);
    QueryHandle handle=queryClient.executeQuery(query,true);
    System.out.println("String_Node_Str" + queryClient.getQuery().getStatus());
    System.out.println("String_Node_Str" + (queryClient.getQuery().getFinishTime() - queryClient.getQuery().getSubmissionTime()));
    System.out.println("String_Node_Str" + (queryClient.getQuery().getDriverFinishTime() - queryClient.getQuery().getDriverStartTime()));
    if (queryClient.wasQuerySuccessful()) {
      success++;
      if (queryClient.getQuery().getStatus().isResultSetAvailable()) {
        System.out.println("String_Node_Str");
        InMemoryQueryResult result=queryClient.getResultSet();
        for (        ResultRow row : result.getRows()) {
          System.out.println(StringUtils.join(row.getValues(),"String_Node_Str"));
        }
        queryClient.closeResultSet();
      }
    }
 else {
      retCode=1;
    }
    System.out.println("String_Node_Str");
  }
}

Fixed version (ground truth):
public void runQueries(String fileName) throws IOException {
  InputStream file=SampleMetastore.class.getClassLoader().getResourceAsStream(fileName);
  BufferedReader reader=new BufferedReader(new InputStreamReader(file));
  String query;
  while ((query=reader.readLine()) != null) {
    if (StringUtils.isBlank(query)) {
      continue;
    }
    if (query.startsWith("String_Node_Str")) {
      continue;
    }
    total++;
    System.out.println("String_Node_Str" + query);
    QueryHandle handle=queryClient.executeQuery(query,true);
    System.out.println("String_Node_Str" + queryClient.getQuery().getStatus());
    System.out.println("String_Node_Str" + (queryClient.getQuery().getFinishTime() - queryClient.getQuery().getSubmissionTime()));
    System.out.println("String_Node_Str" + (queryClient.getQuery().getDriverFinishTime() - queryClient.getQuery().getDriverStartTime()));
    if (queryClient.wasQuerySuccessful()) {
      success++;
      if (queryClient.getQuery().getStatus().isResultSetAvailable()) {
        System.out.println("String_Node_Str");
        QueryResult queryResult=queryClient.getResultSet();
        if (queryResult instanceof InMemoryQueryResult) {
          InMemoryQueryResult result=(InMemoryQueryResult)queryResult;
          for (          ResultRow row : result.getRows()) {
            System.out.println(StringUtils.join(row.getValues(),"String_Node_Str"));
          }
        }
 else         if (queryResult instanceof PersistentQueryResult) {
          PersistentQueryResult persistentQueryResult=(PersistentQueryResult)queryResult;
          System.out.println("String_Node_Str" + persistentQueryResult.getPersistedURI());
        }
        queryClient.closeResultSet();
      }
    }
 else {
      retCode=1;
    }
    System.out.println("String_Node_Str");
  }
}