nus-yam/ex-repair huggingface dataset:
Program: 121466
Project: 121466
Buggy source:
public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    getProperty().setVersion(mainPage.getNewVersion());
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 121470
Project: 121470
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 121472
Project: 121472
Buggy source:
public boolean isRed(JobletContainer jobletContainer){
  IProcess2 jobletProcess=(IProcess2)jobletContainer.getNode().getComponent().getProcess();
  ERepositoryStatus status=ProxyRepositoryFactory.getInstance().getStatus(jobletProcess.getProperty().getItem());
  if (status == ERepositoryStatus.LOCK_BY_OTHER) {
    return true;
  }
  IEditorPart[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();
  if (editors.length <= 0) {
    return false;
  }
  for (  IEditorPart editor : editors) {
    RepositoryEditorInput editorInput=(RepositoryEditorInput)editor.getEditorInput();
    String jobletId=editorInput.getId();
    if (jobletId.equals(jobletProcess.getId())) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean isRed(JobletContainer jobletContainer){
  IProcess2 jobletProcess=(IProcess2)jobletContainer.getNode().getComponent().getProcess();
  ERepositoryStatus status=ProxyRepositoryFactory.getInstance().getStatus(jobletProcess.getProperty().getItem());
  if (status == ERepositoryStatus.LOCK_BY_OTHER) {
    return true;
  }
  IEditorPart[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();
  if (editors.length <= 0) {
    return false;
  }
  for (  IEditorPart editor : editors) {
    if (editor.getEditorInput() instanceof RepositoryEditorInput) {
      RepositoryEditorInput editorInput=(RepositoryEditorInput)editor.getEditorInput();
      String jobletId=editorInput.getId();
      if (jobletId.equals(jobletProcess.getId())) {
        return true;
      }
    }
  }
  return false;
}
Program: 121473
Project: 121473
Buggy source:
public boolean isRed(JobletContainer jobletContainer){
  IProcess2 jobletProcess=(IProcess2)jobletContainer.getNode().getComponent().getProcess();
  ERepositoryStatus status=ProxyRepositoryFactory.getInstance().getStatus(jobletProcess.getProperty().getItem());
  if (status == ERepositoryStatus.LOCK_BY_OTHER) {
    return true;
  }
  IEditorPart[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();
  if (editors.length <= 0) {
    return false;
  }
  for (  IEditorPart editor : editors) {
    RepositoryEditorInput editorInput=(RepositoryEditorInput)editor.getEditorInput();
    String jobletId=editorInput.getId();
    if (jobletId.equals(jobletProcess.getId())) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean isRed(JobletContainer jobletContainer){
  IProcess2 jobletProcess=(IProcess2)jobletContainer.getNode().getComponent().getProcess();
  ERepositoryStatus status=ProxyRepositoryFactory.getInstance().getStatus(jobletProcess.getProperty().getItem());
  if (status == ERepositoryStatus.LOCK_BY_OTHER) {
    return true;
  }
  IEditorPart[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getDirtyEditors();
  if (editors.length <= 0) {
    return false;
  }
  for (  IEditorPart editor : editors) {
    if (editor.getEditorInput() instanceof RepositoryEditorInput) {
      RepositoryEditorInput editorInput=(RepositoryEditorInput)editor.getEditorInput();
      String jobletId=editorInput.getId();
      if (jobletId.equals(jobletProcess.getId())) {
        return true;
      }
    }
  }
  return false;
}
Program: 121474
Project: 121474
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 121477
Project: 121477
Buggy source:
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            if (cata.getName().contains("String_Node_Str")) {
              return realTableName;
            }
 else {
              return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
            }
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}

Fixed version (ground truth):
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (cata.getName().contains("String_Node_Str")) {
            return realTableName;
          }
 else           if (childeleName.equals(realTableName)) {
            return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}
Program: 121478
Project: 121478
Buggy source:
public void endElement(String uri,String localName,String qName) throws SAXException {
  for (  XMLNode node : nodes.getNodesCollection()) {
    if (node.isLooping) {
      if (node.outputText) {
        if (node.hasValue == false) {
          node.addTextValue("String_Node_Str");
        }
        node.hasValue=true;
      }
      if ((node.isAsXML || node.isDot) && (this.currentPath.equals(node.nodePath) || this.currentPath.startsWith(node.nodePath + "String_Node_Str"))) {
        if (node.isAsXML) {
          node.addTextValue("String_Node_Str");
          node.addTextValue(qName);
          node.addTextValue("String_Node_Str");
        }
        if (this.currentPath.equals(node.nodePath)) {
          node.hasValue=true;
        }
      }
    }
    node.outputText=false;
  }
  if (this.currentPath.equals(nodes.getLoopPath())) {
    if (isNotNull(nodes.getNodesCollection(),nodes.size())) {
      Map<String,String> map=new HashMap<String,String>();
      for (      XMLNode node : nodes.getNodesCollection()) {
        map.put(node.originPath,node.getTextValue());
      }
      bufferCache.writeData(map);
    }
    nodes.resetAll();
  }
  this.currentPath=this.currentPath.substring(0,this.currentPath.lastIndexOf("String_Node_Str"));
}

Fixed version (ground truth):
public void endElement(String uri,String localName,String qName) throws SAXException {
  for (  XMLNode node : nodes.getNodesCollection()) {
    if (node.isLooping) {
      if (node.outputText) {
        if (node.hasValue == false) {
          node.addTextValue("String_Node_Str");
        }
        node.hasValue=true;
      }
      if ((node.isAsXML || node.isDot) && (this.currentPath.equals(node.nodePath) || this.currentPath.startsWith(node.nodePath + "String_Node_Str"))) {
        if (node.isAsXML) {
          node.addTextValue("String_Node_Str");
          node.addTextValue(qName);
          node.addTextValue("String_Node_Str");
        }
        if (this.currentPath.equals(node.nodePath)) {
          node.hasValue=true;
        }
      }
    }
    node.outputText=false;
  }
  if (this.currentPath.equals(nodes.getLoopPath())) {
    if (isNotNull(nodes.getNodesCollection(),nodes.size())) {
      Map<String,String> map=new HashMap<String,String>();
      for (      XMLNode node : nodes.getNodesCollection()) {
        map.put(node.originPath,node.getTextValue());
      }
      bufferCache.writeData(map);
      if (stop) {
        throw new EnoughDataException("String_Node_Str");
      }
    }
    nodes.resetAll();
  }
  this.currentPath=this.currentPath.substring(0,this.currentPath.lastIndexOf("String_Node_Str"));
}
Program: 121479
Project: 121479
Buggy source:
public Object call() throws Exception {
  Reader reader=null;
  try {
    DefaultHandler hd=new SimpleSAXLoopHandler(nodes,bcache);
    SAXParser saxParser=null;
    if (!ignoreDTD) {
      saxParser=SAXParserFactory.newInstance().newSAXParser();
    }
 else {
      SAXParserFactory spf=SAXParserFactory.newInstance();
      spf.setFeature("String_Node_Str",false);
      saxParser=spf.newSAXParser();
    }
    saxParser.setProperty("String_Node_Str",hd);
    if (fileURL != null) {
      reader=new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset);
      org.xml.sax.InputSource inSource=new org.xml.sax.InputSource(reader);
      saxParser.parse(inSource,hd);
    }
 else {
      reader=new UnicodeReader(is,this.charset);
      org.xml.sax.InputSource inSource=new org.xml.sax.InputSource(reader);
      saxParser.parse(inSource,hd);
    }
  }
  finally {
    try {
      if (reader != null) {
        reader.close();
      }
    }
  finally {
      bcache.notifyErrorOccurred();
    }
  }
  return null;
}

Fixed version (ground truth):
public Object call() throws Exception {
  Reader reader=null;
  try {
    hd=new SimpleSAXLoopHandler(nodes,bcache);
    SAXParser saxParser=null;
    if (!ignoreDTD) {
      saxParser=SAXParserFactory.newInstance().newSAXParser();
    }
 else {
      SAXParserFactory spf=SAXParserFactory.newInstance();
      spf.setFeature("String_Node_Str",false);
      saxParser=spf.newSAXParser();
    }
    saxParser.setProperty("String_Node_Str",hd);
    if (fileURL != null) {
      reader=new UnicodeReader(new java.io.FileInputStream(fileURL),this.charset);
      org.xml.sax.InputSource inSource=new org.xml.sax.InputSource(reader);
      saxParser.parse(inSource,hd);
    }
 else {
      reader=new UnicodeReader(is,this.charset);
      org.xml.sax.InputSource inSource=new org.xml.sax.InputSource(reader);
      saxParser.parse(inSource,hd);
    }
  }
  finally {
    try {
      if (reader != null) {
        reader.close();
      }
    }
  finally {
      bcache.notifyErrorOccurred();
    }
  }
  return null;
}
Program: 121481
Project: 121481
Buggy source:
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            if (cata.getName().contains("String_Node_Str")) {
              return realTableName;
            }
 else {
              return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
            }
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}

Fixed version (ground truth):
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (cata.getName().contains("String_Node_Str")) {
            return realTableName;
          }
 else           if (childeleName.equals(realTableName)) {
            return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}
Program: 121483
Project: 121483
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 121485
Project: 121485
Buggy source:
@Override public boolean isVisibleInComponentDefinition(){
  if (visible != null) {
    return visible;
  }
  if (!isAlreadyLoad) {
    boolean isVisible=compType.getHEADER().isVISIBLE();
    info.setIsVisibleInComponentDefinition(isVisible);
    return isVisible;
  }
 else {
    if (info != null) {
      return info.isIsVisibleInComponentDefinition();
    }
 else {
      return false;
    }
  }
}

Fixed version (ground truth):
@Override public boolean isVisibleInComponentDefinition(){
  if (visible != null) {
    return visible;
  }
  if (visibleFromComponentDefinition != null) {
    return visibleFromComponentDefinition;
  }
  if (compType != null) {
    boolean isVisible=compType.getHEADER().isVISIBLE();
    info.setIsVisibleInComponentDefinition(isVisible);
    visibleFromComponentDefinition=isVisible;
    return isVisible;
  }
  if (info != null) {
    visibleFromComponentDefinition=info.isIsVisibleInComponentDefinition();
    return visibleFromComponentDefinition;
  }
 else {
    return false;
  }
}
Program: 121487
Project: 121487
Buggy source:
private void setComponentVisible(String name,boolean visible,boolean restore){
  try {
    String[] names=name.split(FAMILY_SPEARATOR);
    if (names.length != 2) {
      return;
    }
    String family=names[0];
    String label=names[1];
    List<ComponentSetting> components=getComponentsFromProject(project);
    for (    ComponentSetting componentSetting : components) {
      if (componentSetting.getFamily() != null && componentSetting.getFamily().equals(family) && componentSetting.getName().equals(label)) {
        componentSetting.setHidden(!visible);
        return;
      }
    }
    if (!restore) {
      ComponentSetting cs=PropertiesFactory.eINSTANCE.createComponentSetting();
      cs.setName(label);
      cs.setHidden(!visible);
      cs.setFamily(family);
      components.add(cs);
      statusBackup.put(label,!visible);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private void setComponentVisible(String name,boolean visible,boolean restore){
  try {
    String[] names=name.split(FAMILY_SPEARATOR);
    if (names.length != 2) {
      return;
    }
    String family=names[0];
    String label=names[1];
    List<ComponentSetting> components=getComponentsFromProject(project);
    List<ComponentSetting> toRemoveFromSettings=new ArrayList<ComponentSetting>();
    for (    ComponentSetting componentSetting : components) {
      if (componentSetting.getName().equals(label)) {
        if (visible) {
          toRemoveFromSettings.add(componentSetting);
        }
        componentSetting.setHidden(!visible);
      }
    }
    if (visible) {
      components.removeAll(toRemoveFromSettings);
    }
    if (toRemoveFromSettings.isEmpty() && !restore) {
      ComponentSetting cs=PropertiesFactory.eINSTANCE.createComponentSetting();
      cs.setName(label);
      cs.setHidden(!visible);
      cs.setFamily(family);
      components.add(cs);
      statusBackup.put(label,!visible);
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 121488
Project: 121488
Buggy source:
protected void okPressed(){
  IProxyRepositoryFactory prf=CorePlugin.getDefault().getProxyRepositoryFactory();
  try {
    prf.saveProject(project);
    ShowStandardAction.getInstance().doRun();
    if (needCodeGen) {
      Job refreshTemplates=CorePlugin.getDefault().getCodeGeneratorService().refreshTemplates();
      refreshTemplates.addJobChangeListener(new JobChangeAdapter(){
        @Override public void done(        IJobChangeEvent event){
          CorePlugin.getDefault().getLibrariesService().resetModulesNeeded();
        }
      }
);
    }
  }
 catch (  Exception ex) {
    ExceptionHandler.process(ex);
  }
}

Fixed version (ground truth):
protected void okPressed(){
  ProgressMonitorDialog pmd=new ProgressMonitorDialog(getShell());
  IRunnableWithProgress rwp=new IRunnableWithProgress(){
    @Override public void run(    IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
      IProxyRepositoryFactory prf=CorePlugin.getDefault().getProxyRepositoryFactory();
      try {
        prf.saveProject(project);
        ShowStandardAction.getInstance().doRun();
        if (needCodeGen) {
          Job refreshTemplates=CorePlugin.getDefault().getCodeGeneratorService().refreshTemplates();
          refreshTemplates.addJobChangeListener(new JobChangeAdapter(){
            @Override public void done(            IJobChangeEvent event){
              CorePlugin.getDefault().getLibrariesService().resetModulesNeeded();
            }
          }
);
        }
      }
 catch (      Exception ex) {
        ExceptionHandler.process(ex);
      }
    }
  }
;
  try {
    pmd.run(true,false,rwp);
  }
 catch (  InvocationTargetException e) {
    ExceptionHandler.process(e);
  }
catch (  InterruptedException e) {
    ExceptionHandler.process(e);
  }
}
Program: 121489
Project: 121489
Buggy source:
@Override public int compare(ItemRecord o1,ItemRecord o2){
  return VersionUtils.compareTo(o1.getProperty().getVersion(),o2.getProperty().getVersion());
}

Fixed version (ground truth):
public int compare(ItemRecord o1,ItemRecord o2){
  return VersionUtils.compareTo(o1.getProperty().getVersion(),o2.getProperty().getVersion());
}
Program: 121494
Project: 121494
Buggy source:
private String getMssqlCatalog(String realTableName){
  String schema="String_Node_Str";
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            return cata.getName() + "String_Node_Str" + ele.getName();
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName();
          }
        }
      }
    }
  }
  return schema;
}

Fixed version (ground truth):
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            if (cata.getName().contains("String_Node_Str")) {
              return realTableName;
            }
 else {
              return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
            }
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}
Program: 121495
Project: 121495
Buggy source:
/** 
 * Creates proposal for editor.
 */
private void createEditorProposal(){
  try {
    KeyStroke keyStroke=KeyStroke.getInstance("String_Node_Str");
    IControlContentAdapter controlContentAdapter=new StyledTextContentAdapter();
    IContentProposalProvider contentProposalProvider=new PigProposalProvider(null,null);
    new ContentProposalAdapter(textControl,controlContentAdapter,contentProposalProvider,keyStroke,new char[]{' ','.'});
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
/** 
 * Creates proposal for editor.
 */
private void createEditorProposal(){
  try {
    KeyStroke keyStroke=KeyStroke.getInstance("String_Node_Str");
    IControlContentAdapter controlContentAdapter=new StyledTextContentAdapter();
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IPigMapService.class)) {
      final IPigMapService service=(IPigMapService)GlobalServiceRegister.getDefault().getService(IPigMapService.class);
      ContentProposalAdapterExtended proposalAdaptor=ProposalUtils.getCommonProposal(textControl,service.createExpressionProposalProvider(dataBean));
      new ContentProposalAdapter(textControl,controlContentAdapter,service.createExpressionProposalProvider(dataBean),keyStroke,new char[]{' ','.'});
    }
  }
 catch (  Exception e) {
  }
}
Program: 121497
Project: 121497
Buggy source:
private void getAppropriateComponent(Item item,boolean quickCreateInput,boolean quickCreateOutput,TempStore store,ERepositoryObjectType type){
  IComponentName rcSetting=RepositoryComponentManager.getSetting(item,type);
  if (rcSetting == null) {
    for (    IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
      rcSetting=handler.getCorrespondingComponentName(item,type);
      if (rcSetting != null) {
        break;
      }
    }
    if (rcSetting == null) {
      return;
    }
  }
  List<IComponent> neededComponents=RepositoryComponentManager.filterNeededComponents(item,store.seletetedNode,type);
  for (  IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
    List<IComponent> comList=handler.filterNeededComponents(item,store.seletetedNode,type);
    if (comList != null) {
      for (      IComponent handlerComp : comList) {
        if (!neededComponents.contains(handlerComp)) {
          neededComponents.add(handlerComp);
        }
      }
    }
  }
  IComponent component=chooseOneComponent(extractComponents(neededComponents),rcSetting,quickCreateInput,quickCreateOutput);
  store.component=component;
  store.componentName=rcSetting;
}

Fixed version (ground truth):
private void getAppropriateComponent(Item item,boolean quickCreateInput,boolean quickCreateOutput,TempStore store,ERepositoryObjectType type){
  IComponentName rcSetting=RepositoryComponentManager.getSetting(item,type);
  if (rcSetting == null) {
    for (    IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
      rcSetting=handler.getCorrespondingComponentName(item,type);
      if (rcSetting != null) {
        break;
      }
    }
    if (rcSetting == null) {
      return;
    }
  }
  List<IComponent> neededComponents=RepositoryComponentManager.filterNeededComponents(item,store.seletetedNode,type);
  for (  IDragAndDropServiceHandler handler : DragAndDropManager.getHandlers()) {
    List<IComponent> comList=handler.filterNeededComponents(item,store.seletetedNode,type);
    if (comList != null) {
      for (      IComponent handlerComp : comList) {
        if (!neededComponents.contains(handlerComp)) {
          neededComponents.add(handlerComp);
        }
      }
    }
  }
  String hbaseName=EDatabaseTypeName.HBASE.getDisplayName().toUpperCase();
  if (rcSetting != null && (hbaseName).equals(rcSetting.toString())) {
    IComponentsService service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
    String componentProductname=null;
    Set<IComponent> components=service.getComponentsFactory().getComponents();
    for (    IComponent component : components) {
      componentProductname=component.getRepositoryType();
      if (componentProductname != null && componentProductname.contains(hbaseName) && !neededComponents.contains(component)) {
        neededComponents.add(component);
      }
    }
  }
  IComponent component=chooseOneComponent(extractComponents(neededComponents),rcSetting,quickCreateInput,quickCreateOutput);
  store.component=component;
  store.componentName=rcSetting;
}
Program: 121500
Project: 121500
Buggy source:
private String getMssqlCatalog(String realTableName){
  String schema="String_Node_Str";
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            return cata.getName() + "String_Node_Str" + ele.getName();
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName();
          }
        }
      }
    }
  }
  return schema;
}

