nus-yam/ex-repair huggingface dataset:
Program: 45928
Project: 45928
Buggy source:
void logout(){
  cacheProcessor.quit();
synchronized (spaces) {
    for (    Space sp : spaces)     sp.removeViewCache(this);
    spaces.clear();
  }
  rootCells.clear();
synchronized (pendingCacheUpdates) {
    pendingCacheUpdates.clear();
  }
  UniverseImpl.getUniverse().scheduleTransaction(new KernelRunnable(){
    public String getBaseTaskType(){
      return ViewCache.class.getName() + "String_Node_Str";
    }
    public void run() throws Exception {
synchronized (viewUpdateListeners) {
        for (        ViewUpdateListenerContainer cont : viewUpdateListeners)         cont.notifyListenersLogout();
      }
    }
  }
,identity);
}

Fixed version (ground truth):
void logout(){
  cacheProcessor.quit();
synchronized (spaces) {
    for (    Space sp : spaces)     sp.removeViewCache(this);
    spaces.clear();
  }
  rootCells.clear();
synchronized (pendingCacheUpdates) {
    pendingCacheUpdates.clear();
  }
  UniverseImpl.getUniverse().scheduleTransaction(new KernelRunnable(){
    public String getBaseTaskType(){
      return ViewCache.class.getName() + "String_Node_Str";
    }
    public void run() throws Exception {
synchronized (viewUpdateListeners) {
        for (        ViewUpdateListenerContainer cont : viewUpdateListeners.values())         cont.notifyListenersLogout();
      }
    }
  }
,identity);
}
Program: 45929
Project: 45929
Buggy source:
private void viewCellMoved(final CellTransform worldTransform){
  worldTransform.getTranslation(v3f);
  if (lastSpaceValidationPoint == null || lastSpaceValidationPoint.distanceSquared(v3f) > REVAL_DISTANCE_SQUARED) {
    revalidateSpaces();
    if (lastSpaceValidationPoint == null)     lastSpaceValidationPoint=new Vector3f(v3f);
 else     lastSpaceValidationPoint.set(v3f);
  }
  UniverseImpl.getUniverse().scheduleTransaction(new KernelRunnable(){
    public String getBaseTaskType(){
      return ViewCache.class.getName() + "String_Node_Str";
    }
    public void run() throws Exception {
synchronized (viewUpdateListeners) {
        for (        ViewUpdateListenerContainer cont : viewUpdateListeners)         cont.notifyListeners(worldTransform);
      }
    }
  }
,identity);
}

Fixed version (ground truth):
private void viewCellMoved(final CellTransform worldTransform){
  worldTransform.getTranslation(v3f);
  if (lastSpaceValidationPoint == null || lastSpaceValidationPoint.distanceSquared(v3f) > REVAL_DISTANCE_SQUARED) {
    revalidateSpaces();
    if (lastSpaceValidationPoint == null)     lastSpaceValidationPoint=new Vector3f(v3f);
 else     lastSpaceValidationPoint.set(v3f);
  }
  UniverseImpl.getUniverse().scheduleTransaction(new KernelRunnable(){
    public String getBaseTaskType(){
      return ViewCache.class.getName() + "String_Node_Str";
    }
    public void run() throws Exception {
synchronized (viewUpdateListeners) {
        for (        ViewUpdateListenerContainer cont : viewUpdateListeners.values())         cont.notifyListeners(worldTransform);
      }
    }
  }
,identity);
}
Program: 45930
Project: 45930
Buggy source:
/** 
 * A non root cell has been added or removed, traverse the new subgraph and add/remove all the cells
 * @param child the root of the subgraph
 * @param newCells the set of cells in the subgraph (including child)
 */
private void addOrRemoveSubgraphCellImpl(SpatialCellImpl child,List<CellDescription> newCells){
  child.acquireRootReadLock();
  try {
    newCells.add(new CellDesc(child.getCellID()));
    processChildCells(newCells,child,CellStatus.ACTIVE);
  }
  finally {
    child.releaseRootReadLock();
  }
}

Fixed version (ground truth):
/** 
 * A non root cell has been added or removed, traverse the new subgraph and add/remove all the cells
 * @param child the root of the subgraph
 * @param newCells the set of cells in the subgraph (including child)
 */
private void addOrRemoveSubgraphCellImpl(SpatialCellImpl child,List<CellDescription> newCells){
  child.acquireRootReadLock();
  try {
    newCells.add(new CellDesc(child.getCellID()));
    processChildCells(newCells,child,null);
  }
  finally {
    child.releaseRootReadLock();
  }
}
Program: 45931
Project: 45931
Buggy source:
void addViewUpdateListener(CellID cellID,ViewUpdateListener listener){
synchronized (viewUpdateListeners) {
    viewUpdateListeners.add(new ViewUpdateListenerContainer(cellID,listener));
  }
}

Fixed version (ground truth):
void addViewUpdateListener(CellID cellID,ViewUpdateListener listener){
synchronized (viewUpdateListeners) {
    viewUpdateListeners.put(cellID,new ViewUpdateListenerContainer(cellID,listener));
  }
}
Program: 45932
Project: 45932
Buggy source:
void removeViewUpdateListener(CellID cellID,ViewUpdateListener listener){
synchronized (viewUpdateListeners) {
    viewUpdateListeners.remove(new ViewUpdateListenerContainer(cellID,listener));
  }
}

Fixed version (ground truth):
void removeViewUpdateListener(CellID cellID,ViewUpdateListener listener){
synchronized (viewUpdateListeners) {
    viewUpdateListeners.remove(cellID);
  }
}
Program: 45934
Project: 45934
Buggy source:
public void voiceChat(){
  if (presenceInfo == null) {
    return;
  }
  AddHUDPanel addPanel=new AddHUDPanel(this,session,presenceInfo,presenceInfo);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  final HUDComponent addComponent=mainHUD.createComponent(addPanel);
  addPanel.setHUDComponent(addComponent);
  addComponent.setPreferredLocation(Layout.CENTER);
  addComponent.setName("String_Node_Str");
  addComponent.setIcon(voiceChatIcon);
  mainHUD.addComponent(addComponent);
  addComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
      if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
        addComponent.setVisible(false);
      }
    }
  }
