nus-yam/ex-repair huggingface dataset:
Program: 122614
Project: 122614
Buggy source:
protected boolean selectRepositoryNode(Viewer viewer,RepositoryNode parentNode,RepositoryNode node){
  if (node == null)   return false;
  IRepositoryViewObject object=node.getObject();
  if (object != null) {
    if (object instanceof MetadataColumnRepositoryObject) {
      return false;
    }
    if (node.getObjectType() == ERepositoryObjectType.METADATA_CON_TABLE) {
      return false;
    }
  }
  if (object == null && node.getParent() != null && node.getParent().getObject() != null && node.getParent().getObjectType() == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
protected boolean selectRepositoryNode(Viewer viewer,RepositoryNode parentNode,RepositoryNode node){
  if (node == null)   return false;
  IRepositoryViewObject object=node.getObject();
  if (object != null) {
    if (object instanceof MetadataColumnRepositoryObject) {
      return false;
    }
    if (node.getObjectType() == ERepositoryObjectType.METADATA_CON_TABLE) {
      return false;
    }
  }
  if (object == null && node.getParent() != null && node.getParent().getObject() != null && node.getParent().getObjectType() == ERepositoryObjectType.METADATA_CONNECTIONS) {
    return false;
  }
  if (object == null && ERepositoryObjectType.GENERATED.equals(node.getContentType())) {
    return false;
  }
  return true;
}
Program: 122615
Project: 122615
Buggy source:
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (!needSynchronizeSize(param)) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}
Program: 122616
Project: 122616
Buggy source:
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (!needSynchronizeSize(param)) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}
Program: 122617
Project: 122617
Buggy source:
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  while (amhf == null) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}

Fixed version (ground truth):
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  int size=keyMap.size();
  while (amhf == null && (size--) > 0) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}
Program: 122618
Project: 122618
Buggy source:
@Override protected void setTableViewerCreatorOptions(TableViewerCreator<B> newTableViewerCreator){
  super.setTableViewerCreatorOptions(newTableViewerCreator);
  newTableViewerCreator.setLayoutMode(LAYOUT_MODE.DEFAULT);
}

Fixed version (ground truth):
@Override protected void setTableViewerCreatorOptions(TableViewerCreator<B> newTableViewerCreator){
  super.setTableViewerCreatorOptions(newTableViewerCreator);
  newTableViewerCreator.setLayoutMode(LAYOUT_MODE.DEFAULT);
  newTableViewerCreator.setLazyLoad(true);
}
Program: 122621
Project: 122621
Buggy source:
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  while (amhf == null) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}

Fixed version (ground truth):
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  int size=keyMap.size();
  while (amhf == null && (size--) > 0) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}
Program: 122623
Project: 122623
Buggy source:
protected void doRun(){
  ISelection selection=getSelectedObject();
  if (selection == null) {
    return;
  }
  Object obj=((IStructuredSelection)selection).getFirstElement();
  if (obj instanceof RepositoryNode) {
    RepositoryNode repositoryNode=(RepositoryNode)obj;
    IRepositoryViewObject repositoryObject=repositoryNode.getObject();
    Property updatedProperty=null;
    if (repositoryObject instanceof RepositoryObject) {
      RepositoryViewObject abstractRepositoryObject=new RepositoryViewObject(repositoryObject.getProperty());
      updatedProperty=abstractRepositoryObject.getProperty();
    }
 else     if (repositoryObject instanceof RepositoryViewObject) {
      updatedProperty=repositoryObject.getProperty();
    }
    if (updatedProperty != null) {
      BusinessProcessItem businessProcessItem=(BusinessProcessItem)updatedProperty.getItem();
      DiagramResourceManager diagramResourceManager=new DiagramResourceManager(getActivePage(),new NullProgressMonitor());
      IFile file=diagramResourceManager.createDiagramFile();
      diagramResourceManager.updateResource(businessProcessItem,file);
      IEditorPart part=diagramResourceManager.openEditor(businessProcessItem,file,false);
      if (part instanceof BusinessDiagramEditor) {
        ((BusinessDiagramEditor)part).setLastVersion(true);
      }
      IRepositoryView view=getViewPart();
      if (view != null) {
        view.refresh(repositoryNode);
      }
    }
  }
}

