nus-yam/ex-repair huggingface dataset:
Program: 59906
Project: 59906
Buggy source:
public void stopMeasure(){
  stopTime=System.nanoTime();
  totalTime=totalTime + getLastTime();
}

Fixed version (ground truth):
/** 
 * Stopts measuring.
 */
public void stopMeasure(){
  stopTime=System.nanoTime();
  totalTime=totalTime + getLastTime();
}
Program: 59907
Project: 59907
Buggy source:
public long getIteration(){
  return iteration;
}

Fixed version (ground truth):
/** 
 * Gets the number of current iteration of this Measurement Unit.
 * @return The number of iteration.
 */
public long getIteration(){
  return iteration;
}
Program: 59908
Project: 59908
Buggy source:
public void startMeasure(){
  startTime=System.nanoTime();
  stopTime=-1;
}

Fixed version (ground truth):
/** 
 * Starts measuring. This is independent on current system time.
 */
public void startMeasure(){
  startTime=System.nanoTime();
  stopTime=-1;
}
Program: 59909
Project: 59909
Buggy source:
public Object getResult(final String label){
  return measurementResults.get(label);
}

Fixed version (ground truth):
/** 
 * Get a custom result for the given label.
 * @param label The label of the custom result.
 * @return The value for the given custom result.
 */
public Object getResult(final String label){
  return measurementResults.get(label);
}
Program: 59910
Project: 59910
Buggy source:
public Map<String,Object> getResults(){
  return Collections.unmodifiableMap(measurementResults);
}

Fixed version (ground truth):
/** 
 * Get immutable map with all the custom results.
 * @return An immutable copy of the custom results map.
 */
public Map<String,Object> getResults(){
  return Collections.unmodifiableMap(measurementResults);
}
Program: 59911
Project: 59911
Buggy source:
public long getTotalTime(){
  return totalTime;
}

Fixed version (ground truth):
/** 
 * Gets total time measured during all mesurements done by this Measurement Unit (all time periods between calls to   {@link #startMeasure()} and {@link #stopMeasure()} in milliseconds.
 * @return The total time measured by this unit in milliseconds.
 */
public long getTotalTime(){
  return totalTime;
}
Program: 59912
Project: 59912
Buggy source:
/** 
 * Used to set the value of delimiter.
 * @param delimiter The delimiter value to set.
 */
public void setDelimiter(String delimiter){
  this.delimiter=delimiter;
}

Fixed version (ground truth):
/** 
 * Used to set the value of delimiter.
 * @param delimiter The delimiter value to set.
 */
public void setDelimiter(final String delimiter){
  this.delimiter=delimiter;
}
Program: 59914
Project: 59914
Buggy source:
/** 
 * Used to set the value of path.
 * @param path The path value to set.
 */
public void setPath(String path){
  this.path=path;
  this.csvFile=new File(this.path);
}

Fixed version (ground truth):
/** 
 * Used to set the value of path.
 * @param path The path value to set.
 */
public void setPath(final String path){
  this.path=path;
  this.csvFile=new File(this.path);
}
Program: 59915
Project: 59915
Buggy source:
/** 
 * Reports a single   {@link org.perfcake.nreporting.MeasurementUnit} to this reporter. This calls {@link #doReport(MeasurementUnit)} overrided by a child,accumulates results and reports iteration change and percentage change (if any).
 */
@Override public final void report(final MeasurementUnit mu) throws ReportingException {
  if (runInfo == null) {
    throw new ReportingException("String_Node_Str");
  }
  doReport(mu);
  accumulateResults(mu.getResults());
  reportIterations(mu.getIteration());
  final long percentage=Math.round(runInfo.getPercentage());
  if (percentage != lastPercentage) {
    lastPercentage=percentage;
    reportPercentage(percentage);
  }
}

Fixed version (ground truth):
/** 
 * Reports a single   {@link org.perfcake.nreporting.MeasurementUnit} to this reporter. This calls {@link #doReport(MeasurementUnit)} overrided by a child,accumulates results and reports iteration change and percentage change (if any).
 */
