nus-yam/ex-repair huggingface dataset:
Program: 119909
Project: 119909
Buggy source:
/** 
 * admin Comment method "createErDiagram".
 * @return
 */
private ErDiagram createErDiagram(boolean isShowDesignerPage){
  erDiagram=new ErDiagram();
  erDiagram.setErDiagramComposite(this);
  if (isShowDesignerPage) {
    IRunnableWithProgress progress=new IRunnableWithProgress(){
      public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
        try {
          List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
          List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
          erDiagram.setMetadataTables(tables);
          List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
          for (          MetadataTable metadataTable : tables) {
            Table table=new Table();
            table.setMetadataTable(metadataTable,selectedColumns);
            table.setErDiagram(erDiagram);
            erDiagram.addTable(table);
          }
          erDiagram.setRelations(fks);
        }
  finally {
          monitor.done();
        }
      }
    }
;
    UIUtils.runWithProgress(progress,true,dialog.getProgressMonitor(),dialog.getShell());
  }
 else {
    erDiagram.setMetadataTables(new ArrayList<MetadataTable>());
    erDiagram.setRelations(new ArrayList<String[]>());
  }
  return erDiagram;
}

Fixed version (ground truth):
/** 
 * admin Comment method "createErDiagram".
 * @return
 */
private ErDiagram createErDiagram(boolean isShowDesignerPage){
  erDiagram=new ErDiagram();
  erDiagram.setErDiagramComposite(this);
  if (isShowDesignerPage) {
    IRunnableWithProgress progress=new IRunnableWithProgress(){
      @Override public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
        try {
          List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
          List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
          erDiagram.setMetadataTables(tables);
          List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
          for (          MetadataTable metadataTable : tables) {
            Table table=new Table();
            table.setMetadataTable(metadataTable,selectedColumns);
            table.setErDiagram(erDiagram);
            erDiagram.addTable(table);
          }
          erDiagram.setRelations(fks);
        }
  finally {
          monitor.done();
        }
      }
    }
;
    UIUtils.runWithProgress(progress,true,dialog.getProgressMonitor(),dialog.getShell());
  }
 else {
    erDiagram.setMetadataTables(new ArrayList<MetadataTable>());
    erDiagram.setRelations(new ArrayList<String[]>());
  }
  return erDiagram;
}
Program: 119910
Project: 119910
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  try {
    List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
    List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
    erDiagram.setMetadataTables(tables);
    List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
    for (    MetadataTable metadataTable : tables) {
      Table table=new Table();
      table.setMetadataTable(metadataTable,selectedColumns);
      table.setErDiagram(erDiagram);
      erDiagram.addTable(table);
    }
    erDiagram.setRelations(fks);
  }
  finally {
    monitor.done();
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  try {
    List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
    List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
    erDiagram.setMetadataTables(tables);
    List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
    for (    MetadataTable metadataTable : tables) {
      Table table=new Table();
      table.setMetadataTable(metadataTable,selectedColumns);
      table.setErDiagram(erDiagram);
      erDiagram.addTable(table);
    }
    erDiagram.setRelations(fks);
  }
  finally {
    monitor.done();
  }
}
Program: 119912
Project: 119912
Buggy source:
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  return connection.getUiSchema();
}

Fixed version (ground truth):
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  String schema="String_Node_Str";
  if (ConnectionUtils.isTeradata(connection.getURL())) {
    schema=connection.getSID();
  }
 else {
    schema=connection.getUiSchema();
  }
  if (connection.isContextMode()) {
    schema=DatabaseConnectionParameterUtil.getContextTrueValue(connection,schema);
  }
  return schema;
}
Program: 119913
Project: 119913
Buggy source:
public void modifyText(ModifyEvent e){
  sqlString=sqlText.getText();
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  sqlString=sqlText.getText();
}
Program: 119914
Project: 119914
Buggy source:
/** 
 * admin Comment method "addErDiagramEditor".
 */
@SuppressWarnings("String_Node_Str") private void addErDiagramEditor(boolean isShowDesignerPage){
  GridData gridData=new GridData(GridData.FILL_BOTH);
  this.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.verticalSpacing=0;
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  layout.numColumns=1;
  this.setLayout(layout);
  editor=new ErdiagramDiagramEditor();
  editor.createPartControl(this);
  editor.getViewer().setContents(createErDiagram(isShowDesignerPage));
  Control control=editor.getGraphicalControl();
  if (control != null) {
    control.setParent(this);
    control.setLayoutData(gridData);
  }
  layout=new GridLayout();
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.heightHint=30;
  int textstyle=SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL;
  sqlText=new ColorStyledText(this,textstyle,CorePlugin.getDefault().getPreferenceStore(),language);
  sqlText.setLayoutData(gridData);
  sqlText.setText("String_Node_Str");
  sqlText.setBackground(getBackground());
  sqlText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      sqlString=sqlText.getText();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * admin Comment method "addErDiagramEditor".
 */
@SuppressWarnings("String_Node_Str") private void addErDiagramEditor(boolean isShowDesignerPage){
  GridData gridData=new GridData(GridData.FILL_BOTH);
  this.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.verticalSpacing=0;
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  layout.numColumns=1;
  this.setLayout(layout);
  editor=new ErdiagramDiagramEditor();
  editor.createPartControl(this);
  editor.getViewer().setContents(createErDiagram(isShowDesignerPage));
  Control control=editor.getGraphicalControl();
  if (control != null) {
    control.setParent(this);
    control.setLayoutData(gridData);
  }
  layout=new GridLayout();
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.heightHint=30;
  int textstyle=SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL;
  sqlText=new ColorStyledText(this,textstyle,CorePlugin.getDefault().getPreferenceStore(),language);
  sqlText.setLayoutData(gridData);
  sqlText.setText("String_Node_Str");
  sqlText.setBackground(getBackground());
  sqlText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    ModifyEvent e){
      sqlString=sqlText.getText();
    }
  }
);
}
Program: 119917
Project: 119917
Buggy source:
@Override public void drop(DropTargetEvent event){
  if (textTransfer.isSupportedType(event.currentDataType)) {
    String str=(String)event.data;
    ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
    expressionComposite.setExpression(str,true);
  }
}

