nus-yam/ex-repair huggingface dataset:
Program: 118058
Project: 118058
Buggy source:
private void removeSourceMatadata(IConnection connection){
  Node source=(Node)connection.getSource();
  if (source.isELTMapComponent()) {
    IMetadataTable table=connection.getMetadataTable();
    if (0 < source.countConnectionsUsingMetadata(table)) {
      return;
    }
    if (table != null) {
      String label=table.getLabel();
      IMetadataTable metadataTable=MetadataToolHelper.getMetadataTableFromNode(source,label);
      if (metadataTable != null) {
        source.metadataList.remove(metadataTable);
      }
    }
  }
}

Fixed version (ground truth):
private void removeSourceMatadata(IConnection connection){
  Node source=(Node)connection.getSource();
  if (source.isELTMapComponent()) {
    IMetadataTable table=connection.getMetadataTable();
    if (0 < source.countConnectionsUsingMetadata(table)) {
      return;
    }
    if (table != null) {
      source.metadataList.remove(table);
    }
  }
}
Program: 118060
Project: 118060
Buggy source:
@Override protected boolean isPasswordParam(IElementParameter parameter){
  if (ContextParameterUtils.containContextVariables(String.valueOf(parameter.getValue()))) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
@Override protected boolean isPasswordParam(IElementParameter parameter){
  String value=String.valueOf(parameter.getValue());
  if (ContextParameterUtils.containContextVariables(value)) {
    return false;
  }
  return TalendQuoteUtils.isCommonString(value);
}
Program: 118063
Project: 118063
Buggy source:
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=(RepositoryNode)((IStructuredSelection)getSelection()).getFirstElement();
  }
  RoutineItem routineItem=(RoutineItem)repositoryNode.getObject().getProperty().getItem();
  try {
    openRoutineEditor(routineItem,false);
    refresh(repositoryNode);
    CorePlugin.getDefault().getLibrariesService().resetModulesNeeded();
    CorePlugin.getDefault().getRunProcessService().updateLibraries(new HashSet<ModuleNeeded>(),null);
  }
 catch (  PartInitException e) {
    MessageBoxExceptionHandler.process(e);
  }