;
  addPanel.addPropertyChangeListener(plistener);
  addComponent.setVisible(true);
}

Fixed version (ground truth):
public void voiceChat(){
  if (presenceInfo == null) {
    return;
  }
  AddHUDPanel addPanel=new AddHUDPanel(this,session,presenceInfo,presenceInfo,Mode.INITIATE);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  final HUDComponent addComponent=mainHUD.createComponent(addPanel);
  addPanel.setHUDComponent(addComponent);
  addComponent.setPreferredLocation(Layout.CENTER);
  addComponent.setName("String_Node_Str");
  addComponent.setIcon(voiceChatIcon);
  mainHUD.addComponent(addComponent);
  addComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
      if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
        addComponent.setVisible(false);
      }
    }
  }
;
  addPanel.addPropertyChangeListener(plistener);
  addComponent.setVisible(true);
}
Program: 45935
Project: 45935
Buggy source:
public void setAudioQuality(AudioQuality audioQuality){
  SoftphoneControlImpl.getInstance().setAudioQuality(audioQuality);
  System.out.println("String_Node_Str");
  reconnectSoftphone();
}

Fixed version (ground truth):
public void setAudioQuality(AudioQuality audioQuality){
  SoftphoneControlImpl.getInstance().setAudioQuality(audioQuality);
  logger.info("String_Node_Str" + audioQuality + "String_Node_Str");
  reconnectSoftphone();
}
Program: 45936
Project: 45936
Buggy source:
public void softphoneExited(){
  System.out.println("String_Node_Str");
  logger.fine("String_Node_Str");
  connectSoftphone();
}

Fixed version (ground truth):
public void softphoneExited(){
  logger.warning("String_Node_Str");
  connectSoftphone();
}
Program: 45938
Project: 45938
Buggy source:
private void setAudioQuality(AudioQuality quality){
  System.out.println("String_Node_Str" + quality + "String_Node_Str"+ audioMenuListener);
  if (audioMenuListener != null) {
    audioMenuListener.setAudioQuality(quality);
  }
}

Fixed version (ground truth):
private void setAudioQuality(AudioQuality quality){
  if (audioMenuListener != null) {
    audioMenuListener.setAudioQuality(quality);
  }
}
Program: 45939
Project: 45939
Buggy source:
private void phoneButtonActionPerformed(java.awt.event.ActionEvent evt){
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,presenceInfo,presenceInfo);
  addHUDPanel.setPhoneType();
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  addHUDComponent=mainHUD.createComponent(addHUDPanel);
  addHUDComponent.setName("String_Node_Str");
  addHUDComponent.setIcon(new ImageIcon(getClass().getResource("String_Node_Str")));
  addHUDComponent.setPreferredLocation(Layout.CENTER);
  addHUDPanel.setHUDComponent(addHUDComponent);
  mainHUD.addComponent(addHUDComponent);
  addHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
    }
  }
;
  addHUDPanel.addPropertyChangeListener(plistener);
  addHUDComponent.setVisible(true);
}

Fixed version (ground truth):
private void phoneButtonActionPerformed(java.awt.event.ActionEvent evt){
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,presenceInfo,presenceInfo,Mode.INITIATE);
  addHUDPanel.setPhoneType();
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  addHUDComponent=mainHUD.createComponent(addHUDPanel);
  addHUDComponent.setName("String_Node_Str");
  addHUDComponent.setIcon(new ImageIcon(getClass().getResource("String_Node_Str")));
  addHUDComponent.setPreferredLocation(Layout.CENTER);
  addHUDPanel.setHUDComponent(addHUDComponent);
  mainHUD.addComponent(addHUDComponent);
  addHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
    }
  }
;
  addHUDPanel.addPropertyChangeListener(plistener);
  addHUDComponent.setVisible(true);
}
Program: 45941
Project: 45941
Buggy source:
private void volumeSliderStateChanged(javax.swing.event.ChangeEvent evt){
  javax.swing.JSlider source=(javax.swing.JSlider)evt.getSource();
  int volume=source.getValue();
  Object[] selectedValues=userList.getSelectedValues();
  if (selectedValues.length > 0) {
    for (int i=0; i < selectedValues.length; i++) {
      String username=NameTagNode.getUsername((String)selectedValues[i]);
      PresenceInfo info=pm.getAliasPresenceInfo(username);
      if (info == null) {
        logger.warning("String_Node_Str" + username);
        System.out.println("String_Node_Str" + username);
        continue;
      }
      logger.info("String_Node_Str" + username + "String_Node_Str"+ volume);
      PresenceInfo pi=info;
      volumeChanged(pi.cellID,pi.callID,volume);
      volumeChangeMap.put(pi,new Integer(volume));
    }
  }
}

