nus-yam/ex-repair huggingface dataset:
Program: 120146
Project: 120146
Buggy source:
public Property getProperty(){
  return repObj.getProperty();
}

Fixed version (ground truth):
@Override public Property getProperty(){
  return repObj.getProperty();
}
Program: 120147
Project: 120147
Buggy source:
/** 
 * tguiu Comment method "createTables".
 * @param node
 * @param iMetadataConnection
 * @param metadataConnection
 */
private void createTables(RepositoryNode node,final IRepositoryViewObject repObj,Connection metadataConnection,boolean isBuildIn){
  for (  Object currentTable : ConnectionHelper.getTables(metadataConnection)) {
    org.talend.core.model.metadata.builder.connection.MetadataTable metadataTable=(org.talend.core.model.metadata.builder.connection.MetadataTable)currentTable;
    if (metadataTable.getSourceName() != null) {
      RepositoryNode tableNode=createMetatable(node,repObj,metadataTable,isBuildIn);
      if (TableHelper.isDeleted(metadataTable)) {
      }
 else {
        node.getChildren().add(tableNode);
      }
      if (connectionParameters.getMetadataTable() != null && metadataTable.getLabel().equals(connectionParameters.getMetadataTable().getLabel())) {
        this.selectedExtReposiotryNode=tableNode;
      }
      createColumns(tableNode,repObj,currentTable,isBuildIn);
    }
  }
}

Fixed version (ground truth):
/** 
 * tguiu Comment method "createTables".
 * @param node
 * @param iMetadataConnection
 * @param metadataConnection
 */
private void createTables(RepositoryNode node,final IRepositoryViewObject repObj,Connection metadataConnection,boolean isBuildIn){
  for (  Object currentTable : ConnectionHelper.getTables(metadataConnection)) {
    org.talend.core.model.metadata.builder.connection.MetadataTable metadataTable=(org.talend.core.model.metadata.builder.connection.MetadataTable)currentTable;
    if (metadataTable.getSourceName() != null) {
      RepositoryNode tableNode=createMetatable(node,repObj,metadataTable,isBuildIn);
      if (TableHelper.isDeleted(metadataTable)) {
      }
 else       if (metadataTable.getSourceName().equals("String_Node_Str")) {
      }
 else {
        node.getChildren().add(tableNode);
      }
      if (connectionParameters.getMetadataTable() != null && metadataTable.getLabel().equals(connectionParameters.getMetadataTable().getLabel())) {
        this.selectedExtReposiotryNode=tableNode;
      }
      createColumns(tableNode,repObj,currentTable,isBuildIn);
    }
  }
}
Program: 120148
Project: 120148
Buggy source:
public Color getForeground(Object element,int columnIndex){
  return null;
}

Fixed version (ground truth):
@Override public Color getForeground(Object element,int columnIndex){
  return null;
}
Program: 120149
Project: 120149
Buggy source:
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (isRefresh) {
    RepositoryNode repositoryNode=(RepositoryNode)parentElement;
    RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)repositoryNode.getObject().getProperty().getItem()).getConnection();
    boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    return ((RepositoryNode)parentElement).getChildren().toArray();
  }
}

Fixed version (ground truth):
@Override @SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (isRefresh) {
    RepositoryNode repositoryNode=(RepositoryNode)parentElement;
    RepositoryNode rootNode=repositoryNodeManager.getRoot(repositoryNode);
    refreshRootNode(rootNode);
    rootNode.getChildren().clear();
    DatabaseConnection metadataConnection=(DatabaseConnection)((ConnectionItem)repositoryNode.getObject().getProperty().getItem()).getConnection();
    boolean isBuildIn=((SqlBuilderRepositoryObject)rootNode.getObject()).isBuildIn();
    createTables(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    createQueries(rootNode,rootNode.getObject(),metadataConnection,isBuildIn);
    isRefresh=false;
    return repositoryNode.getChildren().toArray();
  }
 else {
    return ((RepositoryNode)parentElement).getChildren().toArray();
  }
}
Program: 120150
Project: 120150
Buggy source:
public Image getColumnImage(Object element,int columnIndex){
  RepositoryNode node=(RepositoryNode)element;
  SqlBuilderRepositoryObject repositoryObject=(SqlBuilderRepositoryObject)node.getObject();
  if (columnIndex == 1) {
    return null;
  }
 else   if (columnIndex == 2) {
    if ((repositoryObject).getDiffImage() == null) {
      return null;
    }
    return ImageUtil.getImage((repositoryObject).getDiffImage());
  }
  return ImageUtil.getImage((repositoryObject).getImage());
}