catch (  SystemException e) {
    MessageBoxExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override protected void doRun(){
  if (repositoryNode == null) {
    repositoryNode=(RepositoryNode)((IStructuredSelection)getSelection()).getFirstElement();
  }
  RoutineItem routineItem=(RoutineItem)repositoryNode.getObject().getProperty().getItem();
  try {
    openRoutineEditor(routineItem,false);
    refresh(repositoryNode);
    CorePlugin.getDefault().getRunProcessService().updateLibraries(new HashSet<ModuleNeeded>(),null);
  }
 catch (  PartInitException e) {
    MessageBoxExceptionHandler.process(e);
  }
catch (  SystemException e) {
    MessageBoxExceptionHandler.process(e);
  }
}
Program: 118065
Project: 118065
Buggy source:
protected ITableLabelProvider createLabelProvider(){
  return new ITableLabelProvider(){
    @Override public Image getColumnImage(    Object element,    int columnIndex){
      return null;
    }
    @Override public String getColumnText(    Object element,    int columnIndex){
      String value=((String)element);
      if (columnIndex == 0) {
        return value.replace("String_Node_Str","String_Node_Str");
      }
      throw new IllegalStateException();
    }
    @Override public void addListener(    ILabelProviderListener listener){
    }
    @Override public void dispose(){
    }
    @Override public boolean isLabelProperty(    Object element,    String property){
      return false;
    }
    @Override public void removeListener(    ILabelProviderListener listener){
    }
  }
;
}

Fixed version (ground truth):
protected ITableLabelProvider createLabelProvider(){
  return new ITableLabelProvider(){
    @Override public Image getColumnImage(    Object element,    int columnIndex){
      return null;
    }
    @Override public String getColumnText(    Object element,    int columnIndex){
      String value=((String)element);
      if (columnIndex == 0) {
        return value;
      }
      throw new IllegalStateException();
    }
    @Override public void addListener(    ILabelProviderListener listener){
    }
    @Override public void dispose(){
    }
    @Override public boolean isLabelProperty(    Object element,    String property){
      return false;
    }
    @Override public void removeListener(    ILabelProviderListener listener){
    }
  }
;
}
Program: 118066
Project: 118066
Buggy source:
@Override public String getColumnText(Object element,int columnIndex){
  String value=((String)element);
  if (columnIndex == 0) {
    return value.replace("String_Node_Str","String_Node_Str");
  }
  throw new IllegalStateException();
}

Fixed version (ground truth):
@Override public String getColumnText(Object element,int columnIndex){
  String value=((String)element);
  if (columnIndex == 0) {
    return value;
  }
  throw new IllegalStateException();
}
Program: 118067
Project: 118067
Buggy source:
protected List<String> readString(String stringList){
  if (stringList == null || "String_Node_Str".equals(stringList)) {
    return EMPTY_STRING_LIST;
  }
  ArrayList<String> result=new ArrayList<String>(50);
  for (  String tmp : stringList.split("String_Node_Str")) {
    if (tmp != null && !"String_Node_Str".equals(tmp)) {
      result.add(tmp);
    }
  }
  return result;
}

Fixed version (ground truth):
protected List<String> readString(String stringList){
  if (stringList == null || "String_Node_Str".equals(stringList)) {
    return EMPTY_STRING_LIST;
  }
  ArrayList<String> result=new ArrayList<String>(50);
  if (!isJson(stringList)) {
    return result;
  }
  try {
    JSONObject root=new JSONObject(stringList);
    Object obj=root.get("String_Node_Str");
    if (obj != null && (obj instanceof JSONArray)) {
      JSONArray array=(JSONArray)obj;
      for (int i=0; i < array.length(); i++) {
        result.add((String)array.get(i));
      }
    }
  }
 catch (  JSONException e) {
    ExceptionHandler.process(e);
  }
  return result;
}
Program: 118068
Project: 118068
Buggy source:
protected String writeString(List<String> items){
  int size=items.size();
  StringBuffer buf=new StringBuffer(size * 50);
  buf.append("String_Node_Str");
  for (int i=0; i < size; i++) {
    buf.append(items.get(i).trim().replaceAll("String_Node_Str","String_Node_Str"));
    buf.append("String_Node_Str");
  }
  return buf.toString();
}

Fixed version (ground truth):
protected String writeString(List<String> items){
  JSONObject root=new JSONObject();
  JSONArray args=new JSONArray();
  int size=items.size();
  for (int i=0; i < size; i++) {
    String vm=items.get(i).trim();
    args.put(vm);
  }
  try {
    root.put("String_Node_Str",args);
  }
 catch (  JSONException e) {
    ExceptionHandler.process(e);
  }
  return root.toString();
}
Program: 118069
Project: 118069
Buggy source:
private void init(boolean duringLogon){
  removeOldComponentsUserFolder();
  long startTime=System.currentTimeMillis();
  componentList=new HashSet<IComponent>();
  customComponentList=new HashSet<IComponent>();
  skeletonList=new ArrayList<String>();
  userComponentList=new HashSet<IComponent>();
  String installLocation=new Path(Platform.getConfigurationLocation().getURL().getPath()).toFile().getAbsolutePath();
  componentToProviderMap=new HashMap<IComponent,AbstractComponentsProvider>();
  boolean isNeedClean=!cleanDone && TalendCacheUtils.isSetCleanComponentCache();
  cleanDone=true;
  isCreated=hasComponentFile(installLocation) && !isNeedClean;
  ComponentsCache cache=ComponentManager.getComponentCache();
  try {
    if (isCreated) {
      if (cache.getComponentEntryMap().isEmpty()) {
        ComponentsCache loadCache=loadComponentResource(installLocation);
        cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
      }
    }
 else {
      cache.getComponentEntryMap().clear();
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
    cache.getComponentEntryMap().clear();
    isCreated=false;
  }
  loadComponentsFromComponentsProviderExtension();
  loadComponentsFromExtensions();
  ComponentManager.saveResource();
  initComponentNameMap();
  log.debug(componentList.size() + "String_Node_Str" + (System.currentTimeMillis() - startTime)+ "String_Node_Str");
}

Fixed version (ground truth):
private void init(boolean duringLogon){
  removeOldComponentsUserFolder();
  long startTime=System.currentTimeMillis();
  componentList=Collections.synchronizedSet(new HashSet<IComponent>());
  customComponentList=new HashSet<IComponent>();
  skeletonList=new ArrayList<String>();
  userComponentList=new HashSet<IComponent>();
  String installLocation=new Path(Platform.getConfigurationLocation().getURL().getPath()).toFile().getAbsolutePath();
  componentToProviderMap=new HashMap<IComponent,AbstractComponentsProvider>();
  boolean isNeedClean=!cleanDone && TalendCacheUtils.isSetCleanComponentCache();
  cleanDone=true;
  isCreated=hasComponentFile(installLocation) && !isNeedClean;
  ComponentsCache cache=ComponentManager.getComponentCache();
  try {
    if (isCreated) {
      if (cache.getComponentEntryMap().isEmpty()) {
        ComponentsCache loadCache=loadComponentResource(installLocation);
        cache.getComponentEntryMap().putAll(loadCache.getComponentEntryMap());
      }
    }
 else {
      cache.getComponentEntryMap().clear();
    }
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
    cache.getComponentEntryMap().clear();
    isCreated=false;
  }
  loadComponentsFromComponentsProviderExtension();
  loadComponentsFromExtensions();
  ComponentManager.saveResource();
  initComponentNameMap();
  log.debug(componentList.size() + "String_Node_Str" + (System.currentTimeMillis() - startTime)+ "String_Node_Str");
}
Program: 118073
Project: 118073
Buggy source:
@Override public void generateCode(boolean statistics,boolean trace,boolean javaProperties) throws ProcessorException {
  super.generateCode(statistics,trace,javaProperties);
  if (isStandardJob()) {
    generatePom();
  }
  updateProjectPom(null);
}

Fixed version (ground truth):
@Override public void generateCode(boolean statistics,boolean trace,boolean javaProperties,int option) throws ProcessorException {
  super.generateCode(statistics,trace,javaProperties,option);
  if (isStandardJob()) {
    generatePom();
  }
  updateProjectPom(null);
}
Program: 118075
Project: 118075
Buggy source:
@Override public String getRepositoryType(){
  return null;
}

Fixed version (ground truth):
public String getRepositoryType(Connection connection){
  return null;
}
Program: 118077
Project: 118077
Buggy source:
/** 
 * DOC bqian Comment method "findProcessFromEditors".
 * @param jobName
 * @param jobVersion
 */
public static IProcess2 findProcessFromEditors(final String jobId,final String jobVersion){
  final IProcess2[] process=new IProcess2[1];
  Display.getDefault().syncExec(new Runnable(){
    public void run(){
      IEditorReference[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
      for (      IEditorReference editorReference : editors) {
        IEditorPart editor=editorReference.getEditor(false);
        IEditorInput input=editor.getEditorInput();
        if (input instanceof JobEditorInput) {
          JobEditorInput rInput=(JobEditorInput)input;
          IProcess2 p=rInput.getLoadedProcess();
          if (p != null && p.getId().equals(jobId) && p.getVersion().equals(jobVersion)) {
            process[0]=p;
            break;
          }
        }
      }
    }
  }
);
  return process[0];
}

Fixed version (ground truth):
/** 
 * DOC bqian Comment method "findProcessFromEditors".
 * @param jobName
 * @param jobVersion
 */
public static IProcess2 findProcessFromEditors(final String jobId,final String jobVersion){
  final IProcess2[] process=new IProcess2[1];
  Display.getDefault().syncExec(new Runnable(){
    @Override public void run(){
      IEditorReference[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
      for (      IEditorReference editorReference : editors) {
        IEditorPart editor=editorReference.getEditor(false);
        IEditorInput input=editor.getEditorInput();
        if (input instanceof JobEditorInput) {
          JobEditorInput rInput=(JobEditorInput)input;
          IProcess2 p=rInput.getLoadedProcess();
          if (p != null && p.getId().equals(jobId) && p.getVersion().equals(jobVersion)) {
            process[0]=p;
            break;
          }
        }
      }
    }
  }
);
  return process[0];
}
Program: 118078
Project: 118078
Buggy source:
public void run(){
  IEditorReference[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
  for (  IEditorReference editorReference : editors) {
    IEditorPart editor=editorReference.getEditor(false);
    IEditorInput input=editor.getEditorInput();
    if (input instanceof JobEditorInput) {
      JobEditorInput rInput=(JobEditorInput)input;
      IProcess2 p=rInput.getLoadedProcess();
      if (p != null && p.getId().equals(jobId) && p.getVersion().equals(jobVersion)) {
        process[0]=p;
        break;
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  IEditorReference[] editors=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getEditorReferences();
  for (  IEditorReference editorReference : editors) {
    IEditorPart editor=editorReference.getEditor(false);
    IEditorInput input=editor.getEditorInput();
    if (input instanceof JobEditorInput) {
      JobEditorInput rInput=(JobEditorInput)input;
      IProcess2 p=rInput.getLoadedProcess();
      if (p != null && p.getId().equals(jobId) && p.getVersion().equals(jobVersion)) {
        process[0]=p;
        break;
      }
    }
  }
}
Program: 118079
Project: 118079
Buggy source:
public static void setSchemaDB(IElementParameter schemaDB,Object value){
  if (schemaDB != null) {
    if (value instanceof String) {
      if (JobSettingsConstants.ORACLE_OUTPUT_SID_ALIAS.equals((String)value) || JobSettingsConstants.ORACLE_OUTPUT_SN_ALIAS.equals((String)value) || JobSettingsConstants.ORACLE_INOUT_SN_ALIAS.equals((String)value)|| JobSettingsConstants.ORACLE_INPUT_SID_ALIAS.equals((String)value)) {
        schemaDB.setRequired(true);
      }
 else {
        schemaDB.setRequired(false);
      }
    }
  }
}

Fixed version (ground truth):
public static void setSchemaDB(IElementParameter schemaDB,Object value){
  if (schemaDB != null) {
    if (value instanceof String) {
      if (JobSettingsConstants.ORACLE_OUTPUT_SID_ALIAS.equals(value) || JobSettingsConstants.ORACLE_OUTPUT_SN_ALIAS.equals(value) || JobSettingsConstants.ORACLE_INOUT_SN_ALIAS.equals(value)|| JobSettingsConstants.ORACLE_INPUT_SID_ALIAS.equals(value)) {
        schemaDB.setRequired(true);
      }
 else {
        schemaDB.setRequired(false);
      }
    }
  }
}
Program: 118086
Project: 118086
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  boolean show=useSocksBut.getSelection();
  if (show) {
    proxyChildComGridData.exclude=false;
  }
 else {
    proxyChildComGridData.exclude=true;
  }
  getConnection().setUsesocks(show);
  proxyChildCom.setVisible(show);
  proxyChildCom.layout();
  proxyCom.layout();
  tetsCom.layout();
  buildGroup.layout();
  layout();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  boolean show=fnEncodingBtn.getSelection();
  encodeCombo.setHideWidgets(!show);
  customText.setVisible(show && CUSTOM.equals(getConnection().getEcoding()));
  encodingComp.layout();
  getConnection().setUseFileNameEncoding(show && getConnection().isSFTP());
}
Program: 118090
Project: 118090
Buggy source:
public void removeHideValue(){
  FTPConnection conn=getConnection();
  if (!connModelCombo.getCombo().isVisible()) {
    conn.setMode("String_Node_Str");
  }
  if (!sftpSuppBut.isVisible()) {
    conn.setSFTP(false);
  }
  if (!ftpsSuppBut.isVisible()) {
    conn.setFTPS(false);
  }
  if (!useSocksBut.isVisible()) {
    conn.setUsesocks(false);
  }
  if (!methodCombo.getCombo().isVisible()) {
    conn.setMethod("String_Node_Str");
  }
  if (!keyPasswordText.getTextControl().isVisible()) {
    conn.setKeystorePassword("String_Node_Str");
  }
  if (!keyFileText.getTextControl().isVisible()) {
    conn.setKeystoreFile("String_Node_Str");
  }
  if (!proxyHostText.getTextControl().isVisible()) {
    conn.setProxyhost("String_Node_Str");
  }
  if (!proxyPortText.getTextControl().isVisible()) {
    conn.setProxyport("String_Node_Str");
  }
  if (!proxyPasswordText.getTextControl().isVisible()) {
    conn.setProxypassword("String_Node_Str");
  }
  if (!proxyUsernameText.getTextControl().isVisible()) {
    conn.setProxyuser("String_Node_Str");
  }
  if (!customText.isVisible()) {
    if (conn.getCustomEncode() == null || "String_Node_Str".equals(conn.getCustomEncode())) {
      conn.setCustomEncode(ENCODING);
    }
  }
  if (conn.getCustomEncode() == null || "String_Node_Str".equals(conn.getCustomEncode())) {
    conn.setCustomEncode(ENCODING);
  }
}

Fixed version (ground truth):
public void removeHideValue(){
  FTPConnection conn=getConnection();
  if (!connModelCombo.getCombo().isVisible()) {
    conn.setMode("String_Node_Str");
  }
  if (!sftpSuppBut.isVisible()) {
    conn.setSFTP(false);
  }
  if (!ftpsSuppBut.isVisible()) {
    conn.setFTPS(false);
  }
  if (!useSocksBut.isVisible()) {
    conn.setUsesocks(false);
  }
  if (!fnEncodingBtn.isVisible()) {
    conn.setUseFileNameEncoding(false);
  }
  if (!methodCombo.getCombo().isVisible()) {
    conn.setMethod("String_Node_Str");
  }
  if (!keyPasswordText.getTextControl().isVisible()) {
    conn.setKeystorePassword("String_Node_Str");
  }
  if (!keyFileText.getTextControl().isVisible()) {
    conn.setKeystoreFile("String_Node_Str");
  }
  if (!proxyHostText.getTextControl().isVisible()) {
    conn.setProxyhost("String_Node_Str");
  }
  if (!proxyPortText.getTextControl().isVisible()) {
    conn.setProxyport("String_Node_Str");
  }
  if (!proxyPasswordText.getTextControl().isVisible()) {
    conn.setProxypassword("String_Node_Str");
  }
  if (!proxyUsernameText.getTextControl().isVisible()) {
    conn.setProxyuser("String_Node_Str");
  }
  if (!customText.isVisible()) {
    if (conn.getCustomEncode() == null || "String_Node_Str".equals(conn.getCustomEncode())) {
      conn.setCustomEncode(ENCODING);
    }
  }
  if (conn.getCustomEncode() == null || "String_Node_Str".equals(conn.getCustomEncode())) {
    conn.setCustomEncode(ENCODING);
  }
}
Program: 118094
Project: 118094
Buggy source:
@Override public IMetadataTable getMetadataTable(){
  if (source != null && this.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INodeConnector sourceNodeConnector=getSourceNodeConnector();
    if (sourceNodeConnector != null) {
      String connectorName=sourceNodeConnector.getName();
      if (EComponentType.GENERIC.equals(source.getComponent().getComponentType())) {
        connectorName="String_Node_Str";
      }
      if (sourceNodeConnector.isMultiSchema()) {
        IMetadataTable table=source.getMetadataTable(metaName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
 else         if (table == null && source.getMetadataList() != null && source.getMetadataList().size() == 1) {
          table=source.getMetadataFromConnector(connectorName);
        }
        return table;
      }
 else {
        IMetadataTable table=source.getMetadataFromConnector(connectorName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
        return table;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IMetadataTable getMetadataTable(){
  if (source != null && this.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INodeConnector sourceNodeConnector=getSourceNodeConnector();
    if (sourceNodeConnector != null) {
      String connectorName=sourceNodeConnector.getName();
      if (sourceNodeConnector.isMultiSchema()) {
        IMetadataTable table=source.getMetadataTable(metaName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
 else         if (table == null && source.getMetadataList() != null && source.getMetadataList().size() == 1) {
          table=source.getMetadataFromConnector(connectorName);
        }
        return table;
      }
 else {
        IMetadataTable table=source.getMetadataFromConnector(connectorName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
        return table;
      }
    }
  }
  return null;
}
Program: 118097
Project: 118097
Buggy source:
@Override public ContextItem openRepositoryReviewDialog(ERepositoryObjectType type,String repositoryType,List<IContextParameter> params,IContextManager contextManager){
  ContextRepositoryReviewDialog dialog=new ContextRepositoryReviewDialog(new Shell(),type,params,contextManager);
  if (dialog.open() == Window.OK) {
    return dialog.getItem();
  }
  return null;
}

Fixed version (ground truth):
@Override public ContextItem openRepositoryReviewDialog(ERepositoryObjectType type,String repositoryType,List<IContextParameter> params,IContextManager contextManager){
  ContextRepositoryReviewDialog dialog=new ContextRepositoryReviewDialog(new Shell(),type,params,contextManager);
  dialog.setFilterReferenceNode(true);
  if (dialog.open() == Window.OK) {
    return dialog.getItem();
  }
  return null;
}
Program: 118098
Project: 118098
Buggy source:
@Override public IPath getRepositoryPath(IRepositoryNode node){
  return RepositoryNodeUtilities.getPath((RepositoryNode)node);
}

Fixed version (ground truth):
@Override public IPath getRepositoryPath(IRepositoryNode node){
  return RepositoryNodeUtilities.getPath(node);
}
Program: 118099
Project: 118099
Buggy source:
protected boolean isSelectionValid(SelectionChangedEvent event){
  boolean highlightOKButton=true;
  IStructuredSelection selection=(IStructuredSelection)event.getSelection();
  if (selection == null || selection.size() != 1) {
    highlightOKButton=false;
  }
 else {
    RepositoryNode node=(RepositoryNode)selection.getFirstElement();
    if (node.getType() != ENodeType.REPOSITORY_ELEMENT) {
      highlightOKButton=false;
    }
 else     if (!typeProcessor.isSelectionValid(node)) {
      highlightOKButton=false;
    }
  }
  return highlightOKButton;
}

Fixed version (ground truth):
protected boolean isSelectionValid(SelectionChangedEvent event){
  boolean highlightOKButton=true;
  IStructuredSelection selection=(IStructuredSelection)event.getSelection();
  if (selection == null || selection.size() != 1) {
    highlightOKButton=false;
  }
 else {
    RepositoryNode node=(RepositoryNode)selection.getFirstElement();
    if (filterReferenceNode && !ProjectManager.getInstance().isInCurrentMainProject(node)) {
      highlightOKButton=false;
    }
 else {
      if (node.getType() != ENodeType.REPOSITORY_ELEMENT) {
        highlightOKButton=false;
      }
 else       if (!typeProcessor.isSelectionValid(node)) {
        highlightOKButton=false;
      }
    }
  }
  return highlightOKButton;
}
Program: 118104
Project: 118104
Buggy source:
/** 
 * Display a error message if the db connection is failed DOC Comment method "checkConnection".
 * @param parentShell
 * @param imetadataConnection
 */
public static void checkConnection(final Shell parentShell,IMetadataConnection imetadataConnection){
  final ManagerConnection managerConnection=new ManagerConnection();
  managerConnection.check(imetadataConnection,true);
  if (!managerConnection.getIsValide()) {
    Display.getDefault().asyncExec(new Runnable(){
      @Override public void run(){
        new ErrorDialogWidthDetailArea(parentShell,SqlBuilderPlugin.PLUGIN_ID,Messages.getString("String_Node_Str"),managerConnection.getMessageException());
      }
    }
);
  }
}

Fixed version (ground truth):
/** 
 * Display a error message if the db connection is failed DOC Comment method "checkConnection".
 * @param parentShell
 * @param imetadataConnection
 */
public static void checkConnection(final Shell parentShell,IMetadataConnection imetadataConnection){
  final ManagerConnection managerConnection=new ManagerConnection();
  managerConnection.check(imetadataConnection,true);
  if (!managerConnection.getIsValide()) {
    Display.getDefault().syncExec(new Runnable(){
      @Override public void run(){
        new ErrorDialogWidthDetailArea(parentShell,SqlBuilderPlugin.PLUGIN_ID,Messages.getString("String_Node_Str"),managerConnection.getMessageException());
      }
    }
);
  }
}
Program: 118105
Project: 118105
Buggy source:
@Override public IMetadataTable getMetadataTable(){
  if (source != null && this.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INodeConnector sourceNodeConnector=getSourceNodeConnector();
    if (sourceNodeConnector != null) {
      if (sourceNodeConnector.isMultiSchema()) {
        IMetadataTable table=source.getMetadataTable(metaName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
 else         if (table == null && source.getMetadataList() != null && source.getMetadataList().size() == 1) {
          table=source.getMetadataFromConnector(sourceNodeConnector.getName());
        }
        return table;
      }
 else {
        IMetadataTable table=source.getMetadataFromConnector(sourceNodeConnector.getName());
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
        return table;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IMetadataTable getMetadataTable(){
  if (source != null && this.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA)) {
    INodeConnector sourceNodeConnector=getSourceNodeConnector();
    if (sourceNodeConnector != null) {
      String connectorName=sourceNodeConnector.getName();
      if (EComponentType.GENERIC.equals(source.getComponent().getComponentType())) {
        connectorName="String_Node_Str";
      }
      if (sourceNodeConnector.isMultiSchema()) {
        IMetadataTable table=source.getMetadataTable(metaName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
 else         if (table == null && source.getMetadataList() != null && source.getMetadataList().size() == 1) {
          table=source.getMetadataFromConnector(connectorName);
        }
        return table;
      }
 else {
        IMetadataTable table=source.getMetadataFromConnector(connectorName);
        if (table == null && source.getJobletNode() != null) {
          if (source.getMetadataList().size() > 0) {
            table=source.getMetadataList().get(0);
          }
        }
        return table;
      }
    }
  }
  return null;
}
Program: 118106
Project: 118106
Buggy source:
/** 
 * DOC Administrator Comment method "setUp".
 * @throws java.lang.Exception
 */
@Before public void setUp() throws Exception {
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  IProcess2 process=new Process(property);
  IComponent sourceCom=ComponentsFactoryProvider.getInstance().get("String_Node_Str",ComponentCategory.CATEGORY_4_DI.getName());
  IComponent targetCom=ComponentsFactoryProvider.getInstance().get("String_Node_Str",ComponentCategory.CATEGORY_4_DI.getName());
  source=new Node(sourceCom,process);
  target=new Node(targetCom,process);
  connection=new Connection(source,target,EConnectionType.FLOW_MAIN,EConnectionType.FLOW_MAIN.getName(),"String_Node_Str","String_Node_Str","String_Node_Str",false);
  inputTable=source.getMetadataList().get(0);
}

Fixed version (ground truth):
/** 
 * DOC Administrator Comment method "setUp".
 * @throws java.lang.Exception
 */
@Before public void setUp() throws Exception {
  Property property=PropertiesFactory.eINSTANCE.createProperty();
  process=new Process(property);
  IComponent sourceCom=ComponentsFactoryProvider.getInstance().get("String_Node_Str",ComponentCategory.CATEGORY_4_DI.getName());
  IComponent targetCom=ComponentsFactoryProvider.getInstance().get("String_Node_Str",ComponentCategory.CATEGORY_4_DI.getName());
  source=new Node(sourceCom,process);
  target=new Node(targetCom,process);
  connection=new Connection(source,target,EConnectionType.FLOW_MAIN,EConnectionType.FLOW_MAIN.getName(),"String_Node_Str","String_Node_Str","String_Node_Str",false);
  inputTable=source.getMetadataList().get(0);
}
Program: 118107
Project: 118107
Buggy source:
@Override public void cleanDisplay(){
  setPartName(null);
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.dispose();
    }
  }
  this.currentSelectedTab=null;
  this.element=null;
  this.cleaned=true;
  this.selectedPrimary=true;
  process=null;
}

Fixed version (ground truth):
@Override public void cleanDisplay(){
  setPartName(null);
  tabFactory.setInput(null);
  tabFactory.setTitle(null,null);
  if (tabFactory.getTabComposite() != null) {
    for (    Control curControl : tabFactory.getTabComposite().getChildren()) {
      curControl.setVisible(false);
      curControl.dispose();
    }
  }
  this.currentSelectedTab=null;
  this.element=null;
  this.cleaned=true;
  this.selectedPrimary=true;
  process=null;
}
Program: 118109
Project: 118109
Buggy source:
protected boolean checkNodes(Item item,ProcessType processType) throws Exception {
  boolean modified=false;
  if (!checkNodesFromEmf(item,processType)) {
    ComponentCategory category=ComponentCategory.getComponentCategoryFromItem(item);
    for (    Object nodeObjectType : processType.getNode()) {
      NodeType nodeType=(NodeType)nodeObjectType;
      IComponent component=ComponentsFactoryProvider.getInstance().get(nodeType.getComponentName(),category.getName());
      if (component == null) {
        continue;
      }
      FakeNode fNode=new FakeNode(component);
      for (      Object paramObjectType : nodeType.getElementParameter()) {
        ElementParameterType param=(ElementParameterType)paramObjectType;
        IElementParameter paramFromEmf=fNode.getElementParameter(param.getName());
        if (paramFromEmf != null) {
          if (EParameterFieldType.PASSWORD.equals(paramFromEmf.getFieldType()) && param.getValue() != null) {
            param.setField(EParameterFieldType.PASSWORD.getName());
            if (reencryptValueIfNeeded(param)) {
              modified=true;
            }
          }
        }
      }
    }
  }
  return modified;
}

Fixed version (ground truth):
protected boolean checkNodes(Item item,ProcessType processType) throws Exception {
  boolean modified=checkNodesFromEmf(item,processType);
  if (!modified) {
    ComponentCategory category=ComponentCategory.getComponentCategoryFromItem(item);
    for (    Object nodeObjectType : processType.getNode()) {
      NodeType nodeType=(NodeType)nodeObjectType;
      IComponent component=ComponentsFactoryProvider.getInstance().get(nodeType.getComponentName(),category.getName());
      if (component == null) {
        continue;
      }
      FakeNode fNode=new FakeNode(component);
      for (      Object paramObjectType : nodeType.getElementParameter()) {
        ElementParameterType param=(ElementParameterType)paramObjectType;
        IElementParameter paramFromEmf=fNode.getElementParameter(param.getName());
        if (paramFromEmf != null) {
          if (EParameterFieldType.PASSWORD.equals(paramFromEmf.getFieldType()) && param.getValue() != null) {
            param.setField(EParameterFieldType.PASSWORD.getName());
            if (reencryptValueIfNeeded(param)) {
              modified=true;
            }
          }
        }
      }
    }
  }
  return modified;
}
Program: 118112
Project: 118112
Buggy source:
@Override public IComponentName getCorrespondingComponentName(Item item,ERepositoryObjectType type){
  RepositoryComponentSetting setting=null;
  List<Class<Item>> list=new ArrayList<Class<Item>>();
  if (item instanceof GenericConnectionItem) {
    setting=new RepositoryComponentSetting();
    setting.setWithSchema(true);
    Class clazz=null;
    try {
      clazz=Class.forName(GenericConnectionItem.class.getName());
    }
 catch (    ClassNotFoundException e) {
      ExceptionHandler.process(e);
    }
    list.add(clazz);
    setting.setClasses(list.toArray(new Class[0]));
  }
  return setting;
}

Fixed version (ground truth):
@Override public IComponentName getCorrespondingComponentName(Item item,ERepositoryObjectType type){
  RepositoryComponentSetting setting=null;
  List<Class<Item>> list=new ArrayList<Class<Item>>();
  if (item instanceof GenericConnectionItem) {
    GenericConnection connection=(GenericConnection)((GenericConnectionItem)item).getConnection();
    setting=new RepositoryComponentSetting();
    setting.setWithSchema(true);
    String componentMainName=getComponentMainName(connection);
    setting.setInputComponent(getInputComponentName(componentMainName));
    setting.setOutputComponent(getOutputComponentName(componentMainName));
    Class clazz=null;
    try {
      clazz=Class.forName(GenericConnectionItem.class.getName());
    }
 catch (    ClassNotFoundException e) {
      ExceptionHandler.process(e);
    }
    list.add(clazz);
    setting.setClasses(list.toArray(new Class[0]));
  }
  return setting;
}
Program: 118113
Project: 118113
Buggy source:
@Override protected boolean calculateEnabled(){
  RepositoryNode rootNode=ProjectRepositoryNode.getInstance().getRootRepositoryNode(ERepositoryObjectType.METADATA);
  if (getSelectedObjects().isEmpty() || rootNode == null || rootNode.getChildren().size() == 0) {
    return false;
  }
 else {
    Object s=getSelectedObjects().get(0);
    if (s instanceof List && !((List)s).isEmpty()) {
      List selectedarts=(List)s;
      Object object=selectedarts.get(selectedarts.size() - 1);
      if (object instanceof TreeNodeEditPart) {
        TreeNodeEditPart parentPart=(TreeNodeEditPart)object;
        schemaNode=(TreeNode)parentPart.getModel();
        if (schemaNode.eContainer() instanceof AbstractInOutTree && XmlMapUtil.DOCUMENT.equals(schemaNode.getType())) {
          return true;
        }
      }
    }
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean calculateEnabled(){
  RepositoryNode rootNode=ProjectRepositoryNode.getInstance().getRootRepositoryNode(ERepositoryObjectType.METADATA);
  if (getSelectedObjects().isEmpty() || rootNode == null) {
    return false;
  }
 else {
    Object s=getSelectedObjects().get(0);
    if (s instanceof List && !((List)s).isEmpty()) {
      List selectedarts=(List)s;
      Object object=selectedarts.get(selectedarts.size() - 1);
      if (object instanceof TreeNodeEditPart) {
        TreeNodeEditPart parentPart=(TreeNodeEditPart)object;
        schemaNode=(TreeNode)parentPart.getModel();
        if (schemaNode.eContainer() instanceof AbstractInOutTree && XmlMapUtil.DOCUMENT.equals(schemaNode.getType())) {
          return true;
        }
      }
    }
  }
  return false;
}
Program: 118114
Project: 118114
Buggy source:
public static TalendCombinedTemplateCreationEntry createEntryFrom(IComponent component){
  if (component == null) {
    return null;
  }
  String name=component.getName();
  ImageDescriptor imageSmall=component.getIcon16();
  IPreferenceStore store=DesignerPlugin.getDefault().getPreferenceStore();
  ImageDescriptor imageLarge;
  final String string=store.getString(TalendDesignerPrefConstants.LARGE_ICONS_SIZE);
  if (string.equals("String_Node_Str")) {
    imageLarge=component.getIcon24();
  }
 else {
    imageLarge=component.getIcon32();
  }
  TalendCombinedTemplateCreationEntry newEntry=new TalendCombinedTemplateCreationEntry(name,name,Node.class,new PaletteComponentFactory(component),imageSmall,imageLarge);
  newEntry.setDescription(component.getLongName());
  return newEntry;
}

Fixed version (ground truth):
public static TalendCombinedTemplateCreationEntry createEntryFrom(IComponent component){
  if (component == null) {
    return null;
  }
  String name=component.getName();
  ImageDescriptor imageSmall=component.getIcon16();
  IPreferenceStore store=DesignerPlugin.getDefault().getPreferenceStore();
  ImageDescriptor imageLarge;
  final String string=store.getString(TalendDesignerPrefConstants.LARGE_ICONS_SIZE);
  if (string.equals("String_Node_Str")) {
    imageLarge=component.getIcon24();
  }
 else {
    imageLarge=component.getIcon32();
  }
  TalendCombinedTemplateCreationEntry newEntry=new TalendCombinedTemplateCreationEntry(name,name,Node.class,component,imageSmall,imageLarge);
  newEntry.setDescription(component.getLongName());
  return newEntry;
}
Program: 118117
Project: 118117
Buggy source:
/** 
 * DOC cmeng TalendCombinedTemplateCreationEntry constructor comment.
 * @param label
 * @param shortDesc
 * @param template
 * @param factory
 * @param iconSmall
 * @param iconLarge
 */
public TalendCombinedTemplateCreationEntry(String label,String shortDesc,Object template,CreationFactory factory,ImageDescriptor iconSmall,ImageDescriptor iconLarge){
  super(label,shortDesc,template,factory,iconSmall,iconLarge);
}

Fixed version (ground truth):
/** 
 * DOC cmeng TalendCombinedTemplateCreationEntry constructor comment.
 * @param label
 * @param shortDesc
 * @param template
 * @param factory
 * @param iconSmall
 * @param iconLarge
 */
public TalendCombinedTemplateCreationEntry(String label,String shortDesc,Object template,IComponent component,ImageDescriptor iconSmall,ImageDescriptor iconLarge){
  super(label,shortDesc,template,new PaletteComponentFactory(component),iconSmall,iconLarge);
  this.component=component;
  reSetLabel();
}
Program: 118119
Project: 118119
Buggy source:
protected boolean isNeedConvertToHex(String value){
  if (value == null || "String_Node_Str".equals(value.trim())) {
    return false;
  }
  for (int i=0; i < value.length(); i++) {
    int ch=(int)value.charAt(i);
    if (ch < 32) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean isNeedConvertToHex(String value){
  if (value == null || "String_Node_Str".equals(value.trim())) {
    return false;
  }
  for (int i=0; i < value.length(); i++) {
    int ch=value.charAt(i);
    if (ch < 32) {
      return true;
    }
  }
  return false;
}
Program: 118121
Project: 118121
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws CoreException {
  if (!alreadyEditedByUser) {
    refreshNewJob();
    RelationshipItemBuilder.getInstance().addOrUpdateItem(processObject.getProperty().getItem());
    try {
      ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
    }
 catch (    Exception e) {
      ExceptionHandler.process(e);
    }
  }
  try {
    Item newCreated=null;
    if (processObject.getProperty() != null && processObject.getProperty().getItem() != null) {
      newCreated=processObject.getProperty().getItem();
    }
    if (!(newCreated instanceof BusinessProcessItem)) {
      ProxyRepositoryFactory.getInstance().lock(processObject);
    }
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
  }
catch (  LoginException e) {
    ExceptionHandler.process(e);
  }
  boolean locked=processObject.getRepositoryStatus().equals(ERepositoryStatus.LOCK_BY_USER);
  openAnotherVersion((RepositoryNode)processObject.getRepositoryNode(),!locked);
  try {
    ProxyRepositoryFactory.getInstance().saveProject(ProjectManager.getInstance().getCurrentProject());
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 118123
Project: 118123
Buggy source:
public void beginTask(String name,int totalWork){
  if (progressIndicator == null) {
    return;
  }
  if (progressIndicator.isDisposed()) {
    return;
  }
  if (totalWork == UNKNOWN) {
    progressIndicator.beginAnimatedTask();
  }
 else {
    progressIndicator.beginTask(totalWork);
  }
}

Fixed version (ground truth):
@Override public void beginTask(String name,int totalWork){
  if (progressIndicator == null) {
    return;
  }
  if (progressIndicator.isDisposed()) {
    return;
  }
  if (totalWork == UNKNOWN) {
    progressIndicator.beginAnimatedTask();
  }
 else {
    progressIndicator.beginTask(totalWork);
  }
}
Program: 118124
Project: 118124
Buggy source:
public boolean isCanceled(){
  return fIsCanceled;
}

Fixed version (ground truth):
@Override public boolean isCanceled(){
  return fIsCanceled;
}
Program: 118125
Project: 118125
Buggy source:
public void subTask(String name){
}

Fixed version (ground truth):
@Override public void subTask(String name){
}
Program: 118126
Project: 118126
Buggy source:
public void run(){
  INode node=null;
  String msg=null;
  if (!selection.isEmpty()) {
    try {
      final RepositoryNode repositoryNode=(RepositoryNode)selection.getFirstElement();
      if (SQLBuilderRepositoryNodeManager.getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
        return;
      }
      sessionTreeNode=nodeManager.getSessionTreeNode(repositoryNode,selectedContext);
      node=nodeManager.convert2INode(repositoryNode,selectedContext,sessionTreeNode);
    }
 catch (    Exception e) {
      msg=e.getMessage();
      SqlBuilderPlugin.log(msg,e);
    }
    final INode argNode=node;
    final String argMsg=msg;
    dbDetailsComposite.setSelectedNode(argNode,argMsg);
    wapperDriver=sessionTreeNode.getWapperDriver();
    String dbType=sessionTreeNode.getDatabaseConnection().getDatabaseType();
    String driverClassName=sessionTreeNode.getDatabaseConnection().getDriverClass();
    if (wapperDriver != null && (driverClassName.equals(EDatabase4DriverClassName.JAVADB_EMBEDED.getDriverClass()) || dbType.equals(EDatabaseTypeName.JAVADB_EMBEDED.getDisplayName()) || dbType.equals(EDatabaseTypeName.JAVADB_DERBYCLIENT.getDisplayName())|| dbType.equals(EDatabaseTypeName.JAVADB_JCCJDBC.getDisplayName()))) {
      try {
        wapperDriver.connect("String_Node_Str",null);
      }
 catch (      SQLException e) {
      }
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  INode node=null;
  String msg=null;
  if (!selection.isEmpty()) {
    try {
      final RepositoryNode repositoryNode=(RepositoryNode)selection.getFirstElement();
      if (SQLBuilderRepositoryNodeManager.getRepositoryType(repositoryNode) == RepositoryNodeType.FOLDER) {
        return;
      }
      sessionTreeNode=nodeManager.getSessionTreeNode(repositoryNode,selectedContext);
      node=nodeManager.convert2INode(repositoryNode,selectedContext,sessionTreeNode);
    }
 catch (    Exception e) {
      msg=e.getMessage();
      SqlBuilderPlugin.log(msg,e);
    }
    final INode argNode=node;
    final String argMsg=msg;
    dbDetailsComposite.setSelectedNode(argNode,argMsg);
    wapperDriver=sessionTreeNode.getWapperDriver();
    String dbType=sessionTreeNode.getDatabaseConnection().getDatabaseType();
    String driverClassName=sessionTreeNode.getDatabaseConnection().getDriverClass();
    if (wapperDriver != null && (driverClassName.equals(EDatabase4DriverClassName.JAVADB_EMBEDED.getDriverClass()) || dbType.equals(EDatabaseTypeName.JAVADB_EMBEDED.getDisplayName()) || dbType.equals(EDatabaseTypeName.JAVADB_DERBYCLIENT.getDisplayName())|| dbType.equals(EDatabaseTypeName.JAVADB_JCCJDBC.getDisplayName()))) {
      try {
        wapperDriver.connect("String_Node_Str",null);
      }
 catch (      SQLException e) {
      }
    }
  }
}
Program: 118127
Project: 118127
Buggy source:
public void worked(int work){
  internalWorked(work);
}

Fixed version (ground truth):
@Override public void worked(int work){
  internalWorked(work);
}
Program: 118128
Project: 118128
Buggy source:
public void clearBlocked(){
}

Fixed version (ground truth):
@Override public void clearBlocked(){
}
Program: 118129
Project: 118129
Buggy source:
public void configureShell(Shell shell){
  super.configureShell(shell);
  shell.setText(TextUtil.getDialogTitle());
}

Fixed version (ground truth):
@Override public void configureShell(Shell shell){
  super.configureShell(shell);
  shell.setText(TextUtil.getDialogTitle());
}
Program: 118130
Project: 118130
Buggy source:
public void internalWorked(double work){
  if (!progressIndicator.isDisposed()) {
    progressIndicator.worked(work);
  }
}

Fixed version (ground truth):
@Override public void internalWorked(double work){
  if (!progressIndicator.isDisposed()) {
    progressIndicator.worked(work);
  }
}
Program: 118131
Project: 118131
Buggy source:
@Override protected Button createButton(Composite parent,int id,String label,boolean defaultButton){
  Button button=new Button(parent,SWT.PUSH);
  button.setText(label);
  button.setFont(JFaceResources.getDialogFont());
  button.setData(new Integer(id));
  button.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      buttonPressed(((Integer)event.widget.getData()).intValue());
    }
  }
);
  if (defaultButton) {
    Shell shell=parent.getShell();
    if (shell != null) {
      shell.setDefaultButton(button);
    }
  }
  GridData data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  int widthHint=convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
  Point minSize=button.computeSize(SWT.DEFAULT,SWT.DEFAULT,true);
  data.widthHint=Math.max(widthHint,minSize.x);
  button.setLayoutData(data);
  return button;
}

Fixed version (ground truth):
@Override protected Button createButton(Composite parent,int id,String label,boolean defaultButton){
  Button button=new Button(parent,SWT.PUSH);
  button.setText(label);
  button.setFont(JFaceResources.getDialogFont());
  button.setData(new Integer(id));
  button.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent event){
      buttonPressed(((Integer)event.widget.getData()).intValue());
    }
  }
);
  if (defaultButton) {
    Shell shell=parent.getShell();
    if (shell != null) {
      shell.setDefaultButton(button);
    }
  }
  GridData data=new GridData(GridData.HORIZONTAL_ALIGN_END);
  int widthHint=convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
  Point minSize=button.computeSize(SWT.DEFAULT,SWT.DEFAULT,true);
  data.widthHint=Math.max(widthHint,minSize.x);
  button.setLayoutData(data);
  return button;
}
Program: 118132
Project: 118132
Buggy source:
public ConnectionParameters getConnParameters(){
  return connParameters;
}

Fixed version (ground truth):
@Override public ConnectionParameters getConnParameters(){
  return connParameters;
}
Program: 118133
Project: 118133
Buggy source:
public void setBlocked(IStatus reason){
  locked=true;
}

Fixed version (ground truth):
@Override public void setBlocked(IStatus reason){
  locked=true;
}