nus-yam/ex-repair huggingface dataset:
Program: 119146
Project: 119146
Buggy source:
protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  ERepositoryObjectType contentType=node.getContentType();
  if (contentType != null) {
    if (contentType == ERepositoryObjectType.PROCESS) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.SVN_ROOT) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.REFERENCED_PROJECTS) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
      return true;
    }
 else {
      return false;
    }
  }
 else {
    if (node.getType() == ENodeType.REPOSITORY_ELEMENT) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
protected boolean filterRepositoryNode(RepositoryNode node){
  if (node == null) {
    return false;
  }
  if (node.isBin()) {
    return false;
  }
  if (isTestContainer(node.getObjectType())) {
    return false;
  }
  ERepositoryObjectType contentType=node.getContentType();
  if (contentType != null) {
    if (contentType == ERepositoryObjectType.PROCESS) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.SVN_ROOT) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.REFERENCED_PROJECTS) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
      return true;
    }
 else     if (contentType == ERepositoryObjectType.valueOf(ERepositoryObjectType.class,"String_Node_Str")) {
      return true;
    }
 else {
      return false;
    }
  }
 else {
    if (node.getType() == ENodeType.REPOSITORY_ELEMENT) {
      return true;
    }
  }
  return false;
}
Program: 119147
Project: 119147
Buggy source:
private void buildSparkSubTrees(ETypeGen typeGen){
  subTrees=new ArrayList<NodesSubTree>();
  for (  INode node : nodes) {
    if (((node == node.getSubProcessStartNode(false)) && (node.isActivate()) && !((AbstractNode)node).isThereLinkWithHash())) {
      subTrees.add(new NodesSubTree(node,nodes,typeGen));
    }
  }
}

