nus-yam/ex-repair huggingface dataset:
Program: 59961
Project: 59961
Buggy source:
@Override public void renderAll(){
  unshiftModel();
  float par7=0.0625F;
  TileEntityRenderer.instance.renderEngine.bindTexture("String_Node_Str");
  Pedestal.render(par7);
  Pedestal2.render(par7);
}

Fixed version (ground truth):
@Override public void renderAll(){
  unshiftModel();
  float par7=0.0625F;
  renderer.bindTextureByName("String_Node_Str");
  Pedestal.render(par7);
  Pedestal2.render(par7);
}
Program: 59962
Project: 59962
Buggy source:
public ModelSteveStatueMemorial(float par1){
  float par2=0;
  textureWidth=64;
  textureHeight=32;
  this.heldItemLeft=0;
  this.heldItemRight=0;
  this.bipedHead=new ModelRenderer(this,0,0);
  this.bipedHead.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1);
  this.bipedHead.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedHeadwear=new ModelRenderer(this,32,0);
  this.bipedHeadwear.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1 + 0.5F);
  this.bipedHeadwear.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedBody=new ModelRenderer(this,16,16);
  this.bipedBody.addBox(-4.0F,0.0F,-2.0F,8,12,4,par1);
  this.bipedBody.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedRightArm=new ModelRenderer(this,40,16);
  this.bipedRightArm.addBox(-3.0F,-2.0F,-2.0F,4,12,4,par1);
  this.bipedRightArm.setRotationPoint(-5.0F,2.0F + par2,0.0F);
  this.bipedLeftArm=new ModelRenderer(this,40,16);
  this.bipedLeftArm.mirror=true;
  this.bipedLeftArm.addBox(-1.0F,-2.0F,-2.0F,4,12,4,par1);
  this.bipedLeftArm.setRotationPoint(5.0F,2.0F + par2,0.0F);
  this.bipedRightLeg=new ModelRenderer(this,0,16);
  this.bipedRightLeg.addBox(-2.0F,0.0F,-2.0F,4,12,4,par1);
  this.bipedRightLeg.setRotationPoint(-1.9F,12.0F + par2,0.0F);
  this.bipedLeftLeg=new ModelRenderer(this,0,16);
  this.bipedLeftLeg.mirror=true;
  this.bipedLeftLeg.addBox(-2.0F,0.0F,-2.0F,4,12,4,par1);
  this.bipedLeftLeg.setRotationPoint(1.9F,12.0F + par2,0.0F);
  pedestal=new ModelSmallPedestal();
}

Fixed version (ground truth):
public ModelSteveStatueMemorial(TileEntityGSRenderer renderer){
  this.renderer=renderer;
  float par1=0;
  float par2=0;
  textureWidth=64;
  textureHeight=32;
  this.heldItemLeft=0;
  this.heldItemRight=0;
  this.bipedHead=new ModelRenderer(this,0,0);
  this.bipedHead.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1);
  this.bipedHead.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedHeadwear=new ModelRenderer(this,32,0);
  this.bipedHeadwear.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1 + 0.5F);
  this.bipedHeadwear.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedBody=new ModelRenderer(this,16,16);
  this.bipedBody.addBox(-4.0F,0.0F,-2.0F,8,12,4,par1);
  this.bipedBody.setRotationPoint(0.0F,0.0F + par2,0.0F);
  this.bipedRightArm=new ModelRenderer(this,40,16);
  this.bipedRightArm.addBox(-3.0F,-2.0F,-2.0F,4,12,4,par1);
  this.bipedRightArm.setRotationPoint(-5.0F,2.0F + par2,0.0F);
  this.bipedLeftArm=new ModelRenderer(this,40,16);
  this.bipedLeftArm.mirror=true;
  this.bipedLeftArm.addBox(-1.0F,-2.0F,-2.0F,4,12,4,par1);
  this.bipedLeftArm.setRotationPoint(5.0F,2.0F + par2,0.0F);
  this.bipedRightLeg=new ModelRenderer(this,0,16);
  this.bipedRightLeg.addBox(-2.0F,0.0F,-2.0F,4,12,4,par1);
  this.bipedRightLeg.setRotationPoint(-1.9F,12.0F + par2,0.0F);
  this.bipedLeftLeg=new ModelRenderer(this,0,16);
  this.bipedLeftLeg.mirror=true;
  this.bipedLeftLeg.addBox(-2.0F,0.0F,-2.0F,4,12,4,par1);
  this.bipedLeftLeg.setRotationPoint(1.9F,12.0F + par2,0.0F);
  pedestal=new ModelSmallPedestal(renderer);
}
Program: 59963
Project: 59963
Buggy source:
private void renderArmor(){
  ModelSmallPedestal.shiftModel();
  float scale=1.1F;
  GL11.glScalef(scale,scale,scale);
  TileEntityRenderer.instance.renderEngine.bindTexture("String_Node_Str");
  renderSteve();
}