Fixed version (ground truth):
@Override protected void doRun(){
  ISelection selection=getSelectedObject();
  if (selection == null) {
    return;
  }
  Object obj=((IStructuredSelection)selection).getFirstElement();
  if (obj instanceof RepositoryNode) {
    RepositoryNode repositoryNode=(RepositoryNode)obj;
    IRepositoryViewObject repositoryObject=repositoryNode.getObject();
    Property updatedProperty=null;
    if (repositoryObject instanceof RepositoryObject) {
      RepositoryViewObject abstractRepositoryObject=new RepositoryViewObject(repositoryObject.getProperty());
      updatedProperty=abstractRepositoryObject.getProperty();
    }
 else     if (repositoryObject instanceof RepositoryViewObject) {
      updatedProperty=repositoryObject.getProperty();
    }
    if (updatedProperty != null) {
      BusinessProcessItem businessProcessItem=(BusinessProcessItem)updatedProperty.getItem();
      DiagramResourceManager diagramResourceManager=new DiagramResourceManager(getActivePage(),new NullProgressMonitor());
      IFile file=diagramResourceManager.createDiagramFile();
      diagramResourceManager.updateResource(businessProcessItem,file);
      IEditorPart part=diagramResourceManager.openEditor(businessProcessItem,file,false);
      if (part instanceof BusinessDiagramEditor) {
        ((BusinessDiagramEditor)part).setLastVersion(true);
      }
    }
  }
}
Program: 122626
Project: 122626
Buggy source:
public void mouseDown(MouseEvent e){
  ModelSelectionDialog modelSelect=new ModelSelectionDialog(((Control)e.getSource()).getShell(),ESelectionType.NORMAL);
  if (modelSelect.open() == ModelSelectionDialog.OK) {
    if (modelSelect.getOptionValue() == EEditSelection.BUILDIN) {
      executeCommand(changeToBuildInCommand((Control)e.getSource()));
    }
    if (modelSelect.getOptionValue() == EEditSelection.REPOSITORY) {
      executeCommand(refreshConnectionCommand((Control)e.getSource()));
    }
  }
}