Fixed version (ground truth):
private void buildSparkSubTrees(ETypeGen typeGen){
  subTrees=new ArrayList<NodesSubTree>();
  for (  INode node : nodes) {
    if (node instanceof BigDataNode) {
      BigDataNode bigDataNode=(BigDataNode)node;
      if (((bigDataNode == bigDataNode.getSubProcessStartNode(false)) && (bigDataNode.getDesignSubjobStartNode() == null || bigDataNode == bigDataNode.getDesignSubjobStartNode()) && (bigDataNode.isActivate())&& !((AbstractNode)node).isThereLinkWithHash())) {
        subTrees.add(new NodesSubTree(node,nodes,typeGen));
      }
    }
  }
}
Program: 119148
Project: 119148
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  if (customVersionDialog.open() == Window.OK) {
    String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
    executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  Set<String> oldLibList=customVersionDialog.getLibList(versionType.getGroup());
  if (customVersionDialog.open() == Window.OK) {
    Set<String> newLibList=customVersionDialog.getLibList(versionType.getGroup());
    if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {
    }
 else {
      String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
      executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
    }
  }
}
Program: 119151
Project: 119151
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  Set<String> oldLibList=customVersionDialog.getLibList(versionType.getGroup());
  if (customVersionDialog.open() == Window.OK) {
    Set<String> newLibList=customVersionDialog.getLibList(versionType.getGroup());
    if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {
    }
 else {
      String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
      executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  if (customVersionDialog.open() == Window.OK) {
    String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
    executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
  }
}
Program: 119154
Project: 119154
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  Set<String> oldLibList=customVersionDialog.getLibList(versionType.getGroup());
  if (customVersionDialog.open() == Window.OK) {
    Set<String> newLibList=customVersionDialog.getLibList(versionType.getGroup());
    if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {
    }
 else {
      String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
      executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  String readOnlyIfString=param.getReadOnlyIf();
  if (StringUtils.isNotEmpty(readOnlyIfString)) {
    if (param.isReadOnly(elem.getElementParameters())) {
      readonly=true;
    }
  }
  if (readonly == false) {
    IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
    if (propertyParameter != null) {
      if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
        readonly=true;
      }
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  Set<String> oldLibList=customVersionDialog.getLibList(versionType.getGroup());
  if (customVersionDialog.open() == Window.OK) {
    Set<String> newLibList=customVersionDialog.getLibList(versionType.getGroup());
    if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {
    }
 else {
      String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
      executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
    }
  }
}
Program: 119156
Project: 119156
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  if (customVersionDialog.open() == Window.OK) {
    String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
    executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  initHadoopVersionType();
  boolean readonly=false;
  IElementParameter propertyParameter=elem.getElementParameter(EParameterName.PROPERTY_TYPE.getName());
  if (propertyParameter != null) {
    if (EmfComponent.REPOSITORY.equals(propertyParameter.getValue())) {
      readonly=true;
    }
  }
  HadoopCustomVersionDefineDialog customVersionDialog=new HadoopCustomVersionDefineDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),getCustomVersionMap()){
    @Override protected ECustomVersionType[] getDisplayTypes(){
      return new ECustomVersionType[]{versionType};
    }
  }
;
  customVersionDialog.setReadonly(readonly);
  Set<String> oldLibList=customVersionDialog.getLibList(versionType.getGroup());
  if (customVersionDialog.open() == Window.OK) {
    Set<String> newLibList=customVersionDialog.getLibList(versionType.getGroup());
    if (oldLibList != null && newLibList != null && oldLibList.size() == newLibList.size() && oldLibList.containsAll(newLibList)) {
    }
 else {
      String customJars=customVersionDialog.getLibListStr(versionType.getGroup());
      executeCommand(new PropertyChangeCommand(elem,EParameterName.HADOOP_CUSTOM_JARS.getName(),StringUtils.trimToEmpty(customJars)));
    }
  }
}
Program: 119159
Project: 119159
Buggy source:
public JobJvmComposite(Composite parent,int style){
  super(parent,style);
  this.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  this.setLayout(layout);
  Composite targetExecutionComposite=createTargetExecutionComposite(this);
}

Fixed version (ground truth):
public JobJvmComposite(Composite parent,int style){
  super(parent,style);
  this.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  this.setLayout(layout);
  Composite targetExecutionComposite=createTargetExecutionComposite(this);
  CoreUIPlugin.setCSSClass(this,JobJvmComposite.class.getSimpleName());
}
Program: 119161
Project: 119161
Buggy source:
@Override protected MessagesComposite createMessagesComposite(){
  return new MessagesWithActionComposite(getComposite(),SWT.NONE);
}

Fixed version (ground truth):
@Override protected MessagesComposite createMessagesComposite(){
  MessagesWithActionComposite messagesComposite=new MessagesWithActionComposite(getComposite(),SWT.NONE){
    @Override protected void changeBackgroundColor(    int status){
switch (status) {
case IStatus.WARNING:
        CoreUIPlugin.setCSSId(this,CSS_MESSAGES_WITH_ACTION_COMPOSITE_WARN);
      break;
case IStatus.ERROR:
    CoreUIPlugin.setCSSId(this,CSS_MESSAGES_WITH_ACTION_COMPOSITE_ERROR);
  break;
default :
}
}
}
;
CoreUIPlugin.setCSSClass(messagesComposite,MessagesWithActionComposite.class.getSimpleName());
return messagesComposite;
}
Program: 119162
Project: 119162
Buggy source:
public JobJvmComposite(Composite parent,int style){
  super(parent,style);
  this.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  this.setLayout(layout);
  Composite targetExecutionComposite=createTargetExecutionComposite(this);
  targetExecutionComposite.setBackground(this.getDisplay().getSystemColor(SWT.COLOR_WHITE));
}

Fixed version (ground truth):
public JobJvmComposite(Composite parent,int style){
  super(parent,style);
  this.setLayoutData(new GridData(GridData.FILL_BOTH));
  GridLayout layout=new GridLayout();
  layout.marginHeight=0;
  layout.marginWidth=0;
  this.setLayout(layout);
  Composite targetExecutionComposite=createTargetExecutionComposite(this);
}
Program: 119163
Project: 119163
Buggy source:
public void pause(int id){
  boolean isPause=id == ProcessView.PAUSE_ID;
  setExecBtn(isPause);
  if (isPause) {
    itemDropDown.setText(Messages.getString("String_Node_Str"));
    itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
    itemDropDown.setData(ProcessView.RESUME_ID);
    itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.RUN_PROCESS_ACTION));
  }
 else {
    itemDropDown.setData(ProcessView.PAUSE_ID);
  }
  processContext.setTracPause(isPause);
}

Fixed version (ground truth):
public void pause(int id){
  boolean isPause=id == ProcessView.PAUSE_ID;
  processContext.setTracPause(isPause);
  setExecBtn(isPause);
  if (isPause) {
    itemDropDown.setText(Messages.getString("String_Node_Str"));
    itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
    itemDropDown.setData(ProcessView.RESUME_ID);
    itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.RUN_PROCESS_ACTION));
  }
 else {
    itemDropDown.setData(ProcessView.PAUSE_ID);
  }
}
Program: 119164
Project: 119164
Buggy source:
@Override protected void setExecBtn(final boolean runnable){
  if (!isDisposed()) {
    if (itemDropDown.getData().equals(ProcessView.DEBUG_ID)) {
      toolBar.setEnabled(runnable);
    }
    if (processContext != null) {
      if (processContext.isMonitorTrace()) {
        boolean b=processContext != null;
        if (!runnable && b) {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.PAUSE_PROCESS_ACTION));
          itemDropDown.setData(ProcessView.PAUSE_ID);
        }
 else {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setData(ProcessView.TRACEDEBUG_ID);
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_TRACE_ACTION));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
        }
        toolBar.getParent().getParent().layout();
        toolBar.setEnabled(b);
      }
    }
  }
}