Fixed version (ground truth):
@Override public void drop(DropTargetEvent event){
  if (textTransfer.isSupportedType(event.currentDataType)) {
    String str=(String)event.data;
    modificationRecord.pushRecored(textControl.getText() + str);
    ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
    expressionComposite.setExpression(str,true);
  }
}
Program: 119919
Project: 119919
Buggy source:
/** 
 * yzhang Comment method "popRecored".
 * @return
 */
public String popRecored(){
  if (stack.size() != 0) {
    if (undoCounter == 0) {
      stack.pop();
    }
    String expression=stack.pop();
    undoCounter++;
    if (stack.size() == 0) {
      button.setEnabled(false);
    }
    return expression;
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * yzhang Comment method "popRecored".
 * @return
 */
public String popRecored(){
  if (stack.size() != 0) {
    if (undoCounter == 0) {
      stack.pop();
    }
    String expression=stack.pop();
    undoCounter++;
    if (stack.size() == 0) {
      button.setEnabled(false);
    }
    return expression;
  }
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  return expressionComposite.textControl.getText();
}
Program: 119921
Project: 119921
Buggy source:
public void doubleClick(DoubleClickEvent event){
  Variable var=(Variable)(((IStructuredSelection)event.getSelection()).getFirstElement());
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  expressionComposite.setExpression(var.getName(),true);
}

Fixed version (ground truth):
public void doubleClick(DoubleClickEvent event){
  Variable var=(Variable)(((IStructuredSelection)event.getSelection()).getFirstElement());
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  expressionComposite.setExpression(var.getName(),true);
  expressionComposite.modificationRecord.pushRecored(expressionComposite.getExpression());
}
Program: 119924
Project: 119924
Buggy source:
@Override public void drop(DropTargetEvent event){
  if (textTransfer.isSupportedType(event.currentDataType)) {
    String str=(String)event.data;
    ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
    expressionComposite.setExpression(str,true);
  }
}

Fixed version (ground truth):
@Override public void drop(DropTargetEvent event){
  if (textTransfer.isSupportedType(event.currentDataType)) {
    String str=(String)event.data;
    modificationRecord.pushRecored(textControl.getText() + str);
    ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
    expressionComposite.setExpression(str,true);
  }
}
Program: 119926
Project: 119926
Buggy source:
/** 
 * yzhang Comment method "popRecored".
 * @return
 */
public String popRecored(){
  if (stack.size() != 0) {
    if (undoCounter == 0) {
      stack.pop();
    }
    String expression=stack.pop();
    undoCounter++;
    if (stack.size() == 0) {
      button.setEnabled(false);
    }
    return expression;
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * yzhang Comment method "popRecored".
 * @return
 */
public String popRecored(){
  if (stack.size() != 0) {
    if (undoCounter == 0) {
      stack.pop();
    }
    String expression=stack.pop();
    undoCounter++;
    if (stack.size() == 0) {
      button.setEnabled(false);
    }
    return expression;
  }
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  return expressionComposite.textControl.getText();
}
Program: 119928
Project: 119928
Buggy source:
public void doubleClick(DoubleClickEvent event){
  Variable var=(Variable)(((IStructuredSelection)event.getSelection()).getFirstElement());
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  expressionComposite.setExpression(var.getName(),true);
}

Fixed version (ground truth):
public void doubleClick(DoubleClickEvent event){
  Variable var=(Variable)(((IStructuredSelection)event.getSelection()).getFirstElement());
  ExpressionComposite expressionComposite=ExpressionBuilderDialog.getExpressionComposite();
  expressionComposite.setExpression(var.getName(),true);
  expressionComposite.modificationRecord.pushRecored(expressionComposite.getExpression());
}
Program: 119935
Project: 119935
Buggy source:
@Override public void run(){
  OutputTreeNode model=(OutputTreeNode)nodePart.getModel();
  OutputTreeNode outputDocumentRoot=(OutputTreeNode)XmlMapUtil.getTreeNodeRoot(model);
  if (outputDocumentRoot != null) {
    XmlMapUtil.cleanSubGroup(outputDocumentRoot);
  }
  if (!isRemove) {
    model.setGroup(true);
    if (!subGroupTraceNames.isEmpty()) {
      for (      TreeNode groupNode : subGroupTraceNames) {
        groupNode.setGroup(true);
      }
    }
  }
 else {
    model.setGroup(false);
    if (!subGroupTraceNames.isEmpty()) {
      for (      TreeNode groupNode : subGroupTraceNames) {
        groupNode.setGroup(false);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  OutputTreeNode model=(OutputTreeNode)nodePart.getModel();
  OutputTreeNode outputDocumentRoot=(OutputTreeNode)XmlMapUtil.getTreeNodeRoot(model);
  if (outputDocumentRoot != null) {
    XmlMapUtil.cleanSubGroup(outputDocumentRoot);
  }
  if (!isRemove) {
    model.setGroup(true);
    if (!subGroupTraceNames.isEmpty()) {
      for (      TreeNode groupNode : subGroupTraceNames) {
        if (groupNode.isChoice() || groupNode.isSubstitution()) {
          groupNode.setGroup(false);
        }
 else {
          groupNode.setGroup(true);
        }
      }
    }
  }
 else {
    model.setGroup(false);
    if (!subGroupTraceNames.isEmpty()) {
      for (      TreeNode groupNode : subGroupTraceNames) {
        groupNode.setGroup(false);
      }
    }
  }
}
Program: 119936
Project: 119936
Buggy source:
private void upsetGroup(TreeNode node,TreeNode rootGroup){
  if (node.eContainer() instanceof TreeNode && rootGroup != node.eContainer()) {
    TreeNode parent=(TreeNode)node.eContainer();
    if (!parent.isGroup()) {
      parent.setGroup(true);
    }
  }
}

Fixed version (ground truth):
private void upsetGroup(TreeNode node,TreeNode rootGroup){
  if (node.eContainer() instanceof TreeNode && rootGroup != node.eContainer()) {
    TreeNode parent=(TreeNode)node.eContainer();
    if (!parent.isGroup()) {
      if (parent.isChoice() || parent.isSubstitution()) {
        parent.setGroup(false);
      }
 else {
        parent.setGroup(true);
      }
    }
  }
}
Program: 119938
Project: 119938
Buggy source:
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  return connection.getUiSchema();
}

Fixed version (ground truth):
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  String schema="String_Node_Str";
  if (ConnectionUtils.isTeradata(connection.getURL())) {
    schema=connection.getSID();
  }
 else {
    schema=connection.getUiSchema();
  }
  if (connection.isContextMode()) {
    schema=DatabaseConnectionParameterUtil.getContextTrueValue(connection,schema);
  }
  return schema;
}
Program: 119939
Project: 119939
Buggy source:
public void setHost(String host){
  this.host=host;
}

Fixed version (ground truth):
public void setHost(String host) throws UnknownHostException {
  try {
    if (InetAddress.getByName(host) != null) {
      this.host=InetAddress.getByName(host).getHostAddress();
    }
  }
 catch (  UnknownHostException e) {
    this.host=host;
    throw e;
  }
}
Program: 119940
Project: 119940
Buggy source:
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  return s1.compareToIgnoreCase(s2);
}

Fixed version (ground truth):
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  if (s1.charAt(0) > s2.charAt(0)) {
    return 1;
  }
 else   if (s1.charAt(0) < s2.charAt(0)) {
    return -1;
  }
 else {
    String alphabet1=s1.replaceAll("String_Node_Str","String_Node_Str");
    String alphabet2=s2.replaceAll("String_Node_Str","String_Node_Str");
    int cmpAlphabet=alphabet1.compareToIgnoreCase(alphabet2);
    if (cmpAlphabet != 0) {
      return cmpAlphabet;
    }
    if (s1.lastIndexOf("String_Node_Str") == -1) {
      return s1.compareToIgnoreCase(s2);
    }
    String numeric1=s1.substring(s1.lastIndexOf("String_Node_Str") + 1);
    String numeric2=s2.substring(s2.lastIndexOf("String_Node_Str") + 1);
    if ("String_Node_Str".equals(numeric1)) {
      return -1;
    }
    if ("String_Node_Str".equals(numeric2)) {
      return 1;
    }
    int result;
    try {
      result=Integer.parseInt(numeric1) - Integer.parseInt(numeric2);
    }
 catch (    NumberFormatException e) {
      return s1.compareToIgnoreCase(s2);
    }
    return result;
  }
}
Program: 119942
Project: 119942
Buggy source:
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  return s1.compareToIgnoreCase(s2);
}

Fixed version (ground truth):
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  if (s1.charAt(0) > s2.charAt(0)) {
    return 1;
  }
 else   if (s1.charAt(0) < s2.charAt(0)) {
    return -1;
  }
 else {
    String alphabet1=s1.replaceAll("String_Node_Str","String_Node_Str");
    String alphabet2=s2.replaceAll("String_Node_Str","String_Node_Str");
    int cmpAlphabet=alphabet1.compareToIgnoreCase(alphabet2);
    if (cmpAlphabet != 0) {
      return cmpAlphabet;
    }
    if (s1.lastIndexOf("String_Node_Str") == -1) {
      return s1.compareToIgnoreCase(s2);
    }
    String numeric1=s1.substring(s1.lastIndexOf("String_Node_Str") + 1);
    String numeric2=s2.substring(s2.lastIndexOf("String_Node_Str") + 1);
    if ("String_Node_Str".equals(numeric1)) {
      return -1;
    }
    if ("String_Node_Str".equals(numeric2)) {
      return 1;
    }
    int result;
    try {
      result=Integer.parseInt(numeric1) - Integer.parseInt(numeric2);
    }
 catch (    NumberFormatException e) {
      return s1.compareToIgnoreCase(s2);
    }
    return result;
  }
}
Program: 119944
Project: 119944
Buggy source:
@Override public void run(IProgressMonitor monitor){
  TreeItem root=xmlViewer.getTree().getItem(0);
  if (getManager().getHl7Component().isHL7Output()) {
    if (getManager() instanceof HL7OutputManager) {
      List<HL7TreeNode> treeData=((HL7OutputManager)getManager()).getTreeData("String_Node_Str");
      createLoopLinks(treeData);
      getBackgroundRefresher().refreshBackground();
    }
  }
 else {
    List<TreeItem> allItems=TreeUtils.collectAllItems(root);
    monitorWrap=new EventLoopProgressMonitor(monitor);
    String taskName=Messages.getString("String_Node_Str");
    int totalWork=allItems.size();
    monitorWrap.beginTask(taskName,totalWork);
    for (int i=0; i < totalWork; i++) {
      if (monitorWrap.isCanceled()) {
        return;
      }
      TreeItem treeItem=allItems.get(i);
      HL7TreeNode node=(HL7TreeNode)treeItem.getData();
      if (node.getColumn() == null) {
        continue;
      }
      createLoopLinks(node.getColumn().getLabel(),treeItem,monitorWrap,i == totalWork - 1);
      monitorWrap.worked(1);
    }
    monitorWrap.done();
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor){
  TreeItem root=xmlViewer.getTree().getItem(0);
  if (getManager().getHl7Component().isHL7Output()) {
    if (getManager() instanceof HL7OutputManager) {
      List<HL7TreeNode> mappableNodes=new ArrayList<HL7TreeNode>();
      IElementParameter param=getManager().getHl7Component().getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
      String value=(String)param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).getValue();
      if (value.equals(EmfComponent.BUILTIN)) {
        List<HL7TreeNode> treeData=((HL7OutputManager)getManager()).getTreeData(((HL7OutputManager)getManager()).getCurrentSchema(false));
        for (        HL7TreeNode data : treeData) {
          if (data.isMain()) {
            if (data.hasChildren()) {
              mappableNodes.addAll(data.getChildren());
            }
          }
 else {
            mappableNodes.add(data);
          }
        }
      }
 else {
        mappableNodes=((HL7OutputManager)getManager()).getTreeData("String_Node_Str");
      }
      createLoopLinks(mappableNodes);
      getBackgroundRefresher().refreshBackground();
    }
  }
 else {
    List<TreeItem> allItems=TreeUtils.collectAllItems(root);
    monitorWrap=new EventLoopProgressMonitor(monitor);
    String taskName=Messages.getString("String_Node_Str");
    int totalWork=allItems.size();
    monitorWrap.beginTask(taskName,totalWork);
    for (int i=0; i < totalWork; i++) {
      if (monitorWrap.isCanceled()) {
        return;
      }
      TreeItem treeItem=allItems.get(i);
      HL7TreeNode node=(HL7TreeNode)treeItem.getData();
      if (node.getColumn() == null) {
        continue;
      }
      createLoopLinks(node.getColumn().getLabel(),treeItem,monitorWrap,i == totalWork - 1);
      monitorWrap.worked(1);
    }
    monitorWrap.done();
  }
}
Program: 119946
Project: 119946
Buggy source:
private void createLoopLinks(List<HL7TreeNode> treeData){
  for (  HL7TreeNode treeNode : treeData) {
    if (treeNode.getColumn() != null) {
      TableItem tableItem=null;
      for (      TableItem curTableItem : getSource().getItems()) {
        if (curTableItem.getText().equals(treeNode.getColumnName())) {
          tableItem=curTableItem;
          break;
        }
      }
      if (tableItem == null) {
        continue;
      }
      String path=tableItem.getText();
      if (path != null) {
        TreeItem treeItem=getTreeItem(treeNode);
        if (treeItem != null) {
          addLoopLink(tableItem,tableItem.getData(),xmlViewer.getTree(),(HL7TreeNode)treeItem.getData(),false);
        }
      }
    }
    createLoopLinks(treeNode.getChildren());
  }
}

Fixed version (ground truth):
private void createLoopLinks(List<HL7TreeNode> treeData){
  for (  HL7TreeNode treeNode : treeData) {
    if (treeNode.getColumn() != null) {
      TableItem tableItem=null;
      for (      TableItem curTableItem : getSource().getItems()) {
        if (curTableItem.getText().equals(treeNode.getColumn().getLabel())) {
          tableItem=curTableItem;
          break;
        }
      }
      if (tableItem == null) {
        continue;
      }
      String path=tableItem.getText();
      if (path != null) {
        TreeItem treeItem=getTreeItem(treeNode);
        if (treeItem != null) {
          addLoopLink(tableItem,tableItem.getData(),xmlViewer.getTree(),(HL7TreeNode)treeItem.getData(),false);
        }
      }
    }
    createLoopLinks(treeNode.getChildren());
  }
}
Program: 119949
Project: 119949
Buggy source:
@Override public int compare(INode node1,INode node2){
  if (node1.getLinkedMergeInfo().get(mergeNode) > node2.getLinkedMergeInfo().get(mergeNode)) {
    return 1;
  }
 else {
    return -1;
  }
}

Fixed version (ground truth):
@Override public int compare(INode node1,INode node2){
  Map<INode,Integer> mergeInfo1=node1.getLinkedMergeInfo();
  Map<INode,Integer> mergeInfo2=node2.getLinkedMergeInfo();
  for (  INode mNode : mergeNodes) {
    if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) != null) {
      if (mergeInfo1.get(mNode) > mergeInfo2.get(mNode)) {
        return 1;
      }
 else {
        return -1;
      }
    }
    if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) == null) {
      return -1;
    }
    if (mergeInfo1.get(mNode) == null && mergeInfo2.get(mNode) != null) {
      return 1;
    }
  }
  return -1;
}
Program: 119950
Project: 119950
Buggy source:
/** 
 * sort method, make sure the first one is the real start of the merge job
 * @return
 */
