nus-yam/ex-repair huggingface dataset:
Program: 129512
Project: 129512
Buggy source:
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}

Fixed version (ground truth):
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MINUTE,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}
Program: 129513
Project: 129513
Buggy source:
public void save(Project project,Property property) throws PersistenceException {
  computePropertyMaxInformationLevel(property);
  propagateFileName(project,property);
  Resource propertyResource=property.eResource();
  if (propertyResource != null) {
    xmiResourceManager.saveResource(propertyResource);
  }
}

Fixed version (ground truth):
public void save(Project project,Property property) throws PersistenceException {
  xmiResourceManager.getAffectedResources(property);
  computePropertyMaxInformationLevel(property);
  propagateFileName(project,property);
  Resource propertyResource=property.eResource();
  if (propertyResource != null) {
    xmiResourceManager.saveResource(propertyResource);
  }
}
Program: 129514
Project: 129514
Buggy source:
public static boolean validComponent(String componentName){
  if (componentName != null) {
    for (    RepositoryComponentSetting setting : getSettings()) {
      final String inputComponent=setting.getInputComponent();
      final String outputComponent=setting.getOutputComponent();
      final String defaultComponent=setting.getDefaultComponent();
      if (componentName.equals(inputComponent) || componentName.equals(outputComponent) || componentName.equals(defaultComponent)) {
        return true;
      }
    }
  }
  return false;
}

Fixed version (ground truth):
public static boolean validComponent(String componentName){
  if (componentName != null) {
    for (    RepositoryComponentSetting setting : getSettings()) {
      final String inputComponent=setting.getInputComponent();
      final String outputComponent=setting.getOutputComponent();
      final String defaultComponent=setting.getDefaultComponent();
      if (componentName.equals(inputComponent) || componentName.equals(outputComponent) || componentName.equals(defaultComponent)|| componentName.equals("String_Node_Str")) {
        return true;
      }
    }
  }
  return false;
}
Program: 129516
Project: 129516
Buggy source:
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}

Fixed version (ground truth):
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MINUTE,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}
Program: 129517
Project: 129517
Buggy source:
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}

Fixed version (ground truth):
/** 
 * set a date new value partly
 * @param date (a date value)
 * @param nb (new number)
 * @param dateType (the part)
 * @return a new date{talendTypes} Date {Category} TalendDate {param} date(mydate) date : the date to set {param} Integer(newValue) nb : the new value {param} String("MM") dateType : the part to set {examples} ->> setDate(2008/11/24 12:15:25, 2010, "yyyy") return 2010/11/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 01, "MM") return 2008/01/24 12:15:25 ->> setDate(2008/11/24 12:15:25, 15, "dd") return 2008/11/15 12:15:25 #
 */
public static Date setDate(Date date,int nb,String dateType){
  if (date == null || dateType == null) {
    return null;
  }
  Calendar c=Calendar.getInstance();
  c.setTime(date);
  if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.YEAR,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MONTH,nb - 1);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.DATE,nb);
  }
 else   if (dateType.equalsIgnoreCase("String_Node_Str")) {
    c.set(Calendar.HOUR_OF_DAY,nb);
  }
 else   if (dateType.equals("String_Node_Str")) {
    c.set(Calendar.MINUTE,nb);
  }
 else {
    throw new RuntimeException("String_Node_Str" + dateType);
  }
  return c.getTime();
}
Program: 129518
Project: 129518
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++);
}
Program: 129521
Project: 129521
Buggy source:
protected void updateConnectionItem() throws CoreException {
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  final IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
  IWorkspaceRunnable operation=new IWorkspaceRunnable(){
    public void run(    IProgressMonitor monitor) throws CoreException {
      try {
        factory.save(connectionItem);
        closeLockStrategy();
      }
 catch (      PersistenceException e) {
        throw new CoreException(new Status(IStatus.ERROR,"String_Node_Str","String_Node_Str",e));
      }
    }
  }
;
  workspace.run(operation,null);
}

Fixed version (ground truth):
protected void updateConnectionItem() throws CoreException {
  IWorkspace workspace=ResourcesPlugin.getWorkspace();
  final IProxyRepositoryFactory factory=ProxyRepositoryFactory.getInstance();
  IWorkspaceRunnable operation=new IWorkspaceRunnable(){
    public void run(    IProgressMonitor monitor) throws CoreException {
      try {
        factory.save(connectionItem);
        closeLockStrategy();
      }
 catch (      PersistenceException e) {
        throw new CoreException(new Status(IStatus.ERROR,"String_Node_Str","String_Node_Str",e));
      }
    }
  }
;
  ISchedulingRule schedulingRule=workspace.getRoot();
  workspace.run(operation,schedulingRule,IWorkspace.AVOID_UPDATE,new NullProgressMonitor());
}
Program: 129524
Project: 129524
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: 129526
Project: 129526
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: 129527
Project: 129527
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: 129528
Project: 129528
Buggy source:
public static boolean isDeleted(AbstractMetadataObject abstractMetadataObject){
  return abstractMetadataObject.getProperties().containsKey(DELETED);
}

