Program: 13314
Project: 13314
Buggy source:
/** 
 * Creates a map representing an instance's state and recovery statistics that can be used for  responses to read requests.
 * @param instanceValue an instances state object
 * @return a map representing an instance's state and recovery statistics
 */
private Map<String,Object> getInstanceMap(JsonValue instanceValue){
  DateUtil dateUtil=DateUtil.getDateUtil();
  Map<String,Object> instanceInfo=new HashMap<String,Object>();
  String instanceId=instanceValue.get("String_Node_Str").asString();
  InstanceState state=new InstanceState(instanceId,instanceValue.asMap());
  instanceInfo.put("String_Node_Str",instanceId);
  instanceInfo.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getStartup())));
  instanceInfo.put("String_Node_Str","String_Node_Str");
  Map<String,Object> recoveryMap=new HashMap<String,Object>();
switch (state.getState()) {
case InstanceState.STATE_RUNNING:
    instanceInfo.put("String_Node_Str","String_Node_Str");
  break;
case InstanceState.STATE_DOWN:
instanceInfo.put("String_Node_Str","String_Node_Str");
if (!state.hasShutdown() && state.getRecoveryAttempts() > 0) {
recoveryMap.put("String_Node_Str",state.getRecoveringInstanceId());
recoveryMap.put("String_Node_Str",state.getRecoveryAttempts());
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryStarted())));
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryFinished())));
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getDetectedDown())));
instanceInfo.put("String_Node_Str",recoveryMap);
}
 else if (state.getRecoveryAttempts() > 0) {
instanceInfo.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getShutdown())));
}
break;
case InstanceState.STATE_PROCESSING_DOWN:
recoveryMap.put("String_Node_Str","String_Node_Str");
recoveryMap.put("String_Node_Str",state.getRecoveryAttempts());
recoveryMap.put("String_Node_Str",state.getRecoveringInstanceId());
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryStarted())));
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getDetectedDown())));
instanceInfo.put("String_Node_Str",recoveryMap);
}
return instanceInfo;
}

Fixed version (ground truth):
/** 
 * Creates a map representing an instance's state and recovery statistics that can be used for  responses to read requests.
 * @param instanceValue an instances state object
 * @return a map representing an instance's state and recovery statistics
 */
private Map<String,Object> getInstanceMap(JsonValue instanceValue){
  DateUtil dateUtil=DateUtil.getDateUtil();
  Map<String,Object> instanceInfo=new HashMap<String,Object>();
  String instanceId=instanceValue.get("String_Node_Str").asString();
  InstanceState state=new InstanceState(instanceId,instanceValue.asMap());
  instanceInfo.put("String_Node_Str",instanceId);
  instanceInfo.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getStartup())));
  instanceInfo.put("String_Node_Str","String_Node_Str");
  Map<String,Object> recoveryMap=new HashMap<String,Object>();
switch (state.getState()) {
case InstanceState.STATE_RUNNING:
    instanceInfo.put("String_Node_Str","String_Node_Str");
  break;
case InstanceState.STATE_DOWN:
instanceInfo.put("String_Node_Str","String_Node_Str");
if (!state.hasShutdown()) {
if (state.getRecoveryAttempts() > 0) {
  recoveryMap.put("String_Node_Str",state.getRecoveringInstanceId());
  recoveryMap.put("String_Node_Str",state.getRecoveryAttempts());
  recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryStarted())));
  recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryFinished())));
  recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getDetectedDown())));
  instanceInfo.put("String_Node_Str",recoveryMap);
}
 else {
  logger.error("String_Node_Str",instanceId);
}
}
 else {
instanceInfo.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getShutdown())));
}
break;
case InstanceState.STATE_PROCESSING_DOWN:
recoveryMap.put("String_Node_Str","String_Node_Str");
recoveryMap.put("String_Node_Str",state.getRecoveryAttempts());
recoveryMap.put("String_Node_Str",state.getRecoveringInstanceId());
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getRecoveryStarted())));
recoveryMap.put("String_Node_Str",dateUtil.formatDateTime(new Date(state.getDetectedDown())));
instanceInfo.put("String_Node_Str",recoveryMap);
}
return instanceInfo;
}