Fixed version (ground truth):
private void volumeSliderStateChanged(javax.swing.event.ChangeEvent evt){
  javax.swing.JSlider source=(javax.swing.JSlider)evt.getSource();
  int volume=source.getValue();
  Object[] selectedValues=userList.getSelectedValues();
  if (selectedValues.length > 0) {
    for (int i=0; i < selectedValues.length; i++) {
      String username=NameTagNode.getUsername((String)selectedValues[i]);
      PresenceInfo info=pm.getAliasPresenceInfo(username);
      if (info == null) {
        logger.warning("String_Node_Str" + username);
        continue;
      }
      logger.info("String_Node_Str" + username + "String_Node_Str"+ volume);
      PresenceInfo pi=info;
      volumeChanged(pi.cellID,pi.callID,volume);
      volumeChangeMap.put(pi,new Integer(volume));
    }
  }
}
Program: 45942
Project: 45942
Buggy source:
private void showAddUserPanel(boolean showPanel,boolean showPrivacy){
  if (addPhoneUserPanel != null) {
    addPhoneUserPanel.setVisible(false);
  }
  if (addUserPanel == null) {
    addUserPanel=new AddUserPanel(client,session,myPresenceInfo,caller,group,Mode.ADD);
    addUserPanel.addUserListSelectionListener(new javax.swing.event.ListSelectionListener(){
      public void valueChanged(      javax.swing.event.ListSelectionEvent e){
        addUserListValueChanged(e);
      }
    }
);
  }
  addUserPanel.setVisible(showPanel,mode);
  if (showPanel) {
    add(addUserPanel,BorderLayout.CENTER);
  }
  addUserPanel.showPrivacyPanel(showPrivacy);
}

Fixed version (ground truth):
private void showAddUserPanel(boolean showPanel,boolean showPrivacy){
  if (addPhoneUserPanel != null) {
    addPhoneUserPanel.setVisible(false);
  }
  if (addUserPanel == null) {
    addUserPanel=new AddUserPanel(this,client,session,myPresenceInfo,caller,group);
    addUserPanel.addUserListSelectionListener(new javax.swing.event.ListSelectionListener(){
      public void valueChanged(      javax.swing.event.ListSelectionEvent e){
        addUserListValueChanged(e);
      }
    }
);
  }
  addUserPanel.setVisible(showPanel);
  if (showPanel) {
    add(addUserPanel,BorderLayout.CENTER);
  }
  addUserPanel.showPrivacyPanel(showPrivacy);
}
Program: 45944
Project: 45944
Buggy source:
/** 
 */
public boolean isContentExists(File file){
  String fileName=file.getName();
  ContentCollection userRoot=getUserRoot();
  try {
    boolean exists=(userRoot.getChild(fileName) != null);
    return exists;
  }
 catch (  ContentRepositoryException excp) {
    logger.log(Level.WARNING,"String_Node_Str" + fileName + "String_Node_Str",excp);
    return false;
  }
}

Fixed version (ground truth):
/** 
 * Check to see if the model already exists on the server. If so, return the ContentResource of the model's .dep file, or null otherwise.
 */
private ContentResource isContentExists(File file){
  String fileName="String_Node_Str" + file.getName() + "String_Node_Str"+ file.getName()+ "String_Node_Str";
  ContentCollection userRoot=getUserRoot();
  try {
    ContentNode node=userRoot.getChild(fileName);
    if (node != null && node instanceof ContentResource) {
      return (ContentResource)node;
    }
    return null;
  }
 catch (  ContentRepositoryException excp) {
    logger.log(Level.WARNING,"String_Node_Str" + fileName + "String_Node_Str",excp);
    return null;
  }
}
Program: 45945
Project: 45945
Buggy source:
private void copyFiles(File f,ContentCollection n) throws ContentRepositoryException, IOException {
  if (f.isDirectory()) {
    ContentCollection dir=(ContentCollection)((ContentCollection)n).getChild(f.getName());
    if (dir == null) {
      dir=(ContentCollection)n.createChild(f.getName(),Type.COLLECTION);
    }
    File[] subdirs=f.listFiles();
    if (subdirs != null) {
      for (      File child : subdirs)       copyFiles(child,dir);
    }
  }
 else {
    ContentResource r=(ContentResource)n.createChild(f.getName(),Type.RESOURCE);
    r.put(f);
  }
}

Fixed version (ground truth):
/** 
 * Copies all files recursively from a local File to a remote content collection, creating all of the necessary files and directories.
 */
private void copyFiles(File f,ContentCollection n) throws ContentRepositoryException, IOException {
  String fName=f.getName();
  if (f.isDirectory() == true) {
    ContentNode node=n.getChild(fName);
    if (node == null) {
      node=n.createChild(fName,Type.COLLECTION);
    }
 else     if (!(node instanceof ContentCollection)) {
      node.getParent().removeChild(node.getName());
      node=n.createChild(fName,Type.COLLECTION);
    }
    ContentCollection dir=(ContentCollection)node;
    File[] subdirs=f.listFiles();
    if (subdirs != null) {
      for (      File child : subdirs) {
        copyFiles(child,dir);
      }
    }
  }
 else {
    ContentNode node=n.getChild(fName);
    if (node == null) {
      node=n.createChild(fName,Type.RESOURCE);
    }
 else     if (!(node instanceof ContentResource)) {
      node.getParent().removeChild(node.getName());
      node=n.createChild(fName,Type.RESOURCE);
    }
    ContentResource resource=(ContentResource)node;
    resource.put(f);
  }
}
Program: 45947
Project: 45947
Buggy source:
private void okButtonActionPerformed(java.awt.event.ActionEvent evt){
  PresenceInfo[] info=pm.getAllUsers();
  String alias=usernameAliasTextField.getText();
  for (int i=0; i < info.length; i++) {
    if (info[i].usernameAlias.equals(alias) || info[i].userID.getUsername().equals(alias)) {
      if (presenceInfo.usernameAlias.equals(alias) == false) {
        statusLabel.setText("String_Node_Str");
        return;
      }
    }
  }
  statusLabel.setText("String_Node_Str");
  presenceInfo.usernameAlias=usernameAliasTextField.getText();
  pm.changeUsernameAlias(presenceInfo);
  listener.changeUsernameAlias(presenceInfo);
  listeners.firePropertyChange("String_Node_Str",new String("String_Node_Str"),null);
}

