Program: 121514
Project: 121514
Buggy source:
private boolean isComponentNeedRepartion(IConnection con,Node needToPar){
  String partitioning=needToPar.getComponent().getPartitioning();
  if (partitioning.equals("String_Node_Str")) {
    if (existPreviousPar((Node)con.getSource()) || existPreviousDepar((Node)con.getSource()) || existPreviousRepar((Node)con.getSource())|| existPreviousNone((Node)con.getSource())) {
      return false;
    }
    return true;
  }
 else {
    boolean needRepar=false;
    IConnection previousParCon=getPreviousParCon(needToPar);
    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>();
        for (        Map conColumnListMap : (List<Map>)parTableCon.getValue()) {
          if (conColumnListMap.get(clumnKeyListName) instanceof String) {
            parKeyValues.add((String)conColumnListMap.get(clumnKeyListName));
          }
        }
        for (        Map nodeColumnListMap : (List<Map>)parTableNode.getValue()) {
          if ((String)nodeColumnListMap.get(clumnNodeListName) != null) {
            columnKeyValues.add((String)nodeColumnListMap.get(clumnNodeListName));
          }
        }
        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 (existPreviousPar((Node)con.getSource()) || existPreviousDepar((Node)con.getSource()) || existPreviousRepar((Node)con.getSource())|| existPreviousNone((Node)con.getSource())) {
      return false;
    }
    return true;
  }
 else {
    boolean needRepar=false;
    IConnection previousParCon=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;
          }
        }
        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;
  }
}