public List<INode> getSortedMergeBranchStarts(){
  if (mergeBranchStarts != null) {
    Collections.sort(mergeBranchStarts,new Comparator<INode>(){
      @Override public int compare(      INode node1,      INode node2){
        if (node1.getLinkedMergeInfo().get(mergeNode) > node2.getLinkedMergeInfo().get(mergeNode)) {
          return 1;
        }
 else {
          return -1;
        }
      }
    }
);
  }
  return mergeBranchStarts;
}

Fixed version (ground truth):
/** 
 * sort method, make sure the first one is the real start of the merge job
 * @return
 */
public List<INode> getSortedMergeBranchStarts(){
  if (mergeBranchStarts != null) {
    Collections.sort(mergeBranchStarts,new Comparator<INode>(){
      @Override public int compare(      INode node1,      INode node2){
        Map<INode,Integer> mergeInfo1=node1.getLinkedMergeInfo();
        Map<INode,Integer> mergeInfo2=node2.getLinkedMergeInfo();
        for (        INode mNode : mergeNodes) {
          if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) != null) {
            if (mergeInfo1.get(mNode) > mergeInfo2.get(mNode)) {
              return 1;
            }
 else {
              return -1;
            }
          }
          if (mergeInfo1.get(mNode) != null && mergeInfo2.get(mNode) == null) {
            return -1;
          }
          if (mergeInfo1.get(mNode) == null && mergeInfo2.get(mNode) != null) {
            return 1;
          }
        }
        return -1;
      }
    }
);
  }
  return mergeBranchStarts;
}
Program: 119951
Project: 119951
Buggy source:
/** 
 * unite all the relative merge nodes to this subTree
 * @param node
 */