Fixed version (ground truth):
@Override public void mouseDown(MouseEvent e){
  ModelSelectionDialog modelSelect=new ModelSelectionDialog(((Control)e.getSource()).getShell(),ESelectionType.NORMAL);
  if (modelSelect.open() == ModelSelectionDialog.OK) {
    if (modelSelect.getOptionValue() == EEditSelection.BUILDIN) {
      executeCommand(changeToBuildInCommand((Control)e.getSource()));
    }
    if (modelSelect.getOptionValue() == EEditSelection.REPOSITORY) {
      executeCommand(refreshConnectionCommand((Control)e.getSource()));
    }
  }
}
Program: 122627
Project: 122627
Buggy source:
private Command refreshConnectionCommand(Control control){
  final IElementParameter propertyParam=elem.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
  if (propertyParam != null) {
    final IElementParameter repositoryParam=propertyParam.getChildParameters().get(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
    if (repositoryParam != null) {
      try {
        IRepositoryViewObject o=RepositoryPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion((String)repositoryParam.getValue());
        if (o != null && elem instanceof INode) {
          INode node=(INode)elem;
          IMetadataService metadataService=CorePlugin.getDefault().getMetadataService();
          if (metadataService != null) {
            metadataService.openMetadataConnection(o,node);
          }
          IRepositoryView view=RepositoryManagerHelper.findRepositoryView();
          if (view != null) {
            view.refresh();
          }
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private Command refreshConnectionCommand(Control control){
  final IElementParameter propertyParam=elem.getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
  if (propertyParam != null) {
    final IElementParameter repositoryParam=propertyParam.getChildParameters().get(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
    if (repositoryParam != null) {
      try {
        IRepositoryViewObject o=RepositoryPlugin.getDefault().getRepositoryService().getProxyRepositoryFactory().getLastVersion((String)repositoryParam.getValue());
        if (o != null && elem instanceof INode) {
          INode node=(INode)elem;
          IMetadataService metadataService=CorePlugin.getDefault().getMetadataService();
          if (metadataService != null) {
            metadataService.openMetadataConnection(o,node);
          }
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
      }
    }
  }
  return null;
}
Program: 122628
Project: 122628
Buggy source:
public boolean performOk(){
  boolean ok=super.performOk();
  if (ok) {
    CorePlugin.getDefault().getDesignerCoreService().switchToCurContextsView();
  }
  return ok;
}

Fixed version (ground truth):
@Override public boolean performOk(){
  boolean ok=super.performOk();
  if (ok) {
    CorePlugin.getDefault().getDesignerCoreService().switchToCurContextsView();
  }
  return ok;
}
Program: 122629
Project: 122629
Buggy source:
@Override public void dispose(){
  super.dispose();
  IRepositoryView view=RepositoryManagerHelper.findRepositoryView();
  if (view != null) {
    view.refresh();
  }
}

Fixed version (ground truth):
@Override public void dispose(){
  super.dispose();
}
Program: 122630
Project: 122630
Buggy source:
public boolean performOk(){
  boolean ok=super.performOk();
  if (ok) {
    CorePlugin.getDefault().getDesignerCoreService().switchToCurContextsView();
  }
  return ok;
}

Fixed version (ground truth):
@Override public boolean performOk(){
  boolean ok=super.performOk();
  if (ok) {
    CorePlugin.getDefault().getDesignerCoreService().switchToCurContextsView();
  }
  return ok;
}
Program: 122631
Project: 122631
Buggy source:
@Override public void dispose(){
  super.dispose();
  IRepositoryView view=RepositoryManagerHelper.findRepositoryView();
  if (view != null) {
    view.refresh();
  }
}

Fixed version (ground truth):
@Override public void dispose(){
  super.dispose();
}
Program: 122632
Project: 122632
Buggy source:
public void widgetSelected(SelectionEvent e){
  checkDBTimeout();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  checkDBTimeout();
}
Program: 122634
Project: 122634
Buggy source:
@Override public void dispose(){
  super.dispose();
  IRepositoryView view=RepositoryManagerHelper.findRepositoryView();
  if (view != null) {
    view.refresh();
  }
}

Fixed version (ground truth):
@Override public void dispose(){
  super.dispose();
}
Program: 122635
Project: 122635
Buggy source:
@Override public void dispose(){
  super.dispose();
  IRepositoryView view=RepositoryManagerHelper.findRepositoryView();
  if (view != null) {
    view.refresh();
  }
}

Fixed version (ground truth):
@Override public void dispose(){
  super.dispose();
}
Program: 122636
Project: 122636
Buggy source:
public void run(){
  IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
  if (viewPart != null) {
    viewPart.refresh();
  }
}

Fixed version (ground truth):
public void run(){
}
Program: 122637
Project: 122637
Buggy source:
/** 
 * DOC xtan Comment method "refreshRepositoryView".
 */
public static void refreshRepositoryView(){
  if (!isWorkbenchStarted())   return;
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
      if (viewPart != null) {
        viewPart.refresh();
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * DOC xtan Comment method "refreshRepositoryView".
 */
public static void refreshRepositoryView(){
  if (!isWorkbenchStarted())   return;
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
    }
  }
);
}
Program: 122638
Project: 122638
Buggy source:
@Override protected void doRun(){
  if (problem != null) {
    try {
      RoutineItem routine=getRoutineItem();
      IEditorPart editor=openRoutineEditor(routine,false);
      focusMarkerForRoutineEditor(editor);
      IRepositoryView view=getViewPart();
      if (view != null) {
        view.refresh(ERepositoryObjectType.ROUTINES);
      }
    }
 catch (    SystemException e) {
      MessageBoxExceptionHandler.process(e);
    }
catch (    PartInitException e) {
      MessageBoxExceptionHandler.process(e);
    }
  }
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (problem != null) {
    try {
      RoutineItem routine=getRoutineItem();
      IEditorPart editor=openRoutineEditor(routine,false);
      focusMarkerForRoutineEditor(editor);
    }
 catch (    SystemException e) {
      MessageBoxExceptionHandler.process(e);
    }
catch (    PartInitException e) {
      MessageBoxExceptionHandler.process(e);
    }
  }
}
Program: 122639
Project: 122639
Buggy source:
public void run(IAction action){
  IWorkbench workbench=PlatformUI.getWorkbench();
  if (store.getInt(LOGIN_COUNTER) > 1) {
    boolean openConfirm=MessageDialog.openConfirm(Display.getDefault().getActiveShell(),"String_Node_Str","String_Node_Str");
    if (!openConfirm) {
      return;
    }
  }
  int counter=store.getInt(LOGIN_COUNTER);
  store.setValue(LOGIN_COUNTER,++counter);
  IWorkbenchWindow activeWorkbenchWindow=workbench.getActiveWorkbenchWindow();
  if (activeWorkbenchWindow == null) {
    return;
  }
  IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
  if (activePage == null) {
    return;
  }
  IPerspectiveDescriptor pDescriptor=activePage.getPerspective();
  if (!pDescriptor.getId().equals(TALEND_PERSPECTIVE_ID)) {
    pDescriptor=getPerspective(TALEND_PERSPECTIVE_ID);
    activePage.setPerspective(pDescriptor);
  }
  SwitchProjectAction switchAction=new SwitchProjectAction();
  switchAction.run();
  IRepositoryView view=RepositoryManagerHelper.getRepositoryView();
  if (view != null) {
    view.refresh();
  }
  return;
}

Fixed version (ground truth):
public void run(IAction action){
  IWorkbench workbench=PlatformUI.getWorkbench();
  if (store.getInt(LOGIN_COUNTER) > 1) {
    boolean openConfirm=MessageDialog.openConfirm(Display.getDefault().getActiveShell(),"String_Node_Str","String_Node_Str");
    if (!openConfirm) {
      return;
    }
  }
  int counter=store.getInt(LOGIN_COUNTER);
  store.setValue(LOGIN_COUNTER,++counter);
  IWorkbenchWindow activeWorkbenchWindow=workbench.getActiveWorkbenchWindow();
  if (activeWorkbenchWindow == null) {
    return;
  }
  IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
  if (activePage == null) {
    return;
  }
  IPerspectiveDescriptor pDescriptor=activePage.getPerspective();
  if (!pDescriptor.getId().equals(TALEND_PERSPECTIVE_ID)) {
    pDescriptor=getPerspective(TALEND_PERSPECTIVE_ID);
    activePage.setPerspective(pDescriptor);
  }
  SwitchProjectAction switchAction=new SwitchProjectAction();
  switchAction.run();
  return;
}
Program: 122640
Project: 122640
Buggy source:
public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty();
  for (  Object o : ((IStructuredSelection)selection).toArray()) {
    if (canWork) {
      RepositoryNode node=(RepositoryNode)o;
switch (node.getType()) {
case STABLE_SYSTEM_FOLDER:
case SYSTEM_FOLDER:
case SIMPLE_FOLDER:
        canWork=node.hasChildren();
      break;
default :
    canWork=false;
  break;
}
}
}
setEnabled(canWork);
}

Fixed version (ground truth):
public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty();
  for (  Object o : (selection).toArray()) {
    if (canWork) {
      RepositoryNode node=(RepositoryNode)o;
switch (node.getType()) {
case STABLE_SYSTEM_FOLDER:
case SYSTEM_FOLDER:
case SIMPLE_FOLDER:
        canWork=node.hasChildren();
      break;
default :
    canWork=false;
  break;
}
}
}
setEnabled(canWork);
}
Program: 122641
Project: 122641
Buggy source:
protected void doRun(){
  IRepositoryView view=getViewPart();
  ISelection selection=getSelection();
  if (selection == null) {
    return;
  }
  Object objNode=((IStructuredSelection)selection).getFirstElement();
  if (view != null) {
    if (objNode != null) {
      RepositoryNode node=(RepositoryNode)objNode;
      if ((node.getProperties(EProperties.CONTENT_TYPE) != null) && (node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.SVN_ROOT)) {
        view.expand(node);
        view.getViewer().refresh();
        return;
      }
    }
    Set<ERepositoryObjectType> types=new HashSet<ERepositoryObjectType>();
    for (    Object obj : ((IStructuredSelection)selection).toArray()) {
      expand(view,(RepositoryNode)obj,!view.getExpandedState(obj));
      types.add(((RepositoryNode)obj).getContentType());
    }
    for (    ERepositoryObjectType type : types) {
      view.refresh(type);
    }
  }
}

Fixed version (ground truth):
@Override protected void doRun(){
  IRepositoryView view=getViewPart();
  ISelection selection=getSelection();
  if (selection == null) {
    return;
  }
  Object objNode=((IStructuredSelection)selection).getFirstElement();
  if (view != null) {
    if (objNode != null) {
      RepositoryNode node=(RepositoryNode)objNode;
      if ((node.getProperties(EProperties.CONTENT_TYPE) != null) && (node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.SVN_ROOT)) {
        view.expand(node);
        view.getViewer().refresh();
        return;
      }
    }
    Set<ERepositoryObjectType> types=new HashSet<ERepositoryObjectType>();
    for (    Object obj : ((IStructuredSelection)selection).toArray()) {
      expand(view,(RepositoryNode)obj,!view.getExpandedState(obj));
      types.add(((RepositoryNode)obj).getContentType());
    }
  }
}
Program: 122642
Project: 122642
Buggy source:
@Override public void run(){
  try {
    IRepositoryFactory factory=ProxyRepositoryFactory.getInstance().getRepositoryFactoryFromProvider();
    if (factory instanceof ILocalRepositoryFactory) {
      ((ILocalRepositoryFactory)factory).synchronizeRoutines(null);
      IRepositoryView viewPart=RepositoryManagerHelper.findRepositoryView();
      if (viewPart != null) {
        viewPart.refresh(ERepositoryObjectType.ROUTINES);
      }
      log.info(Messages.getString("String_Node_Str"));
    }
  }
 catch (  PersistenceException e) {
    MessageBoxExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    IRepositoryFactory factory=ProxyRepositoryFactory.getInstance().getRepositoryFactoryFromProvider();
    if (factory instanceof ILocalRepositoryFactory) {
      ((ILocalRepositoryFactory)factory).synchronizeRoutines(null);
      log.info(Messages.getString("String_Node_Str"));
    }
  }
 catch (  PersistenceException e) {
    MessageBoxExceptionHandler.process(e);
  }
}
Program: 122643
Project: 122643
Buggy source:
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  while (amhf == null) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}

Fixed version (ground truth):
public AdvancedMemoryHashFile getAdvancedMemoryHashFile(String key){
  AdvancedMemoryHashFile amhf=resourceMap.get(key);
  String prekey=keyMap.get(key);
  int size=keyMap.size();
  while (amhf == null && (size--) > 0) {
    amhf=resourceMap.get(prekey);
    prekey=keyMap.get(prekey);
  }
  return amhf;
}
Program: 122645
Project: 122645
Buggy source:
public void propertyChange(PropertyChangeEvent evt){
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent evt){
}
Program: 122648
Project: 122648
Buggy source:
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (!needSynchronizeSize(param)) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * bqian Comment method "setSize".
 * @param newLine
 * @param node
 * @param codes
 * @param param
 */
private static void setColumnSize(Map<String,Object> newLine,IElement element,String[] codes,IElementParameter param){
  if (element instanceof INode && ((INode)element).getMetadataList().size() > 0) {
    IMetadataTable table=((INode)element).getMetadataList().get(0);
    String lineName=(String)newLine.get("String_Node_Str");
    for (    IMetadataColumn column : table.getListColumns()) {
      if (lineName.equals(column.getLabel())) {
        final Object size=newLine.get("String_Node_Str");
        final Integer length=column.getLength();
        if (size != null && length != null && length.intValue() > 0 && Integer.parseInt((String)size) == column.getLength()) {
          break;
        }
        if (length != null && length.intValue() > 0) {
          newLine.put("String_Node_Str",length.toString());
        }
 else {
          newLine.put("String_Node_Str",null);
        }
        break;
      }
    }
  }
}
Program: 122650
Project: 122650
Buggy source:
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
}

Fixed version (ground truth):
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
  connection=null;
}
Program: 122652
Project: 122652
Buggy source:
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
}

Fixed version (ground truth):
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
  connection=null;
}
Program: 122654
Project: 122654
Buggy source:
/** 
 * Set the location of the node.
 * @param location Point
 */
