Program: 168715
Project: 168715
Buggy source:
@Override public Collection<Measurements> find(String tenantId,String name,Map<String,String> dimensions,DateTime startTime,@Nullable DateTime endTime) throws Exception {
  String serieNameRegex=buildSerieNameRegex(tenantId,name,dimensions);
  String timePart=Utils.WhereClauseBuilder.buildTimePart(startTime,endTime);
  String query=String.format("String_Node_Str" + "String_Node_Str" + "String_Node_Str",serieNameRegex,timePart);
  logger.debug("String_Node_Str",query);
  List<Serie> result=this.influxDB.Query(this.config.influxDB.getName(),query,TimeUnit.MILLISECONDS);
  List<Measurements> measurementsList=new LinkedList<>();
  for (  Serie serie : result) {
    Utils.SerieNameConverter serieNameConverter=new Utils.SerieNameConverter(serie.getName());
    Measurements measurements=new Measurements();
    measurements.setName(serieNameConverter.getMetricName());
    measurements.setDimensions(serieNameConverter.getDimensions());
    List<Object[]> valObjArryList=new LinkedList<>();
    final String[] colNames=serie.getColumns();
    final List<Map<String,Object>> rows=serie.getRows();
    for (    Map<String,Object> row : rows) {
      Object[] objArry=new Object[3];
      objArry[0]=((Double)row.get(colNames[1])).longValue();
      Double timeDouble=(Double)row.get(colNames[0]);
      objArry[1]=DATETIME_FORMATTER.print(timeDouble.longValue());
      objArry[2]=(Double)row.get(colNames[2]);
      valObjArryList.add(objArry);
    }
    measurements.setMeasurements(valObjArryList);
    measurementsList.add(measurements);
  }
  return measurementsList;
}

Fixed version (ground truth):
@Override public Collection<Measurements> find(String tenantId,String name,Map<String,String> dimensions,DateTime startTime,@Nullable DateTime endTime) throws Exception {
  String serieNameRegex=buildSerieNameRegex(tenantId,name,dimensions);
  String timePart=Utils.WhereClauseBuilder.buildTimePart(startTime,endTime);
  String query=String.format("String_Node_Str" + "String_Node_Str" + "String_Node_Str",serieNameRegex,timePart);
  logger.debug("String_Node_Str",query);
  List<Measurements> measurementsList=new LinkedList<>();
  List<Serie> result=null;
  try {
    result=this.influxDB.Query(this.config.influxDB.getName(),query,TimeUnit.MILLISECONDS);
  }
 catch (  RuntimeException e) {
    if (e.getMessage().equals("String_Node_Str")) {
      return measurementsList;
    }
 else {
      logger.error("String_Node_Str",e);
      throw e;
    }
  }
  for (  Serie serie : result) {
    String serieName=serie.getName();
    if (!serieNameMatcher(serieName)) {
      logger.warn("String_Node_Str",serieName);
      continue;
    }
    Utils.SerieNameConverter serieNameConverter=new Utils.SerieNameConverter(serieName);
    Measurements measurements=new Measurements();
    measurements.setName(serieNameConverter.getMetricName());
    measurements.setDimensions(serieNameConverter.getDimensions());
    List<Object[]> valObjArryList=new LinkedList<>();
    final String[] colNames=serie.getColumns();
    final List<Map<String,Object>> rows=serie.getRows();
    for (    Map<String,Object> row : rows) {
      Object[] objArry=new Object[3];
      objArry[0]=((Double)row.get(colNames[1])).longValue();
      Double timeDouble=(Double)row.get(colNames[0]);
      objArry[1]=DATETIME_FORMATTER.print(timeDouble.longValue());
      objArry[2]=(Double)row.get(colNames[2]);
      valObjArryList.add(objArry);
    }
    measurements.setMeasurements(valObjArryList);
    measurementsList.add(measurements);
  }
  return measurementsList;
}