Fixed version (ground truth):
public static boolean isDeleted(AbstractMetadataObject abstractMetadataObject){
  boolean deleted=false;
  if (abstractMetadataObject != null) {
    deleted=abstractMetadataObject.getProperties().containsKey(DELETED);
  }
  return deleted;
}
Program: 129529
Project: 129529
Buggy source:
public static void setDeleted(AbstractMetadataObject abstractMetadataObject,boolean deleted){
  if (deleted)   abstractMetadataObject.getProperties().put(DELETED,Boolean.TRUE.toString());
 else   abstractMetadataObject.getProperties().remove(DELETED);
}

Fixed version (ground truth):
public static void setDeleted(AbstractMetadataObject abstractMetadataObject,boolean deleted){
  if (abstractMetadataObject != null) {
    if (deleted) {
      abstractMetadataObject.getProperties().put(DELETED,Boolean.TRUE.toString());
    }
 else {
      abstractMetadataObject.getProperties().remove(DELETED);
    }
  }
}
Program: 129530
Project: 129530
Buggy source:
@Override public void moveObject(IRepositoryViewObject objToMove,IPath targetPath,IPath... sourcePath) throws PersistenceException, BusinessException {
  checkAvailability(objToMove);
  this.repositoryFactoryFromProvider.moveObject(objToMove,targetPath);
  String str[]=new String[]{objToMove + "String_Node_Str",targetPath + "String_Node_Str"};
  log.debug(Messages.getString("String_Node_Str",str));
  boolean isExtendPoint=false;
  ERepositoryObjectType repositoryObjectType=objToMove.getRepositoryObjectType();
  for (  IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
    ERepositoryObjectType type=handler.getProcessType();
    if (type != null && repositoryObjectType == type) {
      isExtendPoint=true;
      break;
    }
  }
  if (isExtendPoint || objToMove.getRepositoryObjectType() == ERepositoryObjectType.PROCESS) {
    if (sourcePath != null && sourcePath.length == 1) {
      fireRepositoryPropertyChange(ERepositoryActionName.JOB_MOVE.getName(),objToMove,new IPath[]{sourcePath[0],targetPath});
    }
  }
  if (objToMove.getRepositoryObjectType() == ERepositoryObjectType.JOBLET) {
    if (sourcePath != null && sourcePath.length == 1) {
      fireRepositoryPropertyChange(ERepositoryActionName.JOBLET_MOVE.getName(),objToMove,new IPath[]{sourcePath[0],targetPath});
    }
  }
}

Fixed version (ground truth):
@Override public void moveObject(IRepositoryViewObject objToMove,IPath targetPath,IPath... sourcePath) throws PersistenceException, BusinessException {
  checkAvailability(objToMove);
  this.repositoryFactoryFromProvider.moveObject(objToMove,targetPath);
  String str[]=new String[]{objToMove + "String_Node_Str",targetPath + "String_Node_Str"};
  log.debug(Messages.getString("String_Node_Str",str));
  if (objToMove.getRepositoryObjectType() == ERepositoryObjectType.PROCESS) {
    if (sourcePath != null && sourcePath.length == 1) {
      fireRepositoryPropertyChange(ERepositoryActionName.JOB_MOVE.getName(),objToMove,new IPath[]{sourcePath[0],targetPath});
    }
  }
  if (objToMove.getRepositoryObjectType() == ERepositoryObjectType.JOBLET) {
    if (sourcePath != null && sourcePath.length == 1) {
      fireRepositoryPropertyChange(ERepositoryActionName.JOBLET_MOVE.getName(),objToMove,new IPath[]{sourcePath[0],targetPath});
    }
  }
}
Program: 129531
Project: 129531
Buggy source:
@Override protected void run() throws LoginException, PersistenceException {
  try {
    for (    Object obj : ((StructuredSelection)data).toArray()) {
      final RepositoryNode sourceNode=(RepositoryNode)obj;
      monitor.subTask(Messages.getString("String_Node_Str") + sourceNode.getObject().getLabel());
      MoveObjectAction.getInstance().execute(sourceNode,targetNode,true);
    }
  }
 catch (  Exception e) {
    throw new PersistenceException(e);
  }
}

Fixed version (ground truth):
public void run(IProgressMonitor monitor) throws CoreException {
  try {
    for (    Object obj : ((StructuredSelection)data).toArray()) {
      final RepositoryNode sourceNode=(RepositoryNode)obj;
      monitor.subTask(Messages.getString("String_Node_Str") + sourceNode.getObject().getLabel());
      MoveObjectAction.getInstance().execute(sourceNode,targetNode,true);
    }
  }
 catch (  Exception e) {
    throw new CoreException(new org.eclipse.core.runtime.Status(IStatus.ERROR,FrameworkUtil.getBundle(this.getClass()).getSymbolicName(),"String_Node_Str",e));
  }
}
Program: 129533
Project: 129533
Buggy source:
public DeleteAction(){
  super();
  setId(ActionFactory.DELETE.getId());
  this.setImageDescriptor(ImageProvider.getImageDesc(EImage.DELETE_ICON));
  singleton=this;
}