@Override public void setLocation(final Point location){
  if (this.location.equals(location)) {
    return;
  }
  this.location=location;
  nodeLabel.setLocation(location);
  nodeError.setLocation(location);
  nodeProgressBar.setLocation(location);
  firePropertyChange(LOCATION,null,location);
}

Fixed version (ground truth):
/** 
 * Set the location of the node.
 * @param location Point
 */
@Override public void setLocation(final Point location){
  if (location == null || this.location.equals(location)) {
    return;
  }
  this.location=location;
  nodeLabel.setLocation(location);
  nodeError.setLocation(location);
  nodeProgressBar.setLocation(location);
  firePropertyChange(LOCATION,null,location);
}
Program: 122655
Project: 122655
Buggy source:
@Override public void undo(){
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
}

Fixed version (ground truth):
@Override public void undo(){
  if (connection == null) {
    return;
  }
  connection.disconnect();
  INodeConnector nodeConnectorSource, nodeConnectorTarget;
  nodeConnectorSource=connection.getSourceNodeConnector();
  if (nodeConnectorSource != null) {
    nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
  }
  nodeConnectorTarget=connection.getTargetNodeConnector();
  if (nodeConnectorTarget != null) {
    nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
  }
  if (newMetadata != null) {
    source.getMetadataList().remove(newMetadata);
  }
  ((Process)source.getProcess()).checkStartNodes();
  source.checkAndRefreshNode();
  target.checkAndRefreshNode();
}
Program: 122656
Project: 122656
Buggy source:
/** 
 * Set the location of the node.
 * @param location Point
 */