public void uniteMergeSubTree(List<? extends INode> nodes){
  for (  INode node : nodes) {
    if (node == rootNode) {
      continue;
    }
    if (node.isActivate() && node.isSubProcessStart() && node.getLinkedMergeInfo() != null && node.getLinkedMergeInfo().get(mergeNode) != null) {
      mergeBranchStarts.add(node);
      buildSubTree(node,true);
    }
  }
}

Fixed version (ground truth):
/** 
 * unite all the relative merge nodes to this subTree
 * @param node
 */
public void uniteMergeSubTree(List<? extends INode> nodes){
  for (  INode node : nodes) {
    if (node == rootNode) {
      continue;
    }
    for (    INode mNode : mergeNodes) {
      if (node.isActivate() && node.isSubProcessStart() && node.getLinkedMergeInfo() != null && node.getLinkedMergeInfo().get(mNode) != null) {
        mergeBranchStarts.add(node);
        buildSubTree(node,true);
      }
    }
  }
}
Program: 119952
Project: 119952
Buggy source:
public void setHost(String host){
  this.host=host;
}

Fixed version (ground truth):
public void setHost(String host) throws UnknownHostException {
  try {
    if (InetAddress.getByName(host) != null) {
      this.host=InetAddress.getByName(host).getHostAddress();
    }
  }
 catch (  UnknownHostException e) {
    this.host=host;
    throw e;
  }
}
Program: 119953
Project: 119953
Buggy source:
public void setHost(String host){
  this.host=host;
}

