nus-yam/ex-repair huggingface dataset:
Program: 122207
Project: 122207
Buggy source:
public List<Map> getMaps(){
  if (repositoryValueUtils == null) {
    repositoryValueUtils=new RepositoryValueUtils();
  }
  List<Map> list=new ArrayList<Map>();
  list.add(repositoryValueUtils.getRepositoryConnectionItemMap());
  list.add(repositoryValueUtils.getRepositoryDBIdAndNameMap());
  return list;
}

Fixed version (ground truth):
@Override public List<Map> getMaps(){
  if (repositoryValueUtils == null) {
    repositoryValueUtils=new RepositoryValueUtils();
  }
  List<Map> list=new ArrayList<Map>();
  list.add(repositoryValueUtils.getRepositoryConnectionItemMap());
  list.add(repositoryValueUtils.getRepositoryDBIdAndNameMap());
  return list;
}
Program: 122208
Project: 122208
Buggy source:
public INode getRefrenceNode(String componentName){
  if (componentName == null) {
    return null;
  }
  IComponentsFactory compFac=CorePlugin.getDefault().getRepositoryService().getComponentsFactory();
  IComponent salesforceComponent=compFac.get(componentName);
  return new DataNode(salesforceComponent,componentName);
}

Fixed version (ground truth):
@Override public INode getRefrenceNode(String componentName){
  if (componentName == null) {
    return null;
  }
  IComponentsFactory compFac=CorePlugin.getDefault().getRepositoryService().getComponentsFactory();
  IComponent salesforceComponent=compFac.get(componentName);
  return new DataNode(salesforceComponent,componentName);
}
Program: 122209
Project: 122209
Buggy source:
public boolean executeUpdatesManager(List<UpdateResult> results,boolean onlySimpleShow){
  return UpdateManagerUtils.executeUpdates(results,onlySimpleShow);
}

Fixed version (ground truth):
@Override public boolean executeUpdatesManager(List<UpdateResult> results,boolean onlySimpleShow){
  return UpdateManagerUtils.executeUpdates(results,onlySimpleShow);
}
Program: 122210
Project: 122210
Buggy source:
public boolean isTalendEditor(IEditorPart activeEditor){
  if (activeEditor == null) {
    return false;
  }
  return activeEditor.getSite().getId().equals(MultiPageTalendEditor.ID);
}

Fixed version (ground truth):
@Override public boolean isTalendEditor(IEditorPart activeEditor){
  if (activeEditor == null) {
    return false;
  }
  return activeEditor.getSite().getId().equals(MultiPageTalendEditor.ID);
}
Program: 122211
Project: 122211
Buggy source:
public IConnection getConnection(List<? extends IConnection> connections,IMetadataTable table){
  return TracesConnectionUtils.getConnection(connections,table);
}

