nus-yam/ex-repair huggingface dataset:
Program: 119199
Project: 119199
Buggy source:
/** 
 * Sets the parameters, name node uri and job tracker uri, for connection parameters. Added by Marvin Wang on Jan 8, 2013.
 * @param element
 */
private void setSpecialParamsForHiveEmbedded(IElement element){
  String distroKey=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_DISTRIBUTION,distroKey);
  String distroVersion=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_VERSION,distroVersion);
  String hiveModel=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_MODE,hiveModel);
  String nameNodeURI=getValueFromRepositoryName(element,EParameterNameForComponent.PARA_NAME_FS_DEFAULT_NAME.getName());
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_NAME_NODE_URL,nameNodeURI);
  String jobTrackerURI=getValueFromRepositoryName(element,EParameterNameForComponent.PARA_NAME_MAPRED_JT.getName());
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_JOB_TRACKER_URL,jobTrackerURI);
}

Fixed version (ground truth):
/** 
 * Sets the parameters, name node uri and job tracker uri, for connection parameters. Added by Marvin Wang on Jan 8, 2013.
 * @param element
 */
private void setSpecialParamsForHiveEmbedded(IElement element){
  String distroKey=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_DISTRIBUTION,distroKey);
  String distroVersion=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_VERSION,distroVersion);
  String hiveModel=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HIVE_MODE,hiveModel);
  String hiveServerVersion=getValueFromRepositoryName(elem,"String_Node_Str");
  connParameters.getParameters().put(ConnParameterKeys.HIVE_SERVER_VERSION,hiveServerVersion);
  String nameNodeURI=getValueFromRepositoryName(element,EParameterNameForComponent.PARA_NAME_FS_DEFAULT_NAME.getName());
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_NAME_NODE_URL,nameNodeURI);
  String jobTrackerURI=getValueFromRepositoryName(element,EParameterNameForComponent.PARA_NAME_MAPRED_JT.getName());
  connParameters.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_JOB_TRACKER_URL,jobTrackerURI);
}
Program: 119203
Project: 119203
Buggy source:
/** 
 * DOC hcw AbstractScdDialog constructor comment.
 * @param shell
 */
public AbstractScdDialog(Shell shell){
  super(shell);
  this.shell=shell;
  setShellStyle(SWT.BORDER | SWT.CLOSE | SWT.MIN| SWT.MAX| SWT.TITLE| SWT.APPLICATION_MODAL);
}

Fixed version (ground truth):
/** 
 * DOC hcw AbstractScdDialog constructor comment.
 * @param shell
 */
public AbstractScdDialog(Shell shell){
  super(shell);
  this.shell=shell;
  setShellStyle(SWT.BORDER | SWT.CLOSE | SWT.MIN| SWT.MAX| SWT.TITLE| SWT.APPLICATION_MODAL| SWT.RESIZE);
}
Program: 119204
Project: 119204
Buggy source:
public void widgetSelected(SelectionEvent e){
  applyFilter();
}

Fixed version (ground truth):
public void widgetSelected(SelectionEvent e){
  filterText.setFocus();
  applyFilter();
}
Program: 119205
Project: 119205
Buggy source:
/** 
 * DOC hcw Comment method "createFilter".
 * @param container
 * @return
 */
protected ViewerFilter createFilter(Composite container){
  Composite composite=new Composite(container,SWT.NONE);
  GridLayoutFactory.swtDefaults().numColumns(2).margins(0,5).applyTo(composite);
  GridDataFactory.swtDefaults().hint(SECTION_WIDTH,SWT.DEFAULT).applyTo(composite);
  filterText=new Text(composite,SWT.BORDER);
  GridDataFactory.swtDefaults().align(SWT.CENTER,SWT.FILL).hint(SECTION_WIDTH - 100,SWT.DEFAULT).applyTo(filterText);
  Button filterButton=new Button(composite,SWT.PUSH);
  filterButton.setText(Messages.getString("String_Node_Str"));
  filterButton.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      applyFilter();
    }
  }
);
  ViewerFilter filter=new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      String pattern=filterText.getText();
      SearchPattern matcher=new SearchPattern();
      matcher.setPattern(pattern);
      return matcher.matches(element.toString());
    }
  }
;
  return filter;
}

Fixed version (ground truth):
/** 
 * DOC hcw Comment method "createFilter".
 * @param container
 * @return
 */