Fixed version (ground truth):
public void setHost(String host) throws UnknownHostException {
  try {
    if (InetAddress.getByName(host) != null) {
      this.host=InetAddress.getByName(host).getHostAddress();
    }
  }
 catch (  UnknownHostException e) {
    this.host=host;
    throw e;
  }
}
Program: 119954
Project: 119954
Buggy source:
@Override public void run(IProgressMonitor monitor){
  TreeItem root=xmlViewer.getTree().getItem(0);
  if (getManager().getHl7Component().isHL7Output()) {
    if (getManager() instanceof HL7OutputManager) {
      List<HL7TreeNode> treeData=((HL7OutputManager)getManager()).getTreeData("String_Node_Str");
      createLoopLinks(treeData);
      getBackgroundRefresher().refreshBackground();
    }
  }
 else {
    List<TreeItem> allItems=TreeUtils.collectAllItems(root);
    monitorWrap=new EventLoopProgressMonitor(monitor);
    String taskName=Messages.getString("String_Node_Str");
    int totalWork=allItems.size();
    monitorWrap.beginTask(taskName,totalWork);
    for (int i=0; i < totalWork; i++) {
      if (monitorWrap.isCanceled()) {
        return;
      }
      TreeItem treeItem=allItems.get(i);
      HL7TreeNode node=(HL7TreeNode)treeItem.getData();
      if (node.getColumn() == null) {
        continue;
      }
      createLoopLinks(node.getColumn().getLabel(),treeItem,monitorWrap,i == totalWork - 1);
      monitorWrap.worked(1);
    }
    monitorWrap.done();
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor){
  TreeItem root=xmlViewer.getTree().getItem(0);
  if (getManager().getHl7Component().isHL7Output()) {
    if (getManager() instanceof HL7OutputManager) {
      List<HL7TreeNode> mappableNodes=new ArrayList<HL7TreeNode>();
      IElementParameter param=getManager().getHl7Component().getElementParameterFromField(EParameterFieldType.PROPERTY_TYPE);
      String value=(String)param.getChildParameters().get(EParameterName.PROPERTY_TYPE.getName()).getValue();
      if (value.equals(EmfComponent.BUILTIN)) {
        List<HL7TreeNode> treeData=((HL7OutputManager)getManager()).getTreeData(((HL7OutputManager)getManager()).getCurrentSchema(false));
        for (        HL7TreeNode data : treeData) {
          if (data.isMain()) {
            if (data.hasChildren()) {
              mappableNodes.addAll(data.getChildren());
            }
          }
 else {
            mappableNodes.add(data);
          }
        }
      }
 else {
        mappableNodes=((HL7OutputManager)getManager()).getTreeData("String_Node_Str");
      }
      createLoopLinks(mappableNodes);
      getBackgroundRefresher().refreshBackground();
    }
  }
 else {
    List<TreeItem> allItems=TreeUtils.collectAllItems(root);
    monitorWrap=new EventLoopProgressMonitor(monitor);
    String taskName=Messages.getString("String_Node_Str");
    int totalWork=allItems.size();
    monitorWrap.beginTask(taskName,totalWork);
    for (int i=0; i < totalWork; i++) {
      if (monitorWrap.isCanceled()) {
        return;
      }
      TreeItem treeItem=allItems.get(i);
      HL7TreeNode node=(HL7TreeNode)treeItem.getData();
      if (node.getColumn() == null) {
        continue;
      }
      createLoopLinks(node.getColumn().getLabel(),treeItem,monitorWrap,i == totalWork - 1);
      monitorWrap.worked(1);
    }
    monitorWrap.done();
  }
}
Program: 119956
Project: 119956
Buggy source:
private void createLoopLinks(List<HL7TreeNode> treeData){
  for (  HL7TreeNode treeNode : treeData) {
    if (treeNode.getColumn() != null) {
      TableItem tableItem=null;
      for (      TableItem curTableItem : getSource().getItems()) {
        if (curTableItem.getText().equals(treeNode.getColumnName())) {
          tableItem=curTableItem;
          break;
        }
      }
      if (tableItem == null) {
        continue;
      }
      String path=tableItem.getText();
      if (path != null) {
        TreeItem treeItem=getTreeItem(treeNode);
        if (treeItem != null) {
          addLoopLink(tableItem,tableItem.getData(),xmlViewer.getTree(),(HL7TreeNode)treeItem.getData(),false);
        }
      }
    }
    createLoopLinks(treeNode.getChildren());
  }
}

Fixed version (ground truth):
private void createLoopLinks(List<HL7TreeNode> treeData){
  for (  HL7TreeNode treeNode : treeData) {
    if (treeNode.getColumn() != null) {
      TableItem tableItem=null;
      for (      TableItem curTableItem : getSource().getItems()) {
        if (curTableItem.getText().equals(treeNode.getColumn().getLabel())) {
          tableItem=curTableItem;
          break;
        }
      }
      if (tableItem == null) {
        continue;
      }
      String path=tableItem.getText();
      if (path != null) {
        TreeItem treeItem=getTreeItem(treeNode);
        if (treeItem != null) {
          addLoopLink(tableItem,tableItem.getData(),xmlViewer.getTree(),(HL7TreeNode)treeItem.getData(),false);
        }
      }
    }
    createLoopLinks(treeNode.getChildren());
  }
}
Program: 119958
Project: 119958
Buggy source:
/** 
 * admin Comment method "createErDiagram".
 * @return
 */
private ErDiagram createErDiagram(boolean isShowDesignerPage){
  erDiagram=new ErDiagram();
  erDiagram.setErDiagramComposite(this);
  if (isShowDesignerPage) {
    IRunnableWithProgress progress=new IRunnableWithProgress(){
      public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
        try {
          List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
          List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
          erDiagram.setMetadataTables(tables);
          List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
          for (          MetadataTable metadataTable : tables) {
            Table table=new Table();
            table.setMetadataTable(metadataTable,selectedColumns);
            table.setErDiagram(erDiagram);
            erDiagram.addTable(table);
          }
          erDiagram.setRelations(fks);
        }
  finally {
          monitor.done();
        }
      }
    }
;
    UIUtils.runWithProgress(progress,true,dialog.getProgressMonitor(),dialog.getShell());
  }
 else {
    erDiagram.setMetadataTables(new ArrayList<MetadataTable>());
    erDiagram.setRelations(new ArrayList<String[]>());
  }
  return erDiagram;
}

