nus-yam/ex-repair huggingface dataset:
Program: 119263
Project: 119263
Buggy source:
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PROCESS));
  ERepositoryObjectType mrRepObjType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  list.addAll(loadRepViewObjectWithOtherTypes(mrRepObjType));
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PIG_UDF));
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    list.addAll(loadRepViewObjectWithOtherTypes(routeType));
  }
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.JOB_SCRIPT));
  return list;
}

Fixed version (ground truth):
@Override protected List<IRepositoryViewObject> loadRepViewObjectWithOtherTypes() throws PersistenceException {
  List<IRepositoryViewObject> list=new ArrayList<IRepositoryViewObject>();
  List<IRepositoryViewObject> processList=getAllProcessTypeObjectsWithoutCurrentType();
  if (processList != null && !processList.isEmpty()) {
    list.addAll(processList);
  }
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.PIG_UDF));
  ERepositoryObjectType routeType=ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str");
  if (routeType != null) {
    list.addAll(loadRepViewObjectWithOtherTypes(routeType));
  }
  list.addAll(loadRepViewObjectWithOtherTypes(ERepositoryObjectType.JOB_SCRIPT));
  return list;
}
Program: 119265
Project: 119265
Buggy source:
@Override public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty() && selection.size() == 1;
  if (canWork) {
    Object o=selection.getFirstElement();
    repositoryNode=(RepositoryNode)o;
switch (repositoryNode.getType()) {
case REPOSITORY_ELEMENT:
      if (repositoryNode.getObject().getRepositoryStatus() == ERepositoryStatus.DELETED) {
        canWork=false;
      }
    if (repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CONNECTIONS && repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CON_QUERY) {
      canWork=false;
    }
  if (canWork) {
    if (isUnderDBConnection(repositoryNode)) {
      DatabaseConnectionItem item=(DatabaseConnectionItem)repositoryNode.getObject().getProperty().getItem();
      DatabaseConnection dbConn=(DatabaseConnection)item.getConnection();
      String dbType=dbConn.getDatabaseType();
      if (EDatabaseTypeName.HIVE.getXmlName().equalsIgnoreCase(dbType) || EDatabaseTypeName.IMPALA.getXmlName().equalsIgnoreCase(dbType) || EDatabaseTypeName.HBASE.getXmlName().equalsIgnoreCase(dbType)) {
        canWork=false;
        break;
      }
    }
  }
break;
default :
canWork=false;
}
if (canWork && !isLastVersion(repositoryNode)) {
canWork=false;
}
}
setEnabled(canWork);
}

Fixed version (ground truth):
@Override public void init(TreeViewer viewer,IStructuredSelection selection){
  boolean canWork=!selection.isEmpty() && selection.size() == 1;
  if (canWork) {
    Object o=selection.getFirstElement();
    repositoryNode=(RepositoryNode)o;
switch (repositoryNode.getType()) {
case REPOSITORY_ELEMENT:
      if (repositoryNode.getObject().getRepositoryStatus() == ERepositoryStatus.DELETED) {
        canWork=false;
      }
    if (repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CONNECTIONS && repositoryNode.getObjectType() != ERepositoryObjectType.METADATA_CON_QUERY) {
      canWork=false;
    }
  if (canWork) {
    if (isUnderDBConnection(repositoryNode)) {
      DatabaseConnectionItem item=(DatabaseConnectionItem)repositoryNode.getObject().getProperty().getItem();
      DatabaseConnection dbConn=(DatabaseConnection)item.getConnection();
      String dbType=dbConn.getDatabaseType();
      if (EDatabaseTypeName.HIVE.getXmlName().equalsIgnoreCase(dbType) || EDatabaseTypeName.HBASE.getXmlName().equalsIgnoreCase(dbType)) {
        canWork=false;
        break;
      }
    }
  }
break;
default :
canWork=false;
}
if (canWork && !isLastVersion(repositoryNode)) {
canWork=false;
}
}
setEnabled(canWork);
}
Program: 119266
Project: 119266
Buggy source:
public void stop(BundleContext context) throws Exception {
  plugin=null;
  super.stop(context);
}

Fixed version (ground truth):
@Override public void stop(BundleContext context) throws Exception {
  plugin=null;
  super.stop(context);
}
Program: 119267
Project: 119267
Buggy source:
public static void log(String msg,Throwable e){
  ExceptionHandler.process(e);
}

Fixed version (ground truth):
public static void log(String msg,Throwable e){
  if (e instanceof SQLException) {
    if (isMethodNotSupportException(e)) {
      return;
    }
    CommonExceptionHandler.process(e,Priority.WARN);
  }
 else {
    CommonExceptionHandler.process(e);
  }
}
Program: 119268
Project: 119268
Buggy source:
public void start(BundleContext context) throws Exception {
  super.start(context);
}

Fixed version (ground truth):
@Override public void start(BundleContext context) throws Exception {
  super.start(context);
}
Program: 119269
Project: 119269
Buggy source:
private void generateParameters(Element parametersElement,List elementParameterList){
  List<IElementParameter> copyElementParameterList=new ArrayList(elementParameterList);
  if (elementParameterList != null && elementParameterList.size() != 0) {
    for (int j=0; j < elementParameterList.size(); j++) {
      IElementParameter elemparameter=(IElementParameter)elementParameterList.get(j);
      if ((!elemparameter.isShow(copyElementParameterList) && (!elemparameter.getName().equals(EParameterFieldType.SCHEMA_TYPE.getName()))) || elemparameter.getCategory().equals(EComponentCategory.VIEW) || elemparameter.getName().equals("String_Node_Str")|| elemparameter.getName().equals("String_Node_Str")|| elemparameter.getName().equals("String_Node_Str")) {
        continue;
      }
      Element columnElement=parametersElement.addElement("String_Node_Str");
      columnElement.addAttribute("String_Node_Str",HTMLDocUtils.checkString(elemparameter.getDisplayName()));
      Object eleObj=elemparameter.getValue();
      String value="String_Node_Str";
      if (eleObj != null) {
        value=eleObj.toString();
        if (elemparameter.getName().equals("String_Node_Str")) {
          columnElement.addCDATA(value);
        }
 else {
          columnElement.setText(value);
        }
      }
    }
  }
}

