Program: 176264
Project: 176264
Buggy source:
private RedisQueryInterpreter onTranslation(Queue clauseQueue,EntityMetadata entityMetadata){
  RedisQueryInterpreter interpreter=new RedisQueryInterpreter(getColumns(getKunderaQuery().getResult(),entityMetadata));
  for (  Object clause : clauseQueue) {
    if (clause.getClass().isAssignableFrom(FilterClause.class)) {
      Object value=((FilterClause)clause).getValue();
      String condition=((FilterClause)clause).getCondition();
      String columnName=((FilterClause)clause).getProperty();
      if (columnName.equals(((AbstractAttribute)entityMetadata.getIdAttribute()).getJPAColumnName())) {
        interpreter.setById(true);
      }
      if (condition.equals("String_Node_Str")) {
        interpreter.setFieldName(columnName);
        interpreter.setValue(value);
      }
 else       if (condition.equals("String_Node_Str")) {
        validateClause(interpreter,condition,columnName);
        interpreter.setMin(columnName,value);
        if (interpreter.getMax() == null) {
          interpreter.setMax(columnName,-1D);
        }
      }
 else       if (condition.equals("String_Node_Str")) {
        validateClause(interpreter,condition,columnName);
        interpreter.setMax(columnName,value);
        if (interpreter.getMin() == null) {
          interpreter.setMin(columnName,0D);
        }
      }
 else       if (interpreter.getClause() != null) {
        throw new QueryHandlerException("String_Node_Str" + condition + "String_Node_Str");
      }
 else {
        throw new QueryHandlerException("String_Node_Str" + condition + "String_Node_Str");
      }
    }
 else {
      String opr=clause.toString();
      if (interpreter.getClause() == null) {
        if (opr.equalsIgnoreCase("String_Node_Str")) {
          interpreter.setClause(Clause.INTERSECT);
        }
 else         if (opr.equalsIgnoreCase("String_Node_Str")) {
          interpreter.setClause(Clause.UNION);
        }
 else {
          throw new QueryHandlerException("String_Node_Str" + opr + "String_Node_Str");
        }
      }
 else       if (RedisQueryInterpreter.getMappedClause(opr) == null) {
        throw new QueryHandlerException("String_Node_Str" + opr + "String_Node_Str");
      }
 else       if (interpreter.getClause() != null && !interpreter.getClause().equals(RedisQueryInterpreter.getMappedClause(opr))) {
        throw new QueryHandlerException("String_Node_Str");
      }
    }
  }
  return interpreter;
}

Fixed version (ground truth):
private RedisQueryInterpreter onTranslation(Queue clauseQueue,EntityMetadata entityMetadata){
  RedisQueryInterpreter interpreter=new RedisQueryInterpreter(getColumns(getKunderaQuery().getResult(),entityMetadata));
  for (  Object clause : clauseQueue) {
    if (clause.getClass().isAssignableFrom(FilterClause.class)) {
      Object value=((FilterClause)clause).getValue();
      String condition=((FilterClause)clause).getCondition();
      String columnName=((FilterClause)clause).getProperty();
      if (columnName.equals(((AbstractAttribute)entityMetadata.getIdAttribute()).getJPAColumnName())) {
        interpreter.setById(true);
      }
      if (condition.equals("String_Node_Str")) {
        interpreter.setFieldName(columnName);
        interpreter.setValue(value);
      }
 else       if (condition.equals("String_Node_Str")) {
        validateClause(interpreter,condition,columnName);
        interpreter.setMin(columnName,value);
        if (interpreter.getMax() == null) {
          interpreter.setMax(columnName,-1D);
        }
      }
 else       if (condition.equals("String_Node_Str")) {
        validateClause(interpreter,condition,columnName);
        interpreter.setMax(columnName,value);
        if (interpreter.getMin() == null) {
          interpreter.setMin(columnName,0D);
        }
      }
 else       if (interpreter.getClause() != null) {
        throw new QueryHandlerException("String_Node_Str" + condition + "String_Node_Str");
      }
 else {
        throw new QueryHandlerException("String_Node_Str" + condition + "String_Node_Str");
      }
    }
 else {
      String opr=clause.toString().trim();
      if (interpreter.getClause() == null) {
        if (opr.equalsIgnoreCase("String_Node_Str")) {
          interpreter.setClause(Clause.INTERSECT);
        }
 else         if (opr.equalsIgnoreCase("String_Node_Str")) {
          interpreter.setClause(Clause.UNION);
        }
 else {
          throw new QueryHandlerException("String_Node_Str" + opr + "String_Node_Str");
        }
      }
 else       if (RedisQueryInterpreter.getMappedClause(opr) == null) {
        throw new QueryHandlerException("String_Node_Str" + opr + "String_Node_Str");
      }
 else       if (interpreter.getClause() != null && !interpreter.getClause().equals(RedisQueryInterpreter.getMappedClause(opr))) {
        throw new QueryHandlerException("String_Node_Str");
      }
    }
  }
  return interpreter;
}