@Override public void setLocation(final Point location){
  if (this.location.equals(location)) {
    return;
  }
  this.location=location;
  nodeLabel.setLocation(location);
  nodeError.setLocation(location);
  nodeProgressBar.setLocation(location);
  firePropertyChange(LOCATION,null,location);
}

Fixed version (ground truth):
/** 
 * Set the location of the node.
 * @param location Point
 */
@Override public void setLocation(final Point location){
  if (location == null || this.location.equals(location)) {
    return;
  }
  this.location=location;
  nodeLabel.setLocation(location);
  nodeError.setLocation(location);
  nodeProgressBar.setLocation(location);
  firePropertyChange(LOCATION,null,location);
}
Program: 122657
Project: 122657
Buggy source:
private void createProjectInfors(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Composite urlComp=new Composite(composite,SWT.NONE);
  urlComp.setLayout(new GridLayout(3,false));
  urlComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  urlText=new LabelledText(urlComp,Messages.getString("String_Node_Str"));
  checkBtn=new Button(urlComp,SWT.PUSH);
  checkBtn.setText(Messages.getString("String_Node_Str"));
  projectGroup=new Group(composite,SWT.NONE);
  projectGroup.setText(Messages.getString("String_Node_Str"));
  projectGroup.setLayout(new GridLayout(2,false));
  projectGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
  projectLabelText=new LabelledText(projectGroup,Messages.getString("String_Node_Str"),1,SWT.SINGLE);
  GridData layoutData=new GridData();
  layoutData.widthHint=180;
  layoutData.minimumWidth=180;
  projectLabelText.setLayoutData(layoutData);
  projectLabelText.getTextControl().setEditable(false);
  languageCombo=new LabelledCombo(projectGroup,Messages.getString("String_Node_Str"),null,new String[]{ECodeLanguage.JAVA.getName(),ECodeLanguage.PERL.getName()});
  layoutData=new GridData();
  layoutData.widthHint=100;
  layoutData.minimumWidth=100;
  languageCombo.getCombo().setLayoutData(layoutData);
  languageCombo.select(0);
  createUserInfors(projectGroup);
}