Fixed version (ground truth):
public DeleteAction(){
  super();
  setId(ActionFactory.DELETE.getId());
  this.setImageDescriptor(ImageProvider.getImageDesc(EImage.DELETE_ICON));
  singleton=this;
  this.setUnloadResourcesAfter(true);
  this.setAvoidUnloadResources(true);
}
Program: 129535
Project: 129535
Buggy source:
public RestoreAction(){
  super();
  this.setText(Messages.getString("String_Node_Str"));
  this.setToolTipText(Messages.getString("String_Node_Str"));
  this.setImageDescriptor(ImageProvider.getImageDesc(EImage.RESTORE_ICON));
  this.setActionDefinitionId("String_Node_Str");
}

Fixed version (ground truth):
public RestoreAction(){
  super();
  this.setText(Messages.getString("String_Node_Str"));
  this.setToolTipText(Messages.getString("String_Node_Str"));
  this.setImageDescriptor(ImageProvider.getImageDesc(EImage.RESTORE_ICON));
  this.setActionDefinitionId("String_Node_Str");
  this.setUnloadResourcesAfter(true);
  this.setAvoidUnloadResources(true);
}
Program: 129536
Project: 129536
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(){
  if (updatePalette && GlobalServiceRegister.getDefault().isServiceRegistered(ICoreService.class)) {
    ICoreService service=(ICoreService)GlobalServiceRegister.getDefault().getService(ICoreService.class);
    service.updatePalette();
  }
}
Program: 129538
Project: 129538
Buggy source:
protected void deleteTable(TableNode tableItem){
  Collection<MetadataTable> tables=new ArrayList<MetadataTable>();
  Iterator<MetadataTable> iterate=ConnectionHelper.getTables(getConnection()).iterator();
  while (iterate.hasNext()) {
    MetadataTable metadata=iterate.next();
    if (metadata != null && metadata.getLabel().equals(tableItem.getValue())) {
      tables.add(metadata);
    }
  }
  TableNode parent=tableItem.getParent();
  String catalog="String_Node_Str";
  String schema="String_Node_Str";
  if (parent != null) {
    if (parent.getType() == TableNode.CATALOG) {
      catalog=parent.getValue();
    }
 else     if (parent.getType() == TableNode.SCHEMA) {
      schema=parent.getValue();
      TableNode catalogNode=parent.getParent();
      if (catalogNode != null) {
        catalog=catalogNode.getValue();
      }
    }
  }
  boolean isAccess=EDatabaseTypeName.ACCESS.getDisplayName().equals(metadataconnection.getDbType());
  if (isAccess) {
    ProjectNodeHelper.removeTablesFromCurrentCatalogOrSchema(catalog,getConnection().getName(),getConnection(),tables);
  }
 else {
    if ("String_Node_Str".equals(schema) && ExtractMetaDataUtils.useAllSynonyms && EDatabaseTypeName.ORACLEFORSID.getDisplayName().equals(metadataconnection.getDbType())) {
      schema=MetadataConnectionUtils.FAKE_SCHEMA_SYNONYMS;
    }
    ProjectNodeHelper.removeTablesFromCurrentCatalogOrSchema(catalog,schema,getConnection(),tables);
  }
}

Fixed version (ground truth):
protected void deleteTable(TableNode tableItem){
  Collection<MetadataTable> tables=new ArrayList<MetadataTable>();
  Iterator<MetadataTable> iterate=ConnectionHelper.getTables(getConnection()).iterator();
  while (iterate.hasNext()) {
    MetadataTable metadata=iterate.next();
    if (metadata != null && metadata.getLabel().equals(tableItem.getValue())) {
      tables.add(metadata);
    }
  }
  TableNode parent=tableItem.getParent();
  String catalog="String_Node_Str";
  String schema="String_Node_Str";
  if (parent != null) {
    if (parent.getType() == TableNode.CATALOG) {
      catalog=parent.getValue();
    }
 else     if (parent.getType() == TableNode.SCHEMA) {
      schema=parent.getValue();
      TableNode catalogNode=parent.getParent();
      if (catalogNode != null) {
        catalog=catalogNode.getValue();
      }
    }
  }
  boolean isAccess=EDatabaseTypeName.ACCESS.getDisplayName().equals(metadataconnection.getDbType());
  if (isAccess) {
    ProjectNodeHelper.removeTablesFromCurrentCatalogOrSchema(catalog,getConnection().getName(),getConnection(),tables);
  }
 else {
    if ("String_Node_Str".equals(schema) && ExtractMetaDataUtils.useAllSynonyms) {
      schema=MetadataConnectionUtils.FAKE_SCHEMA_SYNONYMS;
    }
    ProjectNodeHelper.removeTablesFromCurrentCatalogOrSchema(catalog,schema,getConnection(),tables);
  }
}
Program: 129541
Project: 129541
Buggy source:
private void preparModuleInit(){
  SalesforceSchemaConnection connection=temConnection;
  endPoint=connection.getWebServiceUrl();
  username=connection.getUserName();
  pwd=connection.getPassword();
  batchSize=connection.getBatchSize();
  timeOut=connection.getTimeOut();
  useHttpProxy=connection.isUseHttpProxy();
  if (useHttpProxy && endPoint.startsWith("String_Node_Str")) {
    useHttpsProxy=true;
  }
  useSocketProxy=connection.isUseProxy();
  proxyHost=connection.getProxyHost();
  proxyPort=connection.getProxyHost();
  proxyUsername=connection.getProxyUsername();
  proxyPassword=connection.getProxyPassword();
}

