nus-yam/ex-repair huggingface dataset:
Program: 129401
Project: 129401
Buggy source:
@Override protected void createColumns(TableViewerCreator<B> tableViewerCreator,Table table){
  tableViewerCreator.setReadOnly(this.readOnly);
  TableViewerCreatorColumn column=new TableViewerCreatorColumn(tableViewerCreator);
  column.setTitle("String_Node_Str");
  column.setDefaultInternalValue("String_Node_Str");
  column.setWidth(15);
  configureNameColumn(tableViewerCreator);
  if (showDbColumnName) {
    configureDbColumnName(tableViewerCreator);
  }
  configureKeyColumn(tableViewerCreator);
  configureTypeColumns(tableViewerCreator);
  configureNullableColumn(tableViewerCreator);
  configurePatternColumn(tableViewerCreator);
  configureLengthColumn(tableViewerCreator);
  if (showOriginalLength) {
    configureOriginalLengthColumn(tableViewerCreator);
  }
  configurePrecisionColumn(tableViewerCreator);
  configureDefaultColumn(tableViewerCreator);
  configureCommentColumn(tableViewerCreator);
  if (PluginChecker.isDatacertPluginLoaded()) {
    configureRelationshipType(tableViewerCreator);
    configureRelatedEntity(tableViewerCreator);
  }
}

Fixed version (ground truth):
@Override protected void createColumns(TableViewerCreator<B> tableViewerCreator,Table table){
  tableViewerCreator.setReadOnly(this.readOnly);
  TableViewerCreatorColumn column=new TableViewerCreatorColumn(tableViewerCreator);
  column.setTitle("String_Node_Str");
  column.setDefaultInternalValue("String_Node_Str");
  column.setWidth(15);
  configureNameColumn(tableViewerCreator);
  if (showDbColumnName) {
    configureDbColumnName(tableViewerCreator);
  }
  configureKeyColumn(tableViewerCreator);
  configureTypeColumns(tableViewerCreator);
  configureNullableColumn(tableViewerCreator);
  configurePatternColumn(tableViewerCreator);
  configureLengthColumn(tableViewerCreator);
  if (showOriginalLength) {
    configureOriginalLengthColumn(tableViewerCreator);
  }
  configureAdditionalFieldColumns(tableViewerCreator);
  configurePrecisionColumn(tableViewerCreator);
  configureDefaultColumn(tableViewerCreator);
  configureCommentColumn(tableViewerCreator);
  if (PluginChecker.isDatacertPluginLoaded()) {
    configureRelationshipType(tableViewerCreator);
    configureRelatedEntity(tableViewerCreator);
  }
}
Program: 129402
Project: 129402
Buggy source:
public String get(MetadataColumn bean){
  return bean.getRelationshipType();
}

Fixed version (ground truth):
public String get(MetadataColumn bean){
  String value=null;
  for (  TaggedValue tgValue : bean.getTaggedValue()) {
    String tag=tgValue.getTag();
    if (tag != null && tag.startsWith(ConvertionHelper.ADDITIONAL_FIELD_PREFIX) && tag.endsWith(field)) {
      value=tgValue.getValue();
      break;
    }
  }
  return value;
}
Program: 129403
Project: 129403
Buggy source:
public void set(MetadataColumn bean,String value){
  bean.setRelationshipType(value);
}

Fixed version (ground truth):
public void set(MetadataColumn bean,String value){
  for (  TaggedValue tgValue : bean.getTaggedValue()) {
    String tag=tgValue.getTag();
    if (tag != null && tag.startsWith(ConvertionHelper.ADDITIONAL_FIELD_PREFIX) && tag.endsWith(field)) {
      tgValue.setValue(value);
      return;
    }
  }
  TaggedValue tgValue=orgomg.cwm.objectmodel.core.CoreFactory.eINSTANCE.createTaggedValue();
  tgValue.setTag(ConvertionHelper.ADDITIONAL_FIELD_PREFIX + field);
  tgValue.setValue(value);
}
Program: 129404
Project: 129404
Buggy source:
public String get(IMetadataColumn bean){
  return bean.getRelationshipType();
}

Fixed version (ground truth):
public String get(IMetadataColumn bean){
  return bean.getAdditionalField().get(field);
}
Program: 129405
Project: 129405
Buggy source:
public void set(IMetadataColumn bean,String value){
  bean.setRelationshipType(value);
}

Fixed version (ground truth):
public void set(IMetadataColumn bean,String value){
  bean.getAdditionalField().put(field,value);
}
Program: 129407
Project: 129407
Buggy source:
/** 
 * key is   {@link #IMPORT_PACKAGE} {@link #REQUIRE_BUNDLE} {@link #BUNDLE_CLASSPATH}
 * @return
 */
public Map<String,String> getBundleDependences(ProcessItem pi,EMap additionProperties);

Fixed version (ground truth):
/** 
 * key is   {@link #IMPORT_PACKAGE} {@link #REQUIRE_BUNDLE} {@link #BUNDLE_CLASSPATH}
 * @return
 */
