nus-yam/ex-repair huggingface dataset:
Program: 63538
Project: 63538
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DaggerViewModelComponent.builder().appComponent(HackerNewsApplication.getAppComponent()).build().inject(this);
  if (savedInstanceState != null) {
    getViewModel().setStoryList(savedInstanceState.getParcelableArrayList(STORY_LIST));
    getViewModel().isRestoring(true);
  }
  if (getArguments() != null) {
    @StoryListViewModel.FeedType final int feedType=getArguments().getInt(FEED_TO_LOAD);
    getViewModel().setFeedType(feedType);
  }
  setHasOptionsMenu(true);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  DaggerViewModelComponent.builder().appComponent(HackerNewsApplication.getAppComponent()).build().inject(this);
  if (savedInstanceState != null) {
    getViewModel().setStoryList(savedInstanceState.getParcelableArrayList(STORY_LIST));
    getViewModel().setIsRestoring(true);
  }
  if (getArguments() != null) {
    @StoryListViewModel.FeedType final int feedType=getArguments().getInt(FEED_TO_LOAD);
    getViewModel().setFeedType(feedType);
  }
  setHasOptionsMenu(true);
}
Program: 63539
Project: 63539
Buggy source:
private void refresh(){
  mRecyclerAdapter.clear();
  react(getViewModel().getStories(),false);
}

Fixed version (ground truth):
private void refresh(){
  mRecyclerAdapter.clear();
  getViewModel().setIsRestoring(false);
  getViewModel().setStoryList(null);
  react(getViewModel().getStories(),false);
}
Program: 63540
Project: 63540
Buggy source:
@NonNull @StringRes int getTitle(){
  @StringRes int title;
switch (mFeedType) {
case FEED_TYPE_TOP:
    title=R.string.title_top;
  break;
case FEED_TYPE_BEST:
title=R.string.title_best;
break;
case FEED_TYPE_NEW:
title=R.string.title_newest;
break;
case FEED_TYPE_SAVED:
title=R.string.title_section_saved;
break;
case FEED_TYPE_ASK:
title=R.string.title_section_ask;
break;
default :
title=R.string.app_name;
}
return title;
}

