nus-yam/ex-repair huggingface dataset:
Program: 45585
Project: 45585
Buggy source:
/** 
 * Returns the children of the WFS path. The relativePath argument must never begin with a "/".
 */
public static CellList getWFSChildren(String root,String canonicalName){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str"+ canonicalName);
    return CellList.decode(canonicalName,url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.INFO,"String_Node_Str" + root + "String_Node_Str"+ canonicalName,excp);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the children of the WFS path. The relativePath argument must never begin with a "/".
 */
public static CellList getWFSChildren(String root,String canonicalName){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str"+ canonicalName);
    return CellList.decode(canonicalName,url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + root + "String_Node_Str"+ canonicalName,excp);
    return null;
  }
}
Program: 45586
Project: 45586
Buggy source:
/** 
 * Returns the children of the root WFS path, given the name of the WFS root.
 */
public static CellList getWFSRootChildren(String root){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str");
    return CellList.decode("String_Node_Str",url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.INFO,"String_Node_Str" + root,excp);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the children of the root WFS path, given the name of the WFS root.
 */
public static CellList getWFSRootChildren(String root){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str");
    return CellList.decode("String_Node_Str",url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + root,excp);
    return null;
  }
}
Program: 45589
Project: 45589
Buggy source:
/** 
 * @{inheritDoc }
 */
@Override public void setServerState(CellComponentServerState serverState){
  super.setServerState(serverState);
  MicrophoneComponentServerState state=(MicrophoneComponentServerState)serverState;
  if (name == null) {
    name=DEFAULT_NAME;
  }
 else {
    name=state.getName();
  }
  String appendName="String_Node_Str" + cellRef.get().getCellID();
  if (name.indexOf(appendName) < 0) {
    name+="String_Node_Str" + cellRef.get().getCellID();
  }
  volume=state.getVolume();
  fullVolumeArea=state.getFullVolumeArea();
  showBounds=state.getShowBounds();
  activeArea=state.getActiveArea();
  showActiveArea=state.getShowActiveArea();
  LOGGER.info("String_Node_Str" + name + "String_Node_Str"+ volume+ "String_Node_Str"+ fullVolumeArea+ "String_Node_Str"+ activeArea);
  LOGGER.info("String_Node_Str" + name + "String_Node_Str"+ volume+ "String_Node_Str"+ fullVolumeArea+ "String_Node_Str"+ activeArea);
  addProximityListeners(isLive());
}

Fixed version (ground truth):
/** 
 * @{inheritDoc }
 */
@Override public void setServerState(CellComponentServerState serverState){
  super.setServerState(serverState);
  MicrophoneComponentServerState state=(MicrophoneComponentServerState)serverState;
  setMyName(state);
  volume=state.getVolume();
  fullVolumeArea=state.getFullVolumeArea();
  showBounds=state.getShowBounds();
  activeArea=state.getActiveArea();
  showActiveArea=state.getShowActiveArea();
  LOGGER.info("String_Node_Str" + name + "String_Node_Str"+ volume+ "String_Node_Str"+ fullVolumeArea+ "String_Node_Str"+ activeArea);
  addProximityListeners(isLive());
}
Program: 45590
Project: 45590
Buggy source:
/** 
 * @{inheritDoc }
 */
@Override public CellComponentServerState getServerState(CellComponentServerState serverState){
  MicrophoneComponentServerState state=(MicrophoneComponentServerState)serverState;
  if (state == null) {
    state=new MicrophoneComponentServerState();
  }
  String appendName="String_Node_Str" + cellRef.get().getCellID();
  if (name.indexOf(appendName) < 0) {
    name+="String_Node_Str" + cellRef.get().getCellID();
  }
  state.setName(name);
  state.setVolume(volume);
  state.setFullVolumeArea(fullVolumeArea);
  state.setShowBounds(showBounds);
  state.setActiveArea(activeArea);
  state.setShowActiveArea(showActiveArea);
  return super.getServerState(state);
}

Fixed version (ground truth):
/** 
 * @{inheritDoc }
 */
@Override public CellComponentServerState getServerState(CellComponentServerState serverState){
  MicrophoneComponentServerState state=(MicrophoneComponentServerState)serverState;
  if (state == null) {
    state=new MicrophoneComponentServerState();
  }
  setMyName(state);
  state.setName(name);
  state.setVolume(volume);
  state.setFullVolumeArea(fullVolumeArea);
  state.setShowBounds(showBounds);
  state.setActiveArea(activeArea);
  state.setShowActiveArea(showActiveArea);
  return super.getServerState(state);
}
Program: 45591
Project: 45591
Buggy source:
@Override public void setClientState(CellComponentClientState clientState){
  super.setClientState(clientState);
  ModelCellComponentClientState state=(ModelCellComponentClientState)clientState;
  setDeployedModelURL(state.getDeployedModelURL());
  collidable=state.isCollisionEnabled();
  pickable=state.isPickingEnabled();
  lightingEnabled=state.isLightingEnabled();
  if (renderer != null) {
    renderer.setCollisionEnabled(collidable);
    renderer.setPickingEnabled(pickable);
    renderer.setLightingEnabled(lightingEnabled);
  }
}

Fixed version (ground truth):
@Override public void setClientState(CellComponentClientState clientState){
  super.setClientState(clientState);
  ModelCellComponentClientState state=(ModelCellComponentClientState)clientState;
  setDeployedModelURL(state.getDeployedModelURL());
  collidable=state.isCollisionEnabled();
  pickable=state.isPickingEnabled();
  lightingEnabled=state.isLightingEnabled();
  backfaceCullingEnabled=state.isBackfaceCullingEnabled();
  if (renderer != null) {
    renderer.setCollisionEnabled(collidable);
    renderer.setPickingEnabled(pickable);
    renderer.setLightingEnabled(lightingEnabled);
    renderer.setBackfaceCullingEnabled(backfaceCullingEnabled);
  }
}
Program: 45592
Project: 45592
Buggy source:
/** 
 * Instantiate and return the cell renderer
 * @param type
 * @param cell
 * @return
 */