Fixed version (ground truth):
private String getMssqlCatalog(String realTableName){
  Set<Catalog> catalog=ConnectionHelper.getAllCatalogs(this.conn);
  for (  Catalog cata : catalog) {
    for (    ModelElement ele : cata.getOwnedElement()) {
      if (ele instanceof Schema) {
        for (        ModelElement child : ((Schema)ele).getOwnedElement()) {
          String childeleName=TalendTextUtils.addQuotesWithSpaceFieldForSQLStringForce(TalendTextUtils.declareString(child.getName()),dbType,true);
          if (childeleName.startsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.endsWith(TalendTextUtils.QUOTATION_MARK) && childeleName.length() > 2) {
            childeleName=childeleName.substring(1,childeleName.length() - 1);
          }
          if (childeleName.equals(realTableName)) {
            if (cata.getName().contains("String_Node_Str")) {
              return realTableName;
            }
 else {
              return cata.getName() + "String_Node_Str" + ele.getName()+ "String_Node_Str"+ realTableName;
            }
          }
 else           if (realTableName.endsWith("String_Node_Str" + TalendTextUtils.removeQuotesIfExist(childeleName))) {
            return cata.getName() + "String_Node_Str" + realTableName;
          }
        }
      }
    }
  }
  return realTableName;
}
Program: 121503
Project: 121503
Buggy source:
private void createJobBundleBlueprintConfig(ProcessItem processItem,File targetFile,String jobName,String jobClassName) throws IOException {
  Map<String,Object> jobInfo=new HashMap<String,Object>();
  jobInfo.put("String_Node_Str",jobName);
  jobInfo.put("String_Node_Str",jobClassName);
  boolean isESBJob=isTalendESBJob(processItem);
  jobInfo.put("String_Node_Str",isESBJob);
  jobInfo.put("String_Node_Str",isESBJob && isTalendESBJobFactory(processItem));
  boolean useSAM=false;
  for (  NodeType node : EmfModelUtils.getComponentsByName(processItem,"String_Node_Str")) {
    if (EmfModelUtils.computeCheckElementValue("String_Node_Str",node)) {
      useSAM=true;
      break;
    }
  }
  jobInfo.put("String_Node_Str",useSAM);
  jobInfo.put("String_Node_Str",DataSourceConfig.getAliases(processItem));
  Map<String,Object> contextParams=new HashMap<String,Object>();
  contextParams.put("String_Node_Str",jobInfo);
  processVelocityTemplate(TEMPLATE_BLUEPRINT_JOB,targetFile,contextParams);
}