Fixed version (ground truth):
@StringRes int getTitle(){
  @StringRes int title;
switch (mFeedType) {
case FEED_TYPE_TOP:
    title=R.string.title_top;
  break;
case FEED_TYPE_BEST:
title=R.string.title_best;
break;
case FEED_TYPE_NEW:
title=R.string.title_newest;
break;
case FEED_TYPE_SAVED:
title=R.string.title_section_saved;
break;
case FEED_TYPE_ASK:
title=R.string.title_section_ask;
break;
default :
title=R.string.app_name;
}
return title;
}
Program: 63543
Project: 63543
Buggy source:
@SuppressLint("String_Node_Str") @Override public void onStoryListFragmentInteraction(long id,boolean saved){
  if (HackerNewsApplication.isDebug()) {
    Toast.makeText(this,String.valueOf(id),Toast.LENGTH_SHORT).show();
  }
  if (mIsDualPane && mDetailsContainer != null) {
    mStoryDetailFragment=StoryDetailFragment.newInstance(id,saved);
    mDetailsContainer.setVisibility(View.VISIBLE);
    getSupportFragmentManager().beginTransaction().replace(R.id.details_container,mStoryDetailFragment).commit();
  }
 else {
    Intent detailIntent=new Intent(this,StoryDetailActivity.class);
    detailIntent.putExtra(STORY_ID,id);
    detailIntent.putExtra(StoryDetailFragment.LOADING_FROM_SAVED,saved);
    startActivity(detailIntent);
    overridePendingTransition(R.anim.offscreen_left_to_view,R.anim.fadeout);
  }
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override public void onStoryListFragmentInteraction(long id,boolean saved){
  if (HackerNewsApplication.isDebug()) {
    Toast.makeText(this,String.valueOf(id),Toast.LENGTH_SHORT).show();
  }
  if (mIsDualPane && mDetailsContainer != null) {
    mStoryDetailFragment=StoryDetailFragment.newInstance(id,saved);
    mDetailsContainer.postDelayed(() -> {
      mDetailsContainer.setVisibility(View.VISIBLE);
      getSupportFragmentManager().beginTransaction().replace(R.id.details_container,mStoryDetailFragment).commit();
    }
,200);
  }
 else {
    Intent detailIntent=new Intent(this,StoryDetailActivity.class);
    detailIntent.putExtra(STORY_ID,id);
    detailIntent.putExtra(StoryDetailFragment.LOADING_FROM_SAVED,saved);
    startActivity(detailIntent);
    overridePendingTransition(R.anim.offscreen_left_to_view,R.anim.fadeout);
  }
}
Program: 63545
Project: 63545
Buggy source:
public ReboundRevealRelativeLayout(Context context,AttributeSet attrs,int defStyle){
  super(context,attrs,defStyle);
  SpringSystem springSystem=SpringSystem.create();
  mSpring=springSystem.createSpring();
  mSpring.setSpringConfig(SPRING_CONFIG);
  LinkSpringListener linkSpringListener=new LinkSpringListener();
  mSpring.setCurrentValue(0).setEndValue(1).addListener(linkSpringListener);
}

Fixed version (ground truth):
public ReboundRevealRelativeLayout(Context context,AttributeSet attrs,int defStyle){
  super(context,attrs,defStyle);
  SpringSystem springSystem=SpringSystem.create();
  mSpring=springSystem.createSpring();
  mSpring.setSpringConfig(SPRING_CONFIG);
  updateListener();
}
Program: 63547
Project: 63547
Buggy source:
public ReboundRevealRelativeLayout(Context context,AttributeSet attrs,int defStyle){
  super(context,attrs,defStyle);
  SpringSystem springSystem=SpringSystem.create();
  mSpring=springSystem.createSpring();
  mSpring.setSpringConfig(SPRING_CONFIG);
  LinkSpringListener linkSpringListener=new LinkSpringListener();
  mSpring.setCurrentValue(0).setEndValue(1).addListener(linkSpringListener);
}

Fixed version (ground truth):
public ReboundRevealRelativeLayout(Context context,AttributeSet attrs,int defStyle){
  super(context,attrs,defStyle);
  SpringSystem springSystem=SpringSystem.create();
  mSpring=springSystem.createSpring();
  mSpring.setSpringConfig(SPRING_CONFIG);
  updateListener();
}
Program: 63548
Project: 63548
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  GsonBuilder gsonBuilder=new GsonBuilder();
  gsonBuilder.registerTypeAdapter(Long.class,new LongTypeAdapter());
  Gson gson=gsonBuilder.create();
  RestAdapter restAdapter=new RestAdapter.Builder().setConverter(new GsonConverter(gson)).setEndpoint("String_Node_Str").build();
  mHackerNewsService=restAdapter.create(HackerNewsService.class);
  if (HoloHackerNewsApplication.isTRAVIS()) {
    RestAdapter readabilityRestAdapter=new RestAdapter.Builder().setEndpoint("String_Node_Str").build();
    mReadabilityService=readabilityRestAdapter.create(ReadabilityService.class);
  }
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  GsonBuilder gsonBuilder=new GsonBuilder();
  gsonBuilder.registerTypeAdapter(Long.class,new LongTypeAdapter());
  Gson gson=gsonBuilder.create();
  RestAdapter restAdapter=new RestAdapter.Builder().setConverter(new GsonConverter(gson)).setEndpoint("String_Node_Str").build();
  mHackerNewsService=restAdapter.create(HackerNewsService.class);
  if (!HoloHackerNewsApplication.isTRAVIS()) {
    RestAdapter readabilityRestAdapter=new RestAdapter.Builder().setEndpoint("String_Node_Str").build();
    mReadabilityService=readabilityRestAdapter.create(ReadabilityService.class);
  }
}
Program: 63551
Project: 63551
Buggy source:
@Override public void success(final StoryDetail storyDetail,Response response){
  mCommentsListView.setOnScrollListener(new AbsListView.OnScrollListener(){
    public int mPrevVisibleItem;
    @Override public void onScrollStateChanged(    AbsListView absListView,    int scrollState){
    }
    @Override public void onScroll(    AbsListView absListView,    int firstVisibleItem,    int i2,    int i3){
      if (mPrevVisibleItem != firstVisibleItem) {
        mPrevVisibleItem=firstVisibleItem;
      }
      if (firstVisibleItem == 0) {
        mActionBar.setTitle("String_Node_Str");
      }
 else {
        mActionBar.setTitle(storyDetail.getTitle());
      }
    }
  }
);
  mOpenLinkDialogButton.setVisibility(View.VISIBLE);
  mOpenLinkDialogButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mListener.onStoryFragmentInteraction(storyDetail.getUrl());
    }
  }
);
  mListAdapter.setStoryDetail(storyDetail);
  mListAdapter.setComments(storyDetail.getCommentList());
  mListAdapter.notifyDataSetChanged();
  showProgress(false);
  mSwipeRefreshLayout.setRefreshing(false);
}

