Program: 6134
Project: 6134
Buggy source:
/** 
 * Gets the aggregation functions that are queryable for a given time range, sourceID, and field name
 */
@Path("String_Node_Str") @GET public void aggregationTypesGetter(HttpServiceRequest request,HttpServiceResponder responder,@PathParam("String_Node_Str") String fieldName,@PathParam("String_Node_Str") String sourceID,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") long startTimestamp,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") long endTimestamp) throws IOException {
  AggregationsRowKey aggregationsRowKeyStart=new AggregationsRowKey(startTimestamp,sourceID);
  AggregationsRowKey aggregationsRowKeyEnd=new AggregationsRowKey(endTimestamp + 1,sourceID);
  Scanner scanner=dataStore.scan(aggregationsRowKeyStart.getTableRowKey(),aggregationsRowKeyEnd.getTableRowKey());
  Row row;
  byte[] fieldNameBytes=Bytes.toBytes(fieldName);
  Set<AggregationTypeValue> commonAggregationTypeValues=new HashSet<>();
  try {
    while ((row=scanner.next()) != null) {
      Map<byte[],byte[]> columnsMapBytes=row.getColumns();
      byte[] output=columnsMapBytes.get(fieldNameBytes);
      String outputString=Bytes.toString(output);
      Set<AggregationTypeValue> aggregationTypeValuesSet=GSON.fromJson(outputString,TOKEN_TYPE_SET_AGGREGATION_TYPE_VALUES);
      commonAggregationTypeValues.addAll(aggregationTypeValuesSet);
    }
  }
  finally {
    scanner.close();
  }
  if (commonAggregationTypeValues.isEmpty()) {
    responder.sendString(HttpURLConnection.HTTP_NOT_FOUND,String.format("String_Node_Str",sourceID,fieldName),Charsets.UTF_8);
  }
 else {
    responder.sendJson(HttpURLConnection.HTTP_OK,commonAggregationTypeValues);
  }
}

Fixed version (ground truth):
/** 
 * Gets the aggregation functions that are queryable for a given time range, sourceID, and field name
 */
@Path("String_Node_Str") @GET public void aggregationTypesGetter(HttpServiceRequest request,HttpServiceResponder responder,@PathParam("String_Node_Str") String fieldName,@PathParam("String_Node_Str") String sourceID,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") long startTimestamp,@QueryParam("String_Node_Str") @DefaultValue("String_Node_Str") long endTimestamp) throws IOException {
  AggregationsRowKey aggregationsRowKeyStart=new AggregationsRowKey(startTimestamp,sourceID);
  AggregationsRowKey aggregationsRowKeyEnd=new AggregationsRowKey(endTimestamp + 1,sourceID);
  Row row;
  byte[] fieldNameBytes=Bytes.toBytes(fieldName);
  Set<AggregationTypeValue> commonAggregationTypeValues=new HashSet<>();
  try (Scanner scanner=dataStore.scan(aggregationsRowKeyStart.getTableRowKey(),aggregationsRowKeyEnd.getTableRowKey())){
    while ((row=scanner.next()) != null) {
      Map<byte[],byte[]> columnsMapBytes=row.getColumns();
      byte[] output=columnsMapBytes.get(fieldNameBytes);
      String outputString=Bytes.toString(output);
      Set<AggregationTypeValue> aggregationTypeValuesSet=GSON.fromJson(outputString,TOKEN_TYPE_SET_AGGREGATION_TYPE_VALUES);
      commonAggregationTypeValues.addAll(aggregationTypeValuesSet);
    }
  }
   if (commonAggregationTypeValues.isEmpty()) {
    responder.sendString(HttpURLConnection.HTTP_NOT_FOUND,String.format("String_Node_Str",sourceID,fieldName),Charsets.UTF_8);
  }
 else {
    responder.sendJson(HttpURLConnection.HTTP_OK,commonAggregationTypeValues);
  }
}