@Override public final void report(final MeasurementUnit mu) throws ReportingException {
  if (runInfo == null) {
    throw new ReportingException("String_Node_Str");
  }
  doReport(mu);
  accumulateResults(mu.getResults());
  reportIterations(mu.getIteration());
  final long percentage=(long)Math.floor(runInfo.getPercentage());
  if (percentage != lastPercentage) {
    lastPercentage=percentage;
    reportPercentage(percentage);
  }
}
Program: 59916
Project: 59916
Buggy source:
@SuppressWarnings("String_Node_Str") @Override protected Accumulator getAccumulator(final String key,final Class clazz){
  if (clazz.getName().equals(Double.class)) {
    return new AvgAccumulator();
  }
 else {
    return new LastValueAccumulator();
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected Accumulator getAccumulator(final String key,final Class clazz){
  if (Double.class.equals(clazz)) {
    return new AvgAccumulator();
  }
 else {
    return new LastValueAccumulator();
  }
}
Program: 59917
Project: 59917
Buggy source:
@Override protected void doPublishResult(final PeriodType periodType,final Destination d) throws ReportingException {
  Measurement m=new Measurement(Math.round(runInfo.getPercentage()),runInfo.getRunTime(),runInfo.getIteration() - 1);
  m.set(new Quantity<Double>((Double)getAccumulatedResult(Measurement.DEFAULT_RESULT),"String_Node_Str"));
  publishAccumulatedResult(m);
  d.report(m);
}

Fixed version (ground truth):
@Override protected void doPublishResult(final PeriodType periodType,final Destination d) throws ReportingException {
  Measurement m=new Measurement(Math.round(runInfo.getPercentage()),runInfo.getRunTime(),runInfo.getIteration());
  m.set(new Quantity<Double>((Double)getAccumulatedResult(Measurement.DEFAULT_RESULT),"String_Node_Str"));
  publishAccumulatedResult(m);
  d.report(m);
}
Program: 59918
Project: 59918
Buggy source:
/** 
 * Starts a new measurement run. This resets the iteration counter.
 */
public void start(){
  reset();
  startTime=System.currentTimeMillis();
}

Fixed version (ground truth):
/** 
 * Starts a new measurement run. This resets the iteration counter.
 */
public void start(){
  reset();
  startTime=System.currentTimeMillis();
  endTime=-1;
}
Program: 59919
Project: 59919
Buggy source:
/** 
 * Get the current iteration counter value. This can be used as an approximate value of passed iteration even though some of them might still be pending their execution.
 * @return Current iteration counter value
 */
public long getIteration(){
  return iterations.get();
}

Fixed version (ground truth):
/** 
 * Get the current iteration counter value. This can be used as an approximate value of passed iterations even though some of them might still be pending their execution. The value is always 1 number higher than the number of iterations executed (as the number can be used for a new iteration).
 * @return Current iteration counter value
 */
public long getIteration(){
  return iterations.get();
}
Program: 59920
Project: 59920
Buggy source:
public void stop(){
  started=false;
  runInfo.stop();
  rwLock.writeLock().lock();
  for (  Reporter r : reporters) {
    r.stop();
  }
  rwLock.writeLock().unlock();
}

Fixed version (ground truth):
public void stop(){
  runInfo.stop();
  rwLock.writeLock().lock();
  for (  Reporter r : reporters) {
    r.stop();
  }
  rwLock.writeLock().unlock();
}
Program: 59921
Project: 59921
Buggy source:
public void report(final MeasurementUnit mu) throws ReportingException {
  if (started) {
    rwLock.readLock().lock();
    for (    Reporter r : reporters) {
      r.report(mu);
    }
    rwLock.readLock().unlock();
  }
 else {
    log.debug("String_Node_Str");
  }
}

Fixed version (ground truth):
public void report(final MeasurementUnit mu) throws ReportingException {
  if (runInfo.isRunning()) {
    rwLock.readLock().lock();
    for (    Reporter r : reporters) {
      r.report(mu);
    }
    rwLock.readLock().unlock();
  }
 else {
    log.debug("String_Node_Str");
  }
}
Program: 59922
Project: 59922
Buggy source:
public void start(){
  rwLock.writeLock().lock();
  for (  Reporter r : reporters) {
    r.start();
  }
  rwLock.writeLock().unlock();
  started=true;
  runInfo.start();
}

Fixed version (ground truth):
public void start(){
  runInfo.start();
  rwLock.writeLock().lock();
  for (  Reporter r : reporters) {
    r.start();
  }
  rwLock.writeLock().unlock();
}
Program: 59923
Project: 59923
Buggy source:
/** 
 * Gets a value of an accumulated result.
 * @param key Key in the results hash map.
 * @return The value associated with the given key.
 */
protected Object getAccumulatedResult(final String key){
  return accumulatedResults.get(key).getResult();
}

Fixed version (ground truth):
/** 
 * Gets a value of an accumulated result.
 * @param key Key in the results hash map.
 * @return The value associated with the given key.
 */
protected Object getAccumulatedResult(final String key){
  return accumulatedResults.get(key) == null ? null : accumulatedResults.get(key).getResult();
}
Program: 59924
Project: 59924
Buggy source:
@Override protected void doPublishResult(final PeriodType periodType,final Destination d) throws ReportingException {
  Measurement m=new Measurement(Math.round(runInfo.getPercentage()),runInfo.getRunTime(),runInfo.getIteration());
  m.set(new Quantity<Double>((Double)getAccumulatedResult(Measurement.DEFAULT_RESULT),"String_Node_Str"));
  publishAccumulatedResult(m);
  d.report(m);
}

Fixed version (ground truth):
@Override protected void doPublishResult(final PeriodType periodType,final Destination d) throws ReportingException {
  Measurement m=new Measurement(Math.round(runInfo.getPercentage()),runInfo.getRunTime(),runInfo.getIteration() - 1);
  m.set(new Quantity<Double>((Double)getAccumulatedResult(Measurement.DEFAULT_RESULT),"String_Node_Str"));
  publishAccumulatedResult(m);
  d.report(m);
}
Program: 59925
Project: 59925
Buggy source:
/** 
 * Used to set the value of property2.
 * @param property2 The property2 value to set.
 */
public void setProperty2(String property2){
  this.property2=property2;
}

Fixed version (ground truth):
/** 
 * Used to set the value of property2.
 * @param property2 The property2 value to set.
 */
public void setProperty2(final String property2){
  this.property2=property2;
}
Program: 59926
Project: 59926
Buggy source:
/** 
 * Used to set the value of property.
 * @param property The property value to set.
 */
public void setProperty(String property){
  this.property=property;
}

Fixed version (ground truth):
/** 
 * Used to set the value of property.
 * @param property The property value to set.
 */
public void setProperty(final String property){
  this.property=property;
}
Program: 59927
Project: 59927
Buggy source:
@Override public void report(Measurement m) throws ReportingException {
  System.out.println(m.toString());
}

Fixed version (ground truth):
@Override public void report(final Measurement m) throws ReportingException {
  lastMethod="String_Node_Str";
  lastMeasurement=m;
  System.out.println(m.toString());
  try {
    throw new Throwable("String_Node_Str");
  }
 catch (  Throwable t) {
    StringWriter sw=new StringWriter();
    t.printStackTrace(new PrintWriter(sw));
    if (sw.toString().contains("String_Node_Str")) {
      lastType=PeriodType.ITERATION;
    }
 else     if (sw.toString().contains("String_Node_Str")) {
      lastType=PeriodType.PERCENTAGE;
    }
 else     if (sw.toString().contains("String_Node_Str")) {
      lastType=PeriodType.TIME;
    }
 else {
      t.printStackTrace();
      lastType=null;
    }
  }
}
Program: 59928
Project: 59928
Buggy source:
@Override public void close(){
}

Fixed version (ground truth):
@Override public void close(){
  lastMethod="String_Node_Str";
}
Program: 59929
Project: 59929
Buggy source:
@Override public void open(){
}

Fixed version (ground truth):
@Override public void open(){
  lastMethod="String_Node_Str";
}
Program: 59932
Project: 59932
Buggy source:
public static void setNbt(EntityVillager villager,NBTTagCompound nbt){
  setName(villager,nbt);
  nbt.setInteger("String_Node_Str",villager.getProfession());
  MerchantRecipeList recipes=villager.getRecipes(null);
  MerchantRecipe recipe;
  NBTTagCompound recipeTag;
  for (int i=0; i < recipes.size(); i++) {
    recipe=(MerchantRecipe)recipes.get(i);
    recipeTag=recipe.writeToTags();
    recipeTag.setInteger("String_Node_Str",0);
    recipeTag.setInteger("String_Node_Str",7);
    recipe.readFromTags(recipeTag);
  }
  nbt.setTag("String_Node_Str",recipes.getRecipiesAsTags());
}

Fixed version (ground truth):
public static void setNbt(EntityVillager villager,NBTTagCompound nbt){
  setName(villager,nbt);
  nbt.setInteger("String_Node_Str",villager.getProfession());
  MerchantRecipeList recipes=villager.getRecipes(null);
  if (recipes != null) {
    MerchantRecipe recipe;
    NBTTagCompound recipeTag;
    for (int i=0; i < recipes.size(); i++) {
      recipe=(MerchantRecipe)recipes.get(i);
      recipeTag=recipe.writeToTags();
      recipeTag.setInteger("String_Node_Str",0);
      recipeTag.setInteger("String_Node_Str",7);
      recipe.readFromTags(recipeTag);
    }
    nbt.setTag("String_Node_Str",recipes.getRecipiesAsTags());
  }
}
Program: 59933
Project: 59933
Buggy source:
public static void registration(){
  GameRegistry.registerTileEntity(TileEntityGSGraveStone.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSMemorial.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSSpawner.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSHauntedChest.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSSkullCandle.class,"String_Node_Str");
}

Fixed version (ground truth):
public static void registration(){
  GameRegistry.registerTileEntity(TileEntityGSGraveStone.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSMemorial.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSSpawner.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSHauntedChest.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSCandle.class,"String_Node_Str");
  GameRegistry.registerTileEntity(TileEntityGSSkullCandle.class,"String_Node_Str");
}
Program: 59934
Project: 59934
Buggy source:
private boolean setGraveText(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,boolean isMemorial){
  TileEntityGSGrave tileEntity=(TileEntityGSGrave)world.getTileEntity(x,y,z);
  if (tileEntity != null && tileEntity.isEditable() && tileEntity.getDeathTextComponent().getDeathText().length() == 0) {
    FMLClientHandler.instance().getClient().displayGuiScreen(new GSGuiGrave(tileEntity));
    if (isMemorial) {
      stack.damageItem(5,player);
    }
 else {
      stack.damageItem(2,player);
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
private boolean setGraveText(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,boolean isMemorial){
  TileEntityGSGrave tileEntity=(TileEntityGSGrave)world.getTileEntity(x,y,z);
  if (tileEntity != null && tileEntity.isEditable() && tileEntity.getDeathTextComponent().getDeathText().length() == 0) {
    ModGraveStone.proxy.openGraveGui(tileEntity);
    if (isMemorial) {
      stack.damageItem(5,player);
    }
 else {
      stack.damageItem(2,player);
    }
    return true;
  }
  return false;
}
Program: 59935
Project: 59935
Buggy source:
@Override public void onNeighborBlockChange(World world,int x,int y,int z,Block block){
  if (!world.isSideSolid(x,y - 1,z,ForgeDirection.DOWN,true)) {
    this.dropBlockAsItem(world,x,y,z,0,0);
    world.setBlock(x,y,z,this,0,2);
  }
}

Fixed version (ground truth):
@Override public void onNeighborBlockChange(World world,int x,int y,int z,Block block){
  if (!world.isSideSolid(x,y - 1,z,ForgeDirection.DOWN,true)) {
    this.dropBlockAsItem(world,x,y,z,0,0);
    world.setBlock(x,y,z,Blocks.air,0,2);
  }
}
Program: 59936
Project: 59936
Buggy source:
@Override protected boolean canSpawnMobs(World world){
  long time=world.getWorldTime();
  if (time > START_TIME && time < END_TIME || world.isThundering()) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
@Override protected boolean canSpawnMobs(World world){
  long time=world.getWorldTime() % 24000;
  if (time > START_TIME && time < END_TIME || world.isThundering()) {
    return true;
  }
  return false;
}
Program: 59937
Project: 59937
Buggy source:
@Override protected void clientUpdateLogic(){
  if (this.delay > 0) {
    --this.delay;
  }
}

Fixed version (ground truth):
@Override protected void clientUpdateLogic(){
}
Program: 59938
Project: 59938
Buggy source:
/** 
 * Sets the delay before a new spawn.
 */
private void updateDelay(){
  delay=MIN_DELAY + tileEntity.worldObj.rand.nextInt(GraveStoneConfig.graveSpawnRate - MIN_DELAY);
  if (this.field_92060_e != null && this.field_92060_e.size() > 0) {
    tileEntity.worldObj.markBlockForUpdate(tileEntity.xCoord,tileEntity.yCoord,tileEntity.zCoord);
  }
  int block=tileEntity.getBlockType().blockID;
  tileEntity.worldObj.addBlockEvent(tileEntity.xCoord,tileEntity.yCoord,tileEntity.zCoord,block,1,0);
}

Fixed version (ground truth):
/** 
 * Sets the delay before a new spawn.
 */
private void updateDelay(){
  delay=MIN_DELAY + tileEntity.worldObj.rand.nextInt(GraveStoneConfig.graveSpawnRate - MIN_DELAY);
  int block=tileEntity.getBlockType().blockID;
  tileEntity.worldObj.addBlockEvent(tileEntity.xCoord,tileEntity.yCoord,tileEntity.zCoord,block,1,0);
}
Program: 59939
Project: 59939
Buggy source:
protected static boolean noAnyInRange(int x,int z,int range,World world){
  for (  ChunkCoordIntPair position : structuresList) {
    if (position.chunkXPos > x - range && position.chunkXPos < x + range && position.chunkZPos > z - range && position.chunkZPos < z + range) {
      return false;
    }
  }
  for (  Object villageObj : world.villageCollectionObj.getVillageList()) {
    ChunkCoordinates villageCenter=((Village)villageObj).getCenter();
    if (villageCenter.posX > x - VILLAGE_RANGE && villageCenter.posX < x + VILLAGE_RANGE && villageCenter.posZ > z - VILLAGE_RANGE && villageCenter.posZ < z + VILLAGE_RANGE) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
protected static boolean noAnyInRange(int x,int z,int range,World world){
  GraveStoneLogger.logInfo("String_Node_Str");
  for (  ChunkCoordIntPair position : structuresList) {
    if (position.chunkXPos > x - range && position.chunkXPos < x + range && position.chunkZPos > z - range && position.chunkZPos < z + range) {
      return false;
    }
  }
  if (world.villageCollectionObj != null && world.villageCollectionObj.getVillageList() != null) {
    for (    Object villageObj : world.villageCollectionObj.getVillageList()) {
      ChunkCoordinates villageCenter=((Village)villageObj).getCenter();
      if (villageCenter.posX > x - VILLAGE_RANGE && villageCenter.posX < x + VILLAGE_RANGE && villageCenter.posZ > z - VILLAGE_RANGE && villageCenter.posZ < z + VILLAGE_RANGE) {
        return false;
      }
    }
  }
  GraveStoneLogger.logInfo("String_Node_Str");
  return true;
}
Program: 59940
Project: 59940
Buggy source:
private static boolean isHeightAcceptable(World world,int x,int z){
  int height=0;
  int count=0;
  for (int xPos=x - 16; xPos < x + 16; x++) {
    for (int zPos=z - 16; zPos < z + 16; z++) {
      height+=world.getTopSolidOrLiquidBlock(x,z);
      count++;
    }
  }
  return (height / count) < 75;
}

Fixed version (ground truth):
private static boolean isHeightAcceptable(World world,int x,int z){
  GraveStoneLogger.logInfo("String_Node_Str");
  int height=0;
  int count=0;
  for (int xPos=x; xPos < x + 16; xPos++) {
    for (int zPos=z; zPos < z + 16; zPos++) {
      height+=world.getTopSolidOrLiquidBlock(xPos,zPos);
      count++;
    }
  }
  GraveStoneLogger.logInfo("String_Node_Str");
  return (height / count) < 75;
}
Program: 59941
Project: 59941
Buggy source:
public static void addExtrabiomsXLBiomes(){
  CATACOMBS_BIOMES.addAll(Arrays.asList(Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID));
  MEMORIAL_BIOMES.add(Arrays.asList(Biomes.getBiome("String_Node_Str").get().biomeID,Biomes.getBiome("String_Node_Str").get().biomeID));
  GRAVES_BIOMES.add(Arrays.asList(Biomes.getBiome("String_Node_Str").get().biomeID));
}

Fixed version (ground truth):
public static void addExtrabiomsXLBiomes(){
  for (int i=0; i < EXTRABIOMES_XL_CATACOMBS_BIOMES.length; i++) {
    if (Biomes.getBiome(EXTRABIOMES_XL_CATACOMBS_BIOMES[i]).isPresent()) {
      if (Biomes.getBiome(EXTRABIOMES_XL_CATACOMBS_BIOMES[i]).get() != null) {
        CATACOMBS_BIOMES.add(Biomes.getBiome(EXTRABIOMES_XL_CATACOMBS_BIOMES[i]).get().biomeID);
      }
 else {
        namedBiomeError(EXTRABIOMES_XL_NAME,EXTRABIOMES_XL_CATACOMBS_BIOMES[i]);
      }
    }
  }
  for (int i=0; i < EXTRABIOMES_XL_MEMORIAL_BIOMES.length; i++) {
    if (Biomes.getBiome(EXTRABIOMES_XL_MEMORIAL_BIOMES[i]).isPresent()) {
      if (Biomes.getBiome(EXTRABIOMES_XL_MEMORIAL_BIOMES[i]).get() != null) {
        MEMORIAL_BIOMES.add(Biomes.getBiome(EXTRABIOMES_XL_MEMORIAL_BIOMES[i]).get().biomeID);
      }
 else {
        namedBiomeError(EXTRABIOMES_XL_NAME,EXTRABIOMES_XL_MEMORIAL_BIOMES[i]);
      }
    }
  }
  for (int i=0; i < EXTRABIOMES_XL_GRAVES_BIOMES.length; i++) {
    if (Biomes.getBiome(EXTRABIOMES_XL_GRAVES_BIOMES[i]).isPresent()) {
      if (Biomes.getBiome(EXTRABIOMES_XL_GRAVES_BIOMES[i]).get() != null) {
        GRAVES_BIOMES.add(Biomes.getBiome(EXTRABIOMES_XL_GRAVES_BIOMES[i]).get().biomeID);
      }
 else {
        namedBiomeError(EXTRABIOMES_XL_NAME,EXTRABIOMES_XL_GRAVES_BIOMES[i]);
      }
    }
  }
}
Program: 59942
Project: 59942
Buggy source:
public static void addHighlandsBiomes(){
  CATACOMBS_BIOMES.addAll(Arrays.asList(HighlandsBiomes.autumnForest.biomeID,HighlandsBiomes.birchHills.biomeID,HighlandsBiomes.glacier.biomeID,HighlandsBiomes.outback.biomeID,HighlandsBiomes.pinelands.biomeID,HighlandsBiomes.sahel.biomeID,HighlandsBiomes.savannah.biomeID,HighlandsBiomes.tundra.biomeID,HighlandsBiomes.shrubland.biomeID));
  MEMORIAL_BIOMES.add(Arrays.asList(HighlandsBiomes.bog.biomeID,HighlandsBiomes.dunes.biomeID,HighlandsBiomes.estuary.biomeID,HighlandsBiomes.tropicalIslands.biomeID,HighlandsBiomes.lake.biomeID));
  GRAVES_BIOMES.add(Arrays.asList(HighlandsBiomes.lake.biomeID));
}

Fixed version (ground truth):
public static void addHighlandsBiomes(){
  for (int i=0; i < HIGHLANDS_CATACOMBS_BIOMES.length; i++) {
    if (HIGHLANDS_CATACOMBS_BIOMES[i] != null) {
      CATACOMBS_BIOMES.add(HIGHLANDS_CATACOMBS_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(HIGHLANDS_NAME,i);
    }
  }
  for (int i=0; i < HIGHLANDS_MEMORIAL_BIOMES.length; i++) {
    if (HIGHLANDS_MEMORIAL_BIOMES[i] != null) {
      MEMORIAL_BIOMES.add(HIGHLANDS_MEMORIAL_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(HIGHLANDS_NAME,i);
    }
  }
  for (int i=0; i < HIGHLANDS_GRAVES_BIOMES.length; i++) {
    if (HIGHLANDS_GRAVES_BIOMES[i] != null) {
      GRAVES_BIOMES.add(HIGHLANDS_GRAVES_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(HIGHLANDS_NAME,i);
    }
  }
}
Program: 59943
Project: 59943
Buggy source:
public static void addBiomsOPlentyBiomes(){
  CATACOMBS_BIOMES.addAll(Arrays.asList(biomesoplenty.api.Biomes.arctic.get().biomeID,biomesoplenty.api.Biomes.bambooForest.get().biomeID,biomesoplenty.api.Biomes.birchForest.get().biomeID,biomesoplenty.api.Biomes.borealForest.get().biomeID,biomesoplenty.api.Biomes.brushland.get().biomeID,biomesoplenty.api.Biomes.chaparral.get().biomeID,biomesoplenty.api.Biomes.cherryBlossomGrove.get().biomeID,biomesoplenty.api.Biomes.deadForest.get().biomeID,biomesoplenty.api.Biomes.deadForestSnow.get().biomeID,biomesoplenty.api.Biomes.deciduousForest.get().biomeID,biomesoplenty.api.Biomes.dunes.get().biomeID,biomesoplenty.api.Biomes.fen.get().biomeID,biomesoplenty.api.Biomes.field.get().biomeID,biomesoplenty.api.Biomes.frostForest.get().biomeID,biomesoplenty.api.Biomes.grove.get().biomeID,biomesoplenty.api.Biomes.heathland.get().biomeID,biomesoplenty.api.Biomes.mapleWoods.get().biomeID,biomesoplenty.api.Biomes.meadow.get().biomeID,biomesoplenty.api.Biomes.mysticGrove.get().biomeID,biomesoplenty.api.Biomes.ominousWoods.get().biomeID,biomesoplenty.api.Biomes.orchard.get().biomeID,biomesoplenty.api.Biomes.originValley.get().biomeID,biomesoplenty.api.Biomes.prairie.get().biomeID,biomesoplenty.api.Biomes.savanna.get().biomeID,biomesoplenty.api.Biomes.scrubland.get().biomeID,biomesoplenty.api.Biomes.seasonalForest.get().biomeID,biomesoplenty.api.Biomes.shrubland.get().biomeID,biomesoplenty.api.Biomes.steppe.get().biomeID,biomesoplenty.api.Biomes.thicket.get().biomeID,biomesoplenty.api.Biomes.woodland.get().biomeID));
  MEMORIAL_BIOMES.add(Arrays.asList(biomesoplenty.api.Biomes.deadlands.get().biomeID,biomesoplenty.api.Biomes.beachGravel.get().biomeID,biomesoplenty.api.Biomes.mangrove.get().biomeID,biomesoplenty.api.Biomes.marsh.get().biomeID,biomesoplenty.api.Biomes.polar.get().biomeID,biomesoplenty.api.Biomes.volcano.get().biomeID,biomesoplenty.api.Biomes.wasteland.get().biomeID));
  GRAVES_BIOMES.add(Arrays.asList(biomesoplenty.api.Biomes.mangrove.get().biomeID));
}

Fixed version (ground truth):
public static void addBiomsOPlentyBiomes(){
  for (int i=0; i < BIOMES_OPLENTY_CATACOMBS_BIOMES.length; i++) {
    if (BIOMES_OPLENTY_CATACOMBS_BIOMES[i] != null) {
      CATACOMBS_BIOMES.add(BIOMES_OPLENTY_CATACOMBS_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(BIOMES_OPLENTY_NAME,i);
    }
  }
  for (int i=0; i < BIOMES_OPLENTY_MEMORIAL_BIOMES.length; i++) {
    if (BIOMES_OPLENTY_MEMORIAL_BIOMES[i] != null) {
      MEMORIAL_BIOMES.add(BIOMES_OPLENTY_MEMORIAL_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(BIOMES_OPLENTY_NAME,i);
    }
  }
  for (int i=0; i < BIOMES_OPLENTY_GRAVES_BIOMES.length; i++) {
    if (BIOMES_OPLENTY_GRAVES_BIOMES[i] != null) {
      GRAVES_BIOMES.add(BIOMES_OPLENTY_GRAVES_BIOMES[i].biomeID);
    }
 else {
      unNamedBiomeError(BIOMES_OPLENTY_NAME,i);
    }
  }
}
Program: 59945
Project: 59945
Buggy source:
@Mod.PostInit public void postInit(FMLPostInitializationEvent event){
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneMobSpawn.addMoCreaturesMobs();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneMobSpawn.addTwilightForestMobs();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.addHighlandsBiomes();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.addBiomsOPlentyBiomes();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.addExtrabiomsXLBiomes();
  }
}

Fixed version (ground truth):
@Mod.PostInit public void postInit(FMLPostInitializationEvent event){
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneMobSpawn.addMoCreaturesMobs();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneMobSpawn.addTwilightForestMobs();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.loadHighlandsBiomes();
    GraveStoneBiomes.addHighlandsBiomes();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.loadBiomsOPlentyBiomes();
    GraveStoneBiomes.addBiomsOPlentyBiomes();
  }
  if (Loader.isModLoaded("String_Node_Str")) {
    GraveStoneBiomes.addExtrabiomsXLBiomes();
  }
}
Program: 59946
Project: 59946
Buggy source:
/** 
 * Spawn mob
 */
private static 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);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Spawn mob
 */
private static 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,false);
      }
    }
  }
}
Program: 59947
Project: 59947
Buggy source:
/** 
 * This returns a complete list of items dropped from this block.
 * @param world The current world
 * @param x X Position
 * @param y Y Position
 * @param z Z Position
 * @param metadata Current metadata
 * @param fortune Breakers fortune level
 * @return A ArrayList containing all items this block drops
 */
@Override public ArrayList<ItemStack> getBlockDropped(World world,int x,int y,int z,int metadata,int fortune){
  spawnMob(world,x,y,z);
  ArrayList<ItemStack> ret=new ArrayList();
  if (!GraveStoneConfig.silkTouchForGraves) {
    ret.add(getBlockItemStack(world,x,y,z));
  }
 else {
    TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
    if (tileEntity != null && isSwordGrave(tileEntity)) {
      tileEntity.dropSword();
    }
  }
  return ret;
}

Fixed version (ground truth):
/** 
 * This returns a complete list of items dropped from this block.
 * @param world The current world
 * @param x X Position
 * @param y Y Position
 * @param z Z Position
 * @param metadata Current metadata
 * @param fortune Breakers fortune level
 * @return A ArrayList containing all items this block drops
 */
@Override public ArrayList<ItemStack> getBlockDropped(World world,int x,int y,int z,int metadata,int fortune){
  ArrayList<ItemStack> ret=new ArrayList();
  if (!GraveStoneConfig.silkTouchForGraves) {
    ret.add(getBlockItemStack(world,x,y,z));
  }
 else {
    TileEntityGSGraveStone tileEntity=(TileEntityGSGraveStone)world.getBlockTileEntity(x,y,z);
    if (tileEntity != null && isSwordGrave(tileEntity)) {
      ret.add(tileEntity.getSwordItem());
    }
  }
  return ret;
}
Program: 59948
Project: 59948
Buggy source:
/** 
 * Update entity s state.
 */
public void updateEntity(){
  if (canSpawnMobs(tileEntity.worldObj) && anyPlayerInRange()) {
    if (tileEntity.worldObj.isRemote) {
      if (this.delay > 0) {
        --this.delay;
      }
    }
 else {
      if (this.delay == -1) {
        this.updateDelay();
      }
      if (this.delay > 0) {
        --this.delay;
        return;
      }
      if (this.getNewMob) {
        this.spawnedMob=GraveStoneMobSpawn.getMobEntity(this.tileEntity.worldObj,EnumGraves.getByID(this.tileEntity.graveType),this.tileEntity.xCoord,this.tileEntity.yCoord,this.tileEntity.zCoord);
        if (this.spawnedMob == null) {
          return;
        }
        this.getNewMob=false;
      }
      int nearbyEntitiesCount=tileEntity.worldObj.getEntitiesWithinAABB(this.spawnedMob.getClass(),AxisAlignedBB.getAABBPool().getAABB(tileEntity.xCoord,tileEntity.yCoord,tileEntity.zCoord,tileEntity.xCoord + 1,tileEntity.yCoord + 1,tileEntity.zCoord + 1).expand(1.0D,4.0D,SPAWN_RANGE * 2)).size();
      if (nearbyEntitiesCount >= MAX_NEARBY_ENTITIES) {
        this.updateDelay();
        return;
      }
      if (GraveStoneMobSpawn.checkChance(this.tileEntity.worldObj.rand) && GraveStoneMobSpawn.spawnMob(this.tileEntity.worldObj,this.spawnedMob,this.tileEntity.xCoord,this.tileEntity.yCoord,this.tileEntity.zCoord)) {
        this.updateDelay();
        this.getNewMob=true;
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Update entity s state.
 */
public void updateEntity(){
  if (canSpawnMobs(tileEntity.worldObj) && anyPlayerInRange()) {
    if (tileEntity.worldObj.isRemote) {
      if (this.delay > 0) {
        --this.delay;
      }
    }
 else {
      if (this.delay == -1) {
        this.updateDelay();
      }
      if (this.delay > 0) {
        --this.delay;
        return;
      }
      if (this.getNewMob) {
        this.spawnedMob=GraveStoneMobSpawn.getMobEntity(this.tileEntity.worldObj,EnumGraves.getByID(this.tileEntity.graveType),this.tileEntity.xCoord,this.tileEntity.yCoord,this.tileEntity.zCoord);
        if (this.spawnedMob == null) {
          return;
        }
        this.getNewMob=false;
      }
      int nearbyEntitiesCount=tileEntity.worldObj.getEntitiesWithinAABB(this.spawnedMob.getClass(),AxisAlignedBB.getAABBPool().getAABB(tileEntity.xCoord,tileEntity.yCoord,tileEntity.zCoord,tileEntity.xCoord + 1,tileEntity.yCoord + 1,tileEntity.zCoord + 1).expand(1.0D,4.0D,SPAWN_RANGE * 2)).size();
      if (nearbyEntitiesCount >= MAX_NEARBY_ENTITIES) {
        this.updateDelay();
        return;
      }
      if (GraveStoneMobSpawn.checkChance(this.tileEntity.worldObj.rand) && GraveStoneMobSpawn.spawnMob(this.tileEntity.worldObj,this.spawnedMob,this.tileEntity.xCoord,this.tileEntity.yCoord,this.tileEntity.zCoord,true)) {
        this.updateDelay();
        this.getNewMob=true;
      }
    }
  }
}
Program: 59949
Project: 59949
Buggy source:
public void dropSword(){
  int id;
switch (swordType) {
case 5:
    id=Item.swordDiamond.itemID;
  break;
case 3:
id=Item.swordIron.itemID;
break;
case 2:
id=Item.swordStone.itemID;
break;
case 4:
id=Item.swordGold.itemID;
break;
default :
id=Item.swordWood.itemID;
}
ItemStack sword=new ItemStack(id,1,swordDamage);
sword.setItemName(swordName);
sword.setTagCompound(swordNBT);
this.gSItems.dropItem(sword,this.worldObj,this.xCoord,this.yCoord,this.zCoord);
}

Fixed version (ground truth):
public void dropSword(){
  ItemStack sword=getSwordItem();
  this.gSItems.dropItem(sword,this.worldObj,this.xCoord,this.yCoord,this.zCoord);
}
Program: 59950
Project: 59950
Buggy source:
public boolean generate(World world,Random rand,int x,int z,double chance){
  if (GraveStoneConfig.generateMemorials && canSpawnStructureAtCoords(world,x,z,chance)) {
    new ComponentGSSingleGrave(rand.nextInt(4),rand,x,z).addComponentParts(world,rand);
    structuresList.add(new ChunkCoordIntPair(x,z));
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean generate(World world,Random rand,int x,int z,double chance){
  if (GraveStoneConfig.generateSingleGraves && canSpawnStructureAtCoords(world,x,z,chance)) {
    new ComponentGSSingleGrave(rand.nextInt(4),rand,x,z).addComponentParts(world,rand);
    structuresList.add(new ChunkCoordIntPair(x,z));
    return true;
  }
  return false;
}
Program: 59951
Project: 59951
Buggy source:
private void generateStructures(){
  if (GraveStoneConfig.generateCemeteries) {
    VillageHandlerGSCemetery villageCemeteryHandler=new VillageHandlerGSCemetery();
    VillagerRegistry.instance().registerVillageCreationHandler(villageCemeteryHandler);
  }
  if (GraveStoneConfig.generateVillageMemorials) {
    VillageHandlerGSMemorial villageMemorialHandler=new VillageHandlerGSMemorial();
    VillagerRegistry.instance().registerVillageCreationHandler(villageMemorialHandler);
  }
  if (GraveStoneConfig.generateUndertaker) {
    VillageHandlerGSUndertaker villageUndertakerHandler=new VillageHandlerGSUndertaker();
    VillagerRegistry.instance().registerVillageCreationHandler(villageUndertakerHandler);
    VillagerRegistry.instance().registerVillagerId(385);
    VillagerRegistry.instance().registerVillagerSkin(385,Resources.UNDARTAKER);
    VillagerRegistry.instance().registerVillageTradeHandler(385,villageUndertakerHandler);
  }
  GameRegistry.registerWorldGenerator(new GraveStoneWorldGenerator());
}

Fixed version (ground truth):
private void generateStructures(){
  if (GraveStoneConfig.generateCemeteries) {
    VillageHandlerGSCemetery villageCemeteryHandler=new VillageHandlerGSCemetery();
    VillagerRegistry.instance().registerVillageCreationHandler(villageCemeteryHandler);
  }
  if (GraveStoneConfig.generateVillageMemorials) {
    VillageHandlerGSMemorial villageMemorialHandler=new VillageHandlerGSMemorial();
    VillagerRegistry.instance().registerVillageCreationHandler(villageMemorialHandler);
  }
  if (GraveStoneConfig.generateUndertaker) {
    VillageHandlerGSUndertaker villageUndertakerHandler=new VillageHandlerGSUndertaker();
    VillagerRegistry.instance().registerVillageCreationHandler(villageUndertakerHandler);
    VillagerRegistry.instance().registerVillagerId(385);
    ModGraveStone.proxy.registerVillagers();
    VillagerRegistry.instance().registerVillageTradeHandler(385,villageUndertakerHandler);
  }
  GameRegistry.registerWorldGenerator(new GraveStoneWorldGenerator());
}
Program: 59952
Project: 59952
Buggy source:
private void createCenterFence(World world,Random random){
  int y=getGroundY(world,42);
  fillWithRandomizedBlocks(world,boundingBox,42,y,0,42,y + 3,0,false,random,getCemeteryCatacombsStones());
  createGrate(world,43);
  createGrate(world,44);
  createGrate(world,45);
  createGrate(world,46);
  y=getGroundY(world,47);
  fillWithRandomizedBlocks(world,boundingBox,47,y,0,47,y + 3,0,false,random,getCemeteryCatacombsStones());
}

Fixed version (ground truth):
private void createCenterFence(World world,Random random){
  int y=getGroundY(world,42);
  if (checkGround(world,42,y)) {
    fillWithRandomizedBlocks(world,boundingBox,42,y,0,42,y + 3,0,false,random,getCemeteryCatacombsStones());
  }
  createGrate(world,43);
  createGrate(world,44);
  createGrate(world,45);
  createGrate(world,46);
  y=getGroundY(world,47);
  if (checkGround(world,47,y)) {
    fillWithRandomizedBlocks(world,boundingBox,47,y,0,47,y + 3,0,false,random,getCemeteryCatacombsStones());
  }
}
Program: 59953
Project: 59953
Buggy source:
private void createEntrance(World world,Random random){
  int y=getAverageGroundLevel(world,BoundingBoxHelper.getCorrectBox(coordBaseMode,getXWithOffset(42,0),0,getZWithOffset(42,0),5,7,0,xShift));
  this.fillWithRandomizedBlocks(world,boundingBox,42,y,0,42,y + 3,0,false,random,getCemeteryCatacombsStones());
  this.fillWithRandomizedBlocks(world,boundingBox,47,y,0,47,y + 3,0,false,random,getCemeteryCatacombsStones());
  this.fillWithRandomizedBlocks(world,boundingBox,43,y + 4,0,43,y + 4,0,false,random,getCemeteryCatacombsStones());
  this.fillWithRandomizedBlocks(world,boundingBox,46,y + 4,0,46,y + 4,0,false,random,getCemeteryCatacombsStones());
  this.fillWithBlocks(world,boundingBox,43,y,0,43,y + 3,0,Block.fenceIron.blockID,0,false);
  this.fillWithBlocks(world,boundingBox,46,y,0,46,y + 3,0,Block.fenceIron.blockID,0,false);
  this.fillWithBlocks(world,boundingBox,44,y + 3,0,45,y + 4,0,Block.fenceIron.blockID,0,false);
  this.fillWithMetadataBlocks(world,boundingBox,44,y + 5,0,45,y + 5,0,Block.stoneSingleSlab.blockID,5,Block.stoneSingleSlab.blockID,5,false);
  this.placeBlockAtCurrentPosition(world,Block.stoneSingleSlab.blockID,5,42,y + 4,0,boundingBox);
  this.placeBlockAtCurrentPosition(world,Block.stoneSingleSlab.blockID,5,47,y + 4,0,boundingBox);
}

Fixed version (ground truth):
private void createEntrance(World world,Random random){
  int y=getAverageGroundLevel(world,BoundingBoxHelper.getCorrectBox(coordBaseMode,getXWithOffset(42,0),0,getZWithOffset(42,0),5,7,0,xShift));
  if (checkGround(world,42,47,y)) {
    this.fillWithRandomizedBlocks(world,boundingBox,42,y,0,42,y + 3,0,false,random,getCemeteryCatacombsStones());
    this.fillWithRandomizedBlocks(world,boundingBox,47,y,0,47,y + 3,0,false,random,getCemeteryCatacombsStones());
    this.fillWithRandomizedBlocks(world,boundingBox,43,y + 4,0,43,y + 4,0,false,random,getCemeteryCatacombsStones());
    this.fillWithRandomizedBlocks(world,boundingBox,46,y + 4,0,46,y + 4,0,false,random,getCemeteryCatacombsStones());
    this.fillWithBlocks(world,boundingBox,43,y,0,43,y + 3,0,Block.fenceIron.blockID,0,false);
    this.fillWithBlocks(world,boundingBox,46,y,0,46,y + 3,0,Block.fenceIron.blockID,0,false);
    this.fillWithBlocks(world,boundingBox,44,y + 3,0,45,y + 4,0,Block.fenceIron.blockID,0,false);
    this.fillWithMetadataBlocks(world,boundingBox,44,y + 5,0,45,y + 5,0,Block.stoneSingleSlab.blockID,5,Block.stoneSingleSlab.blockID,5,false);
    this.placeBlockAtCurrentPosition(world,Block.stoneSingleSlab.blockID,5,42,y + 4,0,boundingBox);
    this.placeBlockAtCurrentPosition(world,Block.stoneSingleSlab.blockID,5,47,y + 4,0,boundingBox);
  }
}
Program: 59954
Project: 59954
Buggy source:
private void createCornerFence(World world,Random random,boolean left){
  byte x;
  if (left) {
    x=89;
  }
 else {
    x=0;
  }
  int y=getGroundY(world,x);
  fillWithRandomizedBlocks(world,boundingBox,x,y,0,x,y + 3,0,false,random,getCemeteryCatacombsStones());
}

Fixed version (ground truth):
private void createCornerFence(World world,Random random,boolean left){
  byte x;
  if (left) {
    x=89;
  }
 else {
    x=0;
  }
  int y=getGroundY(world,x);
  if (checkGround(world,x,y)) {
    fillWithRandomizedBlocks(world,boundingBox,x,y,0,x,y + 3,0,false,random,getCemeteryCatacombsStones());
  }
}
Program: 59955
Project: 59955
Buggy source:
private void createGrate(World world,int x){
  int y=getGroundY(world,x);
  this.fillWithBlocks(world,boundingBox,x,y,0,x,y + 3,0,Block.fenceIron.blockID,0,false);
}

Fixed version (ground truth):
private void createGrate(World world,int x){
  int y=getGroundY(world,x);
  if (checkGround(world,x,y)) {
    this.fillWithBlocks(world,boundingBox,x,y,0,x,y + 3,0,Block.fenceIron.blockID,0,false);
  }
}
Program: 59956
Project: 59956
Buggy source:
private void createPartOfFence(World world,Random random,FENCE_DIRECTION direction,int x){
  int y;
switch (direction) {
case LEFT:
    createGrate(world,x);
  createGrate(world,x - 1);
createGrate(world,x - 2);
y=getGroundY(world,x - 3);
this.fillWithRandomizedBlocks(world,boundingBox,x - 3,y,0,x - 3,y + 3,0,false,random,getCemeteryCatacombsStones());
break;
case RIGHT:
createGrate(world,x);
createGrate(world,x + 1);
createGrate(world,x + 2);
y=getGroundY(world,x + 3);
this.fillWithRandomizedBlocks(world,boundingBox,x + 3,y,0,x + 3,y + 3,0,false,random,getCemeteryCatacombsStones());
break;
}
}

Fixed version (ground truth):
private void createPartOfFence(World world,Random random,FENCE_DIRECTION direction,int x){
  int y;
switch (direction) {
case LEFT:
    createGrate(world,x);
  createGrate(world,x - 1);
createGrate(world,x - 2);
y=getGroundY(world,x - 3);
if (checkGround(world,x - 3,y)) {
this.fillWithRandomizedBlocks(world,boundingBox,x - 3,y,0,x - 3,y + 3,0,false,random,getCemeteryCatacombsStones());
}
break;
case RIGHT:
createGrate(world,x);
createGrate(world,x + 1);
createGrate(world,x + 2);
y=getGroundY(world,x + 3);
if (checkGround(world,x + 3,y)) {
this.fillWithRandomizedBlocks(world,boundingBox,x + 3,y,0,x + 3,y + 3,0,false,random,getCemeteryCatacombsStones());
}
break;
}
}
Program: 59958
Project: 59958
Buggy source:
public ModelCreeperStatueMemorial(){
  textureWidth=64;
  textureHeight=32;
  float par1=0;
  byte b0=4;
  this.head=new ModelRenderer(this,0,0);
  this.head.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1);
  this.head.setRotationPoint(0.0F,(float)b0,0.0F);
  this.field_78133_b=new ModelRenderer(this,32,0);
  this.field_78133_b.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1 + 0.5F);
  this.field_78133_b.setRotationPoint(0.0F,(float)b0,0.0F);
  this.body=new ModelRenderer(this,16,16);
  this.body.addBox(-4.0F,0.0F,-2.0F,8,12,4,par1);
  this.body.setRotationPoint(0.0F,(float)b0,0.0F);
  this.leg1=new ModelRenderer(this,0,16);
  this.leg1.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg1.setRotationPoint(-2.0F,(float)(12 + b0),4.0F);
  this.leg2=new ModelRenderer(this,0,16);
  this.leg2.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg2.setRotationPoint(2.0F,(float)(12 + b0),4.0F);
  this.leg3=new ModelRenderer(this,0,16);
  this.leg3.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg3.setRotationPoint(-2.0F,(float)(12 + b0),-4.0F);
  this.leg4=new ModelRenderer(this,0,16);
  this.leg4.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg4.setRotationPoint(2.0F,(float)(12 + b0),-4.0F);
  pedestal=new ModelSmallPedestal();
}

Fixed version (ground truth):
public ModelCreeperStatueMemorial(TileEntityGSRenderer renderer){
  this.renderer=renderer;
  textureWidth=64;
  textureHeight=32;
  float par1=0;
  byte b0=4;
  this.head=new ModelRenderer(this,0,0);
  this.head.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1);
  this.head.setRotationPoint(0.0F,(float)b0,0.0F);
  this.field_78133_b=new ModelRenderer(this,32,0);
  this.field_78133_b.addBox(-4.0F,-8.0F,-4.0F,8,8,8,par1 + 0.5F);
  this.field_78133_b.setRotationPoint(0.0F,(float)b0,0.0F);
  this.body=new ModelRenderer(this,16,16);
  this.body.addBox(-4.0F,0.0F,-2.0F,8,12,4,par1);
  this.body.setRotationPoint(0.0F,(float)b0,0.0F);
  this.leg1=new ModelRenderer(this,0,16);
  this.leg1.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg1.setRotationPoint(-2.0F,(float)(12 + b0),4.0F);
  this.leg2=new ModelRenderer(this,0,16);
  this.leg2.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg2.setRotationPoint(2.0F,(float)(12 + b0),4.0F);
  this.leg3=new ModelRenderer(this,0,16);
  this.leg3.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg3.setRotationPoint(-2.0F,(float)(12 + b0),-4.0F);
  this.leg4=new ModelRenderer(this,0,16);
  this.leg4.addBox(-2.0F,0.0F,-2.0F,4,6,4,par1);
  this.leg4.setRotationPoint(2.0F,(float)(12 + b0),-4.0F);
  pedestal=new ModelSmallPedestal(renderer);
}
Program: 59959
Project: 59959
Buggy source:
private void renderCreeperCharging(){
  float tickModifier=(float)(Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;
  float scale=1.2F;
  GL11.glScalef(scale,scale,scale);
  TileEntityRenderer.instance.renderEngine.bindTexture("String_Node_Str");
  GL11.glEnable(GL11.GL_BLEND);
  GL11.glDepthMask(true);
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  for (int var21=0; var21 < 2; ++var21) {
    float f4=0.5F;
    GL11.glColor4f(f4,f4,f4,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;
    GL11.glTranslatef(0,var23,0);
    renderCreeper();
  }
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  GL11.glLoadIdentity();
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glDepthFunc(GL11.GL_LEQUAL);
  GL11.glBlendFunc(GL11.GL_ONE,GL11.GL_ONE);
}

Fixed version (ground truth):
private void renderCreeperCharging(){
  float tickModifier=(float)(Minecraft.getSystemTime() % 3000L) / 3000.0F * 48.0F;
  float scale=1.2F;
  GL11.glScalef(scale,scale,scale);
  renderer.bindTextureByName("String_Node_Str");
  GL11.glEnable(GL11.GL_BLEND);
  GL11.glDepthMask(true);
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  for (int var21=0; var21 < 2; ++var21) {
    float f4=0.5F;
    GL11.glColor4f(f4,f4,f4,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;
    GL11.glTranslatef(0,var23,0);
    renderCreeper();
  }
  GL11.glMatrixMode(GL11.GL_TEXTURE);
  GL11.glLoadIdentity();
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  GL11.glEnable(GL11.GL_LIGHTING);
  GL11.glDisable(GL11.GL_BLEND);
  GL11.glDepthFunc(GL11.GL_LEQUAL);
  GL11.glBlendFunc(GL11.GL_ONE,GL11.GL_ONE);
}
Program: 59960
Project: 59960
Buggy source:
public ModelSmallPedestal(){
  textureWidth=64;
  textureHeight=32;
  Pedestal=new ModelRenderer(this,0,0);
  Pedestal.addBox(0F,0F,0F,16,4,16);
  Pedestal.setRotationPoint(-8F,20F,-8F);
  Pedestal.setTextureSize(64,32);
  Pedestal.mirror=true;
  setRotation(Pedestal,0F,0F,0F);
  Pedestal2=new ModelRenderer(this,2,2);
  Pedestal2.addBox(0F,0F,0F,14,4,14);
  Pedestal2.setRotationPoint(-7F,16F,-7F);
  Pedestal2.setTextureSize(64,32);
  Pedestal2.mirror=true;
  setRotation(Pedestal2,0F,0F,0F);
}

Fixed version (ground truth):
public ModelSmallPedestal(TileEntityGSRenderer renderer){
  this.renderer=renderer;
  textureWidth=64;
  textureHeight=32;
  Pedestal=new ModelRenderer(this,0,0);
  Pedestal.addBox(0F,0F,0F,16,4,16);
  Pedestal.setRotationPoint(-8F,20F,-8F);
  Pedestal.setTextureSize(64,32);
  Pedestal.mirror=true;
  setRotation(Pedestal,0F,0F,0F);
  Pedestal2=new ModelRenderer(this,2,2);
  Pedestal2.addBox(0F,0F,0F,14,4,14);
  Pedestal2.setRotationPoint(-7F,16F,-7F);
  Pedestal2.setTextureSize(64,32);
  Pedestal2.mirror=true;
  setRotation(Pedestal2,0F,0F,0F);
}