Fixed version (ground truth):
@Override public void success(final StoryDetail storyDetail,Response response){
  mHeaderViewHolder.mStoryTitle.setText(storyDetail.getTitle());
  mHeaderViewHolder.mStorySubmitter.setText(storyDetail.getUser());
  mHeaderViewHolder.mStoryDomain.setText("String_Node_Str" + storyDetail.getDomain());
  mHeaderViewHolder.mStoryPoints.setText(String.valueOf(storyDetail.getPoints()));
  mHeaderViewHolder.mStoryLongAgo.setText("String_Node_Str" + storyDetail.getTimeAgo());
  mHeaderViewHolder.mCommentsCount.setText(storyDetail.getCommentsCount() + "String_Node_Str");
  mCommentsListView.setOnScrollListener(new AbsListView.OnScrollListener(){
    public int mPrevVisibleItem;
    @Override public void onScrollStateChanged(    AbsListView absListView,    int scrollState){
    }
    @Override public void onScroll(    AbsListView absListView,    int firstVisibleItem,    int i2,    int i3){
      if (mPrevVisibleItem != firstVisibleItem) {
        mPrevVisibleItem=firstVisibleItem;
      }
      if (firstVisibleItem == 0) {
        mActionBar.setTitle("String_Node_Str");
      }
 else {
        mActionBar.setTitle(storyDetail.getTitle());
      }
    }
  }
);
  mOpenLinkDialogButton.setVisibility(View.VISIBLE);
  mOpenLinkDialogButton.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mListener.onStoryFragmentInteraction(storyDetail.getUrl());
    }
  }
);
  mListAdapter.setStoryDetail(storyDetail);
  mListAdapter.setComments(storyDetail.getCommentList());
  mListAdapter.notifyDataSetChanged();
  showProgress(false);
  mSwipeRefreshLayout.setRefreshing(false);
}
Program: 63553
Project: 63553
Buggy source:
@Override public NBTTagCompound fixTagCompound(NBTTagCompound compound){
  String oldName=compound.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str");
  if (oldName.startsWith("String_Node_Str")) {
    String remappedName=MigrationHelper.getRemappedTileName(oldName);
    if (remappedName != null) {
      Log.info("String_Node_Str",oldName,remappedName);
      compound.setString("String_Node_Str",remappedName);
    }
 else {
      Log.error("String_Node_Str",oldName);
    }
  }
  return compound;
}

Fixed version (ground truth):
@Override public NBTTagCompound fixTagCompound(NBTTagCompound compound){
  String oldName=compound.getString("String_Node_Str").replace("String_Node_Str","String_Node_Str");
  if (oldName.startsWith("String_Node_Str")) {
    String remappedName=MigrationHelper.getRemappedTileName(oldName);
    if (remappedName != null) {
      Log.debug("String_Node_Str",oldName,remappedName);
      compound.setString("String_Node_Str",remappedName);
    }
 else {
      Log.error("String_Node_Str",oldName);
    }
  }
  return compound;
}
Program: 63554
Project: 63554
Buggy source:
@Override public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound){
  NBTTagCompound hasFlowerCacheNBT=new NBTTagCompound();
  if (!flowerCoords.isEmpty()) {
    int[] flowersList=new int[flowerCoords.size() * 3];
    int i=0;
    for (    BlockPos flowerPos : flowerCoords) {
      flowersList[i]=flowerPos.getX();
      flowersList[i + 1]=flowerPos.getY();
      flowersList[i + 2]=flowerPos.getZ();
      i++;
    }
    hasFlowerCacheNBT.setIntArray(NBT_KEY_FLOWERS,flowersList);
  }
  nbttagcompound.setTag(NBT_KEY,hasFlowerCacheNBT);
  return nbttagcompound;
}

Fixed version (ground truth):
@Override public NBTTagCompound writeToNBT(NBTTagCompound nbttagcompound){
  NBTTagCompound hasFlowerCacheNBT=new NBTTagCompound();
  if (!flowerCoords.isEmpty()) {
    int[] flowersList=new int[flowerCoords.size() * 3];
    int i=0;
    for (    BlockPos flowerPos : flowerCoords) {
      flowersList[i]=flowerPos.getX();
      flowersList[i + 1]=flowerPos.getY();
      flowersList[i + 2]=flowerPos.getZ();
      i+=3;
    }
    hasFlowerCacheNBT.setIntArray(NBT_KEY_FLOWERS,flowersList);
  }
  nbttagcompound.setTag(NBT_KEY,hasFlowerCacheNBT);
  return nbttagcompound;
}
Program: 63555
Project: 63555
Buggy source:
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}