Fixed version (ground truth):
private void okButtonActionPerformed(java.awt.event.ActionEvent evt){
  PresenceInfo[] info=pm.getAllUsers();
  String alias=usernameAliasTextField.getText();
  for (int i=0; i < info.length; i++) {
    if (info[i].usernameAlias.equals(alias) || info[i].userID.getUsername().equals(alias)) {
      if (presenceInfo.equals(info[i]) == false) {
        statusLabel.setText("String_Node_Str");
        return;
      }
    }
  }
  statusLabel.setText("String_Node_Str");
  presenceInfo.usernameAlias=usernameAliasTextField.getText();
  pm.changeUsernameAlias(presenceInfo);
  listener.changeUsernameAlias(presenceInfo);
  listeners.firePropertyChange("String_Node_Str",new String("String_Node_Str"),null);
}
Program: 45948
Project: 45948
Buggy source:
private void receive(CellMessage message){
  if (message instanceof AudioTreatmentMenuChangeMessage == false) {
    return;
  }
  addMenuItems(((AudioTreatmentMenuChangeMessage)message).getMenuItems());
}

Fixed version (ground truth):
private void receive(CellMessage message){
  if (message instanceof AudioTreatmentMenuChangeMessage) {
    addMenuItems(((AudioTreatmentMenuChangeMessage)message).getMenuItems());
    return;
  }
  if (message instanceof AudioVolumeMessage) {
    logger.fine("String_Node_Str" + ((AudioVolumeMessage)message).getVolume());
    new VolumeControlJFrame(cell.getCellID(),this,"String_Node_Str",CallID.getCallID(cell.getCellID()),VolumeUtil.getClientVolume(((AudioVolumeMessage)message).getVolume()));
    return;
  }
}
Program: 45949
Project: 45949
Buggy source:
public void menuItemSelected(ContextMenuItemEvent event){
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str") || event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
    channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),false,false));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
    channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),false,true));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    new VolumeControlJFrame(cell.getCellID(),this,"String_Node_Str",CallID.getCallID(cell.getCellID()));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str") == false) {
    return;
  }
  addMenuItems(new String[]{"String_Node_Str","String_Node_Str"});
  channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),true,true));
}

Fixed version (ground truth):
public void menuItemSelected(ContextMenuItemEvent event){
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str") || event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
    channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),false,false));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
    channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),false,true));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str")) {
    String softphoneCallID=SoftphoneControlImpl.getInstance().getCallID();
    channelComp.send(new AudioVolumeMessage(cell.getCellID(),softphoneCallID,CallID.getCallID(cell.getCellID()),5,false));
    return;
  }
  if (event.getContextMenuItem().getLabel().equals("String_Node_Str") == false) {
    return;
  }
  addMenuItems(new String[]{"String_Node_Str","String_Node_Str"});
  channelComp.send(new AudioTreatmentRequestMessage(cell.getCellID(),true,true));
}
Program: 45950
Project: 45950
Buggy source:
@Override protected void setStatus(CellStatus status,boolean increasing){
  super.setStatus(status,increasing);
switch (status) {
case DISK:
    if (msgReceiver != null) {
      channelComp.removeMessageReceiver(AudioTreatmentRequestMessage.class);
      channelComp.removeMessageReceiver(AudioTreatmentMenuChangeMessage.class);
      msgReceiver=null;
    }
  break;
case ACTIVE:
if (increasing) {
  if (msgReceiver == null) {
    msgReceiver=new ChannelComponent.ComponentMessageReceiver(){
      public void messageReceived(      CellMessage message){
        receive(message);
      }
    }
;
    channelComp=cell.getComponent(ChannelComponent.class);
    channelComp.addMessageReceiver(AudioTreatmentRequestMessage.class,msgReceiver);
    channelComp.addMessageReceiver(AudioTreatmentMenuChangeMessage.class,msgReceiver);
  }
  if (menuItemAdded == false) {
    menuItemAdded=true;
    if (playWhen.equals(PlayWhen.ALWAYS)) {
      addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
      ;
    }
 else {
      addMenuItems(new String[]{"String_Node_Str","String_Node_Str"});
    }
  }
}
break;
}
}