Fixed version (ground truth):
/** 
 * admin Comment method "createErDiagram".
 * @return
 */
private ErDiagram createErDiagram(boolean isShowDesignerPage){
  erDiagram=new ErDiagram();
  erDiagram.setErDiagramComposite(this);
  if (isShowDesignerPage) {
    IRunnableWithProgress progress=new IRunnableWithProgress(){
      @Override public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
        try {
          List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
          List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
          erDiagram.setMetadataTables(tables);
          List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
          for (          MetadataTable metadataTable : tables) {
            Table table=new Table();
            table.setMetadataTable(metadataTable,selectedColumns);
            table.setErDiagram(erDiagram);
            erDiagram.addTable(table);
          }
          erDiagram.setRelations(fks);
        }
  finally {
          monitor.done();
        }
      }
    }
;
    UIUtils.runWithProgress(progress,true,dialog.getProgressMonitor(),dialog.getShell());
  }
 else {
    erDiagram.setMetadataTables(new ArrayList<MetadataTable>());
    erDiagram.setRelations(new ArrayList<String[]>());
  }
  return erDiagram;
}
Program: 119959
Project: 119959
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  try {
    List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
    List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
    erDiagram.setMetadataTables(tables);
    List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
    for (    MetadataTable metadataTable : tables) {
      Table table=new Table();
      table.setMetadataTable(metadataTable,selectedColumns);
      table.setErDiagram(erDiagram);
      erDiagram.addTable(table);
    }
    erDiagram.setRelations(fks);
  }
  finally {
    monitor.done();
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",IProgressMonitor.UNKNOWN);
  try {
    List<MetadataColumn> selectedColumns=new ArrayList<MetadataColumn>();
    List<MetadataTable> tables=EMFRepositoryNodeManager.getInstance().getTables(getNodes(),selectedColumns);
    erDiagram.setMetadataTables(tables);
    List<String[]> fks=EMFRepositoryNodeManager.getInstance().getPKFromTables(tables,erDiagram.getErDiagramComposite().getDialog().getSelectedContext());
    for (    MetadataTable metadataTable : tables) {
      Table table=new Table();
      table.setMetadataTable(metadataTable,selectedColumns);
      table.setErDiagram(erDiagram);
      erDiagram.addTable(table);
    }
    erDiagram.setRelations(fks);
  }
  finally {
    monitor.done();
  }
}
Program: 119961
Project: 119961
Buggy source:
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  return connection.getUiSchema();
}