Fixed version (ground truth):
@Override public Image getColumnImage(Object element,int columnIndex){
  RepositoryNode node=(RepositoryNode)element;
  SqlBuilderRepositoryObject repositoryObject=(SqlBuilderRepositoryObject)node.getObject();
  if (columnIndex == 1) {
    return null;
  }
 else   if (columnIndex == 2) {
    if ((repositoryObject).getDiffImage() == null) {
      return null;
    }
    return ImageUtil.getImage((repositoryObject).getDiffImage());
  }
  return ImageUtil.getImage((repositoryObject).getImage());
}
Program: 120151
Project: 120151
Buggy source:
public Object[] getElements(Object inputElement){
  if (!(inputElement instanceof RepositoryNode)) {
    return new Object[0];
  }
  RepositoryNode treeRoot=(RepositoryNode)inputElement;
  if (!isInitialized) {
    initialize(treeRoot);
    isInitialized=true;
  }
  return treeRoot.getChildren().toArray();
}

Fixed version (ground truth):
@Override public Object[] getElements(Object inputElement){
  if (!(inputElement instanceof RepositoryNode)) {
    return new Object[0];
  }
  RepositoryNode treeRoot=(RepositoryNode)inputElement;
  if (!isInitialized) {
    initialize(treeRoot);
    isInitialized=true;
  }
  return treeRoot.getChildren().toArray();
}
Program: 120152
Project: 120152
Buggy source:
public Color getBackground(Object element,int columnIndex){
  RepositoryNode repositoryNode=(RepositoryNode)element;
  SqlBuilderRepositoryObject repositoryObject=(SqlBuilderRepositoryObject)repositoryNode.getObject();
  if (columnIndex == 2) {
    return null;
  }
 else {
    return colors.get((repositoryObject).getColor());
  }
}

Fixed version (ground truth):
@Override public Color getBackground(Object element,int columnIndex){
  RepositoryNode repositoryNode=(RepositoryNode)element;
  SqlBuilderRepositoryObject repositoryObject=(SqlBuilderRepositoryObject)repositoryNode.getObject();
  if (columnIndex == 2) {
    return null;
  }
 else {
    return colors.get((repositoryObject).getColor());
  }
}
Program: 120153
Project: 120153
Buggy source:
public void drop(DropTargetEvent event){
  dragFinished();
}

Fixed version (ground truth):
@Override public void drop(DropTargetEvent event){
  dragFinished();
}
Program: 120154
Project: 120154
Buggy source:
public void dragEnter(DropTargetEvent event){
  updatePopupPosition(event);
  setPopupVisible(true);
  event.detail=mapperManager.getUiManager().getCurrentDragDetail();
}

Fixed version (ground truth):
@Override public void dragEnter(DropTargetEvent event){
  setPopupVisible(true);
  event.detail=mapperManager.getUiManager().getCurrentDragDetail();
}
Program: 120155
Project: 120155
Buggy source:
public void dropAccept(DropTargetEvent event){
}

Fixed version (ground truth):
@Override public void dropAccept(DropTargetEvent event){
}
Program: 120156
Project: 120156
Buggy source:
public void dragOperationChanged(DropTargetEvent event){
  updatePopupPosition(event);
  detectPressedKeys(event);
  AbstractUIManager uiManager=mapperManager.getUiManager();
  DraggingInfosPopup draggingInfosPopup=uiManager.getDraggingInfosPopup();
  if (uiManager.isCtrlPressed()) {
    draggingInfosPopup.setOverwriteMode(true);
  }
 else {
    draggingInfosPopup.setOverwriteMode(false);
  }
  if (uiManager.isShiftPressed()) {
    draggingInfosPopup.setMapOneToOneMode(true,true);
  }
 else {
    draggingInfosPopup.setMapOneToOneMode(false,true);
  }
  int detail=DND.DROP_NONE;
  if (uiManager.isCtrlPressed() && uiManager.isShiftPressed()) {
    detail|=DND.DROP_COPY;
  }
 else   if (uiManager.isCtrlPressed()) {
    detail|=DND.DROP_LINK;
  }
 else   if (uiManager.isShiftPressed()) {
    detail|=DND.DROP_COPY;
  }
 else {
    detail|=DND.DROP_COPY;
  }
  uiManager.setCurrentDragDetail(detail);
  event.detail=DND.DROP_NONE;
}

