nus-yam/ex-repair huggingface dataset:
Program: 103113
Project: 103113
Buggy source:
/** 
 * Connects and logins again to the server.
 * @param authReasonCode indicates the reason of the re-authentication.
 */
void reregister(int authReasonCode){
  try {
    if (logger.isTraceEnabled())     logger.trace("String_Node_Str");
    this.unregister(false);
    this.abortConnecting=false;
synchronized (connectAndLoginLock) {
      inConnectAndLogin=true;
    }
    connectAndLogin(authority,authReasonCode);
  }
 catch (  OperationFailedException ex) {
    logger.error("String_Node_Str",ex);
    eventDuringLogin=null;
    disconnectAndCleanConnection();
    fireRegistrationStateChanged(getRegistrationState(),RegistrationState.CONNECTION_FAILED,RegistrationStateChangeEvent.REASON_INTERNAL_ERROR,null);
  }
catch (  XMPPException ex) {
    logger.error("String_Node_Str",ex);
    eventDuringLogin=null;
    fireRegistrationStateChanged(ex);
  }
 finally {
synchronized (connectAndLoginLock) {
      if (eventDuringLogin != null) {
        if (eventDuringLogin.getNewState().equals(RegistrationState.CONNECTION_FAILED) || eventDuringLogin.getNewState().equals(RegistrationState.UNREGISTERED))         disconnectAndCleanConnection();
        fireRegistrationStateChanged(eventDuringLogin.getOldState(),eventDuringLogin.getNewState(),eventDuringLogin.getReasonCode(),eventDuringLogin.getReason());
        eventDuringLogin=null;
        inConnectAndLogin=false;
        return;
      }
      inConnectAndLogin=false;
    }
  }
}

Fixed version (ground truth):
/** 
 * Connects and logins again to the server.
 * @param authReasonCode indicates the reason of the re-authentication.
 */
void reregister(int authReasonCode){
  try {
    if (logger.isTraceEnabled())     logger.trace("String_Node_Str");
    this.unregister(false);
    this.abortConnecting=false;
synchronized (connectAndLoginLock) {
      inConnectAndLogin=true;
    }
    initializeConnectAndLogin(authority,authReasonCode);
  }
 catch (  OperationFailedException ex) {
    logger.error("String_Node_Str",ex);
    eventDuringLogin=null;
    disconnectAndCleanConnection();
    fireRegistrationStateChanged(getRegistrationState(),RegistrationState.CONNECTION_FAILED,RegistrationStateChangeEvent.REASON_INTERNAL_ERROR,null);
  }
catch (  XMPPException ex) {
    logger.error("String_Node_Str",ex);
    eventDuringLogin=null;
    fireRegistrationStateChanged(ex);
  }
 finally {
synchronized (connectAndLoginLock) {
      if (eventDuringLogin != null) {
        if (eventDuringLogin.getNewState().equals(RegistrationState.CONNECTION_FAILED) || eventDuringLogin.getNewState().equals(RegistrationState.UNREGISTERED))         disconnectAndCleanConnection();
        fireRegistrationStateChanged(eventDuringLogin.getOldState(),eventDuringLogin.getNewState(),eventDuringLogin.getReasonCode(),eventDuringLogin.getReason());
        eventDuringLogin=null;
        inConnectAndLogin=false;
        return;
      }
      inConnectAndLogin=false;
    }
  }
}
Program: 103114
Project: 103114
Buggy source:
/** 
 * Unregister and fire the event if requested
 * @param fireEvent boolean
 */
public void unregister(boolean fireEvent){
synchronized (initializationLock) {
    if (fireEvent) {
      fireRegistrationStateChanged(getRegistrationState(),RegistrationState.UNREGISTERING,RegistrationStateChangeEvent.REASON_NOT_SPECIFIED,null);
    }
    disconnectAndCleanConnection();
    RegistrationState currRegState=getRegistrationState();
    if (fireEvent) {
      fireRegistrationStateChanged(currRegState,RegistrationState.UNREGISTERED,RegistrationStateChangeEvent.REASON_USER_REQUEST,null);
    }
  }
}

Fixed version (ground truth):
/** 
 * Unregister and fire the event if requested
 * @param fireEvent boolean
 */
public void unregister(boolean fireEvent){
synchronized (initializationLock) {
    if (fireEvent) {
      eventDuringLogin=null;
      fireRegistrationStateChanged(getRegistrationState(),RegistrationState.UNREGISTERING,RegistrationStateChangeEvent.REASON_NOT_SPECIFIED,null);
    }
    disconnectAndCleanConnection();
    RegistrationState currRegState=getRegistrationState();
    if (fireEvent) {
      eventDuringLogin=null;
      fireRegistrationStateChanged(currRegState,RegistrationState.UNREGISTERED,RegistrationStateChangeEvent.REASON_USER_REQUEST,null);
    }
  }
}
Program: 103118
Project: 103118
Buggy source:
public void registrationStateChanged(RegistrationStateChangeEvent evt){
  if (evt.getSource() instanceof ProtocolProviderService) {
    if (evt.getNewState().equals(RegistrationState.UNREGISTERED) || evt.getNewState().equals(RegistrationState.CONNECTION_FAILED)) {
synchronized (this) {
        pp.removeRegistrationStateChangeListener(this);
        if (timer == null)         return;
        if (connectedInterfaces.size() == 0) {
          needsReconnection.add(pp);
          if (currentlyReconnecting.containsKey(pp))           currentlyReconnecting.remove(pp).cancel();
          return;
        }
        if (currentlyReconnecting.containsKey(pp))         currentlyReconnecting.remove(pp).cancel();
        currentlyReconnecting.put(pp,task);
        if (logger.isTraceEnabled())         logger.trace("String_Node_Str" + pp + "String_Node_Str"+ task.delay+ "String_Node_Str");
        timer.schedule(task,task.delay);
      }
    }
  }
}

