nus-yam/ex-repair huggingface dataset:
Program: 76553
Project: 76553
Buggy source:
private void populateList(){
  try {
    getOkButton().setEnabled(false);
    selectValueList.removeAll();
    viewerValueList.clear();
    if (modelValueList != null && modelValueList.size() > 0) {
      Iterator iter=modelValueList.iterator();
      while (iter.hasNext()) {
        Object candiateValue=iter.next();
        if (candiateValue != null) {
          String displayCandiateValue;
          if (candiateValue instanceof Date)           displayCandiateValue=ParameterValidationUtil.getDisplayValue(DesignChoiceConstants.PARAM_TYPE_DATETIME,null,candiateValue);
 else           displayCandiateValue=DataTypeUtil.toString(candiateValue);
          viewerValueList.add(displayCandiateValue);
          selectValueList.add(displayCandiateValue);
        }
      }
    }
 else {
      selectValueList.removeAll();
      modelValueList.clear();
      viewerValueList.clear();
      ExceptionHandler.openErrorMessageBox(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (selectValueList.getItemCount() > 0) {
      selectValueList.select(0);
      getOkButton().setEnabled(true);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.handle(e);
  }
}

Fixed version (ground truth):
/** 
 * populate all available value in selectValueList
 */
private void populateList(){
  try {
    getOkButton().setEnabled(false);
    selectValueList.removeAll();
    viewerValueList.clear();
    if (modelValueList != null && modelValueList.size() > 0) {
      Iterator iter=modelValueList.iterator();
      while (iter.hasNext()) {
        Object candiateValue=iter.next();
        if (candiateValue != null) {
          String displayCandiateValue;
          if (candiateValue instanceof Date) {
            SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
            displayCandiateValue=sdf.format((Date)candiateValue);
          }
 else           displayCandiateValue=DataTypeUtil.toString(candiateValue);
          viewerValueList.add(displayCandiateValue);
          selectValueList.add(displayCandiateValue);
        }
      }
    }
 else {
      selectValueList.removeAll();
      modelValueList.clear();
      viewerValueList.clear();
      ExceptionHandler.openErrorMessageBox(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (selectValueList.getItemCount() > 0) {
      selectValueList.select(0);
      getOkButton().setEnabled(true);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.handle(e);
  }
}
Program: 76555
Project: 76555
Buggy source:
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  String valueExpr=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getValueExpr();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,valueExpr,controlType,hidden,allowNull,allowBlank,mustMatch,concealValue,group,null);
  return param;
}

Fixed version (ground truth):
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  String valueExpr=scalarParamHandle == null ? null : scalarParamHandle.getValueExpr();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,valueExpr,controlType,hidden,allowNull,allowBlank,mustMatch,concealValue,group,null);
  return param;
}
Program: 76556
Project: 76556
Buggy source:
/** 
 */
private void mappingParentColumnBinding(){
  if (baseQueryDefn instanceof ISubqueryDefinition) {
    Map parentBindings=baseQueryDefn.getParentQuery().getResultSetExpressions();
{
      Iterator it=parentBindings.keySet().iterator();
      while (it.hasNext()) {
        Object o=it.next();
        IBaseExpression expr=(IBaseExpression)parentBindings.get(o);
        if (expr instanceof IScriptExpression) {
          if (!ExpressionUtil.hasAggregation(((IScriptExpression)expr).getText())) {
            if (baseQueryDefn.getResultSetExpressions().get(o) == null)             baseQueryDefn.getResultSetExpressions().put(o,expr);
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 */
private void mappingParentColumnBinding(){
  if (baseQueryDefn instanceof ISubqueryDefinition) {
    Map parentBindings=baseQueryDefn.getParentQuery().getResultSetExpressions();
{
      Iterator it=parentBindings.keySet().iterator();
      while (it.hasNext()) {
        Object o=it.next();
        IBaseExpression expr=(IBaseExpression)parentBindings.get(o);
        if (expr instanceof IScriptExpression) {
          if (!ExpressionUtil.hasAggregation(((IScriptExpression)expr).getText())) {
            if (baseQueryDefn.getResultSetExpressions().get(o) == null) {
              baseQueryDefn.getResultSetExpressions().put(o,copyScriptExpr(expr));
            }
          }
        }
      }
    }
  }
}
Program: 76557
Project: 76557
Buggy source:
/** 
 * populate all available value in selectValueList
 */
private void populateList(){
  try {
    getOkButton().setEnabled(false);
    selectValueList.removeAll();
    viewerValueList.clear();
    if (modelValueList != null && modelValueList.size() > 0) {
      Iterator iter=modelValueList.iterator();
      while (iter.hasNext()) {
        Object candiateValue=iter.next();
        if (candiateValue != null) {
          String displayCandiateValue;
          if (candiateValue instanceof Date) {
            SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
            displayCandiateValue=sdf.format((Date)candiateValue);
          }
 else           displayCandiateValue=DataTypeUtil.toString(candiateValue);
          viewerValueList.add(displayCandiateValue);
          selectValueList.add(displayCandiateValue);
        }
      }
    }
 else {
      selectValueList.removeAll();
      modelValueList.clear();
      viewerValueList.clear();
      ExceptionHandler.openErrorMessageBox(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (selectValueList.getItemCount() > 0) {
      selectValueList.select(0);
      getOkButton().setEnabled(true);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.handle(e);
  }
}

Fixed version (ground truth):
/** 
 * populate all available value in selectValueList
 */
private void populateList(){
  try {
    getOkButton().setEnabled(false);
    selectValueList.removeAll();
    viewerValueList.clear();
    if (modelValueList != null && modelValueList.size() > 0) {
      Iterator iter=modelValueList.iterator();
      while (iter.hasNext()) {
        Object candiateValue=iter.next();
        if (candiateValue != null) {
          String displayCandiateValue;
          if (candiateValue instanceof Date) {
            DateFormatter formatter=new DateFormatter(ULocale.US);
            formatter.applyPattern("String_Node_Str");
            displayCandiateValue=formatter.format((Date)candiateValue);
          }
 else           displayCandiateValue=DataTypeUtil.toString(candiateValue);
          viewerValueList.add(displayCandiateValue);
          selectValueList.add(displayCandiateValue);
        }
      }
    }
 else {
      selectValueList.removeAll();
      modelValueList.clear();
      viewerValueList.clear();
      ExceptionHandler.openErrorMessageBox(Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
    }
    if (selectValueList.getItemCount() > 0) {
      selectValueList.select(0);
      getOkButton().setEnabled(true);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.handle(e);
  }
}
Program: 76561
Project: 76561
Buggy source:
public void resolveBottomBorder(){
  if (rows.size() == 0) {
    return;
  }
  Row row=(Row)rows.getCurrent();
  HashSet cells=new HashSet();
  for (int i=0; i < columnNumber; i++) {
    CellArea cell=row.getCell(start + i);
    if (cell instanceof DummyCell) {
      CellArea ref=((DummyCell)cell).getCell();
      if (!cells.contains(ref)) {
        int width=resolveBottomBorder(ref);
        if (width > 0) {
          ref.setHeight(ref.getHeight() + width);
        }
        cells.add(ref);
      }
    }
 else {
      if (!cells.contains(cell)) {
        int width=resolveBottomBorder(cell);
        if (width > 0) {
          cell.setHeight(cell.getHeight() + width);
        }
        cells.add(cell);
      }
    }
  }
}

Fixed version (ground truth):
public void resolveBottomBorder(){
  if (rows.size() == 0) {
    return;
  }
  Row row=(Row)rows.getCurrent();
  HashSet cells=new HashSet();
  for (int i=0; i < columnNumber; i++) {
    CellArea cell=row.getCell(start + i);
    if (cell != null) {
      if (cell instanceof DummyCell) {
        CellArea ref=((DummyCell)cell).getCell();
        if (!cells.contains(ref)) {
          int width=resolveBottomBorder(ref);
          if (width > 0) {
            ref.setHeight(ref.getHeight() + width);
          }
          cells.add(ref);
        }
      }
 else {
        if (!cells.contains(cell)) {
          int width=resolveBottomBorder(cell);
          if (width > 0) {
            cell.setHeight(cell.getHeight() + width);
          }
          cells.add(cell);
        }
      }
    }
  }
}
Program: 76562
Project: 76562
Buggy source:
protected void keepUnresolvedCell(Row lastRow){
  unfinishedRow=new UnresolvedRow();
  for (int i=0; i < columnNumber; i++) {
    CellArea cell=lastRow.getCell(start + i);
    int rowSpan=cell.getRowSpan();
    if (rowSpan < 0 || rowSpan > 1) {
      unfinishedRow.addUnresolvedCell((ICellContent)cell.getContent(),getLeftRowSpan(lastRow.finished,rowSpan));
    }
 else     if (rowSpan == 1) {
      if (!lastRow.finished) {
        unfinishedRow.addUnresolvedCell((ICellContent)cell.getContent(),1);
      }
    }
  }
}

Fixed version (ground truth):
protected void keepUnresolvedCell(Row lastRow){
  unfinishedRow=new UnresolvedRow();
  for (int i=0; i < columnNumber; i++) {
    CellArea cell=lastRow.getCell(start + i);
    if (cell != null) {
      int rowSpan=cell.getRowSpan();
      if (rowSpan < 0 || rowSpan > 1) {
        unfinishedRow.addUnresolvedCell((ICellContent)cell.getContent(),getLeftRowSpan(lastRow.finished,rowSpan));
      }
 else       if (rowSpan == 1) {
        if (!lastRow.finished) {
          unfinishedRow.addUnresolvedCell((ICellContent)cell.getContent(),1);
        }
      }
    }
  }
}
Program: 76564
Project: 76564
Buggy source:
public void visitText(ITextArea textArea){
  ContainerPosition curPos;
  if (!containerStack.isEmpty())   curPos=(ContainerPosition)containerStack.peek();
 else   curPos=new ContainerPosition(0,0);
  int x=curPos.x + textArea.getX() + (int)(textArea.getFontInfo().getFontSize() * hTextSpace);
  int y=curPos.y + textArea.getY() + (int)(textArea.getFontInfo().getFontSize() * vTextSpace);
  drawTextAt(textArea,x,y,cb,pageHeight);
  makeBookmark(textArea,curPos);
  handleHyperlinkAction(textArea,curPos);
}

Fixed version (ground truth):
public void visitText(ITextArea textArea){
  ContainerPosition curPos;
  if (!containerStack.isEmpty())   curPos=(ContainerPosition)containerStack.peek();
 else   curPos=new ContainerPosition(0,0);
  int x=curPos.x + textArea.getX();
  int y=curPos.y + textArea.getY();
  drawTextAt(textArea,x,y,cb,pageHeight);
  makeBookmark(textArea,curPos);
  handleHyperlinkAction(textArea,curPos);
}
Program: 76565
Project: 76565
Buggy source:
public static void main(String[] args){
  File manifestHead=new File(args[0]);
  File manifestBody=new File(args[1]);
  File mainfestRslt=new File(args[2]);
  try {
    FileInputStream f=new FileInputStream(manifestHead);
    int len=f.available();
    byte[] b=new byte[len + 1];
    int j=f.read(b,0,len);
    f.close();
    String ff=new String(b,0,len);
    StringBuffer strb=new StringBuffer(ff);
    System.out.println(strb.toString());
    FileReader freader=new FileReader(manifestBody);
    BufferedReader breader=new BufferedReader(freader);
    String myString;
    while ((myString=breader.readLine()) != null) {
      if (myString.startsWith("String_Node_Str"))       continue;
      if (myString.startsWith("String_Node_Str"))       continue;
      strb.append(myString);
      strb.append("String_Node_Str");
    }
    int lastDelimer=strb.lastIndexOf("String_Node_Str");
    String result=strb.substring(0,lastDelimer);
    result.concat("String_Node_Str");
    System.out.println(result);
    FileOutputStream Result=new FileOutputStream(mainfestRslt);
    byte[] writeByte=new byte[result.length() + 1];
    writeByte=result.getBytes();
    Result.write(writeByte);
  }
 catch (  Exception e) {
    throw new BuildException("String_Node_Str");
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  File manifestHead=new File(args[0]);
  File manifestBody=new File(args[1]);
  File mainfestRslt=new File(args[2]);
  String suffix="String_Node_Str";
  String manifestBody_proc=args[1] + suffix;
  File fBody_proc=new File(manifestBody_proc);
  if (fBody_proc.exists()) {
    fBody_proc.delete();
  }
  try {
    fBody_proc.createNewFile();
  }
 catch (  IOException ex) {
    ex.printStackTrace();
  }
  try {
    FileInputStream f=new FileInputStream(manifestHead);
    int len=f.available();
    byte[] b=new byte[len];
    f.read(b,0,len);
    f.close();
    String ff=new String(b,0,len);
    StringBuffer strb=new StringBuffer(ff);
    ProcFile(manifestBody,fBody_proc);
    FileReader freader=new FileReader(fBody_proc);
    BufferedReader breader=new BufferedReader(freader);
    String myString;
    while ((myString=breader.readLine()) != null) {
      strb.append(myString);
      strb.append("String_Node_Str");
    }
    int lastDelimer=strb.lastIndexOf("String_Node_Str");
    String tmp=strb.substring(0,lastDelimer);
    String result=new String(tmp.getBytes("String_Node_Str"));
    result=result + "String_Node_Str";
    System.out.println(result);
    FileOutputStream Result=new FileOutputStream(mainfestRslt);
    Result.write(result.getBytes("String_Node_Str"));
    fBody_proc.delete();
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new BuildException("String_Node_Str");
  }
}
Program: 76570
Project: 76570
Buggy source:
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,controlType,hidden,allowNull,allowBlank,mustMatch,concealValue,group,null);
  return param;
}

Fixed version (ground truth):
/** 
 * Convert Scalar Parameter Definition
 * @param engineParam
 * @param group
 * @return
 */
private static ParameterDefinition convertScalarParameter(IScalarParameterDefn engineParam,ParameterGroupDefinition group){
  Object handle=engineParam.getHandle();
  ScalarParameterHandle scalarParamHandle=null;
  if (handle instanceof ScalarParameterHandle)   scalarParamHandle=(ScalarParameterHandle)handle;
  String name=engineParam.getName();
  long id=scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
  String pattern=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getPattern();
  String displayFormat=engineParam.getDisplayFormat();
  String displayName=engineParam.getDisplayName();
  String helpText=engineParam.getHelpText();
  String promptText=engineParam.getPromptText();
  int dataType=engineParam.getDataType();
  String valueExpr=scalarParamHandle == null ? "String_Node_Str" : scalarParamHandle.getValueExpr();
  int controlType=engineParam.getControlType();
  boolean hidden=engineParam.isHidden();
  boolean allowNull=engineParam.allowNull();
  boolean allowBlank=engineParam.allowBlank();
  boolean mustMatch=scalarParamHandle == null ? false : scalarParamHandle.isMustMatch();
  boolean concealValue=engineParam.isValueConcealed();
  ParameterDefinition param=new ParameterDefinition(id,name,pattern,displayFormat,displayName,helpText,promptText,dataType,valueExpr,controlType,hidden,allowNull,allowBlank,mustMatch,concealValue,group,null);
  return param;
}
Program: 76571
Project: 76571
Buggy source:
public ParameterDefinition(long id,String name,String pattern,String displayFormat,String displayName,String helpText,String promptText,int dataType,int controlType,boolean hidden,boolean allowNull,boolean allowBlank,boolean mustMatch,boolean concealValue,ParameterGroupDefinition group,Collection selectionList){
  this.id=id;
  this.name=name;
  this.pattern=pattern;
  this.displayFormat=displayFormat;
  this.displayName=displayName;
  this.helpText=helpText;
  this.promptText=promptText;
  this.dataType=dataType;
  this.controlType=controlType;
  this.hidden=hidden;
  this.allowNull=allowNull;
  this.allowBlank=allowBlank;
  this.mustMatch=mustMatch;
  this.concealValue=concealValue;
  this.group=group;
  this.selectionList=selectionList;
}

Fixed version (ground truth):
public ParameterDefinition(long id,String name,String pattern,String displayFormat,String displayName,String helpText,String promptText,int dataType,String valueExpr,int controlType,boolean hidden,boolean allowNull,boolean allowBlank,boolean mustMatch,boolean concealValue,ParameterGroupDefinition group,Collection selectionList){
  this.id=id;
  this.name=name;
  this.pattern=pattern;
  this.displayFormat=displayFormat;
  this.displayName=displayName;
  this.helpText=helpText;
  this.promptText=promptText;
  this.dataType=dataType;
  this.valueExpr=valueExpr;
  this.controlType=controlType;
  this.hidden=hidden;
  this.allowNull=allowNull;
  this.allowBlank=allowBlank;
  this.mustMatch=mustMatch;
  this.concealValue=concealValue;
  this.group=group;
  this.selectionList=selectionList;
}
Program: 76572
Project: 76572
Buggy source:
/** 
 */
public ExprManager(){
  bindingExprs=new ArrayList();
  autoBindingExprMap=new HashMap();
  entryLevel=OVERALL_GROUP;
}

Fixed version (ground truth):
/** 
 */
public ExprManager(IBaseQueryDefinition baseQueryDefn){
  bindingExprs=new ArrayList();
  autoBindingExprMap=new HashMap();
  entryLevel=OVERALL_GROUP;
  this.baseQueryDefn=baseQueryDefn;
}
Program: 76573
Project: 76573
Buggy source:
/** 
 * @throws DataException
 */
public void validateColumnBinding() throws DataException {
  ExprManagerUtil.validateColumnBinding(this);
}

Fixed version (ground truth):
/** 
 * @throws DataException
 */
public void validateColumnBinding() throws DataException {
  ExprManagerUtil.validateColumnBinding(this,baseQueryDefn);
}
Program: 76574
Project: 76574
Buggy source:
/** 
 * This method tests whether column bindings in ExprManager is valid or not.
 * @param exprManager
 * @return
 * @throws DataException
 */
public static void validateColumnBinding(ExprManager exprManager) throws DataException {
  ExprManagerUtil util=new ExprManagerUtil(exprManager);
  util.checkColumnBindingExpression();
  util.checkDependencyCycle();
  util.checkGroupNameValidation();
}

Fixed version (ground truth):
/** 
 * This method tests whether column bindings in ExprManager is valid or not.
 * @param exprManager
 * @return
 * @throws DataException
 */
public static void validateColumnBinding(ExprManager exprManager,IBaseQueryDefinition baseQueryDefn) throws DataException {
  ExprManagerUtil util=new ExprManagerUtil(exprManager);
  util.checkColumnBindingExpression(baseQueryDefn);
  util.checkDependencyCycle();
  util.checkGroupNameValidation();
}
Program: 76575
Project: 76575
Buggy source:
/** 
 * Check whether the expression of all the column bindings is valid.
 * @param exprManager
 * @return
 * @throws DataException
 */
private void checkColumnBindingExpression() throws DataException {
  List list=this.getColumnNames();
  for (int i=0; i < list.size(); i++) {
    String name=list.get(i).toString();
    IBaseExpression expr=exprManager.getExpr(name);
    if (expr != null) {
      if (!(expr instanceof IScriptExpression || expr instanceof IConditionalExpression)) {
        throw new DataException(ResourceConstants.BAD_DATA_EXPRESSION);
      }
      List l=null;
      try {
        if (expr instanceof IScriptExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IScriptExpression)expr);
 else         if (expr instanceof IConditionalExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IConditionalExpression)expr);
      }
 catch (      DataException e) {
      }
      if (l != null) {
        for (int j=0; j < l.size(); j++) {
          checkColumnBindingExist(l.get(j).toString(),list);
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Check whether the expression of all the column bindings is valid.
 * @param exprManager
 * @return
 * @throws DataException
 */
private void checkColumnBindingExpression(IBaseQueryDefinition baseQueryDefn) throws DataException {
  List list=this.getColumnNames();
  for (int i=0; i < list.size(); i++) {
    String name=list.get(i).toString();
    IBaseExpression expr=exprManager.getExpr(name);
    if (expr != null) {
      if (!(expr instanceof IScriptExpression || expr instanceof IConditionalExpression)) {
        throw new DataException(ResourceConstants.BAD_DATA_EXPRESSION);
      }
      List l=null;
      try {
        if (expr instanceof IScriptExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IScriptExpression)expr);
 else         if (expr instanceof IConditionalExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IConditionalExpression)expr);
      }
 catch (      DataException e) {
      }
      if (l != null) {
        for (int j=0; j < l.size(); j++) {
          checkColumnBindingExist(l.get(j).toString(),list);
        }
      }
      List usedBindings=null;
      if (expr instanceof IScriptExpression) {
        try {
          usedBindings=ExpressionUtil.extractColumnExpressions(((IScriptExpression)expr).getText(),true);
        }
 catch (        BirtException e) {
          return;
        }
        validateReferredColumnBinding(name,usedBindings,baseQueryDefn);
      }
    }
  }
}
Program: 76577
Project: 76577
Buggy source:
/** 
 * Test reference to not exist column binding in an expression.
 * @throws DataException
 */
public void testValidateNodes13() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Test reference to not exist column binding in an expression.
 * @throws DataException
 */
public void testValidateNodes13() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
    e.printStackTrace();
  }
}
Program: 76578
Project: 76578
Buggy source:
public void testValidateNodes12() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testValidateNodes12() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}
Program: 76579
Project: 76579
Buggy source:
public void testValidateNodes11() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_EQ,"String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}

Fixed version (ground truth):
public void testValidateNodes11() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_EQ,"String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}
Program: 76580
Project: 76580
Buggy source:
public void testValidateNodes10() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_EQ,"String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testValidateNodes10() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ConditionalExpression("String_Node_Str",IConditionalExpression.OP_EQ,"String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}
Program: 76582
Project: 76582
Buggy source:
public void testValidateNodes2() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}

Fixed version (ground truth):
public void testValidateNodes2() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}
Program: 76583
Project: 76583
Buggy source:
public void testValidateNodes1() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
public void testValidateNodes1() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}
Program: 76584
Project: 76584
Buggy source:
public void testValidateNodes4() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}

Fixed version (ground truth):
public void testValidateNodes4() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}
Program: 76585
Project: 76585
Buggy source:
public void testValidateNodes3() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}

Fixed version (ground truth):
public void testValidateNodes3() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr(null,m,0);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
    fail("String_Node_Str");
  }
 catch (  DataException e) {
  }
}
Program: 76587
Project: 76587
Buggy source:
/** 
 * Test valid group keys
 * @throws DataException
 */
public void testValidateNodes5() throws DataException {
  ExprManager em=new ExprManager();
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,1);
  m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,2);
  m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,3);
  try {
    ExprManagerUtil.validateColumnBinding(em);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Test valid group keys
 * @throws DataException
 */
public void testValidateNodes5() throws DataException {
  ExprManager em=new ExprManager(null);
  Map m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,1);
  m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,2);
  m=new HashMap();
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  m.put("String_Node_Str",new ScriptExpression("String_Node_Str"));
  em.addBindingExpr("String_Node_Str",m,3);
  try {
    ExprManagerUtil.validateColumnBinding(em,null);
  }
 catch (  DataException e) {
    fail("String_Node_Str");
  }
}
Program: 76590
Project: 76590
Buggy source:
private String getAttributeValue(String value){
  if (value != null) {
    int length=value.length();
    if (length > 2) {
      value=value.substring(1,length - 1);
    }
  }
  return value;
}