Fixed version (ground truth):
@Override public void dragOperationChanged(DropTargetEvent event){
  updatePopupPosition(event);
  detectPressedKeys(event);
  AbstractUIManager uiManager=mapperManager.getUiManager();
  DraggingInfosPopup draggingInfosPopup=uiManager.getDraggingInfosPopup();
  if (uiManager.isCtrlPressed()) {
    draggingInfosPopup.setOverwriteMode(true);
  }
 else {
    draggingInfosPopup.setOverwriteMode(false);
  }
  if (uiManager.isShiftPressed()) {
    draggingInfosPopup.setMapOneToOneMode(true,true);
  }
 else {
    draggingInfosPopup.setMapOneToOneMode(false,true);
  }
  int detail=DND.DROP_NONE;
  if (uiManager.isCtrlPressed() && uiManager.isShiftPressed()) {
    detail|=DND.DROP_COPY;
  }
 else   if (uiManager.isCtrlPressed()) {
    detail|=DND.DROP_LINK;
  }
 else   if (uiManager.isShiftPressed()) {
    detail|=DND.DROP_COPY;
  }
 else {
    detail|=DND.DROP_COPY;
  }
  uiManager.setCurrentDragDetail(detail);
  event.detail=DND.DROP_NONE;
}
Program: 120157
Project: 120157
Buggy source:
public Transfer getTransfer(){
  return TableEntriesTransfer.getInstance();
}

Fixed version (ground truth):
@Override public Transfer getTransfer(){
  return TableEntriesTransfer.getInstance();
}
Program: 120158
Project: 120158
Buggy source:
public boolean isEnabled(DropTargetEvent event){
  return true;
}

Fixed version (ground truth):
@Override public boolean isEnabled(DropTargetEvent event){
  return true;
}
Program: 120159
Project: 120159
Buggy source:
public void dragOver(DropTargetEvent event){
  event.detail=DND.DROP_NONE;
  autoScroll(event);
  updatePopupPosition(event);
  setPopupVisible(true);
}

Fixed version (ground truth):
@Override public void dragOver(DropTargetEvent event){
  event.detail=DND.DROP_NONE;
  autoScroll(event);
  updatePopupPosition(event);
  setPopupVisible(true);
}
Program: 120160
Project: 120160
Buggy source:
public void dragLeave(DropTargetEvent event){
  dragFinished();
}

Fixed version (ground truth):
@Override public void dragLeave(DropTargetEvent event){
  dragFinished();
}
Program: 120161
Project: 120161
Buggy source:
private void autoScroll(DropTargetEvent event){
  if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
    return;
  }
  Composite currentComposite=null;
  Object source=event.getSource();
  if (source instanceof DropTarget) {
    Control control=((DropTarget)source).getControl();
    if (control instanceof Composite) {
      currentComposite=(Composite)control;
    }
  }
  if (currentComposite == null) {
    return;
  }
  ScrolledComposite parentScrolledComposite=getParentScrolledComposite(currentComposite);
  if (parentScrolledComposite == null) {
    return;
  }
  ScrollBar vBar=parentScrolledComposite.getVerticalBar();
  int increment=event.y - lastCursorPosition.y;
  if (increment > 0) {
    increment=increment + 3;
  }
 else {
    increment=increment - 3;
  }
  Control content=parentScrolledComposite.getContent();
  if (content != null) {
    Point location=content.getLocation();
    int vSelection=vBar.getSelection();
    if (vSelection >= 0 && vSelection + increment > 0 && vSelection + increment < vBar.getMaximum()) {
      vBar.setSelection(vSelection + increment);
    }
    content.setLocation(location.x,-vSelection);
    mapperManager.getUiManager().refreshBackground(true,false);
  }
}