Fixed version (ground truth):
public void registrationStateChanged(RegistrationStateChangeEvent evt){
  if (evt.getSource() instanceof ProtocolProviderService) {
    if (evt.getNewState().equals(RegistrationState.UNREGISTERED) || evt.getNewState().equals(RegistrationState.CONNECTION_FAILED)) {
synchronized (this) {
        pp.removeRegistrationStateChangeListener(this);
        if (timer == null)         return;
        if (connectedInterfaces.size() == 0) {
          needsReconnection.add(pp);
          if (currentlyReconnecting.containsKey(pp))           currentlyReconnecting.remove(pp).cancel();
          return;
        }
        if (currentlyReconnecting.containsKey(pp))         currentlyReconnecting.remove(pp).cancel();
        currentlyReconnecting.put(pp,task);
        if (logger.isInfoEnabled())         logger.info("String_Node_Str" + pp.getAccountID().getDisplayName() + "String_Node_Str"+ task.delay+ "String_Node_Str");
        timer.schedule(task,task.delay);
      }
    }
  }
}
Program: 103120
Project: 103120
Buggy source:
/** 
 * @param a A document with state <tt>full</tt> which to compare to<tt>b</tt>
 * @param b A document with state <tt>full</tt> which to compare to<tt>a</tt>
 * @return <tt>false</tt> if the two documents are found to be different,<tt>true</tt> otherwise (that is, it can return true for non-identical documents).
 */