public CellRenderer getCellRenderer(Cell.RendererType type,Cell cell){
synchronized (this) {
    if (renderer == null) {
      if (deployedModel == null) {
        getDeployedModel();
      }
      renderer=new ModelRenderer(cell,deployedModel);
      renderer.setCollisionEnabled(collidable);
      renderer.setPickingEnabled(pickable);
      renderer.setLightingEnabled(lightingEnabled);
    }
    return renderer;
  }
}

Fixed version (ground truth):
/** 
 * Instantiate and return the cell renderer
 * @param type
 * @param cell
 * @return
 */
public CellRenderer getCellRenderer(Cell.RendererType type,Cell cell){
synchronized (this) {
    if (renderer == null) {
      if (deployedModel == null) {
        getDeployedModel();
      }
      renderer=new ModelRenderer(cell,deployedModel);
      renderer.setCollisionEnabled(collidable);
      renderer.setPickingEnabled(pickable);
      renderer.setLightingEnabled(lightingEnabled);
      renderer.setBackfaceCullingEnabled(backfaceCullingEnabled);
    }
    return renderer;
  }
}
Program: 45593
Project: 45593
Buggy source:
public CellComponentServerState clone(CellComponentServerState state){
  ModelCellComponentServerState ret=(ModelCellComponentServerState)state;
  if (ret == null)   ret=new ModelCellComponentServerState();
  ret.deployedModelURL=this.deployedModelURL;
  ret.collidable=this.collidable;
  ret.pickable=this.pickable;
  ret.lightingEnabled=this.lightingEnabled;
  return ret;
}

Fixed version (ground truth):
public CellComponentServerState clone(CellComponentServerState state){
  ModelCellComponentServerState ret=(ModelCellComponentServerState)state;
  if (ret == null)   ret=new ModelCellComponentServerState();
  ret.deployedModelURL=this.deployedModelURL;
  ret.collidable=this.collidable;
  ret.pickable=this.pickable;
  ret.lightingEnabled=this.lightingEnabled;
  ret.backfaceCullingEnabled=this.backfaceCullingEnabled;
  return ret;
}
Program: 45594
Project: 45594
Buggy source:
public CellComponentClientState setClientState(ModelCellComponentClientState state){
  state.setDeployedModelURL(deployedModelURL);
  state.setCollisionEnabled(collidable);
  state.setPickingEnabled(pickable);
  state.setLightingEnabled(lightingEnabled);
  return state;
}

Fixed version (ground truth):
public CellComponentClientState setClientState(ModelCellComponentClientState state){
  state.setDeployedModelURL(deployedModelURL);
  state.setCollisionEnabled(collidable);
  state.setPickingEnabled(pickable);
  state.setLightingEnabled(lightingEnabled);
  state.setBackfaceCullingEnabled(backfaceCullingEnabled);
  return state;
}
Program: 45595
Project: 45595
Buggy source:
public void contextInitialized(ServletContextEvent sce){
  List<AdminRegistration> registry=new ArrayList<AdminRegistration>();
  AdminRegistration home=new AdminRegistration("String_Node_Str","String_Node_Str","String_Node_Str");
  home.setAbsolute(true);
  home.setPosition(0);
  registry.add(home);
  AdminRegistration runner=new AdminRegistration("String_Node_Str","String_Node_Str","String_Node_Str");
  runner.setFilter(AdminRegistration.ADMIN_FILTER);
  runner.setPosition(1);
  registry.add(runner);
  ServletContext sc=sce.getServletContext();
  sc.setAttribute(AdminRegistration.ADMIN_REGISTRY_PROP,registry);
}

Fixed version (ground truth):
public void contextInitialized(ServletContextEvent sce){
  List<AdminRegistration> registry=new ArrayList<AdminRegistration>();
  AdminRegistration home=new AdminRegistration("String_Node_Str","String_Node_Str","String_Node_Str");
  home.setAbsolute(true);
  home.setPosition(0);
  registry.add(home);
  AdminRegistration runner=new AdminRegistration("String_Node_Str","String_Node_Str","String_Node_Str");
  runner.setFilter(AdminRegistration.ADMIN_FILTER);
  runner.setPosition(1);
  registry.add(runner);
  AdminRegistration modules=new AdminRegistration("String_Node_Str","String_Node_Str","String_Node_Str");
  modules.setFilter(AdminRegistration.ADMIN_FILTER);
  registry.add(modules);
  ServletContext sc=sce.getServletContext();
  sc.setAttribute(AdminRegistration.ADMIN_REGISTRY_PROP,registry);
}
Program: 45596
Project: 45596
Buggy source:
/** 
 * Returns the children of the WFS path. The relativePath argument must never begin with a "/".
 */
public static CellList getWFSChildren(String root,String canonicalName){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str"+ canonicalName);
    return CellList.decode(canonicalName,url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + root + "String_Node_Str"+ canonicalName,excp);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the children of the WFS path. The relativePath argument must never begin with a "/".
 */
public static CellList getWFSChildren(String root,String canonicalName){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str"+ canonicalName);
    return CellList.decode(canonicalName,url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.INFO,"String_Node_Str" + root + "String_Node_Str"+ canonicalName,excp);
    return null;
  }
}
Program: 45597
Project: 45597
Buggy source:
/** 
 * Returns the children of the root WFS path, given the name of the WFS root.
 */