Fixed version (ground truth):
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  if (!ModuleHelper.isEnabled(ForestryModuleUids.APICULTURE)) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}
Program: 63556
Project: 63556
Buggy source:
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ModuleHelper.isEnabled(ForestryModuleUids.APICULTURE)) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}
Program: 63557
Project: 63557
Buggy source:
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.ARBORICULTURE))) {
    return;
  }
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ModuleHelper.isEnabled(ForestryModuleUids.ARBORICULTURE)) {
    return;
  }
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}
Program: 63558
Project: 63558
Buggy source:
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.MAIL))) {
    return;
  }
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ModuleHelper.isEnabled(ForestryModuleUids.MAIL)) {
    return;
  }
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}
Program: 63559
Project: 63559
Buggy source:
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.BACKPACKS))) {
    return;
  }
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  JeiUtil.addDescription(registry,items.apiaristBackpack,items.lepidopteristBackpack);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ModuleHelper.isEnabled(ForestryModuleUids.BACKPACKS)) {
    return;
  }
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  if (ModuleHelper.isEnabled(ForestryModuleUids.APICULTURE)) {
    JeiUtil.addDescription(registry,items.apiaristBackpack);
  }
  if (ModuleHelper.isEnabled(ForestryModuleUids.LEPIDOPTEROLOGY)) {
    JeiUtil.addDescription(registry,items.lepidopteristBackpack);
  }
}
Program: 63560
Project: 63560
Buggy source:
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}

Fixed version (ground truth):
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}
Program: 63561
Project: 63561
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}
Program: 63562
Project: 63562
Buggy source:
@Override public void registerCategories(IRecipeCategoryRegistration registry){
  IGuiHelper guiHelper=registry.getJeiHelpers().getGuiHelper();
  registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}

Fixed version (ground truth):
@Override public void registerCategories(IRecipeCategoryRegistration registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.CHARCOAL))) {
    return;
  }
  IGuiHelper guiHelper=registry.getJeiHelpers().getGuiHelper();
  registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}
Program: 63563
Project: 63563
Buggy source:
@Override public void register(IModRegistry registry){
  registry.handleRecipes(CharcoalPileWall.class,CharcoalPileWallWrapper::new,RECIPE_UID);
  registry.addRecipes(TreeManager.pileWalls,RECIPE_UID);
  registry.addRecipeCatalyst(new ItemStack(ModuleCharcoal.getBlocks().woodPile),RECIPE_UID);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.CHARCOAL))) {
    return;
  }
  registry.handleRecipes(CharcoalPileWall.class,CharcoalPileWallWrapper::new,RECIPE_UID);
  registry.addRecipes(TreeManager.pileWalls,RECIPE_UID);
  registry.addRecipeCatalyst(new ItemStack(ModuleCharcoal.getBlocks().woodPile),RECIPE_UID);
}
Program: 63564
Project: 63564
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.ARBORICULTURE))) {
    return;
  }
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}
Program: 63565
Project: 63565
Buggy source:
@Override public void register(IModRegistry registry){
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.MAIL))) {
    return;
  }
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}
Program: 63566
Project: 63566
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  JeiUtil.addDescription(registry,items.apiaristBackpack,items.lepidopteristBackpack);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.BACKPACKS))) {
    return;
  }
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  JeiUtil.addDescription(registry,items.apiaristBackpack,items.lepidopteristBackpack);
}
Program: 63567
Project: 63567
Buggy source:
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}

Fixed version (ground truth):
@Override public void registerItemSubtypes(ISubtypeRegistry subtypeRegistry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  ISubtypeRegistry.ISubtypeInterpreter beeSubtypeInterpreter=itemStack -> {
    IAlleleSpecies species=Genome.getSpeciesDirectly(BeeManager.beeRoot,itemStack);
    return species == null ? ISubtypeRegistry.ISubtypeInterpreter.NONE : species.getUID();
  }
;
  subtypeRegistry.registerSubtypeInterpreter(items.beeDroneGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beePrincessGE,beeSubtypeInterpreter);
  subtypeRegistry.registerSubtypeInterpreter(items.beeQueenGE,beeSubtypeInterpreter);
}
Program: 63568
Project: 63568
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.APICULTURE))) {
    return;
  }
  ItemRegistryApiculture items=ModuleApiculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,"String_Node_Str",items.frameImpregnated,items.frameProven,items.frameUntreated);
  JeiUtil.addDescription(registry,"String_Node_Str",items.apiaristBoots,items.apiaristChest,items.apiaristHat,items.apiaristLegs);
  JeiUtil.addDescription(registry,items.habitatLocator,items.scoop,items.imprinter);
}
Program: 63569
Project: 63569
Buggy source:
@Override public void registerCategories(IRecipeCategoryRegistration registry){
  IGuiHelper guiHelper=registry.getJeiHelpers().getGuiHelper();
  registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}