public Map<String,String> getBundleDependences(ProcessItem pi,EMap<?,?> additionProperties);
Program: 129408
Project: 129408
Buggy source:
public void setOriginalDbColumnName(String originalDbColumnName){
  this.originalDbColumnName=originalDbColumnName;
}

Fixed version (ground truth):
@Override public void setOriginalDbColumnName(String originalDbColumnName){
  this.originalDbColumnName=originalDbColumnName;
}
Program: 129409
Project: 129409
Buggy source:
public String getLabel(){
  return this.label;
}

Fixed version (ground truth):
@Override public String getLabel(){
  return this.label;
}
Program: 129410
Project: 129410
Buggy source:
public String getTalendType(){
  return talendType;
}

Fixed version (ground truth):
@Override public String getTalendType(){
  return talendType;
}
Program: 129411
Project: 129411
Buggy source:
public void setPrecision(Integer precision){
  this.precision=precision;
}

Fixed version (ground truth):
@Override public void setPrecision(Integer precision){
  this.precision=precision;
}
Program: 129412
Project: 129412
Buggy source:
public void setOriginalLength(Integer originalLength){
  this.originalLength=originalLength;
}

Fixed version (ground truth):
@Override public void setOriginalLength(Integer originalLength){
  this.originalLength=originalLength;
}
Program: 129413
Project: 129413
Buggy source:
/** 
 * @return the relationshipType
 */
public String getRelationshipType(){
  return relationshipType;
}

Fixed version (ground truth):
/** 
 * @return the relationshipType
 */
@Override public String getRelationshipType(){
  return relationshipType;
}
Program: 129414
Project: 129414
Buggy source:
/** 
 * Getter for id.
 * @return the id
 */
public String getId(){
  return this.id;
}

Fixed version (ground truth):
/** 
 * Getter for id.
 * @return the id
 */
@Override public String getId(){
  return this.id;
}
Program: 129415
Project: 129415
Buggy source:
/** 
 * Sets the custom.
 * @param custom the custom to set
 */
public void setCustom(boolean custom){
  this.custom=custom;
}

Fixed version (ground truth):
/** 
 * Sets the custom.
 * @param custom the custom to set
 */
@Override public void setCustom(boolean custom){
  this.custom=custom;
}
Program: 129416
Project: 129416
Buggy source:
/** 
 * @return the relatedEntity
 */
public String getRelatedEntity(){
  return relatedEntity;
}

Fixed version (ground truth):
/** 
 * @return the relatedEntity
 */
@Override public String getRelatedEntity(){
  return relatedEntity;
}
Program: 129417
Project: 129417
Buggy source:
/** 
 * Getter for readOnly.
 * @return the readOnly
 */
public boolean isReadOnly(){
  return readOnly;
}

Fixed version (ground truth):
/** 
 * Getter for readOnly.
 * @return the readOnly
 */
@Override public boolean isReadOnly(){
  return readOnly;
}
Program: 129418
Project: 129418
Buggy source:
/** 
 * @param relatedEntity the relatedEntity to set
 */
public void setRelatedEntity(String relatedEntity){
  this.relatedEntity=relatedEntity;
}

Fixed version (ground truth):
/** 
 * @param relatedEntity the relatedEntity to set
 */
@Override public void setRelatedEntity(String relatedEntity){
  this.relatedEntity=relatedEntity;
}
Program: 129419
Project: 129419
Buggy source:
public void setNullable(boolean nullable){
  this.nullable=nullable;
}

Fixed version (ground truth):
@Override public void setNullable(boolean nullable){
  this.nullable=nullable;
}
Program: 129420
Project: 129420
Buggy source:
/** 
 * Sets the id.
 * @param id the id to set
 */
public void setId(String id){
  this.id=id;
}

Fixed version (ground truth):
/** 
 * Sets the id.
 * @param id the id to set
 */
@Override public void setId(String id){
  this.id=id;
}
Program: 129421
Project: 129421
Buggy source:
public void setPattern(String pattern){
  this.pattern=pattern;
}

Fixed version (ground truth):
@Override public void setPattern(String pattern){
  this.pattern=pattern;
}
Program: 129422
Project: 129422
Buggy source:
public int getCustomId(){
  return customId;
}

Fixed version (ground truth):
@Override public int getCustomId(){
  return customId;
}
Program: 129423
Project: 129423
Buggy source:
public String getComment(){
  return this.comment;
}

Fixed version (ground truth):
@Override public String getComment(){
  return this.comment;
}
Program: 129424
Project: 129424
Buggy source:
public void setCustomId(int customId){
  this.customId=customId;
}

Fixed version (ground truth):
@Override public void setCustomId(int customId){
  this.customId=customId;
}
Program: 129425
Project: 129425
Buggy source:
public void setKey(boolean key){
  this.key=key;
}

Fixed version (ground truth):
@Override public void setKey(boolean key){
  this.key=key;
}
Program: 129426
Project: 129426
Buggy source:
/** 
 * @param relationshipType the relationshipType to set
 */
public void setRelationshipType(String relationshipType){
  this.relationshipType=relationshipType;
}