public static CellList getWFSRootChildren(String root){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str");
    return CellList.decode("String_Node_Str",url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + root,excp);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the children of the root WFS path, given the name of the WFS root.
 */
public static CellList getWFSRootChildren(String root){
  try {
    URL url=getURL(WFS_PREFIX + root + "String_Node_Str");
    return CellList.decode("String_Node_Str",url.openStream());
  }
 catch (  java.lang.Exception excp) {
    LOGGER.log(Level.INFO,"String_Node_Str" + root,excp);
    return null;
  }
}
Program: 45599
Project: 45599
Buggy source:
@Override public void computeEvent(Event evtIn){
synchronized (this) {
    evt=(AvatarCollisionChangeRequestEvent)evtIn;
    if (collisionController != null) {
      collisionController.setCollisionResponseEnabled(evt.isCollisionResponseEnabled());
      collisionController.setGravityEnabled(evt.isGravityEnabled());
    }
  }
}

Fixed version (ground truth):
@Override public void computeEvent(Event evtIn){
}
Program: 45600
Project: 45600
Buggy source:
@Override public void commitEvent(Event event){
}

Fixed version (ground truth):
@Override public void commitEvent(Event event){
  if (event instanceof AvatarNameEvent) {
    AvatarNameEvent e=(AvatarNameEvent)event;
    NameTagNode nameTagNode=getNameTagNode();
    if (nameTagNode != null && e.getUsername().equals(username) == true) {
      nameTagNode.setNameTag(e.getEventType(),username,e.getUsernameAlias());
    }
  }
 else   if (event instanceof AvatarRendererChangeRequestEvent) {
    handleAvatarRendererChangeRequest((AvatarRendererChangeRequestEvent)event);
  }
}
Program: 45607
Project: 45607
Buggy source:
private void AnswerButtonActionPerformed(java.awt.event.ActionEvent evt){
  logger.info("String_Node_Str");
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,myPresenceInfo,caller,group,Mode.IN_PROGRESS);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  addComponent=mainHUD.createComponent(addHUDPanel);
  addComponent.setIcon(new ImageIcon(getClass().getResource("String_Node_Str")));
  addComponent.setName("String_Node_Str");
  addHUDPanel.setHUDComponent(addComponent);
  addHUDPanel.setPreferredLocation(Layout.NORTHWEST);
  mainHUD.addComponent(addComponent);
  addComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.CLOSED)) {
        addComponent=null;
      }
    }
  }
);
  addComponent.setVisible(true);
  session.send(client,new VoiceChatJoinAcceptedMessage(group,myPresenceInfo,chatType));
  answered=true;
  if (chatType.equals(ChatType.PRIVATE)) {
    client.getWlAvatarCharacter().playAnimation("String_Node_Str");
  }
 else {
    client.getWlAvatarCharacter().stop();
  }
  incomingCallHUDComponent.setVisible(false);
}

Fixed version (ground truth):
private void AnswerButtonActionPerformed(java.awt.event.ActionEvent evt){
  logger.info("String_Node_Str");
  AddHUDPanel addHUDPanel=new AddHUDPanel(client,session,myPresenceInfo,caller,group,Mode.IN_PROGRESS);
  HUD mainHUD=HUDManagerFactory.getHUDManager().getHUD("String_Node_Str");
  addComponent=mainHUD.createComponent(addHUDPanel);
  addComponent.setIcon(new ImageIcon(getClass().getResource("String_Node_Str")));
  addComponent.setName("String_Node_Str");
  addHUDPanel.setHUDComponent(addComponent);
  addHUDPanel.setPreferredLocation(Layout.NORTHWEST);
  mainHUD.addComponent(addComponent);
  addComponent.addEventListener(new HUDEventListener(){
    public void HUDObjectChanged(    HUDEvent e){
      if (e.getEventType().equals(HUDEventType.CLOSED)) {
        addComponent=null;
      }
    }
  }
);
  addComponent.setVisible(true);
  session.send(client,new VoiceChatJoinAcceptedMessage(group,myPresenceInfo,chatType));
  answered=true;
  incomingCallHUDComponent.setVisible(false);
  WlAvatarCharacter avatar=client.getWlAvatarCharacter();
  if (avatar == null) {
    return;
  }
  String answerCell=null;
  for (  String action : avatar.getAnimationNames()) {
    if (action.indexOf("String_Node_Str") > 0) {
      answerCell=action;
      break;
    }
  }
  if (answerCell == null) {
    return;
  }
  if (chatType.equals(ChatType.PRIVATE)) {
    client.getWlAvatarCharacter().playAnimation(answerCell);
  }
 else {
    client.getWlAvatarCharacter().stop();
  }
}
Program: 45609
Project: 45609
Buggy source:
/** 
 * Remove the given processor component from the given entity. 
 */
private static void removeProcessorCompFromEntity(ProcessorComponent pc,Entity entity){
}

Fixed version (ground truth):
/** 
 * Remove the given processor component from the given entity. 
 */
private static void removeProcessorCompFromEntity(ProcessorComponent pc,Entity entity){
  ProcessorCollectionComponent pcc=(ProcessorCollectionComponent)entity.getComponent(ProcessorCollectionComponent.class);
  if (pcc == null)   return;
  pcc.removeProcessor(pc);
  ProcessorComponent[] pcAry=pcc.getProcessors();
  if (pcAry == null || pcAry.length <= 0) {
    entity.removeComponent(ProcessorCollectionComponent.class);
  }
}
Program: 45610
Project: 45610
Buggy source:
/** 
 * @{inheritDoc }
 */
@Override public CellComponentServerState getServerState(CellComponentServerState serverState){
  ConeOfSilenceComponentServerState state=(ConeOfSilenceComponentServerState)serverState;
  if (state == null) {
    state=new ConeOfSilenceComponentServerState();
  }
  if (name.equals(DEFAULT_NAME)) {
    name+="String_Node_Str" + cellRef.get().getCellID();
  }
  state.setName(name);
  state.setBoundsType(boundsType);
  state.setBounds(bounds);
  state.setShowBounds(showBounds);
  state.setOutsideAudioVolume(outsideAudioVolume);
  return super.getServerState(state);
}

Fixed version (ground truth):
/** 
 * @{inheritDoc }
 */
@Override public CellComponentServerState getServerState(CellComponentServerState serverState){
  ConeOfSilenceComponentServerState state=(ConeOfSilenceComponentServerState)serverState;
  if (state == null) {
    state=new ConeOfSilenceComponentServerState();
  }
  if (name == null) {
    name=DEFAULT_NAME;
  }
  if (name.equals(DEFAULT_NAME)) {
    name+="String_Node_Str" + cellRef.get().getCellID();
  }
  state.setName(name);
  state.setBoundsType(boundsType);
  state.setBounds(bounds);
  state.setShowBounds(showBounds);
  state.setOutsideAudioVolume(outsideAudioVolume);
  return super.getServerState(state);
}
Program: 45611
Project: 45611
Buggy source:
/** 
 * Returns the bounding volume hint based upon the deployed model. If the model is too large, it places it on top of the avatar.
 */