protected ViewerFilter createFilter(Composite container){
  Composite composite=new Composite(container,SWT.NONE);
  GridDataFactory.swtDefaults().grab(true,false).align(SWT.FILL,SWT.FILL).applyTo(composite);
  composite.setLayout(new FormLayout());
  final Button filterButton=new Button(composite,SWT.PUSH);
  filterText=new Text(composite,SWT.BORDER);
  filterText.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      Shell dialogShell=AbstractScdDialog.this.getShell();
      if (dialogShell != null) {
        dialogShell.setDefaultButton(filterButton);
      }
    }
  }
);
  filterText.setFocus();
  FormData formData=new FormData();
  formData.right=new FormAttachment(100);
  formData.top=new FormAttachment(0);
  filterButton.setLayoutData(formData);
  formData=new FormData();
  formData.top=new FormAttachment(filterButton,0,SWT.CENTER);
  formData.left=new FormAttachment(0);
  formData.right=new FormAttachment(filterButton,0,SWT.LEFT);
  filterText.setLayoutData(formData);
  filterButton.setText(Messages.getString("String_Node_Str"));
  filterButton.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent e){
    }
    public void widgetSelected(    SelectionEvent e){
      filterText.setFocus();
      applyFilter();
    }
  }
);
  ViewerFilter filter=new ViewerFilter(){
    @Override public boolean select(    Viewer viewer,    Object parentElement,    Object element){
      String pattern=filterText.getText();
      SearchPattern matcher=new SearchPattern();
      matcher.setPattern(pattern);
      return matcher.matches(element.toString());
    }
  }
;
  return filter;
}
Program: 119206
Project: 119206
Buggy source:
/** 
 * Create contents of the button bar
 * @param parent
 */
@Override protected void createButtonsForButtonBar(Composite parent){
  createButton(parent,IDialogConstants.OK_ID,IDialogConstants.OK_LABEL,true);
  createButton(parent,IDialogConstants.CANCEL_ID,IDialogConstants.CANCEL_LABEL,false);
}

Fixed version (ground truth):
/** 
 * Create contents of the button bar
 * @param parent
 */
@Override protected void createButtonsForButtonBar(Composite parent){
  okButton=createButton(parent,IDialogConstants.OK_ID,IDialogConstants.OK_LABEL,true);
  createButton(parent,IDialogConstants.CANCEL_ID,IDialogConstants.CANCEL_LABEL,false);
}
Program: 119207
Project: 119207
Buggy source:
@Override protected void createContents(Composite composite){
  tableViewer=new TableViewer(composite,SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL);
  Table table=tableViewer.getTable();
  table.setLinesVisible(true);
  table.setHeaderVisible(false);
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true);
  table.setLayoutData(gd);
  TableViewerColumn column=new TableViewerColumn(tableViewer,SWT.NONE);
  column.getColumn().setWidth(width);
  if (editable) {
    column.setEditingSupport(new FieldEditingSupport(tableViewer,0));
  }
  tableViewer.setLabelProvider(new TableLabelProvider());
  tableViewer.setContentProvider(new ContentProvider());
}

Fixed version (ground truth):
@Override protected void createContents(Composite composite){
  tableViewer=new TableViewer(composite,SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL);
  final Table table=tableViewer.getTable();
  table.setLinesVisible(true);
  table.setHeaderVisible(false);
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true);
  gd.horizontalAlignment=SWT.FILL;
  gd.verticalAlignment=SWT.FILL;
  table.setLayoutData(gd);
  TableViewerColumn column=new TableViewerColumn(tableViewer,SWT.NONE);
  table.addPaintListener(new PaintListener(){
    public void paintControl(    PaintEvent e){
      TableColumn[] columns=table.getColumns();
      int clientWidth=table.getBounds().width;
      columns[0].setWidth(clientWidth);
    }
  }
);
  if (editable) {
    column.setEditingSupport(new FieldEditingSupport(tableViewer,0));
  }
  tableViewer.setLabelProvider(new TableLabelProvider());
  tableViewer.setContentProvider(new ContentProvider());
}
Program: 119208
Project: 119208
Buggy source:
public String getDragItemsAsText(){
  tableViewer.cancelEditing();
  Table table=tableViewer.getTable();
  TableItem[] selection=table.getSelection();
  StringBuffer buf=new StringBuffer();
  buf.append(selection.length);
  for (int i=0, n=selection.length; i < n; i++) {
    buf.append('|');
    buf.append(selection[i].getText());
  }
  return buf.toString();
}

Fixed version (ground truth):
public String getDragItemsAsText(){
  tableViewer.cancelEditing();
  Table table=tableViewer.getTable();
  TableItem[] selection=table.getSelection();
  StringBuffer buf=new StringBuffer();
  buf.append(selection.length);
  for (  TableItem element : selection) {
    buf.append('|');
    buf.append(element.getText());
  }
  return buf.toString();
}
Program: 119209
Project: 119209
Buggy source:
/** 
 * DOC hcyi FieldSection constructor comment.
 * @param parent
 */
public FieldSection(Composite parent,int width,int height,ScdManager scdManager,boolean toolbarNeeded,boolean editable,int type){
  super(parent,width,height,scdManager,toolbarNeeded);
  dragDropManager=new DragDropManager();
  dragDropManager.addDragSupport(tableViewer.getTable(),this);
  dragDropManager.addDropSupport(tableViewer.getTable(),this);
  tableModel=new ArrayList<String>();
  this.editable=editable;
  this.type=type;
}