Fixed version (ground truth):
private void preparModuleInit(){
  SalesforceSchemaConnection connection=temConnection;
  endPoint=connection.getWebServiceUrl();
  username=connection.getUserName();
  pwd=connection.getPassword();
  batchSize=connection.getBatchSize();
  timeOut=connection.getTimeOut();
  useHttpProxy=connection.isUseHttpProxy();
  if (useHttpProxy && endPoint.startsWith("String_Node_Str")) {
    useHttpsProxy=true;
  }
  useSocketProxy=connection.isUseProxy();
  proxyHost=connection.getProxyHost();
  proxyPort=connection.getProxyPort();
  proxyUsername=connection.getProxyUsername();
  proxyPassword=connection.getProxyPassword();
}
Program: 129544
Project: 129544
Buggy source:
private void preparModuleInit(){
  SalesforceSchemaConnection connection=temConnection;
  endPoint=connection.getWebServiceUrl();
  username=connection.getUserName();
  pwd=connection.getPassword();
  batchSize=connection.getBatchSize();
  timeOut=connection.getTimeOut();
  useHttpProxy=connection.isUseHttpProxy();
  if (useHttpProxy && endPoint.startsWith("String_Node_Str")) {
    useHttpsProxy=true;
  }
  useSocketProxy=connection.isUseProxy();
  proxyHost=connection.getProxyHost();
  proxyPort=connection.getProxyHost();
  proxyUsername=connection.getProxyUsername();
  proxyPassword=connection.getProxyPassword();
}

Fixed version (ground truth):
private void preparModuleInit(){
  SalesforceSchemaConnection connection=temConnection;
  endPoint=connection.getWebServiceUrl();
  username=connection.getUserName();
  pwd=connection.getPassword();
  batchSize=connection.getBatchSize();
  timeOut=connection.getTimeOut();
  useHttpProxy=connection.isUseHttpProxy();
  if (useHttpProxy && endPoint.startsWith("String_Node_Str")) {
    useHttpsProxy=true;
  }
  useSocketProxy=connection.isUseProxy();
  proxyHost=connection.getProxyHost();
  proxyPort=connection.getProxyPort();
  proxyUsername=connection.getProxyUsername();
  proxyPassword=connection.getProxyPassword();
}
Program: 129545
Project: 129545
Buggy source:
public static DatabaseMetaData getConnectionMetadata(java.sql.Connection conn) throws SQLException {
  DatabaseMetaData dbMetaData=conn.getMetaData();
  if (dbMetaData != null && dbMetaData.getDatabaseProductName() != null) {
    if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.IBMDB2ZOS.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.IBMDB2ZOS.getXmlName());
    }
 else     if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.TERADATA.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.TERADATA.getXmlName());
    }
 else     if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.SAS.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.SAS.getXmlName());
    }
  }
  return dbMetaData;
}