private BoundingVolumeHint getBoundingVolumeHint(BoundingVolume bounds){
  BoundingVolume hint=bounds;
  if (bounds instanceof BoundingBox) {
    BoundingBox box=(BoundingBox)bounds;
    if (box.xExtent > 20 || box.yExtent > 20 || box.zExtent > 20) {
      hint=new BoundingBox(Vector3f.ZERO,1,1,1);
    }
  }
 else   if (bounds instanceof BoundingSphere) {
    BoundingSphere sphere=(BoundingSphere)bounds;
    if (sphere.radius > 20) {
      hint=new BoundingSphere(1f,Vector3f.ZERO);
    }
  }
  return new BoundingVolumeHint(true,hint);
}

Fixed version (ground truth):
/** 
 * Returns the bounding volume hint based upon the deployed model. If the model is too large, it places it on top of the avatar.
 */
private BoundingVolumeHint getBoundingVolumeHint(BoundingVolume bounds){
  BoundingVolume hint=bounds;
  if (bounds instanceof BoundingBox) {
    BoundingBox box=(BoundingBox)bounds;
    if (box.xExtent > 20 || box.zExtent > 20) {
      hint=new BoundingBox(Vector3f.ZERO,1,box.yExtent,1);
    }
  }
 else   if (bounds instanceof BoundingSphere) {
    BoundingSphere sphere=(BoundingSphere)bounds;
    if (sphere.radius > 20) {
      hint=new BoundingBox(Vector3f.ZERO,1,sphere.radius,1);
    }
  }
  return new BoundingVolumeHint(true,hint);
}
Program: 45614
Project: 45614
Buggy source:
/** 
 * Returns a set of all cell factories. If no factories are registered, returns an empty set.
 * @return A set of registered cell factories
 */
public Set<CellFactorySPI> getAllCellFactories(){
  return new HashSet(cellFactorySet);
}

Fixed version (ground truth):
/** 
 * Returns a set of all cell factories. If no factories are registered, returns an empty set.
 * @return A set of registered cell factories
 */
public synchronized Set<CellFactorySPI> getAllCellFactories(){
  return new HashSet(cellFactorySet);
}
Program: 45615
Project: 45615
Buggy source:
/** 
 * Returns a set of cell factories given the extension type. If no factories are present for the given extension, returns null.
 * @param extension File type extension (e.g. 'jpg', 'dae')
 * @return A set of CellFactory objects registered on the extension
 */