Fixed version (ground truth):
/** 
 * DOC hcyi FieldSection constructor comment.
 * @param parent
 */
public FieldSection(Composite parent,ScdManager scdManager,boolean toolbarNeeded,boolean editable,int type){
  super(parent,scdManager,toolbarNeeded);
  dragDropManager=new DragDropManager();
  dragDropManager.addDragSupport(tableViewer.getTable(),this);
  dragDropManager.addDropSupport(tableViewer.getTable(),this);
  tableModel=new ArrayList<String>();
  this.editable=editable;
  this.type=type;
}
Program: 119211
Project: 119211
Buggy source:
/** 
 * Return the initial size of the dialog
 */
@Override protected Point getInitialSize(){
  return new Point(810,750);
}

Fixed version (ground truth):
/** 
 * Return the initial size of the dialog
 */
@Override protected Point getInitialSize(){
  return getDialogSize();
}
Program: 119212
Project: 119212
Buggy source:
/** 
 * DOC hcw MultipleSurrogateSection constructor comment.
 * @param parent
 * @param width
 * @param height
 */
public MultipleSurrogateSection(Composite parent,int width,int height,ScdManager scdManager){
  super(parent,width,height,scdManager,false);
  surrogateManager=new SurrogateKeyManager();
  editorManager=new TableEditorManager();
  dragDropManager=new DragDropManager();
}

Fixed version (ground truth):
/** 
 * DOC hcw MultipleSurrogateSection constructor comment.
 * @param parent
 * @param width
 * @param height
 */
public MultipleSurrogateSection(Composite parent,ScdManager scdManager){
  super(parent,scdManager,false);
  surrogateManager=new SurrogateKeyManager();
  editorManager=new TableEditorManager();
  dragDropManager=new DragDropManager();
}
Program: 119213
Project: 119213
Buggy source:
@Override protected void createContents(Composite composite){
  table=new Table(composite,SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true);
  table.setLayoutData(gd);
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  TableColumn column=new TableColumn(table,SWT.NONE);
  column.setWidth(100);
  column.setText("String_Node_Str");
  TableColumn creation=new TableColumn(table,SWT.NONE);
  creation.setWidth(100);
  creation.setText("String_Node_Str");
  TableColumn complement=new TableColumn(table,SWT.NONE);
  complement.setWidth(150);
  complement.setText("String_Node_Str");
  TableColumn empty=new TableColumn(table,SWT.NONE);
  empty.setWidth(100);
}

Fixed version (ground truth):
@Override protected void createContents(Composite composite){
  table=new Table(composite,SWT.BORDER | SWT.MULTI | SWT.FULL_SELECTION);
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true);
  gd.horizontalAlignment=SWT.FILL;
  gd.verticalAlignment=SWT.FILL;
  table.setLayoutData(gd);
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  TableColumn column=new TableColumn(table,SWT.NONE);
  column.setWidth(100);
  column.setText("String_Node_Str");
  TableColumn creation=new TableColumn(table,SWT.NONE);
  creation.setWidth(100);
  creation.setText("String_Node_Str");
  TableColumn complement=new TableColumn(table,SWT.NONE);
  complement.setWidth(150);
  complement.setText("String_Node_Str");
  TableColumn empty=new TableColumn(table,SWT.NONE);
  empty.setWidth(100);
}
Program: 119216
Project: 119216
Buggy source:
@Override public void refreshProgress(IProcessMessage psMess,Node node,String nodeUniqueName){
  String mess="String_Node_Str";
  String uniqueName="String_Node_Str";
  String[] message=psMess.getContent().split("String_Node_Str");
  for (int i=0; i < message.length; i++) {
    if (isPattern(message[i])) {
      int firIndex=message[i].indexOf("String_Node_Str");
      int secIndex=message[i].indexOf("String_Node_Str");
      uniqueName=message[i].substring(0,firIndex);
      mess=message[i].substring(firIndex + 1,secIndex);
    }
    Double extentPro=new Double(0);
    if ((!"String_Node_Str".equals(mess)) && mess != null) {
      extentPro=Double.parseDouble(mess);
    }
    if (((extend != extentPro) && nodeUniqueName.equals(uniqueName))) {
      node.getNodeProgressBar().updateState("String_Node_Str",extentPro);
      extend=extentPro;
    }
  }
}