Fixed version (ground truth):
/** 
 * @param relationshipType the relationshipType to set
 */
@Override public void setRelationshipType(String relationshipType){
  this.relationshipType=relationshipType;
}
Program: 129427
Project: 129427
Buggy source:
public Integer getOriginalLength(){
  return originalLength;
}

Fixed version (ground truth):
@Override public Integer getOriginalLength(){
  return originalLength;
}
Program: 129428
Project: 129428
Buggy source:
public boolean isKey(){
  return this.key;
}

Fixed version (ground truth):
@Override public boolean isKey(){
  return this.key;
}
Program: 129429
Project: 129429
Buggy source:
public String getDefault(){
  return this.defaut;
}

Fixed version (ground truth):
@Override public String getDefault(){
  return this.defaut;
}
Program: 129430
Project: 129430
Buggy source:
public void setType(String sourceType){
  this.sourceType=sourceType;
}

Fixed version (ground truth):
@Override public void setType(String sourceType){
  this.sourceType=sourceType;
}
Program: 129431
Project: 129431
Buggy source:
public void setDefault(String defaut){
  this.defaut=defaut;
}

Fixed version (ground truth):
@Override public void setDefault(String defaut){
  this.defaut=defaut;
}
Program: 129432
Project: 129432
Buggy source:
public Integer getPrecision(){
  return this.precision;
}

Fixed version (ground truth):
@Override public Integer getPrecision(){
  return this.precision;
}
Program: 129433
Project: 129433
Buggy source:
public void setLength(Integer length){
  this.length=length;
}

Fixed version (ground truth):
@Override public void setLength(Integer length){
  this.length=length;
}
Program: 129434
Project: 129434
Buggy source:
public String getExpression(){
  return this.expression;
}

Fixed version (ground truth):
@Override public String getExpression(){
  return this.expression;
}
Program: 129435
Project: 129435
Buggy source:
public boolean sameMetacolumnAs(IMetadataColumn other){
  return sameMetacolumnAs(other,OPTIONS_NONE);
}

Fixed version (ground truth):
@Override public boolean sameMetacolumnAs(IMetadataColumn other){
  return sameMetacolumnAs(other,OPTIONS_NONE);
}
Program: 129436
Project: 129436
Buggy source:
public void setTalendType(String talendType){
  this.talendType=talendType;
}

Fixed version (ground truth):
@Override public void setTalendType(String talendType){
  this.talendType=talendType;
}
Program: 129437
Project: 129437
Buggy source:
public String getType(){
  return this.sourceType;
}

Fixed version (ground truth):
@Override public String getType(){
  return this.sourceType;
}
Program: 129438
Project: 129438
Buggy source:
public boolean isNullable(){
  return this.nullable;
}

Fixed version (ground truth):
@Override public boolean isNullable(){
  return this.nullable;
}
Program: 129439
Project: 129439
Buggy source:
public IMetadataColumn clone(boolean withCustoms){
  IMetadataColumn clonedMetacolumn=null;
  try {
    clonedMetacolumn=(IMetadataColumn)super.clone();
    if (!withCustoms) {
      clonedMetacolumn.setCustom(false);
      clonedMetacolumn.setReadOnly(false);
    }
  }
 catch (  CloneNotSupportedException e) {
  }
  return clonedMetacolumn;
}

Fixed version (ground truth):
@Override public IMetadataColumn clone(boolean withCustoms){
  IMetadataColumn clonedMetacolumn=null;
  try {
    clonedMetacolumn=(IMetadataColumn)super.clone();
    if (!withCustoms) {
      clonedMetacolumn.setCustom(false);
      clonedMetacolumn.setReadOnly(false);
    }
  }
 catch (  CloneNotSupportedException e) {
  }
  return clonedMetacolumn;
}
Program: 129440
Project: 129440
Buggy source:
/** 
 * Getter for custom.
 * @return the custom
 */
public boolean isCustom(){
  return custom;
}

Fixed version (ground truth):
/** 
 * Getter for custom.
 * @return the custom
 */
@Override public boolean isCustom(){
  return custom;
}
Program: 129441
Project: 129441
Buggy source:
public void setLabel(String label){
  this.label=label;
}

Fixed version (ground truth):
@Override public void setLabel(String label){
  this.label=label;
}
Program: 129442
Project: 129442
Buggy source:
public Integer getLength(){
  return this.length;
}

Fixed version (ground truth):
@Override public Integer getLength(){
  return this.length;
}
Program: 129443
Project: 129443
Buggy source:
public void setComment(String comment){
  this.comment=comment;
}

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

Fixed version (ground truth):
@Override public void setExpression(String expression){
  this.expression=expression;
}
Program: 129445
Project: 129445
Buggy source:
public String getOriginalDbColumnName(){
  return originalDbColumnName;
}

Fixed version (ground truth):
@Override public String getOriginalDbColumnName(){
  return originalDbColumnName;
}
Program: 129446
Project: 129446
Buggy source:
public String getPattern(){
  return this.pattern;
}

