nus-yam/ex-repair huggingface dataset:
Program: 103737
Project: 103737
Buggy source:
public Object getWizardForm(){
  return selectAccountPanel;
}

Fixed version (ground truth):
/** 
 * Returns the graphical component corresponding to this wizard page.
 * @return the graphical component corresponding to this wizard page
 */
public Object getWizardForm(){
  return selectAccountPanel;
}
Program: 103738
Project: 103738
Buggy source:
public void commitPage(){
  selectAccountPanel.initSelectedAccount();
}

Fixed version (ground truth):
/** 
 * Commits all data from the form before going to the next page.
 */
public void commitPage(){
  selectAccountPanel.initSelectedAccount();
}
Program: 103739
Project: 103739
Buggy source:
/** 
 * Creates an instance of <tt>AddContactWizardPage1</tt>.
 * @param newContact An object that collects all user choices through thewizard.
 * @param providerList The list of available<tt>ProtocolProviderServices</tt>, from which the user could select.
 */
public AddContactWizardPage1(WizardContainer wizard,NewContact newContact,Iterator<ProtocolProviderService> providerList){
  this.wizard=wizard;
  selectAccountPanel=new SelectAccountPanel(newContact,providerList);
  selectAccountPanel.addListSelectionListener(this);
}

Fixed version (ground truth):
/** 
 * Creates an instance of <tt>AddContactWizardPage1</tt>.
 * @param wizard the parent wizard
 * @param newContact An object that collects all user choices through thewizard.
 * @param providerList The list of available<tt>ProtocolProviderServices</tt>, from which the user could select.
 */