Fixed version (ground truth):
@Override public IConnection getConnection(List<? extends IConnection> connections,IMetadataTable table){
  return TracesConnectionUtils.getConnection(connections,table);
}
Program: 122212
Project: 122212
Buggy source:
public IProcess getProcessFromProcessItem(ProcessItem processItem,boolean loadScreenshots){
  Process process=null;
  process=new Process(processItem.getProperty());
  process.loadXmlFile(loadScreenshots);
  return process;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromProcessItem(ProcessItem processItem,boolean loadScreenshots){
  Process process=null;
  process=new Process(processItem.getProperty());
  process.loadXmlFile(loadScreenshots);
  return process;
}
Program: 122213
Project: 122213
Buggy source:
public boolean isDummyComponent(IComponent component){
  if (component == null) {
    return false;
  }
  if (component instanceof DummyComponent) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean isDummyComponent(IComponent component){
  if (component == null) {
    return false;
  }
  if (component instanceof DummyComponent) {
    return true;
  }
  return false;
}
Program: 122214
Project: 122214
Buggy source:
public void reloadParamFromProjectSettings(ParametersType processType,String paramName){
  if (EParameterName.STATANDLOG_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadStatsAndLogFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
 else   if (EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadImplicitValuesFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
}

Fixed version (ground truth):
@Override public void reloadParamFromProjectSettings(ParametersType processType,String paramName){
  if (EParameterName.STATANDLOG_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadStatsAndLogFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
 else   if (EParameterName.IMPLICITCONTEXT_USE_PROJECT_SETTINGS.getName().equals(paramName)) {
    ProjectSettingManager.reloadImplicitValuesFromProjectSettings(processType,ProjectManager.getInstance().getCurrentProject());
  }
}
Program: 122215
Project: 122215
Buggy source:
public PaletteRoot createPalette(IComponentsFactory compFac,PaletteRoot root,boolean isFavorite){
  return TalendEditorPaletteFactory.createPalette(compFac,root,isFavorite);
}

Fixed version (ground truth):
@Override public PaletteRoot createPalette(IComponentsFactory compFac,PaletteRoot root,boolean isFavorite){
  return TalendEditorPaletteFactory.createPalette(compFac,root,isFavorite);
}
Program: 122216
Project: 122216
Buggy source:
public PaletteRoot createEmptyPalette(){
  return TalendEditorPaletteFactory.createEmptyPalette();
}

Fixed version (ground truth):
@Override public PaletteRoot createEmptyPalette(){
  return TalendEditorPaletteFactory.createEmptyPalette();
}
Program: 122217
Project: 122217
Buggy source:
public void removeJobLaunch(IRepositoryViewObject objToDelete){
  JobLaunchShortcutManager.removeJobLaunch(objToDelete);
}

Fixed version (ground truth):
@Override public void removeJobLaunch(IRepositoryViewObject objToDelete){
  JobLaunchShortcutManager.removeJobLaunch(objToDelete);
}
Program: 122218
Project: 122218
Buggy source:
public Set<ModuleNeeded> getNeededLibrariesForProcess(IProcess process,boolean withChildrens){
  return JavaProcessUtil.getNeededModules(process,withChildrens);
}

Fixed version (ground truth):
@Override public Set<ModuleNeeded> getNeededLibrariesForProcess(IProcess process,boolean withChildrens){
  return JavaProcessUtil.getNeededModules(process,withChildrens);
}
Program: 122219
Project: 122219
Buggy source:
public void synchronizeDesignerUI(PropertyChangeEvent evt){
  ComponentUtilities.updatePalette();
  for (  IEditorPart editor : ProcessorUtilities.getOpenedEditors()) {
    AbstractTalendEditor abstractTalendEditor=((AbstractTalendEditor)editor);
    IProcess2 process=abstractTalendEditor.getProcess();
    process.getUpdateManager().addNodesPropertyChanger(evt);
  }
}

Fixed version (ground truth):
@Override public void synchronizeDesignerUI(PropertyChangeEvent evt){
  ComponentUtilities.updatePalette();
  for (  IEditorPart editor : ProcessorUtilities.getOpenedEditors()) {
    AbstractTalendEditor abstractTalendEditor=((AbstractTalendEditor)editor);
    IProcess2 process=abstractTalendEditor.getProcess();
    process.getUpdateManager().addNodesPropertyChanger(evt);
  }
}
Program: 122220
Project: 122220
Buggy source:
public IPreferenceStore getDesignerCorePreferenceStore(){
  return DesignerPlugin.getDefault().getPreferenceStore();
}

Fixed version (ground truth):
@Override public IPreferenceStore getDesignerCorePreferenceStore(){
  return DesignerPlugin.getDefault().getPreferenceStore();
}
Program: 122221
Project: 122221
Buggy source:
public PaletteDrawer createTalendPaletteDrawer(String family){
  return new TalendPaletteDrawer(family);
}

Fixed version (ground truth):
@Override public PaletteDrawer createTalendPaletteDrawer(String family){
  return new TalendPaletteDrawer(family);
}
Program: 122222
Project: 122222
Buggy source:
public Map<String,java.util.Date> getLastGeneratedJobsDateMap(){
  return lastGeneratedJobs;
}

Fixed version (ground truth):
@Override public Map<String,java.util.Date> getLastGeneratedJobsDateMap(){
  return lastGeneratedJobs;
}
Program: 122223
Project: 122223
Buggy source:
public ILabelProvider getGEFEditorNodeLabelProvider(){
  return new GefEditorLabelProvider();
}

Fixed version (ground truth):
@Override public ILabelProvider getGEFEditorNodeLabelProvider(){
  return new GefEditorLabelProvider();
}
Program: 122224
Project: 122224
Buggy source:
public void saveJobBeforeRun(IProcess activeProcess){
  new SaveJobBeforeRunAction(activeProcess).run();
}

Fixed version (ground truth):
@Override public void saveJobBeforeRun(IProcess activeProcess){
  new SaveJobBeforeRunAction(activeProcess).run();
}
Program: 122225
Project: 122225
Buggy source:
public void setTraceFilterParameters(INode node,IMetadataTable table,Set<String> preColumnSet,Map<String,String> changedNameColumns){
  TracesConnectionUtils.setTraceFilterParameters(node,table,preColumnSet,changedNameColumns);
}

Fixed version (ground truth):
@Override public void setTraceFilterParameters(INode node,IMetadataTable table,Set<String> preColumnSet,Map<String,String> changedNameColumns){
  TracesConnectionUtils.setTraceFilterParameters(node,table,preColumnSet,changedNameColumns);
}
Program: 122226
Project: 122226
Buggy source:
public void switchToCurJobSettingsView(){
  JobSettings.switchToCurJobSettingsView();
}

Fixed version (ground truth):
@Override public void switchToCurJobSettingsView(){
  JobSettings.switchToCurJobSettingsView();
}
Program: 122227
Project: 122227
Buggy source:
public String getPreferenceStore(String key){
  return DesignerPlugin.getDefault().getPreferenceStore().getString(key);
}

Fixed version (ground truth):
@Override public String getPreferenceStore(String key){
  return DesignerPlugin.getDefault().getPreferenceStore().getString(key);
}
Program: 122228
Project: 122228
Buggy source:
public void createStatsLogAndImplicitParamter(Project project){
  ProjectSettingManager.createStatsAndLogsElement(project);
  ProjectSettingManager.createImplicitContextLoadElement(project);
}

Fixed version (ground truth):
@Override public void createStatsLogAndImplicitParamter(Project project){
  ProjectSettingManager.createStatsAndLogsElement(project);
  ProjectSettingManager.createImplicitContextLoadElement(project);
}
Program: 122229
Project: 122229
Buggy source:
/** 
 * DOC YeXiaowei Comment method "getDisplayForProcessParameterFromName".
 * @param name
 * @return
 */
public String getDisplayForProcessParameterFromName(final String name){
  for (  EParameterName param : EParameterName.values()) {
    String keyName=name;
    String suffix="String_Node_Str";
    if (name.endsWith("String_Node_Str")) {
      keyName=name.substring(0,name.indexOf("String_Node_Str"));
      suffix="String_Node_Str";
    }
    if (param.name().equals(keyName)) {
      return param.getDisplayName() + suffix;
    }
  }
  if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
  return name;
}

Fixed version (ground truth):
/** 
 * DOC YeXiaowei Comment method "getDisplayForProcessParameterFromName".
 * @param name
 * @return
 */
@Override public String getDisplayForProcessParameterFromName(final String name){
  for (  EParameterName param : EParameterName.values()) {
    String keyName=name;
    String suffix="String_Node_Str";
    if (name.endsWith("String_Node_Str")) {
      keyName=name.substring(0,name.indexOf("String_Node_Str"));
      suffix="String_Node_Str";
    }
    if (param.name().equals(keyName)) {
      return param.getDisplayName() + suffix;
    }
  }
  if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_IMPLICIT_CONTEXT_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
 else   if (name.equals(IJobSettingConstants.PROPERTY_TYPE_REPOSITORY_PROPERTY_TYPE)) {
    return Messages.getString("String_Node_Str");
  }
  return name;
}
Program: 122230
Project: 122230
Buggy source:
public String getRepositoryAliasName(ConnectionItem connectionItem){
  return repositoryValueUtils.getRepositoryAliasName(connectionItem);
}

Fixed version (ground truth):
@Override public String getRepositoryAliasName(ConnectionItem connectionItem){
  return repositoryValueUtils.getRepositoryAliasName(connectionItem);
}
Program: 122231
Project: 122231
Buggy source:
public IProcess getProcessFromItem(Item item){
  if (item instanceof ProcessItem) {
    return getProcessFromProcessItem((ProcessItem)item);
  }
 else   if (item instanceof JobletProcessItem) {
    AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
    if (processProvider != null) {
      return processProvider.buildNewGraphicProcess(item);
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromItem(Item item){
  if (item instanceof ProcessItem) {
    return getProcessFromProcessItem((ProcessItem)item);
  }
 else   if (item instanceof JobletProcessItem) {
    AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
    if (processProvider != null) {
      return processProvider.buildNewGraphicProcess(item);
    }
  }
  return null;
}
Program: 122232
Project: 122232
Buggy source:
public CsvArray convertNode(ConnectionItem connectionItem,String tableName) throws ProcessorException {
  ConvertRepositoryNodeToProcessNode convertMove=new ConvertRepositoryNodeToProcessNode(connectionItem,tableName);
  CsvArray array=null;
  array=convertMove.runMockProcess();
  return array;
}

Fixed version (ground truth):
@Override public CsvArray convertNode(ConnectionItem connectionItem,IMetadataConnection convertedConnection,String tableName) throws ProcessorException {
  ConvertRepositoryNodeToProcessNode convertMove=new ConvertRepositoryNodeToProcessNode(connectionItem,convertedConnection,tableName);
  CsvArray array=null;
  array=convertMove.runMockProcess();
  return array;
}
Program: 122233
Project: 122233
Buggy source:
public IAction getCreateProcessAction(boolean isToolbar){
  return new CreateProcess(isToolbar);
}

Fixed version (ground truth):
@Override public IAction getCreateProcessAction(boolean isToolbar){
  return new CreateProcess(isToolbar);
}
Program: 122234
Project: 122234
Buggy source:
/** 
 * nrousseau Comment method "removeConnection".
 */
public void removeConnection(INode node,String schemaName){
  for (  IConnection connection : (List<IConnection>)node.getOutgoingConnections()) {
    if (connection.getMetaName().equals(schemaName)) {
      connection.disconnect();
      INode prevNode=connection.getSource();
      INodeConnector nodeConnectorSource, nodeConnectorTarget;
      nodeConnectorSource=prevNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
      INode nextNode=connection.getTarget();
      nodeConnectorTarget=nextNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
      break;
    }
  }
  node.getProcess().removeUniqueConnectionName(schemaName);
}

Fixed version (ground truth):
/** 
 * nrousseau Comment method "removeConnection".
 */
@Override public void removeConnection(INode node,String schemaName){
  for (  IConnection connection : (List<IConnection>)node.getOutgoingConnections()) {
    if (connection.getMetaName().equals(schemaName)) {
      connection.disconnect();
      INode prevNode=connection.getSource();
      INodeConnector nodeConnectorSource, nodeConnectorTarget;
      nodeConnectorSource=prevNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorSource.setCurLinkNbOutput(nodeConnectorSource.getCurLinkNbOutput() - 1);
      INode nextNode=connection.getTarget();
      nodeConnectorTarget=nextNode.getConnectorFromType(connection.getLineStyle());
      nodeConnectorTarget.setCurLinkNbInput(nodeConnectorTarget.getCurLinkNbInput() - 1);
      break;
    }
  }
  node.getProcess().removeUniqueConnectionName(schemaName);
}
Program: 122235
Project: 122235
Buggy source:
public PaletteRoot getAllNodeStructure(IComponentsFactory factory){
  return TalendEditorPaletteFactory.getAllNodeStructure(factory);
}

Fixed version (ground truth):
@Override public PaletteRoot getAllNodeStructure(IComponentsFactory factory){
  return TalendEditorPaletteFactory.getAllNodeStructure(factory);
}
Program: 122236
Project: 122236
Buggy source:
public IProcess getProcessFromJobletProcessItem(JobletProcessItem jobletProcessItem){
  AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
  if (processProvider != null) {
    return processProvider.getProcessFromJobletProcessItem(jobletProcessItem);
  }
  return null;
}

Fixed version (ground truth):
@Override public IProcess getProcessFromJobletProcessItem(JobletProcessItem jobletProcessItem){
  AbstractProcessProvider processProvider=AbstractProcessProvider.findProcessProviderFromPID(IComponent.JOBLET_PID);
  if (processProvider != null) {
    return processProvider.getProcessFromJobletProcessItem(jobletProcessItem);
  }
  return null;
}
Program: 122237
Project: 122237
Buggy source:
public void refreshComponentView(Item item){
  try {
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
    IEditorReference[] editors=activePage.getEditorReferences();
    for (    IEditorReference er : editors) {
      IEditorPart part=er.getEditor(false);
      if (part instanceof AbstractMultiPageTalendEditor) {
        AbstractMultiPageTalendEditor editor=(AbstractMultiPageTalendEditor)part;
        CommandStack stack=(CommandStack)editor.getTalendEditor().getAdapter(CommandStack.class);
        if (stack != null) {
          IProcess process=editor.getProcess();
          for (          final INode processNode : process.getGraphicalNodes()) {
            if (processNode instanceof Node) {
              checkRepository((Node)processNode,item,stack);
            }
          }
        }
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void refreshComponentView(Item item){
  try {
    IWorkbenchWindow activeWorkbenchWindow=PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    IWorkbenchPage activePage=activeWorkbenchWindow.getActivePage();
    IEditorReference[] editors=activePage.getEditorReferences();
    for (    IEditorReference er : editors) {
      IEditorPart part=er.getEditor(false);
      if (part instanceof AbstractMultiPageTalendEditor) {
        AbstractMultiPageTalendEditor editor=(AbstractMultiPageTalendEditor)part;
        CommandStack stack=(CommandStack)editor.getTalendEditor().getAdapter(CommandStack.class);
        if (stack != null) {
          IProcess process=editor.getProcess();
          for (          final INode processNode : process.getGraphicalNodes()) {
            if (processNode instanceof Node) {
              checkRepository((Node)processNode,item,stack);
            }
          }
        }
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 122238
Project: 122238
Buggy source:
public void updateTraceColumnValues(IConnection conn,Map<String,String> changedNameColumns,Set<String> addedColumns){
  if (changedNameColumns == null) {
    for (    String curColumnName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,curColumnName,null,true);
    }
    return;
  }
 else {
    List<Map<String,Object>> traceFilterValues=TracesConnectionUtils.getTraceConnectionFilterValues(conn);
    if (traceFilterValues != null) {
      for (      String newName : changedNameColumns.keySet()) {
        String oldName=changedNameColumns.get(newName);
        if (oldName != null) {
          Map<String,Object> foundLine=null;
          for (          Map<String,Object> line : traceFilterValues) {
            Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
            if (oldName.equals(column)) {
              foundLine=line;
              break;
            }
          }
          if (foundLine != null) {
            foundLine.put(IConnection.TRACE_SCHEMA_COLUMN,newName);
          }
        }
      }
    }
    for (    String colName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,colName,null,true);
    }
  }
}

Fixed version (ground truth):
@Override public void updateTraceColumnValues(IConnection conn,Map<String,String> changedNameColumns,Set<String> addedColumns){
  if (changedNameColumns == null) {
    for (    String curColumnName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,curColumnName,null,true);
    }
    return;
  }
 else {
    List<Map<String,Object>> traceFilterValues=TracesConnectionUtils.getTraceConnectionFilterValues(conn);
    if (traceFilterValues != null) {
      for (      String newName : changedNameColumns.keySet()) {
        String oldName=changedNameColumns.get(newName);
        if (oldName != null) {
          Map<String,Object> foundLine=null;
          for (          Map<String,Object> line : traceFilterValues) {
            Object column=line.get(IConnection.TRACE_SCHEMA_COLUMN);
            if (oldName.equals(column)) {
              foundLine=line;
              break;
            }
          }
          if (foundLine != null) {
            foundLine.put(IConnection.TRACE_SCHEMA_COLUMN,newName);
          }
        }
      }
    }
    for (    String colName : addedColumns) {
      TracesConnectionUtils.setTraceColumnValues(conn,colName,null,true);
    }
  }
}
Program: 122239
Project: 122239
Buggy source:
public List<IProcess2> getOpenedProcess(IEditorReference[] reference){
  return RepositoryManagerHelper.getOpenedProcess(reference);
}

Fixed version (ground truth):
@Override public List<IProcess2> getOpenedProcess(IEditorReference[] reference){
  return RepositoryManagerHelper.getOpenedProcess(reference);
}
Program: 122240
Project: 122240
Buggy source:
public List<IProcess> getProcessForJobTemplate(){
  if (JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess() != null) {
    List<IProcess> result=new ArrayList<IProcess>();
    result.add(JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess());
    return result;
  }
  return null;
}

Fixed version (ground truth):
@Override public List<IProcess> getProcessForJobTemplate(){
  if (JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess() != null) {
    List<IProcess> result=new ArrayList<IProcess>();
    result.add(JobTemplateViewsAndProcessUtil.getInstance().getHelpProcess());
    return result;
  }
  return null;
}
Program: 122241
Project: 122241
Buggy source:
public boolean evaluate(final String string,List<? extends IElementParameter> listParam){
  return Expression.evaluate(string,listParam);
}

Fixed version (ground truth):
@Override public boolean evaluate(final String string,List<? extends IElementParameter> listParam){
  return Expression.evaluate(string,listParam);
}
Program: 122242
Project: 122242
Buggy source:
public ConvertRepositoryNodeToProcessNode(ConnectionItem connectionItem,String tableName){
  databaseConnection=(DatabaseConnection)connectionItem.getConnection();
  IMetadataConnection iMetadataConnection=null;
  iMetadataConnection=ConvertionHelper.convert(databaseConnection);
  String dbType=iMetadataConnection.getDbType();
  String username=iMetadataConnection.getUsername();
  String pwd=iMetadataConnection.getPassword();
  String dbVersion=iMetadataConnection.getDbVersionString();
  String url=iMetadataConnection.getUrl();
  String additionalParams=iMetadataConnection.getAdditionalParams();
  if (EDatabaseTypeName.GENERAL_JDBC.getDisplayName().equals(dbType)) {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,iMetadataConnection.getDriverClass(),iMetadataConnection.getDriverJarPath(),additionalParams);
  }
 else {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,additionalParams);
  }
  try {
    convertToProcessNode(connectionItem,tableName);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
public ConvertRepositoryNodeToProcessNode(ConnectionItem connectionItem,IMetadataConnection convertedConnection,String tableName){
  databaseConnection=(DatabaseConnection)connectionItem.getConnection();
  IMetadataConnection iMetadataConnection=convertedConnection;
  String dbType=iMetadataConnection.getDbType();
  String username=iMetadataConnection.getUsername();
  String pwd=iMetadataConnection.getPassword();
  String dbVersion=iMetadataConnection.getDbVersionString();
  String url=iMetadataConnection.getUrl();
  String additionalParams=iMetadataConnection.getAdditionalParams();
  if (EDatabaseTypeName.GENERAL_JDBC.getDisplayName().equals(dbType)) {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,iMetadataConnection.getDriverClass(),iMetadataConnection.getDriverJarPath(),additionalParams);
  }
 else {
    info=new DbInfo(dbType,username,pwd,dbVersion,url,additionalParams);
  }
  try {
    convertToProcessNode(connectionItem,tableName);
  }
 catch (  ProcessorException e) {
    ExceptionHandler.process(e);
  }
}
Program: 122244
Project: 122244
Buggy source:
public boolean useSchema(){
  boolean useSchema=false;
  if (compType == null) {
    isLoaded=false;
    try {
      load();
    }
 catch (    BusinessException e) {
      ExceptionHandler.process(e);
    }
  }
  PARAMETERType pType;
  EList parameters=compType.getPARAMETERS().getPARAMETER();
  for (  Object parameter : parameters) {
    pType=(PARAMETERType)parameter;
    if ("String_Node_Str".equals(pType.getNAME()) && "String_Node_Str".equals(pType.getFIELD()) && !pType.isREADONLY()) {
      useSchema=true;
      break;
    }
  }
  return useSchema;
}

Fixed version (ground truth):
public boolean useSchema(){
  boolean useSchema=false;
  if (compType == null) {
    isLoaded=false;
    try {
      load();
    }
 catch (    BusinessException e) {
      ExceptionHandler.process(e);
    }
  }
  PARAMETERType pType;
  EList parameters=compType.getPARAMETERS().getPARAMETER();
  for (  Object parameter : parameters) {
    pType=(PARAMETERType)parameter;
    if ("String_Node_Str".equals(pType.getFIELD()) && !pType.isREADONLY() && (pType.getCONTEXT() == null || "String_Node_Str".equals(pType.getCONTEXT()))) {
      useSchema=true;
      break;
    }
  }
  return useSchema;
}
Program: 122245
Project: 122245
Buggy source:
public IExternalData getExternalData(){
  return null;
}

Fixed version (ground truth):
@Override public IExternalData getExternalData(){
  return null;
}
Program: 122246
Project: 122246
Buggy source:
public void initialize(){
}

Fixed version (ground truth):
public void initialize(){
  List<Object> listNames=getVertionColumnNames();
  if (listNames.isEmpty()) {
    return;
  }
  int customId=0;
  List<IMetadataTable> listTables=getScdNodeMetadataList();
  for (  IMetadataTable table : listTables) {
    if (table instanceof MetadataTable) {
      MetadataTable metable=(MetadataTable)table;
      List<IMetadataColumn> metColumns=metable.getListColumns();
      for (      IMetadataColumn column : metColumns) {
        if (listNames.contains(column.getLabel())) {
          column.setCustomId(customId);
          column.setCustom(true);
          column.setReadOnly(true);
          customId++;
        }
      }
    }
  }
}
Program: 122249
Project: 122249
Buggy source:
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  IElementParameter rootParameter=element.getElementParameter("String_Node_Str");
  List<Map<String,String>> rootValue=(List<Map<String,String>>)rootParameter.getValue();
  for (int i=0; i < rootValue.size(); i++) {
    Map<String,String> map=(Map<String,String>)rootValue.get(i);
    String columnName=map.get("String_Node_Str");
    String split[]=columnName.split("String_Node_Str");
    if (split.length == 2 && !returnedValue.equals("String_Node_Str")) {
      String newName=returnedValue + "String_Node_Str" + split[1];
      map.put("String_Node_Str",newName);
    }
 else     if (split.length == 1 && !returnedValue.equals("String_Node_Str")) {
      String newName=(String)returnedValue;
      map.put("String_Node_Str",newName);
    }
  }
  return returnedValue;
}

Fixed version (ground truth):
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  IElementParameter rootParameter=element.getElementParameter("String_Node_Str");
  if (rootParameter != null) {
    List<Map<String,String>> rootValue=(List<Map<String,String>>)rootParameter.getValue();
    if (rootValue != null) {
      for (int i=0; i < rootValue.size(); i++) {
        Map<String,String> map=(Map<String,String>)rootValue.get(i);
        String columnName=map.get("String_Node_Str");
        String split[]=columnName.split("String_Node_Str");
        if (split.length == 2 && !returnedValue.equals("String_Node_Str")) {
          String newName=returnedValue + "String_Node_Str" + split[1];
          map.put("String_Node_Str",newName);
        }
 else         if (split.length == 1 && !returnedValue.equals("String_Node_Str")) {
          String newName=(String)returnedValue;
          map.put("String_Node_Str",newName);
        }
      }
    }
  }
  return returnedValue;
}
Program: 122252
Project: 122252
Buggy source:
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  IElementParameter rootParameter=element.getElementParameter("String_Node_Str");
  if (rootParameter != null) {
    List<Map<String,String>> rootValue=(List<Map<String,String>>)rootParameter.getValue();
    if (rootValue != null) {
      for (int i=0; i < rootValue.size(); i++) {
        Map<String,String> map=(Map<String,String>)rootValue.get(i);
        String columnName=map.get("String_Node_Str");
        String split[]=columnName.split("String_Node_Str");
        if (split.length == 2 && !returnedValue.equals("String_Node_Str")) {
          String newName=returnedValue + "String_Node_Str" + split[1];
          map.put("String_Node_Str",newName);
        }
 else         if (split.length == 1 && !returnedValue.equals("String_Node_Str")) {
          String newName=(String)returnedValue;
          map.put("String_Node_Str",newName);
        }
      }
    }
  }
  return returnedValue;
}

Fixed version (ground truth):
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  if (element instanceof INode) {
    INode node=(INode)element;
    if (node.getComponent().getName() != null && node.getComponent().getName().equals("String_Node_Str")) {
      IElementParameter rootParameter=element.getElementParameter("String_Node_Str");
      if (rootParameter != null) {
        List<Map<String,String>> rootValue=(List<Map<String,String>>)rootParameter.getValue();
        if (rootValue != null) {
          for (int i=0; i < rootValue.size(); i++) {
            Map<String,String> map=(Map<String,String>)rootValue.get(i);
            String columnName=map.get("String_Node_Str");
            String split[]=columnName.split("String_Node_Str");
            if (split.length == 2 && !returnedValue.equals("String_Node_Str")) {
              String newName=returnedValue + "String_Node_Str" + split[1];
              map.put("String_Node_Str",newName);
            }
 else             if (split.length == 1 && !returnedValue.equals("String_Node_Str")) {
              String newName=(String)returnedValue;
              map.put("String_Node_Str",newName);
            }
          }
        }
      }
    }
  }
  return returnedValue;
}
Program: 122253
Project: 122253
Buggy source:
public AdvancedMemoryHashFile(MATCHING_MODE matchingMode){
  this.matchingMode=matchingMode;
  if (matchingMode == MATCHING_MODE.KEEP_ALL) {
    allList=new ArrayList<V>();
  }
 else   if (matchingMode == MATCHING_MODE.KEEP_FIRST) {
    firstHash=new HashMap<V,V>();
  }
}

Fixed version (ground truth):
public AdvancedMemoryHashFile(MATCHING_MODE matchingMode){
  this.matchingMode=matchingMode;
  if (matchingMode == MATCHING_MODE.KEEP_ALL) {
    allList=Collections.synchronizedList(new ArrayList<V>());
  }
 else   if (matchingMode == MATCHING_MODE.KEEP_FIRST) {
    firstHash=Collections.synchronizedMap(new HashMap<V,V>());
  }
}
Program: 122256
Project: 122256
Buggy source:
public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  String requestTimestamp=df.format(Calendar.getInstance().getTime());
  String stringToEncrypt=requestTimestamp + clientAccessID;
  String signature=Signature.hmac_sha1(stringToEncrypt,secretKey);
  QName authenticationHeaderName=new QName("String_Node_Str","String_Node_Str","String_Node_Str");
  SOAPHeaderElement authenticationHeader=new SOAPHeaderElement(authenticationHeaderName);
  authenticationHeader.setActor(null);
  authenticationHeader.setMustUnderstand(false);
  authenticationHeader.setEnvelope(new SOAPEnvelope());
  authenticationHeader.addAttribute(SOAPFactory.newInstance().createName("String_Node_Str"),"String_Node_Str");
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(clientAccessID);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(signature);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(requestTimestamp);
  _call.addHeader(authenticationHeader);
}

Fixed version (ground truth):
public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {
  String requestTimestamp=formatAsW3C(Calendar.getInstance().getTime());
  String stringToEncrypt=requestTimestamp + clientAccessID;
  String signature=Signature.hmac_sha1(stringToEncrypt,secretKey);
  QName authenticationHeaderName=new QName("String_Node_Str","String_Node_Str","String_Node_Str");
  SOAPHeaderElement authenticationHeader=new SOAPHeaderElement(authenticationHeaderName);
  authenticationHeader.setActor(null);
  authenticationHeader.setMustUnderstand(false);
  authenticationHeader.setEnvelope(new SOAPEnvelope());
  authenticationHeader.addAttribute(SOAPFactory.newInstance().createName("String_Node_Str"),"String_Node_Str");
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(clientAccessID);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(signature);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(requestTimestamp);
  _call.addHeader(authenticationHeader);
}
Program: 122257
Project: 122257
Buggy source:
public void transform(NodeType node){
  ElementParameterType dbVersion=ComponentUtilities.getNodeProperty(node,"String_Node_Str");
  if (dbVersion != null) {
    String jarValue=dbVersion.getValue();
    if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
      dbVersion.setValue("String_Node_Str");
    }
 else     if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
      dbVersion.setValue("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void transform(NodeType node){
  if (node == null) {
    return;
  }
  if ("String_Node_Str".equals(node.getComponentName())) {
    ElementParameterType dbVersion=ComponentUtilities.getNodeProperty(node,"String_Node_Str");
    if (dbVersion != null) {
      String jarValue=dbVersion.getValue();
      if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
        dbVersion.setValue("String_Node_Str");
      }
 else       if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
        dbVersion.setValue("String_Node_Str");
      }
    }
  }
  ElementParameterType dbVersion=ComponentUtilities.getNodeProperty(node,"String_Node_Str");
  if (dbVersion != null) {
    String jarValue=dbVersion.getValue();
    if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
      dbVersion.setValue("String_Node_Str");
    }
 else     if ("String_Node_Str".equalsIgnoreCase(jarValue)) {
      dbVersion.setValue("String_Node_Str");
    }
  }
}
Program: 122258
Project: 122258
Buggy source:
public Date getOrder(){
  GregorianCalendar gc=new GregorianCalendar(2012,10,19,10,0,0);
  return gc.getTime();
}

Fixed version (ground truth):
public Date getOrder(){
  GregorianCalendar gc=new GregorianCalendar(2012,10,26,10,0,0);
  return gc.getTime();
}
Program: 122265
Project: 122265
Buggy source:
private void removeloopInOutputTree(List<TreeNode> oldLoops){
  EList<OutputXmlTree> outputTrees=mapperManager.getCopyOfMapData().getOutputTrees();
  for (  TreeNode oldLoop : oldLoops) {
    for (    OutputXmlTree outputTree : outputTrees) {
      EList<InputLoopNodesTable> inputLoopNodesTables=outputTree.getInputLoopNodesTables();
      for (      InputLoopNodesTable inputLoopTable : inputLoopNodesTables) {
        inputLoopTable.getInputloopnodes().remove(oldLoop);
      }
    }
  }
}

Fixed version (ground truth):
private void removeloopInOutputTree(List<TreeNode> oldLoops){
  boolean isMainInputMultiLoop=mapperManager.getMainInputTree() == null ? false : mapperManager.getMainInputTree().isMultiLoops();
  EList<OutputXmlTree> outputTrees=mapperManager.getCopyOfMapData().getOutputTrees();
  for (  OutputXmlTree outputTree : outputTrees) {
    if (isMainInputMultiLoop) {
      for (      TreeNode oldLoop : oldLoops) {
        EList<InputLoopNodesTable> inputLoopNodesTables=outputTree.getInputLoopNodesTables();
        for (        InputLoopNodesTable inputLoopTable : inputLoopNodesTables) {
          inputLoopTable.getInputloopnodes().remove(oldLoop);
        }
      }
      mapperManager.getProblemsAnalyser().checkProblems(outputTree);
    }
 else {
      outputTree.getInputLoopNodesTables().clear();
    }
  }
}
Program: 122273
Project: 122273
Buggy source:
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  return returnedValue;
}

Fixed version (ground truth):
@Override public Object getOriginalTypedValue(CellEditor cellEditor,Object cellEditorTypedValue){
  Object returnedValue=null;
  if (cellEditorTypedValue != null && cellEditorTypedValue instanceof Integer) {
    int index=(Integer)cellEditorTypedValue;
    String[] namesSet=((CCombo)cellEditor.getControl()).getItems();
    if (namesSet.length > 0 && index > -1 && index < namesSet.length) {
      returnedValue=namesSet[index];
    }
 else {
      returnedValue=null;
    }
  }
 else {
    returnedValue=null;
  }
  IElementParameter rootParameter=element.getElementParameter("String_Node_Str");
  List<Map<String,String>> rootValue=(List<Map<String,String>>)rootParameter.getValue();
  for (int i=0; i < rootValue.size(); i++) {
    Map<String,String> map=(Map<String,String>)rootValue.get(i);
    String columnName=map.get("String_Node_Str");
    String split[]=columnName.split("String_Node_Str");
    if (split.length == 2 && !returnedValue.equals("String_Node_Str")) {
      String newName=returnedValue + "String_Node_Str" + split[1];
      map.put("String_Node_Str",newName);
    }
 else     if (split.length == 1 && !returnedValue.equals("String_Node_Str")) {
      String newName=(String)returnedValue;
      map.put("String_Node_Str",newName);
    }
  }
  return returnedValue;
}
Program: 122275
Project: 122275
Buggy source:
public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {
  DateFormat df=new SimpleDateFormat("String_Node_Str");
  String requestTimestamp=df.format(Calendar.getInstance().getTime());
  String stringToEncrypt=requestTimestamp + clientAccessID;
  String signature=Signature.hmac_sha1(stringToEncrypt,secretKey);
  QName authenticationHeaderName=new QName("String_Node_Str","String_Node_Str","String_Node_Str");
  SOAPHeaderElement authenticationHeader=new SOAPHeaderElement(authenticationHeaderName);
  authenticationHeader.setActor(null);
  authenticationHeader.setMustUnderstand(false);
  authenticationHeader.setEnvelope(new SOAPEnvelope());
  authenticationHeader.addAttribute(SOAPFactory.newInstance().createName("String_Node_Str"),"String_Node_Str");
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(clientAccessID);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(signature);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(requestTimestamp);
  _call.addHeader(authenticationHeader);
}

Fixed version (ground truth):
public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {
  String requestTimestamp=formatAsW3C(Calendar.getInstance().getTime());
  String stringToEncrypt=requestTimestamp + clientAccessID;
  String signature=Signature.hmac_sha1(stringToEncrypt,secretKey);
  QName authenticationHeaderName=new QName("String_Node_Str","String_Node_Str","String_Node_Str");
  SOAPHeaderElement authenticationHeader=new SOAPHeaderElement(authenticationHeaderName);
  authenticationHeader.setActor(null);
  authenticationHeader.setMustUnderstand(false);
  authenticationHeader.setEnvelope(new SOAPEnvelope());
  authenticationHeader.addAttribute(SOAPFactory.newInstance().createName("String_Node_Str"),"String_Node_Str");
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(clientAccessID);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(signature);
  authenticationHeader.addChildElement("String_Node_Str").addTextNode(requestTimestamp);
  _call.addHeader(authenticationHeader);
}
Program: 122283
Project: 122283
Buggy source:
public void startRow(int rowNum){
  row=new ArrayList<String>();
}

Fixed version (ground truth):
@Override public void startRow(int rowNum){
  row=new ArrayList<String>();
}
Program: 122284
Project: 122284
Buggy source:
public void endRow(){
  cache.writeData(row);
  row=null;
  if (stop) {
    throw new EnoughDataException("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void endRow(){
  cache.writeData(row);
  row=null;
  lastColumnIndex=-1;
  if (stop) {
    throw new EnoughDataException("String_Node_Str");
  }
}
Program: 122285
Project: 122285
Buggy source:
public void cell(String cellReference,String formattedValue){
  row.add(formattedValue);
}

Fixed version (ground truth):
@Override public void cell(String cellReference,String formattedValue){
  checkHasNullValue(cellReference);
  row.add(formattedValue);
}
Program: 122286
Project: 122286
Buggy source:
public void headerFooter(String text,boolean isHeader,String tagName){
}

Fixed version (ground truth):
@Override public void headerFooter(String text,boolean isHeader,String tagName){
}
Program: 122287
Project: 122287
Buggy source:
public void endSheet(){
}

Fixed version (ground truth):
@Override public void endSheet(){
}
Program: 122288
Project: 122288
Buggy source:
/** 
 * Added by Marvin Wang on Feb.1, 2012 for estimating if the file can be created. In win7 or other systems, have not the permission to create a file directly under system disk(like C:\).
 * @param disZipFileStr
 * @return
 */
private boolean canCreateNewFile(String disZipFileStr){
  boolean flag=true;
  File disZipFile=new File(disZipFileStr);
  if (!disZipFile.exists()) {
    try {
      disZipFile.createNewFile();
    }
 catch (    IOException e) {
      flag=false;
      ExceptionHandler.process(e);
    }
  }
  return flag;
}

Fixed version (ground truth):
/** 
 * Added by Marvin Wang on Feb.1, 2012 for estimating if the file can be created. In win7 or other systems, have not the permission to create a file directly under system disk(like C:\).
 * @param disZipFileStr
 * @return
 */
private boolean canCreateNewFile(String disZipFileStr){
  boolean flag=true;
  File disZipFile=new File(disZipFileStr);
  File parentFile=disZipFile.getParentFile();
  try {
    if (!parentFile.exists()) {
      parentFile.mkdirs();
    }
    if (!disZipFile.exists()) {
      disZipFile.createNewFile();
    }
  }
 catch (  IOException e) {
    flag=false;
    ExceptionHandler.process(e);
  }
  return flag;
}
Program: 122294
Project: 122294
Buggy source:
public WebServiceUI(Composite uiParent,WebServiceComponentMain webServiceMain,ConnectionItem connectionItem){
  super();
  this.uiParent=uiParent;
  this.webServiceDialog=webServiceMain.getDialog();
  this.webServiceManager=webServiceMain.getWebServiceManager();
  this.connector=webServiceMain.getWebServiceComponent();
  this.connection=(WSDLSchemaConnection)connectionItem.getConnection();
  URLValue=new String();
  initWebserviceUI();
  initInputMetaCopy();
  initOutputMetaCopy();
}

Fixed version (ground truth):
public WebServiceUI(Composite uiParent,WebServiceComponentMain webServiceMain,ConnectionItem connectionItem){
  super();
  this.uiParent=uiParent;
  this.webServiceDialog=webServiceMain.getDialog();
  this.webServiceManager=webServiceMain.getWebServiceManager();
  this.connector=webServiceMain.getWebServiceComponent();
  this.connection=(WSDLSchemaConnection)connectionItem.getConnection();
  this.connectionItem=connectionItem;
  URLValue=new String();
  initWebserviceUI();
  initInputMetaCopy();
  initOutputMetaCopy();
}