Fixed version (ground truth):
private void createProjectInfors(Composite parent){
  Composite composite=new Composite(parent,SWT.NONE);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  Composite urlComp=new Composite(composite,SWT.NONE);
  urlComp.setLayout(new GridLayout(3,false));
  urlComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  urlText=new LabelledText(urlComp,Messages.getString("String_Node_Str"));
  checkBtn=new Button(urlComp,SWT.PUSH);
  checkBtn.setText(Messages.getString("String_Node_Str"));
  projectGroup=new Group(composite,SWT.NONE);
  projectGroup.setText(Messages.getString("String_Node_Str"));
  projectGroup.setLayout(new GridLayout(2,false));
  projectGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
  projectLabelText=new LabelledText(projectGroup,Messages.getString("String_Node_Str"),1,SWT.SINGLE);
  GridData layoutData=new GridData();
  layoutData.widthHint=180;
  layoutData.minimumWidth=180;
  projectLabelText.setLayoutData(layoutData);
  projectLabelText.getTextControl().setEditable(false);
  languageCombo=new LabelledCombo(projectGroup,Messages.getString("String_Node_Str"),null,new String[]{ECodeLanguage.JAVA.getName()});
  layoutData=new GridData();
  layoutData.widthHint=100;
  layoutData.minimumWidth=100;
  languageCombo.getCombo().setLayoutData(layoutData);
  languageCombo.select(0);
  createUserInfors(projectGroup);
}
Program: 122658
Project: 122658
Buggy source:
public String isValid(String newText){
  if (newText != null) {
    if (!node.getProcess().checkValidConnectionName(newText,isListenerAttached()) || KeywordsValidator.isKeyword(newText) || KeywordsValidator.isSqlKeyword(newText)) {
      return "String_Node_Str";
    }
    return null;
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
@Override public String isValid(String newText){
  if (newText != null) {
    if (!node.getProcess().checkValidConnectionName(newText,isListenerAttached()) || KeywordsValidator.isKeyword(newText) || KeywordsValidator.isSqlKeyword(newText)) {
      return "String_Node_Str";
    }
    return null;
  }
 else {
    return null;
  }
}
Program: 122660
Project: 122660
Buggy source:
private String askForConnectionName(String nodeLabel,String oldName){
  final Node node=(Node)nodePart.getModel();
  InputDialog id=new InputDialog(getWorkbenchPart().getSite().getShell(),nodeLabel + Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),oldName,new IInputValidator(){
    public String isValid(    String newText){
      if (newText != null) {
        if (!node.getProcess().checkValidConnectionName(newText,isListenerAttached()) || KeywordsValidator.isKeyword(newText) || KeywordsValidator.isSqlKeyword(newText)) {
          return "String_Node_Str";
        }
        return null;
      }
 else {
        return null;
      }
    }
  }
);
  id.open();
  if (id.getReturnCode() == InputDialog.CANCEL) {
    return "String_Node_Str";
  }
  IElementParameter elementParam=node.getElementParameter("String_Node_Str");
  if (elementParam != null) {
    String paraValue=TalendTextUtils.addQuotes(id.getValue());
    elementParam.setValue(paraValue);
  }
  return id.getValue();
}

Fixed version (ground truth):
private String askForConnectionName(String nodeLabel,String oldName){
  final Node node=(Node)nodePart.getModel();
  InputDialog id=new InputDialog(getWorkbenchPart().getSite().getShell(),nodeLabel + Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),oldName,new IInputValidator(){
    @Override public String isValid(    String newText){
      if (newText != null) {
        if (!node.getProcess().checkValidConnectionName(newText,isListenerAttached()) || KeywordsValidator.isKeyword(newText) || KeywordsValidator.isSqlKeyword(newText)) {
          return "String_Node_Str";
        }
        return null;
      }
 else {
        return null;
      }
    }
  }
);
  id.open();
  if (id.getReturnCode() == InputDialog.CANCEL) {
    return "String_Node_Str";
  }
  IElementParameter elementParam=node.getElementParameter("String_Node_Str");
  if (elementParam != null) {
    String paraValue=TalendTextUtils.addQuotes(id.getValue());
    elementParam.setValue(paraValue);
  }
  return id.getValue();
}
Program: 122661
Project: 122661
Buggy source:
public Object getObjectType(){
  return curNodeConnector.getName();
}