Fixed version (ground truth):
private void autoScroll(DropTargetEvent event){
  Composite currentComposite=null;
  Object source=event.getSource();
  if (source instanceof DropTarget) {
    Control control=((DropTarget)source).getControl();
    if (control instanceof Composite) {
      currentComposite=(Composite)control;
    }
  }
  if (currentComposite == null) {
    return;
  }
  ScrolledComposite parentScrolledComposite=getParentScrolledComposite(currentComposite);
  if (parentScrolledComposite == null) {
    return;
  }
  ScrollBar vBar=parentScrolledComposite.getVerticalBar();
  Control content=parentScrolledComposite.getContent();
  if (content != null) {
    Point location=content.getLocation();
    int vSelection=vBar.getSelection();
    int increment=0;
    int thumb=vBar.getThumb();
    if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
      long currentTimeMillis=System.currentTimeMillis();
      long time=currentTimeMillis - lastDragTime;
      if (lastDragTime != 0 && time > 100) {
        Point pointToScrollComposite=parentScrolledComposite.toControl(event.x,event.y);
        if (pointToScrollComposite.y < 40) {
          increment=-20;
        }
 else         if (thumb - pointToScrollComposite.y < 40) {
          increment=20;
        }
 else {
          return;
        }
      }
 else {
        return;
      }
    }
 else {
      increment=event.y - lastCursorPosition.y;
      if (increment > 0) {
        increment=increment + 3;
      }
 else {
        increment=increment - 3;
      }
    }
    if (vSelection >= 0 && vSelection + increment > 0 && vSelection + increment < vBar.getMaximum()) {
      vBar.setSelection(vSelection + increment);
    }
    content.setLocation(location.x,-(vSelection + increment));
    mapperManager.getUiManager().refreshBackground(true,false);
    lastDragTime=System.currentTimeMillis();
  }
}
Program: 120164
Project: 120164
Buggy source:
/** 
 * @param mapperManager
 * @param draggableControl
 * @param canBeSourceOfDragging
 * @param canBeTargetOfDragging
 */
public DragNDrop(MapperManager mapperManager,Control draggableControl,boolean canBeSourceOfDragging,boolean canBeTargetOfDragging){
  super();
  this.mapperManager=mapperManager;
  this.draggableControl=draggableControl;
  if (canBeSourceOfDragging) {
    createDragSource(dragSourceListener);
  }
  if (canBeTargetOfDragging) {
    TransferDropTargetListener completeDropTargetListener=null;
    if (draggableControl instanceof Table) {
      completeDropTargetListener=new CompleteDropTargetTableListener(mapperManager,(Table)draggableControl);
    }
 else     if (draggableControl instanceof StyledText) {
      completeDropTargetListener=new CompleteDropTargetStyledTextListener(mapperManager,(StyledText)draggableControl);
    }
    createDropTarget(completeDropTargetListener);
  }
}

Fixed version (ground truth):
/** 
 * @param mapperManager
 * @param draggableControl
 * @param canBeSourceOfDragging
 * @param canBeTargetOfDragging
 */
public DragNDrop(MapperManager mapperManager,Control draggableControl,boolean canBeSourceOfDragging,boolean canBeTargetOfDragging){
  super();
  this.mapperManager=mapperManager;
  this.draggableControl=draggableControl;
  if (canBeSourceOfDragging) {
    createDragSource(dragSourceListener);
  }
  if (canBeTargetOfDragging) {
    DefaultDropTargetListener completeDropTargetListener=null;
    if (draggableControl instanceof Table) {
      completeDropTargetListener=new CompleteDropTargetTableListener(mapperManager,(Table)draggableControl);
    }
 else     if (draggableControl instanceof StyledText) {
      completeDropTargetListener=new CompleteDropTargetStyledTextListener(mapperManager,(StyledText)draggableControl);
    }
 else {
      completeDropTargetListener=new DefaultDropTargetListener(mapperManager);
    }
    createDropTarget(completeDropTargetListener);
  }
}
Program: 120165
Project: 120165
Buggy source:
public void dragEnter(DropTargetEvent event){
  updatePopupPosition(event);
  setPopupVisible(true);
  event.detail=mapperManager.getUiManager().getCurrentDragDetail();
}

