Program: 126394
Project: 126394
Buggy source:
private static String getNormalizeParameterValue(String value,IElementParameter ep,boolean itemFromTable){
  List<EParameterFieldType> escapeQuotation=Arrays.asList(EParameterFieldType.MEMO_JAVA,EParameterFieldType.SCHEMA_XPATH_QUERYS);
  if (escapeQuotation.contains(ep.getFieldType()) && ep.isRaw()) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
  List<EParameterFieldType> needRemoveCRLFList=Arrays.asList(EParameterFieldType.MEMO,EParameterFieldType.MEMO_JAVA,EParameterFieldType.MEMO_SQL,EParameterFieldType.MEMO_IMPORT,EParameterFieldType.MEMO_MESSAGE);
  if (needRemoveCRLFList.contains(ep.getFieldType())) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
  List<EParameterFieldType> needQuoteList=Arrays.asList(EParameterFieldType.CLOSED_LIST,EParameterFieldType.COMPONENT_LIST,EParameterFieldType.COLUMN_LIST,EParameterFieldType.PREV_COLUMN_LIST,EParameterFieldType.CONNECTION_LIST,EParameterFieldType.LOOKUP_COLUMN_LIST,EParameterFieldType.CONTEXT_PARAM_NAME_LIST,EParameterFieldType.PROCESS_TYPE,EParameterFieldType.COLOR,EParameterFieldType.TABLE_BY_ROW,EParameterFieldType.HADOOP_JARS_DIALOG);
  List<EParameterFieldType> needQuoteListForItem=itemFromTable ? Arrays.asList(EParameterFieldType.SCHEMA_TYPE,EParameterFieldType.MODULE_LIST) : new ArrayList<EParameterFieldType>();
  List<String> needQuoteListByName=Arrays.asList("String_Node_Str");
  if (needQuoteList.contains(ep.getFieldType()) || needQuoteListForItem.contains(ep.getFieldType()) || needQuoteListByName.contains(ep.getName())|| ep.isRaw()) {
    value="String_Node_Str" + value + "String_Node_Str";
  }
  if (value == null || "String_Node_Str".equals(value.trim())) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value) || "String_Node_Str".equals(value) || "String_Node_Str".equals(value)) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
  return value;
}

Fixed version (ground truth):
private static String getNormalizeParameterValue(String value,IElementParameter ep,boolean itemFromTable){
  List<EParameterFieldType> escapeQuotation=Arrays.asList(EParameterFieldType.MEMO_JAVA,EParameterFieldType.SCHEMA_XPATH_QUERYS);
  if (escapeQuotation.contains(ep.getFieldType()) && ep.isRaw()) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
  List<EParameterFieldType> needRemoveCRLFList=Arrays.asList(EParameterFieldType.MEMO,EParameterFieldType.MEMO_JAVA,EParameterFieldType.MEMO_SQL,EParameterFieldType.MEMO_IMPORT,EParameterFieldType.MEMO_MESSAGE);
  if (needRemoveCRLFList.contains(ep.getFieldType())) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
  List<EParameterFieldType> needQuoteList=Arrays.asList(EParameterFieldType.CLOSED_LIST,EParameterFieldType.COMPONENT_LIST,EParameterFieldType.COLUMN_LIST,EParameterFieldType.PREV_COLUMN_LIST,EParameterFieldType.CONNECTION_LIST,EParameterFieldType.LOOKUP_COLUMN_LIST,EParameterFieldType.CONTEXT_PARAM_NAME_LIST,EParameterFieldType.PROCESS_TYPE,EParameterFieldType.COLOR,EParameterFieldType.TABLE_BY_ROW,EParameterFieldType.HADOOP_JARS_DIALOG);
  List<EParameterFieldType> needQuoteListForItem=itemFromTable ? Arrays.asList(EParameterFieldType.SCHEMA_TYPE,EParameterFieldType.MODULE_LIST) : new ArrayList<EParameterFieldType>();
  List<String> needQuoteListByName=Arrays.asList("String_Node_Str");
  if (needQuoteList.contains(ep.getFieldType()) || needQuoteListForItem.contains(ep.getFieldType()) || needQuoteListByName.contains(ep.getName())|| ep.isRaw()) {
    value="String_Node_Str" + value + "String_Node_Str";
  }
  if (value == null || "String_Node_Str".equals(value.trim())) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value) || "String_Node_Str".equals(value) || "String_Node_Str".equals(value)) {
    value=value.replaceAll("String_Node_Str","String_Node_Str");
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(value)) {
    value="String_Node_Str";
  }
 else   if ("String_Node_Str".equals(ep.getName())) {
    value=value.toLowerCase();
  }
  return value;
}