Fixed version (ground truth):
private void createJobBundleBlueprintConfig(ProcessItem processItem,File targetFile,String jobName,String jobClassName) throws IOException {
  Map<String,Object> jobInfo=new HashMap<String,Object>();
  jobInfo.put("String_Node_Str",jobName);
  jobInfo.put("String_Node_Str",jobClassName);
  boolean isESBJob=isTalendESBJob(processItem);
  jobInfo.put("String_Node_Str",isESBJob);
  jobInfo.put("String_Node_Str",isESBJob && isTalendESBJobFactory(processItem));
  boolean useSAM=false;
  for (  NodeType node : EmfModelUtils.getComponentsByName(processItem,"String_Node_Str")) {
    if (EmfModelUtils.computeCheckElementValue("String_Node_Str",node)) {
      useSAM=true;
      break;
    }
  }
  jobInfo.put("String_Node_Str",useSAM);
  jobInfo.put("String_Node_Str",DataSourceConfig.getAliases(processItem));
  Map<String,Object> contextParams=new HashMap<String,Object>();
  contextParams.put("String_Node_Str",jobInfo);
  TemplateProcessor.processTemplate("String_Node_Str",contextParams,targetFile,new InputStreamReader(this.getClass().getResourceAsStream(TEMPLATE_BLUEPRINT_JOB)));
}
Program: 121504
Project: 121504
Buggy source:
public static void processTemplate(String tempalatePath,Map<String,Object> contextParams,Writer outputWriter) throws SystemException, IOException {
  VelocityEngine engine=new VelocityEngine();
  engine.setProperty("String_Node_Str","String_Node_Str");
  engine.setProperty("String_Node_Str","String_Node_Str");
  engine.setProperty("String_Node_Str","String_Node_Str");
  engine.init();
  VelocityContext context=new VelocityContext(contextParams);
  try {
    Template template=engine.getTemplate(tempalatePath);
    template.merge(context,outputWriter);
    outputWriter.flush();
  }
 catch (  VelocityException ve) {
    throw new SystemException(ve);
  }
}