Fixed version (ground truth):
public void dragEnter(DropTargetEvent event){
  setPopupVisible(true);
  event.detail=mapperManager.getUiManager().getCurrentDragDetail();
}
Program: 120166
Project: 120166
Buggy source:
private void autoScroll(DropTargetEvent event){
  if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
    return;
  }
  Composite currentComposite=null;
  Object source=event.getSource();
  if (source instanceof DropTarget) {
    Control control=((DropTarget)source).getControl();
    if (control instanceof Composite) {
      currentComposite=(Composite)control;
    }
  }
  if (currentComposite == null) {
    return;
  }
  ScrolledComposite parentScrolledComposite=getParentScrolledComposite(currentComposite);
  if (parentScrolledComposite == null) {
    return;
  }
  ScrollBar vBar=parentScrolledComposite.getVerticalBar();
  int increment=event.y - lastCursorPosition.y;
  if (increment > 0) {
    increment=increment + 3;
  }
 else {
    increment=increment - 3;
  }
  Control content=parentScrolledComposite.getContent();
  if (content != null) {
    Point location=content.getLocation();
    int vSelection=vBar.getSelection();
    if (vSelection >= 0 && vSelection + increment > 0 && vSelection + increment < vBar.getMaximum()) {
      vBar.setSelection(vSelection + increment);
    }
    content.setLocation(location.x,-vSelection);
    mapperManager.getUiManager().refreshBackground(true,false);
  }
}

Fixed version (ground truth):
private void autoScroll(DropTargetEvent event){
  Composite currentComposite=null;
  Object source=event.getSource();
  if (source instanceof DropTarget) {
    Control control=((DropTarget)source).getControl();
    if (control instanceof Composite) {
      currentComposite=(Composite)control;
    }
  }
  if (currentComposite == null) {
    return;
  }
  ScrolledComposite parentScrolledComposite=getParentScrolledComposite(currentComposite);
  if (parentScrolledComposite == null) {
    return;
  }
  ScrollBar vBar=parentScrolledComposite.getVerticalBar();
  Control content=parentScrolledComposite.getContent();
  if (content != null) {
    Point location=content.getLocation();
    int vSelection=vBar.getSelection();
    int increment=0;
    int thumb=vBar.getThumb();
    if (lastCursorPosition == null || lastCursorPosition.y == event.y) {
      long currentTimeMillis=System.currentTimeMillis();
      long time=currentTimeMillis - lastDragTime;
      if (lastDragTime != 0 && time > 100) {
        Point pointToScrollComposite=parentScrolledComposite.toControl(event.x,event.y);
        if (pointToScrollComposite.y < 40) {
          increment=-20;
        }
 else         if (thumb - pointToScrollComposite.y < 40) {
          increment=20;
        }
 else {
          return;
        }
      }
 else {
        return;
      }
    }
 else {
      increment=event.y - lastCursorPosition.y;
      if (increment > 0) {
        increment=increment + 3;
      }
 else {
        increment=increment - 3;
      }
    }
    if (vSelection >= 0 && vSelection + increment > 0 && vSelection + increment < vBar.getMaximum()) {
      vBar.setSelection(vSelection + increment);
    }
    content.setLocation(location.x,-(vSelection + increment));
    mapperManager.getUiManager().refreshBackground(true,false);
    lastDragTime=System.currentTimeMillis();
  }
}
Program: 120168
Project: 120168
Buggy source:
/** 
 * @param mapperManager
 * @param draggableControl
 * @param canBeSourceOfDragging
 * @param canBeTargetOfDragging
 */
public DragNDrop(MapperManager mapperManager,Control draggableControl,boolean canBeSourceOfDragging,boolean canBeTargetOfDragging){
  super();
  this.mapperManager=mapperManager;
  this.draggableControl=draggableControl;
  if (canBeSourceOfDragging) {
    createDragSource(dragSourceListener);
  }
  if (canBeTargetOfDragging) {
    TransferDropTargetListener completeDropTargetListener=null;
    if (draggableControl instanceof Table) {
      completeDropTargetListener=new CompleteDropTargetTableListener(mapperManager,(Table)draggableControl);
    }
 else     if (draggableControl instanceof StyledText) {
      completeDropTargetListener=new CompleteDropTargetStyledTextListener(mapperManager,(StyledText)draggableControl);
    }
    createDropTarget(completeDropTargetListener);
  }
}

