nus-yam/ex-repair huggingface dataset:
Program: 21887
Project: 21887
Buggy source:
public static void renderEffects(){
  Minecraft mc=FMLClientHandler.instance().getClient();
  if (mc.isSingleplayer()) {
    EntityPlayer player=mc.thePlayer;
    if (player instanceof EntityPlayer && player.isPotionActive(PotionInjector.atropineHigh)) {
      PotionEffect DHigh=player.getActivePotionEffect(PotionInjector.atropineHigh);
      int Multiplier=DHigh.getAmplifier();
      if (Multiplier == 1) {
        RenderDelirium(10);
      }
 else       if (Multiplier == 2) {
        RenderDelirium(15);
      }
 else       if (Multiplier == 3) {
        RenderDelirium(20);
      }
 else       if (Multiplier == 4) {
        RenderDelirium(25);
      }
 else {
        RenderDelirium(25);
      }
    }
  }
}

Fixed version (ground truth):
public static void renderEffects(){
  Minecraft mc=FMLClientHandler.instance().getClient();
  if (mc.isSingleplayer()) {
    EntityPlayer player=mc.thePlayer;
    if (player instanceof EntityPlayer && player.isPotionActive(PotionInjector.atropineHigh)) {
      PotionEffect DHigh=player.getActivePotionEffect(PotionInjector.atropineHigh);
      int Multiplier=DHigh.getAmplifier();
      RenderDelirium(5 * Multiplier + 5);
    }
  }
}
Program: 21889
Project: 21889
Buggy source:
@PreInit public void preInit(FMLPreInitializationEvent event){
  logger=Logger.getLogger("String_Node_Str");
  logger.setParent(FMLLog.getLogger());
  Localization.loadLanguages(CommonProxy.LANG_DIR,LANGUAGES_SUPPORTED);
  loadConfig(event);
  MinechemItems.registerItems();
  MinechemBlocks.registerBlocks();
  MinechemBlueprint.registerBlueprints();
  MinechemRecipes.getInstance().RegisterRecipes();
  MinechemItems.registerToOreDictionary();
  proxy.registerHooks();
  MinecraftForge.EVENT_BUS.register(MinechemRecipes.getInstance());
  MinecraftForge.EVENT_BUS.register(this);
  logger.info("String_Node_Str");
  for (int i=0; i < 5; i++)   VillagerRegistry.instance().registerVillageTradeHandler(i,new VillageTradeHandler());
}

Fixed version (ground truth):
@PreInit public void preInit(FMLPreInitializationEvent event){
}
Program: 21890
Project: 21890
Buggy source:
@Init public void init(FMLInitializationEvent event){
  NetworkRegistry.instance().registerGuiHandler(this,new GuiHandler());
  TickRegistry.registerScheduledTickHandler(new ScheduledTickHandler(),Side.SERVER);
  proxy.registerRenderers();
  System.out.println("String_Node_Str");
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str","String_Node_Str");
  Modstats.instance().getReporter().registerMod(this);
  BasicComponents.requestAll();
  BasicComponents.registerTileEntities();
}

Fixed version (ground truth):
@Init public void init(FMLInitializationEvent event){
  NetworkRegistry.instance().registerGuiHandler(this,new GuiHandler());
  TickRegistry.registerScheduledTickHandler(new ScheduledTickHandler(),Side.SERVER);
  proxy.registerRenderers();
  System.out.println("String_Node_Str");
  LanguageRegistry.instance().addStringLocalization("String_Node_Str","String_Node_Str","String_Node_Str");
  Modstats.instance().getReporter().registerMod(this);
}
Program: 21891
Project: 21891
Buggy source:
public ItemStack getStackInSlot(int i){
  if (inventory != null) {
    return inventory.getStackInSlot(i);
  }
 else {
    return container.getSlot(i).getStack();
  }
}