Fixed version (ground truth):
@Override protected void setExecBtn(final boolean runnable){
  if (!isDisposed()) {
    if (itemDropDown.getData().equals(ProcessView.DEBUG_ID)) {
      toolBar.setEnabled(runnable);
    }
    if (processContext != null) {
      if (processContext.isMonitorTrace()) {
        boolean b=processContext != null;
        if (!runnable && b) {
          boolean isJobRunning=processContext.isRunning();
          boolean isTracePause=processContext.isTracPause();
          if (isJobRunning && isTracePause == false) {
            itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
            itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
            itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.PAUSE_PROCESS_ACTION));
            itemDropDown.setData(ProcessView.PAUSE_ID);
          }
 else           if (isJobRunning && isTracePause) {
            itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
            itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
            itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.RUN_PROCESS_ACTION));
            itemDropDown.setData(ProcessView.RESUME_ID);
          }
        }
 else {
          itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
          itemDropDown.setData(ProcessView.TRACEDEBUG_ID);
          itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_TRACE_ACTION));
          itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
        }
        toolBar.getParent().getParent().layout();
        toolBar.setEnabled(b);
      }
    }
  }
}
Program: 119165
Project: 119165
Buggy source:
@Override public void setProcessContext(RunProcessContext processContext){
  IPreferenceStore preferenceStore=DesignerPlugin.getDefault().getPreferenceStore();
  String languagePrefix=LanguageManager.getCurrentLanguage().toString() + "String_Node_Str";
  if (this.processContext != null) {
    this.processContext.removePropertyChangeListener(pcl);
  }
  this.processContext=processContext;
  if (processContext != null) {
    processContext.addPropertyChangeListener(pcl);
  }
  boolean disableAll=false;
  if (processContext != null) {
    disableAll=processContext.getProcess().disableRunJobView();
  }
  if (processContext != null) {
    processContext.setMonitorTrace(true);
    addTrace(ProcessView.TRACEDEBUG_ID);
  }
  setRunnable(processContext != null && !processContext.isRunning() && !disableAll);
  killBtn.setEnabled(processContext != null && processContext.isRunning() && !disableAll);
  fillConsole(processContext != null ? processContext.getMessages() : new ArrayList<IProcessMessage>());
  if (processContext == null) {
    manager.setBooleanTrace(false);
    itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
    itemDropDown.setData(ProcessView.DEBUG_ID);
    itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
    itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_PROCESS_ACTION));
  }
}