Fixed version (ground truth):
public static boolean processTemplate(String logTag,Map<String,Object> contextParams,File outputFile,Reader templateReader) throws IOException {
  FileWriter fileWriter=null;
  try {
    fileWriter=new FileWriter(outputFile);
    return processTemplate(logTag,contextParams,fileWriter,templateReader);
  }
  finally {
    if (null != fileWriter) {
      try {
        fileWriter.close();
      }
 catch (      IOException e) {
      }
    }
  }
}
Program: 121506
Project: 121506
Buggy source:
public RepositoryNode getRepNodeFromRepReviewDialog(Shell parentShell,ERepositoryObjectType type,String repositoryType){
  RepositoryReviewDialog dialog=new RepositoryReviewDialog(parentShell,type,repositoryType);
  if (dialog.open() == Window.OK) {
    return dialog.getResult();
  }
  return null;
}

Fixed version (ground truth):
@Override public RepositoryNode getRepNodeFromRepReviewDialog(Shell parentShell,ERepositoryObjectType type,String repositoryType){
  RepositoryReviewDialog dialog=new RepositoryReviewDialog(parentShell,type,repositoryType);
  if (dialog.open() == Window.OK) {
    return dialog.getResult();
  }
  return null;
}
Program: 121508
Project: 121508
Buggy source:
/** 
 * Returns the root path. Added by Marvin Wang on Mar 22, 2013.
 * @return
 */