Fixed version (ground truth):
private String getSchema(){
  DatabaseConnection connection=(DatabaseConnection)((ConnectionItem)rootNode.getObject().getProperty().getItem()).getConnection();
  String schema="String_Node_Str";
  if (ConnectionUtils.isTeradata(connection.getURL())) {
    schema=connection.getSID();
  }
 else {
    schema=connection.getUiSchema();
  }
  if (connection.isContextMode()) {
    schema=DatabaseConnectionParameterUtil.getContextTrueValue(connection,schema);
  }
  return schema;
}
Program: 119962
Project: 119962
Buggy source:
public void modifyText(ModifyEvent e){
  sqlString=sqlText.getText();
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  sqlString=sqlText.getText();
}
Program: 119963
Project: 119963
Buggy source:
/** 
 * admin Comment method "addErDiagramEditor".
 */
@SuppressWarnings("String_Node_Str") private void addErDiagramEditor(boolean isShowDesignerPage){
  GridData gridData=new GridData(GridData.FILL_BOTH);
  this.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.verticalSpacing=0;
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  layout.numColumns=1;
  this.setLayout(layout);
  editor=new ErdiagramDiagramEditor();
  editor.createPartControl(this);
  editor.getViewer().setContents(createErDiagram(isShowDesignerPage));
  Control control=editor.getGraphicalControl();
  if (control != null) {
    control.setParent(this);
    control.setLayoutData(gridData);
  }
  layout=new GridLayout();
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.heightHint=30;
  int textstyle=SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL;
  sqlText=new ColorStyledText(this,textstyle,CorePlugin.getDefault().getPreferenceStore(),language);
  sqlText.setLayoutData(gridData);
  sqlText.setText("String_Node_Str");
  sqlText.setBackground(getBackground());
  sqlText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      sqlString=sqlText.getText();
    }
  }
);
}

Fixed version (ground truth):
/** 
 * admin Comment method "addErDiagramEditor".
 */