Fixed version (ground truth):
@Override public String getPattern(){
  return this.pattern;
}
Program: 129447
Project: 129447
Buggy source:
/** 
 * Sets the readOnly.
 * @param readOnly the readOnly to set
 */
public void setReadOnly(boolean readOnly){
  this.readOnly=readOnly;
}

Fixed version (ground truth):
/** 
 * Sets the readOnly.
 * @param readOnly the readOnly to set
 */
@Override public void setReadOnly(boolean readOnly){
  this.readOnly=readOnly;
}
Program: 129452
Project: 129452
Buggy source:
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable) throws ProcessorException ;

Fixed version (ground truth):
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable,List<IContextParameter> jobContextParams) throws ProcessorException ;
Program: 129453
Project: 129453
Buggy source:
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable) throws ProcessorException ;

Fixed version (ground truth):
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable,List<IContextParameter> jobContextParams) throws ProcessorException ;
Program: 129454
Project: 129454
Buggy source:
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable) throws ProcessorException ;

Fixed version (ground truth):
public Process deployAndRunByCommandline(final ITargetExecutionConfig config,String jobName,String jobVersion,String jobContextName,int statisticsPort,int tracePort,String watchParam,final boolean runnable,List<IContextParameter> jobContextParams) throws ProcessorException ;
Program: 129466
Project: 129466
Buggy source:
/** 
 * Test method for   {@link org.talend.core.model.metadata.builder.database.dburl.SupportDBUrlType#isMssql(String)} .
 */
@Test public void testIsMssql(){
  String dbKey="String_Node_Str";
  PowerMockito.mockStatic(SupportDBUrlType.class);
  when(SupportDBUrlType.isMssql(dbKey)).thenReturn(true);
  assertTrue(SupportDBUrlType.isMssql(dbKey));
}

Fixed version (ground truth):
/** 
 * Test method for   {@link org.talend.core.model.metadata.builder.database.dburl.SupportDBUrlType#isMssql(String)} .
 */
@Test public void testIsMssql(){
  String dbKey="String_Node_Str";
  assertTrue(SupportDBUrlType.isMssql(dbKey));
}
Program: 129467
Project: 129467
Buggy source:
/** 
 * ggu Comment method "exportAsContext".
 */
public static ContextItem exportAsContext(ConnectionItem connItem,Set<IConnParamName> paramSet){
  if (connItem == null) {
    return null;
  }
  List<IContextParameter> varList=createContextParameters(connItem,paramSet);
  if (varList == null || varList.isEmpty()) {
    return null;
  }
  String contextName=convertContextLabel(connItem.getProperty().getLabel());
  ISelection selection=getRepositoryContext(contextName,false);
  if (selection == null) {
    return null;
  }
  ContextWizard contextWizard=new ContextWizard(contextName,selection.isEmpty(),selection,varList);
  WizardDialog dlg=new WizardDialog(Display.getCurrent().getActiveShell(),contextWizard);
  if (dlg.open() == Window.OK) {
    ContextItem contextItem=contextWizard.getContextItem();
    contextManager=contextWizard.getContextManager();
    if (contextItem != null) {
      contextItem.getProperty().setLabel(contextName);
    }
    return contextItem;
  }
  return null;
}

Fixed version (ground truth):
/** 
 * ggu Comment method "exportAsContext".
 */
public static ContextItem exportAsContext(ConnectionItem connItem,Set<IConnParamName> paramSet){
  if (connItem == null) {
    return null;
  }
  List<IContextParameter> varList=createContextParameters(connItem,paramSet);
  if (varList == null || varList.isEmpty()) {
    return null;
  }
  String contextName=convertContextLabel(connItem.getProperty().getLabel());
  ISelection selection=getRepositoryContext(contextName,false);
  if (selection == null) {
    return null;
  }
  ContextWizard contextWizard=new ContextWizard(contextName,selection.isEmpty(),selection,varList);
  WizardDialog dlg=new WizardDialog(Display.getCurrent().getActiveShell(),contextWizard);
  if (dlg.open() == Window.OK) {
    ContextItem contextItem=contextWizard.getContextItem();
    contextManager=contextWizard.getContextManager();
    if (contextItem != null) {
      contextItem.getProperty().setLabel(contextName);
    }
    RepositoryManager.refreshCreatedNode(ERepositoryObjectType.CONTEXT);
    return contextItem;
  }
  return null;
}
Program: 129468
Project: 129468
Buggy source:
public synchronized void updateViewProjectNode(IProjectRepositoryNode projectRepNode){
  if (projectRepNode != null) {
    final Iterator<IProjectRepositoryNode> iterator=viewProjectNodes.iterator();
    while (iterator.hasNext()) {
      IProjectRepositoryNode tmpProjectNode=iterator.next();
      if (tmpProjectNode.getProject().getTechnicalLabel().equals(projectRepNode.getProject().getTechnicalLabel())) {
        iterator.remove();
        if (tmpProjectNode instanceof RepositoryNode) {
          ((RepositoryNode)tmpProjectNode).setEnableDisposed(true);
        }
        tmpProjectNode.dispose();
      }
    }
    viewProjectNodes.add(projectRepNode);
  }
}