Fixed version (ground truth):
@Override public Object getObjectType(){
  return curNodeConnector.getName();
}
Program: 122662
Project: 122662
Buggy source:
public Object getNewObject(){
  return listArgs;
}

Fixed version (ground truth):
@Override public Object getNewObject(){
  return listArgs;
}
Program: 122663
Project: 122663
Buggy source:
/** 
 * DOC bqian Comment method "removeProblemsByProcessId".
 * @param id
 */
public static void removeProblemsByProcess(IProcess process){
  for (Iterator<Problem> iter=problemList.getProblemList().iterator(); iter.hasNext(); ) {
    Problem problem=iter.next();
    if (problem == null || problem instanceof TalendProblem)     continue;
    if (problem.getJobInfo() != null && (problem.getJobInfo().getJobId().equals(process.getId()) && problem.getJobInfo().getJobVersion().equals(process.getVersion()))) {
      iter.remove();
    }
  }
  refreshProblemTreeView();
}

Fixed version (ground truth):
/** 
 * DOC hcyi Comment method "removeProblemsByProcess".
 * @param process
 * @param isDeleted
 */
public static void removeProblemsByProcess(IProcess process,boolean isDeleted){
  for (Iterator<Problem> iter=problemList.getProblemList().iterator(); iter.hasNext(); ) {
    Problem problem=iter.next();
    if (problem == null)     continue;
    if (problem.getJobInfo() != null && (problem.getJobInfo().getJobId().equals(process.getId()) && problem.getJobInfo().getJobVersion().equals(process.getVersion()))) {
      iter.remove();
    }
    if (problem.getJobInfo() == null && problem instanceof TalendProblem) {
      TalendProblem talendProblem=(TalendProblem)problem;
      String jobName=talendProblem.getJavaUnitName();
      if (jobName != null && jobName.equals(process.getName()) && talendProblem.getVersion().equals(process.getVersion())) {
        iter.remove();
      }
    }
  }
  refreshProblemTreeView();
}
Program: 122664
Project: 122664
Buggy source:
/** 
 * DOC chuang Comment method "createTreeInput".
 * @param errors
 * @param jobNames
 * @return
 */
public List<JobErrorEntry> createTreeInput(List<Problem> errors,Set<String> jobIds){
  for (  Problem error : errors) {
    if (error instanceof TalendProblem) {
      TalendProblem talendProblem=(TalendProblem)error;
      String jobId=talendProblem.getJobInfo().getJobId();
      if (!jobIds.contains(jobId)) {
        continue;
      }
      String componentName=GENERAL_ERROR;
      JobErrorEntry jobEntry=getJobEntry(talendProblem.getJavaUnitName());
      jobEntry.addItem(componentName,talendProblem);
    }
 else {
      String jobId=error.getJobInfo().getJobId();
      if (!jobIds.contains(jobId)) {
        continue;
      }
      String componentName=error.getNodeName();
      JobErrorEntry jobEntry=getJobEntry(error.getJobInfo().getJobName());
      jobEntry.addItem(componentName,error);
    }
  }
  return new ArrayList<JobErrorEntry>(jobs.values());
}

Fixed version (ground truth):
/** 
 * DOC chuang Comment method "createTreeInput".
 * @param errors
 * @param jobNames
 * @return
 */