Fixed version (ground truth):
/** 
 * @param mapperManager
 * @param draggableControl
 * @param canBeSourceOfDragging
 * @param canBeTargetOfDragging
 */
public DragNDrop(MapperManager mapperManager,Control draggableControl,boolean canBeSourceOfDragging,boolean canBeTargetOfDragging){
  super();
  this.mapperManager=mapperManager;
  this.draggableControl=draggableControl;
  if (canBeSourceOfDragging) {
    createDragSource(dragSourceListener);
  }
  if (canBeTargetOfDragging) {
    TransferDropTargetListener completeDropTargetListener=null;
    if (draggableControl instanceof Table) {
      completeDropTargetListener=new CompleteDropTargetTableListener(mapperManager,(Table)draggableControl);
    }
 else     if (draggableControl instanceof StyledText) {
      completeDropTargetListener=new CompleteDropTargetStyledTextListener(mapperManager,(StyledText)draggableControl);
    }
 else {
      completeDropTargetListener=new DefaultDropTargetListener(mapperManager);
    }
    createDropTarget(completeDropTargetListener);
  }
}
Program: 120173
Project: 120173
Buggy source:
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  if (fileFieldJSON.getText() == "String_Node_Str") {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (!valid) {
    String JSONFilePath=fileFieldJSON.getText();
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      JSONFilePath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,fileFieldJSON.getText()));
    }
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  String jsonFilePathText=fileFieldJSON.getText();
  if (jsonFilePathText == "String_Node_Str") {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (!valid) {
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      jsonFilePathText=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,jsonFilePathText));
    }
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (jsonFilePathText != null && !jsonFilePathText.equals("String_Node_Str")) {
    File file=new File(jsonFilePathText);
    if (!file.exists() || !isJSONFile(jsonFilePathText)) {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}
Program: 120182
Project: 120182
Buggy source:
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  if (fileFieldJSON.getText() == "String_Node_Str") {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (!valid) {
    String JSONFilePath=fileFieldJSON.getText();
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      JSONFilePath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,fileFieldJSON.getText()));
    }
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  updateStatus(IStatus.OK,null);
  return true;
}

Fixed version (ground truth):
/** 
 * Ensures that fields are set.
 * @return
 */
@Override protected boolean checkFieldsValue(){
  String jsonFilePathText=fileFieldJSON.getText();
  if (jsonFilePathText == "String_Node_Str") {
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (!valid) {
    if (isContextMode()) {
      ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
      jsonFilePathText=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,jsonFilePathText));
    }
    updateStatus(IStatus.ERROR,"String_Node_Str");
    return false;
  }
  if (jsonFilePathText != null && !jsonFilePathText.equals("String_Node_Str")) {
    File file=new File(jsonFilePathText);
    if (!file.exists() || !isJSONFile(jsonFilePathText)) {
      updateStatus(IStatus.ERROR,"String_Node_Str");
      return false;
    }
  }
  updateStatus(IStatus.OK,null);
  return true;
}
Program: 120191
Project: 120191
Buggy source:
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
    Object object=graphicViewer.getEditPartRegistry().get(treeNode);
    if (object instanceof TreeNodeEditPart) {
      graphicViewer.select((TreeNodeEditPart)object);
    }
  }
}
Program: 120192
Project: 120192
Buggy source:
public AddChoiceAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public AddChoiceAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120194
Project: 120194
Buggy source:
public SetSubstitutionAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public SetSubstitutionAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120199
Project: 120199
Buggy source:
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
    Object object=graphicViewer.getEditPartRegistry().get(treeNode);
    if (object instanceof TreeNodeEditPart) {
      graphicViewer.select((TreeNodeEditPart)object);
    }
  }
}
Program: 120200
Project: 120200
Buggy source:
public AddChoiceAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public AddChoiceAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120202
Project: 120202
Buggy source:
public SetSubstitutionAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public SetSubstitutionAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120205
Project: 120205
Buggy source:
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  TreeNode treeNode=null;
  boolean needWarning=false;
  if (input) {
    treeNode=XmlmapFactory.eINSTANCE.createTreeNode();
    if (!parent.getOutgoingConnections().isEmpty()) {
      needWarning=true;
    }
  }
 else {
    treeNode=XmlmapFactory.eINSTANCE.createOutputTreeNode();
    EList<Connection> incomingConnections=parent.getIncomingConnections();
    if (!incomingConnections.isEmpty()) {
      needWarning=true;
    }
  }
  boolean canContinue=true;
  if (needWarning) {
    canContinue=MessageDialog.openConfirm(null,"String_Node_Str","String_Node_Str");
  }
  if (canContinue) {
    XmlMapUtil.detachNodeConnections(parent,mapperManager.getExternalData(),false);
    treeNode.setName(parent.getName() + XSDPopulationUtil2.CHOICE);
    treeNode.setNodeType(NodeType.ELEMENT);
    treeNode.setXpath(XmlMapUtil.getXPath(this.parent.getXpath(),treeNode.getName(),treeNode.getNodeType()));
    treeNode.setChoice(true);
    parent.getChildren().add(treeNode);
    if (!input) {
      OutputTreeNode output=(OutputTreeNode)parent;
      if (!XmlMapUtil.isExpressionEditable(output) && output.isAggregate()) {
        output.setAggregate(false);
      }
    }
    Object object=graphicViewer.getEditPartRegistry().get(treeNode);
    if (object instanceof TreeNodeEditPart) {
      graphicViewer.select((TreeNodeEditPart)object);
    }
  }
}
Program: 120206
Project: 120206
Buggy source:
public AddChoiceAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public AddChoiceAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120208
Project: 120208
Buggy source:
public SetSubstitutionAction(IWorkbenchPart part){
  super(part);
  setId(ID);
  setText("String_Node_Str");
}