Fixed version (ground truth):
@Override public void refreshProgress(IProcessMessage psMess,Node node,String nodeUniqueName){
  String mess="String_Node_Str";
  String uniqueName="String_Node_Str";
  String[] message=psMess.getContent().split("String_Node_Str");
  for (  String element : message) {
    if (isPattern(element)) {
      int firIndex=element.indexOf("String_Node_Str");
      int secIndex=element.indexOf("String_Node_Str");
      uniqueName=element.substring(0,firIndex);
      mess=element.substring(firIndex + 1,secIndex);
    }
    Double extentPro=new Double(0);
    if ((!"String_Node_Str".equals(mess)) && mess != null) {
      extentPro=Double.parseDouble(mess);
    }
    if (((extend != extentPro) && nodeUniqueName.equals(uniqueName))) {
      node.getNodeProgressBar().updateState("String_Node_Str",extentPro);
      extend=extentPro;
    }
  }
}
Program: 119217
Project: 119217
Buggy source:
public void propertyChange(PropertyChangeEvent evt){
  runProcessContextChanged(evt);
}

Fixed version (ground truth):
@Override public void propertyChange(PropertyChangeEvent evt){
  runProcessContextChanged(evt);
}
Program: 119218
Project: 119218
Buggy source:
@Override protected void setRunnable(boolean runnable){
  if (!clearTracePerfBtn.isDisposed() && clearTracePerfBtn != null)   clearTracePerfBtn.setEnabled(runnable);
  setExecBtn(runnable);
  if (!enableLineLimitButton.isDisposed() && enableLineLimitButton != null)   enableLineLimitButton.setEnabled(runnable);
  if (!lineLimitText.isDisposed() && lineLimitText != null)   lineLimitText.setEnabled(runnable);
}

Fixed version (ground truth):
@Override protected void setRunnable(boolean runnable){
  if (!clearTracePerfBtn.isDisposed() && clearTracePerfBtn != null) {
    if (processContext != null && processContext.getProcess() != null) {
      clearTracePerfBtn.setEnabled(true);
    }
 else {
      clearTracePerfBtn.setEnabled(runnable);
    }
  }
  setExecBtn(runnable);
  if (!enableLineLimitButton.isDisposed() && enableLineLimitButton != null) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (!lineLimitText.isDisposed() && lineLimitText != null) {
    lineLimitText.setEnabled(runnable);
  }
}
Program: 119219
Project: 119219
Buggy source:
public void keyPressed(KeyEvent evt){
  if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'a')) {
    if (consoleText.getText().length() > 0)     consoleText.setSelection(0,(consoleText.getText().length() - 1));
  }
 else   if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'f')) {
    FindDialog td=new FindDialog(Display.getCurrent().getActiveShell());
    td.setConsoleText(consoleText);
    td.setBlockOnOpen(true);
    td.open();
  }
}