Fixed version (ground truth):
@Override public void registerCategories(IRecipeCategoryRegistration registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.CHARCOAL))) {
    return;
  }
  IGuiHelper guiHelper=registry.getJeiHelpers().getGuiHelper();
  registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}
Program: 63570
Project: 63570
Buggy source:
@Override public void register(IModRegistry registry){
  registry.handleRecipes(CharcoalPileWall.class,CharcoalPileWallWrapper::new,RECIPE_UID);
  registry.addRecipes(TreeManager.pileWalls,RECIPE_UID);
  registry.addRecipeCatalyst(new ItemStack(ModuleCharcoal.getBlocks().woodPile),RECIPE_UID);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.CHARCOAL))) {
    return;
  }
  registry.handleRecipes(CharcoalPileWall.class,CharcoalPileWallWrapper::new,RECIPE_UID);
  registry.addRecipes(TreeManager.pileWalls,RECIPE_UID);
  registry.addRecipeCatalyst(new ItemStack(ModuleCharcoal.getBlocks().woodPile),RECIPE_UID);
}
Program: 63571
Project: 63571
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.ARBORICULTURE))) {
    return;
  }
  ItemRegistryArboriculture items=ModuleArboriculture.getItems();
  Preconditions.checkNotNull(items);
  JeiUtil.addDescription(registry,items.grafter,items.grafterProven);
}
Program: 63572
Project: 63572
Buggy source:
@Override public void register(IModRegistry registry){
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.MAIL))) {
    return;
  }
  BlockRegistryMail blocks=ModuleMail.getBlocks();
  JeiUtil.addDescription(registry,blocks.mailbox,blocks.stampCollector,blocks.tradeStation);
}
Program: 63573
Project: 63573
Buggy source:
@Override public void register(IModRegistry registry){
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  JeiUtil.addDescription(registry,items.apiaristBackpack,items.lepidopteristBackpack);
}

Fixed version (ground truth):
@Override public void register(IModRegistry registry){
  if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID,ForestryModuleUids.BACKPACKS))) {
    return;
  }
  ItemRegistryBackpacks items=ModuleBackpacks.getItems();
  JeiUtil.addDescription(registry,"String_Node_Str",items.minerBackpack,items.minerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.diggerBackpack,items.diggerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.foresterBackpack,items.foresterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.hunterBackpack,items.hunterBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.adventurerBackpack,items.adventurerBackpackT2);
  JeiUtil.addDescription(registry,"String_Node_Str",items.builderBackpack,items.builderBackpackT2);
  JeiUtil.addDescription(registry,items.apiaristBackpack,items.lepidopteristBackpack);
}
Program: 63574
Project: 63574
Buggy source:
@Override public void registerFilter(IFilterRuleType rule){
  filterByName.put(rule.getUID(),rule);
  filterIDByName.put(rule.getUID(),ids++);
  filterByID.put(ids - 1,rule);
}