Fixed version (ground truth):
@Override protected void setStatus(CellStatus status,boolean increasing){
  super.setStatus(status,increasing);
switch (status) {
case DISK:
    if (msgReceiver != null) {
      channelComp.removeMessageReceiver(AudioTreatmentRequestMessage.class);
      channelComp.removeMessageReceiver(AudioTreatmentMenuChangeMessage.class);
      channelComp.removeMessageReceiver(AudioVolumeMessage.class);
      msgReceiver=null;
    }
  break;
case ACTIVE:
if (increasing) {
  if (msgReceiver == null) {
    msgReceiver=new ChannelComponent.ComponentMessageReceiver(){
      public void messageReceived(      CellMessage message){
        receive(message);
      }
    }
;
    channelComp=cell.getComponent(ChannelComponent.class);
    channelComp.addMessageReceiver(AudioTreatmentRequestMessage.class,msgReceiver);
    channelComp.addMessageReceiver(AudioTreatmentMenuChangeMessage.class,msgReceiver);
    channelComp.addMessageReceiver(AudioVolumeMessage.class,msgReceiver);
  }
  if (menuItemAdded == false) {
    menuItemAdded=true;
    if (playWhen.equals(PlayWhen.ALWAYS)) {
      addMenuItems(new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"});
      ;
    }
 else {
      addMenuItems(new String[]{"String_Node_Str","String_Node_Str"});
    }
  }
}
break;
}
}
Program: 45951
Project: 45951
Buggy source:
public void volumeChanged(CellID CellID,String otherCallID,int volume){
  channelComp.send(new AudioVolumeMessage(cell.getCellID(),CallID.getCallID(cell.getCellID()),otherCallID,VolumeUtil.getServerVolume(volume)));
}

Fixed version (ground truth):
public void volumeChanged(CellID cellID,String otherCallID,int volume){
  logger.fine("String_Node_Str" + volume);
  String softphoneCallID=SoftphoneControlImpl.getInstance().getCallID();
  channelComp.send(new AudioVolumeMessage(cellID,softphoneCallID,otherCallID,VolumeUtil.getServerVolume(volume),true));
}
Program: 45952
Project: 45952
Buggy source:
public void volumeChanged(CellID cellID,String otherCallID,int volume){
  SoftphoneControlImpl sc=SoftphoneControlImpl.getInstance();
  session.send(client,new AudioVolumeMessage(cellID,sc.getCallID(),otherCallID,VolumeUtil.getServerVolume(volume)));
}

Fixed version (ground truth):
public void volumeChanged(CellID cellID,String otherCallID,int volume){
  SoftphoneControlImpl sc=SoftphoneControlImpl.getInstance();
  session.send(client,new AudioVolumeMessage(cellID,sc.getCallID(),otherCallID,VolumeUtil.getServerVolume(volume),true));
}
Program: 45953
Project: 45953
Buggy source:
public VolumeControlJFrame(CellID cellID,VolumeChangeListener listener,String name,String otherCallID){
  this.cellID=cellID;
  this.listener=listener;
  this.otherCallID=otherCallID;
  initComponents();
  setTitle(name);
}

Fixed version (ground truth):
public VolumeControlJFrame(CellID cellID,VolumeChangeListener listener,String name,String otherCallID,int volume){
  this.cellID=cellID;
  this.listener=listener;
  this.otherCallID=otherCallID;
  initComponents();
  volumeControlSlider.setValue(volume);
  setTitle(name);
  setVisible(true);
}
Program: 45954
Project: 45954
Buggy source:
public AudioVolumeMessage(CellID cellID,String softphoneCallID,String otherCallID,double volume){
  super(cellID);
  this.softphoneCallID=softphoneCallID;
  this.otherCallID=otherCallID;
  this.volume=volume;
}

Fixed version (ground truth):
public AudioVolumeMessage(CellID cellID,String softphoneCallID,String otherCallID,double volume,boolean isSetVolume){
  super(cellID);
  this.softphoneCallID=softphoneCallID;
  this.otherCallID=otherCallID;
  this.volume=volume;
  this.isSetVolume=isSetVolume;
}
Program: 45956
Project: 45956
Buggy source:
private void addProximityListener(Treatment treatment){
  ProximityComponentMO component=cellRef.get().getComponent(ProximityComponentMO.class);
  if (component == null) {
    logger.warning("String_Node_Str" + "String_Node_Str" + cellRef.get().getCellID());
    return;
  }
  BoundingVolume[] bounds=new BoundingVolume[1];
  float cellRadius=getCellRadius();
  bounds[0]=new BoundingSphere(cellRadius,new Vector3f());
  AudioTreatmentProximityListener proximityListener=new AudioTreatmentProximityListener(cellRef.get(),treatment);
  component.addProximityListener(proximityListener,bounds);
}

Fixed version (ground truth):
private void addProximityListener(Treatment treatment){
  ProximityComponentMO component=cellRef.get().getComponent(ProximityComponentMO.class);
  if (component == null) {
    logger.warning("String_Node_Str" + "String_Node_Str" + cellRef.get().getCellID());
    return;
  }
  BoundingVolume[] bounds=new BoundingVolume[1];
  bounds[0]=new BoundingSphere((float)extent,new Vector3f());
  AudioTreatmentProximityListener proximityListener=new AudioTreatmentProximityListener(cellRef.get(),treatment);
  component.addProximityListener(proximityListener,bounds);
}
Program: 45957
Project: 45957
Buggy source:
public void messageReceived(WonderlandClientSender sender,WonderlandClientID clientID,CellMessage message){
  if (message instanceof AudioTreatmentRequestMessage) {
    AudioTreatmentRequestMessage msg=(AudioTreatmentRequestMessage)message;
    logger.fine("String_Node_Str" + msg.restartTreatment());
    String treatmentId=CallID.getCallID(cellID);
    Treatment treatment=null;
    try {
      treatment=AppContext.getManager(VoiceManager.class).getTreatment(treatmentId);
    }
 catch (    IOException e) {
    }
    if (treatment == null) {
      System.out.println("String_Node_Str" + treatmentId);
      return;
    }
    logger.fine("String_Node_Str" + msg.restartTreatment() + "String_Node_Str"+ msg.isPaused());
    if (msg.restartTreatment()) {
      treatment.restart(msg.isPaused());
    }
 else {
      treatment.pause(msg.isPaused());
    }
    return;
  }
  if (message instanceof AudioVolumeMessage) {
    changeAudioVolume((AudioVolumeMessage)message);
    return;
  }
  if (message instanceof AudioVolumeMessage) {
    sender.send(message);
    return;
  }
  logger.warning("String_Node_Str" + message);
}

Fixed version (ground truth):
public void messageReceived(WonderlandClientSender sender,WonderlandClientID clientID,CellMessage message){
  if (message instanceof AudioTreatmentRequestMessage) {
    AudioTreatmentRequestMessage msg=(AudioTreatmentRequestMessage)message;
    logger.fine("String_Node_Str" + msg.restartTreatment());
    String treatmentId=CallID.getCallID(cellID);
    Treatment treatment=null;
    try {
      treatment=AppContext.getManager(VoiceManager.class).getTreatment(treatmentId);
    }
 catch (    IOException e) {
    }
    if (treatment == null) {
      System.out.println("String_Node_Str" + treatmentId);
      return;
    }
    logger.fine("String_Node_Str" + msg.restartTreatment() + "String_Node_Str"+ msg.isPaused());
    if (msg.restartTreatment()) {
      treatment.restart(msg.isPaused());
    }
 else {
      treatment.pause(msg.isPaused());
    }
    return;
  }
  if (message instanceof AudioVolumeMessage) {
    handleAudioVolume(sender,clientID,(AudioVolumeMessage)message);
    return;
  }
  logger.warning("String_Node_Str" + message);
}
Program: 45960
Project: 45960
Buggy source:
private void checkDirty(){
  if (editor == null) {
    return;
  }
  String name=nameTextField.getText();
  System.out.println("String_Node_Str" + name + "String_Node_Str"+ originalName);
  if (name.equals(originalName) == false) {
    editor.setPanelDirty(ConeOfSilenceComponentProperties.class,true);
  }
 else {
    editor.setPanelDirty(ConeOfSilenceComponentProperties.class,false);
  }
}

Fixed version (ground truth):
private void checkDirty(){
  if (editor == null) {
    return;
  }
  String name=nameTextField.getText();
  if (name.equals(originalName) == false) {
    editor.setPanelDirty(ConeOfSilenceComponentProperties.class,true);
  }
 else {
    editor.setPanelDirty(ConeOfSilenceComponentProperties.class,false);
  }
}
Program: 45962
Project: 45962
Buggy source:
public AddHUDPanel(AudioManagerClient client,WonderlandSession session,PresenceInfo myPresenceInfo,PresenceInfo caller,String group,Mode mode){
  this.client=client;
  this.session=session;
  this.myPresenceInfo=myPresenceInfo;
  this.caller=caller;
  if (group == null) {
    group=caller.userID.getUsername() + "String_Node_Str" + groupNumber++;
  }
  this.group=group;
  System.out.println("String_Node_Str" + group);
  initComponents();
  setMode(mode);
  setEnabledInviteButton();
  setEnabledActionButton();
  pm=PresenceManagerFactory.getPresenceManager(session);
  addHUDPanelMap.add(this);
  client.addDisconnectListener(this);
}

Fixed version (ground truth):
public AddHUDPanel(AudioManagerClient client,WonderlandSession session,PresenceInfo myPresenceInfo,PresenceInfo caller,String group,Mode mode){
  this.client=client;
  this.session=session;
  this.myPresenceInfo=myPresenceInfo;
  this.caller=caller;
  if (group == null) {
    group=caller.userID.getUsername() + "String_Node_Str" + groupNumber++;
  }
  this.group=group;
  initComponents();
  setMode(mode);
  setEnabledInviteButton();
  setEnabledActionButton();
  pm=PresenceManagerFactory.getPresenceManager(session);
  addHUDPanelList.add(this);
  client.addDisconnectListener(this);
}
Program: 45963
Project: 45963
Buggy source:
public void setHUDComponent(HUDComponent addHUDComponent){
  this.addHUDComponent=addHUDComponent;
  addHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.CLOSED)) {
        leave();
      }
    }
  }
);
  addHUDComponent.setName("String_Node_Str");
}

