nus-yam/ex-repair huggingface dataset:
Program: 95298
Project: 95298
Buggy source:
/** 
 * Initializes the AUT Server for the host application.
 * @param display The Display to use for the AUT Server.
 * @return the AUTServer instance
 */
private AUTServer initAutServer(Display display){
  AUTServer instance=AUTServer.getInstance(CommandConstants.AUT_SWT_SERVER);
  ((SwtAUTServer)instance).setDisplay(display);
  instance.setAutAgentHost(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_HOST));
  instance.setAutAgentPort(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_PORT));
  instance.setAutID(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_NAME));
  instance.start(true);
  return instance;
}

Fixed version (ground truth):
/** 
 * Initializes the AUT Server for the host application.
 * @param display The Display to use for the AUT Server.
 * @return the AUTServer instance
 */
private AUTServer initAutServer(Display display){
  AUTServer instance=AUTServer.getInstance(CommandConstants.AUT_SWT_SERVER);
  ((SwtAUTServer)instance).setDisplay(display);
  instance.setAutAgentHost(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_HOST));
  instance.setAutAgentPort(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_PORT));
  instance.setAutID(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_NAME));
  instance.setInstallationDir(EnvironmentUtils.getProcessOrSystemProperty(Constants.AUT_JUB_INSTALL_DIRECTORY));
  instance.start(true);
  return instance;
}
Program: 95299
Project: 95299
Buggy source:
/** 
 * Start the SwtAUTServer by connecting with the AUT agent.
 * @param display The SWT display.
 * @return True, if the AUTServer is already running, otherwise false.
 */
private boolean startRemoteControlService(final Display display){
  String autAgentHost=EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_HOST);
  if (autAgentHost != null) {
    try {
      setAutAgentHost(autAgentHost);
      setAutAgentPort(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_PORT));
      setAutID(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_NAME));
      setDisplay(display);
      start(true);
      m_hasRemoteControlServiceStarted=true;
    }
 catch (    Exception e) {
      LOG.error(e.getLocalizedMessage(),e);
      System.exit(AUTServerExitConstants.AUT_START_ERROR);
    }
  }
  return m_hasRemoteControlServiceStarted;
}

Fixed version (ground truth):
/** 
 * Start the SwtAUTServer by connecting with the AUT agent.
 * @param display The SWT display.
 * @return True, if the AUTServer is already running, otherwise false.
 */