Fixed version (ground truth):
@Override public void keyPressed(KeyEvent evt){
  if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'a')) {
    if (consoleText.getText().length() > 0) {
      consoleText.setSelection(0,(consoleText.getText().length() - 1));
    }
  }
 else   if ((evt.stateMask == SWT.CTRL) && (evt.keyCode == 'f')) {
    FindDialog td=new FindDialog(Display.getCurrent().getActiveShell());
    td.setConsoleText(consoleText);
    td.setBlockOnOpen(true);
    td.open();
  }
}
Program: 119221
Project: 119221
Buggy source:
public void modifyText(ModifyEvent e){
  RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText());
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText());
}
Program: 119223
Project: 119223
Buggy source:
@Override protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
      consoleText.setText("String_Node_Str");
      processContext.clearMessages();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (isRuning) {
        if (consoleText != null && !consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 119224
Project: 119224
Buggy source:
public void handleEvent(Event e){
  String s=e.text;
  if (!s.equals("String_Node_Str")) {
    try {
      Integer.parseInt(s);
      RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText() + s);
    }
 catch (    Exception ex) {
      e.doit=false;
    }
  }
}

Fixed version (ground truth):
@Override public void handleEvent(Event e){
  String s=e.text;
  if (!s.equals("String_Node_Str")) {
    try {
      Integer.parseInt(s);
      RunProcessPlugin.getDefault().getPluginPreferences().setValue(RunprocessConstants.CONSOLE_LINE_LIMIT_COUNT,lineLimitText.getText() + s);
    }
 catch (    Exception ex) {
      e.doit=false;
    }
  }
}
Program: 119225
Project: 119225
Buggy source:
private void runProcessContextChanged(final PropertyChangeEvent evt){
  String propName=evt.getPropertyName();
  Display dis=Display.getCurrent();
  if (dis == null) {
    dis=Display.getDefault();
  }
  if (ProcessMessageManager.PROP_MESSAGE_ADD.equals(propName) || ProcessMessageManager.PROP_DEBUG_MESSAGE_ADD.equals(propName)) {
    IProcessMessage psMess=(IProcessMessage)evt.getNewValue();
    if (errorMessMap.size() <= CorePlugin.getDefault().getPreferenceStore().getInt(ITalendCorePrefConstants.PREVIEW_LIMIT)) {
      if (!(LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL))) {
        getAllErrorMess(psMess);
      }
 else {
        addPerlMark(psMess);
      }
    }
    appendToConsole(psMess);
  }
 else   if (ProcessMessageManager.PROP_MESSAGE_CLEAR.equals(propName)) {
    dis.asyncExec(new Runnable(){
      public void run(){
        if (!consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
    }
);
  }
 else   if (RunProcessContext.PROP_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.TRACE_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.PROP_RUNNING.equals(propName)) {
    dis.asyncExec(new Runnable(){
      public void run(){
        if (isDisposed()) {
          return;
        }
        boolean running=((Boolean)evt.getNewValue()).booleanValue();
        setRunnable(!running);
        if (!killBtn.isDisposed() && killBtn != null)         killBtn.setEnabled(running);
        isRuning=false;
      }
    }
);
  }
}

Fixed version (ground truth):
private void runProcessContextChanged(final PropertyChangeEvent evt){
  String propName=evt.getPropertyName();
  Display dis=Display.getCurrent();
  if (dis == null) {
    dis=Display.getDefault();
  }
  if (ProcessMessageManager.PROP_MESSAGE_ADD.equals(propName) || ProcessMessageManager.PROP_DEBUG_MESSAGE_ADD.equals(propName)) {
    IProcessMessage psMess=(IProcessMessage)evt.getNewValue();
    if (errorMessMap.size() <= CorePlugin.getDefault().getPreferenceStore().getInt(ITalendCorePrefConstants.PREVIEW_LIMIT)) {
      if (!(LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL))) {
        getAllErrorMess(psMess);
      }
 else {
        addPerlMark(psMess);
      }
    }
    appendToConsole(psMess);
  }
 else   if (ProcessMessageManager.PROP_MESSAGE_CLEAR.equals(propName)) {
    dis.asyncExec(new Runnable(){
      @Override public void run(){
        if (!consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
    }
);
  }
 else   if (RunProcessContext.PROP_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.TRACE_MONITOR.equals(propName)) {
  }
 else   if (RunProcessContext.PROP_RUNNING.equals(propName)) {
    dis.asyncExec(new Runnable(){
      @Override public void run(){
        if (isDisposed()) {
          return;
        }
        boolean running=((Boolean)evt.getNewValue()).booleanValue();
        setRunnable(!running);
        if (!killBtn.isDisposed() && killBtn != null) {
          killBtn.setEnabled(running);
        }
        isRuning=false;
      }
    }
);
  }
}
Program: 119226
Project: 119226
Buggy source:
public void streamAppended(String text,IStreamMonitor monitor){
  IProcessMessage message=new ProcessMessage(ProcessMessage.MsgType.STD_OUT,text);
  processContext.addDebugResultToConsole(message);
}

Fixed version (ground truth):
@Override public void streamAppended(String text,IStreamMonitor monitor){
  IProcessMessage message=new ProcessMessage(ProcessMessage.MsgType.STD_OUT,text);
  processContext.addDebugResultToConsole(message);
}
Program: 119227
Project: 119227
Buggy source:
public void keyReleased(KeyEvent arg0){
}

Fixed version (ground truth):
@Override public void keyReleased(KeyEvent arg0){
}
Program: 119229
Project: 119229
Buggy source:
@Override public void refresh(){
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      getParent().layout();
    }
  }
);
}

Fixed version (ground truth):
@Override public void refresh(){
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      getParent().layout();
    }
  }
);
}
Program: 119231
Project: 119231
Buggy source:
@Override protected void appendToConsole(final IProcessMessage message){
  manager.getProcessShell().getDisplay().asyncExec(new Runnable(){
    public void run(){
      if (message.getType() == MsgType.CORE_OUT || message.getType() == MsgType.CORE_ERR) {
        callViewToDisplayMsg(message);
      }
 else {
        if (!isHideConsoleLine()) {
          callViewToDisplayMsg(message);
        }
      }
    }
    /** 
 * DOC yexiaowei Comment method "callViewToDisplayMsg".
 * @param message
 */
    private void callViewToDisplayMsg(    final IProcessMessage message){
      doAppendToConsole(message);
      scrollToEnd();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void appendToConsole(final IProcessMessage message){
  manager.getProcessShell().getDisplay().asyncExec(new Runnable(){
    @Override public void run(){
      if (message.getType() == MsgType.CORE_OUT || message.getType() == MsgType.CORE_ERR) {
        callViewToDisplayMsg(message);
      }
 else {
        if (!isHideConsoleLine()) {
          callViewToDisplayMsg(message);
        }
      }
    }
    /** 
 * DOC yexiaowei Comment method "callViewToDisplayMsg".
 * @param message
 */
    private void callViewToDisplayMsg(    final IProcessMessage message){
      doAppendToConsole(message);
      scrollToEnd();
    }
  }
);
}
Program: 119233
Project: 119233
Buggy source:
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    clearTracePerfBtn.setEnabled(runnable);
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}

Fixed version (ground truth):
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    if (processContext != null && processContext.getProcess() != null) {
      clearTracePerfBtn.setEnabled(true);
    }
 else {
      clearTracePerfBtn.setEnabled(runnable);
    }
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}
Program: 119234
Project: 119234
Buggy source:
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
      clearPerfAction.setProcess(processContext.getProcess());
      clearPerfAction.run();
      ClearTraceAction clearTraceAction=new ClearTraceAction();
      clearTraceAction.setProcess(processContext.getProcess());
      clearTraceAction.run();
      consoleText.setText("String_Node_Str");
      processContext.clearMessages();
      refreshNodeContainer();
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (!run.getEnabled()) {
        if (consoleText != null && !consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
        refreshNodeContainer();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 119236
Project: 119236
Buggy source:
@Override protected void setExecBtn(final boolean runnable){
  if (!isDisposed()) {
    if (itemDropDown.getData().equals(ProcessView.DEBUG_ID)) {
      toolBar.setEnabled(runnable);
    }
    if (processContext != null) {
      if (processContext.isMonitorTrace()) {
        boolean b=processContext != null;
        if (!runnable && b) {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.PAUSE_PROCESS_ACTION));
          itemDropDown.setData(ProcessView.PAUSE_ID);
          toolBar.getParent().layout();
        }
 else {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setData(ProcessView.TRACEDEBUG_ID);
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_TRACE_ACTION));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
        }
        toolBar.setEnabled(b);
      }
    }
  }
}

