nus-yam/ex-repair huggingface dataset:
Program: 127481
Project: 127481
Buggy source:
/** 
 * Getter for parent.
 * @return the parent
 */
public IMetadataConnection getParent(){
  return this.parent;
}

Fixed version (ground truth):
/** 
 * Getter for parent.
 * @return the parent
 */
@Override public IMetadataConnection getParent(){
  return this.parent;
}
Program: 127482
Project: 127482
Buggy source:
public String getDbms(){
  return dbms;
}

Fixed version (ground truth):
@Override public String getDbms(){
  return dbms;
}
Program: 127483
Project: 127483
Buggy source:
/** 
 * Sets the attachedConnector.
 * @param attachedConnector the attachedConnector to set
 */
public void setAttachedConnector(String attachedConnector){
  this.attachedConnector=attachedConnector;
}

Fixed version (ground truth):
/** 
 * Sets the attachedConnector.
 * @param attachedConnector the attachedConnector to set
 */
@Override public void setAttachedConnector(String attachedConnector){
  this.attachedConnector=attachedConnector;
}
Program: 127484
Project: 127484
Buggy source:
public void setReadOnlyColumnPosition(String readOnlyColumnPosition){
  this.readOnlyColumnPosition=readOnlyColumnPosition;
}

Fixed version (ground truth):
@Override public void setReadOnlyColumnPosition(String readOnlyColumnPosition){
  this.readOnlyColumnPosition=readOnlyColumnPosition;
}
Program: 127485
Project: 127485
Buggy source:
public String getTableName(){
  return this.tableName;
}

Fixed version (ground truth):
@Override public String getTableName(){
  return this.tableName;
}
Program: 127486
Project: 127486
Buggy source:
public void setListColumns(List<IMetadataColumn> listColumns){
  this.listColumns=listColumns;
}

Fixed version (ground truth):
@Override public void setListColumns(List<IMetadataColumn> listColumns){
  this.listColumns=listColumns;
}
Program: 127487
Project: 127487
Buggy source:
public void setDbms(String dbms){
  this.dbms=dbms;
}

Fixed version (ground truth):
@Override public void setDbms(String dbms){
  this.dbms=dbms;
}
Program: 127488
Project: 127488
Buggy source:
public boolean sameMetadataAs(IMetadataTable other){
  return sameMetadataAs(other,IMetadataColumn.OPTIONS_IGNORE_DBCOLUMNNAME | IMetadataColumn.OPTIONS_IGNORE_DEFAULT | IMetadataColumn.OPTIONS_IGNORE_COMMENT);
}