Fixed version (ground truth):
private String getAttributeValue(String value){
  if (value != null) {
    int length=value.length();
    if (length > 2) {
      if (value.charAt(0) == '"' || value.charAt(0) == '\'') {
        value=value.substring(1,length - 1);
      }
    }
  }
  return value;
}
Program: 76593
Project: 76593
Buggy source:
/** 
 * Check whether the expression of all the column bindings is valid.
 * @param exprManager
 * @return
 * @throws DataException
 */
private void checkColumnBindingExpression(IBaseQueryDefinition baseQueryDefn) throws DataException {
  List list=this.getColumnNames();
  for (int i=0; i < list.size(); i++) {
    String name=list.get(i).toString();
    IBaseExpression expr=exprManager.getExpr(name);
    if (expr != null) {
      if (!(expr instanceof IScriptExpression || expr instanceof IConditionalExpression)) {
        throw new DataException(ResourceConstants.BAD_DATA_EXPRESSION);
      }
      List l=null;
      try {
        if (expr instanceof IScriptExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IScriptExpression)expr);
 else         if (expr instanceof IConditionalExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IConditionalExpression)expr);
      }
 catch (      DataException e) {
      }
      if (l != null) {
        for (int j=0; j < l.size(); j++) {
          checkColumnBindingExist(l.get(j).toString(),list);
        }
      }
      List usedBindings=null;
      if (expr instanceof IScriptExpression) {
        try {
          usedBindings=ExpressionUtil.extractColumnExpressions(((IScriptExpression)expr).getText(),true);
        }
 catch (        BirtException e) {
          return;
        }
        validateReferredColumnBinding(name,usedBindings,baseQueryDefn);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Check whether the expression of all the column bindings is valid.
 * @param exprManager
 * @return
 * @throws DataException
 */
private void checkColumnBindingExpression(IBaseQueryDefinition baseQueryDefn) throws DataException {
  List list=this.getColumnNames();
  for (int i=0; i < list.size(); i++) {
    String name=list.get(i).toString();
    IBaseExpression expr=exprManager.getExpr(name);
    if (expr != null) {
      if (!(expr instanceof IScriptExpression || expr instanceof IConditionalExpression)) {
        throw new DataException(ResourceConstants.BAD_DATA_EXPRESSION);
      }
      List l=null;
      try {
        if (expr instanceof IScriptExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IScriptExpression)expr);
 else         if (expr instanceof IConditionalExpression)         l=ExpressionCompilerUtil.extractColumnExpression((IConditionalExpression)expr);
      }
 catch (      DataException e) {
      }
      if (l != null) {
        for (int j=0; j < l.size(); j++) {
          checkColumnBindingExist(l.get(j).toString(),list);
        }
      }
      List usedBindings=null;
      if (expr instanceof IScriptExpression) {
        try {
          usedBindings=ExpressionUtil.extractColumnExpressions(((IScriptExpression)expr).getText(),true);
        }
 catch (        BirtException e) {
          continue;
        }
        validateReferredColumnBinding(name,usedBindings,baseQueryDefn);
      }
    }
  }
}
Program: 76594
Project: 76594
Buggy source:
public void setProperty(String name,String value) throws OdaException {
  if (name == null)   throw new NullPointerException("String_Node_Str");
  if (name.equals("String_Node_Str")) {
    if (value != null && value.length() > 0) {
      try {
        double secs=Double.parseDouble(value);
        this.callStat.setQueryTimeout((int)secs);
      }
 catch (      SQLException e) {
        logger.log(Level.FINE,"String_Node_Str",e);
      }
    }
  }
 else {
    OdaException e=new OdaException("String_Node_Str" + name);
    logger.logp(java.util.logging.Level.FINE,CallStatement.class.getName(),"String_Node_Str","String_Node_Str",e);
    throw e;
  }
}

Fixed version (ground truth):
public void setProperty(String name,String value) throws OdaException {
  if (name == null)   throw new NullPointerException("String_Node_Str");
  if (name.equals("String_Node_Str")) {
    if (value != null && value.length() > 0) {
      try {
        double secs=Double.parseDouble(value);
        this.callStat.setQueryTimeout((int)secs);
      }
 catch (      SQLException e) {
        logger.log(Level.FINE,"String_Node_Str",e);
      }
    }
  }
 else   if (name.equals(ConnectionProfileProperty.PROFILE_NAME_PROP_KEY) || name.equals(ConnectionProfileProperty.PROFILE_STORE_FILE_PROP_KEY) || name.equals(ConnectionProfileProperty.PROFILE_STORE_FILE_PATH_PROP_KEY)) {
  }
 else {
    OdaException e=new OdaException("String_Node_Str" + name);
    logger.logp(java.util.logging.Level.FINE,CallStatement.class.getName(),"String_Node_Str","String_Node_Str",e);
    throw e;
  }
}
Program: 76595
Project: 76595
Buggy source:
/** 
 * Creates bound columns for list/table group.
 * @param element the list/table group
 * @param module the root of the report item
 */
private void dealListingGroup(GroupElement element,Module module){
  String value=(String)element.getLocalProperty(module,IGroupElementModel.KEY_EXPR_PROP);
  if (value != null)   handleBoundsForValue(element,module,value);
  value=(String)element.getLocalProperty(module,IGroupElementModel.TOC_PROP);
  if (value != null)   handleBoundsForValue(element,module,value);
  List values=(List)element.getLocalProperty(module,IGroupElementModel.FILTER_PROP);
  if (!(values == null || values.size() < 1)) {
    for (int i=0; i < values.size(); i++) {
      FilterCondition struct=(FilterCondition)values.get(i);
      handleBoundsForValue(element,module,struct.getExpr());
      handleBoundsForValue(element,module,struct.getValue1());
      handleBoundsForValue(element,module,struct.getValue2());
    }
  }
  values=(List)element.getLocalProperty(module,IGroupElementModel.SORT_PROP);
  if (!(values == null || values.size() < 1)) {
    for (int i=0; i < values.size(); i++) {
      SortKey struct=(SortKey)values.get(i);
      handleBoundsForValue(element,module,struct.getKey());
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates bound columns for list/table group.
 * @param element the list/table group
 * @param module the root of the report item
 */
private void dealListingGroup(GroupElement element,Module module){
  String value=(String)element.getLocalProperty(module,IGroupElementModel.KEY_EXPR_PROP);
  if (value != null)   handleBoundsForValue(element,module,value);
  TOC toc=(TOC)element.getLocalProperty(module,IGroupElementModel.TOC_PROP);
  if (toc != null)   handleBoundsForValue(element,module,toc.getExpression());
  List values=(List)element.getLocalProperty(module,IGroupElementModel.FILTER_PROP);
  if (!(values == null || values.size() < 1)) {
    for (int i=0; i < values.size(); i++) {
      FilterCondition struct=(FilterCondition)values.get(i);
      handleBoundsForValue(element,module,struct.getExpr());
      handleBoundsForValue(element,module,struct.getValue1());
      handleBoundsForValue(element,module,struct.getValue2());
    }
  }
  values=(List)element.getLocalProperty(module,IGroupElementModel.SORT_PROP);
  if (!(values == null || values.size() < 1)) {
    for (int i=0; i < values.size(); i++) {
      SortKey struct=(SortKey)values.get(i);
      handleBoundsForValue(element,module,struct.getKey());
    }
  }
}