Fixed version (ground truth):
@Override public void setProcessContext(RunProcessContext processContext){
  IPreferenceStore preferenceStore=DesignerPlugin.getDefault().getPreferenceStore();
  String languagePrefix=LanguageManager.getCurrentLanguage().toString() + "String_Node_Str";
  if (this.processContext != null) {
    this.processContext.removePropertyChangeListener(pcl);
  }
  this.processContext=processContext;
  if (processContext != null) {
    processContext.addPropertyChangeListener(pcl);
  }
  boolean disableAll=false;
  if (processContext != null) {
    disableAll=processContext.getProcess().disableRunJobView();
  }
  if (processContext != null) {
    boolean isJavaDebuging=false;
    org.eclipse.debug.core.model.IProcess debugProcess=processContext.getDebugProcess();
    if (debugProcess != null) {
      try {
        debugProcess.getExitValue();
      }
 catch (      DebugException e) {
        isJavaDebuging=true;
      }
    }
    if (isJavaDebuging == false) {
      processContext.setMonitorTrace(true);
      addTrace(ProcessView.TRACEDEBUG_ID);
    }
  }
  setRunnable(processContext != null && !processContext.isRunning() && !disableAll);
  killBtn.setEnabled(processContext != null && processContext.isRunning() && !disableAll);
  fillConsole(processContext != null ? processContext.getMessages() : new ArrayList<IProcessMessage>());
  if (processContext == null) {
    manager.setBooleanTrace(false);
    itemDropDown.setText("String_Node_Str" + Messages.getString("String_Node_Str"));
    itemDropDown.setData(ProcessView.DEBUG_ID);
    itemDropDown.setToolTipText(Messages.getString("String_Node_Str"));
    itemDropDown.setImage(ImageProvider.getImage(ERunprocessImages.DEBUG_PROCESS_ACTION));
  }
}
Program: 119168
Project: 119168
Buggy source:
@SuppressWarnings("String_Node_Str") private void load() throws BusinessException {
  if (!isLoaded) {
    File file=new File(ComponentBundleToPath.getPathFromBundle(bundleName) + uriString);
    URI createURI=URI.createURI(file.toURI().toString());
    Resource res=getComponentResourceFactoryImpl().createResource(createURI);
    try {
      res.load(getLoadingOptionMap());
      DocumentRoot xmlDoc;
      xmlDoc=(DocumentRoot)res.getContents().get(0);
      compType=xmlDoc.getCOMPONENT();
      if (compType.getHEADER().getEXTENSION() != null) {
        try {
          ExternalNodesFactory.getInstance(this.getPluginExtension());
        }
 catch (        RuntimeException re) {
          throw new BusinessException("String_Node_Str" + this.getPluginExtension(),re);
        }
      }
      if (compType.getFAMILIES() == null || compType.getFAMILIES().getFAMILY().isEmpty()) {
        throw new BusinessException("String_Node_Str");
      }
      isLoaded=true;
    }
 catch (    IOException e) {
      throw new BusinessException(Messages.getString("String_Node_Str",uriString),e);
    }
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private void load() throws BusinessException {
  if (!isLoaded) {
    File file=new File(ComponentBundleToPath.getPathFromBundle(bundleName) + uriString);
    URI createURI=URI.createURI(file.toURI().toString());
    Resource res=getComponentResourceFactoryImpl().createResource(createURI);
    try {
      res.load(getLoadingOptionMap());
      DocumentRoot xmlDoc;
      xmlDoc=(DocumentRoot)res.getContents().get(0);
      compType=xmlDoc.getCOMPONENT();
      if (compType.getHEADER().getEXTENSION() != null) {
        try {
          ExternalNodesFactory.getInstance(this.getPluginExtension());
        }
 catch (        RuntimeException re) {
          if (!CommonsPlugin.isHeadless()) {
            Exception compLoadException=new Exception("String_Node_Str" + this.name + "String_Node_Str"+ re.getCause().getMessage(),re);
            MessageBoxExceptionHandler.process(compLoadException);
          }
          throw new BusinessException("String_Node_Str" + this.getPluginExtension(),re);
        }
      }
      if (compType.getFAMILIES() == null || compType.getFAMILIES().getFAMILY().isEmpty()) {
        throw new BusinessException("String_Node_Str");
      }
      isLoaded=true;
    }
 catch (    IOException e) {
      throw new BusinessException(Messages.getString("String_Node_Str",uriString),e);
    }
  }
}
Program: 119169
Project: 119169
Buggy source:
@Override protected void checkVisibleTopMessages(){
  missModulesNeeded.clear();
  final Element ele=this.getElement();
  if (ele instanceof Node) {
    List<ModuleNeeded> modules=new ArrayList<ModuleNeeded>();
    JavaProcessUtil.addNodeRelatedModules(((Node)ele).getProcess(),modules,((Node)ele));
    List<ModuleNeeded> updatedModules=LibrariesManagerUtils.getNotInstalledModules(modules);
    for (    ModuleNeeded needed : updatedModules) {
      if (needed.isRequired(((Node)ele).getElementParameters())) {
        needed.setRequired(true);
      }
    }
    missModulesNeeded.addAll(updatedModules);
  }
  setVisibleTopMessage(!missModulesNeeded.isEmpty());
}

Fixed version (ground truth):
@Override protected void checkVisibleTopMessages(){
  missModulesNeeded.clear();
  final Element ele=this.getElement();
  if (ele instanceof Node) {
    List<ModuleNeeded> updatedModules=LibrariesManagerUtils.getNotInstalledModules(((Node)ele));
    missModulesNeeded.addAll(updatedModules);
  }
  setVisibleTopMessage(!missModulesNeeded.isEmpty());
}
Program: 119173
Project: 119173
Buggy source:
@Override public void generateCode(boolean statistics,boolean trace,boolean javaProperties) throws ProcessorException {
  super.generateCode(statistics,trace,javaProperties);
  generatePom();
  checkProjectPomModules();
}

Fixed version (ground truth):
@Override public void generateCode(boolean statistics,boolean trace,boolean javaProperties) throws ProcessorException {
  super.generateCode(statistics,trace,javaProperties);
  if (property != null) {
    generatePom();
    checkProjectPomModules();
  }
}
Program: 119174
Project: 119174
Buggy source:
private void showHideTexts(){
  if (connection != null) {
    IRepositoryFactory factory=RepositoryFactoryProvider.getRepositoriyById(connection.getRepositoryId());
    if (factory != null) {
      boolean authenticationNeeded=factory.isAuthenticationNeeded();
      if (authenticationNeeded) {
        passwordText.setEnabled(true);
        passwordText.setEditable(true);
        passwordText.setBackground(LoginComposite.WHITE_COLOR);
      }
 else {
        passwordText.setText("String_Node_Str");
        passwordText.setEnabled(false);
        passwordText.setEditable(false);
        passwordText.setBackground(LoginComposite.GREY_COLOR);
      }
    }
  }
}

Fixed version (ground truth):
private void showHideTexts(){
  if (connection != null) {
    IRepositoryFactory factory=RepositoryFactoryProvider.getRepositoriyById(connection.getRepositoryId());
    if (factory != null) {
      boolean authenticationNeeded=factory.isAuthenticationNeeded();
      if (authenticationNeeded) {
        passwordText.setEnabled(true);
        passwordText.setEditable(true);
        passwordText.setBackground(LoginComposite.WHITE_COLOR);
        hideControl(passwordText,false);
        hideControl(passwordLabel,false);
      }
 else {
        passwordText.setText("String_Node_Str");
        passwordText.setEnabled(false);
        passwordText.setEditable(false);
        passwordText.setBackground(LoginComposite.GREY_COLOR);
        hideControl(passwordText,true);
        hideControl(passwordLabel,true);
      }
    }
  }
}
Program: 119176
Project: 119176
Buggy source:
protected FileEditorInput createFileEditorInput(){
  IPath codePath=processor.getCodePath();
  if (codePath.isEmpty()) {
    try {
      processor.initPath();
    }
 catch (    ProcessorException e) {
      MessageBoxExceptionHandler.process(e);
    }
    codePath=processor.getCodePath();
  }
  IFile codeFile=ResourcesPlugin.getWorkspace().getRoot().getFile(processor.getCodeProject().getFullPath().append(codePath));
  if (!codeFile.exists()) {
    try {
      codeFile.create(new ByteArrayInputStream("String_Node_Str".getBytes()),true,null);
    }
 catch (    CoreException e) {
    }
  }
  return new FileEditorInput(codeFile);
}

Fixed version (ground truth):
protected FileEditorInput createFileEditorInput(){
  IPath codePath=processor.getCodePath();
  if (codePath.isEmpty()) {
    try {
      processor.initPath();
    }
 catch (    ProcessorException e) {
      MessageBoxExceptionHandler.process(e);
    }
    codePath=processor.getCodePath();
  }
  IFile codeFile=processor.getCodeProject().getFile(codePath);
  if (!codeFile.exists()) {
    try {
      codeFile.create(new ByteArrayInputStream("String_Node_Str".getBytes()),true,null);
    }
 catch (    CoreException e) {
    }
  }
  return new FileEditorInput(codeFile);
}
Program: 119177
Project: 119177
Buggy source:
@Override public String extractMainClassSegments(){
  return null;
}

Fixed version (ground truth):
@Override public String extractMainClassSegments(){
  return getMainClass();
}
Program: 119178
Project: 119178
Buggy source:
/** 
 * Extracts the main-class command segment. Added by Marvin Wang on Mar 22, 2013.
 * @return
 */
String extractMainClassSegments();

Fixed version (ground truth):
/** 
 * Extracts the main-class command segment. Added by Marvin Wang on Mar 22, 2013.
 * @return
 * @deprecated getMainClass instead
 */
@Deprecated String extractMainClassSegments();
Program: 119179
Project: 119179
Buggy source:
@Override public Object saveLaunchConfiguration() throws CoreException {
  ILaunchConfiguration config=null;
  ILaunchManager launchManager=DebugPlugin.getDefault().getLaunchManager();
  String projectName=this.getCodeProject().getName();
  ILaunchConfigurationType type=launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
  if (type != null) {
    ILaunchConfigurationWorkingCopy wc=type.newInstance(null,launchManager.generateUniqueLaunchConfigurationNameFrom(this.getCodePath().lastSegment()));
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,projectName);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,this.getTypeName());
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN,true);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,CTX_ARG + context.getName());
    config=wc.doSave();
  }
  return config;
}