Fixed version (ground truth):
public static DatabaseMetaData getConnectionMetadata(java.sql.Connection conn) throws SQLException {
  DatabaseMetaData dbMetaData=conn.getMetaData();
  if (dbMetaData != null && dbMetaData.getDatabaseProductName() != null) {
    if ("String_Node_Str".equals(conn.getClass().getName())) {
      dbMetaData=createJtdsDatabaseMetaData(conn);
    }
 else     if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.IBMDB2ZOS.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.IBMDB2ZOS.getXmlName());
    }
 else     if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.TERADATA.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.TERADATA.getXmlName());
    }
 else     if (dbMetaData.getDatabaseProductName().equals(EDatabaseTypeName.SAS.getXmlName())) {
      getDatabaseMetaData(conn,EDatabaseTypeName.SAS.getXmlName());
    }
  }
  return dbMetaData;
}
Program: 129549
Project: 129549
Buggy source:
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
  if (salesforceAPI == null) {
    try {
      salesforceAPI=new SalesforceModuleParseAPI();
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  boolean socksProxy=false;
  boolean httpProxy=false;
  boolean httpsProxy=false;
  if (SalesforceModuleParseAPI.USE_SOCKS_PROXY.equals(proxy)) {
    socksProxy=true;
  }
  if (SalesforceModuleParseAPI.USE_HTTP_PROXY.equals(proxy)) {
    if (endPoint.startsWith("String_Node_Str")) {
      httpsProxy=true;
    }
 else {
      httpProxy=true;
    }
  }
  salesforceAPI.resetProxy(httpProxy,socksProxy,httpsProxy);
  salesforceAPI.setProxy(proxyHost,proxyPort,proxyUsername,proxyPassword,httpProxy,socksProxy,httpsProxy);
  try {
    ArrayList loginList=salesforceAPI.login(endPoint,username,password,timeOut);
    if (loginList != null) {
      for (int i=0; i < loginList.size(); i++) {
        if (loginList.get(i) instanceof SoapBindingStub) {
          binding=(SoapBindingStub)loginList.get(i);
        }
        if (loginList.get(i) instanceof SforceServiceStub) {
          bindingPartner=(SforceServiceStub)loginList.get(i);
        }
      }
    }
    salesforceAPI.setLogin(true);
  }
 catch (  Throwable e) {
    errors.add(e.getMessage());
    ExceptionHandler.process(e);
  }
 finally {
    salesforceAPI.resetProxy(httpProxy,socksProxy,httpsProxy);
  }
  monitor.done();
}

Fixed version (ground truth):
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
  if (salesforceAPI == null) {
    try {
      salesforceAPI=new SalesforceModuleParseAPI();
    }
 catch (    Throwable e) {
      ExceptionHandler.process(e);
    }
  }
  boolean socksProxy=false;
  boolean httpProxy=false;
  boolean httpsProxy=false;
  if (SalesforceModuleParseAPI.USE_SOCKS_PROXY.equals(proxy)) {
    socksProxy=true;
  }
  if (SalesforceModuleParseAPI.USE_HTTP_PROXY.equals(proxy)) {
    if (endPoint.startsWith("String_Node_Str")) {
      httpsProxy=true;
    }
 else {
      httpProxy=true;
    }
  }
  salesforceAPI.resetAllProxy();
  salesforceAPI.setProxy(proxyHost,proxyPort,proxyUsername,proxyPassword,httpProxy,socksProxy,httpsProxy);
  try {
    ArrayList loginList=salesforceAPI.login(endPoint,username,password,timeOut);
    if (loginList != null) {
      for (int i=0; i < loginList.size(); i++) {
        if (loginList.get(i) instanceof SoapBindingStub) {
          binding=(SoapBindingStub)loginList.get(i);
        }
        if (loginList.get(i) instanceof SforceServiceStub) {
          bindingPartner=(SforceServiceStub)loginList.get(i);
        }
      }
    }
    salesforceAPI.setLogin(true);
  }
 catch (  Throwable e) {
    errors.add(e.getMessage());
    ExceptionHandler.process(e);
  }
 finally {
    salesforceAPI.resetAllProxy();
  }
  monitor.done();
}
Program: 129552
Project: 129552
Buggy source:
/** 
 * checkConnection.
 * @param displayMessageBox
 */
protected void checkConnection(final boolean displayMessageBox){
  try {
    if (table.getItemCount() > 0) {
      table.removeAll();
    }
    parentWizardPage.getWizard().getContainer().run(true,true,new IRunnableWithProgress(){
      public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
        managerConnection.check(getIMetadataConnection());
        if (true) {
          itemTableName=connectFromCustomModuleName();
          if (itemTableName.size() <= 0) {
            if (displayMessageBox) {
              openInfoDialogInUIThread(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),true);
            }
          }
 else {
            createAllItems(displayMessageBox,null);
          }
        }
 else         if (displayMessageBox) {
          getShell().getDisplay().asyncExec(new Runnable(){
            public void run(){
              new ErrorDialogWidthDetailArea(getShell(),PID,Messages.getString("String_Node_Str"),managerConnection.getMessageException());
            }
          }
);
        }
        monitor.done();
      }
    }
);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
/** 
 * checkConnection.
 * @param displayMessageBox
 */