Fixed version (ground truth):
private void renderArmor(){
  ModelSmallPedestal.shiftModel();
  float scale=1.1F;
  GL11.glScalef(scale,scale,scale);
  renderer.bindTextureByName("String_Node_Str");
  renderSteve();
}
Program: 59964
Project: 59964
Buggy source:
public ModelSwordGrave(){
  textureWidth=32;
  textureHeight=32;
  Blade1=new ModelRenderer(this,0,0);
  Blade1.addBox(0F,0F,0F,1,10,0);
  Blade1.setRotationPoint(-1F,14F,0F);
  Blade1.setTextureSize(64,32);
  Blade1.mirror=true;
  setRotation(Blade1,0F,0.2617994F,0F);
  Blade2=new ModelRenderer(this,2,0);
  Blade2.addBox(0F,0F,0F,1,10,0);
  Blade2.setRotationPoint(-1F,14F,0F);
  Blade2.setTextureSize(64,32);
  Blade2.mirror=true;
  setRotation(Blade2,0F,-0.2617994F,0F);
  Blade3=new ModelRenderer(this,2,0);
  Blade3.addBox(0F,0F,0F,1,10,0);
  Blade3.setRotationPoint(0.9F,14F,0F);
  Blade3.setTextureSize(64,32);
  Blade3.mirror=true;
  setRotation(Blade3,0F,2.879793F,0F);
  Blade4=new ModelRenderer(this,0,0);
  Blade4.addBox(0F,0F,0F,1,10,0);
  Blade4.setRotationPoint(0.9F,14F,0F);
  Blade4.setTextureSize(64,32);
  Blade4.mirror=true;
  setRotation(Blade4,0F,-2.879793F,0F);
  Shape3=new ModelRenderer(this,4,0);
  Shape3.addBox(0F,0F,0F,4,1,1);
  Shape3.setRotationPoint(-2F,13F,-0.5F);
  Shape3.setTextureSize(64,32);
  Shape3.mirror=true;
  setRotation(Shape3,0F,0F,0F);
  Hilt=new ModelRenderer(this,4,2);
  Hilt.addBox(0F,0F,0F,1,3,1);
  Hilt.setRotationPoint(-0.5F,10F,-0.5F);
  Hilt.setTextureSize(64,32);
  Hilt.mirror=true;
  setRotation(Hilt,0F,0F,0F);
}