private boolean conferenceInfoDocumentsMatch(ConferenceInfoDocument a,ConferenceInfoDocument b){
  if (a.getState() != ConferenceInfoDocument.State.FULL)   throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  if (b.getState() != ConferenceInfoDocument.State.FULL)   throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  if (stringsMatch(a.getEntity(),b.getEntity()))   return false;
 else   if (a.getUserCount() != b.getUserCount())   return false;
 else   if (a.getUsers().size() != b.getUsers().size())   return false;
  for (  ConferenceInfoDocument.User aUser : a.getUsers()) {
    if (!usersMatch(aUser,b.getUser(aUser.getEntity())))     return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * @param a A document with state <tt>full</tt> which to compare to<tt>b</tt>
 * @param b A document with state <tt>full</tt> which to compare to<tt>a</tt>
 * @return <tt>false</tt> if the two documents are found to be different,<tt>true</tt> otherwise (that is, it can return true for non-identical documents).
 */
private boolean conferenceInfoDocumentsMatch(ConferenceInfoDocument a,ConferenceInfoDocument b){
  if (a.getState() != ConferenceInfoDocument.State.FULL)   throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  if (b.getState() != ConferenceInfoDocument.State.FULL)   throw new IllegalArgumentException("String_Node_Str" + "String_Node_Str");
  if (!stringsMatch(a.getEntity(),b.getEntity()))   return false;
 else   if (a.getUserCount() != b.getUserCount())   return false;
 else   if (a.getUsers().size() != b.getUsers().size())   return false;
  for (  ConferenceInfoDocument.User aUser : a.getUsers()) {
    if (!usersMatch(aUser,b.getUser(aUser.getEntity())))     return false;
  }
  return true;
}
Program: 103121
Project: 103121
Buggy source:
/** 
 * Installs the account defined in this wizard.
 * @param userName the user name to sign in with
 * @param password the password to sign in with
 * @return the created <tt>ProtocolProviderService</tt> corresponding to thenew account
 * @throws OperationFailedException if the operation didn't succeed
 */
@Override public ProtocolProviderService signin(String userName,String password) throws OperationFailedException {
  if (firstWizardPage == null) {
    firstWizardPage=new FirstWizardPage(this);
    AccountPanel accPanel=(AccountPanel)firstWizardPage.getSimpleForm();
    accPanel.setUsername(userName);
    accPanel.setPassword(password);
    accPanel.setRememberPassword(true);
  }
  if (!firstWizardPage.isCommitted())   firstWizardPage.commitPage();
  if (!firstWizardPage.isCommitted())   throw new OperationFailedException("String_Node_Str",OperationFailedException.GENERAL_ERROR);
  ProtocolProviderFactory factory=JabberAccRegWizzActivator.getJabberProtocolProviderFactory();
  return this.installAccount(factory,registration.getUserID(),password);
}

Fixed version (ground truth):
/** 
 * Installs the account defined in this wizard.
 * @param userName the user name to sign in with
 * @param password the password to sign in with
 * @return the created <tt>ProtocolProviderService</tt> corresponding to thenew account
 * @throws OperationFailedException if the operation didn't succeed
 */
@Override public ProtocolProviderService signin(String userName,String password) throws OperationFailedException {
  AccountPanel accPanel=(AccountPanel)firstWizardPage.getSimpleForm();
  accPanel.setUsername(userName);
  accPanel.setPassword(password);
  accPanel.setRememberPassword(password != null);
  if (!firstWizardPage.isCommitted())   firstWizardPage.commitPage();
  if (!firstWizardPage.isCommitted())   throw new OperationFailedException("String_Node_Str",OperationFailedException.GENERAL_ERROR);
  ProtocolProviderFactory factory=JabberAccRegWizzActivator.getJabberProtocolProviderFactory();
  return this.installAccount(factory,registration.getUserID(),password);
}
Program: 103126
Project: 103126
Buggy source:
/** 
 * Returns the package name of the <tt>factory</tt>.
 * @param factory the factory which package will be returned.
 * @return the package name of the <tt>factory</tt>.
 */
private String getFactoryImplPackageName(ProtocolProviderFactory factory){
  String className=factory.getClass().getName();
  return className.substring(0,className.lastIndexOf('.'));
}

Fixed version (ground truth):
/** 
 * Returns the package name of the <tt>factory</tt>.
 * @param factory the factory which package will be returned.
 * @return the package name of the <tt>factory</tt>.
 */
public String getFactoryImplPackageName(ProtocolProviderFactory factory){
  String className=factory.getClass().getName();
  return className.substring(0,className.lastIndexOf('.'));
}
Program: 103127
Project: 103127
Buggy source:
/** 
 * Get the <tt>AccountManager</tt> of the protocol.
 * @return <tt>AccountManager</tt> of the protocol
 */
private AccountManager getAccountManager(){
  BundleContext bundleContext=getBundleContext();
  ServiceReference serviceReference=bundleContext.getServiceReference(AccountManager.class.getName());
  return (AccountManager)bundleContext.getService(serviceReference);
}

Fixed version (ground truth):
/** 
 * Get the <tt>AccountManager</tt> of the protocol.
 * @return <tt>AccountManager</tt> of the protocol
 */
protected AccountManager getAccountManager(){
  BundleContext bundleContext=getBundleContext();
  ServiceReference serviceReference=bundleContext.getServiceReference(AccountManager.class.getName());
  return (AccountManager)bundleContext.getService(serviceReference);
}
Program: 103128
Project: 103128
Buggy source:
/** 
 * Stores configuration properties held by this object into given <tt>accountProperties</tt> map.
 * @param protocolIconPath  the path to the protocol icon is used
 * @param accountIconPath   the path to the account icon if used
 * @param accountProperties output properties map
 */
public void storeProperties(String protocolIconPath,String accountIconPath,Map<String,String> accountProperties){
  putAccountProperty(ProtocolProviderFactory.PROTOCOL,getProtocolName());
  if (protocolIconPath != null)   setProtocolIconPath(protocolIconPath);
  if (accountIconPath != null)   setAccountIconPath(accountIconPath);
  ensureDefaultValuePresent(ProtocolProviderFactory.DTMF_METHOD);
  ensureDefaultValuePresent(ProtocolProviderFactory.DTMF_MINIMAL_TONE_DURATION);
  mergeProperties(this.accountProperties,accountProperties);
}

Fixed version (ground truth):
/** 
 * Stores configuration properties held by this object into given <tt>accountProperties</tt> map.
 * @param protocolIconPath  the path to the protocol icon is used
 * @param accountIconPath   the path to the account icon if used
 * @param accountProperties output properties map
 */
public void storeProperties(String protocolIconPath,String accountIconPath,Map<String,String> accountProperties){
  if (protocolIconPath != null)   setProtocolIconPath(protocolIconPath);
  if (accountIconPath != null)   setAccountIconPath(accountIconPath);
  ensureDefaultValuePresent(ProtocolProviderFactory.DTMF_METHOD);
  ensureDefaultValuePresent(ProtocolProviderFactory.DTMF_MINIMAL_TONE_DURATION);
  mergeProperties(this.accountProperties,accountProperties);
  accountProperties.remove("String_Node_Str");
}
Program: 103129
Project: 103129
Buggy source:
/** 
 * On mac, asks FileManager to open the the url, on Windows uses FileProtocolHandler to do so, on Linux, loops through a list of known browsers until we find one that seems to work.
 */
@Override public void run(){
  try {
    String osName=System.getProperty("String_Node_Str");
    if ((osName != null) && osName.startsWith("String_Node_Str")) {
      FileManager.openURL(url);
    }
 else     if ((osName != null) && osName.startsWith("String_Node_Str")) {
      Runtime.getRuntime().exec("String_Node_Str" + url);
    }
 else {
      String[] browsers={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
      String browser=null;
      for (int i=0; i < browsers.length && browser == null; i++) {
        if (Runtime.getRuntime().exec(new String[]{"String_Node_Str",browsers[i]}).waitFor() == 0)         browser=browsers[i];
      }
      if (browser == null)       throw new Exception("String_Node_Str");
 else       Runtime.getRuntime().exec(new String[]{browser,url});
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * On mac, asks FileManager to open the the url, on Windows uses FileProtocolHandler to do so, on Linux, loops through a list of known browsers until we find one that seems to work.
 */
public void run(){
  try {
    String osName=System.getProperty("String_Node_Str");
    if ((osName != null) && osName.startsWith("String_Node_Str")) {
      FileManager.openURL(url);
    }
 else     if ((osName != null) && osName.startsWith("String_Node_Str")) {
      Runtime.getRuntime().exec("String_Node_Str" + url);
    }
 else {
      String[] browsers={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
      String browser=null;
      for (int i=0; i < browsers.length && browser == null; i++) {
        if (Runtime.getRuntime().exec(new String[]{"String_Node_Str",browsers[i]}).waitFor() == 0)         browser=browsers[i];
      }
      if (browser == null)       throw new Exception("String_Node_Str");
 else       Runtime.getRuntime().exec(new String[]{browser,url});
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 103130
Project: 103130
Buggy source:
/** 
 * Releases the resources acquired by this instance which require explicit disposal (e.g. any listeners added to the depicted <tt>CallConference</tt>, the participating <tt>Call</tt>s, and their associated <tt>CallPeer</tt>s). Invoked by <tt>CallManager</tt> when it determines that this <tt>CallPanel</tt> is no longer necessary.
 */
void dispose(){
  disposed=true;
  callConference.removeCallChangeListener(callConferenceListener);
  callConference.removeCallPeerConferenceListener(callConferenceListener);
  callConference.removePropertyChangeListener(callConferenceListener);
  uiVideoHandler.deleteObserver(uiVideoHandlerObserver);
  uiVideoHandler.dispose();
  callWindow.getFrame().removePropertyChangeListener(CallContainer.PROP_FULL_SCREEN,callConferenceListener);
  if (callPanel != null)   ((CallRenderer)callPanel).dispose();
}

Fixed version (ground truth):
/** 
 * Releases the resources acquired by this instance which require explicit disposal (e.g. any listeners added to the depicted <tt>CallConference</tt>, the participating <tt>Call</tt>s, and their associated <tt>CallPeer</tt>s). Invoked by <tt>CallManager</tt> when it determines that this <tt>CallPanel</tt> is no longer necessary.
 */
void dispose(){
  disposed=true;
  callConference.removeCallChangeListener(callConferenceListener);
  callConference.removeCallPeerConferenceListener(callConferenceListener);
  callConference.removePropertyChangeListener(callConferenceListener);
  uiVideoHandler.deleteObserver(uiVideoHandlerObserver);
  uiVideoHandler.dispose();
  callWindow.getFrame().removePropertyChangeListener(CallContainer.PROP_FULL_SCREEN,callConferenceListener);
  if (callPanel != null) {
    if (callPanel instanceof BasicConferenceCallPanel) {
      ((BasicConferenceCallPanel)callPanel).removePeerViewListener(this);
    }
    ((CallRenderer)callPanel).dispose();
  }
}
Program: 103132
Project: 103132
Buggy source:
/** 
 * Decrypts the cyphertext using the key.
 * @param ciphertext base64 encoded encrypted data
 * @return decrypted data
 * @throws CryptoException when the ciphertext cannot be decrypted with thekey or on decryption error.
 */
public String decrypt(String ciphertext) throws CryptoException {
  try {
    decryptCipher.init(Cipher.DECRYPT_MODE,key);
    return new String(decryptCipher.doFinal(Base64.decode(ciphertext)));
  }
 catch (  BadPaddingException e) {
    throw new CryptoException(CryptoException.WRONG_KEY,e);
  }
catch (  Exception e) {
    throw new CryptoException(CryptoException.DECRYPTION_ERROR,e);
  }
}

Fixed version (ground truth):
/** 
 * Decrypts the cyphertext using the key.
 * @param ciphertext base64 encoded encrypted data
 * @return decrypted data
 * @throws CryptoException when the ciphertext cannot be decrypted with thekey or on decryption error.
 */
public String decrypt(String ciphertext) throws CryptoException {
  try {
    decryptCipher.init(Cipher.DECRYPT_MODE,key);
    return new String(decryptCipher.doFinal(Base64.decode(ciphertext)),"String_Node_Str");
  }
 catch (  BadPaddingException e) {
    throw new CryptoException(CryptoException.WRONG_KEY,e);
  }
catch (  Exception e) {
    throw new CryptoException(CryptoException.DECRYPTION_ERROR,e);
  }
}
Program: 103133
Project: 103133
Buggy source:
/** 
 * Indicates that a contact has been clicked in the contact list. Show some more contacts after the "show more" has been clicked
 * @param evt the <tt>ContactListEvent</tt> that notified us
 */
public void contactClicked(ContactListEvent evt){
  if (evt.getSourceContact().equals(this)) {
    List<SourceContact> contacts=new ArrayList<SourceContact>(queryResults);
    int newCount=shownResultsCount + maxResultCount;
    int resultSize=contacts.size();
    int maxCount=(resultSize > newCount) ? newCount : resultSize;
    GuiActivator.getContactList().removeContact(this);
    for (int i=shownResultsCount; i < maxCount; i++) {
      GuiActivator.getContactList().contactReceived(new ContactReceivedEvent(contactQuery,contacts.get(i)));
    }
    shownResultsCount=maxCount;
    if (shownResultsCount < resultSize || contactQuery.getStatus() != ContactQuery.QUERY_COMPLETED)     GuiActivator.getContactList().addContact(contactQuery,this,GuiActivator.getContactList().getContactSource(contactQuery.getContactSource()).getUIGroup(),false);
  }
}

Fixed version (ground truth):
/** 
 * Indicates that a contact has been clicked in the contact list. Show some more contacts after the "show more" has been clicked
 * @param evt the <tt>ContactListEvent</tt> that notified us
 */
public void contactClicked(ContactListEvent evt){
  if (evt.getSourceContact().equals(this)) {
    List<SourceContact> contacts=new ArrayList<SourceContact>(queryResults);
    int newCount=shownResultsCount + maxResultCount;
    int resultSize=contacts.size();
    int maxCount=(resultSize > newCount) ? newCount : resultSize;
    GuiActivator.getContactList().removeContact(this);
    for (int i=shownResultsCount; i < maxCount; i++) {
      GuiActivator.getContactList().contactReceived(new ContactReceivedEvent(contactQuery,contacts.get(i)));
    }
    shownResultsCount=maxCount;
    if (shownResultsCount < resultSize || (contactQuery.getStatus() != ContactQuery.QUERY_COMPLETED && contactQuery.getStatus() != ContactQuery.QUERY_ERROR)) {
      GuiActivator.getContactList().addContact(contactQuery,this,GuiActivator.getContactList().getContactSource(contactQuery.getContactSource()).getUIGroup(),false);
      GuiActivator.getContactList().addContactListListener(this);
    }
  }
}
Program: 103134
Project: 103134
Buggy source:
/** 
 * Creates an instance of <tt>MoreInfoContact</tt>.
 * @param contactQuery the contact query
 * @param queryResults the result list
 * @param maxResultCount the maximum result count
 */
public ShowMoreContact(ContactQuery contactQuery,List<SourceContact> queryResults,int maxResultCount){
  this.contactQuery=contactQuery;
  this.queryResults=queryResults;
  this.maxResultCount=maxResultCount;
  GuiActivator.getContactList().addContactListListener(this);
}

Fixed version (ground truth):
/** 
 * Creates an instance of <tt>MoreInfoContact</tt>.
 * @param contactQuery the contact query
 * @param queryResults the result list
 * @param maxResultCount the maximum result count
 */
public ShowMoreContact(ContactQuery contactQuery,List<SourceContact> queryResults,int maxResultCount){
  this.contactQuery=contactQuery;
  this.queryResults=queryResults;
  this.maxResultCount=maxResultCount;
  this.shownResultsCount=maxResultCount;
  GuiActivator.getContactList().addContactListListener(this);
}
Program: 103136
Project: 103136
Buggy source:
/** 
 * Adds a <tt>ConferenceMemberPanel</tt> to depict a specific <tt>ConferenceMember</tt> if there is not one yet.
 * @param conferenceMember the <tt>ConferenceMember</tt> to be depicted
 */
private void addConferenceMemberPanel(ConferenceMember conferenceMember){
  if (CallManager.isLocalUser(conferenceMember))   return;
  if (CallManager.addressesAreEqual(conferenceMember.getAddress(),focusPeer.getAddress()))   return;
  if (conferenceMemberPanels.containsKey(conferenceMember))   return;
  ConferenceMemberPanel conferenceMemberPanel=new ConferenceMemberPanel(callRenderer,conferenceMember,false);
  conferenceMemberPanels.put(conferenceMember,conferenceMemberPanel);
  add(conferenceMemberPanel,cnstrnts);
  cnstrnts.gridy++;
  initSecuritySettings();
}

Fixed version (ground truth):
/** 
 * Adds a <tt>ConferenceMemberPanel</tt> to depict a specific <tt>ConferenceMember</tt> if there is not one yet.
 * @param conferenceMember the <tt>ConferenceMember</tt> to be depicted
 */
private void addConferenceMemberPanel(ConferenceMember conferenceMember){
  if (CallManager.isLocalUser(conferenceMember))   return;
  if (CallManager.addressesAreEqual(conferenceMember.getAddress(),focusPeer.getAddress()))   return;
  if (conferenceMemberPanels.containsKey(conferenceMember))   return;
  ConferenceMemberPanel conferenceMemberPanel=new ConferenceMemberPanel(callRenderer,conferenceMember,false);
  conferenceMemberPanels.put(conferenceMember,conferenceMemberPanel);
  add(conferenceMemberPanel,cnstrnts);
  cnstrnts.gridy++;
  initSecuritySettings();
  packWindow();
}
Program: 103137
Project: 103137
Buggy source:
/** 
 * Removes the <tt>ConferenceMemberPanel</tt> depicting a specific <tt>ConferenceMember</tt>.
 * @param conferenceMember the <tt>ConferenceMember</tt> whose depicting<tt>ConferenceMemberPanel</tt> is to be removed
 */
private void removeConferenceMemberPanel(ConferenceMember conferenceMember){
  ConferenceMemberPanel conferenceMemberPanel=conferenceMemberPanels.remove(conferenceMember);
  if (conferenceMemberPanel != null) {
    remove(conferenceMemberPanel);
    conferenceMemberPanel.dispose();
  }
}

Fixed version (ground truth):
/** 
 * Removes the <tt>ConferenceMemberPanel</tt> depicting a specific <tt>ConferenceMember</tt>.
 * @param conferenceMember the <tt>ConferenceMember</tt> whose depicting<tt>ConferenceMemberPanel</tt> is to be removed
 */
private void removeConferenceMemberPanel(ConferenceMember conferenceMember){
  ConferenceMemberPanel conferenceMemberPanel=conferenceMemberPanels.remove(conferenceMember);
  if (conferenceMemberPanel != null) {
    remove(conferenceMemberPanel);
    conferenceMemberPanel.dispose();
    packWindow();
  }
}
Program: 103138
Project: 103138
Buggy source:
/** 
 * Adds the <tt>ConferencePeerPanel</tt> which will depict  {@link #focusPeer} without the <tt>ConferenceMember</tt>s whichparticipate in the telephony conference that it is the focus of.
 */
private void addFocusPeerPanel(){
  focusPeerPanel=new ConferencePeerPanel(callRenderer,focusPeer);
  add(focusPeerPanel,cnstrnts);
  cnstrnts.gridy++;
}

Fixed version (ground truth):
/** 
 * Adds the <tt>ConferencePeerPanel</tt> which will depict  {@link #focusPeer} without the <tt>ConferenceMember</tt>s whichparticipate in the telephony conference that it is the focus of.
 */
private void addFocusPeerPanel(){
  focusPeerPanel=new ConferencePeerPanel(callRenderer,focusPeer);
  add(focusPeerPanel,cnstrnts);
  cnstrnts.gridy++;
  packWindow();
}
Program: 103139
Project: 103139
Buggy source:
/** 
 * Creates a contact list component.
 * @return the created <tt>ContactList</tt>
 */
public ContactList createContactListComponent(){
  return new TreeContactList();
}

Fixed version (ground truth):
/** 
 * Creates a contact list component.
 * @param clContainer the parent contact list container
 * @return the created <tt>ContactList</tt>
 */
public ContactList createContactListComponent(ContactListContainer clContainer){
  return new TreeContactList(clContainer);
}
Program: 103140
Project: 103140
Buggy source:
/** 
 * Initializes the contact list.
 * @param contactListService The MetaContactListService which will be usedfor a contact list data model.
 */
public void initList(MetaContactListService contactListService){
  this.contactList=new TreeContactList();
  GuiActivator.setContactList(contactList);
  contactList.applyFilter(TreeContactList.presenceFilter);
  TransparentPanel transparentPanel=new TransparentPanel(new BorderLayout());
  transparentPanel.add(contactList,BorderLayout.NORTH);
  this.setViewportView(transparentPanel);
  transparentPanel.setBorder(BorderFactory.createEmptyBorder(1,1,1,1));
  this.contactList.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
  this.contactList.addContactListListener(this);
  this.addMouseListener(new MouseAdapter(){
    public void mousePressed(    MouseEvent e){
      if ((e.getModifiers() & InputEvent.BUTTON3_MASK) != 0) {
        commonRightButtonMenu=new CommonRightButtonMenu(mainFrame);
        commonRightButtonMenu.setInvoker(ContactListPane.this);
        commonRightButtonMenu.setLocation(e.getX() + mainFrame.getX() + 5,e.getY() + mainFrame.getY() + 105);
        commonRightButtonMenu.setVisible(true);
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Initializes the contact list.
 * @param contactListService The MetaContactListService which will be usedfor a contact list data model.
 */
public void initList(MetaContactListService contactListService){
  this.contactList=new TreeContactList(mainFrame);
  GuiActivator.setContactList(contactList);
  contactList.applyFilter(TreeContactList.presenceFilter);
  TransparentPanel transparentPanel=new TransparentPanel(new BorderLayout());
  transparentPanel.add(contactList,BorderLayout.NORTH);
  this.setViewportView(transparentPanel);
  transparentPanel.setBorder(BorderFactory.createEmptyBorder(1,1,1,1));
  this.contactList.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
  this.contactList.addContactListListener(this);
  this.addMouseListener(new MouseAdapter(){
    public void mousePressed(    MouseEvent e){
      if ((e.getModifiers() & InputEvent.BUTTON3_MASK) != 0) {
        commonRightButtonMenu=new CommonRightButtonMenu(mainFrame);
        commonRightButtonMenu.setInvoker(ContactListPane.this);
        commonRightButtonMenu.setLocation(e.getX() + mainFrame.getX() + 5,e.getY() + mainFrame.getY() + 105);
        commonRightButtonMenu.setVisible(true);
      }
    }
  }
);
}
Program: 103141
Project: 103141
Buggy source:
/** 
 * Creates the <tt>TreeContactList</tt>.
 */
public TreeContactList(){
  originalMouseListeners=this.getMouseListeners();
  for (  MouseListener listener : originalMouseListeners)   this.removeMouseListener(listener);
  this.addMouseListener(this);
  this.addMouseMotionListener(this);
  this.addTreeExpansionListener(this);
  this.addTreeSelectionListener(this);
  GuiActivator.getContactListService().addMetaContactListListener(mclSource);
  treeModel=new ContactListTreeModel(this);
  setTreeModel(treeModel);
  if (isRootVisible())   setRootVisible(false);
  this.initKeyActions();
  this.initContactSources();
}

Fixed version (ground truth):
/** 
 * Creates the <tt>TreeContactList</tt>.
 * @param clContainer the container, where this contact list component isadded
 */
public TreeContactList(ContactListContainer clContainer){
  parentCLContainer=clContainer;
  originalMouseListeners=this.getMouseListeners();
  for (  MouseListener listener : originalMouseListeners)   this.removeMouseListener(listener);
  this.addMouseListener(this);
  this.addMouseMotionListener(this);
  this.addTreeExpansionListener(this);
  this.addTreeSelectionListener(this);
  GuiActivator.getContactListService().addMetaContactListListener(mclSource);
  treeModel=new ContactListTreeModel(this);
  setTreeModel(treeModel);
  if (isRootVisible())   setRootVisible(false);
  this.initKeyActions();
  this.initContactSources();
}
Program: 103142
Project: 103142
Buggy source:
/** 
 * Applies the default filter.
 * @return the filter query that keeps track of the filtering results
 */
public FilterQuery applyDefaultFilter(){
  FilterQuery filterQuery=null;
  final MainFrame mainFrame=GuiActivator.getUIService().getMainFrame();
  String currentSearchText=mainFrame.getCurrentSearchText();
  if (currentSearchText != null && currentSearchText.length() > 0) {
    if (!SwingUtilities.isEventDispatchThread())     SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        mainFrame.clearCurrentSearchText();
      }
    }
);
 else     mainFrame.clearCurrentSearchText();
  }
 else {
    filterQuery=applyFilter(defaultFilter);
  }
  return filterQuery;
}

Fixed version (ground truth):
/** 
 * Applies the default filter.
 * @return the filter query that keeps track of the filtering results
 */
public FilterQuery applyDefaultFilter(){
  FilterQuery filterQuery=null;
  String currentSearchText=parentCLContainer.getCurrentSearchText();
  if (currentSearchText != null && currentSearchText.length() > 0) {
    if (!SwingUtilities.isEventDispatchThread())     SwingUtilities.invokeLater(new Runnable(){
      public void run(){
        parentCLContainer.clearCurrentSearchText();
      }
    }
);
 else     parentCLContainer.clearCurrentSearchText();
  }
 else {
    filterQuery=applyFilter(defaultFilter);
  }
  return filterQuery;
}
Program: 103143
Project: 103143
Buggy source:
/** 
 * Creates the destination contact list component.
 * @return the created contact list component
 */
private Component createDestContactListComponent(){
  destContactList=GuiActivator.getUIService().createContactListComponent();
  destContactList.setContactButtonsVisible(false);
  destContactList.setRightButtonMenuEnabled(false);
  destContactList.setMultipleSelectionEnabled(true);
  destContactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      if (evt.getClickCount() > 1)       moveContactFromRightToLeft(evt.getSourceContact());
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(destContactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}

Fixed version (ground truth):
/** 
 * Creates the destination contact list component.
 * @return the created contact list component
 */
private Component createDestContactListComponent(){
  destContactList=GuiActivator.getUIService().createContactListComponent(this);
  destContactList.setContactButtonsVisible(false);
  destContactList.setRightButtonMenuEnabled(false);
  destContactList.setMultipleSelectionEnabled(true);
  destContactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      if (evt.getClickCount() > 1)       moveContactFromRightToLeft(evt.getSourceContact());
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(destContactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}
Program: 103144
Project: 103144
Buggy source:
/** 
 * Creates the source contact list component.
 * @return the created contact list component
 */
private Component createSrcContactListComponent(){
  srcContactList=GuiActivator.getUIService().createContactListComponent();
  srcContactList.setDragEnabled(true);
  srcContactList.setRightButtonMenuEnabled(false);
  srcContactList.setContactButtonsVisible(false);
  srcContactList.setMultipleSelectionEnabled(true);
  srcContactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      if (evt.getClickCount() > 1)       moveContactFromLeftToRight(evt.getSourceContact());
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(srcContactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}

Fixed version (ground truth):
/** 
 * Creates the source contact list component.
 * @return the created contact list component
 */
private Component createSrcContactListComponent(){
  srcContactList=GuiActivator.getUIService().createContactListComponent(this);
  srcContactList.setDragEnabled(true);
  srcContactList.setRightButtonMenuEnabled(false);
  srcContactList.setContactButtonsVisible(false);
  srcContactList.setMultipleSelectionEnabled(true);
  srcContactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      if (evt.getClickCount() > 1)       moveContactFromLeftToRight(evt.getSourceContact());
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(srcContactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}
Program: 103145
Project: 103145
Buggy source:
/** 
 * Creates the contact list component.
 * @return the created contact list component
 */
private Component createContactListComponent(){
  contactList=GuiActivator.getUIService().createContactListComponent();
  contactList.setContactButtonsVisible(false);
  contactList.setRightButtonMenuEnabled(false);
  contactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      int clickCount=evt.getClickCount();
      if (clickCount > 1) {
        okButton.doClick();
      }
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(contactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}

Fixed version (ground truth):
/** 
 * Creates the contact list component.
 * @return the created contact list component
 */
private Component createContactListComponent(){
  contactList=GuiActivator.getUIService().createContactListComponent(this);
  contactList.setContactButtonsVisible(false);
  contactList.setRightButtonMenuEnabled(false);
  contactList.addContactListListener(new ContactListListener(){
    public void groupSelected(    ContactListEvent evt){
    }
    public void groupClicked(    ContactListEvent evt){
    }
    public void contactSelected(    ContactListEvent evt){
    }
    public void contactClicked(    ContactListEvent evt){
      int clickCount=evt.getClickCount();
      if (clickCount > 1) {
        okButton.doClick();
      }
    }
  }
);
  JScrollPane contactListScrollPane=new JScrollPane();
  contactListScrollPane.setOpaque(false);
  contactListScrollPane.getViewport().setOpaque(false);
  contactListScrollPane.getViewport().add(contactList.getComponent());
  contactListScrollPane.getViewport().setBorder(null);
  contactListScrollPane.setViewportBorder(null);
  contactListScrollPane.setBorder(null);
  return contactListScrollPane;
}
Program: 103146
Project: 103146
Buggy source:
/** 
 * Creates a contact list component.
 * @return the created <tt>ContactList</tt>
 */
public ContactList createContactListComponent();

Fixed version (ground truth):
/** 
 * Creates a contact list component.
 * @param clContainer the parent contact list container
 * @return the created <tt>ContactList</tt>
 */
public ContactList createContactListComponent(ContactListContainer clContainer);
Program: 103148
Project: 103148
Buggy source:
/** 
 * Shows/hides this dialog.
 * @param isVisible indicates if this dialog should be shown or hidden
 */
public void setVisible(boolean isVisible){
  if (isVisible) {
    preCallWindow.pack();
    preCallWindow.setLocationRelativeTo(null);
  }
  preCallWindow.setVisible(isVisible);
}

Fixed version (ground truth):
/** 
 * Shows/hides this dialog. Synchronized to ensure that only one window can update the global visibleWindows datastructure at a time.
 * @param isVisible indicates if this dialog should be shown or hidden
 */
public synchronized void setVisible(boolean isVisible){
  if (isVisible) {
    preCallWindow.pack();
    preCallWindow.setVisible(isVisible);
    if (visibleWindows.isEmpty()) {
      preCallWindow.setLocationRelativeTo(null);
    }
 else {
      Window last=visibleWindows.get(visibleWindows.size() - 1);
      int newX=last.getX();
      int newY=last.getY() + last.getHeight();
      preCallWindow.setLocation(newX,newY);
    }
    visibleWindows.add(preCallWindow);
  }
 else {
    visibleWindows.remove(preCallWindow);
    preCallWindow.setVisible(isVisible);
  }
}
Program: 103149
Project: 103149
Buggy source:
/** 
 * Handles <tt>ActionEvent</tt>s triggered by pressing the call or the hangup buttons.
 * @param e The <tt>ActionEvent</tt> to handle.
 */
public void actionPerformed(ActionEvent e){
  JButton button=(JButton)e.getSource();
  String buttonName=button.getName();
  if (buttonName.equals(CALL_BUTTON)) {
    callButtonPressed();
  }
 else   if (buttonName.equals(CONF_CALL_BUTTON)) {
    mergeCallButtonPressed();
  }
 else   if (buttonName.equals(VIDEO_CALL_BUTTON)) {
    videoCallButtonPressed();
  }
 else   if (buttonName.equals(HANGUP_BUTTON)) {
    hangupButtonPressed();
  }
  preCallWindow.dispose();
}

Fixed version (ground truth):
/** 
 * Handles <tt>ActionEvent</tt>s triggered by pressing the call or the hangup buttons.
 * @param e The <tt>ActionEvent</tt> to handle.
 */
public void actionPerformed(ActionEvent e){
  JButton button=(JButton)e.getSource();
  String buttonName=button.getName();
  if (buttonName.equals(CALL_BUTTON)) {
    callButtonPressed();
  }
 else   if (buttonName.equals(CONF_CALL_BUTTON)) {
    mergeCallButtonPressed();
  }
 else   if (buttonName.equals(VIDEO_CALL_BUTTON)) {
    videoCallButtonPressed();
  }
 else   if (buttonName.equals(HANGUP_BUTTON)) {
    hangupButtonPressed();
  }
  dispose();
}
Program: 103150
Project: 103150
Buggy source:
/** 
 * Disposes this window.
 */
public void dispose(){
  preCallWindow.dispose();
}

Fixed version (ground truth):
/** 
 * Disposes this window.
 */
public void dispose(){
  visibleWindows.remove(preCallWindow);
  preCallWindow.dispose();
}
Program: 103151
Project: 103151
Buggy source:
/** 
 * Notifies this instance that a specific <tt>ColibriConferenceIQ</tt> has been received.
 * @param conferenceIQ the <tt>ColibriConferenceIQ</tt> which has beenreceived
 */
private void processColibriConferenceIQ(ColibriConferenceIQ conferenceIQ){
  if (IQ.Type.SET.equals(conferenceIQ.getType()) && conferenceIQ.getID() != null) {
    OperationSetBasicTelephony<?> basicTelephony=protocolProvider.getOperationSet(OperationSetBasicTelephony.class);
    if (basicTelephony != null) {
      Iterator<? extends Call> i=basicTelephony.getActiveCalls();
      while (i.hasNext()) {
        Call call=i.next();
        if (call instanceof CallJabberImpl) {
          CallJabberImpl callJabberImpl=(CallJabberImpl)call;
          MediaAwareCallConference conference=callJabberImpl.getConference();
          if ((conference != null) && conference.isJitsiVideoBridge()) {
            callJabberImpl.processColibriConferenceIQ(conferenceIQ);
            break;
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Notifies this instance that a specific <tt>ColibriConferenceIQ</tt> has been received.
 * @param conferenceIQ the <tt>ColibriConferenceIQ</tt> which has beenreceived
 */
private void processColibriConferenceIQ(ColibriConferenceIQ conferenceIQ){
  if (IQ.Type.SET.equals(conferenceIQ.getType()) && conferenceIQ.getID() != null) {
    OperationSetBasicTelephony<?> basicTelephony=protocolProvider.getOperationSet(OperationSetBasicTelephony.class);
    if (basicTelephony != null) {
      Iterator<? extends Call> i=basicTelephony.getActiveCalls();
      while (i.hasNext()) {
        Call call=i.next();
        if (call instanceof CallJabberImpl) {
          CallJabberImpl callJabberImpl=(CallJabberImpl)call;
          MediaAwareCallConference conference=callJabberImpl.getConference();
          if ((conference != null) && conference.isJitsiVideoBridge()) {
            if (callJabberImpl.processColibriConferenceIQ(conferenceIQ))             break;
          }
        }
      }
    }
  }
}
Program: 103152
Project: 103152
Buggy source:
/** 
 * {@inheritDoc}Implements   {@link RegistrationStateChangeListener}. Notifies this instance that there has been a change in the <tt>RegistrationState</tt> of   {@link #protocolProvider}. Subscribes this instance to  {@link net.java.sip.communicator.impl.protocol.jabber.extensions.colibri.ColibriConferenceIQ}s as soon as <tt>protocolProvider</tt> is registered and unsubscribes it as soon as <tt>protocolProvider</tt> is unregistered.
 */
public void registrationStateChanged(RegistrationStateChangeEvent ev){
  RegistrationState registrationState=ev.getNewState();
  if (RegistrationState.REGISTERED.equals(registrationState)) {
    protocolProvider.getConnection().addPacketListener(this,this);
  }
 else   if (RegistrationState.UNREGISTERED.equals(registrationState)) {
    XMPPConnection connection=protocolProvider.getConnection();
    if (connection != null)     connection.removePacketListener(this);
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}Implements   {@link RegistrationStateChangeListener}. Notifies this instance that there has been a change in the <tt>RegistrationState</tt> of   {@link #protocolProvider}. Subscribes this instance to  {@link ColibriConferenceIQ}s as soon as <tt>protocolProvider</tt> is registered and unsubscribes it as soon as <tt>protocolProvider</tt> is unregistered.
 */
public void registrationStateChanged(RegistrationStateChangeEvent ev){
  RegistrationState registrationState=ev.getNewState();
  if (RegistrationState.REGISTERED.equals(registrationState)) {
    protocolProvider.getConnection().addPacketListener(this,this);
  }
 else   if (RegistrationState.UNREGISTERED.equals(registrationState)) {
    XMPPConnection connection=protocolProvider.getConnection();
    if (connection != null)     connection.removePacketListener(this);
  }
}
Program: 103153
Project: 103153
Buggy source:
/** 
 * Implements   {@link PacketFilter}. Determines whether this instance is interested in a specific   {@link Packet}. <tt>OperationSetVideoBridgeImpl</tt> returns <tt>true</tt> if the specified <tt>packet</tt> is a   {@link net.java.sip.communicator.impl.protocol.jabber.extensions.colibri.ColibriConferenceIQ}; otherwise, <tt>false</tt>. 
 * @param packet the <tt>Packet</tt> to be determined whether this instanceis interested in it
 * @return <tt>true</tt> if the specified <tt>packet</tt> is a<tt>ColibriConferenceIQ</tt>; otherwise, <tt>false</tt>
 */
public boolean accept(Packet packet){
  return (packet instanceof ColibriConferenceIQ);
}

Fixed version (ground truth):
/** 
 * Implements   {@link PacketFilter}. Determines whether this instance is interested in a specific   {@link Packet}. <tt>OperationSetVideoBridgeImpl</tt> returns <tt>true</tt> if the specified <tt>packet</tt> is a   {@link ColibriConferenceIQ}; otherwise, <tt>false</tt>. 
 * @param packet the <tt>Packet</tt> to be determined whether this instanceis interested in it
 * @return <tt>true</tt> if the specified <tt>packet</tt> is a<tt>ColibriConferenceIQ</tt>; otherwise, <tt>false</tt>
 */
public boolean accept(Packet packet){
  return (packet instanceof ColibriConferenceIQ);
}