protected void checkConnection(final boolean displayMessageBox){
  try {
    if (table.getItemCount() > 0) {
      table.removeAll();
    }
    parentWizardPage.getWizard().getContainer().run(true,true,new IRunnableWithProgress(){
      public void run(      IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
        monitor.beginTask(Messages.getString("String_Node_Str"),IProgressMonitor.UNKNOWN);
        managerConnection.check(getIMetadataConnection());
        String proxy=null;
        if (temConnection.isUseProxy()) {
          proxy=SalesforceModuleParseAPI.USE_SOCKS_PROXY;
        }
 else         if (temConnection.isUseHttpProxy()) {
          proxy=SalesforceModuleParseAPI.USE_HTTP_PROXY;
        }
        itemTableName=connectFromCustomModuleName(proxy);
        if (itemTableName.size() <= 0) {
          if (displayMessageBox) {
            openInfoDialogInUIThread(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"),true);
          }
        }
 else {
          createAllItems(displayMessageBox,null);
        }
        monitor.done();
      }
    }
);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 129554
Project: 129554
Buggy source:
@Override public String getLabel(){
  if (getProject() != null) {
    return getProject().getLabel();
  }
  return super.getLabel();
}

Fixed version (ground truth):
@Override public String getLabel(){
  if (getProject() != null) {
    String urlBranch=null;
    if (ProjectManager.getInstance().getCurrentBranchURL(project) != null) {
      urlBranch=showSVNRoot();
    }
    return getProject().getLabel() + (urlBranch != null && !"String_Node_Str".equals(urlBranch) ? '(' + urlBranch + ')' : "String_Node_Str");
  }
  return super.getLabel();
}
Program: 129555
Project: 129555
Buggy source:
public boolean getMergeRefProject(){
  IPreferenceStore preferenceStore=RepositoryManager.getPreferenceStore();
  this.mergeRefProject=preferenceStore.getBoolean(IRepositoryPrefConstants.MERGE_REFERENCE_PROJECT);
  return this.mergeRefProject;
}

Fixed version (ground truth):
public boolean getMergeRefProject(){
  IPreferenceStore preferenceStore=RepositoryManager.getPreferenceStore();
  return preferenceStore.getBoolean(IRepositoryPrefConstants.MERGE_REFERENCE_PROJECT);
}
Program: 129556
Project: 129556
Buggy source:
public RepositoryNode getRootRepositoryNode(ERepositoryObjectType type){
  if (type == null) {
    return null;
  }
  String typeName=type.name();
  if (repositoryNodeMap.containsKey(typeName)) {
    return repositoryNodeMap.get(typeName);
  }
  return null;
}

Fixed version (ground truth):
@Override public RepositoryNode getRootRepositoryNode(ERepositoryObjectType type){
  if (type == null) {
    return null;
  }
  String typeName=type.name();
  if (repositoryNodeMap.containsKey(typeName)) {
    return repositoryNodeMap.get(typeName);
  }
  return null;
}
Program: 129557
Project: 129557
Buggy source:
public RepositoryNode getRecBinNode(){
  return this.recBinNode;
}

Fixed version (ground truth):
@Override public RepositoryNode getRecBinNode(){
  return this.recBinNode;
}
Program: 129558
Project: 129558
Buggy source:
public org.talend.core.model.general.Project getProject(){
  return this.project;
}

Fixed version (ground truth):
@Override public org.talend.core.model.general.Project getProject(){
  return this.project;
}
Program: 129559
Project: 129559
Buggy source:
public void resetUniservLibraries(){
  ILibraryManagerService libManager=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
  String jarNeeded="String_Node_Str";
  if (libManager.contains(jarNeeded)) {
    Bundle bundle=Platform.getBundle("String_Node_Str");
    if (bundle instanceof BundleHost) {
      BundleHost bundleHost=(BundleHost)bundle;
      final BundleData bundleData=bundleHost.getBundleData();
      if (bundleData instanceof BaseData) {
        BaseData baseData=(BaseData)bundleData;
        final BundleFile bundleFile=baseData.getBundleFile();
        final File baseFile=bundleFile.getBaseFile();
        libManager.retrieve(jarNeeded,baseFile.getAbsolutePath(),new NullProgressMonitor());
      }
    }
  }
}

Fixed version (ground truth):
public void resetUniservLibraries(){
  ILibraryManagerService libManager=(ILibraryManagerService)GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);
  String jarNeeded="String_Node_Str";
  if (libManager.contains(jarNeeded)) {
    Bundle bundle=Platform.getBundle("String_Node_Str");
    if (bundle instanceof BundleHost) {
      BundleHost bundleHost=(BundleHost)bundle;
      final BundleData bundleData=bundleHost.getBundleData();
      if (bundleData instanceof BaseData) {
        BaseData baseData=(BaseData)bundleData;
        final BundleFile bundleFile=baseData.getBundleFile();
        final File baseFile=bundleFile.getBaseFile();
        File jarFile=new File(baseFile.getAbsolutePath(),jarNeeded);
        if (jarFile.exists()) {
          return;
        }
        libManager.retrieve(jarNeeded,baseFile.getAbsolutePath(),new NullProgressMonitor());
      }
    }
  }
}
Program: 129560
Project: 129560
Buggy source:
public WebDriver setFirefox(){
  logger.info("String_Node_Str" + System.getProperty("String_Node_Str").trim());
  if (null == System.getProperty("String_Node_Str") || "String_Node_Str".equals(System.getProperty("String_Node_Str").trim()) || System.getProperty("String_Node_Str").trim().contains("String_Node_Str")) {
  }
 else {
    System.setProperty("String_Node_Str",System.getProperty("String_Node_Str").trim());
  }
  FirefoxProfile firefoxProfile=new FirefoxProfile();
  firefoxProfile.setPreference("String_Node_Str",2);
  firefoxProfile.setPreference("String_Node_Str",false);
  firefoxProfile.setPreference("String_Node_Str",this.getAbsoluteFolderPath("String_Node_Str"));
  firefoxProfile.setPreference("String_Node_Str","String_Node_Str");
  firefoxProfile.setPreference("String_Node_Str",0);
  firefoxProfile.setPreference("String_Node_Str",0);
  firefoxProfile.setPreference("String_Node_Str",false);
  logger.info("String_Node_Str" + firefoxProfile.areNativeEventsEnabled());
  return new FirefoxDriver(firefoxProfile);
}

Fixed version (ground truth):
public WebDriver setFirefox(){
  logger.info("String_Node_Str" + System.getProperty("String_Node_Str"));
  if (null == System.getProperty("String_Node_Str") || "String_Node_Str".equals(System.getProperty("String_Node_Str").trim()) || System.getProperty("String_Node_Str").trim().contains("String_Node_Str")) {
  }
 else {
    System.setProperty("String_Node_Str",System.getProperty("String_Node_Str").trim());
  }
  FirefoxProfile firefoxProfile=new FirefoxProfile();
  firefoxProfile.setPreference("String_Node_Str",2);
  firefoxProfile.setPreference("String_Node_Str",false);
  firefoxProfile.setPreference("String_Node_Str",this.getAbsoluteFolderPath("String_Node_Str"));
  firefoxProfile.setPreference("String_Node_Str","String_Node_Str");
  firefoxProfile.setPreference("String_Node_Str",0);
  firefoxProfile.setPreference("String_Node_Str",0);
  firefoxProfile.setPreference("String_Node_Str",false);
  logger.info("String_Node_Str" + firefoxProfile.areNativeEventsEnabled());
  return new FirefoxDriver(firefoxProfile);
}
Program: 129562
Project: 129562
Buggy source:
@Override protected void init(){
  super.init();
  updateNavigatorContentState();
}

Fixed version (ground truth):
@Override protected void init(){
  super.init();
}
Program: 129563
Project: 129563
Buggy source:
protected String[] getExtensionIdsToActivate(String perspectiveId){
  if (perspectiveFilterExtensionsReader == null) {
    perspectiveFilterExtensionsReader=new PerspectiveFilterRegistryReader(getActionProviderId());
    perspectiveFilterExtensionsReader.readRegistry();
  }
  INavigatorContentService contentService=getNavigatorContentService();
  String[] filteredIds=perspectiveFilterExtensionsReader.getContentProviderFilteredIds(contentService,perspectiveId);
  return RepositoryNodeFilterHelper.filterRemovedNavigatorContents(filteredIds);
}

Fixed version (ground truth):
protected String[] getExtensionIdsToActivate(String perspectiveId){
  if (perspectiveFilterExtensionsReader == null) {
    perspectiveFilterExtensionsReader=new PerspectiveFilterRegistryReader(getActionProviderId());
    perspectiveFilterExtensionsReader.readRegistry();
  }
  INavigatorContentService contentService=getNavigatorContentService();
  String[] filteredIds=perspectiveFilterExtensionsReader.getContentProviderFilteredIds(contentService,perspectiveId);
  return filteredIds;
}
Program: 129564
Project: 129564
Buggy source:
/** 
 * filter on the given perspective
 * @param perspectiveId
 * @param restoring
 */
private void filterView(String perspectiveId,boolean restoring){
  refreshNavigatorContents(getExtensionIdsToActivate(perspectiveId),restoring);
}

Fixed version (ground truth):
/** 
 * filter on the given perspective
 * @param perspectiveId
 * @param restoring
 */
private void filterView(String perspectiveId,boolean restoring){
  refreshNavigatorContents(RepositoryNodeFilterHelper.filterRemovedNavigatorContents(getExtensionIdsToActivate(perspectiveId)),restoring);
}
Program: 129565
Project: 129565
Buggy source:
/** 
 * DOC ycbai Comment method "getExtensionIdsNeedRemove".
 * @param visibleExtensionIds
 * @return
 */
public static List<String> getExtensionIdsNeedRemove(String[] visibleExtensionIds){
  String REMOVE_FLAG="String_Node_Str";
  List<String> extensionIds=Arrays.asList(visibleExtensionIds);
  List<String> needRemovedExtensionIds=new ArrayList<String>();
  for (  String extensionId : extensionIds) {
    if (extensionId != null && extensionId.toLowerCase().endsWith(REMOVE_FLAG)) {
      needRemovedExtensionIds.add(extensionId);
      String realExtensionId=extensionId.substring(0,extensionId.lastIndexOf(REMOVE_FLAG));
      if (extensionIds.contains(realExtensionId)) {
        needRemovedExtensionIds.add(realExtensionId);
      }
    }
  }
  return needRemovedExtensionIds;
}

Fixed version (ground truth):
/** 
 * DOC ycbai Comment method "getExtensionIdsNeedRemove".
 * @param visibleExtensionIds
 * @return
 */
public static List<String> getExtensionIdsNeedRemove(String[] visibleExtensionIds){
  List<String> extensionIds=Arrays.asList(visibleExtensionIds);
  List<String> needRemovedExtensionIds=new ArrayList<String>();
  for (  String extensionId : extensionIds) {
    addRemoveExtensionId(extensionIds,needRemovedExtensionIds,extensionId,"String_Node_Str");
    addRemoveExtensionId(extensionIds,needRemovedExtensionIds,extensionId,"String_Node_Str");
  }
  return needRemovedExtensionIds;
}
Program: 129567
Project: 129567
Buggy source:
protected IRepositoryView getRepView(){
  if (realRepView == null) {
    realRepView=RepositoryManagerHelper.findRepositoryView();
  }
  return realRepView;
}

Fixed version (ground truth):
protected IRepositoryView getRepView(){
  if (realRepView == null) {
    realRepView=RepositoryManagerHelper.findRepositoryView();
  }
  if (realRepView == null) {
    realRepView=RepositoryManagerHelper.getRepositoryView();
    if (realRepView != null && realRepView instanceof RepoViewCommonNavigator) {
      ((RepoViewCommonNavigator)realRepView).getCommonViewer().expandToLevel(2);
    }
  }
  return realRepView;
}
Program: 129570
Project: 129570
Buggy source:
/** 
 * Looks up the <code>IContextParameter</code> from context list by the specified parameters.
 * @param sourceId
 * @param contextParaName
 * @param index
 * @return
 */
private IContextParameter lookupContextParameter(String sourceId,String contextParaName,int index){
  List<IContext> contextList=parentModel.getContexts();
  IContext context=contextList.get(index);
  List<IContextParameter> list=context.getContextParameterList();
  if (list != null && list.size() > 0) {
    for (    IContextParameter contextPara : list) {
      String tempSourceId=contextPara.getSource();
      String tempContextParaName=contextPara.getName();
      if (tempSourceId.equals(sourceId) && tempContextParaName.equals(contextParaName)) {
        return contextPara;
      }
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Looks up the <code>IContextParameter</code> from context list by the specified parameters.
 * @param sourceId
 * @param contextParaName
 * @param index
 * @return
 */
private IContextParameter lookupContextParameter(String sourceId,String contextParaName,int index){
  List<IContext> contextList=parentModel.getContexts();
  int size=contextList.size();
  if (index < size) {
    IContext context=contextList.get(index);
    List<IContextParameter> list=context.getContextParameterList();
    if (list != null && list.size() > 0) {
      for (      IContextParameter contextPara : list) {
        String tempSourceId=contextPara.getSource();
        String tempContextParaName=contextPara.getName();
        if (tempSourceId.equals(sourceId) && tempContextParaName.equals(contextParaName)) {
          return contextPara;
        }
      }
    }
  }
  return null;
}
Program: 129571
Project: 129571
Buggy source:
private String getColumnTextForChild(ContextTableTabChildModel child,int columnIndex){
  String text="String_Node_Str";
  String sourceId=child.getContextParameter().getSource();
  String variableName=child.getContextParameter().getName();
  if (columnIndex == 0)   return child.getContextParameter().getName();
 else {
    List<IContext> contextList=parentModel.getContexts();
    IContext context=contextList.get(columnIndex - 1);
    List<IContextParameter> list=context.getContextParameterList();
    if (list != null && list.size() > 0) {
      for (      IContextParameter contextPara : list) {
        String tempName=contextPara.getName();
        String tempSourceId=contextPara.getSource();
        if (tempName.equals(variableName) && tempSourceId.equals(sourceId)) {
          return contextPara.getValue();
        }
      }
    }
  }
  return text;
}

Fixed version (ground truth):
private String getColumnTextForChild(ContextTableTabChildModel child,int columnIndex){
  String text="String_Node_Str";
  String sourceId=child.getContextParameter().getSource();
  String variableName=child.getContextParameter().getName();
  List<IContext> contextList=parentModel.getContexts();
  int size=contextList.size();
  if (columnIndex == 0)   return child.getContextParameter().getName();
 else   if (columnIndex - 1 < size) {
    IContext context=contextList.get(columnIndex - 1);
    List<IContextParameter> list=context.getContextParameterList();
    if (list != null && list.size() > 0) {
      for (      IContextParameter contextPara : list) {
        String tempName=contextPara.getName();
        String tempSourceId=contextPara.getSource();
        if (tempName.equals(variableName) && tempSourceId.equals(sourceId)) {
          return contextPara.getValue();
        }
      }
    }
  }
  return text;
}