Fixed version (ground truth):
public synchronized void updateViewProjectNode(IProjectRepositoryNode projectRepNode){
  if (projectRepNode != null) {
    final Iterator<IProjectRepositoryNode> iterator=viewProjectNodes.iterator();
    while (iterator.hasNext()) {
      IProjectRepositoryNode tmpProjectNode=iterator.next();
      if (tmpProjectNode.getProject().getTechnicalLabel().equals(projectRepNode.getProject().getTechnicalLabel())) {
        iterator.remove();
      }
    }
    viewProjectNodes.add(projectRepNode);
  }
}
Program: 129472
Project: 129472
Buggy source:
/** 
 * DOC YeXiaowei Comment method "isValidJarFile".
 * @param driverJarPath
 * @return
 */
private static boolean isValidJarFile(final String[] driverJarPath){
  boolean a=false;
  for (int i=0; i < driverJarPath.length; i++) {
    if (driverJarPath[i] == null || driverJarPath[i].equals("String_Node_Str")) {
      return a;
    }
    File jarFile=new File(driverJarPath[i]);
    a=jarFile.exists() && jarFile.isFile();
  }
  return a;
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "isValidJarFile".
 * @param driverJarPath
 * @return
 */
private static boolean isValidJarFile(final String[] driverJarPath){
  boolean a=false;
  for (  String element : driverJarPath) {
    if (element == null || element.equals("String_Node_Str")) {
      return a;
    }
    File jarFile=new File(element);
    a=jarFile.exists() && jarFile.isFile();
  }
  return a;
}
Program: 129473
Project: 129473
Buggy source:
private static List<String> convertFunctions2Array(List<String> functionlist,String[] functions){
  if (functions != null) {
    for (int i=0; i < functions.length; i++) {
      functionlist.add(functions[i]);
    }
  }
  return functionlist;
}

Fixed version (ground truth):
private static List<String> convertFunctions2Array(List<String> functionlist,String[] functions){
  if (functions != null) {
    for (    String function : functions) {
      functionlist.add(function);
    }
  }
  return functionlist;
}
Program: 129477
Project: 129477
Buggy source:
@Override protected void buttonPressed(int buttonId){
  if (IDialogConstants.NEXT_ID == buttonId) {
    boolean updateOrCreateSuccess=false;
    boolean success=false;
    try {
      if (alreadyRegistered) {
        success=RegisterManagement.getInstance().updateUser(email,pseudonym,oldPasswd,null,firstname,lastname,country,isProxyEnable,proxyHost,proxyPort);
      }
 else {
        success=RegisterManagement.getInstance().createUser(email,pseudonym,password,firstname,lastname,country,isProxyEnable,proxyHost,proxyPort);
      }
      if (success) {
        updateOrCreateSuccess=true;
      }
    }
 catch (    BusinessException e) {
      MessageBoxExceptionHandler.process(e);
      updateOrCreateSuccess=false;
    }
 finally {
      if (updateOrCreateSuccess) {
        close();
        RegisterWizard registerWizard=new RegisterWizard();
        RegisterWizardPage3 dialog=new RegisterWizardPage3(this.getShell(),registerWizard,email);
        dialog.open();
      }
    }
  }
 else   if (IDialogConstants.BACK_ID == buttonId) {
    close();
    RegisterWizard registerWizard=new RegisterWizard();
    RegisterWizardPage1 dialog=new RegisterWizardPage1(this.getShell(),registerWizard,email,country);
    dialog.open();
  }
}

Fixed version (ground truth):
@Override protected void buttonPressed(int buttonId){
  if (IDialogConstants.NEXT_ID == buttonId) {
    boolean updateOrCreateSuccess=false;
    boolean success=false;
    try {
      if (alreadyRegistered) {
        success=RegisterManagement.getInstance().updateUser(email,pseudonym,oldPasswd,null,firstname,lastname,country,isProxyEnable,proxyHost,proxyPort);
      }
 else {
        success=RegisterManagement.getInstance().createUser(email,pseudonym,password,firstname,lastname,country,isProxyEnable,proxyHost,proxyPort,null,null);
      }
      if (success) {
        updateOrCreateSuccess=true;
      }
    }
 catch (    BusinessException e) {
      MessageBoxExceptionHandler.process(e);
      updateOrCreateSuccess=false;
    }
 finally {
      if (updateOrCreateSuccess) {
        close();
        RegisterWizard registerWizard=new RegisterWizard();
        RegisterWizardPage3 dialog=new RegisterWizardPage3(this.getShell(),registerWizard,email);
        dialog.open();
      }
    }
  }
 else   if (IDialogConstants.BACK_ID == buttonId) {
    close();
    RegisterWizard registerWizard=new RegisterWizard();
    RegisterWizardPage1 dialog=new RegisterWizardPage1(this.getShell(),registerWizard,email,country);
    dialog.open();
  }
}
Program: 129482
Project: 129482
Buggy source:
public void run(){
  IRepositoryView repositoryView=RepositoryManagerHelper.getRepositoryView();
  if (repositoryView != null) {
    repositoryView.refresh();
  }
  if (updatePalette && GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
    ICoreService service=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
    service.updatePalette();
  }
}

Fixed version (ground truth):
public void run(){
  IRepositoryView repositoryView=RepositoryManagerHelper.getRepositoryView();
  if (repositoryView != null) {
    RepositoryManager.refresh(types);
  }
  if (updatePalette && GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
    ICoreService service=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
    service.updatePalette();
  }
}
Program: 129483
Project: 129483
Buggy source:
public static boolean isRefreshManually(){
  return getPreferenceStore().getBoolean(IRepositoryPrefConstants.MANUALLY_REFRESH);
}

Fixed version (ground truth):
public static boolean isRefreshManually(){
  return true;
}
Program: 129484
Project: 129484
Buggy source:
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      paramValue=ContextParameterUtils.getVariableFromCode(paramValue);
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}