Fixed version (ground truth):
public void setHUDComponent(HUDComponent addHUDComponent){
  this.addHUDComponent=addHUDComponent;
  addHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.CLOSED)) {
        leave();
      }
    }
  }
);
}
Program: 45964
Project: 45964
Buggy source:
public void setLocation(int x,int y){
  AddHUDPanel[] addHUDPanels=addHUDPanelMap.toArray(new AddHUDPanel[0]);
  for (int i=0; i < addHUDPanels.length; i++) {
    if (addHUDPanels[i] == this) {
      continue;
    }
    HUDComponent addHUDComponent=addHUDPanels[i].getHUDComponent();
    Point p=addHUDComponent.getLocation();
    if (p.getX() >= x) {
      x=(int)(p.getX() + addHUDComponent.getWidth());
      y=(int)p.getY();
    }
  }
  addHUDComponent.setLocation(x,y);
}

Fixed version (ground truth):
public void setLocation(int x,int y){
  AddHUDPanel[] addHUDPanels=addHUDPanelList.toArray(new AddHUDPanel[0]);
  for (  AddHUDPanel addHUDPanel : addHUDPanelList) {
    if (addHUDPanel == this) {
      continue;
    }
    HUDComponent addHUDComponent=addHUDPanel.getHUDComponent();
    Point p=addHUDComponent.getLocation();
    if (p.getX() >= x) {
      x=(int)(p.getX() + addHUDComponent.getWidth());
      y=(int)p.getY();
    }
  }
  addHUDComponent.setLocation(x,y);
}
Program: 45965
Project: 45965
Buggy source:
private void leave(){
  session.send(client,new VoiceChatLeaveMessage(group,myPresenceInfo));
  addHUDComponent.setVisible(false);
  addHUDPanelMap.remove(this);
  client.getWlAvatarCharacter().stop();
}

Fixed version (ground truth):
private void leave(){
  session.send(client,new VoiceChatLeaveMessage(group,myPresenceInfo));
  addHUDComponent.setVisible(false);
  addHUDPanelList.remove(this);
  if (addModeAddHUDComponent != null) {
    addModeAddHUDComponent.setVisible(false);
  }
  client.getWlAvatarCharacter().stop();
}
Program: 45966
Project: 45966
Buggy source:
public void setPreferredLocation(Layout location){
  if (addHUDPanelMap.size() == 1) {
    addHUDComponent.setPreferredLocation(location);
    return;
  }
  setLocation(0,0);
}

Fixed version (ground truth):
public void setPreferredLocation(Layout location){
  if (addHUDPanelList.size() == 1) {
    addHUDComponent.setPreferredLocation(location);
    return;
  }
  setLocation(0,0);
}
Program: 45967
Project: 45967
Buggy source:
private void holdOtherCalls(){
  AddHUDPanel[] addHUDPanels=addHUDPanelMap.toArray(new AddHUDPanel[0]);
  for (int i=0; i < addHUDPanels.length; i++) {
    if (addHUDPanels[i] == this) {
      continue;
    }
    if (addHUDPanels[i].getMode().equals(Mode.IN_PROGRESS)) {
      addHUDPanels[i].setMode(Mode.HOLD);
    }
  }
}