Fixed version (ground truth):
@Override public Object saveLaunchConfiguration() throws CoreException {
  ILaunchConfiguration config=null;
  ILaunchManager launchManager=DebugPlugin.getDefault().getLaunchManager();
  String projectName=this.getCodeProject().getName();
  ILaunchConfigurationType type=launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
  if (type != null) {
    ILaunchConfigurationWorkingCopy wc=type.newInstance(null,launchManager.generateUniqueLaunchConfigurationNameFrom(this.getCodePath().lastSegment()));
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,projectName);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,this.getMainClass());
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN,true);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,CTX_ARG + context.getName());
    config=wc.doSave();
  }
  return config;
}
Program: 119181
Project: 119181
Buggy source:
@Override public Object saveLaunchConfigurationWithParam(String parameterStr) throws CoreException {
  ILaunchConfiguration config=null;
  ILaunchManager launchManager=DebugPlugin.getDefault().getLaunchManager();
  String projectName=this.getCodeProject().getName();
  ILaunchConfigurationType type=launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
  if (type != null) {
    ILaunchConfigurationWorkingCopy wc=type.newInstance(null,launchManager.generateUniqueLaunchConfigurationNameFrom(this.getCodePath().lastSegment()));
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,projectName);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,this.getTypeName());
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN,true);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,CTX_ARG + context.getName() + parameterStr);
    config=wc.doSave();
  }
  return config;
}