Fixed version (ground truth):
private void generateParameters(Element parametersElement,List elementParameterList){
  List<IElementParameter> copyElementParameterList=new ArrayList(elementParameterList);
  if (elementParameterList != null && elementParameterList.size() != 0) {
    for (int j=0; j < elementParameterList.size(); j++) {
      IElementParameter elemparameter=(IElementParameter)elementParameterList.get(j);
      if ((!elemparameter.isShow(copyElementParameterList) && (!elemparameter.getName().equals(EParameterFieldType.SCHEMA_TYPE.getName()))) || elemparameter.getCategory().equals(EComponentCategory.VIEW) || "String_Node_Str".equals(elemparameter.getName())|| "String_Node_Str".equals(elemparameter.getName())|| "String_Node_Str".equals(elemparameter.getName())) {
        continue;
      }
      Element columnElement=parametersElement.addElement("String_Node_Str");
      columnElement.addAttribute("String_Node_Str",HTMLDocUtils.checkString(elemparameter.getDisplayName()));
      Object eleObj=elemparameter.getValue();
      String value="String_Node_Str";
      if (eleObj != null) {
        value=eleObj.toString();
        if (elemparameter.getName().equals("String_Node_Str")) {
          columnElement.addCDATA(value);
        }
 else {
          columnElement.setText(value);
        }
      }
    }
  }
}
Program: 119270
Project: 119270
Buggy source:
protected static boolean checkIsDeactivated(NodeType nodeType){
  @SuppressWarnings("String_Node_Str") List<ElementParameterType> params=nodeType.getElementParameter();
  for (  ElementParameterType param : params) {
    if (param.getName().equals("String_Node_Str")) {
      return "String_Node_Str".equals(param.getValue());
    }
  }
  return false;
}