Fixed version (ground truth):
public SetSubstitutionAction(IWorkbenchPart part,GraphicalViewer graphicViewer){
  super(part);
  this.graphicViewer=graphicViewer;
  setId(ID);
  setText("String_Node_Str");
}
Program: 120216
Project: 120216
Buggy source:
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects,boolean forceUpdate) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true,forceUpdate);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 120217
Project: 120217
Buggy source:
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItemsForLogOn(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItems(getRoutines(),true);
}
Program: 120218
Project: 120218
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines(),false);
}
Program: 120219
Project: 120219
Buggy source:
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf());
}

Fixed version (ground truth):
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf(),false);
}
Program: 120220
Project: 120220
Buggy source:
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects,boolean forceUpdate) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true,forceUpdate);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 120221
Project: 120221
Buggy source:
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItemsForLogOn(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItems(getRoutines(),true);
}
Program: 120222
Project: 120222
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines(),false);
}
Program: 120223
Project: 120223
Buggy source:
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf());
}

Fixed version (ground truth):
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf(),false);
}
Program: 120224
Project: 120224
Buggy source:
public void importDemoProject(){
  ImportDemoProjectAction.getInstance().setShell(getShell());
  ImportDemoProjectAction.getInstance().run();
  populateProjectList();
  String newProject=ImportDemoProjectAction.getInstance().getProjectName();
  if (newProject != null) {
    selectProject(newProject);
  }
  validateProject();
}

Fixed version (ground truth):
public void importDemoProject(){
  ImportDemoProjectAction.getInstance().setShell(getShell());
  ImportDemoProjectAction.getInstance().run();
  unpopulateProjectList();
  setRepositoryContextInContext();
  populateProjectList();
  String newProject=ImportDemoProjectAction.getInstance().getProjectName();
  if (newProject != null) {
    selectProject(newProject);
  }
  validateProject();
}
Program: 120225
Project: 120225
Buggy source:
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private void syncRoutineItems(List<IRepositoryViewObject> routineObjects,boolean forceUpdate) throws SystemException {
  for (  IRepositoryViewObject routine : routineObjects) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true,forceUpdate);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 120226
Project: 120226
Buggy source:
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItemsForLogOn(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutinesForLogOn() throws SystemException {
  syncRoutineItems(getRoutines(),true);
}
Program: 120227
Project: 120227
Buggy source:
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines());
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  syncRoutineItems(getRoutines(),false);
}
Program: 120228
Project: 120228
Buggy source:
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf());
}

