Program: 135739
Project: 135739
Buggy source:
private ProcessResult verbUpper(String verb,Map<String,Object> namespace,List<Object> statement){
  Token variable=getVariable(verb,statement,1,namespace);
  Token parameter=getParameter(verb,statement,2,namespace,EnumSet.of(TokenType.STRING,TokenType.ARRAY,TokenType.MAP));
  try {
switch (parameter.type) {
case STRING:
{
        String oldValue=parameter.getStringValue();
        String newValue;
        newValue=oldValue.toUpperCase();
        variable.set(newValue);
      }
    break;
case ARRAY:
{
    List<Object> oldValue=parameter.getListValue();
    List<Object> newValue=new ArrayList<Object>(oldValue.size());
    String oldItem;
    String newItem;
    for (    Object item : oldValue) {
      try {
        oldItem=(String)item;
      }
 catch (      ClassCastException e) {
        throw new InvalidValueException(String.format("String_Node_Str",verb,item,parameter.getObjectValue()));
      }
      newItem=oldItem.toUpperCase();
      newValue.add(newItem);
    }
    variable.set(newValue);
  }
break;
case MAP:
{
Map<String,Object> oldValue=parameter.getMapValue();
Map<String,Object> newValue=new LinkedHashMap<String,Object>(oldValue.size());
for (Map.Entry<String,Object> entry : oldValue.entrySet()) {
  String oldKey;
  String newKey;
  Object value=entry.getValue();
  oldKey=entry.getKey();
  newKey=oldKey.toUpperCase();
  newValue.put(newKey,value);
}
variable.set(newValue);
}
break;
default :
throw new IllegalStateException(String.format("String_Node_Str",parameter.type));
}
}
 catch (Exception e) {
throw new InvalidValueException(String.format("String_Node_Str",verb,variable,parameter.getObjectValue(),e),e);
}
this.success=true;
if (logger.isDebugEnabled()) {
logger.debug(String.format("String_Node_Str",statementId(namespace),verb,this.success,variable,variable.get(),parameter.getObjectValue()));
}
return ProcessResult.STATEMENT_CONTINUE;
}

Fixed version (ground truth):
private ProcessResult verbUpper(String verb,Map<String,Object> namespace,List<Object> statement){
  Token variable=getVariable(verb,statement,1,namespace);
  Token parameter=getParameter(verb,statement,2,namespace,EnumSet.of(TokenType.STRING,TokenType.ARRAY,TokenType.MAP));
  try {
switch (parameter.type) {
case STRING:
{
        String oldValue=parameter.getStringValue();
        String newValue;
        newValue=oldValue.toUpperCase();
        variable.set(newValue);
      }
    break;
case ARRAY:
{
    List<Object> oldValue=parameter.getListValue();
    List<Object> newValue=new ArrayList<Object>(oldValue.size());
    String oldItem;
    String newItem;
    for (    Object item : oldValue) {
      try {
        oldItem=(String)item;
      }
 catch (      ClassCastException e) {
        throw new InvalidValueException(String.format("String_Node_Str",verb,item,parameter.getObjectValue(),e));
      }
      newItem=oldItem.toUpperCase();
      newValue.add(newItem);
    }
    variable.set(newValue);
  }
break;
case MAP:
{
Map<String,Object> oldValue=parameter.getMapValue();
Map<String,Object> newValue=new LinkedHashMap<String,Object>(oldValue.size());
for (Map.Entry<String,Object> entry : oldValue.entrySet()) {
  String oldKey;
  String newKey;
  Object value=entry.getValue();
  oldKey=entry.getKey();
  newKey=oldKey.toUpperCase();
  newValue.put(newKey,value);
}
variable.set(newValue);
}
break;
default :
throw new IllegalStateException(String.format("String_Node_Str",parameter.type));
}
}
 catch (Exception e) {
throw new InvalidValueException(String.format("String_Node_Str",verb,variable,parameter.getObjectValue(),e),e);
}
this.success=true;
if (logger.isDebugEnabled()) {
logger.debug(String.format("String_Node_Str",statementId(namespace),verb,this.success,variable,variable.get(),parameter.getObjectValue()));
}
return ProcessResult.STATEMENT_CONTINUE;
}