Fixed version (ground truth):
private void holdOtherCalls(){
  for (  AddHUDPanel addHUDPanel : addHUDPanelList) {
    if (addHUDPanel == this) {
      continue;
    }
    if (addHUDPanel.getMode().equals(Mode.IN_PROGRESS)) {
      addHUDPanel.setMode(Mode.HOLD);
    }
  }
}
Program: 45968
Project: 45968
Buggy source:
public void propertyChange(PropertyChangeEvent pe){
  if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
    addHUDComponent.setVisible(false);
  }
}

Fixed version (ground truth):
public void propertyChange(PropertyChangeEvent pe){
  if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
    addModeAddHUDComponent.setVisible(false);
  }
}
Program: 45969
Project: 45969
Buggy source:
private void addButtonActionPerformed(ActionEvent e){
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,myPresenceInfo,myPresenceInfo,group,Mode.ADD);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  final HUDComponent addHUDComponent=mainHUD.createComponent(addHUDPanel);
  addHUDComponent.setName("String_Node_Str");
  addHUDComponent.setIcon(new ImageIcon(getClass().getResource("String_Node_Str")));
  addHUDPanel.setHUDComponent(addHUDComponent);
  addHUDPanel.setPreferredLocation(Layout.EAST);
  mainHUD.addComponent(addHUDComponent);
  inProgressButtonPanel.setEnabledAddButton(false);
  addHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
        inProgressButtonPanel.setEnabledAddButton(true);
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
      if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
        addHUDComponent.setVisible(false);
      }
    }
  }
;
  addHUDPanel.addPropertyChangeListener(plistener);
  addHUDComponent.setVisible(true);
}

Fixed version (ground truth):
private void addButtonActionPerformed(ActionEvent e){
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,myPresenceInfo,myPresenceInfo,group,Mode.ADD);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  addModeAddHUDComponent=mainHUD.createComponent(addHUDPanel);
  addHUDPanel.setHUDComponent(addModeAddHUDComponent);
  addModeAddHUDComponent.setName("String_Node_Str");
  addHUDPanel.setPreferredLocation(Layout.EAST);
  mainHUD.addComponent(addModeAddHUDComponent);
  inProgressButtonPanel.setEnabledAddButton(false);
  addModeAddHUDComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.DISAPPEARED)) {
        inProgressButtonPanel.setEnabledAddButton(true);
      }
    }
  }
);
  PropertyChangeListener plistener=new PropertyChangeListener(){
    public void propertyChange(    PropertyChangeEvent pe){
      if (pe.getPropertyName().equals("String_Node_Str") || pe.getPropertyName().equals("String_Node_Str")) {
        addModeAddHUDComponent.setVisible(false);
      }
    }
  }
;
  addHUDPanel.addPropertyChangeListener(plistener);
  addModeAddHUDComponent.setVisible(true);
}
Program: 45970
Project: 45970
Buggy source:
public void actionPerformed(ActionEvent event){
  String action=gestureMap.get(event.getActionCommand());
  logger.info("String_Node_Str" + event.getActionCommand());
  if (action.equals("String_Node_Str") == true) {
    avatar.triggerActionStart(TriggerNames.SitOnGround);
  }
 else   if (action.equals("String_Node_Str") == true) {
    CharacterEyes eyes=avatar.getEyes();
    eyes.wink(false);
  }
 else {
    avatar.playAnimation(action);
  }
}

Fixed version (ground truth):
public void actionPerformed(ActionEvent event){
  String action=gestureMap.get(event.getActionCommand());
  logger.info("String_Node_Str" + event.getActionCommand());
  if (action.equals("String_Node_Str") == true) {
    doSitGesture(avatar);
  }
 else   if (action.equals("String_Node_Str") == true) {
    CharacterEyes eyes=avatar.getEyes();
    eyes.wink(false);
  }
 else {
    avatar.playAnimation(action);
  }
}
Program: 45973
Project: 45973
Buggy source:
public SelectionListener(){
  setSwingSafe(true);
}