Fixed version (ground truth):
@Override protected void setExecBtn(final boolean runnable){
  if (!isDisposed()) {
    if (itemDropDown.getData().equals(ProcessView.DEBUG_ID)) {
      toolBar.setEnabled(runnable);
    }
    if (processContext != null) {
      if (processContext.isMonitorTrace()) {
        boolean b=processContext != null;
        if (!runnable && b) {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.PAUSE_PROCESS_ACTION));
          itemDropDown.setData(ProcessView.PAUSE_ID);
        }
 else {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setData(ProcessView.TRACEDEBUG_ID);
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_TRACE_ACTION));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
        }
        toolBar.getParent().getParent().layout();
        toolBar.setEnabled(b);
      }
    }
  }
}
Program: 119237
Project: 119237
Buggy source:
public void widgetSelected(SelectionEvent e){
  FileDialog dialog=new FileDialog(mainComposite.getShell(),SWT.NONE);
  String path=PathExtractor.extractPath(host.getText());
  dialog.setFileName(PathUtils.getOSPath(path));
  String file=dialog.open();
  if (file != null) {
    if (!file.equals("String_Node_Str")) {
      host.setText(PathUtils.getPortablePath(file));
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  FileDialog dialog=new FileDialog(mainComposite.getShell(),SWT.NONE);
  String path=PathExtractor.extractPath(host.getText());
  dialog.setFileName(PathUtils.getOSPath(path));
  String file=dialog.open();
  if (file != null) {
    if (!file.equals("String_Node_Str")) {
      host.setText(PathUtils.getPortablePath(file));
    }
  }
}
Program: 119238
Project: 119238
Buggy source:
@Override protected Control createDialogArea(Composite parent){
  mainComposite=(Composite)super.createDialogArea(parent);
  GridLayout gridLayout=new GridLayout(1,true);
  mainComposite.setLayout(gridLayout);
  IContext defaultContext=createContextComposite();
  Label hLabel=new Label(mainComposite,SWT.SEPARATOR | SWT.HORIZONTAL);
  hLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  addComponents(defaultContext);
  contextCombo.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      for (      Text text : allParamText) {
        if (text != null && !text.isDisposed()) {
          Object data=text.getData(TEXT_CONTROL);
          if (data != null && data instanceof Text) {
            resetValues(text,(Text)data);
          }
        }
      }
    }
  }
);
  return mainComposite;
}

Fixed version (ground truth):
@Override protected Control createDialogArea(Composite parent){
  Composite parentComposite=(Composite)super.createDialogArea(parent);
  GridLayout gridLayout=new GridLayout(1,true);
  gridLayout.verticalSpacing=0;
  parentComposite.setLayout(gridLayout);
  IContext defaultContext=createContextComposite(parentComposite);
  ScrolledComposite scrolledComposite=new ScrolledComposite(parentComposite,SWT.V_SCROLL | SWT.BORDER);
  mainComposite=new Composite(scrolledComposite,SWT.NONE);
  gridLayout=new GridLayout(1,true);
  gridLayout.verticalSpacing=0;
  mainComposite.setLayout(gridLayout);
  addComponents(defaultContext);
  GridData gridData=new GridData(GridData.FILL_BOTH);
  scrolledComposite.setLayoutData(gridData);
  scrolledComposite.setContent(mainComposite);
  scrolledComposite.setExpandHorizontal(true);
  scrolledComposite.setExpandVertical(true);
  scrolledComposite.setMinSize(mainComposite.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  contextCombo.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      for (      Text text : allParamText) {
        if (text != null && !text.isDisposed()) {
          Object data=text.getData(TEXT_CONTROL);
          if (data != null && data instanceof Text) {
            resetValues(text,(Text)data);
          }
        }
      }
    }
  }
);
  return parentComposite;
}
Program: 119240
Project: 119240
Buggy source:
public void widgetDefaultSelected(SelectionEvent e){
}