public Set<CellFactorySPI> getCellFactoriesByExtension(String extension){
  if (extension != null) {
    extension=extension.toLowerCase();
    return cellFactoryExtensionMap.get(extension);
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Returns a set of cell factories given the extension type. If no factories are present for the given extension, returns null.
 * @param extension File type extension (e.g. 'jpg', 'dae')
 * @return A set of CellFactory objects registered on the extension
 */
public synchronized Set<CellFactorySPI> getCellFactoriesByExtension(String extension){
  if (extension != null) {
    extension=extension.toLowerCase();
    return cellFactoryExtensionMap.get(extension);
  }
  return null;
}
Program: 45617
Project: 45617
Buggy source:
/** 
 * Create a cell based upon the uri of the content and the file extension of the uploaded file.
 * @param uri The URI of the uploaded content
 * @param extension The file extension of the content
 */
public void createCell(String uri){
  String extension=getFileExtension(uri);
  if (extension == null) {
    logger.warning("String_Node_Str" + uri);
    return;
  }
  CellSelectionSPI spi=CellSelectionRegistry.getCellSelectionSPI();
  if (spi == null) {
    final JFrame frame=JmeClientMain.getFrame().getFrame();
    logger.warning("String_Node_Str");
    JOptionPane.showMessageDialog(frame,"String_Node_Str" + uri,"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    return;
  }
  CellFactorySPI factory=null;
  try {
    factory=spi.getCellSelection(extension);
  }
 catch (  CellCreationException excp) {
    final JFrame frame=JmeClientMain.getFrame().getFrame();
    logger.log(Level.WARNING,"String_Node_Str" + extension,excp);
    JOptionPane.showMessageDialog(frame,"String_Node_Str" + uri,"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    return;
  }
  if (factory == null) {
    return;
  }
  Properties props=new Properties();
  props.put("String_Node_Str",uri);
  CellServerState state=factory.getDefaultCellServerState(props);
  try {
    CellUtils.createCell(state);
  }
 catch (  CellCreationException excp) {
    logger.log(Level.WARNING,"String_Node_Str" + uri,excp);
  }
}

Fixed version (ground truth):
/** 
 * Create a cell based upon the uri of the content and the file extension of the uploaded file.
 * @param uri The URI of the uploaded content
 * @param extension The file extension of the content
 */
public void createCell(String uri){
  String extension=getFileExtension(uri);
  if (extension == null) {
    LOGGER.warning("String_Node_Str" + uri);
    return;
  }
  CellSelectionSPI spi=CellSelectionRegistry.getCellSelectionSPI();
  if (spi == null) {
    final JFrame frame=JmeClientMain.getFrame().getFrame();
    LOGGER.warning("String_Node_Str");
    JOptionPane.showMessageDialog(frame,"String_Node_Str" + uri,"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    return;
  }
  CellFactorySPI factory=null;
  try {
    factory=spi.getCellSelection(extension);
  }
 catch (  CellCreationException excp) {
    final JFrame frame=JmeClientMain.getFrame().getFrame();
    LOGGER.log(Level.WARNING,"String_Node_Str" + extension,excp);
    JOptionPane.showMessageDialog(frame,"String_Node_Str" + uri,"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    return;
  }
  if (factory == null) {
    return;
  }
  Properties props=new Properties();
  props.put("String_Node_Str",uri);
  CellServerState state=factory.getDefaultCellServerState(props);
  try {
    CellUtils.createCell(state);
  }
 catch (  CellCreationException excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + uri,excp);
  }
}
Program: 45619
Project: 45619
Buggy source:
/** 
 * {@inheritDoc}
 */
public boolean isFileCached(URL location){
  logger.info("String_Node_Str" + location.toExternalForm() + "String_Node_Str"+ location.getProtocol());
  File cacheFile=urlToCacheFile(location);
  return cacheFile.exists();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public boolean isFileCached(URL location){
  if (logger.isLoggable(Level.INFO)) {
    logger.info("String_Node_Str" + location.toExternalForm() + "String_Node_Str"+ location.getProtocol());
  }
  File cacheFile=urlToCacheFile(location);
  return cacheFile.exists();
}
Program: 45621
Project: 45621
Buggy source:
/** 
 * Check if another JVM process has the database opened. If so, then post a message and exit.
 */
private void checkDBException(){
  AssetDB assetDB=null;
  try {
    assetDB=new AssetDB();
  }
 catch (  AssetDBException excp) {
    LOGGER.log(Level.SEVERE,"String_Node_Str",excp);
    String msg=BUNDLE.getString("String_Node_Str") + "String_Node_Str" + BUNDLE.getString("String_Node_Str")+ "String_Node_Str"+ BUNDLE.getString("String_Node_Str")+ "String_Node_Str"+ BUNDLE.getString("String_Node_Str");
    String title=BUNDLE.getString("String_Node_Str");
    JOptionPane.showMessageDialog(null,msg,title,JOptionPane.ERROR_MESSAGE);
    System.exit(1);
  }
  assetDB.disconnect();
}

Fixed version (ground truth):
/** 
 * Check if another JVM process has the database opened. If so, then post a message and exit.
 */
private void checkDBException(){
  AssetDB assetDB=null;
  try {
    assetDB=new AssetDB();
  }
 catch (  AssetDBException excp) {
    LOGGER.log(Level.SEVERE,"String_Node_Str",excp);
    String errorMessage=BUNDLE.getString("String_Node_Str");
    if (os == OS.Windows) {
      errorMessage+="String_Node_Str" + BUNDLE.getString("String_Node_Str");
    }
    JOptionPane.showMessageDialog(null,errorMessage,BUNDLE.getString("String_Node_Str"),JOptionPane.ERROR_MESSAGE);
    System.exit(1);
  }
  assetDB.disconnect();
}
Program: 45623
Project: 45623
Buggy source:
/** 
 * Check we are running in a supported VM.
 */
private void checkVmVersion(){
  try {
    Class clazz=Class.forName("String_Node_Str");
  }
 catch (  ClassNotFoundException ex) {
    Logger.getAnonymousLogger().severe("String_Node_Str");
    JOptionPane.showMessageDialog(null,BUNDLE.getString("String_Node_Str") + "String_Node_Str" + BUNDLE.getString("String_Node_Str")+ "String_Node_Str"+ BUNDLE.getString("String_Node_Str")+ "String_Node_Str"+ BUNDLE.getString("String_Node_Str")+ "String_Node_Str"+ BUNDLE.getString("String_Node_Str"),BUNDLE.getString("String_Node_Str"),JOptionPane.ERROR_MESSAGE);
    System.exit(1);
  }
}

Fixed version (ground truth):
/** 
 * Check we are running in a supported VM.
 */
private void checkVmVersion(){
  String version=System.getProperty("String_Node_Str");
  String[] tokens=version.split("String_Node_Str");
  if (tokens.length > 2) {
    if (Integer.parseInt(tokens[1]) < 6) {
      LOGGER.severe("String_Node_Str");
      String errorMessage=BUNDLE.getString("String_Node_Str") + "String_Node_Str" + BUNDLE.getString(os == OS.OSX ? "String_Node_Str" : "String_Node_Str");
      JOptionPane.showMessageDialog(null,errorMessage,BUNDLE.getString("String_Node_Str"),JOptionPane.ERROR_MESSAGE);
      System.exit(1);
    }
  }
 else {
    LOGGER.warning("String_Node_Str" + version + '\"');
  }
}
Program: 45624
Project: 45624
Buggy source:
/** 
 * {@inheritDoc}
 */
public <T extends CellServerState>T getDefaultCellServerState(Properties props){
  URL url=null;
  if (props != null) {
    String uri=props.getProperty("String_Node_Str");
    if (uri != null) {
      try {
        url=AssetUtils.getAssetURL(uri);
      }
 catch (      MalformedURLException excp) {
        LOGGER.log(Level.WARNING,"String_Node_Str" + uri,excp);
        url=null;
      }
    }
  }
  if (url == null) {
    LOGGER.warning("String_Node_Str");
    return null;
  }
  LOGGER.warning("String_Node_Str" + url.toExternalForm());
  LoaderManager lm=LoaderManager.getLoaderManager();
  DeployedModel dm=null;
  try {
    dm=lm.getLoaderFromDeployment(url);
  }
 catch (  IOException excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + url.toExternalForm(),excp);
    return null;
  }
  ModelCellServerState cellSetup=new ModelCellServerState();
  ModelCellComponentServerState setup=new ModelCellComponentServerState();
  setup.setDeployedModelURL(url.toExternalForm());
  cellSetup.addComponentServerState(setup);
  cellSetup.setName("String_Node_Str");
  return (T)cellSetup;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public <T extends CellServerState>T getDefaultCellServerState(Properties props){
  URL url=null;
  if (props != null) {
    String uri=props.getProperty("String_Node_Str");
    if (uri != null) {
      try {
        url=AssetUtils.getAssetURL(uri);
      }
 catch (      MalformedURLException excp) {
        LOGGER.log(Level.WARNING,"String_Node_Str" + uri,excp);
        url=null;
      }
    }
  }
  if (url == null) {
    LOGGER.warning("String_Node_Str");
    return null;
  }
  LOGGER.warning("String_Node_Str" + url.toExternalForm());
  LoaderManager lm=LoaderManager.getLoaderManager();
  DeployedModel dm=null;
  try {
    dm=lm.getLoaderFromDeployment(url);
  }
 catch (  IOException excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + url.toExternalForm(),excp);
    return null;
  }
  ModelLoader loader=dm.getModelLoader();
  Node node=loader.loadDeployedModel(dm,null);
  BoundingVolume bounds=node.getWorldBound();
  BoundingVolumeHint hint=getBoundingVolumeHint(bounds);
  ModelCellServerState state=new ModelCellServerState();
  ModelCellComponentServerState compState=new ModelCellComponentServerState();
  compState.setDeployedModelURL(url.toExternalForm());
  state.addComponentServerState(compState);
  state.setBoundingVolumeHint(hint);
  state.setName(getFileName(url));
  return (T)state;
}
Program: 45625
Project: 45625
Buggy source:
/** 
 * Adds a new server session for this manager to track and performs an initial synchronization with the avatar configurations found on that server. This method blocks until the initial synchronization is complete, or has been interrupted.
 * @param session The new session to add
 * @throw InterruptedException If the initialization has been interrupted
 */
public void addServerAndSync(ServerSessionManager session) throws InterruptedException {
synchronized (this) {
    logger.info("String_Node_Str" + session.getServerURL());
synchronized (avatarConfigServers) {
      if (avatarConfigServers.containsKey(session) == true) {
        logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
        return;
      }
    }
    ServerSyncThread t=null;
    try {
      logger.info("String_Node_Str" + session.getServerURL());
      t=new ServerSyncThread(session);
      t.scheduleSync(true);
      logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
    }
 catch (    ContentRepositoryException excp) {
      logger.log(Level.WARNING,"String_Node_Str" + "String_Node_Str" + session.getServerURL(),excp);
      return;
    }
synchronized (avatarConfigServers) {
      avatarConfigServers.put(session,t);
      logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Adds a new server session for this manager to track and performs an initial synchronization with the avatar configurations found on that server. This method blocks until the initial synchronization is complete, or has been interrupted.
 * @param session The new session to add
 * @throw InterruptedException If the initialization has been interrupted
 */
public void addServerAndSync(ServerSessionManager session) throws InterruptedException {
synchronized (this) {
    logger.warning("String_Node_Str" + session.getServerURL());
synchronized (avatarConfigServers) {
      if (avatarConfigServers.containsKey(session) == true) {
        logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
        return;
      }
    }
    ServerSyncThread t=null;
    try {
      logger.info("String_Node_Str" + session.getServerURL());
      t=new ServerSyncThread(session);
      t.scheduleSync(true);
      logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
    }
 catch (    ContentRepositoryException excp) {
      logger.log(Level.WARNING,"String_Node_Str" + "String_Node_Str" + session.getServerURL(),excp);
      return;
    }
synchronized (avatarConfigServers) {
      avatarConfigServers.put(session,t);
      logger.info("String_Node_Str" + session.getServerURL() + "String_Node_Str");
    }
  }
}
Program: 45626
Project: 45626
Buggy source:
public ServerSyncThread(final ServerSessionManager manager) throws ContentRepositoryException {
  super(ThreadManager.getThreadGroup(),"String_Node_Str");
  this.manager=manager;
  serverCollection=getBaseServerCollection(manager);
  manager.getPrimarySession().addSessionStatusListener(new SessionStatusListener(){
    public void sessionStatusChanged(    WonderlandSession session,    Status status){
      if (status == Status.DISCONNECTED) {
synchronized (avatarConfigServers) {
          avatarConfigServers.remove(manager);
          setConnected(false);
        }
      }
    }
  }
);
  this.start();
}

Fixed version (ground truth):
public ServerSyncThread(final ServerSessionManager manager) throws ContentRepositoryException {
  super(ThreadManager.getThreadGroup(),"String_Node_Str");
  this.manager=manager;
  serverCollection=getBaseServerCollection(manager);
  this.start();
}
Program: 45627
Project: 45627
Buggy source:
/** 
 * Removes the session from being managed. If it is not being managed, this method does nothing.
 * @param session The session to remove.
 */
public void removeServer(ServerSessionManager session){
synchronized (avatarConfigServers) {
    avatarConfigServers.remove(session);
  }
}

Fixed version (ground truth):
/** 
 * Removes the session from being managed. If it is not being managed, this method does nothing.
 * @param session The session to remove.
 */
public void removeServer(ServerSessionManager session){
  logger.warning("String_Node_Str" + session.getServerURL());
synchronized (avatarConfigServers) {
    ServerSyncThread t=avatarConfigServers.remove(session);
    logger.warning("String_Node_Str" + t);
    if (t != null) {
      t.setConnected(false);
    }
  }
}
Program: 45628
Project: 45628
Buggy source:
/** 
 * Returns the content repository root for the current user, or null upon error.
 */
private ContentCollection getUserRoot(){
  ContentRepositoryRegistry registry=ContentRepositoryRegistry.getInstance();
  ContentRepository repo=registry.getRepository(loginInfo);
  try {
    return repo.getUserRoot();
  }
 catch (  ContentRepositoryException excp) {
    logger.log(Level.WARNING,"String_Node_Str",excp);
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Returns the content repository root for the current user, or null upon error.
 */
private ContentCollection getUserRoot(){
  ContentRepositoryRegistry reg=ContentRepositoryRegistry.getInstance();
  ContentRepository repo=reg.getRepository(loginInfo);
  try {
    return repo.getUserRoot();
  }
 catch (  ContentRepositoryException excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str",excp);
    return null;
  }
}
Program: 45629
Project: 45629
Buggy source:
/** 
 * 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;
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String 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 getModelURI(file);
    }
    return null;
  }
 catch (  ContentRepositoryException excp) {
    LOGGER.log(Level.WARNING,"String_Node_Str" + fileName + "String_Node_Str",excp);
    return null;
  }
}
Program: 45630
Project: 45630
Buggy source:
public AvatarControls(){
  m_inputClient=new DefaultCharacterControls(ClientContextJME.getWorldManager());
  inputGroup=new InputClientGroup();
  inputGroup.setScheme(m_inputClient);
}

Fixed version (ground truth):
public AvatarControls(){
  m_inputClient=new DefaultCharacterControls(ClientContextJME.getWorldManager());
  inputGroup=new InputClientGroup();
  inputGroup.setScheme(m_inputClient);
  ClientContext.getInputManager().addGlobalEventListener(new EventClassListener(){
    private Class[] consumeClasses=new Class[]{FocusEvent3D.class};
    @Override public Class[] eventClassesToConsume(){
      return consumeClasses;
    }
    @Override public void commitEvent(    Event event){
    }
    @Override public void computeEvent(    Event evtIn){
      FocusEvent3D focus=(FocusEvent3D)evtIn;
      if (!focus.isGained()) {
        Component source=ClientContextJME.getClientMain().getFrame().getCanvas();
synchronized (events) {
          for (          Integer pressed : currentPressedKeys) {
            KeyEvent ke=new KeyEvent(source,KeyEvent.KEY_RELEASED,System.currentTimeMillis(),0,pressed.intValue(),KeyEvent.CHAR_UNDEFINED);
            inputGroup.processKeyEvent(ke);
          }
          currentPressedKeys.clear();
        }
      }
    }
  }
);
}
Program: 45631
Project: 45631
Buggy source:
@Override public void compute(ProcessorArmingCollection arg0){
  for (  Event evt : events) {
    if (evt instanceof KeyEvent3D && evt.isFocussed()) {
      KeyEvent ke=(KeyEvent)((KeyEvent3D)evt).getAwtEvent();
      inputGroup.processKeyEvent(ke);
    }
 else     if (evt instanceof MouseEvent3D && evt.isFocussed()) {
      MouseEvent me=(MouseEvent)((MouseEvent3D)evt).getAwtEvent();
      inputGroup.processMouseEvent(me);
    }
  }
  events.clear();
}

Fixed version (ground truth):
@Override public void compute(ProcessorArmingCollection arg0){
  LinkedList<Event> delayedEvents=new LinkedList();
  HashSet<Integer> pressedKeys=new HashSet();
synchronized (events) {
    for (    Event evt : events) {
      if (evt instanceof KeyEvent3D && evt.isFocussed()) {
        KeyEvent ke=(KeyEvent)((KeyEvent3D)evt).getAwtEvent();
        if (ke.getID() == ke.KEY_PRESSED) {
          pressedKeys.add(ke.getKeyCode());
          currentPressedKeys.add(ke.getKeyCode());
          inputGroup.processKeyEvent(ke);
        }
 else         if (ke.getID() == ke.KEY_RELEASED) {
          if (pressedKeys.contains(ke.getKeyCode())) {
            delayedEvents.add(evt);
          }
 else {
            currentPressedKeys.remove(ke.getKeyCode());
            inputGroup.processKeyEvent(ke);
          }
        }
      }
 else       if (evt instanceof MouseEvent3D && evt.isFocussed()) {
        MouseEvent me=(MouseEvent)((MouseEvent3D)evt).getAwtEvent();
        inputGroup.processMouseEvent(me);
      }
    }
    events.clear();
    events.addAll(delayedEvents);
  }
  frameNum++;
}
Program: 45632
Project: 45632
Buggy source:
private void error(final String msg){
  final javax.swing.JPanel panel=this;
  java.awt.EventQueue.invokeLater(new Runnable(){
    public void run(){
      System.out.println(msg);
      String title="String_Node_Str";
      javax.swing.JOptionPane.showMessageDialog(panel,msg,title,javax.swing.JOptionPane.ERROR_MESSAGE);
    }
  }
);
}

Fixed version (ground truth):
private void error(final String msg) throws Exception {
  final javax.swing.JPanel panel=this;
  java.awt.EventQueue.invokeLater(new Runnable(){
    public void run(){
      System.out.println(msg);
      String title="String_Node_Str";
      javax.swing.JOptionPane.showMessageDialog(panel,msg,title,javax.swing.JOptionPane.ERROR_MESSAGE);
    }
  }
);
  throw new Exception(msg);
}
Program: 45633
Project: 45633
Buggy source:
private void fileRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (treatmentType.equals(TreatmentType.FILE) == false) {
    treatmentTextField.setText("String_Node_Str");
  }
 else {
    if (lastFileTreatment != null) {
      treatmentTextField.setText(lastFileTreatment);
    }
  }
  treatmentType=TreatmentType.FILE;
  browseButton.setEnabled(true);
}

Fixed version (ground truth):
private void fileRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (fileRadioButton.isSelected() == false) {
    return;
  }
  if (treatmentType.equals(TreatmentType.FILE) == false) {
    if (lastFileTreatment != null) {
      treatmentTextField.setText(lastFileTreatment);
    }
 else {
      treatmentTextField.setText("String_Node_Str");
    }
  }
  treatmentType=TreatmentType.FILE;
  browseButton.setEnabled(true);
}
Program: 45635
Project: 45635
Buggy source:
private void URLRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (treatmentType.equals(TreatmentType.URL) == false) {
    treatmentTextField.setText("String_Node_Str");
  }
 else {
    if (lastURLTreatment != null) {
      treatmentTextField.setText(lastURLTreatment);
    }
  }
  treatmentType=TreatmentType.URL;
  browseButton.setEnabled(false);
}

Fixed version (ground truth):
private void URLRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (URLRadioButton.isSelected() == false) {
    return;
  }
  if (treatmentType.equals(TreatmentType.URL) == false) {
    if (lastURLTreatment != null) {
      treatmentTextField.setText(lastURLTreatment);
    }
 else {
      treatmentTextField.setText("String_Node_Str");
    }
  }
  treatmentType=TreatmentType.URL;
  browseButton.setEnabled(false);
}
Program: 45636
Project: 45636
Buggy source:
private void contentRepositoryRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (treatmentType.equals(TreatmentType.CONTENT_REPOSITORY) == false) {
    treatmentTextField.setText("String_Node_Str");
  }
 else {
    if (lastContentRepositoryTreatment != null) {
      treatmentTextField.setText(lastContentRepositoryTreatment);
    }
  }
  treatmentType=TreatmentType.CONTENT_REPOSITORY;
  browseButton.setEnabled(true);
}

Fixed version (ground truth):
private void contentRepositoryRadioButtonActionPerformed(java.awt.event.ActionEvent evt){
  if (contentRepositoryRadioButton.isSelected() == false) {
    return;
  }
  if (treatmentType.equals(TreatmentType.CONTENT_REPOSITORY) == false) {
    if (lastContentRepositoryTreatment != null) {
      treatmentTextField.setText(lastContentRepositoryTreatment);
    }
 else {
      treatmentTextField.setText("String_Node_Str");
    }
  }
  treatmentType=TreatmentType.CONTENT_REPOSITORY;
  browseButton.setEnabled(true);
}
Program: 45637
Project: 45637
Buggy source:
private void uploadFileTreatments(){
  String pattern="String_Node_Str";
  String s=lastFileTreatment;
  int ix=lastFileTreatment.indexOf(pattern);
  if (ix >= 0) {
    s=s.substring(ix + pattern.length());
  }
  File file=new File(s);
  if (file.exists() == false) {
    error("String_Node_Str" + file);
    return;
  }
  ContentRepositoryRegistry registry=ContentRepositoryRegistry.getInstance();
  ContentRepository repo=registry.getRepository(LoginManager.getPrimary());
  ContentCollection audioCollection;
  try {
    ContentCollection c=repo.getUserRoot();
    audioCollection=(ContentCollection)c.getChild("String_Node_Str");
    if (audioCollection == null) {
      audioCollection=(ContentCollection)c.createChild("String_Node_Str",Type.COLLECTION);
    }
  }
 catch (  ContentRepositoryException e) {
    error("String_Node_Str" + e.getMessage());
    return;
  }
  try {
    ContentResource r=(ContentResource)audioCollection.removeChild(file.getName());
  }
 catch (  Exception e) {
  }
  try {
    ContentResource r=(ContentResource)audioCollection.createChild(file.getName(),ContentNode.Type.RESOURCE);
    r.put(file);
  }
 catch (  Exception e) {
    error("String_Node_Str" + file + "String_Node_Str"+ e.getMessage());
  }
}

Fixed version (ground truth):
private void uploadFileTreatments() throws Exception {
  String pattern="String_Node_Str";
  String s=lastFileTreatment;
  int ix=lastFileTreatment.indexOf(pattern);
  if (ix >= 0) {
    s=s.substring(ix + pattern.length());
  }
  File file=new File(s);
  if (file.exists() == false) {
    error("String_Node_Str" + file);
    return;
  }
  ContentRepositoryRegistry registry=ContentRepositoryRegistry.getInstance();
  ContentRepository repo=registry.getRepository(LoginManager.getPrimary());
  ContentCollection audioCollection;
  try {
    ContentCollection c=repo.getUserRoot();
    audioCollection=(ContentCollection)c.getChild("String_Node_Str");
    if (audioCollection == null) {
      audioCollection=(ContentCollection)c.createChild("String_Node_Str",Type.COLLECTION);
    }
  }
 catch (  ContentRepositoryException e) {
    error("String_Node_Str" + e.getMessage());
    return;
  }
  try {
    ContentResource r=(ContentResource)audioCollection.removeChild(file.getName());
  }
 catch (  Exception e) {
  }
  try {
    ContentResource r=(ContentResource)audioCollection.createChild(file.getName(),ContentNode.Type.RESOURCE);
    r.put(file);
  }
 catch (  Exception e) {
    error("String_Node_Str" + file + "String_Node_Str"+ e.getMessage());
  }
}
Program: 45639
Project: 45639
Buggy source:
public void triggerGoto(Vector3f position,Quaternion look){
  CellTransform transform=new CellTransform();
  transform.setRotation(look);
  transform.setTranslation(position);
  cell.getComponent(MovableComponent.class).localMoveRequest(transform);
  avatarCharacter.getModelInst().setTransform(new PTransform(look,position,new Vector3f(1,1,1)));
}

Fixed version (ground truth):
public void triggerGoto(Vector3f position,Quaternion look){
  CellTransform transform=new CellTransform();
  transform.setRotation(look);
  transform.setTranslation(position);
  cell.getComponent(MovableComponent.class).localMoveRequest(transform);
  if (avatarCharacter != null)   avatarCharacter.getModelInst().setTransform(new PTransform(look,position,new Vector3f(1,1,1)));
}
Program: 45643
Project: 45643
Buggy source:
/** 
 * Returns the name tag node, creating it if it does not exist. There is a single name tag node attached to the avatar Cell. NOTE: This method assumes it is being called in an MT-Safe manner.
 */
private NameTagNode getNameTagNode(){
  NameTagComponent nameTagComp=cell.getComponent(NameTagComponent.class);
  if (nameTagComp == null) {
    nameTagComp=new NameTagComponent(cell,username,2);
    cell.addComponent(nameTagComp);
  }
  return nameTagComp.getNameTagNode();
}

Fixed version (ground truth):
/** 
 * Returns the name tag node, creating it if it does not exist. There is a single name tag node attached to the avatar Cell. NOTE: This method assumes it is being called in an MT-Safe manner.
 */
private NameTagNode getNameTagNode(){
  NameTagComponent nameTagComp=cell.getComponent(NameTagComponent.class);
  if (nameTagComp == null) {
    return null;
  }
  return nameTagComp.getNameTagNode();
}
Program: 45644
Project: 45644
Buggy source:
public NameTagNode getNameTagNode(){
  return nameTagNode;
}

Fixed version (ground truth):
NameTagNode getNameTagNode(){
  return nameTagNode;
}
Program: 45645
Project: 45645
Buggy source:
public NameTagComponent(Cell cell,String name,float height){
  super(cell);
  nameTagNode=new NameTagNode(name,height);
}

Fixed version (ground truth):
public NameTagComponent(Cell cell){
  super(cell);
  height=2f;
}