public AddContactWizardPage1(WizardContainer wizard,NewContact newContact,Iterator<ProtocolProviderService> providerList){
  this.wizard=wizard;
  selectAccountPanel=new SelectAccountPanel(newContact,providerList);
  selectAccountPanel.addListSelectionListener(this);
}
Program: 103740
Project: 103740
Buggy source:
public Object getNextPageIdentifier(){
  return AddContactWizardPage2.IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getNextPageIdentifier</code> to return the next identifier.
 * @return the identifier of the next wizard page.
 */
public Object getNextPageIdentifier(){
  return AddContactWizardPage2.IDENTIFIER;
}
Program: 103741
Project: 103741
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier, which is null as this is the first wizard page.
 * @return the identifier of the previous page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103742
Project: 103742
Buggy source:
/** 
 * Implements the <code>WizardPage.getNextPageIdentifier</code> to return the next page identifier - the summary page.
 */
public Object getNextPageIdentifier(){
  return nextPageIdentifier;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getNextPageIdentifier</code> to return the next identifier - the summary page.
 */
public Object getNextPageIdentifier(){
  return nextPageIdentifier;
}
Program: 103743
Project: 103743
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return Returns the identifier of the previous page of the wizard.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier, which is null as this is the first wizard page.
 * @return the identifier of the previous page of the wizard.
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103744
Project: 103744
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page.
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103745
Project: 103745
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page.
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103746
Project: 103746
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the id of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the id of the previous wizard page.
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103747
Project: 103747
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103748
Project: 103748
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the back page identifier
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103749
Project: 103749
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103750
Project: 103750
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the id of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103751
Project: 103751
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103752
Project: 103752
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103753
Project: 103753
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103754
Project: 103754
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103755
Project: 103755
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103756
Project: 103756
Buggy source:
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the next back identifier - the default page.
 * @return the identifier of the default wizard page.
 */
public Object getBackPageIdentifier(){
  return WizardPage.DEFAULT_PAGE_IDENTIFIER;
}

Fixed version (ground truth):
/** 
 * Implements the <code>WizardPage.getBackPageIdentifier</code> to return the back identifier. In this case it's null because this is the first wizard page.
 * @return the identifier of the previous wizard page
 */
public Object getBackPageIdentifier(){
  return null;
}
Program: 103757
Project: 103757
Buggy source:
/** 
 * Requests the focus in the write message area.
 */
public void requestFocusInWriteArea(){
  getChatWritePanel().getEditorPane().requestFocusInWindow();
}

Fixed version (ground truth):
/** 
 * Requests the focus in the write message area.
 */
public void requestFocusInWriteArea(){
  getChatWritePanel().getEditorPane().requestFocus();
}
Program: 103759
Project: 103759
Buggy source:
/** 
 * Adds the specified protocol specific contact to the list of contacts merged in this meta contact. The method also keeps up to date the contactsOnline field which is used in the compareTo() method.
 * @param contact the protocol specific Contact to add.
 */
void addProtoContact(Contact contact){
synchronized (getParentGroupModLock()) {
    if (parentGroup != null) {
      parentGroup.lightRemoveMetaContact(this);
    }
    contactsOnline+=contact.getPresenceStatus().isOnline() ? 1 : 0;
    this.protoContacts.add(contact);
    if (this.protoContacts.size() == 1 && (this.displayName == null || this.displayName.trim().length() == 0)) {
      this.displayName=contact.getDisplayName();
    }
    if (parentGroup != null) {
      parentGroup.lightAddMetaContact(this);
    }
  }
}

Fixed version (ground truth):
/** 
 * Adds the specified protocol specific contact to the list of contacts merged in this meta contact. The method also keeps up to date the contactsOnline field which is used in the compareTo() method.
 * @param contact the protocol specific Contact to add.
 */
void addProtoContact(Contact contact){
synchronized (getParentGroupModLock()) {
    if (parentGroup != null) {
      parentGroup.lightRemoveMetaContact(this);
    }
    contactsOnline+=contact.getPresenceStatus().isOnline() ? 1 : 0;
    this.protoContacts.add(contact);
    defaultContact=null;
    if (this.protoContacts.size() == 1 && (this.displayName == null || this.displayName.trim().length() == 0)) {
      this.displayName=contact.getDisplayName();
    }
    if (parentGroup != null) {
      parentGroup.lightAddMetaContact(this);
    }
  }
}
Program: 103760
Project: 103760
Buggy source:
/** 
 * Creates the corresponding <tt>MetaContactPropertyChangeEvent</tt> instance and notifies all <tt>MetaContactListListener</tt>s that a MetaContact has been modified.
 * @param event the event to dispatch.
 */
void fireMetaContactEvent(MetaContactPropertyChangeEvent event){
  logger.trace("String_Node_Str" + event);
  for (  MetaContactListListener listener : getMetaContactListListeners()) {
    if (event instanceof MetaContactMovedEvent) {
      listener.metaContactMoved((MetaContactMovedEvent)event);
    }
 else     if (event instanceof MetaContactRenamedEvent) {
      listener.metaContactRenamed((MetaContactRenamedEvent)event);
    }
 else     if (event instanceof MetaContactModifiedEvent) {
      listener.metaContactModified((MetaContactModifiedEvent)event);
    }
  }
}

Fixed version (ground truth):
/** 
 * Creates the corresponding <tt>MetaContactPropertyChangeEvent</tt> instance and notifies all <tt>MetaContactListListener</tt>s that a MetaContact has been modified.
 * @param event the event to dispatch.
 */
void fireMetaContactEvent(MetaContactPropertyChangeEvent event){
  logger.trace("String_Node_Str" + event);
  for (  MetaContactListListener listener : getMetaContactListListeners()) {
    if (event instanceof MetaContactMovedEvent) {
      listener.metaContactMoved((MetaContactMovedEvent)event);
    }
 else     if (event instanceof MetaContactRenamedEvent) {
      listener.metaContactRenamed((MetaContactRenamedEvent)event);
    }
 else     if (event instanceof MetaContactModifiedEvent) {
      listener.metaContactModified((MetaContactModifiedEvent)event);
    }
 else     if (event instanceof MetaContactAvatarUpdateEvent) {
      listener.metaContactAvatarUpdated((MetaContactAvatarUpdateEvent)event);
    }
  }
}
Program: 103761
Project: 103761
Buggy source:
/** 
 * Sets the avatar for <tt>metaContact</tt> to be <tt>newAvatar</tt>. <p>
 * @param metaContact the <tt>MetaContact</tt> that change avatar 
 * @param protoContact the <tt>Contact> that change avatar
 * @param newAvatar avatar image bytes
 * @throws IllegalArgumentException if <tt>metaContact</tt> is not aninstance that belongs to the underlying implementation.
 */
public void changeMetaContactAvatar(MetaContact metaContact,Contact protoContact,byte[] newAvatar) throws IllegalArgumentException {
  if (!(metaContact instanceof MetaContactImpl)) {
    throw new IllegalArgumentException(metaContact + "String_Node_Str");
  }
  byte[] oldAvatar=metaContact.getAvatar(true);
  ((MetaContactImpl)metaContact).cacheAvatar(protoContact,newAvatar);
  fireMetaContactEvent(new MetaContactAvatarUpdate(metaContact,oldAvatar,newAvatar));
}

Fixed version (ground truth):
/** 
 * Sets the avatar for <tt>metaContact</tt> to be <tt>newAvatar</tt>. <p>
 * @param metaContact the <tt>MetaContact</tt> that change avatar 
 * @param protoContact the <tt>Contact> that change avatar
 * @param newAvatar avatar image bytes
 * @throws IllegalArgumentException if <tt>metaContact</tt> is not aninstance that belongs to the underlying implementation.
 */
public void changeMetaContactAvatar(MetaContact metaContact,Contact protoContact,byte[] newAvatar) throws IllegalArgumentException {
  if (!(metaContact instanceof MetaContactImpl)) {
    throw new IllegalArgumentException(metaContact + "String_Node_Str");
  }
  byte[] oldAvatar=metaContact.getAvatar(true);
  ((MetaContactImpl)metaContact).cacheAvatar(protoContact,newAvatar);
  fireMetaContactEvent(new MetaContactAvatarUpdateEvent(metaContact,oldAvatar,newAvatar));
}
Program: 103763
Project: 103763
Buggy source:
/** 
 * Updates the active state of the contact node corresponding to the given <tt>MetaContact</tt>.
 * @param metaContact the <tt>MetaContact</tt> to update
 * @param isActive indicates if the node should be set to active
 */
public void setActiveContact(MetaContact metaContact,boolean isActive){
  ContactNode contactNode=treeModel.findContactNodeByMetaContact(metaContact);
  if (contactNode != null)   contactNode.setActive(isActive);
  if (isActive) {
    activeContacts.add(contactNode);
  }
 else   activeContacts.remove(contactNode);
}

Fixed version (ground truth):
/** 
 * Updates the active state of the contact node corresponding to the given <tt>MetaContact</tt>.
 * @param metaContact the <tt>MetaContact</tt> to update
 * @param isActive indicates if the node should be set to active
 */
public void setActiveContact(MetaContact metaContact,boolean isActive){
  ContactNode contactNode=treeModel.findContactNodeByMetaContact(metaContact);
  if (contactNode != null) {
    contactNode.setActive(isActive);
    if (isActive) {
      activeContacts.add(contactNode);
    }
 else     activeContacts.remove(contactNode);
    treeModel.nodeChanged(contactNode);
  }
}
Program: 103764
Project: 103764
Buggy source:
/** 
 * Deactivates all active contacts.
 */
public void deactivateAll(){
  for (  ContactNode contactNode : activeContacts) {
    contactNode.setActive(false);
  }
  activeContacts.clear();
}

Fixed version (ground truth):
/** 
 * Deactivates all active contacts.
 */
public void deactivateAll(){
  for (  ContactNode contactNode : activeContacts) {
    if (contactNode != null)     contactNode.setActive(false);
  }
  activeContacts.clear();
}
Program: 103765
Project: 103765
Buggy source:
/** 
 * Creates the <tt>SearchFilter</tt> by specifying the string used for filtering.
 * @param filterString the String used for filtering
 */
public void setFilterString(String filterString){
  filterString=Pattern.quote(filterString);
  this.filterPattern=Pattern.compile(filterString,Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
}

Fixed version (ground truth):
/** 
 * Creates the <tt>SearchFilter</tt> by specifying the string used for filtering.
 * @param filterString the String used for filtering
 */
public void setFilterString(String filterString){
  filterString=Pattern.quote(filterString);
  this.filterPattern=Pattern.compile(filterString,Pattern.MULTILINE | Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
}
Program: 103766
Project: 103766
Buggy source:
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (jabberProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  if (!jabberProvider.isRegistered())   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (jabberProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  if (!jabberProvider.isRegistered()) {
    if (opSetPersPresence.getPresenceStatus().isOnline()) {
      opSetPersPresence.fireProviderStatusChangeEvent(opSetPersPresence.getPresenceStatus(),jabberProvider.getJabberStatusEnum().getStatus(JabberStatusEnum.OFFLINE));
    }
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
}
Program: 103767
Project: 103767
Buggy source:
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (jabberProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
 else   if (!jabberProvider.isRegistered())   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (jabberProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
 else   if (!jabberProvider.isRegistered()) {
    if (opSetPersPresence.getPresenceStatus().isOnline()) {
      opSetPersPresence.fireProviderStatusChangeEvent(opSetPersPresence.getPresenceStatus(),jabberProvider.getJabberStatusEnum().getStatus(JabberStatusEnum.OFFLINE));
    }
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
}
Program: 103768
Project: 103768
Buggy source:
public void processPacket(Packet packet){
  if (!(packet instanceof StreamInitiation))   return;
  logger.debug("String_Node_Str");
  StreamInitiation streamInitiation=(StreamInitiation)packet;
  FileTransferRequest jabberRequest=new FileTransferRequest(manager,streamInitiation);
  IncomingFileTransferRequestJabberImpl incomingFileTransferRequest=new IncomingFileTransferRequestJabberImpl(jabberProvider,OperationSetFileTransferJabberImpl.this,jabberRequest);
  org.jivesoftware.smackx.packet.StreamInitiation.File file=streamInitiation.getFile();
  boolean isThumbnailedFile=false;
  if (file instanceof FileElement) {
    ThumbnailElement thumbnailElement=((FileElement)file).getThumbnailElement();
    if (thumbnailElement != null) {
      isThumbnailedFile=true;
      incomingFileTransferRequest.createThumbnailListeners(thumbnailElement.getCid());
      ThumbnailIQ thumbnailRequest=new ThumbnailIQ(streamInitiation.getTo(),streamInitiation.getFrom(),thumbnailElement.getCid(),IQ.Type.GET);
      logger.debug("String_Node_Str" + thumbnailRequest.toXML());
      jabberProvider.getConnection().sendPacket(thumbnailRequest);
    }
  }
  if (!isThumbnailedFile) {
    FileTransferRequestEvent fileTransferRequestEvent=new FileTransferRequestEvent(OperationSetFileTransferJabberImpl.this,incomingFileTransferRequest,new Date());
    fireFileTransferRequest(fileTransferRequestEvent);
  }
}

Fixed version (ground truth):
/** 
 * Listens for file transfer packets.
 * @param packet
 */
public void processPacket(Packet packet){
  if (!(packet instanceof StreamInitiation))   return;
  logger.debug("String_Node_Str");
  StreamInitiation streamInitiation=(StreamInitiation)packet;
  FileTransferRequest jabberRequest=new FileTransferRequest(manager,streamInitiation);
  IncomingFileTransferRequestJabberImpl incomingFileTransferRequest=new IncomingFileTransferRequestJabberImpl(jabberProvider,OperationSetFileTransferJabberImpl.this,jabberRequest);
  org.jivesoftware.smackx.packet.StreamInitiation.File file=streamInitiation.getFile();
  boolean isThumbnailedFile=false;
  if (file instanceof FileElement) {
    ThumbnailElement thumbnailElement=((FileElement)file).getThumbnailElement();
    if (thumbnailElement != null) {
      isThumbnailedFile=true;
      incomingFileTransferRequest.createThumbnailListeners(thumbnailElement.getCid());
      ThumbnailIQ thumbnailRequest=new ThumbnailIQ(streamInitiation.getTo(),streamInitiation.getFrom(),thumbnailElement.getCid(),IQ.Type.GET);
      logger.debug("String_Node_Str" + thumbnailRequest.toXML());
      jabberProvider.getConnection().sendPacket(thumbnailRequest);
    }
  }
  if (!isThumbnailedFile) {
    FileTransferRequestEvent fileTransferRequestEvent=new FileTransferRequestEvent(OperationSetFileTransferJabberImpl.this,incomingFileTransferRequest,new Date());
    fireFileTransferRequest(fileTransferRequestEvent);
  }
}
Program: 103770
Project: 103770
Buggy source:
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (parentProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  if (!parentProvider.isRegistered())   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Utility method throwing an exception if the stack is not properly initialized.
 * @throws java.lang.IllegalStateException if the underlying stack isnot registered and initialized.
 */
private void assertConnected() throws IllegalStateException {
  if (parentProvider == null)   throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  if (!parentProvider.isRegistered()) {
    if (currentStatus.isOnline()) {
      fireProviderStatusChangeEvent(currentStatus,parentProvider.getJabberStatusEnum().getStatus(JabberStatusEnum.OFFLINE));
    }
    throw new IllegalStateException("String_Node_Str" + "String_Node_Str");
  }
}
Program: 103772
Project: 103772
Buggy source:
public void logException(Exception ex){
  logger.warn("String_Node_Str" + ex,ex);
}

Fixed version (ground truth):
/** 
 * Prints the specified <tt>exception</tt> as a warning.
 * @param exception the <tt>Exception</tt> we are passed from jain-sip.
 */
public void logException(Exception exception){
  logger.warn("String_Node_Str" + exception,exception);
}
Program: 103773
Project: 103773
Buggy source:
public void closeLogFile(){
}

Fixed version (ground truth):
/** 
 * Dummy implementation for   {@link ServerLogger#closeLogFile()}
 */
public void closeLogFile(){
}
Program: 103774
Project: 103774
Buggy source:
public void logMessage(SIPMessage message,String from,String to,String status,boolean sender){
  if (sender) {
    logger.trace("String_Node_Str" + from + "String_Node_Str"+ to+ "String_Node_Str"+ status+ "String_Node_Str"+ message);
  }
 else {
    logger.trace("String_Node_Str" + from + "String_Node_Str"+ to+ "String_Node_Str"+ status+ "String_Node_Str"+ message);
  }
}

Fixed version (ground truth):
/** 
 * Logs the specified message and details.
 * @param message the message to log
 * @param from the message sender
 * @param to the message addressee
 * @param status message status
 * @param sender determines whether we are the origin of this message.
 */
public void logMessage(SIPMessage message,String from,String to,String status,boolean sender){
  if (sender) {
    logger.trace("String_Node_Str" + from + "String_Node_Str"+ to+ "String_Node_Str"+ status+ "String_Node_Str"+ message);
  }
 else {
    logger.trace("String_Node_Str" + from + "String_Node_Str"+ to+ "String_Node_Str"+ status+ "String_Node_Str"+ message);
  }
}
Program: 103775
Project: 103775
Buggy source:
/** 
 * logs a stack trace. This helps to look at the stack frame.
 */
public void logStackTrace(int traceLevel){
  logger.trace("String_Node_Str",new Throwable());
}

Fixed version (ground truth):
/** 
 * logs a stack trace. This helps to look at the stack frame.
 * @param traceLevel currently unused.
 */
public void logStackTrace(int traceLevel){
  logger.trace("String_Node_Str",new Throwable());
}
Program: 103776
Project: 103776
Buggy source:
public void setStackProperties(Properties stackProperties){
}

Fixed version (ground truth):
/** 
 * Dummy implementation for   {@link ServerLogger#setStackProperties(Properties)}
 */
public void setStackProperties(Properties stackProperties){
}
Program: 103777
Project: 103777
Buggy source:
public void setBuildTimeStamp(String buildTimeStamp){
  logger.trace("String_Node_Str" + buildTimeStamp);
}

Fixed version (ground truth):
/** 
 * Logs the build time stamp of the jain-sip reference implementation.
 * @param buildTimeStamp the build time stamp of the jain-sip referenceimplementation.
 */
public void setBuildTimeStamp(String buildTimeStamp){
  logger.trace("String_Node_Str" + buildTimeStamp);
}
Program: 103778
Project: 103778
Buggy source:
/** 
 * Return true/false if logging is enabled at a given level.
 * @param logLevel the level that we'd like to check loggability for.
 */
public boolean isLoggingEnabled(int logLevel){
  return true;
}

Fixed version (ground truth):
/** 
 * Return true/false if logging is enabled at a given level.
 * @param logLevel the level that we'd like to check loggability for.
 * @return always <tt>true</tt> regardless of <tt>logLevel</tt>'s value.
 */
public boolean isLoggingEnabled(int logLevel){
  return true;
}
Program: 103779
Project: 103779
Buggy source:
public void setSipStack(SipStack sipStack){
}

Fixed version (ground truth):
/** 
 * A dummy implementation.
 * @param sipStack ignored;
 */
public void setSipStack(SipStack sipStack){
}
Program: 103782
Project: 103782
Buggy source:
/** 
 * Returns a default contact for a specific operation (call, file transfer, IM ...)
 * @param operationSet the operation for which the default contact is needed
 * @return the default contact for the specified operation.
 */
public Contact getDefaultContact(Class<? extends OperationSet> operationSet){
  Contact defaultOpSetContact=null;
  if (getDefaultContact().getProtocolProvider().getOperationSet(operationSet) != null) {
    defaultOpSetContact=getDefaultContact();
  }
 else {
    for (    Contact protoContact : protoContacts) {
      PresenceStatus currentStatus=null;
      if (protoContact.getProtocolProvider().getOperationSet(operationSet) != null) {
        PresenceStatus contactStatus=protoContact.getPresenceStatus();
        if (currentStatus != null) {
          if (currentStatus.getStatus() < contactStatus.getStatus()) {
            currentStatus=contactStatus;
            defaultOpSetContact=protoContact;
          }
        }
 else {
          currentStatus=contactStatus;
          defaultOpSetContact=protoContact;
        }
      }
    }
  }
  return defaultOpSetContact;
}

Fixed version (ground truth):
/** 
 * Returns a default contact for a specific operation (call, file transfer, IM ...)
 * @param operationSet the operation for which the default contact is needed
 * @return the default contact for the specified operation.
 */
public Contact getDefaultContact(Class<? extends OperationSet> operationSet){
  Contact defaultOpSetContact=null;
  Contact defaultContact=getDefaultContact();
  if (defaultContact != null && defaultContact.getProtocolProvider().getOperationSet(operationSet) != null) {
    defaultOpSetContact=getDefaultContact();
  }
 else {
    for (    Contact protoContact : protoContacts) {
      PresenceStatus currentStatus=null;
      if (protoContact.getProtocolProvider().getOperationSet(operationSet) != null) {
        PresenceStatus contactStatus=protoContact.getPresenceStatus();
        if (currentStatus != null) {
          if (currentStatus.getStatus() < contactStatus.getStatus()) {
            currentStatus=contactStatus;
            defaultOpSetContact=protoContact;
          }
        }
 else {
          currentStatus=contactStatus;
          defaultOpSetContact=protoContact;
        }
      }
    }
  }
  return defaultOpSetContact;
}
Program: 103783
Project: 103783
Buggy source:
@Override public int getMaxSize(){
  return this.maxSize;
}

Fixed version (ground truth):
public int getMaxSize(){
  return this.maxSize;
}
Program: 103784
Project: 103784
Buggy source:
/** 
 * Notifies all registered listeners of the new event.
 * @param newAvatar the new avatar
 */
protected void fireAvatarChanged(byte[] newAvatar){
  AvatarEvent event=new AvatarEvent(this,this.parentProvider,newAvatar);
  Collection<AvatarListener> listeners;
synchronized (this.avatarListeners) {
    listeners=new ArrayList<AvatarListener>(this.avatarListeners);
  }
  for (  AvatarListener l : listeners)   l.avatarChanged(event);
}

Fixed version (ground truth):
/** 
 * Notifies all registered listeners of the new event.
 * @param newAvatar the new avatar
 */
protected void fireAvatarChanged(byte[] newAvatar){
  Collection<AvatarListener> listeners;
synchronized (this.avatarListeners) {
    listeners=new ArrayList<AvatarListener>(this.avatarListeners);
  }
  if (!listeners.isEmpty()) {
    AvatarEvent event=new AvatarEvent(this,this.parentProvider,newAvatar);
    for (    AvatarListener l : listeners)     l.avatarChanged(event);
  }
}
Program: 103785
Project: 103785
Buggy source:
@Override @SuppressWarnings("String_Node_Str") public void setAvatar(byte[] avatar){
  ImageDetail oldDetail=null;
  ImageDetail newDetail=new ImageDetail("String_Node_Str",avatar);
  Iterator<GenericDetail> imageDetails=this.accountInfoOpSet.getDetails(ServerStoredDetails.ImageDetail.class);
  if (imageDetails.hasNext()) {
    oldDetail=(ImageDetail)imageDetails.next();
  }
  try {
    if (oldDetail == null)     this.accountInfoOpSet.addDetail(newDetail);
 else     this.accountInfoOpSet.replaceDetail(oldDetail,newDetail);
  }
 catch (  OperationFailedException e) {
    logger.warn("String_Node_Str",e);
  }
  fireAvatarChanged(avatar);
}

Fixed version (ground truth):
public void setAvatar(byte[] avatar){
  ImageDetail oldDetail=null;
  ImageDetail newDetail=new ImageDetail("String_Node_Str",avatar);
  Iterator<GenericDetail> imageDetails=this.accountInfoOpSet.getDetails(ServerStoredDetails.ImageDetail.class);
  if (imageDetails.hasNext()) {
    oldDetail=(ImageDetail)imageDetails.next();
  }
  try {
    if (oldDetail == null)     this.accountInfoOpSet.addDetail(newDetail);
 else     this.accountInfoOpSet.replaceDetail(oldDetail,newDetail);
  }
 catch (  OperationFailedException e) {
    logger.warn("String_Node_Str",e);
  }
  fireAvatarChanged(avatar);
}
Program: 103786
Project: 103786
Buggy source:
@Override public byte[] getAvatar(){
  return AccountInfoUtils.getImage(this.accountInfoOpSet);
}

Fixed version (ground truth):
public byte[] getAvatar(){
  return AccountInfoUtils.getImage(this.accountInfoOpSet);
}
Program: 103787
Project: 103787
Buggy source:
@Override public void removeAvatarListener(AvatarListener listener){
synchronized (this.avatarListeners) {
    if (this.avatarListeners.contains(listener))     this.avatarListeners.remove(listener);
  }
}

Fixed version (ground truth):
public void removeAvatarListener(AvatarListener listener){
synchronized (this.avatarListeners) {
    if (this.avatarListeners.contains(listener))     this.avatarListeners.remove(listener);
  }
}
Program: 103788
Project: 103788
Buggy source:
@Override public void addAvatarListener(AvatarListener listener){
synchronized (this.avatarListeners) {
    if (!this.avatarListeners.contains(listener))     this.avatarListeners.add(listener);
  }
}

Fixed version (ground truth):
public void addAvatarListener(AvatarListener listener){
synchronized (this.avatarListeners) {
    if (!this.avatarListeners.contains(listener))     this.avatarListeners.add(listener);
  }
}
Program: 103789
Project: 103789
Buggy source:
@Override public int getMaxHeight(){
  return this.maxHeight;
}

Fixed version (ground truth):
public int getMaxHeight(){
  return this.maxHeight;
}
Program: 103790
Project: 103790
Buggy source:
@Override public int getMaxWidth(){
  return this.maxWidth;
}

Fixed version (ground truth):
public int getMaxWidth(){
  return this.maxWidth;
}
Program: 103796
Project: 103796
Buggy source:
/** 
 */
public void actionPerformed(ActionEvent e){
  JButton button=(JButton)e.getSource();
  String name=button.getName();
  if (name.equals("String_Node_Str")) {
    String chatRoomName=chatRoomPanel.getChatRoomName();
    GuiActivator.getUIService().getConferenceChatManager().createChatRoom(chatRoomName,chatRoomProvider.getProtocolProvider(),null);
  }
  this.dispose();
}

Fixed version (ground truth):
/** 
 */
public void actionPerformed(ActionEvent e){
  JButton button=(JButton)e.getSource();
  String name=button.getName();
  if (name.equals("String_Node_Str")) {
    String chatRoomName=chatRoomPanel.getChatRoomName();
    GuiActivator.getUIService().getConferenceChatManager().createChatRoom(chatRoomName,chatRoomProvider.getProtocolProvider(),null,"String_Node_Str");
  }
  this.dispose();
}
Program: 103797
Project: 103797
Buggy source:
/** 
 * Implements the Wizard.wizardFinished method.
 */
public void wizardFinished(WizardEvent e){
  if (e.getEventCode() == WizardEvent.SUCCESS) {
    GuiActivator.getUIService().getConferenceChatManager().createChatRoom(newChatRoom.getChatRoomName(),newChatRoom.getProtocolProvider(),null);
  }
}

Fixed version (ground truth):
/** 
 * Implements the Wizard.wizardFinished method.
 */
public void wizardFinished(WizardEvent e){
  if (e.getEventCode() == WizardEvent.SUCCESS) {
    GuiActivator.getUIService().getConferenceChatManager().createChatRoom(newChatRoom.getChatRoomName(),newChatRoom.getProtocolProvider(),null,"String_Node_Str");
  }
}
Program: 103801
Project: 103801
Buggy source:
/** 
 * Invites another user to this room. If we're not joined nothing will happen.
 * @param userAddress The identifier of the contact (email address or yahooid)
 * @param reason The invite reason, which is send to the invitee.
 */
public void invite(String userAddress,String reason){
  try {
    if (!opSetMuc.getAlreadyInvitedContactAddresses().contains(userAddress)) {
      provider.getYahooSession().extendConference(yahooConference,userAddress,reason);
    }
  }
 catch (  IOException ioe) {
    logger.debug("String_Node_Str" + userAddress + "String_Node_Str"+ ioe);
  }
}

Fixed version (ground truth):
/** 
 * Invites another user to this room. If we're not joined nothing will happen.
 * @param userAddress The identifier of the contact (email address or yahooid)
 * @param reason The invite reason, which is send to the invitee.
 */
public void invite(String userAddress,String reason){
  try {
    provider.getYahooSession().extendConference(yahooConference,userAddress,reason);
  }
 catch (  IOException ioe) {
    logger.debug("String_Node_Str" + userAddress + "String_Node_Str"+ ioe);
  }
}
Program: 103802
Project: 103802
Buggy source:
public void conferenceLogonReceived(SessionConferenceEvent ev){
  logger.debug("String_Node_Str" + ev.toString());
  try {
    AdHocChatRoomYahooImpl chatRoom=getLocalChatRoomInstance(ev.getRoom());
    if (chatRoom != null) {
      OperationSetPersistentPresenceYahooImpl presenceOpSet=(OperationSetPersistentPresenceYahooImpl)chatRoom.getParentProvider().getOperationSet(OperationSetPersistentPresence.class);
      Contact participant=presenceOpSet.findContactByID(ev.getFrom());
      if (alreadyInvitedContactAddresses.contains(participant.getAddress())) {
        alreadyInvitedContactAddresses.remove(participant.getAddress());
      }
      chatRoom.addChatRoomParticipant(participant);
    }
  }
 catch (  Exception e) {
    logger.debug("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
public void conferenceLogonReceived(SessionConferenceEvent ev){
  logger.debug("String_Node_Str" + ev.toString());
  try {
    AdHocChatRoomYahooImpl chatRoom=getLocalChatRoomInstance(ev.getRoom());
    if (chatRoom != null) {
      OperationSetPersistentPresenceYahooImpl presenceOpSet=(OperationSetPersistentPresenceYahooImpl)chatRoom.getParentProvider().getOperationSet(OperationSetPersistentPresence.class);
      Contact participant=presenceOpSet.findContactByID(ev.getFrom());
      chatRoom.addChatRoomParticipant(participant);
    }
  }
 catch (  Exception e) {
    logger.debug("String_Node_Str" + e);
  }
}
Program: 103803
Project: 103803
Buggy source:
public void conferenceInviteReceived(SessionConferenceEvent ev){
  logger.debug("String_Node_Str" + ev.toString());
  try {
    AdHocChatRoom chatRoom=getLocalChatRoomInstance(ev.getRoom());
    if (chatRoom == null) {
      chatRoom=createLocalChatRoomInstance(ev.getRoom());
      fireInvitationEvent(chatRoom,ev.getFrom(),ev.getMessage());
    }
  }
 catch (  Exception e) {
    logger.debug("String_Node_Str" + e);
  }
}

Fixed version (ground truth):
public void conferenceInviteReceived(SessionConferenceEvent ev){
  logger.debug("String_Node_Str" + ev.toString());
  try {
    AdHocChatRoom chatRoom=getLocalChatRoomInstance(ev.getRoom());
    if (chatRoom == null) {
      chatRoom=createLocalChatRoomInstance(ev.getRoom(),ev.getFrom());
      fireInvitationEvent(chatRoom,ev.getFrom(),ev.getMessage());
    }
  }
 catch (  Exception e) {
    logger.debug("String_Node_Str" + e);
  }
}
Program: 103804
Project: 103804
Buggy source:
/** 
 * Creates a <tt>AdHocChatRoom</tt> instance from the specified Yahoo conference.
 * @param yahooConference The chat room model from the yahoo lib.
 * @return AdHocChatRoom the chat room that we've just created.
 */
private AdHocChatRoomYahooImpl createLocalChatRoomInstance(YahooConference yahooConference){
synchronized (chatRoomCache) {
    AdHocChatRoomYahooImpl newChatRoom=new AdHocChatRoomYahooImpl(yahooConference,yahooProvider);
    chatRoomCache.put(yahooConference.getName(),newChatRoom);
    return newChatRoom;
  }
}

Fixed version (ground truth):
/** 
 * Creates a <tt>AdHocChatRoom</tt> instance from the specified Yahoo conference.
 * @param yahooConference The chat room model from the yahoo lib.
 * @return AdHocChatRoom the chat room that we've just created.
 */
private AdHocChatRoomYahooImpl createLocalChatRoomInstance(YahooConference yahooConference,String inviterID){
synchronized (chatRoomCache) {
    AdHocChatRoomYahooImpl newChatRoom=new AdHocChatRoomYahooImpl(yahooConference,yahooProvider);
    OperationSetPersistentPresenceYahooImpl opSetPresence=(OperationSetPersistentPresenceYahooImpl)yahooProvider.getOperationSet(OperationSetPersistentPresence.class);
    newChatRoom.addChatRoomParticipant(opSetPresence.findContactByID(inviterID));
    chatRoomCache.put(yahooConference.getName(),newChatRoom);
    return newChatRoom;
  }
}
Program: 103805
Project: 103805
Buggy source:
/** 
 * Checks if the contained call is a conference call.
 * @return <code>true</code> if the contained <tt>Call</tt> is a conferencecall, otherwise - returns <code>false</code>.
 */
public boolean isConference(){
  if (call.isConferenceFocus() && call.getCallPeerCount() > 1)   return true;
  Iterator<? extends CallPeer> callPeers=call.getCallPeers();
  while (callPeers.hasNext()) {
    CallPeer callPeer=callPeers.next();
    if (callPeer.isConferenceFocus())     return true;
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Checks if the contained call is a conference call.
 * @return <code>true</code> if the contained <tt>Call</tt> is a conferencecall, otherwise - returns <code>false</code>.
 */
public boolean isConference(){
  if (call.isConferenceFocus())   return true;
  Iterator<? extends CallPeer> callPeers=call.getCallPeers();
  while (callPeers.hasNext()) {
    CallPeer callPeer=callPeers.next();
    if (callPeer.isConferenceFocus())     return true;
  }
  return false;
}
Program: 103806
Project: 103806
Buggy source:
/** 
 * Updates the sound level bar to reflect the new sound level value.
 * @param soundLevel the new sound level value
 */
public void updateSoundBar(int soundLevel){
  soundIndicator.updateSoundLevel(soundLevel);
}

Fixed version (ground truth):
/** 
 * Updates the sound level bar to reflect the new sound level value.
 * @param soundLevel the new sound level value
 */
public void updateSoundBar(int soundLevel){
  if (soundIndicator != null)   soundIndicator.updateSoundLevel(soundLevel);
}
Program: 103807
Project: 103807
Buggy source:
/** 
 * Enables or disables the single conference focus user interface.
 * @param isSingleFocusUI indicates if we should enable or disable theconference focus user interface.
 */
public void setSingleFocusUI(boolean isSingleFocusUI){
  this.isSingleFocusUI=isSingleFocusUI;
  if (isSingleFocusUI) {
    this.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
    this.remove(titleBar);
    this.remove(peerDetailsPanel);
  }
 else {
    this.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
    constraints.fill=GridBagConstraints.HORIZONTAL;
    constraints.gridx=0;
    constraints.gridy=0;
    constraints.weightx=1;
    constraints.weighty=0;
    constraints.insets=new Insets(0,0,0,0);
    this.add(titleBar,constraints);
    constraints.fill=GridBagConstraints.BOTH;
    constraints.gridx=0;
    constraints.gridy=1;
    constraints.weightx=1;
    constraints.weighty=0;
    constraints.insets=new Insets(0,0,0,0);
    this.add(peerDetailsPanel,constraints);
  }
  this.revalidate();
  this.repaint();
}

Fixed version (ground truth):
/** 
 * Enables or disables the single conference focus user interface.
 * @param isSingleFocusUI indicates if we should enable or disable theconference focus user interface.
 */
public void setSingleFocusUI(boolean isSingleFocusUI){
  if (!isFocusUI)   return;
  this.isSingleFocusUI=isSingleFocusUI;
  if (isSingleFocusUI) {
    this.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
    this.remove(titleBar);
    this.remove(peerDetailsPanel);
  }
 else {
    this.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
    constraints.fill=GridBagConstraints.HORIZONTAL;
    constraints.gridx=0;
    constraints.gridy=0;
    constraints.weightx=1;
    constraints.weighty=0;
    constraints.insets=new Insets(0,0,0,0);
    this.add(titleBar,constraints);
    constraints.fill=GridBagConstraints.BOTH;
    constraints.gridx=0;
    constraints.gridy=1;
    constraints.weightx=1;
    constraints.weighty=0;
    constraints.insets=new Insets(0,0,0,0);
    this.add(peerDetailsPanel,constraints);
  }
  this.revalidate();
  this.repaint();
}
Program: 103808
Project: 103808
Buggy source:
/** 
 * Creates a <tt>ConferencePeerPanel</tt>, that would be contained in the given <tt>callDialog</tt> and would correspond to the given <tt>callPeer</tt>.
 * @param callDialog the dialog, in which this panel is shown
 * @param callPeer The peer who own this UI
 */
public ConferencePeerPanel(CallDialog callDialog,CallPeer callPeer){
  this.callDialog=callDialog;
  this.callPeer=callPeer;
  this.setPeerName(callPeer.getDisplayName());
  if (callPeer.isConferenceFocus())   setFocusUI(true);
  this.initStatusBar(callPeer);
  callPeerMenu=new CallPeerMenu(callPeer);
  SIPCommMenuBar menuBar=new SIPCommMenuBar();
  menuBar.setLayout(new FlowLayout(FlowLayout.CENTER,0,0));
  menuBar.add(callPeerMenu);
  this.addToNameBar(menuBar);
  this.setTitleBackground(new Color(GuiActivator.getResources().getColor("String_Node_Str")));
  for (  ConferenceMember member : callPeer.getConferenceMembers())   this.addConferenceMemberPanel(member);
}

Fixed version (ground truth):
/** 
 * Creates a <tt>ConferencePeerPanel</tt>, that would be contained in the given <tt>callDialog</tt> and would correspond to the given <tt>callPeer</tt>.
 * @param callDialog the dialog, in which this panel is shown
 * @param callPeer The peer who own this UI
 */
public ConferencePeerPanel(CallDialog callDialog,CallPeer callPeer){
  this.callDialog=callDialog;
  this.callPeer=callPeer;
  this.setPeerName(callPeer.getDisplayName());
  if (callPeer.getConferenceMemberCount() > 0)   setFocusUI(true);
  this.initStatusBar(callPeer);
  callPeerMenu=new CallPeerMenu(callPeer);
  SIPCommMenuBar menuBar=new SIPCommMenuBar();
  menuBar.setLayout(new FlowLayout(FlowLayout.CENTER,0,0));
  menuBar.add(callPeerMenu);
  this.addToNameBar(menuBar);
  this.setTitleBackground(new Color(GuiActivator.getResources().getColor("String_Node_Str")));
  for (  ConferenceMember member : callPeer.getConferenceMembers())   this.addConferenceMemberPanel(member);
}