Fixed version (ground truth):
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}
Program: 129486
Project: 129486
Buggy source:
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      paramValue=ContextParameterUtils.getVariableFromCode(paramValue);
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}

Fixed version (ground truth):
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}
Program: 129487
Project: 129487
Buggy source:
/** 
 * Method "addPrimaryKey".
 * @param table
 * @param pk the primary key of the table
 */
public static PrimaryKey addPrimaryKey(TdTable table,PrimaryKey pk){
}

Fixed version (ground truth):
/** 
 * Method "addPrimaryKey".
 * @param table
 * @param pk the primary key of the table
 */
public static PrimaryKey addPrimaryKey(TdTable table,TdColumn col){
}
Program: 129488
Project: 129488
Buggy source:
/** 
 * Method "addForeignKey".
 * @param table
 * @param foreignKey the foreign key of the given table
 */
public static ForeignKey addForeignKey(TdTable table,ForeignKey foreignKey){
}

Fixed version (ground truth):
/** 
 * Method "addForeignKey".
 * @param table
 * @param foreignKey the foreign key of the given table
 */
public static ForeignKey addForeignKey(TdTable table,ForeignKey foreignKey,TdColumn column){
}
Program: 129489
Project: 129489
Buggy source:
@Override public void unlock(Item obj) throws PersistenceException, LoginException {
  if (obj.eResource() == null || obj.getProperty().eResource() == null) {
    obj=getUptodateProperty(obj.getProperty()).getItem();
  }
  if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || obj instanceof JobletDocumentationItem || obj instanceof JobDocumentationItem) {
    Date commitDate=obj.getState().getCommitDate();
    Date modificationDate=obj.getProperty().getModificationDate();
    if (modificationDate == null || commitDate == null || modificationDate.before(commitDate)) {
      this.repositoryFactoryFromProvider.unlock(obj);
      if (obj instanceof JobletProcessItem || obj instanceof ProcessItem) {
        String docId=obj.getProperty().getId() + "String_Node_Str";
        IRepositoryViewObject repositoryViewObject=this.repositoryFactoryFromProvider.getLastVersion(projectManager.getCurrentProject(),docId);
        if (repositoryViewObject != null) {
          Property property=repositoryViewObject.getProperty();
          Item documentationItem=property.getItem();
          this.repositoryFactoryFromProvider.unlock(documentationItem);
        }
      }
      notifyLock(obj,false);
      String str[]=new String[]{obj.toString(),getRepositoryContext().getUser().toString()};
      log.debug(Messages.getString("String_Node_Str",str));
    }
  }
}

Fixed version (ground truth):
@Override public void unlock(Item obj) throws PersistenceException, LoginException {
  if (!(obj instanceof FolderItem) && (obj.eResource() == null || obj.getProperty().eResource() == null)) {
    obj=getUptodateProperty(obj.getProperty()).getItem();
  }
  if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || obj instanceof JobletDocumentationItem || obj instanceof JobDocumentationItem) {
    Date commitDate=obj.getState().getCommitDate();
    Date modificationDate=obj.getProperty().getModificationDate();
    if (modificationDate == null || commitDate == null || modificationDate.before(commitDate)) {
      this.repositoryFactoryFromProvider.unlock(obj);
      if (obj instanceof JobletProcessItem || obj instanceof ProcessItem) {
        String docId=obj.getProperty().getId() + "String_Node_Str";
        IRepositoryViewObject repositoryViewObject=this.repositoryFactoryFromProvider.getLastVersion(projectManager.getCurrentProject(),docId);
        if (repositoryViewObject != null) {
          Property property=repositoryViewObject.getProperty();
          Item documentationItem=property.getItem();
          this.repositoryFactoryFromProvider.unlock(documentationItem);
        }
      }
      notifyLock(obj,false);
      String str[]=new String[]{obj.toString(),getRepositoryContext().getUser().toString()};
      log.debug(Messages.getString("String_Node_Str",str));
    }
  }
}
Program: 129492
Project: 129492
Buggy source:
public void unlock(Item obj) throws PersistenceException, LoginException {
  if (obj.eResource() == null || obj.getProperty().eResource() == null) {
    obj=getUptodateProperty(obj.getProperty()).getItem();
  }
  if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || obj instanceof JobletDocumentationItem || obj instanceof JobDocumentationItem) {
    Date commitDate=obj.getState().getCommitDate();
    Date modificationDate=obj.getProperty().getModificationDate();
    if (modificationDate == null || commitDate == null || modificationDate.before(commitDate)) {
      this.repositoryFactoryFromProvider.unlock(obj);
      if (obj instanceof JobletProcessItem || obj instanceof ProcessItem) {
        String docId=obj.getProperty().getId() + "String_Node_Str";
        IRepositoryViewObject repositoryViewObject=this.repositoryFactoryFromProvider.getLastVersion(projectManager.getCurrentProject(),docId);
        if (repositoryViewObject != null) {
          Property property=repositoryViewObject.getProperty();
          Item documentationItem=property.getItem();
          this.repositoryFactoryFromProvider.unlock(documentationItem);
        }
      }
      String str[]=new String[]{obj.toString(),getRepositoryContext().getUser().toString()};
      log.debug(Messages.getString("String_Node_Str",str));
    }
  }
}