private boolean startRemoteControlService(final Display display){
  String autAgentHost=EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_HOST);
  if (autAgentHost != null) {
    try {
      setAutAgentHost(autAgentHost);
      setAutAgentPort(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_AGENT_PORT));
      setAutID(EnvironmentUtils.getProcessOrSystemProperty(AutConfigConstants.AUT_NAME));
      setInstallationDir(EnvironmentUtils.getProcessOrSystemProperty(Constants.AUT_JUB_INSTALL_DIRECTORY));
      setDisplay(display);
      start(true);
      m_hasRemoteControlServiceStarted=true;
    }
 catch (    Exception e) {
      LOG.error(e.getLocalizedMessage(),e);
      System.exit(AUTServerExitConstants.AUT_START_ERROR);
    }
  }
  return m_hasRemoteControlServiceStarted;
}
Program: 95300
Project: 95300
Buggy source:
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=InspectedComponent.getInstance().getCompId();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new PropertyDescriptor(new OMTechNameGUIPropertySource.ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=InspectedComponent.getInstance().getCompId();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new JBPropertyDescriptor(new OMTechNameGUIPropertySource.ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}
Program: 95301
Project: 95301
Buggy source:
/** 
 * Initializes the tracked changes property descriptor
 */
protected void initTrackedChangesPropDescriptor(){
  SortedMap<Long,String> changes=getPoNode().getTrackedChanges();
  int i=0;
  for (  Object o : changes.keySet()) {
    if (o instanceof Long) {
      Long key=(Long)o;
      PropertyDescriptor propDes=new PropertyDescriptor(new TrackedChangesValueController(i),formatDateForTrackedChanges(key));
      propDes.setCategory(P_TRACKED_CHANGES_CAT);
      addPropertyDescriptor(propDes);
      i++;
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the tracked changes property descriptor
 */
protected void initTrackedChangesPropDescriptor(){
  SortedMap<Long,String> changes=getPoNode().getTrackedChanges();
  int i=0;
  for (  Object o : changes.keySet()) {
    if (o instanceof Long) {
      Long key=(Long)o;
      JBPropertyDescriptor propDes=new JBPropertyDescriptor(new TrackedChangesValueController(i),formatDateForTrackedChanges(key));
      propDes.setCategory(P_TRACKED_CHANGES_CAT);
      addPropertyDescriptor(propDes);
      i++;
    }
  }
}
Program: 95303
Project: 95303
Buggy source:
/** 
 * create property descriptor 
 */
private void createSpecNamePropertyDescriptor(){
  if (m_specNamePropDesc == null) {
    PropertyDescriptor propDes=new PropertyDescriptor(new SpecNameController(),P_SPECNAME_DISPLAY_NAME);
    propDes.setLabelProvider(new DisabledLabelProvider());
    m_specNamePropDesc=propDes;
  }
  addPropertyDescriptor(m_specNamePropDesc);
}

Fixed version (ground truth):
/** 
 * create property descriptor 
 */
private void createSpecNamePropertyDescriptor(){
  if (m_specNamePropDesc == null) {
    PropertyDescriptor propDes=new JBPropertyDescriptor(new SpecNameController(),P_SPECNAME_DISPLAY_NAME);
    propDes.setLabelProvider(new DisabledLabelProvider());
    m_specNamePropDesc=propDes;
  }
  addPropertyDescriptor(m_specNamePropDesc);
}
Program: 95304
Project: 95304
Buggy source:
/** 
 * Initializes the EventTypes.
 * @return a String-Array of Event Types.
 */
private static String[] initEventTypes(){
  Set<?> mapKeySet=ComponentBuilder.getInstance().getCompSystem().getEventTypes().keySet();
  String[] eventTypes=new String[mapKeySet.size()];
  int i=0;
  final Map<String,String> stringHelperMap=StringHelper.getInstance().getMap();
  for (  Object object : mapKeySet) {
    eventTypes[i]=stringHelperMap.get(object.toString());
    i++;
  }
  return eventTypes;
}

Fixed version (ground truth):
/** 
 * Initializes the EventTypes.
 * @return a String-Array of Event Types.
 */
private static String[] initEventTypes(){
  Set mapKeySet=ComponentBuilder.getInstance().getCompSystem().getEventTypes().keySet();
  String[] eventTypes=new String[mapKeySet.size()];
  int i=0;
  final Map<String,String> stringHelperMap=StringHelper.getInstance().getMap();
  for (  Object object : mapKeySet) {
    eventTypes[i]=stringHelperMap.get(object.toString());
    i++;
  }
  return eventTypes;
}
Program: 95305
Project: 95305
Buggy source:
/** 
 * create property descriptor 
 */
private void createTaskIdPropertyDescriptor(){
  if (getTaskIdPropDesc() == null) {
    PropertyDescriptor taskIdPropDesc=new PropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
    taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
    setTaskIdPropDesc(taskIdPropDesc);
  }
  addPropertyDescriptor(getTaskIdPropDesc());
}

Fixed version (ground truth):
/** 
 * create property descriptor 
 */
private void createTaskIdPropertyDescriptor(){
  if (getTaskIdPropDesc() == null) {
    JBPropertyDescriptor taskIdPropDesc=new JBPropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
    taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
    setTaskIdPropDesc(taskIdPropDesc);
  }
  addPropertyDescriptor(getTaskIdPropDesc());
}
Program: 95307
Project: 95307
Buggy source:
/** 
 * Property Descriptor for the Task ID
 */
private void createJPropertyDescriptor(){
  PropertyDescriptor taskIdPropDesc=new PropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
  taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
  setTaskIdPropDesc(taskIdPropDesc);
}

Fixed version (ground truth):
/** 
 * Property Descriptor for the Task ID
 */
private void createJPropertyDescriptor(){
  JBPropertyDescriptor taskIdPropDesc=new JBPropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
  taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
  setTaskIdPropDesc(taskIdPropDesc);
}
Program: 95308
Project: 95308
Buggy source:
/** 
 * Inits the PropertyDescriptors
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  PropertyDescriptor propDes=null;
  propDes=new PropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ComponentTypeController(),P_ELEMENT_DISPLAY_COMPTYPE);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ParentProjectController(),P_ELEMENT_DISPLAY_PARENTPROJECT);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
}

Fixed version (ground truth):
/** 
 * Inits the PropertyDescriptors
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  JBPropertyDescriptor propDes=null;
  propDes=new JBPropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ComponentTypeController(),P_ELEMENT_DISPLAY_COMPTYPE);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ParentProjectController(),P_ELEMENT_DISPLAY_PARENTPROJECT);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
}
Program: 95309
Project: 95309
Buggy source:
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=getNode().getCompIdentifier();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new PropertyDescriptor(new ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=getNode().getCompIdentifier();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        JBPropertyDescriptor propDes=new JBPropertyDescriptor(new ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}
Program: 95310
Project: 95310
Buggy source:
/** 
 * Inits the PropertyDescriptors
 */
@SuppressWarnings("String_Node_Str") protected void initPropDescriptor(){
  clearPropertyDescriptors();
  PropertyDescriptor propDes=null;
  propDes=new PropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMP);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ComponentClassController(),P_ELEMENT_DISPLAY_COMPCLASS);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMP);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ComponentSuppClassController(),P_ELEMENT_DISPLAY_COMPSUPPCLASS);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  initHierarchy();
  initContext();
  initComponentProperties();
}

Fixed version (ground truth):
/** 
 * Inits the PropertyDescriptors
 */
@SuppressWarnings("String_Node_Str") protected void initPropDescriptor(){
  clearPropertyDescriptors();
  JBPropertyDescriptor propDes=null;
  propDes=new JBPropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMP);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ComponentClassController(),P_ELEMENT_DISPLAY_COMPCLASS);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMP);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ComponentSuppClassController(),P_ELEMENT_DISPLAY_COMPSUPPCLASS);
  propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  initHierarchy();
  initContext();
  initComponentProperties();
}
Program: 95311
Project: 95311
Buggy source:
/** 
 * Initializes the context
 */