public List<JobErrorEntry> createTreeInput(List<Problem> errors,Set<String> jobIds){
  for (  Problem error : errors) {
    if (error instanceof TalendProblem) {
      TalendProblem talendProblem=(TalendProblem)error;
      if (talendProblem != null && talendProblem.getJobInfo() != null) {
        String jobId=talendProblem.getJobInfo().getJobId();
        if (!jobIds.contains(jobId)) {
          continue;
        }
        String componentName=GENERAL_ERROR;
        JobErrorEntry jobEntry=getJobEntry(talendProblem.getJavaUnitName());
        jobEntry.addItem(componentName,talendProblem);
      }
    }
 else {
      if (error != null && error.getJobInfo() != null) {
        String jobId=error.getJobInfo().getJobId();
        if (!jobIds.contains(jobId)) {
          continue;
        }
        String componentName=error.getNodeName();
        JobErrorEntry jobEntry=getJobEntry(error.getJobInfo().getJobName());
        jobEntry.addItem(componentName,error);
      }
    }
  }
  return new ArrayList<JobErrorEntry>(jobs.values());
}
Program: 122665
Project: 122665
Buggy source:
public String getVersion() throws paloexception {
  List<NameValuePair> qparams=new ArrayList<NameValuePair>();
  qparams.add(new BasicNameValuePair("String_Node_Str","String_Node_Str"));
  try {
    StringBuilder sb=new StringBuilder();
    HttpEntity entity=sendToServer(qparams,"String_Node_Str");
    CsvReader csv=new CsvReader(entity.getContent(),Charset.forName("String_Node_Str"));
    csv.setDelimiter(';');
    csv.setTextQualifier('"');
    while (csv.readRecord()) {
      sb.append(csv.get(0));
      sb.append("String_Node_Str");
      sb.append(csv.get(1));
      sb.append("String_Node_Str");
      sb.append(csv.get(2));
      sb.append("String_Node_Str");
      sb.append(csv.get(3));
    }
    csv.close();
    entity.consumeContent();
    return sb.toString();
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}

Fixed version (ground truth):
public String getVersion() throws paloexception {
  List<NameValuePair> qparams=new ArrayList<NameValuePair>();
  qparams.add(new BasicNameValuePair("String_Node_Str","String_Node_Str"));
  try {
    StringBuilder sb=new StringBuilder();
    HttpEntity entity=sendToServer(qparams,"String_Node_Str");
    CSVReader csv=new CSVReader(entity.getContent(),"String_Node_Str","String_Node_Str",';','"','\\',false,0);
    String[] result=null;
    while ((result=csv.readNext()) != null) {
      sb.append(result[0]);
      sb.append("String_Node_Str");
      sb.append(result[1]);
      sb.append("String_Node_Str");
      sb.append(result[2]);
      sb.append("String_Node_Str");
      sb.append(result[3]);
    }
    csv.close();
    entity.consumeContent();
    return sb.toString();
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}
Program: 122666
Project: 122666
Buggy source:
public HttpEntity sendToServer(List<NameValuePair> qparams,String strAPIUrl) throws paloexception {
  try {
    URI uri=URIUtils.createURI("String_Node_Str",strServer,Integer.valueOf(strPort),strAPIUrl,URLEncodedUtils.format(qparams,"String_Node_Str"),null);
    HttpGet req=new HttpGet(uri);
    HttpResponse rsp=paloHttpClient.execute(paloTargetHost,req);
    HttpEntity entity=rsp.getEntity();
    if (rsp.getStatusLine().getStatusCode() != 200) {
      CsvReader csv=new CsvReader(entity.getContent(),Charset.forName("String_Node_Str"));
      csv.setDelimiter(';');
      csv.setTextQualifier('"');
      csv.readRecord();
      paloexception plX=new paloexception(csv.get(0),csv.get(1),csv.get(2));
      csv.close();
      entity.consumeContent();
      throw (plX);
    }
 else {
      return entity;
    }
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}

Fixed version (ground truth):
public HttpEntity sendToServer(List<NameValuePair> qparams,String strAPIUrl) throws paloexception {
  try {
    URI uri=URIUtils.createURI("String_Node_Str",strServer,Integer.valueOf(strPort),strAPIUrl,URLEncodedUtils.format(qparams,"String_Node_Str"),null);
    HttpGet req=new HttpGet(uri);
    HttpResponse rsp=paloHttpClient.execute(paloTargetHost,req);
    HttpEntity entity=rsp.getEntity();
    if (rsp.getStatusLine().getStatusCode() != 200) {
      CSVReader csv=new CSVReader(entity.getContent(),"String_Node_Str","String_Node_Str",';','"','\\',false,0);
      String[] result=csv.readNext();
      paloexception plX=new paloexception(result[0],result[1],result[2]);
      csv.close();
      entity.consumeContent();
      throw (plX);
    }
 else {
      return entity;
    }
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}
Program: 122667
Project: 122667
Buggy source:
public void logout() throws paloexception {
  List<NameValuePair> qparams=new ArrayList<NameValuePair>();
  qparams.add(new BasicNameValuePair("String_Node_Str",this.strToken));
  try {
    HttpEntity entity=sendToServer(qparams,"String_Node_Str");
    CsvReader csv=new CsvReader(entity.getContent(),Charset.forName("String_Node_Str"));
    csv.setDelimiter(';');
    csv.setTextQualifier('"');
    csv.readRecord();
    csv.close();
    entity.consumeContent();
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}

Fixed version (ground truth):
public void logout() throws paloexception {
  List<NameValuePair> qparams=new ArrayList<NameValuePair>();
  qparams.add(new BasicNameValuePair("String_Node_Str",this.strToken));
  try {
    HttpEntity entity=sendToServer(qparams,"String_Node_Str");
    CSVReader csv=new CSVReader(entity.getContent(),"String_Node_Str","String_Node_Str",';','"','\\',false,0);
    csv.readNext();
    csv.close();
    entity.consumeContent();
  }
 catch (  Exception e) {
    throw new paloexception(e.getMessage());
  }
}