Fixed version (ground truth):
public void unlock(Item obj) throws PersistenceException, LoginException {
  if (!(obj instanceof FolderItem) && (obj.eResource() == null || obj.getProperty().eResource() == null)) {
    obj=getUptodateProperty(obj.getProperty()).getItem();
  }
  if (getStatus(obj) == ERepositoryStatus.LOCK_BY_USER || obj instanceof JobletDocumentationItem || obj instanceof JobDocumentationItem) {
    Date commitDate=obj.getState().getCommitDate();
    Date modificationDate=obj.getProperty().getModificationDate();
    if (modificationDate == null || commitDate == null || modificationDate.before(commitDate)) {
      this.repositoryFactoryFromProvider.unlock(obj);
      if (obj instanceof JobletProcessItem || obj instanceof ProcessItem) {
        String docId=obj.getProperty().getId() + "String_Node_Str";
        IRepositoryViewObject repositoryViewObject=this.repositoryFactoryFromProvider.getLastVersion(projectManager.getCurrentProject(),docId);
        if (repositoryViewObject != null) {
          Property property=repositoryViewObject.getProperty();
          Item documentationItem=property.getItem();
          this.repositoryFactoryFromProvider.unlock(documentationItem);
        }
      }
      String str[]=new String[]{obj.toString(),getRepositoryContext().getUser().toString()};
      log.debug(Messages.getString("String_Node_Str",str));
    }
  }
}
Program: 129493
Project: 129493
Buggy source:
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      paramValue=ContextParameterUtils.getVariableFromCode(paramValue);
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}

Fixed version (ground truth):
public static String getTrueParamValue(DatabaseConnection conn,String paramValue){
  String trueSchemaName=null;
  if (conn.isContextMode()) {
    if (conn.getContextId() != null && !"String_Node_Str".equals(conn.getContextId())) {
      String contextID=conn.getContextId();
      IRepositoryViewObject repObj;
      try {
        repObj=ProxyRepositoryFactory.getInstance().getLastVersion(contextID);
        if (repObj.getProperty().getItem() instanceof ContextItem) {
          ContextItem contextItem=(ContextItem)repObj.getProperty().getItem();
          List list=contextItem.getContext();
          Iterator it=list.iterator();
          while (it.hasNext()) {
            Object o=it.next();
            if (o instanceof ContextType) {
              ContextType contextType=(ContextType)o;
              List contextList=contextType.getContextParameter();
              for (int i=0; i < contextList.size(); i++) {
                Object obj=contextList.get(i);
                if (obj instanceof ContextParameterType) {
                  ContextParameterType type=(ContextParameterType)obj;
                  if (type.getName().equals(paramValue)) {
                    paramValue=type.getValue();
                    break;
                  }
                }
              }
            }
          }
        }
      }
 catch (      PersistenceException e1) {
        ExceptionHandler.process(e1);
      }
    }
  }
  trueSchemaName=paramValue;
  return trueSchemaName;
}
Program: 129496
Project: 129496
Buggy source:
public static String getNewQueryLabel(){
  return Messages1.getString("String_Node_Str",num++);
}

Fixed version (ground truth):
public static String getNewQueryLabel(){
  return Messages.getString("String_Node_Str",num++);
}
Program: 129497
Project: 129497
Buggy source:
public static String getNewQueryLabel(){
  return Messages1.getString("String_Node_Str",num++);
}

Fixed version (ground truth):
public static String getNewQueryLabel(){
  return Messages.getString("String_Node_Str",num++);
}
Program: 129501
Project: 129501
Buggy source:
/** 
 * DOC sgandon TalendSplashHandler constructor comment.
 */
public TalendSplashHandler(){
  if (INSTANCE == null) {
    INSTANCE=this;
  }
}

Fixed version (ground truth):
/** 
 * DOC sgandon TalendSplashHandler constructor comment.
 */