private void initContext(){
  PropertyDescriptor propDes=null;
  IComponentIdentifier compId=getNode().getTechnicalName();
  if (compId != null) {
    List context=compId.getNeighbours();
    for (int i=0; i < context.size(); i++) {
      if (i == 0) {
        propDes=new PropertyDescriptor(new ComponentContextController(i),P_ELEMENT_DISPLAY_CONTEXT);
      }
 else {
        propDes=new PropertyDescriptor(new ComponentContextController(i),StringConstants.EMPTY);
      }
      propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
      addPropertyDescriptor(propDes);
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the context
 */
private void initContext(){
  JBPropertyDescriptor propDes=null;
  IComponentIdentifier compId=getNode().getTechnicalName();
  if (compId != null) {
    List context=compId.getNeighbours();
    for (int i=0; i < context.size(); i++) {
      if (i == 0) {
        propDes=new JBPropertyDescriptor(new ComponentContextController(i),P_ELEMENT_DISPLAY_CONTEXT);
      }
 else {
        propDes=new JBPropertyDescriptor(new ComponentContextController(i),StringConstants.EMPTY);
      }
      propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
      addPropertyDescriptor(propDes);
    }
  }
}
Program: 95312
Project: 95312
Buggy source:
/** 
 * Initializes the hierarchy
 */
private void initHierarchy(){
  PropertyDescriptor propDes=null;
  IComponentIdentifier compId=getNode().getTechnicalName();
  if (compId != null) {
    List<?> hierarchy=compId.getHierarchyNames();
    for (int i=0; i < hierarchy.size(); i++) {
      if (i == 0) {
        propDes=new PropertyDescriptor(new ComponentHierarchyController(i),P_ELEMENT_DISPLAY_HIERARCHY);
      }
 else {
        propDes=new PropertyDescriptor(new ComponentHierarchyController(i),StringConstants.EMPTY);
      }
      propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
      addPropertyDescriptor(propDes);
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the hierarchy
 */
private void initHierarchy(){
  JBPropertyDescriptor propDes=null;
  IComponentIdentifier compId=getNode().getTechnicalName();
  if (compId != null) {
    List hierarchy=compId.getHierarchyNames();
    for (int i=0; i < hierarchy.size(); i++) {
      if (i == 0) {
        propDes=new JBPropertyDescriptor(new ComponentHierarchyController(i),P_ELEMENT_DISPLAY_HIERARCHY);
      }
 else {
        propDes=new JBPropertyDescriptor(new ComponentHierarchyController(i),StringConstants.EMPTY);
      }
      propDes.setCategory(P_ELEMENT_DISPLAY_COMPADDINFO);
      addPropertyDescriptor(propDes);
    }
  }
}
Program: 95313
Project: 95313
Buggy source:
/** 
 * creates a job which expands the viewer to its old state 
 * @return the job
 */
private Job createExpanderJob(){
  return new WorkbenchJob("String_Node_Str"){
    public IStatus runInUIThread(    IProgressMonitor monitor){
      getViewer().setExpandedElements(m_expandedElements);
      return new Status(Status.OK,Plugin.PLUGIN_ID,StringConstants.EMPTY);
    }
  }
;
}

Fixed version (ground truth):
/** 
 * creates a job which expands the viewer to its old state 
 * @return the job
 */
private Job createExpanderJob(){
  return new WorkbenchJob("String_Node_Str"){
    public IStatus runInUIThread(    IProgressMonitor monitor){
      try {
        if (!getViewer().getTree().isDisposed()) {
          getViewer().setExpandedElements(m_expandedElements);
        }
      }
 catch (      SWTException e) {
      }
      return new Status(Status.OK,Plugin.PLUGIN_ID,StringConstants.EMPTY);
    }
  }
;
}
Program: 95314
Project: 95314
Buggy source:
public IStatus runInUIThread(IProgressMonitor monitor){
  getViewer().setExpandedElements(m_expandedElements);
  return new Status(Status.OK,Plugin.PLUGIN_ID,StringConstants.EMPTY);
}

Fixed version (ground truth):
public IStatus runInUIThread(IProgressMonitor monitor){
  try {
    if (!getViewer().getTree().isDisposed()) {
      getViewer().setExpandedElements(m_expandedElements);
    }
  }
 catch (  SWTException e) {
  }
  return new Status(Status.OK,Plugin.PLUGIN_ID,StringConstants.EMPTY);
}
Program: 95315
Project: 95315
Buggy source:
/** 
 * checks and sets the switch button status
 */
private void checkButtons(){
  ITreeSelection selection=m_availableTree.getStructuredSelection();
  enableAvailableToUsedButton(!selection.isEmpty());
  for (Iterator<?> iterator=selection.iterator(); iterator.hasNext(); ) {
    Object type=iterator.next();
    if (!(type instanceof IObjectMappingCategoryPO)) {
      enableAvailableToUsedButton(false);
      break;
    }
  }
  ITreeSelection usedSelection=m_usedTree.getStructuredSelection();
  enableRemoveUsedButton(!usedSelection.isEmpty());
  for (Iterator<?> iterator=usedSelection.iterator(); iterator.hasNext(); ) {
    Object type=iterator.next();
    if (!(type instanceof IObjectMappingCategoryPO)) {
      enableRemoveUsedButton(false);
      break;
    }
  }
  enableRemoveAllUsedButton(m_selectedCat.size() > 0);
  enableAllAvailableToUsedButton(m_availableTree.getVisibleExpandedElements().length != m_availableTree.getTree().getItemCount());
}

Fixed version (ground truth):
/** 
 * checks and sets the switch button status
 */
private void checkButtons(){
  ITreeSelection selection=m_availableTree.getStructuredSelection();
  enableAvailableToUsedButton(!selection.isEmpty());
  for (Iterator<?> iterator=selection.iterator(); iterator.hasNext(); ) {
    Object type=iterator.next();
    if (!(type instanceof IObjectMappingCategoryPO)) {
      enableAvailableToUsedButton(false);
      break;
    }
  }
  ITreeSelection usedSelection=m_usedTree.getStructuredSelection();
  Object firstElement=usedSelection.getFirstElement();
  enableRemoveUsedButton(!usedSelection.isEmpty() && m_selectedCat.contains(firstElement));
  for (Iterator<?> iterator=usedSelection.iterator(); iterator.hasNext(); ) {
    Object type=iterator.next();
    if (!(type instanceof IObjectMappingCategoryPO)) {
      enableRemoveUsedButton(false);
      break;
    }
  }
  enableRemoveAllUsedButton(m_selectedCat.size() > 0);
  enableAllAvailableToUsedButton(m_availableTree.getVisibleExpandedElements().length != m_availableTree.getTree().getItemCount());
}
Program: 95316
Project: 95316
Buggy source:
/** 
 * @param combobox the combobox
 * @return a {@link ListView} which is the list of the {@link ComboBox}
 */
public static ListView<?> getPopUpContent(ComboBox<?> combobox){
  Class<?> clazz=null;
  Object skin=combobox.getSkin();
  try {
    clazz=Class.forName(JAVA8_COMBO_LISTVIEWSKIN);
  }
 catch (  ClassNotFoundException e) {
    try {
      clazz=Class.forName(JAVA9_COMBO_LISTVIEWSKIN);
    }
 catch (    ClassNotFoundException e2) {
      throw new RuntimeException(e2);
    }
  }
  try {
    Method method=clazz.getMethod(GET_POPUP_CONTENT);
    Object o=method.invoke(skin);
    if (o instanceof ListView<?>) {
      return (ListView<?>)o;
    }
  }
 catch (  NoSuchMethodException|SecurityException|IllegalAccessException|IllegalArgumentException|InvocationTargetException e) {
    throw new RuntimeException(e);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param combobox the combobox
 * @return a {@link ListView} which is the list of the {@link ComboBox}
 */
public static ListView<?> getPopUpContent(ComboBox<?> combobox){
  Class<?> clazz=null;
  Object skin=combobox.getSkin();
  try {
    clazz=Class.forName(JAVA8_COMBO_LISTVIEWSKIN);
  }
 catch (  ClassNotFoundException e) {
    try {
      clazz=Class.forName(JAVA9_COMBO_LISTVIEWSKIN);
    }
 catch (    ClassNotFoundException e2) {
      throw new RuntimeException(e2);
    }
  }
  try {
    Method method=clazz.getDeclaredMethod(GET_POPUP_CONTENT);
    if (!method.isAccessible()) {
      method.setAccessible(true);
    }
    Object o=method.invoke(skin);
    if (o instanceof ListView<?>) {
      return (ListView<?>)o;
    }
  }
 catch (  NoSuchMethodException|SecurityException|IllegalAccessException|IllegalArgumentException|InvocationTargetException e) {
    throw new RuntimeException(e);
  }
  return null;
}
Program: 95317
Project: 95317
Buggy source:
/** 
 * @param table the {@link TableView}
 * @param column the column number
 * @param relative should the calculation be relative or absolute
 * @return the {@link Rectangle} or null if it is not found
 */
public static Rectangle getNodeBoundsofHeader(Parent table,TableColumnBase<?,?> column,boolean relative){
  Class<?> clazz=null;
  try {
    clazz=Class.forName(JAVA8_TABLE_HEADER_ROW);
  }
 catch (  ClassNotFoundException e) {
    try {
      clazz=Class.forName(JAVA9_TABLE_HEADER_ROW);
    }
 catch (    ClassNotFoundException e2) {
      String message="String_Node_Str" + JAVA8_TABLE_HEADER_ROW + "String_Node_Str"+ JAVA9_TABLE_HEADER_ROW+ "String_Node_Str";
      log.error(message,e2);
      throw new RuntimeException(message,e2);
    }
  }
  try {
    List<?> headerRow=NodeTraverseHelper.getInstancesOf(table,clazz);
    Object colH=null;
    for (    Object tableHeaderRow : headerRow) {
      Method method=clazz.getMethod(GET_COLUMN_HEADER_FOR,TableColumnBase.class);
      colH=method.invoke(tableHeaderRow,column);
      if (colH != null) {
        if (relative) {
          return NodeBounds.getRelativeBounds((Node)colH,(Node)tableHeaderRow);
        }
        return NodeBounds.getAbsoluteBounds((Node)colH);
      }
    }
  }
 catch (  IllegalAccessException|IllegalArgumentException|InvocationTargetException|NoSuchMethodException|SecurityException e) {
    log.error("String_Node_Str",e);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param table the {@link TableView}
 * @param column the column number
 * @param relative should the calculation be relative or absolute
 * @return the {@link Rectangle} or null if it is not found
 */
public static Rectangle getNodeBoundsofHeader(Parent table,TableColumnBase<?,?> column,boolean relative){
  Class<?> clazz=null;
  try {
    clazz=Class.forName(JAVA8_TABLE_HEADER_ROW);
  }
 catch (  ClassNotFoundException e) {
    try {
      clazz=Class.forName(JAVA9_TABLE_HEADER_ROW);
    }
 catch (    ClassNotFoundException e2) {
      String message="String_Node_Str" + JAVA8_TABLE_HEADER_ROW + "String_Node_Str"+ JAVA9_TABLE_HEADER_ROW+ "String_Node_Str";
      log.error(message,e2);
      throw new RuntimeException(message,e2);
    }
  }
  try {
    List<?> headerRow=NodeTraverseHelper.getInstancesOf(table,clazz);
    Object colH=null;
    for (    Object tableHeaderRow : headerRow) {
      Method method=clazz.getDeclaredMethod(GET_COLUMN_HEADER_FOR,TableColumnBase.class);
      if (!method.isAccessible()) {
        method.setAccessible(true);
      }
      colH=method.invoke(tableHeaderRow,column);
      if (colH != null) {
        if (relative) {
          return NodeBounds.getRelativeBounds((Node)colH,(Node)tableHeaderRow);
        }
        return NodeBounds.getAbsoluteBounds((Node)colH);
      }
    }
  }
 catch (  IllegalAccessException|IllegalArgumentException|InvocationTargetException|NoSuchMethodException|SecurityException e) {
    log.error("String_Node_Str",e);
  }
  return null;
}
Program: 95318
Project: 95318
Buggy source:
/** 
 * Constructor
 * @param id The associated property controller
 * @param displayName  the name to display for the property
 * @param valuesArray the list of possible values to display in the combo box
 * @param validator for parameter value validation
 */
public ParamComboPropertyDescriptor(IPropertyController id,String displayName,String[] valuesArray,IParamValueValidator validator){
  super(id,displayName);
  m_dataValidator=validator;
  m_proposals=valuesArray;
}

Fixed version (ground truth):
/** 
 * Constructor
 * @param id The associated property controller
 * @param displayName  the name to display for the property
 * @param valuesArray the list of possible values to display in the combo box
 * @param validator for parameter value validation
 */
public ParamComboPropertyDescriptor(IPropertyController id,String displayName,Map<String,String> valuesArray,IParamValueValidator validator){
  super(id,displayName);
  m_dataValidator=validator;
  m_proposals=valuesArray;
}
Program: 95319
Project: 95319
Buggy source:
/** 
 * @param valueSet alueSet Source for returned values. May be <code>null</code>.
 * @return a {@link Map} with values as key and comments as value
 */
public static Map<String,String> getValuesWithComment(ParamValueSet valueSet){
  Map<String,String> valueToComment=new HashMap<>();
  if (valueSet == null) {
    return valueToComment;
  }
  Iterator<ValueSetElement> valueSetIter=valueSet.iterator();
  while (valueSetIter.hasNext()) {
    ValueSetElement value=valueSetIter.next();
    valueToComment.put(value.getValue(),value.getComment());
  }
  return valueToComment;
}

Fixed version (ground truth):
/** 
 * @param valueSet alueSet Source for returned values. May be <code>null</code>.
 * @return a {@link Map} with values as key and comments as value
 */
public static Map<String,String> getValuesWithComment(ParamValueSet valueSet){
  Map<String,String> valueToComment=new HashMap<>();
  if (valueSet == null) {
    return valueToComment;
  }
  Iterator<ValueSetElement> valueSetIter=valueSet.iterator();
  while (valueSetIter.hasNext()) {
    ValueSetElement value=valueSetIter.next();
    String comment=value.getComment();
    if (StringUtils.isEmpty(comment)) {
      comment=CompSystemI18n.getString(value.getDescriptionKey());
    }
    valueToComment.put(value.getValue(),comment);
  }
  return valueToComment;
}
Program: 95321
Project: 95321
Buggy source:
/** 
 * @return a List of PropertyDescriptors of parameters.
 */
protected List<IPropertyDescriptor> createParamDescriptors(){
  if (m_paramPropDescList.isEmpty()) {
    PropertyDescriptor propDes;
    final IParamNodePO paramNodePO=(IParamNodePO)getPoNode();
    List<IParamDescriptionPO> paramList=paramNodePO.getParameterList();
    IParamNameMapper activeParamNameMapper=getActiveParamNameMapper();
    for (    IParamDescriptionPO paramDescr : paramList) {
      ParamValueSet valueSet=ParamTextPropertyDescriptor.getValuesSet(paramNodePO,paramDescr.getUniqueId());
      propDes=TestDataControlFactory.createValuePropertyDescriptor(new ParameterValueController(this,paramDescr,activeParamNameMapper),getParameterNameDescr(paramDescr),ParamTextPropertyDescriptor.getValues(valueSet),valueSet != null ? valueSet.isCombinable() : false);
      propDes.setCategory(P_PARAMETER_CAT);
      propDes.setLabelProvider(new ParameterValueLabelProvider(INCOMPL_DATA_IMAGE));
      m_paramPropDescList.add(propDes);
    }
  }
  return m_paramPropDescList;
}

Fixed version (ground truth):
/** 
 * @return a List of PropertyDescriptors of parameters.
 */
protected List<IPropertyDescriptor> createParamDescriptors(){
  if (m_paramPropDescList.isEmpty()) {
    PropertyDescriptor propDes;
    final IParamNodePO paramNodePO=(IParamNodePO)getPoNode();
    List<IParamDescriptionPO> paramList=paramNodePO.getParameterList();
    IParamNameMapper activeParamNameMapper=getActiveParamNameMapper();
    for (    IParamDescriptionPO paramDescr : paramList) {
      ParamValueSet valueSet=ParamTextPropertyDescriptor.getValuesSet(paramNodePO,paramDescr.getUniqueId());
      propDes=TestDataControlFactory.createValuePropertyDescriptor(new ParameterValueController(this,paramDescr,activeParamNameMapper),getParameterNameDescr(paramDescr),ParamTextPropertyDescriptor.getValuesWithComment(valueSet),valueSet != null ? valueSet.isCombinable() : false);
      propDes.setCategory(P_PARAMETER_CAT);
      propDes.setLabelProvider(new ParameterValueLabelProvider(INCOMPL_DATA_IMAGE));
      m_paramPropDescList.add(propDes);
    }
  }
  return m_paramPropDescList;
}
Program: 95322
Project: 95322
Buggy source:
/** 
 * {@inheritDoc} 
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  addPropertyDescriptor(new TextPropertyDescriptor(new ElementNameController(),Messages.IterateGUIPropertySourceName));
  super.initPropDescriptor();
  for (  IParamDescriptionPO desc : getParamNode().getParameterList()) {
    ParameterValueController paramCtrl=new ParameterValueController(this,desc,getActiveParamNameMapper());
    PropertyDescriptor descr=TestDataControlFactory.createValuePropertyDescriptor(paramCtrl,getParameterNameDescr(desc),new String[0],false);
    ILabelProvider labelProvider;
    labelProvider=new ParameterValueLabelProvider(INCOMPL_DATA_IMAGE);
    descr.setLabelProvider(labelProvider);
    descr.setCategory("String_Node_Str");
    addPropertyDescriptor(descr);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  addPropertyDescriptor(new TextPropertyDescriptor(new ElementNameController(),Messages.IterateGUIPropertySourceName));
  super.initPropDescriptor();
  for (  IParamDescriptionPO desc : getParamNode().getParameterList()) {
    ParameterValueController paramCtrl=new ParameterValueController(this,desc,getActiveParamNameMapper());
    PropertyDescriptor descr=TestDataControlFactory.createValuePropertyDescriptor(paramCtrl,getParameterNameDescr(desc),new HashMap<>(),false);
    ILabelProvider labelProvider;
    labelProvider=new ParameterValueLabelProvider(INCOMPL_DATA_IMAGE);
    descr.setLabelProvider(labelProvider);
    descr.setCategory("String_Node_Str");
    addPropertyDescriptor(descr);
  }
}
Program: 95323
Project: 95323
Buggy source:
/** 
 * Initializes the parameter property descriptors, if needed, and adds them to the given list. The contents of the list are then added to the overall list of property descriptors.
 */
private void initParameterPropDescriptors(){
  List<IPropertyDescriptor> paramPropDescList=new ArrayList<IPropertyDescriptor>();
  List<IParamDescriptionPO> paramList=((IParamNodePO)getPoNode()).getParameterList();
  IParamNameMapper activeParamNameMapper=getActiveParamNameMapper();
  for (  IParamDescriptionPO paramDescr : paramList) {
    PropertyDescriptor propDes=TestDataControlFactory.createValuePropertyDescriptor(new ParameterValueController(this,paramDescr,activeParamNameMapper),getParameterNameDescr(paramDescr),new String[0],false);
    propDes.setCategory(P_PARAMETER_CAT);
    propDes.setLabelProvider(new ParameterValueLabelProvider(WARNING_IMAGE));
    paramPropDescList.add(propDes);
  }
  addPropertyDescriptor(paramPropDescList);
}

Fixed version (ground truth):
/** 
 * Initializes the parameter property descriptors, if needed, and adds them to the given list. The contents of the list are then added to the overall list of property descriptors.
 */
private void initParameterPropDescriptors(){
  List<IPropertyDescriptor> paramPropDescList=new ArrayList<IPropertyDescriptor>();
  List<IParamDescriptionPO> paramList=((IParamNodePO)getPoNode()).getParameterList();
  IParamNameMapper activeParamNameMapper=getActiveParamNameMapper();
  for (  IParamDescriptionPO paramDescr : paramList) {
    PropertyDescriptor propDes=TestDataControlFactory.createValuePropertyDescriptor(new ParameterValueController(this,paramDescr,activeParamNameMapper),getParameterNameDescr(paramDescr),new HashMap<>(),false);
    propDes.setCategory(P_PARAMETER_CAT);
    propDes.setLabelProvider(new ParameterValueLabelProvider(WARNING_IMAGE));
    paramPropDescList.add(propDes);
  }
  addPropertyDescriptor(paramPropDescList);
}
Program: 95324
Project: 95324
Buggy source:
/** 
 * Creates a PropertyDescriptor depending on the given paramValController,  displayName and values array.<br> The values parameter is to get a ComboBoxPropertyDescriptor if array.length > 0.<br> For all other PropertyDescriptors set an empty String-Array into this parameter.
 * @param paramValController an AbstractParamValueController.
 * @param displayName the display name of the PropertyDescriptor
 * @param values The values parameter is to get a ComboBoxPropertyDescriptorif values.length > 0.<br> For all other PropertyDescriptors set an empty  String-Array into this parameter!
 * @param valuesAreCombinable Whether combinations of the supplied values are allowed.
 * @return a PropertyDescriptor
 */
public static PropertyDescriptor createValuePropertyDescriptor(AbstractParamValueController paramValController,String displayName,String[] values,boolean valuesAreCombinable){
  final String paramType=paramValController.getParamDesc().getType();
  if (values.length > 0) {
    return new ParamComboPropertyDescriptor(paramValController,displayName,values,createParamValueValidator(TestDataConstants.STR,valuesAreCombinable,values));
  }
  if (TestDataConstants.BOOLEAN.equals(paramType)) {
    return new ParamTextPropertyDescriptor(paramValController,displayName,createParamValueValidator(TestDataConstants.STR,valuesAreCombinable,BOOLEAN_VALUES));
  }
  return new ParamTextPropertyDescriptor(paramValController,displayName,createParamValueValidator(paramType,valuesAreCombinable));
}

Fixed version (ground truth):
/** 
 * Creates a PropertyDescriptor depending on the given paramValController,  displayName and values array.<br> The values parameter is to get a ComboBoxPropertyDescriptor if array.length > 0.<br> For all other PropertyDescriptors set an empty String-Array into this parameter.
 * @param paramValController an AbstractParamValueController.
 * @param displayName the display name of the PropertyDescriptor
 * @param values The values parameter is to get a ComboBoxPropertyDescriptorif values are not empty<br> For all other PropertyDescriptors set an empty  String,String Map into this parameter!
 * @param valuesAreCombinable Whether combinations of the supplied values are allowed.
 * @return a PropertyDescriptor
 */
public static PropertyDescriptor createValuePropertyDescriptor(AbstractParamValueController paramValController,String displayName,Map<String,String> values,boolean valuesAreCombinable){
  final String paramType=paramValController.getParamDesc().getType();
  if (!values.isEmpty()) {
    return new ParamComboPropertyDescriptor(paramValController,displayName,values,createParamValueValidator(TestDataConstants.STR,valuesAreCombinable,values.keySet().toArray(new String[0])));
  }
  if (TestDataConstants.BOOLEAN.equals(paramType)) {
    return new ParamTextPropertyDescriptor(paramValController,displayName,createParamValueValidator(TestDataConstants.STR,valuesAreCombinable,BOOLEAN_VALUES));
  }
  return new ParamTextPropertyDescriptor(paramValController,displayName,createParamValueValidator(paramType,valuesAreCombinable));
}
Program: 95326
Project: 95326
Buggy source:
/** 
 * {@inheritDoc}
 */
public void createPartControl(Composite parent){
  super.createPartControl(parent);
  parent.setLayout(new FillLayout());
  m_scrollComposite=new ScrolledComposite(parent,SWT.V_SCROLL | SWT.H_SCROLL);
  m_child=new Composite(m_scrollComposite,SWT.NONE);
  m_child.setLayout(new FillLayout());
  m_logWidget=new Text(m_child,SWT.MULTI | SWT.BORDER | SWT.H_SCROLL| SWT.V_SCROLL);
  m_logWidget.setEditable(false);
  m_scrollComposite.setExpandHorizontal(true);
  m_scrollComposite.setExpandVertical(true);
  m_scrollComposite.setMinSize(m_child.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  m_scrollComposite.setContent(m_child);
  MenuManager contextManager=new MenuManager();
  contextManager.setRemoveAllWhenShown(true);
  Menu contextMenu=contextManager.createContextMenu(m_logWidget);
  m_logWidget.setMenu(contextMenu);
  getSite().registerContextMenu(contextManager,this);
  handleSelection(getSelectionService().getSelection());
  getSite().setSelectionProvider(this);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public void createPartControl(Composite parent){
  super.createPartControl(parent);
  parent.setLayout(new FillLayout());
  m_scrollComposite=new ScrolledComposite(parent,SWT.V_SCROLL | SWT.H_SCROLL);
  m_child=new Composite(m_scrollComposite,SWT.NONE);
  m_child.setLayout(new FillLayout());
  m_logWidget=new Text(m_child,SWT.MULTI | SWT.BORDER | SWT.H_SCROLL| SWT.V_SCROLL);
  m_logWidget.setEditable(false);
  m_scrollComposite.setExpandHorizontal(true);
  m_scrollComposite.setExpandVertical(true);
  m_scrollComposite.setMinSize(m_child.computeSize(SWT.DEFAULT,SWT.DEFAULT));
  m_scrollComposite.setContent(m_child);
  MenuManager contextManager=new MenuManager();
  contextManager.setRemoveAllWhenShown(true);
  Menu contextMenu=contextManager.createContextMenu(m_logWidget);
  m_logWidget.setMenu(contextMenu);
  getSite().registerContextMenu(contextManager,this);
  super.createPartControl(parent);
  handleSelection(getSelectionService().getSelection());
  getSite().setSelectionProvider(this);
}
Program: 95327
Project: 95327
Buggy source:
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=InspectedComponent.getInstance().getCompId();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new JBPropertyDescriptor(new OMTechNameGUIPropertySource.ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=InspectedComponent.getInstance().getCompId();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new PropertyDescriptor(new OMTechNameGUIPropertySource.ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}
Program: 95328
Project: 95328
Buggy source:
/** 
 * Initializes the tracked changes property descriptor
 */
protected void initTrackedChangesPropDescriptor(){
  SortedMap<Long,String> changes=getPoNode().getTrackedChanges();
  int i=0;
  for (  Object o : changes.keySet()) {
    if (o instanceof Long) {
      Long key=(Long)o;
      JBPropertyDescriptor propDes=new JBPropertyDescriptor(new TrackedChangesValueController(i),formatDateForTrackedChanges(key));
      propDes.setCategory(P_TRACKED_CHANGES_CAT);
      addPropertyDescriptor(propDes);
      i++;
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the tracked changes property descriptor
 */
protected void initTrackedChangesPropDescriptor(){
  SortedMap<Long,String> changes=getPoNode().getTrackedChanges();
  int i=0;
  for (  Object o : changes.keySet()) {
    if (o instanceof Long) {
      Long key=(Long)o;
      PropertyDescriptor propDes=new PropertyDescriptor(new TrackedChangesValueController(i),formatDateForTrackedChanges(key));
      propDes.setCategory(P_TRACKED_CHANGES_CAT);
      addPropertyDescriptor(propDes);
      i++;
    }
  }
}
Program: 95330
Project: 95330
Buggy source:
/** 
 * create property descriptor 
 */
private void createSpecNamePropertyDescriptor(){
  if (m_specNamePropDesc == null) {
    PropertyDescriptor propDes=new JBPropertyDescriptor(new SpecNameController(),P_SPECNAME_DISPLAY_NAME);
    propDes.setLabelProvider(new DisabledLabelProvider());
    m_specNamePropDesc=propDes;
  }
  addPropertyDescriptor(m_specNamePropDesc);
}

Fixed version (ground truth):
/** 
 * create property descriptor 
 */
private void createSpecNamePropertyDescriptor(){
  if (m_specNamePropDesc == null) {
    PropertyDescriptor propDes=new PropertyDescriptor(new SpecNameController(),P_SPECNAME_DISPLAY_NAME);
    propDes.setLabelProvider(new DisabledLabelProvider());
    m_specNamePropDesc=propDes;
  }
  addPropertyDescriptor(m_specNamePropDesc);
}
Program: 95331
Project: 95331
Buggy source:
/** 
 * Initializes the EventTypes.
 * @return a String-Array of Event Types.
 */
private static String[] initEventTypes(){
  Set mapKeySet=ComponentBuilder.getInstance().getCompSystem().getEventTypes().keySet();
  String[] eventTypes=new String[mapKeySet.size()];
  int i=0;
  final Map<String,String> stringHelperMap=StringHelper.getInstance().getMap();
  for (  Object object : mapKeySet) {
    eventTypes[i]=stringHelperMap.get(object.toString());
    i++;
  }
  return eventTypes;
}

Fixed version (ground truth):
/** 
 * Initializes the EventTypes.
 * @return a String-Array of Event Types.
 */
private static String[] initEventTypes(){
  Set<?> mapKeySet=ComponentBuilder.getInstance().getCompSystem().getEventTypes().keySet();
  String[] eventTypes=new String[mapKeySet.size()];
  int i=0;
  final Map<String,String> stringHelperMap=StringHelper.getInstance().getMap();
  for (  Object object : mapKeySet) {
    eventTypes[i]=stringHelperMap.get(object.toString());
    i++;
  }
  return eventTypes;
}
Program: 95332
Project: 95332
Buggy source:
/** 
 * create property descriptor 
 */
private void createTaskIdPropertyDescriptor(){
  if (getTaskIdPropDesc() == null) {
    JBPropertyDescriptor taskIdPropDesc=new JBPropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
    taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
    setTaskIdPropDesc(taskIdPropDesc);
  }
  addPropertyDescriptor(getTaskIdPropDesc());
}

Fixed version (ground truth):
/** 
 * create property descriptor 
 */
private void createTaskIdPropertyDescriptor(){
  if (getTaskIdPropDesc() == null) {
    PropertyDescriptor taskIdPropDesc=new PropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
    taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
    setTaskIdPropDesc(taskIdPropDesc);
  }
  addPropertyDescriptor(getTaskIdPropDesc());
}
Program: 95334
Project: 95334
Buggy source:
/** 
 * Property Descriptor for the Task ID
 */
private void createJPropertyDescriptor(){
  JBPropertyDescriptor taskIdPropDesc=new JBPropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
  taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
  setTaskIdPropDesc(taskIdPropDesc);
}

Fixed version (ground truth):
/** 
 * Property Descriptor for the Task ID
 */
private void createJPropertyDescriptor(){
  PropertyDescriptor taskIdPropDesc=new PropertyDescriptor(new ReadOnlyTaskIdController(),org.eclipse.jubula.client.ui.i18n.Messages.AbstractGuiNodePropertySourceTaskId);
  taskIdPropDesc.setLabelProvider(new DisabledLabelProvider());
  setTaskIdPropDesc(taskIdPropDesc);
}
Program: 95335
Project: 95335
Buggy source:
/** 
 * Inits the PropertyDescriptors
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  JBPropertyDescriptor propDes=null;
  propDes=new JBPropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ComponentTypeController(),P_ELEMENT_DISPLAY_COMPTYPE);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new JBPropertyDescriptor(new ParentProjectController(),P_ELEMENT_DISPLAY_PARENTPROJECT);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
}

Fixed version (ground truth):
/** 
 * Inits the PropertyDescriptors
 */
protected void initPropDescriptor(){
  clearPropertyDescriptors();
  PropertyDescriptor propDes=null;
  propDes=new PropertyDescriptor(new ComponentNameController(),P_ELEMENT_DISPLAY_COMPNAME);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ComponentTypeController(),P_ELEMENT_DISPLAY_COMPTYPE);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
  propDes=new PropertyDescriptor(new ParentProjectController(),P_ELEMENT_DISPLAY_PARENTPROJECT);
  propDes.setCategory(P_COMPONENT_CAT);
  propDes.setLabelProvider(new PropertyControllerLabelProvider());
  addPropertyDescriptor(propDes);
}
Program: 95336
Project: 95336
Buggy source:
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=getNode().getCompIdentifier();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        JBPropertyDescriptor propDes=new JBPropertyDescriptor(new ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * initializes the ComponentProperties
 */
private void initComponentProperties(){
  IComponentIdentifier compId=getNode().getCompIdentifier();
  if (compId != null) {
    Map<String,String> componentProperties=compId.getComponentPropertiesMap();
    if (componentProperties != null) {
      for (      String key : componentProperties.keySet()) {
        PropertyDescriptor propDes=new PropertyDescriptor(new ComponentPropertiesController(key,compId),key);
        propDes.setCategory(P_ELEMENT_DISPLAY_PROPERTY_INFORMATION);
        addPropertyDescriptor(propDes);
      }
    }
  }
}