Fixed version (ground truth):
public ModelSwordGrave(TileEntityGSRenderer renderer){
  this.renderer=renderer;
  textureWidth=32;
  textureHeight=32;
  Blade1=new ModelRenderer(this,0,0);
  Blade1.addBox(0F,0F,0F,1,10,0);
  Blade1.setRotationPoint(-1F,14F,0F);
  Blade1.setTextureSize(64,32);
  Blade1.mirror=true;
  setRotation(Blade1,0F,0.2617994F,0F);
  Blade2=new ModelRenderer(this,2,0);
  Blade2.addBox(0F,0F,0F,1,10,0);
  Blade2.setRotationPoint(-1F,14F,0F);
  Blade2.setTextureSize(64,32);
  Blade2.mirror=true;
  setRotation(Blade2,0F,-0.2617994F,0F);
  Blade3=new ModelRenderer(this,2,0);
  Blade3.addBox(0F,0F,0F,1,10,0);
  Blade3.setRotationPoint(0.9F,14F,0F);
  Blade3.setTextureSize(64,32);
  Blade3.mirror=true;
  setRotation(Blade3,0F,2.879793F,0F);
  Blade4=new ModelRenderer(this,0,0);
  Blade4.addBox(0F,0F,0F,1,10,0);
  Blade4.setRotationPoint(0.9F,14F,0F);
  Blade4.setTextureSize(64,32);
  Blade4.mirror=true;
  setRotation(Blade4,0F,-2.879793F,0F);
  Shape3=new ModelRenderer(this,4,0);
  Shape3.addBox(0F,0F,0F,4,1,1);
  Shape3.setRotationPoint(-2F,13F,-0.5F);
  Shape3.setTextureSize(64,32);
  Shape3.mirror=true;
  setRotation(Shape3,0F,0F,0F);
  Hilt=new ModelRenderer(this,4,2);
  Hilt.addBox(0F,0F,0F,1,3,1);
  Hilt.setRotationPoint(-0.5F,10F,-0.5F);
  Hilt.setTextureSize(64,32);
  Hilt.mirror=true;
  setRotation(Hilt,0F,0F,0F);
}
Program: 59965
Project: 59965
Buggy source:
private void renderEnchantment(){
  float tickModifier=(float)(Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;
  TileEntityRenderer.instance.renderEngine.bindTexture("String_Node_Str");
  GL11.glEnable(GL11.GL_BLEND);
  float var20=0.5F;
  GL11.glColor4f(var20,var20,var20,1.0F);
  GL11.glDepthFunc(GL11.GL_EQUAL);
  GL11.glDepthMask(false);
  for (int var21=0; var21 < 2; ++var21) {
    GL11.glDisable(GL11.GL_LIGHTING);
    float var22=0.76F;
    GL11.glColor4f(0.5F * var22,0.25F * var22,0.8F * var22,1.0F);
    GL11.glBlendFunc(GL11.GL_SRC_COLOR,GL11.GL_ONE);
    GL11.glMatrixMode(GL11.GL_TEXTURE);
    GL11.glLoadIdentity();
    float var23=tickModifier * (0.001F + (float)var21 * 0.003F) * 20.0F;
    float var24=0.33333334F;
    GL11.glScalef(var24,var24,var24);
    GL11.glRotatef(30.0F - (float)var21 * 60.0F,0.0F,0.0F,1.0F);
    GL11.glTranslatef(0.0F,var23,0.0F);
    GL11.glMatrixMode(GL11.GL_MODELVIEW);
    renderAll();
  }
  GL11.glColor4f(1.0F,1.0F,1.0F,1.0F);
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  GL11.glDepthMask(true);
  GL11.glLoadIdentity();
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glDepthFunc(GL11.GL_LEQUAL);
}

Fixed version (ground truth):
private void renderEnchantment(){
  float tickModifier=(float)(Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;
  renderer.bindTextureByName("String_Node_Str");
  GL11.glEnable(GL11.GL_BLEND);
  float var20=0.5F;
  GL11.glColor4f(var20,var20,var20,1.0F);
  GL11.glDepthFunc(GL11.GL_EQUAL);
  GL11.glDepthMask(false);
  for (int var21=0; var21 < 2; ++var21) {
    GL11.glDisable(GL11.GL_LIGHTING);
    float var22=0.76F;
    GL11.glColor4f(0.5F * var22,0.25F * var22,0.8F * var22,1.0F);
    GL11.glBlendFunc(GL11.GL_SRC_COLOR,GL11.GL_ONE);
    GL11.glMatrixMode(GL11.GL_TEXTURE);
    GL11.glLoadIdentity();
    float var23=tickModifier * (0.001F + (float)var21 * 0.003F) * 20.0F;
    float var24=0.33333334F;
    GL11.glScalef(var24,var24,var24);
    GL11.glRotatef(30.0F - (float)var21 * 60.0F,0.0F,0.0F,1.0F);
    GL11.glTranslatef(0.0F,var23,0.0F);
    GL11.glMatrixMode(GL11.GL_MODELVIEW);
    renderAll();
  }
  GL11.glColor4f(1.0F,1.0F,1.0F,1.0F);
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  GL11.glDepthMask(true);
  GL11.glLoadIdentity();
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glDepthFunc(GL11.GL_LEQUAL);
}
Program: 59967
Project: 59967
Buggy source:
private ModelGraveStone getGraveModel(byte graveType){
switch (graveType) {
case 1:
    return cross;
case 2:
  return horisontalPlate;
case 3:
return dogStatue;
case 4:
return catStatue;
case 5:
case 6:
case 7:
case 8:
case 9:
return swordGrave;
case 0:
default :
return verticalPlate;
}
}

Fixed version (ground truth):
private ModelGraveStone getGraveModel(byte graveType){
switch (graveType) {
case 1:
    return cross;
case 2:
  return horisontalPlate;
case 3:
return dogStatue;
case 4:
return catStatue;
case 5:
case 6:
case 7:
case 8:
case 9:
return new ModelSwordGrave(this);
case 0:
default :
return verticalPlate;
}
}
Program: 59968
Project: 59968
Buggy source:
private ModelGraveStone getMemorialModel(int memorialType){
switch (memorialType) {
case 1:
    return obelisk;
case 2:
  return steveStatue;
case 3:
return villagerStatue;
case 4:
return angelStatue;
case 5:
return dogStatue;
case 6:
return catStatue;
case 7:
return creeperStatue;
case 0:
default :
return cross;
}
}

Fixed version (ground truth):
private ModelGraveStone getMemorialModel(int memorialType){
switch (memorialType) {
case 1:
    return obelisk;
case 2:
  return new ModelSteveStatueMemorial(this);
case 3:
return new ModelVillagerMemorial(this);
case 4:
return new ModelAngelStatueMemorial(this);
case 5:
return dogStatue;
case 6:
return catStatue;
case 7:
return new ModelCreeperStatueMemorial(this);
case 0:
default :
return cross;
}
}
Program: 59969
Project: 59969
Buggy source:
@Override public void renderAll(){
  Blade1.render(0.0625F);
  Blade2.render(0.0625F);
  Blade3.render(0.0625F);
  Blade4.render(0.0625F);
  Shape3.render(0.0625F);
}

Fixed version (ground truth):
@Override public void renderAll(){
  Blade1.render(0.0625F);
  Blade2.render(0.0625F);
  Blade3.render(0.0625F);
  Blade4.render(0.0625F);
  Shape3.render(0.0625F);
  Hilt.render(0.0625F);
}
Program: 59970
Project: 59970
Buggy source:
private void getGraveTexture(byte graveType){
switch (graveType) {
case 0:
    bindTextureByName("String_Node_Str");
  break;
case 1:
bindTextureByName("String_Node_Str");
break;
case 2:
bindTextureByName("String_Node_Str");
break;
case 3:
bindTextureByName("String_Node_Str");
break;
case 4:
bindTextureByName("String_Node_Str");
break;
}
}

Fixed version (ground truth):
private void getGraveTexture(byte graveType){
switch (graveType) {
case 0:
    bindTextureByName("String_Node_Str");
  break;
case 1:
bindTextureByName("String_Node_Str");
break;
case 2:
bindTextureByName("String_Node_Str");
break;
case 3:
bindTextureByName("String_Node_Str");
break;
case 4:
bindTextureByName("String_Node_Str");
break;
case 5:
bindTextureByName("String_Node_Str");
break;
case 6:
bindTextureByName("String_Node_Str");
break;
case 7:
bindTextureByName("String_Node_Str");
break;
case 8:
bindTextureByName("String_Node_Str");
break;
case 9:
bindTextureByName("String_Node_Str");
break;
}
}
Program: 59971
Project: 59971
Buggy source:
private int getRandomDamage(Random random,int maxDamage){
  return 20 + random.nextInt(maxDamage - 20);
}

Fixed version (ground truth):
private int getRandomDamage(Random random,int maxDamage){
  return random.nextInt(maxDamage);
}
Program: 59972
Project: 59972
Buggy source:
private void spawnMob(World world,int x,int y,int z){
  if (GraveStoneMobSpawn.checkChance(world.rand)) {
    TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
    if (tileEntity != null) {
      Entity mob=GraveStoneMobSpawn.getMobEntity(world,tileEntity.getGraveType(),x,y,z);
      GraveStoneMobSpawn.spawnMob(world,mob,x,y,z);
    }
  }
}

Fixed version (ground truth):
private void spawnMob(World world,int x,int y,int z){
  if (GraveStoneMobSpawn.checkChance(world.rand)) {
    TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
    if (tileEntity != null) {
      Entity mob=GraveStoneMobSpawn.getMobEntity(world,tileEntity.getGraveType(),x,y,z);
      if (mob != null) {
        GraveStoneMobSpawn.spawnMob(world,mob,x,y,z);
      }
    }
  }
}
Program: 59973
Project: 59973
Buggy source:
public void getEntity(){
  EntityRegistry.registerGlobalEntityID(EntityZombieDog.class,"String_Node_Str",EntityRegistry.findGlobalUniqueEntityId());
  EntityRegistry.registerModEntity(EntityZombieDog.class,"String_Node_Str",1,mod_GraveStone.instance,40,1,true);
  EntityRegistry.addSpawn(EntityZombieDog.class,3,4,8,EnumCreatureType.monster,BiomeGenBase.forest,BiomeGenBase.forestHills,BiomeGenBase.swampland,BiomeGenBase.taiga,BiomeGenBase.taigaHills);
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str");
  registerEntityEgg(EntityZombieDog.class,0xffffff,0x000000);
  EntityRegistry.registerGlobalEntityID(EntityZombieCat.class,"String_Node_Str",EntityRegistry.findGlobalUniqueEntityId());
  EntityRegistry.registerModEntity(EntityZombieCat.class,"String_Node_Str",1,mod_GraveStone.instance,40,1,true);
  EntityRegistry.addSpawn(EntityZombieCat.class,3,4,8,EnumCreatureType.monster,BiomeGenBase.jungle,BiomeGenBase.jungleHills);
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str");
  registerEntityEgg(EntityZombieCat.class,0xffffff,0x000000);
}

Fixed version (ground truth):
public void getEntity(){
  EntityRegistry.registerGlobalEntityID(EntityZombieDog.class,"String_Node_Str",EntityRegistry.findGlobalUniqueEntityId(),0xffffff,0x000000);
  EntityRegistry.addSpawn(EntityZombieDog.class,3,4,8,EnumCreatureType.monster,BiomeGenBase.forest,BiomeGenBase.forestHills,BiomeGenBase.swampland,BiomeGenBase.taiga,BiomeGenBase.taigaHills);
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str");
  EntityRegistry.registerGlobalEntityID(EntityZombieCat.class,"String_Node_Str",EntityRegistry.findGlobalUniqueEntityId(),0xffffff,0x000000);
  EntityRegistry.addSpawn(EntityZombieCat.class,3,4,8,EnumCreatureType.monster,BiomeGenBase.jungle,BiomeGenBase.jungleHills);
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str");
}
Program: 59974
Project: 59974
Buggy source:
/** 
 * Called when the screen is unloaded. Used to disable keyboard repeat events
 */
public void onGuiClosed(){
  Keyboard.enableRepeatEvents(false);
  entityGrave.setDeathText(graveText.toString());
  entityGrave.setEditable(true);
}

Fixed version (ground truth):
/** 
 * Called when the screen is unloaded. Used to disable keyboard repeat events
 */
public void onGuiClosed(){
  Keyboard.enableRepeatEvents(false);
  Packet250CustomPayload packet=new Packet250CustomPayload();
  ByteArrayOutputStream bytes=new ByteArrayOutputStream();
  DataOutputStream data=new DataOutputStream(bytes);
  try {
    data.writeInt(entityGrave.xCoord);
    data.writeInt(entityGrave.yCoord);
    data.writeInt(entityGrave.zCoord);
    data.writeUTF(graveText.toString());
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  packet.channel="String_Node_Str";
  packet.data=bytes.toByteArray();
  packet.length=packet.data.length;
  ModLoader.getMinecraftInstance().getNetHandler().addToSendQueue(packet);
  entityGrave.setDeathText(graveText.toString());
  entityGrave.setEditable(true);
}
Program: 59975
Project: 59975
Buggy source:
public void setDeathText(String text){
  gSDeathText.setDeathText(text);
}

Fixed version (ground truth):
public void setDeathText(String text){
  gSDeathText.setDeathText(text);
  this.onInventoryChanged();
}
Program: 59976
Project: 59976
Buggy source:
/** 
 * Called upon block activation (right click on the block.)
 */
public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer entityPlayer,int par6,float par7,float par8,float par9){
  TileEntityGSGraveStone entity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
  if (entity != null) {
    String deathText=entity.getDeathText();
    if (!deathText.equals("String_Node_Str")) {
      entityPlayer.sendChatToPlayer(deathText);
      if (entity.getAge() != -1) {
        entityPlayer.sendChatToPlayer("String_Node_Str" + entity.getAge() + "String_Node_Str");
      }
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Called upon block activation (right click on the block.)
 */
public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer entityPlayer,int par6,float par7,float par8,float par9){
  if (world.isRemote) {
    TileEntityGSGraveStone entity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
    if (entity != null) {
      String deathText=entity.getDeathText();
      if (!deathText.equals("String_Node_Str")) {
        entityPlayer.sendChatToPlayer(deathText);
        if (entity.getAge() != -1) {
          entityPlayer.sendChatToPlayer("String_Node_Str" + entity.getAge() + "String_Node_Str");
        }
      }
    }
  }
  return false;
}
Program: 59977
Project: 59977
Buggy source:
/** 
 * Called upon block activation (right click on the block.)
 */
public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer entityPlayer,int par6,float par7,float par8,float par9){
  TileEntityGSMemorial entity=(TileEntityGSMemorial)world.getBlockTileEntity(x,y,z);
  if (entity != null) {
    String deathText=entity.getDeathText();
    if (!deathText.equals("String_Node_Str")) {
      entityPlayer.sendChatToPlayer(deathText);
    }
  }
  return false;
}

Fixed version (ground truth):
/** 
 * Called upon block activation (right click on the block.)
 */
public boolean onBlockActivated(World world,int x,int y,int z,EntityPlayer entityPlayer,int par6,float par7,float par8,float par9){
  if (world.isRemote) {
    TileEntityGSMemorial entity=(TileEntityGSMemorial)world.getBlockTileEntity(x,y,z);
    if (entity != null) {
      String deathText=entity.getDeathText();
      if (!deathText.equals("String_Node_Str")) {
        entityPlayer.sendChatToPlayer(deathText);
      }
    }
  }
  return false;
}
Program: 59978
Project: 59978
Buggy source:
/** 
 * Is this block (a) opaque and (b) a full 1m cube?  This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
 */
public boolean isOpaqueCube(){
  return false;
}

Fixed version (ground truth):
/** 
 * Is this block (a) opaque and (b) a full 1m cube? This determines whether or not to render the shared face of two adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
 */
public boolean isOpaqueCube(){
  return false;
}
Program: 59979
Project: 59979
Buggy source:
/** 
 * Called when the block is placed in the world
 */
public void onBlockPlacedBy(World world,int x,int y,int z,EntityLiving player,ItemStack itemStack){
  replaceGround(world,x,y - 1,z);
  int direction=MathHelper.floor_float(player.rotationYaw);
  if (direction < 0) {
    direction=360 + direction;
  }
  int metadata=getMetadataBasedOnRotation(direction);
  world.setBlockMetadataWithNotify(x,y,z,metadata,2);
  TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
  if (tileEntity != null) {
    if (itemStack.stackTagCompound != null) {
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setGraveType(itemStack.stackTagCompound.getByte("String_Node_Str"));
      }
 else {
        tileEntity.setGraveType((byte)0);
      }
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setDeathText(itemStack.stackTagCompound.getString("String_Node_Str"));
      }
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setDeathText(itemStack.stackTagCompound.getString("String_Node_Str"));
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Called when the block is placed in the world
 */
public void onBlockPlacedBy(World world,int x,int y,int z,EntityLiving player,ItemStack itemStack){
  replaceGround(world,x,y - 1,z);
  int direction=MathHelper.floor_float(player.rotationYaw);
  if (direction < 0) {
    direction=360 + direction;
  }
  int metadata=getMetadataBasedOnRotation(direction);
  world.setBlockMetadataWithNotify(x,y,z,metadata,2);
  TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
  if (tileEntity != null) {
    if (itemStack.stackTagCompound != null) {
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setGraveType(itemStack.stackTagCompound.getByte("String_Node_Str"));
      }
 else {
        tileEntity.setGraveType((byte)0);
      }
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setDeathText(itemStack.stackTagCompound.getString("String_Node_Str"));
      }
      if (itemStack.stackTagCompound.hasKey("String_Node_Str")) {
        tileEntity.setAge(itemStack.stackTagCompound.getInteger("String_Node_Str"));
      }
    }
  }
}
Program: 59980
Project: 59980
Buggy source:
/** 
 * Assigns an ip to a device. Note: This will return null if there are 255
 */
private final String assignIp(){
  short[] deviceIp=null;
  short[] ip=Internet.ipFromString(this.ip);
  if (devices.size() > 255) {
    return null;
  }
  for (short i=2; i < 256; i++) {
    deviceIp=new short[]{ip[0],ip[1],ip[2],i};
    if (getDevice(Internet.ipToString(deviceIp)) == null) {
      break;
    }
  }
  return Internet.ipToString(deviceIp);
}

Fixed version (ground truth):
/** 
 * Assigns an ip to a device. Note: This will return null if there are 255
 */
private String assignIp(){
  short[] deviceIp=null;
  short[] ip=Internet.ipFromString(this.ip);
  if (devices.size() > 255) {
    return null;
  }
  for (short i=2; i < 256; i++) {
    deviceIp=new short[]{ip[0],ip[1],ip[2],i};
    if (getDevice(Internet.ipToString(deviceIp)) == null) {
      break;
    }
  }
  return Internet.ipToString(deviceIp);
}
Program: 59981
Project: 59981
Buggy source:
/** 
 * Registers a device on the network.
 */
public final boolean addDevice(Device device){
  String ip=assignIp();
  if (devices.size() >= deviceLimit || ip == null) {
    return false;
  }
  devices.put(device.getIp(),device);
  device.setIp(ip);
  device.setNetwork(this);
  return true;
}

Fixed version (ground truth):
/** 
 * Registers a device on the network.
 */
public final boolean addDevice(Device device){
  String ip=assignIp();
  if (devices.size() >= deviceLimit || ip == null) {
    return false;
  }
  devices.put(ip,device);
  device.setIp(ip);
  device.setNetwork(this);
  return true;
}
Program: 59982
Project: 59982
Buggy source:
private static ModuleBase politics(){
  try {
    Clamp clamp=new Clamp(new Const());
    clamp.setBounds(0,1);
  }
 catch (  ExceptionInvalidParam exceptionInvalidParam) {
    exceptionInvalidParam.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
private static ModuleBase politics(){
  try {
    Clamp clamp=new Clamp(new Const());
    clamp.setBounds(0,1);
    return clamp;
  }
 catch (  ExceptionInvalidParam exceptionInvalidParam) {
    exceptionInvalidParam.printStackTrace();
  }
  return null;
}
Program: 59983
Project: 59983
Buggy source:
private static ModuleBase ethics(){
  try {
    Clamp clamp=new Clamp(new Const());
    clamp.setBounds(0,1);
  }
 catch (  ExceptionInvalidParam exceptionInvalidParam) {
    exceptionInvalidParam.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
private static ModuleBase ethics(){
  try {
    Clamp clamp=new Clamp(new Const());
    clamp.setBounds(0,1);
    return clamp;
  }
 catch (  ExceptionInvalidParam exceptionInvalidParam) {
    exceptionInvalidParam.printStackTrace();
  }
  return null;
}
Program: 59984
Project: 59984
Buggy source:
private void runPython(List<String> parameters) throws FileNotFoundException {
  PythonInterpreter pi=new PythonInterpreter();
  File[] files=new File("String_Node_Str").listFiles();
  File file=null;
  for (  File f : files) {
    if (f.getName().equals(parameters.get(0) + "String_Node_Str")) {
      file=f;
    }
  }
  if (file == null || !file.exists()) {
    throw new FileNotFoundException();
  }
  System.out.println(file.getPath());
  if (parameters.size() > 1) {
    parameters.remove(0);
    pi.set("String_Node_Str",parameters);
  }
  pi.set("String_Node_Str",terminal);
  pi.execfile(file.getPath());
}

Fixed version (ground truth):
private void runPython(List<String> parameters) throws FileNotFoundException {
}
Program: 59985
Project: 59985
Buggy source:
/** 
 * Runs the desired command on a separate thread. Not that any program would be intensive at all, but sleep(n) or large iterations will not lock up the game.
 */
public Command(String input,Device device,Terminal terminal){
  this.input=input;
  this.device=device;
  this.terminal=terminal;
  userInputBuffer=new ConcurrentLinkedQueue<Integer>();
  File f=new File("String_Node_Str");
  if (!f.exists()) {
    try {
      f.createNewFile();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  run();
}

Fixed version (ground truth):
/** 
 * Runs the desired command on a separate thread. Not that any program would be intensive at all, but sleep(n) or large iterations will not lock up the game.
 */
public Command(String input,Device device,Terminal terminal){
  this.input=input;
  this.device=device;
  this.terminal=terminal;
  userInputBuffer=new ConcurrentLinkedQueue<Integer>();
  File f=new File("String_Node_Str");
  if (!f.exists()) {
    try {
      if (!f.createNewFile()) {
        throw new IOException();
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  run();
}
Program: 59986
Project: 59986
Buggy source:
@Override public void run(){
  List<String> parameters=new ArrayList<String>();
  try {
    commandLog=new PrintWriter(new File("String_Node_Str"));
  }
 catch (  FileNotFoundException e1) {
    e1.printStackTrace();
  }
  while (input.matches("String_Node_Str")) {
    if (input.startsWith("String_Node_Str")) {
      input=input.replaceFirst("String_Node_Str","String_Node_Str");
    }
    String inputTemp=input;
    input=input.replaceFirst("String_Node_Str","String_Node_Str");
    int l=input.length();
    String next=inputTemp.substring(0,inputTemp.length() - l);
    parameters.add(next);
  }
  System.out.println(parameters.toString());
  commandLog.println(parameters.toString());
  if (parameters != null && !parameters.isEmpty()) {
    try {
      runPython(parameters);
    }
 catch (    FileNotFoundException e) {
      System.out.println("String_Node_Str");
      commandLog.println("String_Node_Str");
    }
  }
  commandLog.println();
  commandLog.flush();
  commandLog.close();
  terminal.setCommand(null);
}

Fixed version (ground truth):
@Override public void run(){
  List<String> parameters=new ArrayList<String>();
  try {
    commandLog=new PrintWriter(new File("String_Node_Str"));
  }
 catch (  FileNotFoundException e1) {
    e1.printStackTrace();
  }
  while (input.matches("String_Node_Str")) {
    if (input.startsWith("String_Node_Str")) {
      input=input.replaceFirst("String_Node_Str","String_Node_Str");
    }
    String inputTemp=input;
    input=input.replaceFirst("String_Node_Str","String_Node_Str");
    int l=input.length();
    String next=inputTemp.substring(0,inputTemp.length() - l);
    parameters.add(next);
  }
  System.out.println(parameters.toString());
  commandLog.println(parameters.toString());
  if (!parameters.isEmpty()) {
    try {
      runPython(parameters);
    }
 catch (    FileNotFoundException e) {
      System.out.println("String_Node_Str");
      commandLog.println("String_Node_Str");
    }
  }
  commandLog.println();
  commandLog.flush();
  commandLog.close();
  terminal.setCommand(null);
}
Program: 59987
Project: 59987
Buggy source:
public static Billboard make(String imgPath){
  Texture tex=new Texture(Gdx.files.internal(imgPath));
  Billboard sp=new Billboard(tex);
  return sp;
}

Fixed version (ground truth):
public static Billboard make(String imgPath){
  Texture tex=new Texture(Gdx.files.internal(imgPath));
  return new Billboard(tex);
}
Program: 59988
Project: 59988
Buggy source:
@Override public boolean scrolled(int amount){
  float zoom=0;
  if ((cam.zoom > 0.25 && amount < 0) || (cam.zoom < 5 && amount > 0)) {
    zoom=cam.zoom + amount / 20f;
    cam.zoom=Math.round(zoom * 100) / 100f;
  }
  System.out.println(cam.zoom);
  return true;
}

Fixed version (ground truth):
@Override public boolean scrolled(int amount){
  float zoom;
  if ((cam.zoom > 0.25 && amount < 0) || (cam.zoom < 5 && amount > 0)) {
    zoom=cam.zoom + amount / 20f;
    cam.zoom=Math.round(zoom * 100) / 100f;
  }
  System.out.println(cam.zoom);
  return true;
}
Program: 59990
Project: 59990
Buggy source:
public File getFile(FileType type,String name){
switch (type) {
case OS:
    for (    File f : osFiles) {
      if (f.getName() == name) {
        return osFiles.get(osFiles.indexOf(f));
      }
    }
  break;
default :
for (File f : userFiles) {
  if (f.getName() == name) {
    return userFiles.get(userFiles.indexOf(f));
  }
}
break;
case PROGRAM:
for (File f : programFiles) {
if (f.getName() == name) {
return programFiles.get(programFiles.indexOf(f));
}
}
break;
case LOG:
for (File f : logFiles) {
if (f.getName() == name) {
return logFiles.get(logFiles.indexOf(f));
}
}
}
return null;
}

Fixed version (ground truth):
public File getFile(FileType type,String name){
switch (type) {
case OS:
    for (    File f : osFiles) {
      if (f.getName().equals(name)) {
        return osFiles.get(osFiles.indexOf(f));
      }
    }
  break;
default :
for (File f : userFiles) {
  if (f.getName().equals(name)) {
    return userFiles.get(userFiles.indexOf(f));
  }
}
break;
case PROGRAM:
for (File f : programFiles) {
if (f.getName().equals(name)) {
return programFiles.get(programFiles.indexOf(f));
}
}
break;
case LOG:
for (File f : logFiles) {
if (f.getName().equals(name)) {
return logFiles.get(logFiles.indexOf(f));
}
}
}
return null;
}
Program: 59991
Project: 59991
Buggy source:
public void removeFile(FileType type,String name){
switch (type) {
case OS:
    for (    File f : osFiles) {
      if (f.getName() == name) {
        osFiles.remove(f);
      }
    }
  break;
default :
for (File f : userFiles) {
  if (f.getName() == name) {
    userFiles.remove(f);
  }
}
break;
case PROGRAM:
for (File f : programFiles) {
if (f.getName() == name) {
programFiles.remove(f);
}
}
break;
case LOG:
for (File f : logFiles) {
if (f.getName() == name) {
logFiles.remove(f);
}
}
}
}

Fixed version (ground truth):
public void removeFile(FileType type,String name){
switch (type) {
case OS:
    for (    File f : osFiles) {
      if (f.getName().equals(name)) {
        osFiles.remove(f);
      }
    }
  break;
default :
for (File f : userFiles) {
  if (f.getName().equals(name)) {
    userFiles.remove(f);
  }
}
break;
case PROGRAM:
for (File f : programFiles) {
if (f.getName().equals(name)) {
programFiles.remove(f);
}
}
break;
case LOG:
for (File f : logFiles) {
if (f.getName().equals(name)) {
logFiles.remove(f);
}
}
}
}
Program: 59994
Project: 59994
Buggy source:
@CollectionSize.Require(absent=ZERO) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemovePropagatesToMultiset(){
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertFalse(getMultiset().contains(e0()));
}

Fixed version (ground truth):
@CollectionSize.Require(absent=ZERO) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemovePropagatesToMultiset(){
  Set<E> elementSet=getMultiset().elementSet();
  int size=getNumElements();
  int expectedSize=size - getMultiset().count(e0());
  assertTrue(elementSet.remove(e0()));
  assertFalse(getMultiset().contains(e0()));
  assertEquals(expectedSize,getMultiset().size());
}
Program: 59995
Project: 59995
Buggy source:
@CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveDuplicatePropagatesToMultiset(){
  initThreeCopies();
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertEmpty(getMultiset());
}

Fixed version (ground truth):
@CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveDuplicatePropagatesToMultiset(){
  initThreeCopies();
  int size=getNumElements();
  int expectedSize=size - getMultiset().count(e0());
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertEmpty(getMultiset());
  assertEquals(expectedSize,getMultiset().size());
}
Program: 59997
Project: 59997
Buggy source:
@CollectionSize.Require(absent=ZERO) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemovePropagatesToMultiset(){
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertFalse(getMultiset().contains(e0()));
}

Fixed version (ground truth):
@CollectionSize.Require(absent=ZERO) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemovePropagatesToMultiset(){
  Set<E> elementSet=getMultiset().elementSet();
  int size=getNumElements();
  int expectedSize=size - getMultiset().count(e0());
  assertTrue(elementSet.remove(e0()));
  assertFalse(getMultiset().contains(e0()));
  assertEquals(expectedSize,getMultiset().size());
}
Program: 59998
Project: 59998
Buggy source:
@CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveDuplicatePropagatesToMultiset(){
  initThreeCopies();
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertEmpty(getMultiset());
}

Fixed version (ground truth):
@CollectionSize.Require(SEVERAL) @CollectionFeature.Require(SUPPORTS_REMOVE) public void testElementSetRemoveDuplicatePropagatesToMultiset(){
  initThreeCopies();
  int size=getNumElements();
  int expectedSize=size - getMultiset().count(e0());
  Set<E> elementSet=getMultiset().elementSet();
  assertTrue(elementSet.remove(e0()));
  assertEmpty(getMultiset());
  assertEquals(expectedSize,getMultiset().size());
}
Program: 60000
Project: 60000
Buggy source:
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(ImmutableList.of("String_Node_Str"));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
  create().addFirst("String_Node_Str");
  create().addLast("String_Node_Str");
  create().offerFirst("String_Node_Str");
  create().offerLast("String_Node_Str");
  create().removeFirst();
  create().removeLast();
  create().pollFirst();
  create().pollLast();
  create().getFirst();
  create().getLast();
  create().peekFirst();
  create().peekLast();
  create().removeFirstOccurrence("String_Node_Str");
  create().removeLastOccurrence("String_Node_Str");
  create().push("String_Node_Str");
  create().pop();
  create().descendingIterator();
}

Fixed version (ground truth):
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(new ArrayDeque<>(ImmutableList.of("String_Node_Str")));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
  create().addFirst("String_Node_Str");
  create().addLast("String_Node_Str");
  create().offerFirst("String_Node_Str");
  create().offerLast("String_Node_Str");
  create().removeFirst();
  create().removeLast();
  create().pollFirst();
  create().pollLast();
  create().getFirst();
  create().getLast();
  create().peekFirst();
  create().peekLast();
  create().removeFirstOccurrence("String_Node_Str");
  create().removeLastOccurrence("String_Node_Str");
  create().push("String_Node_Str");
  create().pop();
  create().descendingIterator();
}
Program: 60001
Project: 60001
Buggy source:
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(ImmutableList.of("String_Node_Str"));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
}

Fixed version (ground truth):
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(new ArrayDeque<>(ImmutableList.of("String_Node_Str")));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
}
Program: 60002
Project: 60002
Buggy source:
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(ImmutableList.of("String_Node_Str"));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
  create().addFirst("String_Node_Str");
  create().addLast("String_Node_Str");
  create().offerFirst("String_Node_Str");
  create().offerLast("String_Node_Str");
  create().removeFirst();
  create().removeLast();
  create().pollFirst();
  create().pollLast();
  create().getFirst();
  create().getLast();
  create().peekFirst();
  create().peekLast();
  create().removeFirstOccurrence("String_Node_Str");
  create().removeLastOccurrence("String_Node_Str");
  create().push("String_Node_Str");
  create().pop();
  create().descendingIterator();
}

Fixed version (ground truth):
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(new ArrayDeque<>(ImmutableList.of("String_Node_Str")));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
  create().addFirst("String_Node_Str");
  create().addLast("String_Node_Str");
  create().offerFirst("String_Node_Str");
  create().offerLast("String_Node_Str");
  create().removeFirst();
  create().removeLast();
  create().pollFirst();
  create().pollLast();
  create().getFirst();
  create().getLast();
  create().peekFirst();
  create().peekLast();
  create().removeFirstOccurrence("String_Node_Str");
  create().removeLastOccurrence("String_Node_Str");
  create().push("String_Node_Str");
  create().pop();
  create().descendingIterator();
}
Program: 60003
Project: 60003
Buggy source:
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(ImmutableList.of("String_Node_Str"));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
}

Fixed version (ground truth):
public void testHoldsLockOnAllOperations(){
  create().element();
  create().offer("String_Node_Str");
  create().peek();
  create().poll();
  create().remove();
  create().add("String_Node_Str");
  create().addAll(ImmutableList.of("String_Node_Str"));
  create().clear();
  create().contains("String_Node_Str");
  create().containsAll(ImmutableList.of("String_Node_Str"));
  create().equals(new ArrayDeque<>(ImmutableList.of("String_Node_Str")));
  create().hashCode();
  create().isEmpty();
  create().iterator();
  create().remove("String_Node_Str");
  create().removeAll(ImmutableList.of("String_Node_Str"));
  create().retainAll(ImmutableList.of("String_Node_Str"));
  create().size();
  create().toArray();
  create().toArray(new String[]{"String_Node_Str"});
}
Program: 60004
Project: 60004
Buggy source:
private static <K,V>ImmutableSortedMap<K,V> fromEntries(final Comparator<? super K> comparator,boolean sameComparator,Entry<K,V>[] entryArray,int size){
switch (size) {
case 0:
    return emptyMap(comparator);
case 1:
  return ImmutableSortedMap.<K,V>of(comparator,entryArray[0].getKey(),entryArray[0].getValue());
default :
Object[] keys=new Object[size];
Object[] values=new Object[size];
if (sameComparator) {
for (int i=0; i < size; i++) {
Object key=entryArray[i].getKey();
Object value=entryArray[i].getValue();
checkEntryNotNull(key,value);
keys[i]=key;
values[i]=value;
}
}
 else {
Arrays.sort(entryArray,0,size,new Comparator<Entry<K,V>>(){
@Override public int compare(Entry<K,V> e1,Entry<K,V> e2){
  return comparator.compare(e1.getKey(),e2.getKey());
}
}
);
K prevKey=entryArray[0].getKey();
keys[0]=prevKey;
values[0]=entryArray[0].getValue();
for (int i=1; i < size; i++) {
K key=entryArray[i].getKey();
V value=entryArray[i].getValue();
checkEntryNotNull(key,value);
keys[i]=key;
values[i]=value;
checkNoConflict(comparator.compare(prevKey,key) != 0,"String_Node_Str",entryArray[i - 1],entryArray[i]);
prevKey=key;
}
}
return new ImmutableSortedMap<>(new RegularImmutableSortedSet<K>(ImmutableList.<K>asImmutableList(keys),comparator),ImmutableList.<V>asImmutableList(values));
}
}

Fixed version (ground truth):
private static <K,V>ImmutableSortedMap<K,V> fromEntries(final Comparator<? super K> comparator,boolean sameComparator,Entry<K,V>[] entryArray,int size){
switch (size) {
case 0:
    return emptyMap(comparator);
case 1:
  return ImmutableSortedMap.<K,V>of(comparator,entryArray[0].getKey(),entryArray[0].getValue());
default :
Object[] keys=new Object[size];
Object[] values=new Object[size];
if (sameComparator) {
for (int i=0; i < size; i++) {
Object key=entryArray[i].getKey();
Object value=entryArray[i].getValue();
checkEntryNotNull(key,value);
keys[i]=key;
values[i]=value;
}
}
 else {
Arrays.sort(entryArray,0,size,new Comparator<Entry<K,V>>(){
@Override public int compare(Entry<K,V> e1,Entry<K,V> e2){
  return comparator.compare(e1.getKey(),e2.getKey());
}
}
);
K prevKey=entryArray[0].getKey();
keys[0]=prevKey;
values[0]=entryArray[0].getValue();
checkEntryNotNull(keys[0],values[0]);
for (int i=1; i < size; i++) {
K key=entryArray[i].getKey();
V value=entryArray[i].getValue();
checkEntryNotNull(key,value);
keys[i]=key;
values[i]=value;
checkNoConflict(comparator.compare(prevKey,key) != 0,"String_Node_Str",entryArray[i - 1],entryArray[i]);
prevKey=key;
}
}
return new ImmutableSortedMap<>(new RegularImmutableSortedSet<K>(ImmutableList.<K>asImmutableList(keys),comparator),ImmutableList.<V>asImmutableList(values));
}
}