Fixed version (ground truth):
protected static boolean checkIsDeactivated(NodeType nodeType){
  @SuppressWarnings("String_Node_Str") List<ElementParameterType> params=nodeType.getElementParameter();
  for (  ElementParameterType param : params) {
    if ("String_Node_Str".equals(param.getName())) {
      return "String_Node_Str".equals(param.getValue());
    }
  }
  return false;
}
Program: 119271
Project: 119271
Buggy source:
public URL getHTMLFile(){
  String xmlFilepath=this.tempFolderPath + File.separatorChar + this.componentName+ IHTMLDocConstants.XML_FILE_SUFFIX;
  String htmlFilePath=this.tempFolderPath + File.separatorChar + this.componentName+ IHTMLDocConstants.HTML_FILE_SUFFIX;
  final Bundle b=Platform.getBundle(PluginUtils.PLUGIN_ID);
  URL xslFileUrl=null;
  try {
    xslFileUrl=FileLocator.toFileURL(FileLocator.find(b,new Path(IHTMLDocConstants.TROWGENERATOR_XSL_FILE_PATH),null));
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
  String xslFilePath=xslFileUrl.getPath();
  generateXMLInfo(getExternalNode());
  XMLHandler.generateXMLFile(tempFolderPath,xmlFilepath,document);
  HTMLHandler.generateHTMLFile(this.tempFolderPath,xslFilePath,xmlFilepath,htmlFilePath);
  File htmlFile=new File(htmlFilePath);
  if (htmlFile.exists()) {
    try {
      return htmlFile.toURL();
    }
 catch (    MalformedURLException e) {
      ExceptionHandler.process(e);
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public URL getHTMLFile(){
  String xmlFilepath=this.tempFolderPath + File.separatorChar + this.componentName+ IHTMLDocConstants.XML_FILE_SUFFIX;
  String htmlFilePath=this.tempFolderPath + File.separatorChar + this.componentName+ IHTMLDocConstants.HTML_FILE_SUFFIX;
  final Bundle b=Platform.getBundle(PluginUtils.PLUGIN_ID);
  URL xslFileUrl=null;
  try {
    xslFileUrl=FileLocator.toFileURL(FileLocator.find(b,new Path(IHTMLDocConstants.TROWGENERATOR_XSL_FILE_PATH),null));
  }
 catch (  IOException e) {
    ExceptionHandler.process(e);
  }
  String xslFilePath=xslFileUrl.getPath();
  generateXMLInfo(getExternalNode());
  XMLHandler.generateXMLFile(tempFolderPath,xmlFilepath,document);
  HTMLHandler.generateHTMLFile(this.tempFolderPath,xslFilePath,xmlFilepath,htmlFilePath);
  File htmlFile=new File(htmlFilePath);
  if (htmlFile.exists()) {
    try {
      return htmlFile.toURL();
    }
 catch (    MalformedURLException e) {
      ExceptionHandler.process(e);
    }
  }
  return null;
}
Program: 119272
Project: 119272
Buggy source:
public void setTempFolderPath(String tempFolderpath){
  this.tempFolderPath=tempFolderpath;
}

Fixed version (ground truth):
@Override public void setTempFolderPath(String tempFolderpath){
  this.tempFolderPath=tempFolderpath;
}
Program: 119273
Project: 119273
Buggy source:
private void generateParameters(Element parametersElement,List elementParameterList){
  List<IElementParameter> copyElementParameterList=new ArrayList(elementParameterList);
  if (elementParameterList != null && elementParameterList.size() != 0) {
    for (int j=0; j < elementParameterList.size(); j++) {
      IElementParameter elemparameter=(IElementParameter)elementParameterList.get(j);
      if ((!elemparameter.isShow(copyElementParameterList) && (!elemparameter.getName().equals(EParameterFieldType.SCHEMA_TYPE.getName()))) || elemparameter.getCategory().equals(EComponentCategory.VIEW) || elemparameter.getName().equals("String_Node_Str")|| elemparameter.getName().equals("String_Node_Str")|| elemparameter.getName().equals("String_Node_Str")) {
        continue;
      }
      Element columnElement=parametersElement.addElement("String_Node_Str");
      columnElement.addAttribute("String_Node_Str",HTMLDocUtils.checkString(elemparameter.getDisplayName()));
      Object eleObj=elemparameter.getValue();
      String value="String_Node_Str";
      if (eleObj != null) {
        value=eleObj.toString();
        if (elemparameter.getName().equals("String_Node_Str")) {
          columnElement.addCDATA(value);
        }
 else {
          columnElement.setText(value);
        }
      }
    }
  }
}

Fixed version (ground truth):
private void generateParameters(Element parametersElement,List elementParameterList){
  List<IElementParameter> copyElementParameterList=new ArrayList(elementParameterList);
  if (elementParameterList != null && elementParameterList.size() != 0) {
    for (int j=0; j < elementParameterList.size(); j++) {
      IElementParameter elemparameter=(IElementParameter)elementParameterList.get(j);
      if ((!elemparameter.isShow(copyElementParameterList) && (!elemparameter.getName().equals(EParameterFieldType.SCHEMA_TYPE.getName()))) || elemparameter.getCategory().equals(EComponentCategory.VIEW) || "String_Node_Str".equals(elemparameter.getName())|| "String_Node_Str".equals(elemparameter.getName())|| "String_Node_Str".equals(elemparameter.getName())) {
        continue;
      }
      Element columnElement=parametersElement.addElement("String_Node_Str");
      columnElement.addAttribute("String_Node_Str",HTMLDocUtils.checkString(elemparameter.getDisplayName()));
      Object eleObj=elemparameter.getValue();
      String value="String_Node_Str";
      if (eleObj != null) {
        value=eleObj.toString();
        if (elemparameter.getName().equals("String_Node_Str")) {
          columnElement.addCDATA(value);
        }
 else {
          columnElement.setText(value);
        }
      }
    }
  }
}
Program: 119274
Project: 119274
Buggy source:
public void setComponentName(String componentName){
  this.componentName=componentName;
}

Fixed version (ground truth):
@Override public void setComponentName(String componentName){
  this.componentName=componentName;
}
Program: 119275
Project: 119275
Buggy source:
protected static boolean checkIsDeactivated(NodeType nodeType){
  @SuppressWarnings("String_Node_Str") List<ElementParameterType> params=nodeType.getElementParameter();
  for (  ElementParameterType param : params) {
    if (param.getName().equals("String_Node_Str")) {
      return "String_Node_Str".equals(param.getValue());
    }
  }
  return false;
}

Fixed version (ground truth):
protected static boolean checkIsDeactivated(NodeType nodeType){
  @SuppressWarnings("String_Node_Str") List<ElementParameterType> params=nodeType.getElementParameter();
  for (  ElementParameterType param : params) {
    if ("String_Node_Str".equals(param.getName())) {
      return "String_Node_Str".equals(param.getValue());
    }
  }
  return false;
}
Program: 119278
Project: 119278
Buggy source:
private Command changeToBuildInCommand(Control control){
  final String typeName="String_Node_Str" + EParameterName.PROPERTY_TYPE.getName();
  if (curParameter != null) {
    String parentName=null;
    if (curParameter.getCategory() == EComponentCategory.EXTRA) {
      parentName=JobSettingsConstants.getExtraParameterName(EParameterName.PROPERTY_TYPE.getName());
    }
 else     if (curParameter.getCategory() == EComponentCategory.STATSANDLOGS) {
      parentName=EParameterName.PROPERTY_TYPE.getName();
    }
    if (parentName != null) {
      return new ChangeValuesFromRepository(elem,null,parentName + typeName,EmfComponent.BUILTIN);
    }
  }
  return new ChangeValuesFromRepository(elem,null,UpgradeParameterHelper.PROPERTY + typeName,EmfComponent.BUILTIN);
}

Fixed version (ground truth):
private Command changeToBuildInCommand(Control control){
  final String typeName="String_Node_Str" + EParameterName.PROPERTY_TYPE.getName();
  if (curParameter != null) {
    String parentName=null;
    if (curParameter.getCategory() == EComponentCategory.EXTRA) {
      parentName=JobSettingsConstants.getExtraParameterName(EParameterName.PROPERTY_TYPE.getName());
    }
 else     if (curParameter.getCategory() == EComponentCategory.STATSANDLOGS) {
      parentName=EParameterName.PROPERTY_TYPE.getName();
    }
    if (parentName != null) {
      return new ChangeValuesFromRepository(elem,null,parentName + typeName,EmfComponent.BUILTIN);
    }
  }
  Object objProperty=control.getData(PARAMETER_NAME);
  String property=null;
  if (objProperty != null && elem != null) {
    String curSubParam=objProperty.toString().trim();
    if (!curSubParam.isEmpty()) {
      IElementParameter iElementParam=elem.getElementParameter(curSubParam);
      if (iElementParam != null) {
        property=iElementParam.getRepositoryProperty();
      }
    }
  }
  if (property == null || property.trim().isEmpty()) {
    property=UpgradeParameterHelper.PROPERTY;
  }
  return new ChangeValuesFromRepository(elem,null,property + typeName,EmfComponent.BUILTIN);
}
Program: 119279
Project: 119279
Buggy source:
@Before public void importEeDemo() throws Exception {
  initDemo(BIG_DATA_EE_DEMO_PLUGIN_ID);
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  eeResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(eeResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(eeResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),eeResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}

Fixed version (ground truth):
@Before public void importEeDemo() throws Exception {
  initDemo(BIG_DATA_EE_DEMO_PLUGIN_ID);
  Assert.assertNotNull(currentDemo);
  initTestPaths();
  initTempPro();
  eeResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(eeResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(eeResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),eeResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}
Program: 119280
Project: 119280
Buggy source:
@Before public void importCeDemo() throws Exception {
  initDemo(BIG_DATA_CE_DEMO_PLUGIN_ID);
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  ceResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(ceResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(ceResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),ceResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}

Fixed version (ground truth):
@Before public void importCeDemo() throws Exception {
  initDemo(BIG_DATA_CE_DEMO_PLUGIN_ID);
  if (currentDemo == null) {
    return;
  }
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  ceResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(ceResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(ceResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),ceResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}
Program: 119281
Project: 119281
Buggy source:
protected void initTempPro() throws PersistenceException, CoreException, LoginException {
  createTempDemoProject(demoName);
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  originalProject=repositoryContext.getProject();
  ProxyRepositoryFactory.getInstance().logOnProject(tempDemoProject,new NullProgressMonitor());
  initDQStructure();
  repositoryContext.setProject(tempDemoProject);
}

Fixed version (ground truth):
protected void initTempPro() throws PersistenceException, CoreException, LoginException {
  if (currentDemo == null) {
    return;
  }
  createTempDemoProject(demoName);
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  originalProject=repositoryContext.getProject();
  ProxyRepositoryFactory.getInstance().logOnProject(tempDemoProject,new NullProgressMonitor());
  initDQStructure();
  repositoryContext.setProject(tempDemoProject);
}
Program: 119282
Project: 119282
Buggy source:
protected void initTestPaths(){
  String demoProjectPath=currentDemo.getDemoProjectFilePath();
  IPath path=new Path(demoProjectPath);
  path.lastSegment();
  if (currentDemo.getDemoProjectFileType().equals(EDemoProjectFileType.ARCHIVE)) {
    demoName=path.lastSegment().substring(0,path.lastSegment().lastIndexOf("String_Node_Str"));
  }
 else {
    demoName=path.lastSegment();
  }
  processItemPath=new Path("String_Node_Str");
  connectionItemPath=new Path("String_Node_Str");
  routineItemPath=new Path("String_Node_Str");
  contextItemPath=new Path("String_Node_Str");
  bussniessProcessPath=new Path("String_Node_Str");
  sqlPatternPath=new Path("String_Node_Str");
  documentionPath=new Path("String_Node_Str");
  processMrPath=new Path("String_Node_Str");
  tdqProfilingAnaPath=new Path("String_Node_Str");
  tdqProfilingRepPath=new Path("String_Node_Str");
  tdqLibrariesRuleSqlPath=new Path("String_Node_Str");
  tdqLibrariesPatternPath=new Path("String_Node_Str");
  routesItemPath=new Path("String_Node_Str");
  routeResourcePath=new Path("String_Node_Str");
  servicesItemPath=new Path("String_Node_Str");
  mdmDatacontainerPath=new Path("String_Node_Str");
  mdmDataModelath=new Path("String_Node_Str");
  mdmResourcePath=new Path("String_Node_Str");
  mdmRolePath=new Path("String_Node_Str");
  mdmRoutingrulePath=new Path("String_Node_Str");
  mdmTransformerV2Path=new Path("String_Node_Str");
  mdmViewPath=new Path("String_Node_Str");
  mdmWorkflowPath=new Path("String_Node_Str");
}

Fixed version (ground truth):
protected void initTestPaths(){
  if (currentDemo == null) {
    return;
  }
  String demoProjectPath=currentDemo.getDemoProjectFilePath();
  IPath path=new Path(demoProjectPath);
  path.lastSegment();
  if (currentDemo.getDemoProjectFileType().equals(EDemoProjectFileType.ARCHIVE)) {
    demoName=path.lastSegment().substring(0,path.lastSegment().lastIndexOf("String_Node_Str"));
  }
 else {
    demoName=path.lastSegment();
  }
  processItemPath=new Path("String_Node_Str");
  connectionItemPath=new Path("String_Node_Str");
  routineItemPath=new Path("String_Node_Str");
  contextItemPath=new Path("String_Node_Str");
  bussniessProcessPath=new Path("String_Node_Str");
  sqlPatternPath=new Path("String_Node_Str");
  documentionPath=new Path("String_Node_Str");
  processMrPath=new Path("String_Node_Str");
  tdqProfilingAnaPath=new Path("String_Node_Str");
  tdqProfilingRepPath=new Path("String_Node_Str");
  tdqLibrariesRuleSqlPath=new Path("String_Node_Str");
  tdqLibrariesPatternPath=new Path("String_Node_Str");
  routesItemPath=new Path("String_Node_Str");
  routeResourcePath=new Path("String_Node_Str");
  servicesItemPath=new Path("String_Node_Str");
  mdmDatacontainerPath=new Path("String_Node_Str");
  mdmDataModelath=new Path("String_Node_Str");
  mdmResourcePath=new Path("String_Node_Str");
  mdmRolePath=new Path("String_Node_Str");
  mdmRoutingrulePath=new Path("String_Node_Str");
  mdmTransformerV2Path=new Path("String_Node_Str");
  mdmViewPath=new Path("String_Node_Str");
  mdmWorkflowPath=new Path("String_Node_Str");
}
Program: 119285
Project: 119285
Buggy source:
protected Iterator getSelectedResourcesIterator(){
  return resourceGroup.getAllCheckedListItems().iterator();
}

Fixed version (ground truth):
@Override protected Iterator getSelectedResourcesIterator(){
  return resourceGroup.getAllCheckedListItems().iterator();
}
Program: 119286
Project: 119286
Buggy source:
public void widgetSelected(SelectionEvent e){
  resourceGroup.setAllSelections(false);
  updateWidgetEnablements();
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  resourceGroup.setAllSelections(false);
  updateWidgetEnablements();
}
Program: 119287
Project: 119287
Buggy source:
protected void setupBasedOnInitialSelections(){
  Iterator it=initialResourceSelection.iterator();
  while (it.hasNext()) {
    IResource currentResource=(IResource)it.next();
    if (currentResource.getType() == IResource.FILE) {
      resourceGroup.initialCheckListItem(currentResource);
    }
 else {
      resourceGroup.initialCheckTreeItem(currentResource);
    }
  }
}

Fixed version (ground truth):
@Override protected void setupBasedOnInitialSelections(){
  Iterator it=initialResourceSelection.iterator();
  while (it.hasNext()) {
    IResource currentResource=(IResource)it.next();
    if (currentResource.getType() == IResource.FILE) {
      resourceGroup.initialCheckListItem(currentResource);
    }
 else {
      resourceGroup.initialCheckTreeItem(currentResource);
    }
  }
}
Program: 119288
Project: 119288
Buggy source:
private ITreeContentProvider getResourceProvider(final int resourceType){
  return new WorkbenchContentProvider(){
    public Object[] getChildren(    Object o){
      if (o instanceof IContainer) {
        IResource[] members=null;
        try {
          members=((IContainer)o).members();
        }
 catch (        CoreException e) {
          return new Object[0];
        }
        ArrayList results=new ArrayList();
        for (int i=0; i < members.length; i++) {
          if ((members[i].getType() & resourceType) > 0) {
            results.add(members[i]);
          }
        }
        return results.toArray();
      }
      if (o instanceof ArrayList) {
        return ((ArrayList)o).toArray();
      }
      return new Object[0];
    }
  }
;
}

Fixed version (ground truth):
private ITreeContentProvider getResourceProvider(final int resourceType){
  return new WorkbenchContentProvider(){
    @Override public Object[] getChildren(    Object o){
      if (o instanceof IContainer) {
        IResource[] members=null;
        try {
          members=((IContainer)o).members();
        }
 catch (        CoreException e) {
          return new Object[0];
        }
        ArrayList results=new ArrayList();
        for (        IResource member : members) {
          if ((member.getType() & resourceType) > 0) {
            results.add(member);
          }
        }
        return results.toArray();
      }
      if (o instanceof ArrayList) {
        return ((ArrayList)o).toArray();
      }
      return new Object[0];
    }
  }
;
}
Program: 119289
Project: 119289
Buggy source:
public void run(){
  List resourcesToExport=getWhiteCheckedResources();
  boolean r=executeExportOperation(new ArchiveFileExportOperation(null,resourcesToExport,getDestinationValue()));
  results.add(r);
}

Fixed version (ground truth):
@Override public void run(){
  List resourcesToExport=getWhiteCheckedResources();
  boolean r=executeExportOperation(new ArchiveFileExportOperation(null,resourcesToExport,getDestinationValue()));
  results.add(r);
}
Program: 119290
Project: 119290
Buggy source:
protected void myCreateResourcesGroup(Composite parent){
  List<String> notExportProjects=Arrays.asList(GeneralParametersProvider.getStrings(GeneralParameters.PROJECTS_EXCLUDED_FROM_EXPORT));
  List input=new ArrayList();
  IProject[] projects=ResourcesPlugin.getWorkspace().getRoot().getProjects();
  for (int i=0; i < projects.length; i++) {
    if (projects[i].isOpen() && !notExportProjects.contains(projects[i].getName())) {
      input.add(projects[i]);
    }
  }
  resourceGroup=new ResourceTreeAndListGroup(parent,input,getResourceProvider(IResource.FOLDER | IResource.PROJECT),WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(),getResourceProvider(IResource.FILE),WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(),SWT.NONE,inRegularFontMode(parent));
  ICheckStateListener listener=new ICheckStateListener(){
    public void checkStateChanged(    CheckStateChangedEvent event){
      updateWidgetEnablements();
    }
  }
;
  resourceGroup.addCheckStateListener(listener);
}

Fixed version (ground truth):
protected void myCreateResourcesGroup(Composite parent){
  List<String> notExportProjects=Arrays.asList(GeneralParametersProvider.getStrings(GeneralParameters.PROJECTS_EXCLUDED_FROM_EXPORT));
  List input=new ArrayList();
  IProject[] projects=ResourcesPlugin.getWorkspace().getRoot().getProjects();
  for (int i=0; i < projects.length; i++) {
    if (projects[i].isOpen() && !notExportProjects.contains(projects[i].getName())) {
      input.add(projects[i]);
    }
  }
  resourceGroup=new ResourceTreeAndListGroup(parent,input,getResourceProvider(IResource.FOLDER | IResource.PROJECT),WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(),getResourceProvider(IResource.FILE),WorkbenchLabelProvider.getDecoratingWorkbenchLabelProvider(),SWT.NONE,inRegularFontMode(parent));
  ICheckStateListener listener=new ICheckStateListener(){
    @Override public void checkStateChanged(    CheckStateChangedEvent event){
      updateWidgetEnablements();
    }
  }
;
  resourceGroup.addCheckStateListener(listener);
}
Program: 119292
Project: 119292
Buggy source:
public Object[] getChildren(Object o){
  if (o instanceof IContainer) {
    IResource[] members=null;
    try {
      members=((IContainer)o).members();
    }
 catch (    CoreException e) {
      return new Object[0];
    }
    ArrayList results=new ArrayList();
    for (int i=0; i < members.length; i++) {
      if ((members[i].getType() & resourceType) > 0) {
        results.add(members[i]);
      }
    }
    return results.toArray();
  }
  if (o instanceof ArrayList) {
    return ((ArrayList)o).toArray();
  }
  return new Object[0];
}

Fixed version (ground truth):
@Override public Object[] getChildren(Object o){
  if (o instanceof IContainer) {
    IResource[] members=null;
    try {
      members=((IContainer)o).members();
    }
 catch (    CoreException e) {
      return new Object[0];
    }
    ArrayList results=new ArrayList();
    for (    IResource member : members) {
      if ((member.getType() & resourceType) > 0) {
        results.add(member);
      }
    }
    return results.toArray();
  }
  if (o instanceof ArrayList) {
    return ((ArrayList)o).toArray();
  }
  return new Object[0];
}
Program: 119293
Project: 119293
Buggy source:
public boolean finish(){
  List resourcesToExport=getWhiteCheckedResources();
  if (!ensureTargetIsValid()) {
    return false;
  }
  saveDirtyEditors();
  saveWidgetValues();
  final List results=new ArrayList(1);
  CoreRuntimePlugin.getInstance().getProxyRepositoryFactory().executeRepositoryWorkUnit(new RepositoryWorkUnit("String_Node_Str"){
    protected void run() throws LoginException, PersistenceException {
      try {
        ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE,null);
      }
 catch (      CoreException e) {
        ExceptionHandler.process(e);
      }
      Display.getCurrent().syncExec(new Runnable(){
        public void run(){
          List resourcesToExport=getWhiteCheckedResources();
          boolean r=executeExportOperation(new ArchiveFileExportOperation(null,resourcesToExport,getDestinationValue()));
          results.add(r);
        }
      }
);
    }
  }
);
  return results.size() == 1;
}

Fixed version (ground truth):
@Override public boolean finish(){
  List resourcesToExport=getWhiteCheckedResources();
  if (!ensureTargetIsValid()) {
    return false;
  }
  saveDirtyEditors();
  saveWidgetValues();
  final List results=new ArrayList(1);
  CoreRuntimePlugin.getInstance().getProxyRepositoryFactory().executeRepositoryWorkUnit(new RepositoryWorkUnit("String_Node_Str"){
    @Override protected void run() throws LoginException, PersistenceException {
      try {
        ResourcesPlugin.getWorkspace().getRoot().refreshLocal(IResource.DEPTH_INFINITE,null);
      }
 catch (      CoreException e) {
        ExceptionHandler.process(e);
      }
      Display.getCurrent().syncExec(new Runnable(){
        @Override public void run(){
          List resourcesToExport=getWhiteCheckedResources();
          boolean r=executeExportOperation(new ArchiveFileExportOperation(null,resourcesToExport,getDestinationValue()));
          results.add(r);
        }
      }
);
    }
  }
);
  return results.size() == 1;
}
Program: 119294
Project: 119294
Buggy source:
public void checkStateChanged(CheckStateChangedEvent event){
  updateWidgetEnablements();
}

Fixed version (ground truth):
@Override public void checkStateChanged(CheckStateChangedEvent event){
  updateWidgetEnablements();
}
Program: 119295
Project: 119295
Buggy source:
protected List getWhiteCheckedResources(){
  return resourceGroup.getAllWhiteCheckedItems();
}

Fixed version (ground truth):
@Override protected List getWhiteCheckedResources(){
  return resourceGroup.getAllWhiteCheckedItems();
}
Program: 119296
Project: 119296
Buggy source:
public void createControl(Composite parent){
  initializeDialogUnits(parent);
  Composite composite=new Composite(parent,SWT.NULL);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
  composite.setFont(parent.getFont());
  myCreateResourcesGroup(composite);
  myCreateButtonsGroup(composite);
  createDestinationGroup(composite);
  createOptionsGroup(composite);
  restoreResourceSpecificationWidgetValues();
  restoreWidgetValues();
  if (initialResourceSelection != null) {
    setupBasedOnInitialSelections();
  }
  updateWidgetEnablements();
  setPageComplete(determinePageCompletion());
  setErrorMessage(null);
  setControl(composite);
  giveFocusToDestination();
  PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),IDataTransferHelpContextIds.ZIP_FILE_EXPORT_WIZARD_PAGE);
}

Fixed version (ground truth):
@Override public void createControl(Composite parent){
  initializeDialogUnits(parent);
  Composite composite=new Composite(parent,SWT.NULL);
  composite.setLayout(new GridLayout());
  composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL | GridData.HORIZONTAL_ALIGN_FILL));
  composite.setFont(parent.getFont());
  myCreateResourcesGroup(composite);
  myCreateButtonsGroup(composite);
  createDestinationGroup(composite);
  createOptionsGroup(composite);
  restoreResourceSpecificationWidgetValues();
  restoreWidgetValues();
  if (initialResourceSelection != null) {
    setupBasedOnInitialSelections();
  }
  updateWidgetEnablements();
  setPageComplete(determinePageCompletion());
  setErrorMessage(null);
  setControl(composite);
  giveFocusToDestination();
  PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),IDataTransferHelpContextIds.ZIP_FILE_EXPORT_WIZARD_PAGE);
}
Program: 119297
Project: 119297
Buggy source:
@Before public void importEeDemo() throws Exception {
  initDemo(BIG_DATA_EE_DEMO_PLUGIN_ID);
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  eeResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(eeResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(eeResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),eeResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}

Fixed version (ground truth):
@Before public void importEeDemo() throws Exception {
  initDemo(BIG_DATA_EE_DEMO_PLUGIN_ID);
  Assert.assertNotNull(currentDemo);
  initTestPaths();
  initTempPro();
  eeResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(eeResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(eeResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),eeResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}
Program: 119298
Project: 119298
Buggy source:
@Before public void importCeDemo() throws Exception {
  initDemo(BIG_DATA_CE_DEMO_PLUGIN_ID);
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  ceResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(ceResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(ceResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),ceResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}

Fixed version (ground truth):
@Before public void importCeDemo() throws Exception {
  initDemo(BIG_DATA_CE_DEMO_PLUGIN_ID);
  if (currentDemo == null) {
    return;
  }
  initTestPaths();
  initTempPro();
  Assert.assertNotNull(currentDemo);
  ceResManager=DemoImportTestUtil.getResourceManager(currentDemo);
  Assert.assertNotNull(ceResManager);
  ImportExportHandlersManager importManager=new ImportExportHandlersManager();
  List<ImportItem> projectRecords=importManager.populateImportingItems(ceResManager,true,new NullProgressMonitor());
  Assert.assertTrue(projectRecords.size() > 0);
  importManager.importItemRecords(new NullProgressMonitor(),ceResManager,projectRecords,true,projectRecords.toArray(new ImportItem[0]),null);
}
Program: 119299
Project: 119299
Buggy source:
protected void initTempPro() throws PersistenceException, CoreException, LoginException {
  createTempDemoProject(demoName);
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  originalProject=repositoryContext.getProject();
  ProxyRepositoryFactory.getInstance().logOnProject(tempDemoProject,new NullProgressMonitor());
  initDQStructure();
  repositoryContext.setProject(tempDemoProject);
}

Fixed version (ground truth):
protected void initTempPro() throws PersistenceException, CoreException, LoginException {
  if (currentDemo == null) {
    return;
  }
  createTempDemoProject(demoName);
  Context ctx=CoreRuntimePlugin.getInstance().getContext();
  RepositoryContext repositoryContext=(RepositoryContext)ctx.getProperty(Context.REPOSITORY_CONTEXT_KEY);
  originalProject=repositoryContext.getProject();
  ProxyRepositoryFactory.getInstance().logOnProject(tempDemoProject,new NullProgressMonitor());
  initDQStructure();
  repositoryContext.setProject(tempDemoProject);
}
Program: 119300
Project: 119300
Buggy source:
protected void initTestPaths(){
  String demoProjectPath=currentDemo.getDemoProjectFilePath();
  IPath path=new Path(demoProjectPath);
  path.lastSegment();
  if (currentDemo.getDemoProjectFileType().equals(EDemoProjectFileType.ARCHIVE)) {
    demoName=path.lastSegment().substring(0,path.lastSegment().lastIndexOf("String_Node_Str"));
  }
 else {
    demoName=path.lastSegment();
  }
  processItemPath=new Path("String_Node_Str");
  connectionItemPath=new Path("String_Node_Str");
  routineItemPath=new Path("String_Node_Str");
  contextItemPath=new Path("String_Node_Str");
  bussniessProcessPath=new Path("String_Node_Str");
  sqlPatternPath=new Path("String_Node_Str");
  documentionPath=new Path("String_Node_Str");
  processMrPath=new Path("String_Node_Str");
  tdqProfilingAnaPath=new Path("String_Node_Str");
  tdqProfilingRepPath=new Path("String_Node_Str");
  tdqLibrariesRuleSqlPath=new Path("String_Node_Str");
  tdqLibrariesPatternPath=new Path("String_Node_Str");
  routesItemPath=new Path("String_Node_Str");
  routeResourcePath=new Path("String_Node_Str");
  servicesItemPath=new Path("String_Node_Str");
  mdmDatacontainerPath=new Path("String_Node_Str");
  mdmDataModelath=new Path("String_Node_Str");
  mdmResourcePath=new Path("String_Node_Str");
  mdmRolePath=new Path("String_Node_Str");
  mdmRoutingrulePath=new Path("String_Node_Str");
  mdmTransformerV2Path=new Path("String_Node_Str");
  mdmViewPath=new Path("String_Node_Str");
  mdmWorkflowPath=new Path("String_Node_Str");
}

Fixed version (ground truth):
protected void initTestPaths(){
  if (currentDemo == null) {
    return;
  }
  String demoProjectPath=currentDemo.getDemoProjectFilePath();
  IPath path=new Path(demoProjectPath);
  path.lastSegment();
  if (currentDemo.getDemoProjectFileType().equals(EDemoProjectFileType.ARCHIVE)) {
    demoName=path.lastSegment().substring(0,path.lastSegment().lastIndexOf("String_Node_Str"));
  }
 else {
    demoName=path.lastSegment();
  }
  processItemPath=new Path("String_Node_Str");
  connectionItemPath=new Path("String_Node_Str");
  routineItemPath=new Path("String_Node_Str");
  contextItemPath=new Path("String_Node_Str");
  bussniessProcessPath=new Path("String_Node_Str");
  sqlPatternPath=new Path("String_Node_Str");
  documentionPath=new Path("String_Node_Str");
  processMrPath=new Path("String_Node_Str");
  tdqProfilingAnaPath=new Path("String_Node_Str");
  tdqProfilingRepPath=new Path("String_Node_Str");
  tdqLibrariesRuleSqlPath=new Path("String_Node_Str");
  tdqLibrariesPatternPath=new Path("String_Node_Str");
  routesItemPath=new Path("String_Node_Str");
  routeResourcePath=new Path("String_Node_Str");
  servicesItemPath=new Path("String_Node_Str");
  mdmDatacontainerPath=new Path("String_Node_Str");
  mdmDataModelath=new Path("String_Node_Str");
  mdmResourcePath=new Path("String_Node_Str");
  mdmRolePath=new Path("String_Node_Str");
  mdmRoutingrulePath=new Path("String_Node_Str");
  mdmTransformerV2Path=new Path("String_Node_Str");
  mdmViewPath=new Path("String_Node_Str");
  mdmWorkflowPath=new Path("String_Node_Str");
}
Program: 119301
Project: 119301
Buggy source:
private Command changeToBuildInCommand(Control control){
  final String typeName="String_Node_Str" + EParameterName.PROPERTY_TYPE.getName();
  if (curParameter != null) {
    String parentName=null;
    if (curParameter.getCategory() == EComponentCategory.EXTRA) {
      parentName=JobSettingsConstants.getExtraParameterName(EParameterName.PROPERTY_TYPE.getName());
    }
 else     if (curParameter.getCategory() == EComponentCategory.STATSANDLOGS) {
      parentName=EParameterName.PROPERTY_TYPE.getName();
    }
    if (parentName != null) {
      return new ChangeValuesFromRepository(elem,null,parentName + typeName,EmfComponent.BUILTIN);
    }
  }
  return new ChangeValuesFromRepository(elem,null,UpgradeParameterHelper.PROPERTY + typeName,EmfComponent.BUILTIN);
}

Fixed version (ground truth):
private Command changeToBuildInCommand(Control control){
  final String typeName="String_Node_Str" + EParameterName.PROPERTY_TYPE.getName();
  if (curParameter != null) {
    String parentName=null;
    if (curParameter.getCategory() == EComponentCategory.EXTRA) {
      parentName=JobSettingsConstants.getExtraParameterName(EParameterName.PROPERTY_TYPE.getName());
    }
 else     if (curParameter.getCategory() == EComponentCategory.STATSANDLOGS) {
      parentName=EParameterName.PROPERTY_TYPE.getName();
    }
    if (parentName != null) {
      return new ChangeValuesFromRepository(elem,null,parentName + typeName,EmfComponent.BUILTIN);
    }
  }
  Object objProperty=control.getData(PARAMETER_NAME);
  String property=null;
  if (objProperty != null && elem != null) {
    String curSubParam=objProperty.toString().trim();
    if (!curSubParam.isEmpty()) {
      IElementParameter iElementParam=elem.getElementParameter(curSubParam);
      if (iElementParam != null) {
        property=iElementParam.getRepositoryProperty();
      }
    }
  }
  if (property == null || property.trim().isEmpty()) {
    property=UpgradeParameterHelper.PROPERTY;
  }
  return new ChangeValuesFromRepository(elem,null,property + typeName,EmfComponent.BUILTIN);
}
Program: 119302
Project: 119302
Buggy source:
@Override public ExecutionResult execute(Item item){
  if (item instanceof DatabaseConnectionItem) {
    Connection connection=((DatabaseConnectionItem)item).getConnection();
    if (connection instanceof DatabaseConnection) {
      DatabaseConnection dbConn=(DatabaseConnection)connection;
      try {
        if (!dbConn.isContextMode()) {
          String pass=dbConn.getPassword();
          String rawPass=PasswordEncryptUtil.decryptPassword(pass);
          dbConn.setRawPassword(rawPass);
          factory.save(item,true);
          return ExecutionResult.SUCCESS_NO_ALERT;
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.NOTHING_TO_DO;
}

Fixed version (ground truth):
@Override public ExecutionResult execute(Item item){
  if (item instanceof DatabaseConnectionItem) {
    Connection connection=((DatabaseConnectionItem)item).getConnection();
    if (connection instanceof DatabaseConnection) {
      DatabaseConnection dbConn=(DatabaseConnection)connection;
      try {
        if (!dbConn.isContextMode()) {
          String pass=dbConn.getPassword();
          String rawPass=null;
          try {
            rawPass=PasswordEncryptUtil.decryptPassword(pass);
          }
 catch (          Exception e) {
            rawPass=ConnectionHelper.getDecryptPassword(pass);
          }
          dbConn.setRawPassword(rawPass);
          factory.save(item,true);
          return ExecutionResult.SUCCESS_NO_ALERT;
        }
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        return ExecutionResult.FAILURE;
      }
    }
  }
  return ExecutionResult.NOTHING_TO_DO;
}
Program: 119304
Project: 119304
Buggy source:
private void refreshMR(String propName){
  if (!(elem instanceof Node)) {
    return;
  }
  Node node=(Node)elem;
  if (!node.isMapReduce()) {
    return;
  }
  if (!propName.equals("String_Node_Str") && !propName.equals("String_Node_Str") && !propName.equals(EParameterName.GROUPBYS.getName())) {
    return;
  }
  ((IProcess2)node.getProcess()).getGeneratingNodes();
  node.refreshNodeContainer();
}

Fixed version (ground truth):
private void refreshMR(String propName){
  if (elem instanceof Node) {
    Node node=(Node)elem;
    if (!node.isMapReduce()) {
      return;
    }
    if (!propName.equals("String_Node_Str") && !propName.equals("String_Node_Str") && !propName.equals(EParameterName.GROUPBYS.getName())) {
      return;
    }
    ((IProcess2)node.getProcess()).getGeneratingNodes();
    node.refreshNodeContainer();
  }
 else   if (elem instanceof IProcess2) {
    IProcess2 process=(IProcess2)elem;
    for (    INode inode : process.getGraphicalNodes()) {
      Node node=(Node)inode;
      if (!node.isMapReduceStart()) {
        return;
      }
      if (!propName.equals("String_Node_Str")) {
        return;
      }
      node.refreshNodeContainer();
    }
  }
}
Program: 119306
Project: 119306
Buggy source:
@Override public void metadataInputChanged(IODataComponent dataComponent,String connectionToApply){
  if (dataComponent == null) {
    return;
  }
  super.metadataInputChanged(dataComponent,connectionToApply);
  IMetadataTable connMetadataTable=dataComponent.getConnMetadataTable();
  IMetadataTable newMetadataTable=dataComponent.getNewMetadataTable();
  if (connMetadataTable == null || newMetadataTable == null) {
    return;
  }
  if (connMetadataTable.getListColumns().size() != newMetadataTable.getListColumns().size()) {
    inputMetadataColumnAmountChanged(dataComponent,this.getExternalNode());
  }
}

Fixed version (ground truth):
@Override public void metadataInputChanged(IODataComponent dataComponent,String connectionToApply){
  if (dataComponent == null) {
    return;
  }
  super.metadataInputChanged(dataComponent,connectionToApply);
  IMetadataTable connMetadataTable=dataComponent.getConnMetadataTable();
  IMetadataTable newMetadataTable=dataComponent.getNewMetadataTable();
  if (connMetadataTable == null || newMetadataTable == null) {
    return;
  }
  inputMetadataColumnAmountChanged(dataComponent,this.getExternalNode());
}