Fixed version (ground truth):
@Override public void widgetDefaultSelected(SelectionEvent e){
}
Program: 119242
Project: 119242
Buggy source:
public void modifyText(ModifyEvent e){
  if (isRequriedValue(key.getName())) {
    if (host.getText().trim().length() == 0) {
      host.setBackground(ColorConstants.red);
      host.redraw();
    }
 else {
      host.setBackground(ColorConstants.white);
      host.redraw();
    }
    resetValues(host,hostText);
  }
}

Fixed version (ground truth):
@Override public void modifyText(ModifyEvent e){
  if (isRequriedValue(key.getName())) {
    if (host.getText().trim().length() == 0) {
      host.setBackground(ColorConstants.red);
      host.redraw();
    }
 else {
      host.setBackground(ColorConstants.white);
      host.redraw();
    }
    resetValues(host,hostText);
  }
}
Program: 119243
Project: 119243
Buggy source:
/** 
 * qzhang Comment method "createContextComposite".
 * @return
 */
private IContext createContextComposite(){
  Composite contextComposite=new Composite(mainComposite,SWT.NONE);
  GridLayout gridLayout=new GridLayout(2,false);
  contextComposite.setLayout(gridLayout);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalAlignment=GridData.END;
  contextComposite.setLayoutData(gridData);
  Label contextLabel=new Label(contextComposite,SWT.NONE);
  contextLabel.setText(Messages.getString("String_Node_Str"));
  contextCombo=new Combo(contextComposite,SWT.PUSH);
  GridDataFactory.swtDefaults().hint(LABEL_DEFAULT_X,DEFAULT_HEIGHT).applyTo(contextCombo);
  contextCombo.setItems(getContextNames());
  contextCombo.select(0);
  IContext defaultContext=contextManager.getDefaultContext();
  return defaultContext;
}

Fixed version (ground truth):
/** 
 * qzhang Comment method "createContextComposite".
 * @return
 */
private IContext createContextComposite(Composite parent){
  Composite contextComposite=new Composite(parent,SWT.NONE);
  GridLayout gridLayout=new GridLayout(2,false);
  contextComposite.setLayout(gridLayout);
  GridData gridData=new GridData(GridData.FILL_HORIZONTAL);
  gridData.horizontalAlignment=GridData.END;
  contextComposite.setLayoutData(gridData);
  Label contextLabel=new Label(contextComposite,SWT.NONE);
  contextLabel.setText(Messages.getString("String_Node_Str"));
  contextCombo=new Combo(contextComposite,SWT.PUSH);
  GridDataFactory.swtDefaults().hint(LABEL_DEFAULT_X,DEFAULT_HEIGHT).applyTo(contextCombo);
  contextCombo.setItems(getContextNames());
  contextCombo.select(0);
  IContext defaultContext=contextManager.getDefaultContext();
  return defaultContext;
}
Program: 119244
Project: 119244
Buggy source:
public Command createCommand(Button button){
  DateDialog dateDial=new DateDialog(composite.getShell());
  int returnValue=dateDial.open();
  if (returnValue == DateDialog.OK) {
    String propertyName=(String)button.getData(PARAMETER_NAME);
    String date=dateDial.getTalendDateString();
    if (!elem.getPropertyValue(propertyName).equals(date)) {
      return new PropertyChangeCommand(elem,propertyName,TalendTextUtils.addQuotes(date));
    }
  }
  return null;
}

Fixed version (ground truth):
public Command createCommand(Button button){
  DateDialog dateDial=new DateDialog(composite.getShell());
  int returnValue=dateDial.open();
  if (returnValue == DateDialog.OK) {
    String propertyName=(String)button.getData(PARAMETER_NAME);
    String date=dateDial.getTalendDateString();
    if (!elem.getPropertyValue(propertyName).equals(date)) {
      elem.setPropertyValue(EParameterName.UPDATE_COMPONENTS.getName(),Boolean.TRUE);
      return new PropertyChangeCommand(elem,propertyName,TalendTextUtils.addQuotes(date));
    }
  }
  return null;
}
Program: 119248
Project: 119248
Buggy source:
@Override protected void setRunnable(boolean runnable){
  if (!clearTracePerfBtn.isDisposed() && clearTracePerfBtn != null) {
    if (processContext != null && processContext.getProcess() != null) {
      clearTracePerfBtn.setEnabled(true);
    }
 else {
      clearTracePerfBtn.setEnabled(runnable);
    }
  }
  setExecBtn(runnable);
  if (!enableLineLimitButton.isDisposed() && enableLineLimitButton != null) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (!lineLimitText.isDisposed() && lineLimitText != null) {
    lineLimitText.setEnabled(runnable);
  }
}