protected String getRootWorkingDir(){
  if (targetPlatform == null) {
    if (Platform.getOS().contains(Platform.WS_WIN32)) {
      return "String_Node_Str";
    }
 else {
      return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
  }
 else {
    if (Platform.OS_WIN32.equals(targetPlatform)) {
      return "String_Node_Str";
    }
 else {
      return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
  }
}

Fixed version (ground truth):
/** 
 * Returns the root path. Added by Marvin Wang on Mar 22, 2013.
 * @return
 */
protected String getRootWorkingDir(){
  if (ProcessorUtilities.isExportConfig()) {
    if (targetPlatform == null) {
      if (Platform.getOS().contains(Platform.WS_WIN32)) {
        return "String_Node_Str";
      }
 else {
        return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
    }
 else {
      if (Platform.OS_WIN32.equals(targetPlatform)) {
        return "String_Node_Str";
      }
 else {
        return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
    }
  }
 else {
    return "String_Node_Str";
  }
}
Program: 121509
Project: 121509
Buggy source:
@Override protected String getLibFolderInWorkingDir(){
  if (targetPlatform == null) {
    if (Platform.getOS().contains(Platform.WS_WIN32)) {
      return ProcessorConstants.CMD_KEY_WORD_TWO_DOT + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
 else {
      return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_TWO_DOT+ ProcessorConstants.CMD_KEY_WORD_SLASH+ ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
  }
 else {
    if (Platform.OS_WIN32.equals(targetPlatform)) {
      return ProcessorConstants.CMD_KEY_WORD_TWO_DOT + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
 else {
      return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_TWO_DOT+ ProcessorConstants.CMD_KEY_WORD_SLASH+ ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
    }
  }
}

Fixed version (ground truth):
@Override protected String getLibFolderInWorkingDir(){
  if (ProcessorUtilities.isExportConfig()) {
    if (targetPlatform == null) {
      if (Platform.getOS().contains(Platform.WS_WIN32)) {
        return ProcessorConstants.CMD_KEY_WORD_TWO_DOT + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
 else {
        return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_TWO_DOT+ ProcessorConstants.CMD_KEY_WORD_SLASH+ ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
    }
 else {
      if (Platform.OS_WIN32.equals(targetPlatform)) {
        return ProcessorConstants.CMD_KEY_WORD_TWO_DOT + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
 else {
        return ProcessorConstants.CMD_KEY_WORD_ROOTPATH + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_TWO_DOT+ ProcessorConstants.CMD_KEY_WORD_SLASH+ ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
      }
    }
  }
 else {
    return ProcessorConstants.CMD_KEY_WORD_TWO_DOT + ProcessorConstants.CMD_KEY_WORD_SLASH + ProcessorConstants.CMD_KEY_WORD_LIB+ ProcessorConstants.CMD_KEY_WORD_SLASH;
  }
}
Program: 121513
Project: 121513
Buggy source:
private void reSetParKeyValuesForCon(IConnection parConnection){
  IElementParameter parTableCon=parConnection.getElementParameter(HASH_KEYS);
  if (parTableCon != null) {
    Object[] itemCon=parTableCon.getListItemsValue();
    ElementParameter conElemForList=null;
    String clumnKeyListName="String_Node_Str";
    for (    Object itemList : itemCon) {
      if (((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
        conElemForList=(ElementParameter)itemList;
        clumnKeyListName=((ElementParameter)itemList).getName();
      }
    }
    List<String> parKeyValues=new ArrayList<String>();
    for (    Map conColumnListMap : (List<Map>)parTableCon.getValue()) {
      if (conColumnListMap.get(clumnKeyListName) instanceof String) {
        parKeyValues.add((String)conColumnListMap.get(clumnKeyListName));
      }
      if (conColumnListMap.get(clumnKeyListName) instanceof Integer) {
        Integer index=(Integer)conColumnListMap.get(clumnKeyListName);
        parKeyValues.add((String)conElemForList.getListItemsValue()[index]);
        conColumnListMap.put(clumnKeyListName,conElemForList.getListItemsValue()[index]);
      }
    }
  }
}

Fixed version (ground truth):
private void reSetParKeyValuesForCon(IConnection parConnection){
  IElementParameter parTableCon=parConnection.getElementParameter(HASH_KEYS);
  if (parTableCon != null) {
    Object[] itemCon=parTableCon.getListItemsValue();
    ElementParameter conElemForList=null;
    String clumnKeyListName="String_Node_Str";
    for (    Object itemList : itemCon) {
      if (((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
        conElemForList=(ElementParameter)itemList;
        clumnKeyListName=((ElementParameter)itemList).getName();
      }
    }
    List<String> parKeyValues=new ArrayList<String>();
    if (conElemForList != null) {
      for (      Map conColumnListMap : (List<Map>)parTableCon.getValue()) {
        if (conColumnListMap.get(clumnKeyListName) instanceof String) {
          parKeyValues.add((String)conColumnListMap.get(clumnKeyListName));
        }
        if (conColumnListMap.get(clumnKeyListName) instanceof Integer) {
          Integer index=(Integer)conColumnListMap.get(clumnKeyListName);
          parKeyValues.add((String)conElemForList.getListItemsValue()[index]);
          if (conElemForList.getListItemsDisplayName().length > index) {
            conColumnListMap.put(clumnKeyListName,conElemForList.getListItemsDisplayName()[index]);
          }
        }
      }
    }
  }
}
Program: 121515
Project: 121515
Buggy source:
private static List<String> getColumnListFromTargetNode(Node target){
  List<String> columnKeyValues=new ArrayList<String>();
  IElementParameter parTableNode=target.getElementParameterFromField(EParameterFieldType.TABLE);
  Object[] itemNode=parTableNode.getListItemsValue();
  String clumnNodeListName="String_Node_Str";
  for (  Object itemList : itemNode) {
    if (((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
      clumnNodeListName=((ElementParameter)itemList).getName();
    }
  }
  for (  Map nodeColumnListMap : (List<Map>)parTableNode.getValue()) {
    columnKeyValues.add((String)nodeColumnListMap.get(clumnNodeListName));
  }
  return columnKeyValues;
}

Fixed version (ground truth):
private static List<String> getColumnListFromTargetNode(Node target){
  List<String> columnKeyValues=new ArrayList<String>();
  IElementParameter parTableNode=target.getElementParameterFromField(EParameterFieldType.TABLE);
  Object[] itemNode=parTableNode.getListItemsValue();
  ElementParameter clumnNodeList=null;
  for (  Object itemList : itemNode) {
    if (((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.PREV_COLUMN_LIST) || ((ElementParameter)itemList).getFieldType().equals(EParameterFieldType.COLUMN_LIST)) {
      clumnNodeList=((ElementParameter)itemList);
    }
  }
  if (clumnNodeList != null) {
    for (    Map nodeColumnListMap : (List<Map>)parTableNode.getValue()) {
      Object value=nodeColumnListMap.get(clumnNodeList.getName());
      if (nodeColumnListMap.get(clumnNodeList.getName()) instanceof String) {
        columnKeyValues.add((String)value);
      }
 else       if (value instanceof Integer) {
        Integer index=(Integer)value;
        if (clumnNodeList.getListItemsDisplayName().length > index) {
          columnKeyValues.add((String)clumnNodeList.getListItemsDisplayName()[index]);
        }
      }
    }
  }
  return columnKeyValues;
}