Fixed version (ground truth):
public ItemStack getStackInSlot(int i){
  if (inventory != null)   return inventory.getStackInSlot(i);
  return container.getSlot(i).getStack();
}
Program: 21892
Project: 21892
Buggy source:
@Override public VisiblityData modifyVisiblity(GuiContainer gui,VisiblityData currentVisibility){
  currentVisibility.showItemPanel=false;
  currentVisibility.showItemSection=false;
  return currentVisibility;
}

Fixed version (ground truth):
@Override public VisiblityData modifyVisiblity(GuiContainer gui,VisiblityData currentVisibility){
  currentVisibility.showItemPanel=true;
  currentVisibility.showItemSection=true;
  return currentVisibility;
}
Program: 21893
Project: 21893
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case 1:
{
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    return;
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.7f,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  GL11.glScalef(0.5f,0.5f,0.5f);
  return;
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
    }
case 1:
{
    GL11.glRotatef(2.0F,0F,0.0F,0.0F);
    GL11.glTranslatef(0F,-0.5F,0.5F);
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.5F,0.0F);
  GL11.glRotatef(-4.0F,0.0F,1.0F,0.0F);
  GL11.glRotatef(2.0F,1.0F,0.0F,0.0F);
  GL11.glScalef(1F,1F,1F);
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21894
Project: 21894
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case 1:
{
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    return;
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.7f,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  GL11.glScalef(0.5f,0.5f,0.5f);
  return;
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
    }
case 1:
{
    GL11.glRotatef(2.0F,0F,0.0F,0.0F);
    GL11.glTranslatef(0F,-0.5F,0.5F);
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.5F,0.0F);
  GL11.glRotatef(-4.0F,0.0F,1.0F,0.0F);
  GL11.glRotatef(2.0F,1.0F,0.0F,0.0F);
  GL11.glScalef(1F,1F,1F);
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21895
Project: 21895
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case 1:
{
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    return;
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.7f,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  GL11.glScalef(0.5f,0.5f,0.5f);
  return;
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
modelMicroscope.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
    }
case 1:
{
    GL11.glRotatef(2.0F,0F,0.0F,0.0F);
    GL11.glTranslatef(0F,-0.5F,0.5F);
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.5F,0.0F);
  GL11.glRotatef(-4.0F,0.0F,1.0F,0.0F);
  GL11.glRotatef(2.0F,1.0F,0.0F,0.0F);
  GL11.glScalef(1F,1F,1F);
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
modelMicroscope.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21896
Project: 21896
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case 1:
{
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    return;
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.7f,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  GL11.glScalef(0.5f,0.5f,0.5f);
  return;
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type.ordinal()) {
case 0:
{
    }
case 1:
{
    GL11.glRotatef(2.0F,0F,0.0F,0.0F);
    GL11.glTranslatef(0F,-0.5F,0.5F);
  }
case 2:
{
  GL11.glTranslatef(0.0F,0.5F,0.0F);
  GL11.glRotatef(-4.0F,0.0F,1.0F,0.0F);
  GL11.glRotatef(2.0F,1.0F,0.0F,0.0F);
  GL11.glScalef(1F,1F,1F);
}
case 3:
{
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21897
Project: 21897
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
}
switch (type) {
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21898
Project: 21898
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
}
switch (type) {
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21899
Project: 21899
Buggy source:
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
switch (type) {
case EQUIPPED:
    return true;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
  return true;
}
switch (type) {
case INVENTORY:
return true;
}
switch (type) {
case ENTITY:
return true;
}
return false;
}

Fixed version (ground truth):
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
switch (type) {
case EQUIPPED:
{
      return true;
    }
case EQUIPPED_FIRST_PERSON:
{
    return true;
  }
case INVENTORY:
{
  return true;
}
case ENTITY:
{
return true;
}
}
return false;
}
Program: 21900
Project: 21900
Buggy source:
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
switch (type) {
case EQUIPPED:
    return true;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
  return true;
}
switch (type) {
case INVENTORY:
return true;
}
switch (type) {
case ENTITY:
return true;
}
return false;
}