public TalendSplashHandler(){
  if (instance == null) {
    instance=this;
  }
}
Program: 129502
Project: 129502
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public void preStartup(){
  super.preStartup();
  RunProcessPlugin.getDefault();
  CodeGeneratorActivator.getDefault();
  PerspectiveReviewUtil.resetPerspective();
  LoginTaskRegistryReader loginTaskRegistryReader=new LoginTaskRegistryReader();
  IRunnableWithProgress[] allLoginTasks=loginTaskRegistryReader.getAllTaskListInstance();
  IProgressMonitor monitor=TalendSplashHandler.INSTANCE != null ? TalendSplashHandler.INSTANCE.getBundleProgressMonitor() : new NullProgressMonitor();
  SubMonitor subMonitor=SubMonitor.convert(monitor,allLoginTasks.length + 1);
  for (  IRunnableWithProgress toBeRun : allLoginTasks) {
    try {
      toBeRun.run(subMonitor.newChild(1,SubMonitor.SUPPRESS_NONE));
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public void preStartup(){
  super.preStartup();
  RunProcessPlugin.getDefault();
  CodeGeneratorActivator.getDefault();
  PerspectiveReviewUtil.resetPerspective();
  LoginTaskRegistryReader loginTaskRegistryReader=new LoginTaskRegistryReader();
  IRunnableWithProgress[] allLoginTasks=loginTaskRegistryReader.getAllTaskListInstance();
  IProgressMonitor monitor=TalendSplashHandler.instance != null ? TalendSplashHandler.instance.getBundleProgressMonitor() : new NullProgressMonitor();
  SubMonitor subMonitor=SubMonitor.convert(monitor,allLoginTasks.length + 1);
  for (  IRunnableWithProgress toBeRun : allLoginTasks) {
    try {
      toBeRun.run(subMonitor.newChild(1,SubMonitor.SUPPRESS_NONE));
    }
 catch (    Exception e) {
      log.error("String_Node_Str",e);
    }
  }
}
Program: 129503
Project: 129503
Buggy source:
public void run(){
  manualResizing=false;
}

Fixed version (ground truth):
public void run(){
  try {
synchronized (this) {
      wait(500);
      manualResizing=false;
    }
  }
 catch (  InterruptedException e) {
    manualResizing=false;
  }
}
Program: 129505
Project: 129505
Buggy source:
/** 
 * Sets if if layout must be really processed at each call or not.
 * @param continuousLayout <code>true</code> if layout must be really processed at each call, and<code>false</code> otherwise
 */
public void setContinuousLayout(boolean continuousLayout){
  this.continuousLayout=continuousLayout;
}

Fixed version (ground truth):
/** 
 * Sets if if layout must be really processed at each call or not.
 * @param continuousLayout <code>true</code> if layout must be really processed at each call, and <code>false</code>otherwise
 */
public void setContinuousLayout(boolean continuousLayout){
  this.continuousLayout=continuousLayout;
}
Program: 129506
Project: 129506
Buggy source:
/** 
 * Method "addPrimaryKey".
 * @param table
 * @param pk the primary key of the table
 */
public static PrimaryKey addPrimaryKey(TdTable table,PrimaryKey pk){
}

Fixed version (ground truth):
/** 
 * Method "addPrimaryKey".
 * @param table
 * @param pk the primary key of the table
 */
public static PrimaryKey addPrimaryKey(TdTable table,TdColumn col){
}
Program: 129507
Project: 129507
Buggy source:
/** 
 * Method "addForeignKey".
 * @param table
 * @param foreignKey the foreign key of the given table
 */
public static ForeignKey addForeignKey(TdTable table,ForeignKey foreignKey){
}

Fixed version (ground truth):
/** 
 * Method "addForeignKey".
 * @param table
 * @param foreignKey the foreign key of the given table
 */
public static ForeignKey addForeignKey(TdTable table,ForeignKey foreignKey,TdColumn column){
}
Program: 129510
Project: 129510
Buggy source:
public void refreshTemplateTab(){
  if (getContextManager() == null) {
    this.setEnabled(false);
    template.clear();
  }
 else {
    this.setEnabled(true);
    setTabEnable(!isReadOnly());
    toolgeRefreshContextRelitiveComposite(template);
  }
  if (getContextManager() != null) {
    getContextManager().fireContextsChangedEvent();
  }
}

Fixed version (ground truth):
public void refreshTemplateTab(){
  if (getContextManager() == null) {
    this.setEnabled(false);
    template.clear();
    template.setEnabled(isReadOnly());
  }
 else {
    this.setEnabled(true);
    setTabEnable(!isReadOnly());
    toolgeRefreshContextRelitiveComposite(template);
  }
  if (getContextManager() != null) {
    getContextManager().fireContextsChangedEvent();
  }
}
Program: 129511
Project: 129511
Buggy source:
public static String getNewQueryLabel(){
  return Messages.getString("String_Node_Str",num++);
}

Fixed version (ground truth):
public static String getNewQueryLabel(){
  return Messages1.getString("String_Node_Str",num++);
}