Fixed version (ground truth):
@Override protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    IProcess2 iProcess=null;
    boolean enableClearBtn=true;
    if (processContext != null && (iProcess=processContext.getProcess()) != null) {
      if (iProcess.disableRunJobView()) {
        enableClearBtn=false;
      }
    }
 else {
      enableClearBtn=false;
    }
    clearTracePerfBtn.setEnabled(enableClearBtn);
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
}
Program: 119249
Project: 119249
Buggy source:
@Override protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (isRuning) {
        if (consoleText != null && !consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
@Override protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (processContext.isRunning()) {
        if (consoleText != null && !consoleText.isDisposed()) {
          processContext.clearMessages();
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 119250
Project: 119250
Buggy source:
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    if (processContext != null && processContext.getProcess() != null) {
      clearTracePerfBtn.setEnabled(true);
    }
 else {
      clearTracePerfBtn.setEnabled(runnable);
    }
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}

Fixed version (ground truth):
protected void setRunnable(boolean runnable){
  if (clearTracePerfBtn != null && !clearTracePerfBtn.isDisposed()) {
    IProcess2 iProcess=null;
    boolean enableClearBtn=true;
    if (processContext != null && (iProcess=processContext.getProcess()) != null) {
      if (iProcess.disableRunJobView()) {
        enableClearBtn=false;
      }
    }
 else {
      enableClearBtn=false;
    }
    clearTracePerfBtn.setEnabled(enableClearBtn);
  }
  setExecBtn(runnable);
  if (enableLineLimitButton != null && !enableLineLimitButton.isDisposed()) {
    enableLineLimitButton.setEnabled(runnable);
  }
  if (lineLimitText != null && !lineLimitText.isDisposed()) {
    lineLimitText.setEnabled(runnable);
  }
  if (wrapButton != null && !wrapButton.isDisposed()) {
    wrapButton.setEnabled(runnable);
  }
}
Program: 119251
Project: 119251
Buggy source:
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (!run.getEnabled()) {
        if (consoleText != null && !consoleText.isDisposed()) {
          consoleText.setText("String_Node_Str");
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
        refreshNodeContainer();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}

Fixed version (ground truth):
protected void addListeners(){
  clearTracePerfBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      if (processContext == null) {
        clearTracePerfBtn.setEnabled(false);
        return;
      }
      if (processContext.isRunning()) {
        if (consoleText != null && !consoleText.isDisposed()) {
          processContext.clearMessages();
        }
      }
 else {
        ClearPerformanceAction clearPerfAction=new ClearPerformanceAction();
        clearPerfAction.setProcess(processContext.getProcess());
        clearPerfAction.run();
        ClearTraceAction clearTraceAction=new ClearTraceAction();
        clearTraceAction.setProcess(processContext.getProcess());
        clearTraceAction.run();
        consoleText.setText("String_Node_Str");
        processContext.clearMessages();
        refreshNodeContainer();
      }
    }
  }
);
  killBtn.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      kill();
    }
  }
);
}
Program: 119262
Project: 119262
Buggy source:
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  if (ERepositoryObjectType.PROCESS != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> mrList=service.getProxyRepositoryFactory().getAll(ERepositoryObjectType.PROCESS,true,false);
      if (mrList != null && mrList.size() > 0) {
        list.addAll(mrList);
      }
    }
  }
  ERepositoryObjectType mrRepObjType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (mrRepObjType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> mrList=service.getProxyRepositoryFactory().getAll(mrRepObjType,true,false);
      if (mrList != null && mrList.size() > 0) {
        list.addAll(mrList);
      }
    }
  }
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> routeList=service.getProxyRepositoryFactory().getAll(routeType,true,false);
      if (routeList != null && routeList.size() > 0) {
        list.addAll(routeList);
      }
    }
  }
  return list;
}

Fixed version (ground truth):
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  List<IRepositoryViewObject> processList=getAllProcessTypeObjectsWithoutCurrentType();
  if (processList != null && !processList.isEmpty()) {
    list.addAll(processList);
  }
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(IProxyRepositoryService.class)) {
      IProxyRepositoryService service=(IProxyRepositoryService)GlobalServiceRegister.getDefault().getService(IProxyRepositoryService.class);
      List<IRepositoryViewObject> routeList=service.getProxyRepositoryFactory().getAll(routeType,true,false);
      if (routeList != null && routeList.size() > 0) {
        list.addAll(routeList);
      }
    }
  }
  return list;
}