Fixed version (ground truth):
@Override public Object saveLaunchConfigurationWithParam(String parameterStr) throws CoreException {
  ILaunchConfiguration config=null;
  ILaunchManager launchManager=DebugPlugin.getDefault().getLaunchManager();
  String projectName=this.getCodeProject().getName();
  ILaunchConfigurationType type=launchManager.getLaunchConfigurationType(IJavaLaunchConfigurationConstants.ID_JAVA_APPLICATION);
  if (type != null) {
    ILaunchConfigurationWorkingCopy wc=type.newInstance(null,launchManager.generateUniqueLaunchConfigurationNameFrom(this.getCodePath().lastSegment()));
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME,projectName);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME,this.getMainClass());
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN,true);
    wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,CTX_ARG + context.getName() + parameterStr);
    config=wc.doSave();
  }
  return config;
}
Program: 119183
Project: 119183
Buggy source:
@Override public String getTypeName(){
  return this.typeName;
}

Fixed version (ground truth):
@Override public String getTypeName(){
  return this.getMainClass();
}
Program: 119185
Project: 119185
Buggy source:
@Override public String extractMainClassSegments(){
  IPath classPath=getCodePath().removeFirstSegments(1);
  String className=classPath.toString().replace('/','.');
  return className;
}

Fixed version (ground truth):
@Override public String extractMainClassSegments(){
  return super.extractMainClassSegments();
}
Program: 119186
Project: 119186
Buggy source:
@Override public String extractMainClassSegments(){
  IPath classPath=getCodePath().removeFirstSegments(1);
  String className=classPath.toString().replace('/','.');
  return className;
}

Fixed version (ground truth):
@Override public String extractMainClassSegments(){
  return super.extractMainClassSegments();
}
Program: 119187
Project: 119187
Buggy source:
/** 
 * DOC acer Comment method "addContextScripts".
 * @param resource
 * @param boolean1
 */