Fixed version (ground truth):
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
switch (type) {
case EQUIPPED:
{
      return true;
    }
case EQUIPPED_FIRST_PERSON:
{
    return true;
  }
case INVENTORY:
{
  return true;
}
case ENTITY:
{
return true;
}
}
return false;
}
Program: 21901
Project: 21901
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
}
switch (type) {
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21902
Project: 21902
Buggy source:
private void checkForPoison(EntityPlayer entityPlayer){
  ItemStack currentItem=entityPlayer.inventory.getCurrentItem();
  if (isPlayerEating(entityPlayer) && currentItem != null && currentItem.getTagCompound() != null) {
    NBTTagCompound stackTag=currentItem.getTagCompound();
    boolean isPoisoned=stackTag.getBoolean("String_Node_Str");
    int effectType=stackTag.getInteger("String_Node_Str");
    EnumMolecule molecule=EnumMolecule.getById(effectType);
    if (isPoisoned) {
      MinechemHelper.triggerPlayerEffect(molecule,entityPlayer);
      entityPlayer.inventory.decrStackSize(entityPlayer.inventory.currentItem,1);
    }
  }
}

Fixed version (ground truth):
private void checkForPoison(EntityPlayer entityPlayer){
  ItemStack currentItem=entityPlayer.inventory.getCurrentItem();
  if (isPlayerEating(entityPlayer) && currentItem != null && currentItem.getTagCompound() != null) {
    NBTTagCompound stackTag=currentItem.getTagCompound();
    boolean isPoisoned=stackTag.getBoolean("String_Node_Str");
    int effectType=stackTag.getInteger("String_Node_Str");
    EnumMolecule molecule=EnumMolecule.getById(effectType);
    if (isPoisoned) {
      Pharm.triggerPlayerEffect(molecule,entityPlayer);
      entityPlayer.inventory.decrStackSize(entityPlayer.inventory.currentItem,1);
    }
  }
}
Program: 21903
Project: 21903
Buggy source:
@Override public ItemStack onEaten(ItemStack itemStack,World world,EntityPlayer entityPlayer){
  --itemStack.stackSize;
  if (world.isRemote)   return itemStack;
  EnumMolecule molecule=getMolecule(itemStack);
  Pharm.triggerPlayerEffect(molecule,entityPlayer);
  world.playSoundAtEntity(player,"String_Node_Str",0.5F,world.rand.nextFloat() * 0.1F + 0.9F);
  return itemStack;
}

Fixed version (ground truth):
@Override public ItemStack onEaten(ItemStack itemStack,World world,EntityPlayer entityPlayer){
  --itemStack.stackSize;
  if (world.isRemote)   return itemStack;
  EnumMolecule molecule=getMolecule(itemStack);
  Pharm.triggerPlayerEffect(molecule,entityPlayer);
  world.playSoundAtEntity(entityPlayer,"String_Node_Str",0.5F,world.rand.nextFloat() * 0.1F + 0.9F);
  return itemStack;
}
Program: 21904
Project: 21904
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21905
Project: 21905
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,0.7f,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    GL11.glScalef(0.5f,0.5f,0.5f);
    GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
    GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21906
Project: 21906
Buggy source:
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  return false;
}

Fixed version (ground truth):
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON)   return true;
  return false;
}
Program: 21907
Project: 21907
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY)   GL11.glTranslatef(0.0F,0.5F,0.0F);
  if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  modelMicroscope.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY)   GL11.glTranslatef(0.0F,0.5F,0.0F);
  if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,1f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  modelMicroscope.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21908
Project: 21908
Buggy source:
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  return false;
}