Fixed version (ground truth):
@Override public void registerFilter(IFilterRuleType rule){
  if (!filterByID.isEmpty()) {
    return;
  }
  filterByName.put(rule.getUID(),rule);
}
Program: 63575
Project: 63575
Buggy source:
@Override public void doInit(){
  GameRegistry.registerTileEntity(TileGeneticFilter.class,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void doInit(){
  GameRegistry.registerTileEntity(TileGeneticFilter.class,"String_Node_Str");
  ((FilterRegistry)AlleleManager.filterRegistry).init();
}
Program: 63576
Project: 63576
Buggy source:
@Nonnull public FluidStack getFluidStack(){
  return fluidStack;
}

Fixed version (ground truth):
@Nullable public FluidStack getFluidStack(){
  return fluidStack;
}
Program: 63577
Project: 63577
Buggy source:
public TankRenderInfo(@Nonnull FluidStack fluidStack,@Nonnull EnumTankLevel level){
  this.fluidStack=fluidStack;
  this.level=level;
}

Fixed version (ground truth):
public TankRenderInfo(@Nullable FluidStack fluidStack,@Nonnull EnumTankLevel level){
  this.fluidStack=fluidStack;
  this.level=level;
}
Program: 63579
Project: 63579
Buggy source:
public static void createLoot(){
  cocoonSilk.getCocoonLoot().put(PluginCore.items.craftingMaterial.getSilkWisp(),0.75F);
  cocoonSilk.getCocoonLoot().put(PluginCore.items.craftingMaterial.getSilkWisp(),0.25F);
}

Fixed version (ground truth):
public static void createLoot(){
  cocoonDefault.getCocoonLoot().put(new ItemStack(Items.STRING,2),1F);
  cocoonDefault.getCocoonLoot().put(new ItemStack(Items.STRING),0.75F);
  cocoonDefault.getCocoonLoot().put(new ItemStack(Items.STRING,3),0.25F);
  cocoonSilk.getCocoonLoot().put(new ItemStack(PluginCore.items.craftingMaterial,3,2),0.75F);
  cocoonSilk.getCocoonLoot().put(new ItemStack(PluginCore.items.craftingMaterial,2,2),0.25F);
}
Program: 63581
Project: 63581
Buggy source:
@Nonnull Map<Integer,List<IClimateSource>> getSources();

Fixed version (ground truth):
@Nonnull Map<Integer,Map<BlockPos,IClimateSource>> getSources();
Program: 63582
Project: 63582
Buggy source:
@Override public <G extends IGreenhouseController & IGreenhouseHousing>boolean canWork(G greenhouse,boolean canWork){
  return true;
}

Fixed version (ground truth):
@Override public boolean canWork(IGreenhouseController greenhouse,boolean canWork){
  return true;
}
Program: 63583
Project: 63583
Buggy source:
@SubscribeEvent public void onWorldTick(TickEvent.WorldTickEvent event){
  int dim=event.world.provider.getDimension();
  if (event.phase == TickEvent.Phase.END) {
    if (!serverTicks.containsKey(Integer.valueOf(dim))) {
      serverTicks.put(Integer.valueOf(dim),1);
    }
    int ticks=serverTicks.get(Integer.valueOf(dim));
    if (ticks % 20 == 0) {
      for (      IClimateRegion region : ForestryAPI.climateManager.getRegions().get(Integer.valueOf(dim))) {
        region.updateClimate();
      }
    }
    for (    IClimateSource source : ForestryAPI.climateManager.getSources().get(Integer.valueOf(dim))) {
      source.changeClimate(ticks,ForestryAPI.climateManager.getRegionForPos(event.world,source.getPos()));
    }
    serverTicks.put(Integer.valueOf(dim),ticks + 1);
  }
}

Fixed version (ground truth):
@SubscribeEvent public void onWorldTick(TickEvent.WorldTickEvent event){
  int dim=event.world.provider.getDimension();
  if (event.phase == TickEvent.Phase.END) {
    if (!serverTicks.containsKey(Integer.valueOf(dim))) {
      serverTicks.put(Integer.valueOf(dim),1);
    }
    int ticks=serverTicks.get(Integer.valueOf(dim));
    if (ticks % 20 == 0) {
      for (      IClimateRegion region : ForestryAPI.climateManager.getRegions().get(Integer.valueOf(dim))) {
        region.updateClimate();
      }
    }
    for (    IClimateSource source : ForestryAPI.climateManager.getSources().get(Integer.valueOf(dim)).values()) {
      source.changeClimate(ticks,ForestryAPI.climateManager.getRegionForPos(event.world,source.getPos()));
    }
    serverTicks.put(Integer.valueOf(dim),ticks + 1);
  }
}
Program: 63584
Project: 63584
Buggy source:
@Override public <G extends IGreenhouseController & IGreenhouseHousing>boolean canWork(G greenhouse,boolean canWork){
  return canWork && !hasRedstoneSignal();
}

Fixed version (ground truth):
@Override public boolean canWork(IGreenhouseController greenhouse,boolean canWork){
  return canWork && !hasRedstoneSignal();
}
Program: 63585
Project: 63585
Buggy source:
@SubscribeEvent @SideOnly(Side.CLIENT) public void textureHook(TextureStitchEvent.Pre event){
  ParticleSnow.sprites=new TextureAtlasSprite[3];
  for (int i=0; i < ParticleSnow.sprites.length; i++) {
    ParticleSnow.sprites[i]=event.getMap().registerSprite(new ResourceLocation("String_Node_Str" + (i + 1)));
  }
  beeSprite=event.getMap().registerSprite(new ResourceLocation("String_Node_Str"));
}

Fixed version (ground truth):
@SubscribeEvent @SideOnly(Side.CLIENT) public void textureHook(TextureStitchEvent.Pre event){
  ParticleSnow.sprites=new TextureAtlasSprite[3];
  for (int i=0; i < ParticleSnow.sprites.length; i++) {
    ParticleSnow.sprites[i]=event.getMap().registerSprite(new ResourceLocation("String_Node_Str" + (i + 1)));
  }
  ProxyApicultureClient.beeSprite=event.getMap().registerSprite(new ResourceLocation("String_Node_Str"));
}
Program: 63586
Project: 63586
Buggy source:
public ParticleBeeExplore(World world,Vec3d origin,BlockPos destination,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(PluginApiculture.beeSprite);
  this.origin=origin;
  this.motionX=(destination.getX() + 0.5 - this.posX) * 0.015;
  this.motionY=(destination.getY() + 0.5 - this.posY) * 0.015;
  this.motionZ=(destination.getZ() + 0.5 - this.posZ) * 0.015;
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.015D;
  this.motionZ*=0.9D;
}

Fixed version (ground truth):
public ParticleBeeExplore(World world,Vec3d origin,BlockPos destination,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(ProxyApicultureClient.beeSprite);
  this.origin=origin;
  this.motionX=(destination.getX() + 0.5 - this.posX) * 0.015;
  this.motionY=(destination.getY() + 0.5 - this.posY) * 0.015;
  this.motionZ=(destination.getZ() + 0.5 - this.posZ) * 0.015;
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.015D;
  this.motionZ*=0.9D;
}
Program: 63587
Project: 63587
Buggy source:
public ParticleBeeRoundTrip(World world,Vec3d origin,BlockPos destination,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(PluginApiculture.beeSprite);
  this.origin=origin;
  this.destination=destination;
  this.motionX=(destination.getX() + 0.5 - this.posX) * 0.02 + 0.1 * rand.nextFloat();
  this.motionY=(destination.getY() + 0.5 - this.posY) * 0.015 + 0.1 * rand.nextFloat();
  this.motionZ=(destination.getZ() + 0.5 - this.posZ) * 0.02 + 0.1 * rand.nextFloat();
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.015D;
  this.motionZ*=0.9D;
}

Fixed version (ground truth):
public ParticleBeeRoundTrip(World world,Vec3d origin,BlockPos destination,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(ProxyApicultureClient.beeSprite);
  this.origin=origin;
  this.destination=destination;
  this.motionX=(destination.getX() + 0.5 - this.posX) * 0.02 + 0.1 * rand.nextFloat();
  this.motionY=(destination.getY() + 0.5 - this.posY) * 0.015 + 0.1 * rand.nextFloat();
  this.motionZ=(destination.getZ() + 0.5 - this.posZ) * 0.02 + 0.1 * rand.nextFloat();
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.015D;
  this.motionZ*=0.9D;
}
Program: 63588
Project: 63588
Buggy source:
public ParticleBeeTargetEntity(World world,Vec3d origin,Entity entity,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(PluginApiculture.beeSprite);
  this.origin=origin;
  this.entity=entity;
  this.motionX=(entity.posX - this.posX) * 0.015;
  this.motionY=(entity.posY + 1.62F - this.posY) * 0.015;
  this.motionZ=(entity.posZ - this.posZ) * 0.015;
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.9D;
  this.motionZ*=0.9D;
}

Fixed version (ground truth):
public ParticleBeeTargetEntity(World world,Vec3d origin,Entity entity,int color){
  super(world,origin.xCoord,origin.yCoord,origin.zCoord,0.0D,0.0D,0.0D);
  setParticleTexture(ProxyApicultureClient.beeSprite);
  this.origin=origin;
  this.entity=entity;
  this.motionX=(entity.posX - this.posX) * 0.015;
  this.motionY=(entity.posY + 1.62F - this.posY) * 0.015;
  this.motionZ=(entity.posZ - this.posZ) * 0.015;
  particleRed=(color >> 16 & 255) / 255.0F;
  particleGreen=(color >> 8 & 255) / 255.0F;
  particleBlue=(color & 255) / 255.0F;
  this.setSize(0.1F,0.1F);
  this.particleScale*=0.2F;
  this.particleMaxAge=(int)(80.0D / (Math.random() * 0.8D + 0.2D));
  this.motionX*=0.9D;
  this.motionY*=0.9D;
  this.motionZ*=0.9D;
}
Program: 63589
Project: 63589
Buggy source:
@Override public void doInit(){
  super.doInit();
  blocks.analyzer.init();
  blocks.escritoire.init();
  ForestryModEnvWarningCallable.register();
  AlleleHelper.instance.init();
  Proxies.render.initRendering();
}

Fixed version (ground truth):
@Override public void doInit(){
  super.doInit();
  blocks.analyzer.init();
  blocks.escritoire.init();
  AlleleHelper.instance.init();
  Proxies.render.initRendering();
}
Program: 63590
Project: 63590
Buggy source:
@Override public boolean hasWork(){
  checkRecipe();
  checkFuel();
  boolean hasRecipe=currentRecipe != null;
  boolean hasFuel=fuelBurnTime > 0;
  boolean hasResource=fermentationTime > 0 || getStackInSlot(InventoryFermenter.SLOT_RESOURCE) != null;
  boolean hasFluidResource=resourceTank.canDrain(fuelCurrentFerment);
  boolean hasFluidSpace=true;
  if (hasRecipe) {
    int fermented=Math.min(fermentationTime,fuelCurrentFerment);
    int productAmount=Math.round(fermented * currentRecipe.getModifier() * currentResourceModifier);
    hasFluidSpace=productTank.canFill(currentRecipe.getOutput(),productAmount);
  }
  IErrorLogic errorLogic=getErrorLogic();
  errorLogic.setCondition(!hasRecipe,EnumErrorCode.NO_RECIPE);
  errorLogic.setCondition(!hasFuel,EnumErrorCode.NO_FUEL);
  errorLogic.setCondition(!hasResource,EnumErrorCode.NO_RESOURCE);
  errorLogic.setCondition(!hasFluidResource,EnumErrorCode.NO_RESOURCE_LIQUID);
  errorLogic.setCondition(!hasFluidSpace,EnumErrorCode.NO_SPACE_TANK);
  return hasRecipe && hasFuel && hasResource&& hasFluidResource&& hasFluidSpace;
}

Fixed version (ground truth):
@Override public boolean hasWork(){
  checkRecipe();
  checkFuel();
  int fermented=Math.min(fermentationTime,fuelCurrentFerment);
  boolean hasRecipe=currentRecipe != null;
  boolean hasFuel=fuelBurnTime > 0;
  boolean hasResource=fermentationTime > 0 || getStackInSlot(InventoryFermenter.SLOT_RESOURCE) != null;
  boolean hasFluidResource=resourceTank.canDrain(fermented);
  boolean hasFluidSpace=true;
  if (hasRecipe) {
    int productAmount=Math.round(fermented * currentRecipe.getModifier() * currentResourceModifier);
    hasFluidSpace=productTank.canFill(currentRecipe.getOutput(),productAmount);
  }
  IErrorLogic errorLogic=getErrorLogic();
  errorLogic.setCondition(!hasRecipe,EnumErrorCode.NO_RECIPE);
  errorLogic.setCondition(!hasFuel,EnumErrorCode.NO_FUEL);
  errorLogic.setCondition(!hasResource,EnumErrorCode.NO_RESOURCE);
  errorLogic.setCondition(!hasFluidResource,EnumErrorCode.NO_RESOURCE_LIQUID);
  errorLogic.setCondition(!hasFluidSpace,EnumErrorCode.NO_SPACE_TANK);
  return hasRecipe && hasFuel && hasResource&& hasFluidResource&& hasFluidSpace;
}
Program: 63591
Project: 63591
Buggy source:
@Override public boolean workCycle(){
  int fermented=Math.min(fermentationTime,fuelCurrentFerment);
  int productAmount=Math.round(fermented * currentRecipe.getModifier() * currentResourceModifier);
  productTank.fill(new FluidStack(currentRecipe.getOutput(),productAmount),true);
  fuelBurnTime--;
  resourceTank.drain(fuelCurrentFerment,true);
  fermentationTime-=this.fuelCurrentFerment;
  if (fermentationTime > 0) {
    return false;
  }
  currentRecipe=null;
  return true;
}

Fixed version (ground truth):
@Override public boolean workCycle(){
  int fermented=Math.min(fermentationTime,fuelCurrentFerment);
  int productAmount=Math.round(fermented * currentRecipe.getModifier() * currentResourceModifier);
  productTank.fill(new FluidStack(currentRecipe.getOutput(),productAmount),true);
  fuelBurnTime--;
  resourceTank.drain(fermented,true);
  fermentationTime-=fermented;
  if (fermentationTime > 0) {
    return false;
  }
  currentRecipe=null;
  return true;
}
Program: 63592
Project: 63592
Buggy source:
@Override public float getExactHumidity(){
  return getBiome().getRainfall() + tempChange;
}

Fixed version (ground truth):
@Override public float getExactHumidity(){
  return getBiome().getRainfall() + humidChange;
}