protected void addContextScripts(ProcessItem processItem,String jobName,String jobVersion,ExportFileResource resource,Boolean needContext){
  if (!needContext) {
    return;
  }
  List<URL> list=new ArrayList<URL>(1);
  String projectName=getCorrespondingProjectName(processItem);
  String folderName=JavaResourcesHelper.getJobFolderName(jobName,jobVersion);
  try {
    IPath classRoot=getClassRootPath();
    classRoot=classRoot.append(projectName).append(folderName).append(JavaUtils.JAVA_CONTEXTS_DIRECTORY);
    File contextDir=classRoot.toFile();
    if (contextDir.isDirectory()) {
      list.addAll(getActiveContextFiles(classRoot.toFile().listFiles(),processItem));
    }
    String jobPackagePath=projectName + PATH_SEPARATOR + folderName+ PATH_SEPARATOR+ JavaUtils.JAVA_CONTEXTS_DIRECTORY;
    resource.addResources(jobPackagePath,list);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
/** 
 * DOC acer Comment method "addContextScripts".
 * @param resource
 * @param boolean1
 */
protected void addContextScripts(ProcessItem processItem,String jobName,String jobVersion,ExportFileResource resource,Boolean needContext){
  if (!needContext) {
    return;
  }
  List<URL> list=new ArrayList<URL>(1);
  String projectName=getCorrespondingProjectName(processItem);
  String folderName=JavaResourcesHelper.getJobFolderName(jobName,jobVersion);
  try {
    String jobPackagePath=projectName + PATH_SEPARATOR + folderName+ PATH_SEPARATOR+ JavaUtils.JAVA_CONTEXTS_DIRECTORY;
    ITalendProcessJavaProject talendProcessJavaProject=RepositoryPlugin.getDefault().getRunProcessService().getTalendProcessJavaProject();
    if (talendProcessJavaProject == null) {
      return;
    }
    IFolder outputFolder=talendProcessJavaProject.getOutputFolder();
    IFolder contextsFolder=outputFolder.getFolder(jobPackagePath);
    File contextDir=contextsFolder.getLocation().toFile();
    if (contextDir.isDirectory()) {
      list.addAll(getActiveContextFiles(contextDir.listFiles(),processItem));
    }
    resource.addResources(jobPackagePath,list);
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 119188
Project: 119188
Buggy source:
protected File getClassRootFileLocation() throws CoreException {
  return getClassRootPath().toFile();
}

Fixed version (ground truth):
protected File getClassRootFileLocation() throws CoreException {
  ITalendProcessJavaProject talendProcessJavaProject=RepositoryPlugin.getDefault().getRunProcessService().getTalendProcessJavaProject();
  if (talendProcessJavaProject == null) {
    return null;
  }
  IFolder outputFolder=talendProcessJavaProject.getOutputFolder();
  return outputFolder.getLocation().toFile();
}
Program: 119189
Project: 119189
Buggy source:
public static void replaceInFile(String regex,String fileName,String replacement) throws IOException {
  InputStream in=new FileInputStream(fileName);
  StringBuffer buffer=new StringBuffer();
  try {
    InputStreamReader inR=new InputStreamReader(in);
    BufferedReader buf=new BufferedReader(inR);
    String line;
    while ((line=buf.readLine()) != null) {
      if (line.endsWith("String_Node_Str")) {
        line=replacement;
      }
      buffer.append(line).append("String_Node_Str");
    }
  }
 catch (  IOException e) {
  }
 finally {
    in.close();
  }
  OutputStream os=new FileOutputStream(fileName);
  os.write(buffer.toString().getBytes());
  os.close();
}

Fixed version (ground truth):
public static void replaceInFile(String regex,String fileName,String replacement) throws IOException {
  InputStream in=new FileInputStream(fileName);
  StringBuffer buffer=new StringBuffer();
  try {
    Pattern p=Pattern.compile(regex);
    InputStreamReader inR=new InputStreamReader(in);
    BufferedReader buf=new BufferedReader(inR);
    String line;
    while ((line=buf.readLine()) != null) {
      Matcher matcher=p.matcher(line);
      if (matcher.find()) {
        line=matcher.replaceAll(replacement);
      }
      buffer.append(line).append("String_Node_Str");
    }
  }
 catch (  IOException e) {
  }
 finally {
    in.close();
  }
  OutputStream os=new FileOutputStream(fileName);
  os.write(buffer.toString().getBytes());
  os.close();
}
Program: 119190
Project: 119190
Buggy source:
/** 
 * DOC smallet Comment method "afterImportAs".
 * @param newName
 * @param technicalName
 * @throws InvocationTargetException
 */
private static Project afterImportAs(String newName,String technicalName) throws InvocationTargetException {
  final IWorkspace workspace=org.eclipse.core.resources.ResourcesPlugin.getWorkspace();
  final IProject project=workspace.getRoot().getProject(technicalName);
  try {
    IProjectDescription description=project.getDescription();
    if (description != null && !technicalName.equals(description.getName())) {
      description.setName(technicalName);
      ((org.eclipse.core.internal.resources.Project)project).writeDescription(description,IResource.KEEP_HISTORY,true,false);
    }
  }
 catch (  CoreException e1) {
  }
  XmiResourceManager xmiManager=new XmiResourceManager();
  try {
    final Project loadProject=xmiManager.loadProject(project);
    loadProject.setTechnicalLabel(technicalName);
    loadProject.setLabel(newName);
    loadProject.setLocal(true);
    loadProject.setId(0);
    loadProject.setUrl(null);
    loadProject.setCreationDate(null);
    loadProject.setDescription("String_Node_Str");
    loadProject.setType(null);
    if (loadProject.getFolders() != null) {
      loadProject.getFolders().clear();
    }
    xmiManager.saveResource(loadProject.eResource());
    return loadProject;
  }
 catch (  PersistenceException e) {
  }
  return null;
}

Fixed version (ground truth):
/** 
 * DOC smallet Comment method "afterImportAs".
 * @param newName
 * @param technicalName
 * @throws InvocationTargetException
 */
private static Project afterImportAs(String newName,String technicalName) throws InvocationTargetException {
  final IWorkspace workspace=org.eclipse.core.resources.ResourcesPlugin.getWorkspace();
  IContainer containers=(IProject)workspace.getRoot().findMember(new Path(technicalName));
  IResource file2=containers.findMember(IProjectDescription.DESCRIPTION_FILE_NAME);
  try {
    replaceInFile("String_Node_Str",file2.getLocation().toOSString(),"String_Node_Str" + technicalName + "String_Node_Str");
    final IProject project=workspace.getRoot().getProject(technicalName);
    XmiResourceManager xmiManager=new XmiResourceManager();
    try {
      final Project loadProject=xmiManager.loadProject(project);
      loadProject.setTechnicalLabel(technicalName);
      loadProject.setLabel(newName);
      loadProject.setLocal(true);
      loadProject.setId(0);
      loadProject.setUrl(null);
      loadProject.setCreationDate(null);
      loadProject.setDescription("String_Node_Str");
      loadProject.setType(null);
      if (loadProject.getFolders() != null) {
        loadProject.getFolders().clear();
      }
      xmiManager.saveResource(loadProject.eResource());
      return loadProject;
    }
 catch (    PersistenceException e) {
    }
  }
 catch (  IOException e) {
    throw new InvocationTargetException(e);
  }
  return null;
}
Program: 119192
Project: 119192
Buggy source:
private String getParameterValueWithContext(IElement elem,String key,IContext context,IElementParameter basePropertyParameter){
  if (elem == null || key == null) {
    return "String_Node_Str";
  }
  String actualKey=this.getParaNameFromRepositoryName(key,basePropertyParameter);
  if (actualKey != null) {
    return fetchElementParameterValue(elem,context,actualKey);
  }
 else {
    return fetchElementParameterValue(elem,context,key);
  }
}

Fixed version (ground truth):
private String getParameterValueWithContext(IElement elem,String key,IContext context,IElementParameter basePropertyParameter){
  if (elem == null || key == null) {
    return "String_Node_Str";
  }
  String actualKey=this.getParaNameFromRepositoryName(elem,key,basePropertyParameter);
  if (actualKey != null) {
    return fetchElementParameterValue(elem,context,actualKey);
  }
 else {
    return fetchElementParameterValue(elem,context,key);
  }
}
Program: 119193
Project: 119193
Buggy source:
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}

Fixed version (ground truth):
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  setShowKeyColumn(false);
  setShowNullableColumn(false);
  setShowPatternColumn(false);
  setShowLengthColumn(false);
  setShowPrecisionColumn(false);
  setShowDefaultColumn(false);
  setShowCommentColumn(false);
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}
Program: 119194
Project: 119194
Buggy source:
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
}

Fixed version (ground truth):
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true,false);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
  initGraphicComponents();
}
Program: 119195
Project: 119195
Buggy source:
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}