Fixed version (ground truth):
public SelectionListener(){
}
Program: 45974
Project: 45974
Buggy source:
public ResizeDragListener(){
  setSwingSafe(true);
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  resizeLabel=new JLabel("String_Node_Str");
  labelPanel.add(resizeLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}

Fixed version (ground truth):
public ResizeDragListener(){
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  resizeLabel=new JLabel("String_Node_Str");
  labelPanel.add(resizeLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}
Program: 45975
Project: 45975
Buggy source:
public RotationDragListener(RotateAxis direction){
  this.direction=direction;
  setSwingSafe(true);
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  rotationLabel=new JLabel("String_Node_Str");
  labelPanel.add(rotationLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}

Fixed version (ground truth):
public RotationDragListener(RotateAxis direction){
  this.direction=direction;
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  rotationLabel=new JLabel("String_Node_Str");
  labelPanel.add(rotationLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}
Program: 45976
Project: 45976
Buggy source:
public TranslateDragListener(TranslateAxis direction){
  this.direction=direction;
  setSwingSafe(true);
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  positionLabel=new JLabel("String_Node_Str");
  labelPanel.add(positionLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}

Fixed version (ground truth):
public TranslateDragListener(TranslateAxis direction){
  this.direction=direction;
  labelFrame=new JFrame();
  labelFrame.setResizable(false);
  labelFrame.setUndecorated(true);
  labelFrame.getContentPane().setLayout(new GridLayout(1,1));
  JPanel labelPanel=new JPanel();
  labelPanel.setBackground(Color.WHITE);
  labelPanel.setOpaque(true);
  labelFrame.getContentPane().add(labelPanel);
  labelPanel.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
  labelPanel.setLayout(new GridLayout());
  positionLabel=new JLabel("String_Node_Str");
  labelPanel.add(positionLabel);
  labelPanel.invalidate();
  labelFrame.pack();
}
Program: 45979
Project: 45979
Buggy source:
/** 
 * Utility routine that attempts to load the asset from the cache and sets the success or failure information in the asset. Returns the asset upon success, and null upon failure.
 */
private Asset loadAssetFromCache(Asset asset){
  AssetURI assetURI=asset.getAssetURI();
  String uriString=assetURI.toExternalForm();
  String checksum=asset.getChecksum();
  logger.fine("String_Node_Str" + uriString);
  if (asset.loadLocal() == false) {
    assetFailed(asset,"String_Node_Str");
    return null;
  }
synchronized (loadingAssets) {
synchronized (loadedAssets) {
      AssetID assetID=new AssetID(assetURI,checksum);
      loadingAssets.remove(assetID);
      loadedAssets.put(assetID,asset);
      assetSuccess(asset);
      logger.fine("String_Node_Str" + uriString);
      return asset;
    }
  }
}

Fixed version (ground truth):
/** 
 * Utility routine that attempts to load the asset from the cache and sets the success or failure information in the asset. Returns the asset upon success, and null upon failure.
 */
private Asset loadAssetFromCache(Asset asset,String originalChecksum){
  AssetURI assetURI=asset.getAssetURI();
  String uriString=assetURI.toExternalForm();
  String checksum=asset.getChecksum();
  logger.fine("String_Node_Str" + uriString);
  if (asset.loadLocal() == false) {
    assetFailed(asset,"String_Node_Str");
    return null;
  }
synchronized (loadingAssets) {
synchronized (loadedAssets) {
      AssetID originalID=new AssetID(assetURI,originalChecksum);
      logger.fine("String_Node_Str" + uriString + "String_Node_Str"+ originalChecksum);
      logger.fine("String_Node_Str" + loadingAssets.containsKey(originalID));
      loadingAssets.remove(originalID);
      AssetID assetID=new AssetID(assetURI,checksum);
      logger.fine("String_Node_Str" + uriString + "String_Node_Str"+ checksum);
      loadedAssets.put(assetID,asset);
      assetSuccess(asset);
      logger.fine("String_Node_Str" + uriString);
      return asset;
    }
  }
}
Program: 45980
Project: 45980
Buggy source:
/** 
 * Returns the desired checksum information of the asset.
 */
public abstract String getDesiredChecksum();

Fixed version (ground truth):
/** 
 * Returns the desired checksum information of the asset. The "desired" checksum is a String that describes the "version" of the asset that should be downloaded. The "version" can be an actual checksum or it can be an HTTP if-modified-since value. 
 * @return The desired checksum of the asset
 */
public abstract String getDesiredChecksum();
Program: 45981
Project: 45981
Buggy source:
public AssetStream openAssetStream(AssetURI assetURI){
  if (lastModified == -1) {
    logger.fine("String_Node_Str" + "String_Node_Str" + assetURI.toExternalForm());
  }
  String urlString=getURL(assetURI);
  if (urlString == null) {
    logger.warning("String_Node_Str" + assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
  URLConnection urlConnection=null;
  int response;
  try {
    URL url=new URL(urlString);
    urlConnection=url.openConnection();
    if (lastModified != -1) {
      urlConnection.setIfModifiedSince(lastModified);
    }
    urlConnection.connect();
    response=((HttpURLConnection)urlConnection).getResponseCode();
  }
 catch (  IOException excp) {
    logger.log(Level.WARNING,"String_Node_Str" + urlString,excp);
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
  if (response == HttpURLConnection.HTTP_NOT_MODIFIED) {
    logger.fine("String_Node_Str" + assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.ASSET_CACHED,assetURI);
  }
 else   if (response == HttpURLConnection.HTTP_OK) {
    logger.fine("String_Node_Str" + baseURL + "String_Node_Str"+ assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.STREAM_READY,assetURI,urlConnection,baseURL);
  }
 else {
    logger.warning("String_Node_Str" + urlString + "String_Node_Str"+ response);
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
}

Fixed version (ground truth):
public AssetStream openAssetStream(AssetURI assetURI){
  if (lastModified == -1) {
    logger.fine("String_Node_Str" + "String_Node_Str" + assetURI.toExternalForm());
  }
  String urlString=getURL(assetURI);
  if (urlString == null) {
    logger.warning("String_Node_Str" + assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
  logger.fine("String_Node_Str" + urlString + "String_Node_Str"+ lastModified);
  URLConnection urlConnection=null;
  int response;
  try {
    URL url=new URL(urlString);
    urlConnection=url.openConnection();
    if (lastModified != -1) {
      urlConnection.setIfModifiedSince(lastModified);
    }
    urlConnection.connect();
    response=((HttpURLConnection)urlConnection).getResponseCode();
  }
 catch (  IOException excp) {
    logger.log(Level.WARNING,"String_Node_Str" + urlString,excp);
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
  if (response == HttpURLConnection.HTTP_NOT_MODIFIED) {
    logger.fine("String_Node_Str" + assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.ASSET_CACHED,assetURI);
  }
 else   if (response == HttpURLConnection.HTTP_OK) {
    logger.fine("String_Node_Str" + baseURL + "String_Node_Str"+ assetURI.toExternalForm());
    return new WlContentAssetStream(AssetResponse.STREAM_READY,assetURI,urlConnection,baseURL);
  }
 else {
    logger.warning("String_Node_Str" + urlString + "String_Node_Str"+ response);
    return new WlContentAssetStream(AssetResponse.ASSET_INVALID,assetURI);
  }
}