Program: 119590
Project: 119590
Buggy source:
private boolean isComponentNeedRepartion(IConnection con,Node needToPar){
  String partitioning=needToPar.getComponent().getPartitioning();
  if (partitioning.equals("String_Node_Str")) {
    if (ParallelExecutionUtils.existPreviousPar((Node)con.getSource()) || ParallelExecutionUtils.existPreviousDepar((Node)con.getSource()) || ParallelExecutionUtils.existPreviousRepar((Node)con.getSource())|| ParallelExecutionUtils.existPreviousNone((Node)con.getSource())) {
      return false;
    }
    return true;
  }
 else {
    boolean needRepar=false;
    IConnection previousParCon=ParallelExecutionUtils.getPreviousParCon((Node)con.getSource());
    if (previousParCon != null) {
      String[] partitionKey=partitioning.split("String_Node_Str");
      IElementParameter parTableCon=previousParCon.getElementParameter(HASH_KEYS);
      IElementParameter parTableNode=needToPar.getElementParameter(partitionKey[0]);
      if (parTableNode != null) {
        String clumnKeyListName="String_Node_Str";
        String clumnNodeListName=partitionKey[1];
        List<String> parKeyValues=new ArrayList<String>();
        List<String> columnKeyValues=new ArrayList<String>();
        ElementParameter nodeElemForList=null;
        for (        Map conColumnListMap : (List<Map>)parTableCon.getValue()) {
          if (conColumnListMap.get(clumnKeyListName) instanceof String) {
            parKeyValues.add((String)conColumnListMap.get(clumnKeyListName));
          }
        }
        for (        Object nodeItemList : parTableNode.getListItemsValue()) {
          if (((ElementParameter)nodeItemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)nodeItemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
            nodeElemForList=(ElementParameter)nodeItemList;
            break;
          }
        }
        if (nodeElemForList != null) {
          for (          Map nodeColumnListMap : (List<Map>)parTableNode.getValue()) {
            Object value=nodeColumnListMap.get(clumnNodeListName);
            if (nodeColumnListMap.get(clumnNodeListName) instanceof String) {
              columnKeyValues.add((String)value);
            }
 else             if (value instanceof Integer) {
              Integer index=(Integer)value;
              if (nodeElemForList.getListItemsDisplayName().length > index) {
                columnKeyValues.add((String)nodeElemForList.getListItemsDisplayName()[index]);
              }
            }
          }
        }
        if (columnKeyValues.size() > 0) {
          if (columnKeyValues.equals(parKeyValues)) {
            needRepar=false;
          }
 else {
            needRepar=true;
          }
        }
      }
    }
    return needRepar;
  }
}

Fixed version (ground truth):
private boolean isComponentNeedRepartion(IConnection con,Node needToPar){
  String partitioning=needToPar.getComponent().getPartitioning();
  if (partitioning.equals("String_Node_Str")) {
    if (ParallelExecutionUtils.existPreviousPar((Node)con.getSource()) || ParallelExecutionUtils.existPreviousDepar((Node)con.getSource()) || ParallelExecutionUtils.existPreviousRepar((Node)con.getSource())|| ParallelExecutionUtils.existPreviousNone((Node)con.getSource())) {
      return false;
    }
    return true;
  }
 else {
    boolean needRepar=false;
    IConnection previousParCon=ParallelExecutionUtils.getPreviousParCon((Node)con.getSource());
    if (previousParCon != null) {
      String[] partitionKey=partitioning.split("String_Node_Str");
      IElementParameter parTableCon=previousParCon.getElementParameter(HASH_KEYS);
      IElementParameter parTableNode=needToPar.getElementParameter(partitionKey[0]);
      if (parTableNode != null) {
        String clumnKeyListName="String_Node_Str";
        String clumnNodeListName=partitionKey[1];
        List<String> parKeyValues=new ArrayList<String>();
        List<String> columnKeyValues=new ArrayList<String>();
        ElementParameter nodeElemForList=null;
        for (        Map conColumnListMap : (List<Map>)parTableCon.getValue()) {
          if (conColumnListMap.get(clumnKeyListName) instanceof String) {
            parKeyValues.add((String)conColumnListMap.get(clumnKeyListName));
          }
        }
        for (        Object nodeItemList : parTableNode.getListItemsValue()) {
          if (((ElementParameter)nodeItemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)nodeItemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
            nodeElemForList=(ElementParameter)nodeItemList;
            break;
          }
        }
        if (nodeElemForList != null) {
          for (          Map nodeColumnListMap : (List<Map>)parTableNode.getValue()) {
            Object value=nodeColumnListMap.get(clumnNodeListName);
            if (nodeColumnListMap.get(clumnNodeListName) instanceof String) {
              columnKeyValues.add((String)value);
            }
 else             if (value instanceof Integer) {
              Integer index=(Integer)value;
              if (nodeElemForList.getListItemsDisplayName().length > index) {
                columnKeyValues.add(nodeElemForList.getListItemsDisplayName()[index]);
              }
            }
          }
        }
        if (columnKeyValues.size() > 0) {
          if (columnKeyValues.equals(parKeyValues)) {
            needRepar=false;
          }
 else {
            needRepar=true;
          }
        }
      }
    }
    return needRepar;
  }
}