Fixed version (ground truth):
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  setShowKeyColumn(false);
  setShowNullableColumn(false);
  setShowPatternColumn(false);
  setShowLengthColumn(false);
  setShowPrecisionColumn(false);
  setShowDefaultColumn(false);
  setShowCommentColumn(false);
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}
Program: 119196
Project: 119196
Buggy source:
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
}

Fixed version (ground truth):
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true,false);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
  initGraphicComponents();
}
Program: 119197
Project: 119197
Buggy source:
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  setShowKeyColumn(false);
  setShowNullableColumn(false);
  setShowPatternColumn(false);
  setShowLengthColumn(false);
  setShowPrecisionColumn(false);
  setShowDefaultColumn(false);
  setShowCommentColumn(false);
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}

Fixed version (ground truth):
@Override protected void createColumns(TableViewerCreator<IMetadataColumn> tableViewerCreator,Table table){
  super.createColumns(tableViewerCreator,table);
  configureFunctionColumns(tableViewerCreator);
  configureParameterColumns(tableViewerCreator);
  configurePreviewColumns(tableViewerCreator);
}
Program: 119198
Project: 119198
Buggy source:
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true,false);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
  initGraphicComponents();
}

Fixed version (ground truth):
public MetadataTableEditorViewExt(Composite parentComposite,int mainCompositeStyle,ExtendedTableModel<IMetadataColumn> extendedTableModel,boolean readOnly,boolean toolbarVisible,RowGeneratorComponent rGcomponent,FunctionManagerExt functionManager){
  super(parentComposite,mainCompositeStyle,extendedTableModel,readOnly,toolbarVisible,true);
  this.rGcomponent=rGcomponent;
  this.functionManager=functionManager;
}