Fixed version (ground truth):
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON)   return true;
  return false;
}
Program: 21909
Project: 21909
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.5F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.5F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21910
Project: 21910
Buggy source:
@Override public Object getServerGuiElement(int ID,EntityPlayer player,World world,int x,int y,int z){
  if (ID == GUI_ID_JOURNAL) {
    return getServerGuiElementForJournal(player,world);
  }
  if (ID == GUI_TABLE) {
    return new CotainerTable(player.inventory);
  }
  TileEntity tileEntity=world.getBlockTileEntity(x,y,z);
  if (tileEntity instanceof TileEntityDecomposer)   return new ContainerDecomposer(player.inventory,(TileEntityDecomposer)tileEntity);
  if (tileEntity instanceof TileEntityMicroscope)   return new ContainerMicroscope(player.inventory,(TileEntityMicroscope)tileEntity);
  if (tileEntity instanceof TileEntitySynthesis)   return new ContainerSynthesis(player.inventory,(TileEntitySynthesis)tileEntity);
  if (tileEntity instanceof TileEntityFusion)   return new ContainerFusion(player.inventory,(TileEntityFusion)tileEntity);
  if (tileEntity instanceof TileEntityProxy)   return getServerGuiElementFromProxy((TileEntityProxy)tileEntity,player);
  if (tileEntity instanceof TileEntityBlueprintProjector)   return new ContainerProjector(player.inventory,(TileEntityBlueprintProjector)tileEntity);
  if (tileEntity instanceof TileEntityChemicalStorage)   return new ContainerChemicalStorage(player.inventory,(TileEntityChemicalStorage)tileEntity);
  return null;
}

Fixed version (ground truth):
@Override public Object getServerGuiElement(int ID,EntityPlayer player,World world,int x,int y,int z){
  if (ID == GUI_ID_JOURNAL) {
    return getServerGuiElementForJournal(player,world);
  }
  if (ID == GUI_TABLE) {
    return new CotainerTable(player.inventory);
  }
  TileEntity tileEntity=world.getBlockTileEntity(x,y,z);
  if (tileEntity instanceof TileEntityDecomposer)   return new ContainerDecomposer(player.inventory,(TileEntityDecomposer)tileEntity);
  if (tileEntity instanceof TileEntityMicroscope)   return new ContainerMicroscope(player.inventory,(TileEntityMicroscope)tileEntity);
  if (tileEntity instanceof TileEntitySynthesis)   return new ContainerSynthesis(player.inventory,(TileEntitySynthesis)tileEntity);
  if (tileEntity instanceof TileEntityFusion) {
    player.sendChatToPlayer("String_Node_Str");
    return new ContainerFusion(player.inventory,(TileEntityFusion)tileEntity);
  }
  if (tileEntity instanceof TileEntityProxy) {
    player.sendChatToPlayer("String_Node_Str");
    return getServerGuiElementFromProxy((TileEntityProxy)tileEntity,player);
  }
  if (tileEntity instanceof TileEntityBlueprintProjector)   return new ContainerProjector(player.inventory,(TileEntityBlueprintProjector)tileEntity);
  if (tileEntity instanceof TileEntityChemicalStorage)   return new ContainerChemicalStorage(player.inventory,(TileEntityChemicalStorage)tileEntity);
  return null;
}
Program: 21911
Project: 21911
Buggy source:
public void setBlueprint(MinechemBlueprint blueprint){
  this.blueprint=blueprint;
  this.structure=blueprint.getResultStructure();
  this.offsetX=xCoord - blueprint.getManagerPosX();
  this.offsetY=xCoord - blueprint.getManagerPosY();
  this.offsetZ=xCoord - blueprint.getManagerPosZ();
}

Fixed version (ground truth):
public void setBlueprint(MinechemBlueprint blueprint){
  this.blueprint=blueprint;
  this.structure=blueprint.getResultStructure();
  this.offsetX=xCoord - blueprint.getManagerPosX();
  this.offsetY=yCoord - blueprint.getManagerPosY();
  this.offsetZ=zCoord - blueprint.getManagerPosZ();
}
Program: 21912
Project: 21912
Buggy source:
private void linkProxies(){
  for (int y=0; y < blueprint.ySize; y++) {
    for (int x=0; x < blueprint.xSize; x++) {
      for (int z=0; z < blueprint.zSize; z++) {
        linkProxy(x,y,z);
      }
    }
  }
}