Fixed version (ground truth):
@Override public boolean sameMetadataAs(IMetadataTable other){
  return sameMetadataAs(other,IMetadataColumn.OPTIONS_IGNORE_DBCOLUMNNAME | IMetadataColumn.OPTIONS_IGNORE_DEFAULT | IMetadataColumn.OPTIONS_IGNORE_COMMENT);
}
Program: 127489
Project: 127489
Buggy source:
public IMetadataColumn getDynamicColumn(){
  if (isDynamicSchema()) {
    for (int i=0; i < listColumns.size(); i++) {
      if (listColumns.get(i).getTalendType().equals("String_Node_Str")) {
        return listColumns.get(i);
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IMetadataColumn getDynamicColumn(){
  if (isDynamicSchema()) {
    for (int i=0; i < listColumns.size(); i++) {
      if (listColumns.get(i).getTalendType().equals("String_Node_Str")) {
        return listColumns.get(i);
      }
    }
  }
  return null;
}
Program: 127490
Project: 127490
Buggy source:
public void setLabel(String label){
  this.label=label;
}

Fixed version (ground truth):
@Override public void setLabel(String label){
  this.label=label;
}
Program: 127491
Project: 127491
Buggy source:
public void setComment(String comment){
  this.comment=comment;
}

Fixed version (ground truth):
@Override public void setComment(String comment){
  this.comment=comment;
}
Program: 127492
Project: 127492
Buggy source:
public boolean isDynamicSchema(){
  int sizeListColumns=listColumns.size();
  boolean hasDynamic=false;
  for (int i=0; i < sizeListColumns; i++) {
    if (listColumns.get(i).getTalendType().equals("String_Node_Str")) {
      hasDynamic=true;
      break;
    }
  }
  return hasDynamic;
}

Fixed version (ground truth):
@Override public boolean isDynamicSchema(){
  int sizeListColumns=listColumns.size();
  boolean hasDynamic=false;
  for (int i=0; i < sizeListColumns; i++) {
    if (listColumns.get(i).getTalendType().equals("String_Node_Str")) {
      hasDynamic=true;
      break;
    }
  }
  return hasDynamic;
}
Program: 127493
Project: 127493
Buggy source:
public Map<String,String> getAdditionalProperties(){
  return this.additionalProperties;
}

Fixed version (ground truth):
@Override public Map<String,String> getAdditionalProperties(){
  return this.additionalProperties;
}
Program: 127494
Project: 127494
Buggy source:
public void setReadOnly(boolean readOnly){
  this.readOnly=readOnly;
}

Fixed version (ground truth):
@Override public void setReadOnly(boolean readOnly){
  this.readOnly=readOnly;
}
Program: 127496
Project: 127496
Buggy source:
/** 
 * DOC ycbai Comment method "isCurrentBeanHasType".
 * @param element
 * @param typeId
 * @return
 */
public boolean isCurrentBeanHasType(Object element,String typeId){
  if (element == null || typeId == null)   return false;
  String talendType=getTalendTypeAccessor().get((B)element);
  return typeId.equals(talendType);
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "isCurrentBeanHasType".
 * @param element
 * @param typeId
 * @return
 */
public boolean isCurrentBeanHasType(Object element,String typeId){
  if (element == null || typeId == null) {
    return false;
  }
  String talendType=getTalendTypeAccessor().get((B)element);
  return typeId.equals(talendType);
}
Program: 127498
Project: 127498
Buggy source:
/** 
 * DOC ocarbone Comment method "setGridDataSize".
 * @param minimumWidth
 * @param minimumHeight
 */
public void setGridDataSize(final int minimumWidth,final int minimumHeight){
  getMainComposite().setSize(minimumWidth,minimumHeight);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  gridData.minimumWidth=minimumWidth;
  gridData.minimumHeight=minimumHeight;
  getMainComposite().setLayoutData(gridData);
}

Fixed version (ground truth):
/** 
 * DOC ocarbone Comment method "setGridDataSize".
 * @param minimumWidth
 * @param minimumHeight
 */
@Override public void setGridDataSize(final int minimumWidth,final int minimumHeight){
  getMainComposite().setSize(minimumWidth,minimumHeight);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  gridData.minimumWidth=minimumWidth;
  gridData.minimumHeight=minimumHeight;
  getMainComposite().setLayoutData(gridData);
}
Program: 127499
Project: 127499
Buggy source:
public boolean isSAPNode(final INode node);

Fixed version (ground truth):
public boolean isSAPNode(final RepositoryNode node);
Program: 127500
Project: 127500
Buggy source:
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpandForSchema=false;
  if (!mapCheckState.isEmpty()) {
    firstExpandForSchema=mapCheckState.get(treeItem.getText());
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if ((firstExpand || firstExpandForSchema) && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpandForSchema) {
    mapCheckState.put(treeItem.getText(),false);
  }
  if (firstExpand) {
    firstExpand=false;
  }
}
Program: 127501
Project: 127501
Buggy source:
/** 
 * DOC ggu Comment method "isKeywords".
 * @param itemName
 * @return
 */
private boolean isKeywords(String itemName){
  if (property != null) {
    Item item=property.getItem();
    if (item instanceof ProcessItem || item instanceof JobletProcessItem || item instanceof RoutineItem) {
      return KeywordsValidator.isKeyword(itemName);
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * DOC ggu Comment method "isKeywords".
 * @param itemName
 * @return
 */
protected boolean isKeywords(String itemName){
  if (property != null) {
    Item item=property.getItem();
    if (item instanceof ProcessItem || item instanceof JobletProcessItem || item instanceof RoutineItem) {
      return KeywordsValidator.isKeyword(itemName);
    }
  }
  return false;
}
Program: 127504
Project: 127504
Buggy source:
public void applyEditorValue(){
  String text=getControl().getText();
  onValueChanged(text,true,property);
}

Fixed version (ground truth):
@Override public void applyEditorValue(){
  String text=getControl().getText();
  onValueChanged(text,true,property);
}
Program: 127505
Project: 127505
Buggy source:
public List<FOXTreeNode> getTreeData(){
  return treeData;
}

Fixed version (ground truth):
@Override public List<FOXTreeNode> getTreeData(){
  return treeData;
}
Program: 127506
Project: 127506
Buggy source:
private void initLinker(TreeItem node,TableItem[] tableItems){
  FOXTreeNode treeNode=(FOXTreeNode)node.getData();
  IMetadataColumn column=treeNode.getColumn();
  if (column != null) {
    for (int i=0; i < tableItems.length; i++) {
      MetadataColumn metadataColumn=(MetadataColumn)tableItems[i].getData();
      if (metadataColumn.getLabel().equals(column.getLabel())) {
        linker.addLoopLink(tableItems[i],tableItems[i].getData(),xmlViewer.getTree(),treeNode,true);
        break;
      }
    }
  }
  TreeItem[] children=node.getItems();
  for (int i=0; i < children.length; i++) {
    initLinker(children[i],tableItems);
  }
}

Fixed version (ground truth):
private void initLinker(TreeItem node,TableItem[] tableItems){
  FOXTreeNode treeNode=(FOXTreeNode)node.getData();
  IMetadataColumn column=treeNode.getColumn();
  if (column != null) {
    for (    TableItem tableItem : tableItems) {
      MetadataColumn metadataColumn=(MetadataColumn)tableItem.getData();
      if (metadataColumn.getLabel().equals(column.getLabel())) {
        linker.addLoopLink(tableItem,tableItem.getData(),xmlViewer.getTree(),treeNode,true);
        break;
      }
    }
  }
  TreeItem[] children=node.getItems();
  for (  TreeItem element : children) {
    initLinker(element,tableItems);
  }
}
Program: 127507
Project: 127507
Buggy source:
private void guessInputSchemaColumns(FOXTreeNode node,boolean findFirstLoop){
  String currentUniqueName="String_Node_Str";
  for (  FOXTreeNode current : node.getChildren()) {
    MetadataColumn column=ConnectionFactory.eINSTANCE.createMetadataColumn();
    String label=current.getLabel();
    if (!exsitColumnNames.contains(label)) {
      this.exsitColumnNames.add(label);
      column.setLabel(label);
    }
 else {
      label=getStringIndexed(label);
      this.exsitColumnNames.add(label);
      column.setLabel(label);
    }
    column.setTalendType(CoreRuntimePlugin.getInstance().getCoreService().getPreferenceStore().getString(MetadataTypeLengthConstants.FIELD_DEFAULT_TYPE));
    tempMetadataTable.getColumns().add(column);
    IMetadataColumn metaColumn=ConvertionHelper.convertToIMetaDataColumn(column);
    List<String> uniqueNames=node.getUniqueNames();
    if (!uniqueNames.isEmpty()) {
      currentUniqueName=uniqueNames.get(0);
    }
    if (currentUniqueName != null && !findFirstLoop) {
      for (      FOXTreeNode subNode : node.getChildren()) {
        if (subNode.getLabel() != null && currentUniqueName.equals(subNode.getLabel())) {
          subNode.setLoop(true);
          findFirstLoop=true;
          break;
        }
      }
    }
    current.setColumn(metaColumn);
    current.setDataType(metaColumn.getTalendType());
    guessInputSchemaColumns(current,findFirstLoop);
  }
}

Fixed version (ground truth):
private void guessInputSchemaColumns(FOXTreeNode node,boolean findFirstLoop){
  for (  FOXTreeNode current : node.getChildren()) {
    MetadataColumn column=ConnectionFactory.eINSTANCE.createMetadataColumn();
    String label=current.getLabel();
    if (!exsitColumnNames.contains(label)) {
      this.exsitColumnNames.add(label);
      column.setLabel(label);
    }
 else {
      label=getStringIndexed(label);
      this.exsitColumnNames.add(label);
      column.setLabel(label);
    }
    column.setTalendType(current.getDataType());
    tempMetadataTable.getColumns().add(column);
    IMetadataColumn metaColumn=ConvertionHelper.convertToIMetaDataColumn(column);
    if (current instanceof Element && !findFirstLoop) {
      current.setLoop(true);
      findFirstLoop=true;
    }
    current.setColumn(metaColumn);
    guessInputSchemaColumns(current,findFirstLoop);
  }
}
Program: 127508
Project: 127508
Buggy source:
protected FOXTreeNode addElement(FOXTreeNode current,String currentPath,String newPath,String defaultValue){
  String name=newPath.substring(newPath.lastIndexOf("String_Node_Str") + 1);
  String parentPath=newPath.substring(0,newPath.lastIndexOf("String_Node_Str"));
  FOXTreeNode temp=new Element(name,defaultValue);
  if (current == null) {
    return temp;
  }
  if (currentPath.equals(parentPath)) {
    current.addChild(temp);
  }
 else {
    String[] nods=currentPath.split("String_Node_Str");
    String[] newNods=parentPath.split("String_Node_Str");
    int parentLevel=0;
    int checkLength=nods.length < newNods.length ? nods.length : newNods.length;
    for (int i=1; i < checkLength; i++) {
      if (nods[i].equals(newNods[i])) {
        parentLevel=i;
      }
    }
    FOXTreeNode parent=current;
    for (int i=0; i < nods.length - (parentLevel + 1); i++) {
      FOXTreeNode tmpParent=parent.getParent();
      if (tmpParent == null) {
        break;
      }
      parent=tmpParent;
    }
    if (parent != null)     parent.addChild(temp);
  }
  return temp;
}

Fixed version (ground truth):
protected FOXTreeNode addElement(FOXTreeNode current,String currentPath,String newPath,String defaultValue){
  String name=newPath.substring(newPath.lastIndexOf("String_Node_Str") + 1);
  String parentPath=newPath.substring(0,newPath.lastIndexOf("String_Node_Str"));
  FOXTreeNode temp=new Element(name,defaultValue);
  if (current == null) {
    return temp;
  }
  if (currentPath.equals(parentPath)) {
    current.addChild(temp);
  }
 else {
    String[] nods=currentPath.split("String_Node_Str");
    String[] newNods=parentPath.split("String_Node_Str");
    int parentLevel=0;
    int checkLength=nods.length < newNods.length ? nods.length : newNods.length;
    for (int i=1; i < checkLength; i++) {
      if (nods[i].equals(newNods[i])) {
        parentLevel=i;
      }
    }
    FOXTreeNode parent=current;
    for (int i=0; i < nods.length - (parentLevel + 1); i++) {
      FOXTreeNode tmpParent=parent.getParent();
      if (tmpParent == null) {
        break;
      }
      parent=tmpParent;
    }
    if (parent != null) {
      parent.addChild(temp);
    }
  }
  return temp;
}
Program: 127509
Project: 127509
Buggy source:
public void menuAboutToShow(IMenuManager manager){
  fillContextMenu(manager);
}

Fixed version (ground truth):
@Override public void menuAboutToShow(IMenuManager manager){
  fillContextMenu(manager);
}
Program: 127510
Project: 127510
Buggy source:
public MetadataTable getMetadataTable(){
  return tempMetadataTable;
}

Fixed version (ground truth):
@Override public MetadataTable getMetadataTable(){
  return tempMetadataTable;
}
Program: 127511
Project: 127511
Buggy source:
public void setSelectedText(String label){
  selectedText=label;
}

Fixed version (ground truth):
@Override public void setSelectedText(String label){
  selectedText=label;
}
Program: 127512
Project: 127512
Buggy source:
public void updateConnection(){
  ConnectionHelper.getTables(getConnection());
  EList root=concept.getRoot();
  EList loop=concept.getLoop();
  EList group=concept.getGroup();
  root.clear();
  loop.clear();
  group.clear();
  List<FOXTreeNode> node=(List<FOXTreeNode>)xmlViewer.getInput();
  FOXTreeNode foxTreeNode=node.get(0);
  if (foxTreeNode != null) {
    initNodeOrder(foxTreeNode);
    tableLoader((Element)foxTreeNode,"String_Node_Str",root,foxTreeNode.getDefaultValue());
    Element loopNode=(Element)TreeUtil.getLoopNode(foxTreeNode);
    if (loopNode != null) {
      String path=TreeUtil.getPath(loopNode);
      tableLoader(loopNode,path.substring(0,path.lastIndexOf("String_Node_Str")),loop,loopNode.getDefaultValue());
    }
    Element groupNode=(Element)TreeUtil.getGroupNode(foxTreeNode);
    if (groupNode != null) {
      String path=TreeUtil.getPath(groupNode);
      tableLoader(groupNode,path.substring(0,path.lastIndexOf("String_Node_Str")),group,groupNode.getDefaultValue());
    }
  }
}

Fixed version (ground truth):
@Override public void updateConnection(){
  ConnectionHelper.getTables(getConnection());
  EList root=concept.getRoot();
  EList loop=concept.getLoop();
  EList group=concept.getGroup();
  root.clear();
  loop.clear();
  group.clear();
  List<FOXTreeNode> node=(List<FOXTreeNode>)xmlViewer.getInput();
  FOXTreeNode foxTreeNode=node.get(0);
  if (foxTreeNode != null) {
    initNodeOrder(foxTreeNode);
    tableLoader((Element)foxTreeNode,"String_Node_Str",root,foxTreeNode.getDefaultValue());
    Element loopNode=(Element)TreeUtil.getLoopNode(foxTreeNode);
    if (loopNode != null) {
      String path=TreeUtil.getPath(loopNode);
      tableLoader(loopNode,path.substring(0,path.lastIndexOf("String_Node_Str")),loop,loopNode.getDefaultValue());
    }
    Element groupNode=(Element)TreeUtil.getGroupNode(foxTreeNode);
    if (groupNode != null) {
      String path=TreeUtil.getPath(groupNode);
      tableLoader(groupNode,path.substring(0,path.lastIndexOf("String_Node_Str")),group,groupNode.getDefaultValue());
    }
  }
}
Program: 127513
Project: 127513
Buggy source:
public void editorValueChanged(boolean oldValidState,boolean newValidState){
  onValueChanged(getControl().getText(),false,property);
}

Fixed version (ground truth):
@Override public void editorValueChanged(boolean oldValidState,boolean newValidState){
  onValueChanged(getControl().getText(),false,property);
}
Program: 127514
Project: 127514
Buggy source:
public void cancelEditor(){
}

Fixed version (ground truth):
@Override public void cancelEditor(){
}
Program: 127515
Project: 127515
Buggy source:
public TableViewer getSchemaViewer(){
  return this.schemaViewer;
}

Fixed version (ground truth):
@Override public TableViewer getSchemaViewer(){
  return this.schemaViewer;
}
Program: 127516
Project: 127516
Buggy source:
public void redrawLinkers(){
  linker.removeAllLinks();
  TreeItem root=xmlViewer.getTree().getItem(0);
  TableItem[] tableItems=schemaViewer.getTable().getItems();
  initLinker(root,tableItems);
  if (linker.linkSize() == 0) {
    linker.updateLinksStyleAndControlsSelection(xmlViewer.getTree(),true);
  }
}

Fixed version (ground truth):
@Override public void redrawLinkers(){
  linker.removeAllLinks();
  TreeItem root=xmlViewer.getTree().getItem(0);
  TableItem[] tableItems=schemaViewer.getTable().getItems();
  initLinker(root,tableItems);
  if (linker.linkSize() == 0) {
    linker.updateLinksStyleAndControlsSelection(xmlViewer.getTree(),true);
  }
}
Program: 127517
Project: 127517
Buggy source:
public void selectionChanged(SelectionChangedEvent event){
}

Fixed version (ground truth):
@Override public void selectionChanged(SelectionChangedEvent event){
}
Program: 127518
Project: 127518
Buggy source:
public void updateStatus(){
  checkFieldsValue();
}

Fixed version (ground truth):
@Override public void updateStatus(){
  checkFieldsValue();
}
Program: 127521
Project: 127521
Buggy source:
public void handleEvent(ModifiedBeanEvent<ConceptTarget> event){
  updateStatus(IStatus.OK,null);
  String msg=fieldsTableEditorView.checkColumnNames();
  if (!StringUtils.isEmpty(msg)) {
    updateStatus(IStatus.ERROR,msg);
  }
}

Fixed version (ground truth):
@Override public void handleEvent(ModifiedBeanEvent<ConceptTarget> event){
  updateStatus(IStatus.OK,null);
  String msg=fieldsTableEditorView.checkColumnNames();
  if (!StringUtils.isEmpty(msg)) {
    updateStatus(IStatus.ERROR,msg);
  }
}
Program: 127522
Project: 127522
Buggy source:
public void run(){
  handleErrorOutput(outputComposite,tabFolder,outputTabItem);
}

Fixed version (ground truth):
@Override public void run(){
  handleErrorOutput(outputComposite,tabFolder,outputTabItem);
}
Program: 127523
Project: 127523
Buggy source:
public void refresh(){
  refreshPreview();
}

Fixed version (ground truth):
@Override public void refresh(){
  refreshPreview();
}
Program: 127526
Project: 127526
Buggy source:
/** 
 * Main Fields addControls.
 */
@Override protected void addFieldsListeners(){
  fieldsTableEditorView.getExtendedTableModel().addAfterOperationListListener(new IListenableListListener(){
    public void handleEvent(    ListenableListEvent event){
      checkFieldsValue();
    }
  }
);
  fieldsTableEditorView.getExtendedTableModel().addModifiedBeanListener(new IModifiedBeanListener<ConceptTarget>(){
    public void handleEvent(    ModifiedBeanEvent<ConceptTarget> event){
      updateStatus(IStatus.OK,null);
      String msg=fieldsTableEditorView.checkColumnNames();
      if (!StringUtils.isEmpty(msg)) {
        updateStatus(IStatus.ERROR,msg);
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Main Fields addControls.
 */
@Override protected void addFieldsListeners(){
  fieldsTableEditorView.getExtendedTableModel().addAfterOperationListListener(new IListenableListListener(){
    @Override public void handleEvent(    ListenableListEvent event){
      checkFieldsValue();
    }
  }
);
  fieldsTableEditorView.getExtendedTableModel().addModifiedBeanListener(new IModifiedBeanListener<ConceptTarget>(){
    @Override public void handleEvent(    ModifiedBeanEvent<ConceptTarget> event){
      updateStatus(IStatus.OK,null);
      String msg=fieldsTableEditorView.checkColumnNames();
      if (!StringUtils.isEmpty(msg)) {
        updateStatus(IStatus.ERROR,msg);
      }
    }
  }
);
}
Program: 127528
Project: 127528
Buggy source:
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event event){
  TreeItem treeItem=(TreeItem)event.item;
  boolean needUpdate=treeItem.getChecked();
  boolean firstExpandForSchema=false;
  if (!mapCheckState.isEmpty()) {
    firstExpandForSchema=mapCheckState.get(treeItem.getText());
  }
  for (  TreeItem item : treeItem.getItems()) {
    if (item.getData() != null) {
      TableNode node=(TableNode)item.getData();
      if (useProvider()) {
        if (node.getType() == provider.getRunnableAccessNodeType() || node.getType() == TableNode.COLUMN_FAMILY) {
          if (isExistTable(node)) {
            item.setChecked(true);
          }
 else {
            item.setChecked(false);
          }
        }
      }
 else       if (node.getType() == TableNode.TABLE) {
        if ((firstExpand || firstExpandForSchema) && needUpdate && item.getData() != null) {
          updateItem(item,true,true);
        }
 else         if (isExistTable(node)) {
          item.setChecked(true);
        }
 else {
          item.setChecked(false);
        }
      }
 else       if (firstExpand && needUpdate && node.getType() == TableNode.SCHEMA) {
        item.setChecked(true);
        mapCheckState.put(item.getText(),firstExpand);
      }
 else {
        item.setGrayed(item.getChecked());
      }
    }
  }
  if (firstExpandForSchema) {
    mapCheckState.put(treeItem.getText(),false);
  }
  if (firstExpand) {
    firstExpand=false;
  }
}
Program: 127529
Project: 127529
Buggy source:
public static String copyToTemp(String oldFile) throws PersistenceException {
  Project project=ProjectManager.getInstance().getCurrentProject();
  IProject fsProject=null;
  try {
    fsProject=org.talend.core.repository.model.ResourceModelUtils.getProject(project);
  }
 catch (  PersistenceException e2) {
    ExceptionHandler.process(e2);
  }
  if (fsProject == null) {
    return oldFile;
  }
  String temPath=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator;
  String newFile;
  try {
    newFile=copyNeededFiles(oldFile,temPath);
    getImportFiles(oldFile,temPath);
  }
 catch (  IOException e) {
    throw new PersistenceException(e);
  }
catch (  URISyntaxException e) {
    throw new PersistenceException(e);
  }
  return newFile;
}

Fixed version (ground truth):
public static String copyToTemp(String oldFile) throws PersistenceException {
  Project project=ProjectManager.getInstance().getCurrentProject();
  IProject fsProject=null;
  try {
    fsProject=org.talend.core.repository.model.ResourceModelUtils.getProject(project);
  }
 catch (  PersistenceException e2) {
    ExceptionHandler.process(e2);
  }
  if (fsProject == null) {
    return oldFile;
  }
  String temPath=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator;
  String newFile;
  try {
    newFile=copyNeededFiles(oldFile,temPath);
    getImportFiles(oldFile,temPath,new HashSet<String>());
  }
 catch (  IOException e) {
    throw new PersistenceException(e);
  }
catch (  URISyntaxException e) {
    throw new PersistenceException(e);
  }
  return newFile;
}
Program: 127530
Project: 127530
Buggy source:
public static List<String> getComplexNodes(String xsdFile){
  List<String> attri=new ArrayList<String>();
  File file=new File(xsdFile);
  if (!file.exists()) {
    return attri;
  }
  SAXReader saxReader=new SAXReader();
  Document doc;
  try {
    URL url=file.toURI().toURL();
    saxReader.setFeature("String_Node_Str",false);
    saxReader.setEntityResolver(new EntityResolver(){
      String emptyDtd="String_Node_Str";
      ByteArrayInputStream bytes=new ByteArrayInputStream(emptyDtd.getBytes());
      public InputSource resolveEntity(      String publicId,      String systemId) throws SAXException, IOException {
        File file=new File(systemId);
        if (file.exists()) {
          return new InputSource(new FileInputStream(file));
        }
        return new InputSource(bytes);
      }
    }
);
    doc=saxReader.read(url.getFile());
    Element root=doc.getRootElement();
    List<Element> complexList=root.elements("String_Node_Str");
    if (complexList == null) {
      return attri;
    }
    for (    Element n : complexList) {
      Attribute attr=n.attribute("String_Node_Str");
      if (attr != null) {
        attri.add(attr.getValue());
      }
    }
  }
 catch (  DocumentException e) {
    ExceptionHandler.process(e);
  }
catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  SAXException e) {
    ExceptionHandler.process(e);
  }
  return attri;
}

Fixed version (ground truth):
public static List<String> getComplexNodes(String xsdFile){
  List<String> attri=new ArrayList<String>();
  File file=new File(xsdFile);
  if (!file.exists()) {
    return attri;
  }
  SAXReader saxReader=new SAXReader();
  Document doc;
  try {
    URL url=file.toURI().toURL();
    saxReader.setFeature("String_Node_Str",false);
    saxReader.setEntityResolver(new EntityResolver(){
      String emptyDtd="String_Node_Str";
      ByteArrayInputStream bytes=new ByteArrayInputStream(emptyDtd.getBytes());
      @Override public InputSource resolveEntity(      String publicId,      String systemId) throws SAXException, IOException {
        File file=new File(systemId);
        if (file.exists()) {
          return new InputSource(new FileInputStream(file));
        }
        return new InputSource(bytes);
      }
    }
);
    doc=saxReader.read(url.getFile());
    Element root=doc.getRootElement();
    List<Element> complexList=root.elements("String_Node_Str");
    if (complexList == null) {
      return attri;
    }
    for (    Element n : complexList) {
      Attribute attr=n.attribute("String_Node_Str");
      if (attr != null) {
        attri.add(attr.getValue());
      }
    }
  }
 catch (  DocumentException e) {
    ExceptionHandler.process(e);
  }
catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  SAXException e) {
    ExceptionHandler.process(e);
  }
  return attri;
}
Program: 127531
Project: 127531
Buggy source:
public InputSource resolveEntity(String publicId,String systemId) throws SAXException, IOException {
  File file=new File(systemId);
  if (file.exists()) {
    return new InputSource(new FileInputStream(file));
  }
  return new InputSource(bytes);
}

Fixed version (ground truth):
@Override public InputSource resolveEntity(String publicId,String systemId) throws SAXException, IOException {
  File file=new File(systemId);
  if (file.exists()) {
    return new InputSource(new FileInputStream(file));
  }
  return new InputSource(bytes);
}
Program: 127532
Project: 127532
Buggy source:
private static void getImportFiles(String xsdFile,String newPath){
  File file=new File(xsdFile);
  if (!file.exists()) {
    return;
  }
  String xsdFolder=file.getParent();
  SAXReader saxReader=new SAXReader();
  Document doc;
  try {
    URL url=file.toURI().toURL();
    doc=saxReader.read(url.getFile());
    Element root=doc.getRootElement();
    List<Element> elementsList=new ArrayList<Element>();
    List<Element> importList=root.elements("String_Node_Str");
    if (importList != null) {
      elementsList.addAll(importList);
    }
    List<Element> includeList=root.elements("String_Node_Str");
    if (includeList != null) {
      elementsList.addAll(includeList);
    }
    if (elementsList.size() <= 0) {
      return;
    }
    for (    Element n : elementsList) {
      Attribute attr=n.attribute("String_Node_Str");
      if (attr != null) {
        String importFile=xsdFolder + File.separator + attr.getValue();
        File f=new File(importFile);
        if (f.exists()) {
          File newFile=new File(newPath + attr.getValue());
          FilesUtils.copyFile(f,newFile);
          getImportFiles(importFile,newFile.getParent() + File.separator);
        }
      }
    }
  }
 catch (  DocumentException e) {
    ExceptionHandler.process(e);
  }
catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
private static void getImportFiles(String xsdFile,String newPath,Set<String> filePaths){
  File file=new File(xsdFile);
  if (!file.exists()) {
    return;
  }
  String xsdFolder=file.getParent();
  SAXReader saxReader=new SAXReader();
  Document doc;
  try {
    URL url=file.toURI().toURL();
    doc=saxReader.read(url.getFile());
    Element root=doc.getRootElement();
    List<Element> elementsList=new ArrayList<Element>();
    List<Element> importList=root.elements("String_Node_Str");
    if (importList != null) {
      elementsList.addAll(importList);
    }
    List<Element> includeList=root.elements("String_Node_Str");
    if (includeList != null) {
      elementsList.addAll(includeList);
    }
    if (elementsList.size() <= 0) {
      return;
    }
    for (    Element n : elementsList) {
      Attribute attr=n.attribute("String_Node_Str");
      if (attr != null) {
        String importFile=xsdFolder + File.separator + attr.getValue();
        File f=new File(importFile);
        if (f.exists()) {
          File newFile=new File(newPath + attr.getValue());
          if (!filePaths.contains(newFile.getCanonicalPath())) {
            filePaths.add(newFile.getCanonicalPath());
            FilesUtils.copyFile(f,newFile);
            getImportFiles(importFile,newFile.getParent() + File.separator,filePaths);
          }
        }
      }
    }
  }
 catch (  DocumentException e) {
    ExceptionHandler.process(e);
  }
catch (  MalformedURLException e) {
    ExceptionHandler.process(e);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
}
Program: 127534
Project: 127534
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (relativePath.startsWith("String_Node_Str")) {
          try {
            URI uri=new URI(relativePath);
            URL url=FileLocator.toFileURL(uri.toURL());
            source=new File(url.getFile());
          }
 catch (          URISyntaxException e) {
            CommonExceptionHandler.process(e);
          }
        }
      }
      if (source == null) {
        source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 127536
Project: 127536
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (relativePath.startsWith("String_Node_Str")) {
          try {
            URI uri=new URI(relativePath);
            URL url=FileLocator.toFileURL(uri.toURL());
            source=new File(url.getFile());
          }
 catch (          URISyntaxException e) {
            CommonExceptionHandler.process(e);
          }
        }
      }
      if (source == null) {
        source=new File(LibrariesManagerUtils.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    CommonExceptionHandler.process(e);
  }
catch (  CoreException e) {
    CommonExceptionHandler.process(e);
  }
}
Program: 127539
Project: 127539
Buggy source:
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=new File(PreferencesUtilities.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
catch (  CoreException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run() throws PersistenceException {
  try {
    for (    String name : names) {
      String path=new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();
      path=path + File.separatorChar + projectLabel+ File.separatorChar+ ERepositoryObjectType.getFolderName(ERepositoryObjectType.LIBS)+ File.separatorChar+ name;
      File libsTargetFile=new File(path);
      File source=null;
      EMap<String,String> jarsToRelative=LibrariesIndexManager.getInstance().getIndex().getJarsToRelativePath();
      String relativePath=jarsToRelative.get(name);
      if (relativePath != null) {
        if (!relativePath.startsWith("String_Node_Str")) {
          relativePath="String_Node_Str" + relativePath;
        }
        try {
          URI uri=new URI(relativePath);
          URL url=FileLocator.toFileURL(uri.toURL());
          source=new File(url.getFile());
        }
 catch (        URISyntaxException e) {
          CommonExceptionHandler.process(e);
        }
      }
      if (source == null) {
        source=new File(PreferencesUtilities.getLibrariesPath(ECodeLanguage.JAVA) + File.separatorChar + name);
      }
      FilesUtils.copyFile(source,libsTargetFile);
      synJavaLibs(source);
    }
    eclipseProject.refreshLocal(IResource.DEPTH_INFINITE,new NullProgressMonitor());
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
catch (  CoreException e) {
    ExceptionHandler.process(e);
  }
}
Program: 127541
Project: 127541
Buggy source:
@Override public void create(Project project,Item item,IPath path,boolean... isImportItem) throws PersistenceException {
  boolean isOherProcess=false;
  for (  IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
    isOherProcess=handler.isProcess(item);
    if (isOherProcess) {
      break;
    }
  }
  if (isOherProcess || item instanceof ProcessItem) {
    try {
      coreService.checkJob(item.getProperty().getLabel());
    }
 catch (    BusinessException e) {
      throw new PersistenceException(e);
    }
catch (    RuntimeException e) {
    }
  }
  checkFileNameAndPath(project,item,RepositoryConstants.getPattern(ERepositoryObjectType.getItemType(item)),path,false,isImportItem);
  this.repositoryFactoryFromProvider.create(project,item,path,isImportItem);
  if (isImportItem.length == 0 || !isImportItem[0]) {
    fireRepositoryPropertyChange(ERepositoryActionName.CREATE.getName(),null,item);
  }
  if (isImportItem.length > 0 && isImportItem[0]) {
    fireRepositoryPropertyChange(ERepositoryActionName.IMPORT.getName(),null,item);
  }
}

Fixed version (ground truth):
@Override public void create(Project project,Item item,IPath path,boolean... isImportItem) throws PersistenceException {
  boolean isOherProcess=false;
  for (  IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
    isOherProcess=handler.isProcess(item);
    if (isOherProcess) {
      break;
    }
  }
  ICoreService coreService=getCoreService();
  if (coreService != null && (isOherProcess || item instanceof ProcessItem)) {
    try {
      coreService.checkJob(item.getProperty().getLabel());
    }
 catch (    BusinessException e) {
      throw new PersistenceException(e);
    }
catch (    RuntimeException e) {
    }
  }
  checkFileNameAndPath(project,item,RepositoryConstants.getPattern(ERepositoryObjectType.getItemType(item)),path,false,isImportItem);
  this.repositoryFactoryFromProvider.create(project,item,path,isImportItem);
  if (isImportItem.length == 0 || !isImportItem[0]) {
    fireRepositoryPropertyChange(ERepositoryActionName.CREATE.getName(),null,item);
  }
  if (isImportItem.length > 0 && isImportItem[0]) {
    fireRepositoryPropertyChange(ERepositoryActionName.IMPORT.getName(),null,item);
  }
}
Program: 127543
Project: 127543
Buggy source:
@Override public Item copy(Item sourceItem,IPath targetPath,String newItemLabel) throws PersistenceException, BusinessException {
  if (sourceItem instanceof ProcessItem) {
    try {
      coreService.checkJob(sourceItem.getProperty().getLabel());
    }
 catch (    BusinessException e) {
      throw new PersistenceException(e);
    }
catch (    RuntimeException e) {
    }
  }
  Item targetItem=this.repositoryFactoryFromProvider.copy(sourceItem,targetPath,newItemLabel);
  return targetItem;
}

Fixed version (ground truth):
@Override public Item copy(Item sourceItem,IPath targetPath,String newItemLabel) throws PersistenceException, BusinessException {
  ICoreService coreService=getCoreService();
  if (coreService != null && sourceItem instanceof ProcessItem) {
    try {
      coreService.checkJob(sourceItem.getProperty().getLabel());
    }
 catch (    BusinessException e) {
      throw new PersistenceException(e);
    }
catch (    RuntimeException e) {
    }
  }
  Item targetItem=this.repositoryFactoryFromProvider.copy(sourceItem,targetPath,newItemLabel);
  return targetItem;
}
Program: 127545
Project: 127545
Buggy source:
/** 
 * Constructs a new SwitchProjectAction.
 */
public SwitchProjectAction(){
  super(Messages.getString("String_Node_Str"));
  setEnabled(false);
}

Fixed version (ground truth):
/** 
 * Constructs a new SwitchProjectAction.
 */
public SwitchProjectAction(){
  super(Messages.getString("String_Node_Str"));
  setEnabled(true);
}
Program: 127546
Project: 127546
Buggy source:
@Override public void keyPressed(KeyEvent e){
  if (dbTypeCombo.getSelectionIndex() > -1) {
    if (Character.isLetterOrDigit(e.character)) {
      e.doit=false;
    }
  }
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent e){
  if (!Character.isLetterOrDigit(e.character) && !Character.isIdentifierIgnorable(e.character)) {
    e.doit=false;
  }
}
Program: 127548
Project: 127548
Buggy source:
@Override public void keyPressed(KeyEvent e){
  if (dbTypeCombo.getSelectionIndex() > -1) {
    if (Character.isLetterOrDigit(e.character)) {
      e.doit=false;
    }
  }
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent e){
  if (!Character.isLetterOrDigit(e.character) && !Character.isIdentifierIgnorable(e.character)) {
    e.doit=false;
  }
}
Program: 127550
Project: 127550
Buggy source:
public static Collection<IRepositoryViewObject> getAllProcessDependencies(Collection<Item> items,boolean withSystem){
  clearFakeProcesses();
  createFakeProcesses(items);
  Collection<IRepositoryViewObject> dependencies=getContextDependenciesOfProcess(items);
  dependencies.addAll(getMetadataDependenciesOfProcess(items));
  dependencies.addAll(getChildPorcessDependenciesOfProcess(items,false));
  dependencies.addAll(getJobletDependenciesOfProcess(items,false));
  dependencies.addAll(getSQLTemplatesDependenciesOfProcess(items,withSystem));
  dependencies.addAll(getRoutineDependenciesOfProcess(items,withSystem,false));
  if (org.talend.commons.utils.platform.PluginChecker.isTDQLoaded()) {
    ITDQItemService tdqItemService=(ITDQItemService)GlobalServiceRegister.getDefault().getService(ITDQItemService.class);
    if (tdqItemService != null && tdqItemService.hasProcessItemDependencies(items)) {
      dependencies.addAll(tdqItemService.getProcessItemDependencies(items));
    }
  }
  clearFakeProcesses();
  return dependencies;
}

Fixed version (ground truth):
public static Collection<IRepositoryViewObject> getAllProcessDependencies(Collection<Item> items,boolean withSystem){
  clearFakeProcesses();
  createFakeProcesses(items);
  Collection<IRepositoryViewObject> dependencies=getContextDependenciesOfProcess(items);
  dependencies.addAll(getMetadataDependenciesOfProcess(items));
  dependencies.addAll(getChildPorcessDependenciesOfProcess(items,false));
  dependencies.addAll(getJobletDependenciesOfProcess(items,false));
  dependencies.addAll(getSQLTemplatesDependenciesOfProcess(items,withSystem));
  dependencies.addAll(getRoutineDependenciesOfProcess(items,withSystem,false));
  if (GlobalServiceRegister.getDefault().isServiceRegistered(ITDQItemService.class)) {
    ITDQItemService tdqItemService=(ITDQItemService)GlobalServiceRegister.getDefault().getService(ITDQItemService.class);
    if (tdqItemService != null && tdqItemService.hasProcessItemDependencies(items)) {
      dependencies.addAll(tdqItemService.getProcessItemDependencies(items));
    }
  }
  clearFakeProcesses();
  return dependencies;
}
Program: 127551
Project: 127551
Buggy source:
@Override public void keyPressed(KeyEvent e){
  if (dbTypeCombo.getSelectionIndex() > -1) {
    if (Character.isLetterOrDigit(e.character)) {
      e.doit=false;
    }
  }
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent e){
  if (!Character.isLetterOrDigit(e.character) && !Character.isIdentifierIgnorable(e.character)) {
    e.doit=false;
  }
}