Program: 177753
Project: 177753
Buggy source:
public List<TResult> search(TQuery query) throws TrecSearchException {
  Preconditions.checkNotNull(query);
  if (credentials != null && (!credentials.containsKey(query.group) || !credentials.get(query.group).equals(query.token))) {
    LOG.info(String.format("String_Node_Str",query.group,query.token));
    throw new TrecSearchException("String_Node_Str");
  }
  List<TResult> results=Lists.newArrayList();
  long startTime=System.currentTimeMillis();
  try {
    Filter filter=NumericRangeFilter.newLongRange(DocField.TIME.name,0L,query.max_id,true,true);
    Query q=QUERY_PARSER.parse(query.text);
    TopDocs rs=searcher.search(q,filter,query.num_results);
    for (    ScoreDoc scoreDoc : rs.scoreDocs) {
      Document hit=searcher.doc(scoreDoc.doc);
      TResult p=new TResult();
      p.id=Long.parseLong(hit.get(StatusField.ID.name));
      p.screen_name=hit.get(StatusField.SCREEN_NAME.name);
      p.created_at=hit.get(StatusField.CREATED_AT.name);
      p.text=hit.get(StatusField.TEXT.name);
      p.rsv=scoreDoc.score;
      results.add(p);
    }
  }
 catch (  Exception e) {
    throw new TrecSearchException(e.getMessage());
  }
  long endTime=System.currentTimeMillis();
  LOG.info(String.format("String_Node_Str",(endTime - startTime),query.toString()));
  return results;
}

Fixed version (ground truth):
public List<TResult> search(TQuery query) throws TrecSearchException {
  Preconditions.checkNotNull(query);
  if (credentials != null && (!credentials.containsKey(query.group) || !credentials.get(query.group).equals(query.token))) {
    LOG.info(String.format("String_Node_Str",query.group,query.token));
    throw new TrecSearchException("String_Node_Str");
  }
  List<TResult> results=Lists.newArrayList();
  long startTime=System.currentTimeMillis();
  try {
    Filter filter=NumericRangeFilter.newLongRange(DocField.TIME.name,0L,query.max_id,true,true);
    Query q=QUERY_PARSER.parse(query.text);
    TopDocs rs=searcher.search(q,filter,query.num_results);
    for (    ScoreDoc scoreDoc : rs.scoreDocs) {
      Document hit=searcher.doc(scoreDoc.doc);
      TResult p=new TResult();
      p.id=Long.parseLong(hit.get(StatusField.ID.name));
      p.screen_name=hit.get(StatusField.SCREEN_NAME.name);
      p.epoch=Long.parseLong(hit.get(StatusField.EPOCH.name));
      p.text=hit.get(StatusField.TEXT.name);
      p.rsv=scoreDoc.score;
      p.followers_count=Integer.parseInt(hit.get(StatusField.FOLLOWERS_COUNT.name));
      p.statuses_count=Integer.parseInt(hit.get(StatusField.STATUSES_COUNT.name));
      if (hit.get(StatusField.LANG.name) != null) {
        p.lang=hit.get(StatusField.LANG.name);
      }
      if (hit.get(StatusField.IN_REPLY_TO_STATUS_ID.name) != null) {
        p.in_reply_to_status_id=Long.parseLong(hit.get(StatusField.IN_REPLY_TO_STATUS_ID.name));
      }
      if (hit.get(StatusField.IN_REPLY_TO_USER_ID.name) != null) {
        p.in_reply_to_user_id=Long.parseLong(hit.get(StatusField.IN_REPLY_TO_USER_ID.name));
      }
      if (hit.get(StatusField.RETWEETED_STATUS_ID.name) != null) {
        p.retweeted_status_id=Long.parseLong(hit.get(StatusField.RETWEETED_STATUS_ID.name));
      }
      if (hit.get(StatusField.RETWEETED_USER_ID.name) != null) {
        p.retweeted_user_id=Long.parseLong(hit.get(StatusField.RETWEETED_USER_ID.name));
      }
      if (hit.get(StatusField.RETWEET_COUNT.name) != null) {
        p.retweeted_count=Integer.parseInt(hit.get(StatusField.RETWEET_COUNT.name));
      }
      results.add(p);
    }
  }
 catch (  Exception e) {
    throw new TrecSearchException(e.getMessage());
  }
  long endTime=System.currentTimeMillis();
  LOG.info(String.format("String_Node_Str",(endTime - startTime),query.toString()));
  return results;
}