Fixed version (ground truth):
private void linkProxies(){
  for (int y=0; y < blueprint.ySize; y++) {
    for (int x=7; x < blueprint.xSize; ) {
      for (int z=7; z < blueprint.zSize; ) {
        linkProxy(x,y,z);
      }
    }
  }
}
Program: 21913
Project: 21913
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
    return;
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  return;
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
return;
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21914
Project: 21914
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
    return;
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  return;
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
return;
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21915
Project: 21915
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
}
switch (type) {
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
}
switch (type) {
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
modelMicroscope.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
    return;
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  return;
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
return;
}
}
modelMicroscope.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21916
Project: 21916
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
{
      GL11.glTranslatef(0.5F,1.6F,0.0F);
      GL11.glRotatef(180f,-1f,0f,1f);
      return;
    }
case EQUIPPED_FIRST_PERSON:
{
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
    return;
  }
case INVENTORY:
{
  GL11.glTranslatef(0.0F,1.0F,0.0F);
  GL11.glRotatef(180f,0f,0f,1f);
  return;
}
case ENTITY:
{
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
return;
}
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21917
Project: 21917
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21918
Project: 21918
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,0.7f,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    GL11.glScalef(0.5f,0.5f,0.5f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,0.7f,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    GL11.glScalef(0.5f,0.5f,0.5f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21919
Project: 21919
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY)   GL11.glTranslatef(0.0F,0.5F,0.0F);
  if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,1f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  modelMicroscope.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY)   GL11.glTranslatef(0.0F,0.5F,0.0F);
  if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  modelMicroscope.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21920
Project: 21920
Buggy source:
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON)   return true;
  return false;
}

Fixed version (ground truth):
@Override public boolean handleRenderType(ItemStack item,ItemRenderType type){
  if (type == ItemRenderType.EQUIPPED)   return true;
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON)   return true;
  if (type == ItemRenderType.INVENTORY)   return true;
  if (type == ItemRenderType.ENTITY)   return true;
  return false;
}
Program: 21921
Project: 21921
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.5F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.SYNTHESIS_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.5F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,0.1f,0.0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}
Program: 21922
Project: 21922
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,1.4F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.PROJECTOR_MODEL_OFF;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21923
Project: 21923
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY) {
    GL11.glTranslatef(0.0F,0.7f,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
    GL11.glScalef(0.5f,0.5f,0.5f);
  }
 else   if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  model.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.DECOMPOSER_MODEL_ON;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
model.render(0.0625F);
GL11.glPopMatrix();
}
Program: 21924
Project: 21924
Buggy source:
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
  if (type == ItemRenderType.ENTITY)   GL11.glTranslatef(0.0F,0.5F,0.0F);
  if (type == ItemRenderType.EQUIPPED) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,1f,0f,1f);
  }
 else {
    GL11.glTranslatef(0.0F,1.0F,0.0F);
    GL11.glRotatef(180f,0f,0f,1f);
  }
  if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) {
    GL11.glTranslatef(0.5F,1.6F,0.0F);
    GL11.glRotatef(180f,-1f,0f,1f);
  }
  modelMicroscope.render(0.0625F);
  GL11.glPopMatrix();
}

Fixed version (ground truth):
@Override public void renderItem(ItemRenderType type,ItemStack item,Object... data){
  String texture=ConstantValue.MICROSCOPE_MODEL;
  GL11.glPushMatrix();
  GL11.glBindTexture(GL11.GL_TEXTURE_2D,FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));
switch (type) {
case EQUIPPED:
    GL11.glTranslatef(0.5F,1.6F,0.0F);
  GL11.glRotatef(180f,-1f,0f,1f);
break;
case EQUIPPED_FIRST_PERSON:
GL11.glTranslatef(0.5F,1.6F,0.0F);
GL11.glRotatef(180f,-1f,0f,1f);
break;
case INVENTORY:
GL11.glTranslatef(0.0F,1.0F,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
break;
case ENTITY:
GL11.glTranslatef(0.0F,0.7f,0.0F);
GL11.glRotatef(180f,0f,0f,1f);
GL11.glScalef(0.5f,0.5f,0.5f);
break;
}
modelMicroscope.render(0.0625F);
GL11.glPopMatrix();
}