Fixed version (ground truth):
@Override public void syncAllPigudf() throws SystemException {
  syncRoutineItems(getAllPigudf(),false);
}
Program: 120229
Project: 120229
Buggy source:
public IFile getRoutinesFile(Item item) throws SystemException {
  try {
    if (item instanceof RoutineItem) {
      RoutineItem routineItem=(RoutineItem)item;
      ProjectManager projectManager=ProjectManager.getInstance();
      org.talend.core.model.properties.Project project=projectManager.getProject(routineItem);
      IProject iProject=ResourcesPlugin.getWorkspace().getRoot().getProject(project.getTechnicalLabel());
      String repositoryPath=ERepositoryObjectType.getFolderName(ERepositoryObjectType.ROUTINES);
      String folderPath=RepositoryNodeUtilities.getPath(routineItem.getProperty().getId()).toString();
      String fileName=routineItem.getProperty().getLabel() + "String_Node_Str" + routineItem.getProperty().getVersion()+ JavaUtils.ITEM_EXTENSION;
      String path=null;
      if (folderPath != null && !folderPath.trim().equals("String_Node_Str")) {
        path=repositoryPath + "String_Node_Str" + folderPath+ "String_Node_Str"+ fileName;
      }
 else {
        path=repositoryPath + "String_Node_Str" + fileName;
      }
      IFile file=iProject.getFile(path);
      return file;
    }
  }
 catch (  Exception e) {
    throw new SystemException(e);
  }
  return null;
}

Fixed version (ground truth):
@Override public IFile getRoutinesFile(Item item) throws SystemException {
  try {
    if (item instanceof RoutineItem) {
      RoutineItem routineItem=(RoutineItem)item;
      ProjectManager projectManager=ProjectManager.getInstance();
      org.talend.core.model.properties.Project project=projectManager.getProject(routineItem);
      IProject iProject=ResourcesPlugin.getWorkspace().getRoot().getProject(project.getTechnicalLabel());
      String repositoryPath=ERepositoryObjectType.getFolderName(ERepositoryObjectType.ROUTINES);
      String folderPath=RepositoryNodeUtilities.getPath(routineItem.getProperty().getId()).toString();
      String fileName=routineItem.getProperty().getLabel() + "String_Node_Str" + routineItem.getProperty().getVersion()+ JavaUtils.ITEM_EXTENSION;
      String path=null;
      if (folderPath != null && !folderPath.trim().equals("String_Node_Str")) {
        path=repositoryPath + "String_Node_Str" + folderPath+ "String_Node_Str"+ fileName;
      }
 else {
        path=repositoryPath + "String_Node_Str" + fileName;
      }
      IFile file=iProject.getFile(path);
      return file;
    }
  }
 catch (  Exception e) {
    throw new SystemException(e);
  }
  return null;
}
Program: 120230
Project: 120230
Buggy source:
public void syncAllBeans() throws SystemException {
}

Fixed version (ground truth):
@Override public void syncAllBeans() throws SystemException {
}
Program: 120231
Project: 120231
Buggy source:
public void syncAllRoutines() throws SystemException {
  for (  IRepositoryViewObject routine : getRoutines()) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void syncAllRoutines() throws SystemException {
  for (  IRepositoryViewObject routine : getRoutines()) {
    RoutineItem routineItem=(RoutineItem)routine.getProperty().getItem();
    syncRoutine(routineItem,true);
  }
  try {
    ILibrariesService jms=CorePlugin.getDefault().getLibrariesService();
    List<URL> urls=jms.getTalendRoutinesFolder();
    for (    URL systemModuleURL : urls) {
      if (systemModuleURL != null) {
        String fileName=systemModuleURL.getPath();
        if (fileName.startsWith("String_Node_Str")) {
          fileName=fileName.substring(1);
        }
        File f=new File(systemModuleURL.getPath());
        if (f.isDirectory()) {
          syncModule(f.listFiles());
        }
      }
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 120232
Project: 120232
Buggy source:
public IFile getFile(Item item) throws SystemException {
  if (item instanceof RoutineItem) {
    return getRoutineFile((RoutineItem)item);
  }
 else   if (item instanceof ProcessItem) {
    return getProcessFile((ProcessItem)item);
  }
  return null;
}

Fixed version (ground truth):
@Override public IFile getFile(Item item) throws SystemException {
  if (item instanceof RoutineItem) {
    return getRoutineFile((RoutineItem)item);
  }
 else   if (item instanceof ProcessItem) {
    return getProcessFile((ProcessItem)item);
  }
  return null;
}