@SuppressWarnings("String_Node_Str") private void addErDiagramEditor(boolean isShowDesignerPage){
  GridData gridData=new GridData(GridData.FILL_BOTH);
  this.setLayoutData(gridData);
  GridLayout layout=new GridLayout();
  layout.verticalSpacing=0;
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  layout.numColumns=1;
  this.setLayout(layout);
  editor=new ErdiagramDiagramEditor();
  editor.createPartControl(this);
  editor.getViewer().setContents(createErDiagram(isShowDesignerPage));
  Control control=editor.getGraphicalControl();
  if (control != null) {
    control.setParent(this);
    control.setLayoutData(gridData);
  }
  layout=new GridLayout();
  layout.marginLeft=0;
  layout.marginRight=0;
  layout.marginBottom=0;
  layout.marginTop=0;
  layout.marginHeight=0;
  layout.marginWidth=0;
  gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.heightHint=30;
  int textstyle=SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL;
  sqlText=new ColorStyledText(this,textstyle,CorePlugin.getDefault().getPreferenceStore(),language);
  sqlText.setLayoutData(gridData);
  sqlText.setText("String_Node_Str");
  sqlText.setBackground(getBackground());
  sqlText.addModifyListener(new ModifyListener(){
    @Override public void modifyText(    ModifyEvent e){
      sqlString=sqlText.getText();
    }
  }
);
}
Program: 119964
Project: 119964
Buggy source:
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  if (s1.charAt(0) > s2.charAt(0)) {
    return 1;
  }
 else   if (s1.charAt(0) < s2.charAt(0)) {
    return -1;
  }
 else {
    String alphabet1=s1.replaceAll("String_Node_Str","String_Node_Str");
    String alphabet2=s2.replaceAll("String_Node_Str","String_Node_Str");
    int cmpAlphabet=alphabet1.compareToIgnoreCase(alphabet2);
    if (cmpAlphabet != 0) {
      return cmpAlphabet;
    }
    String numeric1=s1.replaceAll("String_Node_Str","String_Node_Str");
    String numeric2=s2.replaceAll("String_Node_Str","String_Node_Str");
    if ("String_Node_Str".equals(numeric1)) {
      return -1;
    }
    if ("String_Node_Str".equals(numeric2)) {
      return 1;
    }
    int result=Integer.parseInt(numeric1) - Integer.parseInt(numeric2);
    return result;
  }
}

Fixed version (ground truth):
@Override public int compare(Node o1,Node o2){
  String s1=o1.getUniqueName().toLowerCase();
  String s2=o2.getUniqueName().toLowerCase();
  return s1.compareToIgnoreCase(s2);
}
Program: 119966
Project: 119966
Buggy source:
public DataSet getDataSet() throws Exception {
  INode node=getNode();
  if (node == null) {
    return null;
  }
  if (node.getSession() == null) {
    return null;
  }
  if (node instanceof TableNode) {
    TableNode tableNode=(TableNode)node;
    ITableInfo ti=tableNode.getTableInfo();
    if (tableNode.getTableInfo() == null) {
      return null;
    }
    ResultSet resultSet=null;
    SessionTreeNode treeNode=node.getSession();
    if (ti.getType().equals("String_Node_Str")) {
      String realTableName=ExtractMetaDataFromDataBase.getTableNameBySynonym(treeNode.getInteractiveConnection().getConnection(),ti.getSimpleName());
      resultSet=treeNode.getMetaData().getJDBCMetaData().getColumns(ti.getCatalogName(),ti.getSchemaName(),realTableName,"String_Node_Str");
    }
 else {
      resultSet=node.getSession().getMetaData().getColumns(tableNode.getTableInfo());
    }
    DataSet dataSet=new DataSet(null,resultSet,new int[]{4,5,6,7,9,10,11,12,13,14,15,16,17,18});
    resultSet.close();
    return dataSet;
  }
  return null;
}

Fixed version (ground truth):
@Override public DataSet getDataSet() throws Exception {
  INode node=getNode();
  if (node == null) {
    return null;
  }
  if (node.getSession() == null) {
    return null;
  }
  if (node instanceof TableNode) {
    TableNode tableNode=(TableNode)node;
    ITableInfo ti=tableNode.getTableInfo();
    if (tableNode.getTableInfo() == null) {
      return null;
    }
    ResultSet resultSet=null;
    SessionTreeNode treeNode=node.getSession();
    if (ti.getType().equals("String_Node_Str")) {
      String realTableName=ExtractMetaDataFromDataBase.getTableNameBySynonym(treeNode.getInteractiveConnection().getConnection(),ti.getSimpleName());
      resultSet=treeNode.getMetaData().getJDBCMetaData().getColumns(ti.getCatalogName(),ti.getSchemaName(),realTableName,"String_Node_Str");
    }
 else {
      String tableName=ti.getSimpleName();
      if (tableName.contains("String_Node_Str")) {
        tableName=tableName.replaceAll("String_Node_Str","String_Node_Str");
      }
      resultSet=node.getSession().getMetaData().getJDBCMetaData().getColumns(ti.getCatalogName(),ti.getSchemaName(),tableName,"String_Node_Str");
    }
    DataSet dataSet=new DataSet(null,resultSet,new int[]{4,5,6,7,9,10,11,12,13,14,15,16,17,18});
    resultSet.close();
    return dataSet;
  }
  return null;
}
Program: 119967
Project: 119967
Buggy source:
public String getStatusMessage(){
  return Messages.getString("String_Node_Str",getNode().getQualifiedName());
}

Fixed version (ground truth):
@Override public String getStatusMessage(){
  return Messages.getString("String_Node_Str",getNode().getQualifiedName());
}
Program: 119968
Project: 119968
Buggy source:
public String getLabelText(){
  return Messages.getString("String_Node_Str");
}

Fixed version (ground truth):
@Override public String getLabelText(){
  return Messages.getString("String_Node_Str");
}
Program: 119970
Project: 119970
Buggy source:
/** 
 * 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;
}

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;
  }
  updateStatus(IStatus.OK,null);
  return true;
}