Program: 14427
Project: 14427
Buggy source:
@Override public void fire(final DescribeSensorsResponse msg){
  try {
    final Iterable<String> uuidList=Iterables.transform(VmInstances.list(VmState.RUNNING),VmInstances.toInstanceUuid());
    for (    final SensorsResourceType sensorData : msg.getSensorsResources()) {
      if (!RESOURCE_TYPE_INSTANCE.equals(sensorData.getResourceType()) || !Iterables.contains(uuidList,sensorData.getResourceUuid()))       continue;
      for (      final MetricsResourceType metricType : sensorData.getMetrics()) {
        for (        final MetricCounterType counterType : metricType.getCounters()) {
          final long sequenceNumber=counterType.getSequenceNum();
          for (          final MetricDimensionsType dimensionType : counterType.getDimensions()) {
            final List<MetricDimensionsValuesType> values=Lists.newArrayList(dimensionType.getValues());
            Collections.sort(values,Ordering.natural().onResultOf(GetTimestamp.INSTANCE));
            for (            MetricDimensionsValuesType theValue : values) {
              final Double usageValue=theValue.getValue();
              final Long usageTimestamp=theValue.getTimestamp().getTime();
              final Long currentSeqNum=sequenceNumber + 1;
              fireUsageEvent(new Supplier<InstanceUsageEvent>(){
                @Override public InstanceUsageEvent get(){
                  return new InstanceUsageEvent(sensorData.getResourceUuid(),sensorData.getResourceName(),metricType.getMetricName(),currentSeqNum,dimensionType.getDimensionName(),usageValue,usageTimestamp);
                }
              }
);
            }
          }
        }
      }
    }
  }
 catch (  Exception ex) {
    LOG.debug("String_Node_Str",ex);
  }
}

Fixed version (ground truth):
@Override public void fire(final DescribeSensorsResponse msg){
  try {
    final Iterable<String> uuidList=Iterables.transform(VmInstances.list(VmState.RUNNING),VmInstances.toInstanceUuid());
    for (    final SensorsResourceType sensorData : msg.getSensorsResources()) {
      if (!RESOURCE_TYPE_INSTANCE.equals(sensorData.getResourceType()) || !Iterables.contains(uuidList,sensorData.getResourceUuid()))       continue;
      for (      final MetricsResourceType metricType : sensorData.getMetrics()) {
        for (        final MetricCounterType counterType : metricType.getCounters()) {
          for (          final MetricDimensionsType dimensionType : counterType.getDimensions()) {
            final List<MetricDimensionsValuesType> values=Lists.newArrayList(dimensionType.getValues());
            Collections.sort(values,Ordering.natural().onResultOf(GetTimestamp.INSTANCE));
            if (!values.isEmpty()) {
              final MetricDimensionsValuesType latestValue=Iterables.getLast(values);
              final Double usageValue=latestValue.getValue();
              final Long usageTimestamp=latestValue.getTimestamp().getTime();
              final long sequenceNumber=counterType.getSequenceNum() + (values.size() - 1);
              fireUsageEvent(new Supplier<InstanceUsageEvent>(){
                @Override public InstanceUsageEvent get(){
                  return new InstanceUsageEvent(sensorData.getResourceUuid(),sensorData.getResourceName(),metricType.getMetricName(),sequenceNumber,dimensionType.getDimensionName(),usageValue,usageTimestamp);
                }
              }
);
            }
          }
        }
      }
    }
  }
 catch (  Exception ex) {
    LOG.debug("String_Node_Str",ex);
  }
}