nus-yam/ex-repair huggingface dataset:
Program: 165559
Project: 165559
Buggy source:
public boolean hasAtLeastOneActorThumbnail(){
  for (  Actor currentActor : actors) {
    if (currentActor.getThumb().getThumbURL() != null && !currentActor.getThumb().getThumbURL().equals("String_Node_Str")) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean hasAtLeastOneActorThumbnail(){
  for (  Actor currentActor : actors) {
    if (currentActor.getThumb() != null && currentActor.getThumb().getThumbURL() != null && !currentActor.getThumb().getThumbURL().equals("String_Node_Str")) {
      return true;
    }
  }
  return false;
}
Program: 165560
Project: 165560
Buggy source:
@Override public Runtime scrapeRuntime(){
  Elements movieDownloadParts=document.select("String_Node_Str");
  ArrayList<String> movieFileName=new ArrayList<String>(movieDownloadParts.size());
  Hashtable<String,Integer> runtimesByPart=new Hashtable<String,Integer>(movieDownloadParts.size());
  for (  Element movieElement : movieDownloadParts) {
    Element movieElementLink=movieElement.select("String_Node_Str").first();
    if (movieElementLink != null) {
      String filePath=movieElementLink.attr("String_Node_Str");
      String[] splitBySlash=filePath.split("String_Node_Str");
      String fileNameNoExtension=splitBySlash[splitBySlash.length - 1];
      fileNameNoExtension=fileNameNoExtension.substring(0,fileNameNoExtension.length() - 4);
      movieFileName.add(filePath);
      String runtimeText=movieElement.select("String_Node_Str").last().text();
      Integer runtimeAmt=new Integer(runtimeText.substring(1,runtimeText.indexOf('m') - 1));
      runtimesByPart.put(fileNameNoExtension,runtimeAmt);
    }
  }
  int totalRuntime=0;
  for (  Integer uniqueRuntime : runtimesByPart.values()) {
    totalRuntime+=uniqueRuntime.intValue();
  }
  if (totalRuntime != 0) {
    return new Runtime(Integer.toString(totalRuntime));
  }
 else   return new Runtime("String_Node_Str");
}

Fixed version (ground truth):
@Override public Runtime scrapeRuntime(){
  Elements movieDownloadParts=document.select("String_Node_Str");
  ArrayList<String> movieFileName=new ArrayList<String>(movieDownloadParts.size());
  Hashtable<String,Integer> runtimesByPart=new Hashtable<String,Integer>(movieDownloadParts.size());
  System.out.println("String_Node_Str" + movieDownloadParts);
  for (  Element movieElement : movieDownloadParts) {
    Element movieElementLink=movieElement.select("String_Node_Str").first();
    if (movieElementLink != null) {
      String filePath=movieElementLink.attr("String_Node_Str");
      String[] splitBySlash=filePath.split("String_Node_Str");
      String fileNameNoExtension=splitBySlash[splitBySlash.length - 1];
      fileNameNoExtension=fileNameNoExtension.substring(0,fileNameNoExtension.length() - 4);
      movieFileName.add(filePath);
      System.out.println("String_Node_Str" + movieElement);
      String runtimeText=movieElement.select("String_Node_Str").last().text();
      System.out.println("String_Node_Str" + runtimeText);
      Integer runtimeAmt=new Integer(runtimeText.substring(1,runtimeText.indexOf('m') - 1));
      runtimesByPart.put(fileNameNoExtension,runtimeAmt);
    }
  }
  int totalRuntime=0;
  for (  Integer uniqueRuntime : runtimesByPart.values()) {
    totalRuntime+=uniqueRuntime.intValue();
  }
  if (totalRuntime != 0) {
    return new Runtime(Integer.toString(totalRuntime));
  }
 else   return new Runtime("String_Node_Str");
}
Program: 165561
Project: 165561
Buggy source:
private static String getTargetFilePath(File file,String extension){
  if (!file.isDirectory()) {
    String nfoName=getUnstackedMovieName(file) + extension;
    return nfoName;
  }
 else {
    final String extensionFromParameter=extension;
    File[] directoryContents=file.listFiles(new FilenameFilter(){
      public boolean accept(      File directory,      String fileName){
        return fileName.endsWith(extensionFromParameter);
      }
    }
);
    if (directoryContents.length > 0)     return directoryContents[0].getPath();
 else {
      System.out.println("String_Node_Str" + getLastWordOfFile(file));
      return new File(file.getAbsolutePath() + "String_Node_Str" + getLastWordOfFile(file)+ extension).getPath();
    }
  }
}

Fixed version (ground truth):
private static String getTargetFilePath(File file,String extension){
  if (!file.isDirectory()) {
    String nfoName=getUnstackedMovieName(file) + extension;
    return nfoName;
  }
 else {
    final String extensionFromParameter=extension;
    File[] directoryContents=file.listFiles(new FilenameFilter(){
      public boolean accept(      File directory,      String fileName){
        return fileName.endsWith(extensionFromParameter);
      }
    }
);
    if (directoryContents.length > 0)     return directoryContents[0].getPath();
 else {
      return new File(file.getAbsolutePath() + "String_Node_Str" + getLastWordOfFile(file)+ extension).getPath();
    }
  }
}
Program: 165562
Project: 165562
Buggy source:
@Override public void notifyDataSetChanged(){
  if (!(mBaseAdapter instanceof ArrayAdapter<?>))   mBaseAdapter.notifyDataSetChanged();
}

Fixed version (ground truth):
@Override public void notifyDataSetChanged(){
  mBaseAdapter.notifyDataSetChanged();
}
Program: 165563
Project: 165563
Buggy source:
private void slideBack(final View slideInView,final int downPosition,final int direction){
  mPendingDismisses.add(new PendingDismissData(downPosition,direction,slideInView));
  slideInView.setTranslationX(slideInView.getTranslationX());
  slideInView.animate().translationX(0).alpha(1).setDuration(mAnimationTime).setListener(createAnimatorListener(slideInView.getHeight()));
}

Fixed version (ground truth):
private void slideBack(final View slideInView,final int downPosition,final int direction){
  mPendingDismisses.add(new PendingDismissData(downPosition,direction,slideInView));
  slideInView.setTranslationX(slideInView.getTranslationX());
  slideInView.animate().translationX(0).alpha(1).setDuration(mAnimationTime).setListener(createAnimatorListener());
}
Program: 165564
Project: 165564
Buggy source:
private void performDismiss(final View dismissView,final int dismissPosition,final int direction){
  final ViewGroup.LayoutParams lp=dismissView.getLayoutParams();
  final int originalHeight=dismissView.getHeight();
  ValueAnimator animator=ValueAnimator.ofInt(originalHeight,1).setDuration(mAnimationTime);
  animator.addListener(createAnimatorListener(originalHeight));
  animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(){
    @Override public void onAnimationUpdate(    ValueAnimator valueAnimator){
      lp.height=(Integer)valueAnimator.getAnimatedValue();
      dismissView.setLayoutParams(lp);
    }
  }
);
  mPendingDismisses.add(new PendingDismissData(dismissPosition,direction,dismissView));
  animator.start();
}

Fixed version (ground truth):
private void performDismiss(final View dismissView,final int dismissPosition,final int direction){
  final ViewGroup.LayoutParams lp=dismissView.getLayoutParams();
  final int originalHeight=dismissView.getHeight();
  ValueAnimator animator=ValueAnimator.ofInt(originalHeight,1).setDuration(mAnimationTime);
  animator.addListener(createAnimatorListener());
  animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(){
    @Override public void onAnimationUpdate(    ValueAnimator valueAnimator){
      lp.height=(Integer)valueAnimator.getAnimatedValue();
      dismissView.setLayoutParams(lp);
    }
  }
);
  mPendingDismisses.add(new PendingDismissData(dismissPosition,direction,dismissView));
  animator.start();
}
Program: 165565
Project: 165565
Buggy source:
@Override public void onAnimationEnd(Animator animation){
  --mDismissAnimationRefCount;
  if (mDismissAnimationRefCount == 0) {
    Collections.sort(mPendingDismisses);
    int[] dismissPositions=new int[mPendingDismisses.size()];
    int[] dismissDirections=new int[mPendingDismisses.size()];
    for (int i=mPendingDismisses.size() - 1; i >= 0; i--) {
      dismissPositions[i]=mPendingDismisses.get(i).position;
      dismissDirections[i]=mPendingDismisses.get(i).direction;
    }
    mCallbacks.onAction(mListView,dismissPositions,dismissDirections);
    mDownPosition=ListView.INVALID_POSITION;
    ViewGroup.LayoutParams lp;
    for (    PendingDismissData pendingDismiss : mPendingDismisses) {
      pendingDismiss.view.setAlpha(1f);
      pendingDismiss.view.setTranslationX(0);
      lp=pendingDismiss.view.getLayoutParams();
      lp.height=originalHeight;
      pendingDismiss.view.setLayoutParams(lp);
    }
    long time=SystemClock.uptimeMillis();
    MotionEvent cancelEvent=MotionEvent.obtain(time,time,MotionEvent.ACTION_CANCEL,0,0,0);
    mListView.dispatchTouchEvent(cancelEvent);
    mDownViewGroup.showBackground(SwipeDirections.DIRECTION_NEUTRAL,false);
    mPendingDismisses.clear();
  }
}

Fixed version (ground truth):
@Override public void onAnimationEnd(Animator animation){
  --mDismissAnimationRefCount;
  if (mDismissAnimationRefCount == 0) {
    Collections.sort(mPendingDismisses);
    int[] dismissPositions=new int[mPendingDismisses.size()];
    int[] dismissDirections=new int[mPendingDismisses.size()];
    for (int i=mPendingDismisses.size() - 1; i >= 0; i--) {
      dismissPositions[i]=mPendingDismisses.get(i).position;
      dismissDirections[i]=mPendingDismisses.get(i).direction;
    }
    mCallbacks.onAction(mListView,dismissPositions,dismissDirections);
    mDownPosition=ListView.INVALID_POSITION;
    for (    PendingDismissData pendingDismiss : mPendingDismisses) {
      pendingDismiss.view.setAlpha(1f);
      pendingDismiss.view.setTranslationX(0);
      pendingDismiss.view.setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT,AbsListView.LayoutParams.WRAP_CONTENT));
    }
    long time=SystemClock.uptimeMillis();
    MotionEvent cancelEvent=MotionEvent.obtain(time,time,MotionEvent.ACTION_CANCEL,0,0,0);
    mListView.dispatchTouchEvent(cancelEvent);
    mDownViewGroup.showBackground(SwipeDirections.DIRECTION_NEUTRAL,false);
    mPendingDismisses.clear();
  }
}
Program: 165566
Project: 165566
Buggy source:
private AnimatorListenerAdapter createAnimatorListener(final int originalHeight){
  return new AnimatorListenerAdapter(){
    @Override public void onAnimationEnd(    Animator animation){
      --mDismissAnimationRefCount;
      if (mDismissAnimationRefCount == 0) {
        Collections.sort(mPendingDismisses);
        int[] dismissPositions=new int[mPendingDismisses.size()];
        int[] dismissDirections=new int[mPendingDismisses.size()];
        for (int i=mPendingDismisses.size() - 1; i >= 0; i--) {
          dismissPositions[i]=mPendingDismisses.get(i).position;
          dismissDirections[i]=mPendingDismisses.get(i).direction;
        }
        mCallbacks.onAction(mListView,dismissPositions,dismissDirections);
        mDownPosition=ListView.INVALID_POSITION;
        ViewGroup.LayoutParams lp;
        for (        PendingDismissData pendingDismiss : mPendingDismisses) {
          pendingDismiss.view.setAlpha(1f);
          pendingDismiss.view.setTranslationX(0);
          lp=pendingDismiss.view.getLayoutParams();
          lp.height=originalHeight;
          pendingDismiss.view.setLayoutParams(lp);
        }
        long time=SystemClock.uptimeMillis();
        MotionEvent cancelEvent=MotionEvent.obtain(time,time,MotionEvent.ACTION_CANCEL,0,0,0);
        mListView.dispatchTouchEvent(cancelEvent);
        mDownViewGroup.showBackground(SwipeDirections.DIRECTION_NEUTRAL,false);
        mPendingDismisses.clear();
      }
    }
  }
;
}

Fixed version (ground truth):
private AnimatorListenerAdapter createAnimatorListener(){
  return new AnimatorListenerAdapter(){
    @Override public void onAnimationEnd(    Animator animation){
      --mDismissAnimationRefCount;
      if (mDismissAnimationRefCount == 0) {
        Collections.sort(mPendingDismisses);
        int[] dismissPositions=new int[mPendingDismisses.size()];
        int[] dismissDirections=new int[mPendingDismisses.size()];
        for (int i=mPendingDismisses.size() - 1; i >= 0; i--) {
          dismissPositions[i]=mPendingDismisses.get(i).position;
          dismissDirections[i]=mPendingDismisses.get(i).direction;
        }
        mCallbacks.onAction(mListView,dismissPositions,dismissDirections);
        mDownPosition=ListView.INVALID_POSITION;
        for (        PendingDismissData pendingDismiss : mPendingDismisses) {
          pendingDismiss.view.setAlpha(1f);
          pendingDismiss.view.setTranslationX(0);
          pendingDismiss.view.setLayoutParams(new AbsListView.LayoutParams(AbsListView.LayoutParams.MATCH_PARENT,AbsListView.LayoutParams.WRAP_CONTENT));
        }
        long time=SystemClock.uptimeMillis();
        MotionEvent cancelEvent=MotionEvent.obtain(time,time,MotionEvent.ACTION_CANCEL,0,0,0);
        mListView.dispatchTouchEvent(cancelEvent);
        mDownViewGroup.showBackground(SwipeDirections.DIRECTION_NEUTRAL,false);
        mPendingDismisses.clear();
      }
    }
  }
;
}
Program: 165567
Project: 165567
Buggy source:
/** 
 * Submits a Runnable task for execution and returns a Future representing that task.
 * @param task a Runnable task for execution
 * @return a Future representing the task
 */
public static Future<?> submit(Runnable task){
  return THREAD_POOL.submit(task);
}

Fixed version (ground truth):
/** 
 * Submits a Runnable task for execution and returns a Future representing that task.
 * @param task a Runnable task for execution
 * @return a Future representing the task
 */
public static Future<?> submit(Runnable task){
  if (THREAD_POOL.isShutdown() || THREAD_POOL.isTerminated()) {
    THREAD_POOL=Executors.newCachedThreadPool(new CustomThreadFactory(new CustomExceptionHandler()));
  }
  return THREAD_POOL.submit(task);
}
Program: 165568
Project: 165568
Buggy source:
/** 
 * Returns the closest power-of-two number less than or equal to x.
 * @param x input value 
 * @return the closest power-of-two number less then or equal to x
 */
public static long prevPow2(long x){
  if (x < 1) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (long)Math.pow(2,Math.floor(Math.log(x) / Math.log(2)));
}

Fixed version (ground truth):
/** 
 * Returns the closest power-of-two number less than or equal to x.
 * @param x input value
 * @return the closest power-of-two number less then or equal to x
 */
public static long prevPow2(long x){
  if (x < 1) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  return (long)Math.pow(2,Math.floor(Math.log(x) / Math.log(2)));
}
Program: 165569
Project: 165569
Buggy source:
/** 
 * Waits for all threads to complete computation.
 * @param futures array of Future objects 
 */
public static void waitForCompletion(Future<?>[] futures){
  int size=futures.length;
  try {
    for (int j=0; j < size; j++) {
      futures[j].get();
    }
  }
 catch (  ExecutionException ex) {
    ex.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
/** 
 * Waits for all threads to complete computation.
 * @param futures array of Future objects
 */
public static void waitForCompletion(Future<?>[] futures){
  int size=futures.length;
  try {
    for (int j=0; j < size; j++) {
      futures[j].get();
    }
  }
 catch (  ExecutionException ex) {
    ex.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
}
Program: 165570
Project: 165570
Buggy source:
private void initializeFields(){
  energyBar=window.findChild("String_Node_Str");
  energyBar.setMaxValue(tileEntity.getCapacity());
  energyBar.setValue(getCurrentRF());
  ((ImageChoiceLabel)window.findChild("String_Node_Str")).setCurrentChoice(tileEntity.getRSMode().ordinal());
  int r=tileEntity.getRadius();
  if (r < 5) {
    r=5;
  }
 else   if (r > 100) {
    r=100;
  }
  ((ScrollableLabel)window.findChild("String_Node_Str")).setRealValue(r);
  playersList=window.findChild("String_Node_Str");
  minyTextField=window.findChild("String_Node_Str");
  maxyTextField=window.findChild("String_Node_Str");
  nameField=window.findChild("String_Node_Str");
}

Fixed version (ground truth):
private void initializeFields(){
  energyBar=window.findChild("String_Node_Str");
  energyBar.setMaxValue(tileEntity.getCapacity());
  energyBar.setValue(getCurrentRF());
  ((ImageChoiceLabel)window.findChild("String_Node_Str")).setCurrentChoice(tileEntity.getRSMode().ordinal());
  int r=tileEntity.getRadius();
  if (r < 5) {
    r=5;
  }
 else   if (r > 100) {
    r=100;
  }
  ((ScrollableLabel)window.findChild("String_Node_Str")).setRealValue(r);
  playersList=window.findChild("String_Node_Str");
  minyTextField=window.findChild("String_Node_Str");
  maxyTextField=window.findChild("String_Node_Str");
  nameField=window.findChild("String_Node_Str");
  minyTextField.setText(Integer.toString(tileEntity.getMiny()));
  maxyTextField.setText(Integer.toString(tileEntity.getMaxy()));
}
Program: 165571
Project: 165571
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_RSMODE,BuilderTileEntity::getRSModeInt,BuilderTileEntity::setRSModeInt),new DefaultValue<>(VALUE_WAIT,BuilderTileEntity::isWaitMode,BuilderTileEntity::setWaitMode),new DefaultValue<>(VALUE_LOOP,BuilderTileEntity::hasLoopMode,BuilderTileEntity::setLoopMode),new DefaultValue<>(VALUE_HILIGHT,BuilderTileEntity::isHilightMode,BuilderTileEntity::setHilightMode),new DefaultValue<>(VALUE_SUPPORT,BuilderTileEntity::hasSupportMode,BuilderTileEntity::setSupportMode),new DefaultValue<>(VALUE_SILENT,BuilderTileEntity::isSilent,BuilderTileEntity::setSilent),new DefaultValue<>(VALUE_ENTITIES,BuilderTileEntity::hasEntityMode,BuilderTileEntity::setEntityMode)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_RSMODE,BuilderTileEntity::getRSModeInt,BuilderTileEntity::setRSModeInt),new DefaultValue<>(VALUE_WAIT,BuilderTileEntity::isWaitMode,BuilderTileEntity::setWaitMode),new DefaultValue<>(VALUE_LOOP,BuilderTileEntity::hasLoopMode,BuilderTileEntity::setLoopMode),new DefaultValue<>(VALUE_HILIGHT,BuilderTileEntity::isHilightMode,BuilderTileEntity::setHilightMode),new DefaultValue<>(VALUE_SUPPORT,BuilderTileEntity::hasSupportMode,BuilderTileEntity::setSupportMode),new DefaultValue<>(VALUE_SILENT,BuilderTileEntity::isSilent,BuilderTileEntity::setSilent),new DefaultValue<>(VALUE_ENTITIES,BuilderTileEntity::hasEntityMode,BuilderTileEntity::setEntityMode)};
}
Program: 165572
Project: 165572
Buggy source:
@Optional.Method(modid="String_Node_Str") public void addProbeInfoScreen(ProbeMode mode,IProbeInfo probeInfo,EntityPlayer player,World world,BlockPos pos){
  TileEntity te=world.getTileEntity(pos);
  if (te instanceof ScreenTileEntity) {
    ScreenTileEntity screenTileEntity=(ScreenTileEntity)te;
    if (!screenTileEntity.isConnected() && screenTileEntity.isControllerNeeded()) {
      probeInfo.text(TextFormatting.YELLOW + "String_Node_Str");
    }
    if (!isCreative()) {
      boolean power=screenTileEntity.isPowerOn();
      if (!power) {
        probeInfo.text(TextFormatting.YELLOW + "String_Node_Str");
      }
      if (mode == ProbeMode.EXTENDED) {
        int rfPerTick=screenTileEntity.getTotalRfPerTick();
        probeInfo.text(TextFormatting.GREEN + (power ? "String_Node_Str" : "String_Node_Str") + rfPerTick+ "String_Node_Str");
      }
    }
    IScreenModule module=screenTileEntity.getHoveringModule();
    if (module instanceof ITooltipInfo) {
      List<String> info=((ITooltipInfo)module).getInfo(world,screenTileEntity.getHoveringX(),screenTileEntity.getHoveringY());
      for (      String s : info) {
        probeInfo.text(s);
      }
    }
  }
}

Fixed version (ground truth):
@Optional.Method(modid="String_Node_Str") public void addProbeInfoScreen(ProbeMode mode,IProbeInfo probeInfo,EntityPlayer player,World world,BlockPos pos){
  TileEntity te=world.getTileEntity(pos);
  if (te instanceof ScreenTileEntity) {
    ScreenTileEntity screenTileEntity=(ScreenTileEntity)te;
    if (!screenTileEntity.isConnected() && screenTileEntity.isControllerNeeded()) {
      probeInfo.text(TextFormatting.YELLOW + "String_Node_Str");
    }
    if (!isCreative()) {
      boolean power=screenTileEntity.isPowerOn();
      if (!power) {
        probeInfo.text(TextFormatting.YELLOW + "String_Node_Str");
      }
      if (mode == ProbeMode.EXTENDED) {
        int rfPerTick=screenTileEntity.getTotalRfPerTick();
        probeInfo.text(TextFormatting.GREEN + (power ? "String_Node_Str" : "String_Node_Str") + rfPerTick+ "String_Node_Str");
      }
    }
    IScreenModule<?> module=screenTileEntity.getHoveringModule();
    if (module instanceof ITooltipInfo) {
      List<String> info=((ITooltipInfo)module).getInfo(world,screenTileEntity.getHoveringX(),screenTileEntity.getHoveringY());
      for (      String s : info) {
        probeInfo.text(s);
      }
    }
  }
}
Program: 165573
Project: 165573
Buggy source:
private void checkStateServer(){
  if (clickedModules.isEmpty()) {
    return;
  }
  List<ActivatedModule> newClickedModules=new ArrayList<>();
  for (  ActivatedModule cm : clickedModules) {
    cm.ticks--;
    if (cm.ticks > 0) {
      newClickedModules.add(cm);
    }
 else {
      List<IScreenModule> modules=getScreenModules();
      if (cm.module < modules.size()) {
        ItemStack itemStack=inventoryHelper.getStackInSlot(cm.module);
        IScreenModule<?> module=modules.get(cm.module);
        module.mouseClick(getWorld(),cm.x,cm.y,false,null);
        if (module instanceof IScreenModuleUpdater) {
          NBTTagCompound newCompound=((IScreenModuleUpdater)module).update(itemStack.getTagCompound(),getWorld(),null);
          if (newCompound != null) {
            itemStack.setTagCompound(newCompound);
            markDirtyClient();
          }
        }
      }
    }
  }
  clickedModules=newClickedModules;
}

Fixed version (ground truth):
private void checkStateServer(){
  if (clickedModules.isEmpty()) {
    return;
  }
  List<ActivatedModule> newClickedModules=new ArrayList<>();
  for (  ActivatedModule cm : clickedModules) {
    cm.ticks--;
    if (cm.ticks > 0) {
      newClickedModules.add(cm);
    }
 else {
      List<IScreenModule<?>> modules=getScreenModules();
      if (cm.module < modules.size()) {
        ItemStack itemStack=inventoryHelper.getStackInSlot(cm.module);
        IScreenModule<?> module=modules.get(cm.module);
        module.mouseClick(getWorld(),cm.x,cm.y,false,null);
        if (module instanceof IScreenModuleUpdater) {
          NBTTagCompound newCompound=((IScreenModuleUpdater)module).update(itemStack.getTagCompound(),getWorld(),null);
          if (newCompound != null) {
            itemStack.setTagCompound(newCompound);
            markDirtyClient();
          }
        }
      }
    }
  }
  clickedModules=newClickedModules;
}
Program: 165575
Project: 165575
Buggy source:
private void hitScreenServer(EntityPlayer player,int x,int y,int module){
  List<IScreenModule> screenModules=getScreenModules();
  IScreenModule<?> screenModule=screenModules.get(module);
  if (screenModule != null) {
    ItemStack itemStack=inventoryHelper.getStackInSlot(module);
    screenModule.mouseClick(getWorld(),x,y,true,player);
    if (screenModule instanceof IScreenModuleUpdater) {
      NBTTagCompound newCompound=((IScreenModuleUpdater)screenModule).update(itemStack.getTagCompound(),getWorld(),player);
      if (newCompound != null) {
        itemStack.setTagCompound(newCompound);
        markDirtyClient();
      }
    }
    clickedModules.add(new ActivatedModule(module,5,x,y));
  }
}

Fixed version (ground truth):
private void hitScreenServer(EntityPlayer player,int x,int y,int module){
  List<IScreenModule<?>> screenModules=getScreenModules();
  IScreenModule<?> screenModule=screenModules.get(module);
  if (screenModule != null) {
    ItemStack itemStack=inventoryHelper.getStackInSlot(module);
    screenModule.mouseClick(getWorld(),x,y,true,player);
    if (screenModule instanceof IScreenModuleUpdater) {
      NBTTagCompound newCompound=((IScreenModuleUpdater)screenModule).update(itemStack.getTagCompound(),getWorld(),player);
      if (newCompound != null) {
        itemStack.setTagCompound(newCompound);
        markDirtyClient();
      }
    }
    clickedModules.add(new ActivatedModule(module,5,x,y));
  }
}
Program: 165576
Project: 165576
Buggy source:
public Map<Integer,IModuleData> getScreenData(long millis){
  Map<Integer,IModuleData> map=new HashMap<>();
  List<IScreenModule> screenModules=getScreenModules();
  int moduleIndex=0;
  for (  IScreenModule<?> module : screenModules) {
    if (module != null) {
      IModuleData data=module.getData(screenDataHelper,getWorld(),millis);
      if (data != null) {
        map.put(moduleIndex,data);
      }
    }
    moduleIndex++;
  }
  return map;
}

Fixed version (ground truth):
public Map<Integer,IModuleData> getScreenData(long millis){
  Map<Integer,IModuleData> map=new HashMap<>();
  List<IScreenModule<?>> screenModules=getScreenModules();
  int moduleIndex=0;
  for (  IScreenModule<?> module : screenModules) {
    if (module != null) {
      IModuleData data=module.getData(screenDataHelper,getWorld(),millis);
      if (data != null) {
        map.put(moduleIndex,data);
      }
    }
    moduleIndex++;
  }
  return map;
}
Program: 165577
Project: 165577
Buggy source:
@Override public IAction[] getActions(){
  return new IAction[]{new DefaultAction<>(ACTION_CLEARGRID,StorageScannerTileEntity::clearGrid)};
}

Fixed version (ground truth):
@Override public IAction<?>[] getActions(){
  return new IAction[]{new DefaultAction<>(ACTION_CLEARGRID,StorageScannerTileEntity::clearGrid)};
}
Program: 165578
Project: 165578
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_DESTINATION,EndergenicTileEntity::getDestination,EndergenicTileEntity::setDestination)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_DESTINATION,EndergenicTileEntity::getDestination,EndergenicTileEntity::setDestination)};
}
Program: 165579
Project: 165579
Buggy source:
@Override public void select(Widget parent,int index){
  setSelectedBlock(index);
}

Fixed version (ground truth):
@Override public void select(Widget<?> parent,int index){
  setSelectedBlock(index);
}
Program: 165581
Project: 165581
Buggy source:
@Override public void select(Widget parent,int index){
  setSelectedBlock(index);
}

Fixed version (ground truth):
@Override public void select(Widget<?> parent,int index){
  setSelectedBlock(index);
}
Program: 165583
Project: 165583
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_BRIGHT,ScreenTileEntity::isBright,ScreenTileEntity::setBright)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_BRIGHT,ScreenTileEntity::isBright,ScreenTileEntity::setBright)};
}
Program: 165584
Project: 165584
Buggy source:
@Override public void select(Widget widget){
  ItemStack holding=Minecraft.getMinecraft().player.inventory.getItemStack();
  if (holding.isEmpty()) {
    currentData.removeTag(tagname);
    blockRender.setRenderItem(null);
  }
 else {
    ItemStack copy=holding.copy();
    copy.setCount(1);
    blockRender.setRenderItem(copy);
    NBTTagCompound tc=new NBTTagCompound();
    copy.writeToNBT(tc);
    currentData.setTag(tagname,tc);
  }
  moduleGuiChanged.updateData();
}

Fixed version (ground truth):
@Override public void select(Widget<?> widget){
  ItemStack holding=Minecraft.getMinecraft().player.inventory.getItemStack();
  if (holding.isEmpty()) {
    currentData.removeTag(tagname);
    blockRender.setRenderItem(null);
  }
 else {
    ItemStack copy=holding.copy();
    copy.setCount(1);
    blockRender.setRenderItem(copy);
    NBTTagCompound tc=new NBTTagCompound();
    copy.writeToNBT(tc);
    currentData.setTag(tagname,tc);
  }
  moduleGuiChanged.updateData();
}
Program: 165585
Project: 165585
Buggy source:
@Override public void doubleClick(Widget widget){
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> widget){
}
Program: 165586
Project: 165586
Buggy source:
@Override public IModuleGuiBuilder ghostStack(String tagname){
  ItemStack stack=ItemStack.EMPTY;
  if (currentData.hasKey(tagname)) {
    stack=new ItemStack(currentData.getCompoundTag(tagname));
  }
  BlockRender blockRender=new BlockRender(mc,gui).setRenderItem(stack).setDesiredWidth(18).setDesiredHeight(18).setFilledRectThickness(1).setFilledBackground(0xff555555);
  row.add(blockRender);
  blockRender.addSelectionEvent(new BlockRenderEvent(){
    @Override public void select(    Widget widget){
      ItemStack holding=Minecraft.getMinecraft().player.inventory.getItemStack();
      if (holding.isEmpty()) {
        currentData.removeTag(tagname);
        blockRender.setRenderItem(null);
      }
 else {
        ItemStack copy=holding.copy();
        copy.setCount(1);
        blockRender.setRenderItem(copy);
        NBTTagCompound tc=new NBTTagCompound();
        copy.writeToNBT(tc);
        currentData.setTag(tagname,tc);
      }
      moduleGuiChanged.updateData();
    }
    @Override public void doubleClick(    Widget widget){
    }
  }
);
  return this;
}

Fixed version (ground truth):
@Override public IModuleGuiBuilder ghostStack(String tagname){
  ItemStack stack=ItemStack.EMPTY;
  if (currentData.hasKey(tagname)) {
    stack=new ItemStack(currentData.getCompoundTag(tagname));
  }
  BlockRender blockRender=new BlockRender(mc,gui).setRenderItem(stack).setDesiredWidth(18).setDesiredHeight(18).setFilledRectThickness(1).setFilledBackground(0xff555555);
  row.add(blockRender);
  blockRender.addSelectionEvent(new BlockRenderEvent(){
    @Override public void select(    Widget<?> widget){
      ItemStack holding=Minecraft.getMinecraft().player.inventory.getItemStack();
      if (holding.isEmpty()) {
        currentData.removeTag(tagname);
        blockRender.setRenderItem(null);
      }
 else {
        ItemStack copy=holding.copy();
        copy.setCount(1);
        blockRender.setRenderItem(copy);
        NBTTagCompound tc=new NBTTagCompound();
        copy.writeToNBT(tc);
        currentData.setTag(tagname,tc);
      }
      moduleGuiChanged.updateData();
    }
    @Override public void doubleClick(    Widget<?> widget){
    }
  }
);
  return this;
}
Program: 165588
Project: 165588
Buggy source:
@Override public void select(Widget parent,int index){
  selectFilter();
}

Fixed version (ground truth):
@Override public void select(Widget<?> parent,int index){
  selectFilter();
}
Program: 165590
Project: 165590
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_RSMODE,ShieldTEBase::getRSModeInt,ShieldTEBase::setRSModeInt),new DefaultValue<>(VALUE_SHIELDVISMODE,te -> ((ShieldTEBase)te).getShieldRenderingMode().ordinal(),(te,value) -> ((ShieldTEBase)te).setShieldRenderingMode(ShieldRenderingMode.values()[value])),new DefaultValue<>(VALUE_DAMAGEMODE,te -> ((ShieldTEBase)te).getDamageMode().ordinal(),(te,value) -> ((ShieldTEBase)te).setDamageMode(DamageTypeMode.values()[value])),new DefaultValue<>(VALUE_COLOR,ShieldTEBase::getShieldColor,ShieldTEBase::setShieldColor),new DefaultValue<>(VALUE_LIGHT,ShieldTEBase::isBlockLight,ShieldTEBase::setBlockLight)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_RSMODE,ShieldTEBase::getRSModeInt,ShieldTEBase::setRSModeInt),new DefaultValue<>(VALUE_SHIELDVISMODE,te -> ((ShieldTEBase)te).getShieldRenderingMode().ordinal(),(te,value) -> ((ShieldTEBase)te).setShieldRenderingMode(ShieldRenderingMode.values()[value])),new DefaultValue<>(VALUE_DAMAGEMODE,te -> ((ShieldTEBase)te).getDamageMode().ordinal(),(te,value) -> ((ShieldTEBase)te).setDamageMode(DamageTypeMode.values()[value])),new DefaultValue<>(VALUE_COLOR,ShieldTEBase::getShieldColor,ShieldTEBase::setShieldColor),new DefaultValue<>(VALUE_LIGHT,ShieldTEBase::isBlockLight,ShieldTEBase::setBlockLight)};
}
Program: 165591
Project: 165591
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_DESTINATION,MatterBeamerTileEntity::getDestination,MatterBeamerTileEntity::setDestination)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_DESTINATION,MatterBeamerTileEntity::getDestination,MatterBeamerTileEntity::setDestination)};
}
Program: 165592
Project: 165592
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_AMOUNT,LevelEmitterTileEntity::getAmount,LevelEmitterTileEntity::setAmount),new DefaultValue<>(VALUE_OREDICT,LevelEmitterTileEntity::isOreDict,LevelEmitterTileEntity::setOreDict),new DefaultValue<>(VALUE_STARRED,LevelEmitterTileEntity::isStarred,LevelEmitterTileEntity::setStarred)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_AMOUNT,LevelEmitterTileEntity::getAmount,LevelEmitterTileEntity::setAmount),new DefaultValue<>(VALUE_OREDICT,LevelEmitterTileEntity::isOreDict,LevelEmitterTileEntity::setOreDict),new DefaultValue<>(VALUE_STARRED,LevelEmitterTileEntity::isStarred,LevelEmitterTileEntity::setStarred)};
}
Program: 165593
Project: 165593
Buggy source:
@Override public void select(Widget widget){
  BlockRender br=(BlockRender)widget;
  Object item=br.getRenderItem();
  if (item != null) {
    boolean shift=Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
    requestItem((ItemStack)item,shift ? 1 : -1);
  }
}

Fixed version (ground truth):
@Override public void select(Widget<?> widget){
  BlockRender br=(BlockRender)widget;
  Object item=br.getRenderItem();
  if (item != null) {
    boolean shift=Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
    requestItem((ItemStack)item,shift ? 1 : -1);
  }
}
Program: 165594
Project: 165594
Buggy source:
private Panel makeStoragePanel(Panel energyPanel){
  storageList=new WidgetList(mc,this).setName("String_Node_Str").addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget parent,    int index){
      getInventoryOnServer();
    }
    @Override public void doubleClick(    Widget parent,    int index){
      hilightSelectedContainer(index);
    }
  }
).setPropagateEventsToChildren(true);
  Slider storageListSlider=new Slider(mc,this).setDesiredWidth(10).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(1)).setLayoutHint(new PositionalLayout.PositionalHint(3,4,getStoragePanelWidth(),86 + 54)).setDesiredHeight(86 + 54).addChild(energyPanel).addChild(storageList).addChild(storageListSlider);
}

Fixed version (ground truth):
private Panel makeStoragePanel(Panel energyPanel){
  storageList=new WidgetList(mc,this).setName("String_Node_Str").addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget<?> parent,    int index){
      getInventoryOnServer();
    }
    @Override public void doubleClick(    Widget<?> parent,    int index){
      hilightSelectedContainer(index);
    }
  }
).setPropagateEventsToChildren(true);
  Slider storageListSlider=new Slider(mc,this).setDesiredWidth(10).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(1)).setLayoutHint(new PositionalLayout.PositionalHint(3,4,getStoragePanelWidth(),86 + 54)).setDesiredHeight(86 + 54).addChild(energyPanel).addChild(storageList).addChild(storageListSlider);
}
Program: 165595
Project: 165595
Buggy source:
private Pair<Panel,Integer> addItemToList(ItemStack item,WidgetList itemList,Pair<Panel,Integer> currentPos,int numcolumns,int spacing){
  Panel panel=currentPos.getKey();
  if (panel == null || currentPos.getValue() >= numcolumns) {
    panel=new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(spacing).setHorizontalMargin(1)).setDesiredHeight(12).setUserObject(new Integer(-1)).setDesiredHeight(16);
    currentPos=MutablePair.of(panel,0);
    itemList.addChild(panel);
  }
  BlockRender blockRender=new BlockRender(mc,this).setRenderItem(item).setUserObject(1).setOffsetX(-1).setOffsetY(-1).setHilightOnHover(true);
  blockRender.addSelectionEvent(new BlockRenderEvent(){
    @Override public void select(    Widget widget){
      BlockRender br=(BlockRender)widget;
      Object item=br.getRenderItem();
      if (item != null) {
        boolean shift=Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
        requestItem((ItemStack)item,shift ? 1 : -1);
      }
    }
    @Override public void doubleClick(    Widget widget){
    }
  }
);
  panel.addChild(blockRender);
  currentPos.setValue(currentPos.getValue() + 1);
  return currentPos;
}

Fixed version (ground truth):
private Pair<Panel,Integer> addItemToList(ItemStack item,WidgetList itemList,Pair<Panel,Integer> currentPos,int numcolumns,int spacing){
  Panel panel=currentPos.getKey();
  if (panel == null || currentPos.getValue() >= numcolumns) {
    panel=new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(spacing).setHorizontalMargin(1)).setDesiredHeight(12).setUserObject(new Integer(-1)).setDesiredHeight(16);
    currentPos=MutablePair.of(panel,0);
    itemList.addChild(panel);
  }
  BlockRender blockRender=new BlockRender(mc,this).setRenderItem(item).setUserObject(1).setOffsetX(-1).setOffsetY(-1).setHilightOnHover(true);
  blockRender.addSelectionEvent(new BlockRenderEvent(){
    @Override public void select(    Widget<?> widget){
      BlockRender br=(BlockRender)widget;
      Object item=br.getRenderItem();
      if (item != null) {
        boolean shift=Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
        requestItem((ItemStack)item,shift ? 1 : -1);
      }
    }
    @Override public void doubleClick(    Widget<?> widget){
    }
  }
);
  panel.addChild(blockRender);
  currentPos.setValue(currentPos.getValue() + 1);
  return currentPos;
}
Program: 165596
Project: 165596
Buggy source:
@Override public void doubleClick(Widget widget){
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> widget){
}
Program: 165597
Project: 165597
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_EXPORT,StorageScannerTileEntity::isExportToCurrent,StorageScannerTileEntity::setExportToCurrent),new DefaultValue<>(VALUE_RADIUS,StorageScannerTileEntity::getRadius,StorageScannerTileEntity::setRadius)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_EXPORT,StorageScannerTileEntity::isExportToCurrent,StorageScannerTileEntity::setExportToCurrent),new DefaultValue<>(VALUE_RADIUS,StorageScannerTileEntity::getRadius,StorageScannerTileEntity::setRadius)};
}
Program: 165598
Project: 165598
Buggy source:
@Override public void select(Widget parent,int index){
  clearSelectedStatus();
  selectReceiverFromTransmitter();
}

Fixed version (ground truth):
@Override public void select(Widget<?> parent,int index){
  clearSelectedStatus();
  selectReceiverFromTransmitter();
}
Program: 165599
Project: 165599
Buggy source:
private Panel setupTransmitterPanel(){
  transmitterList=new WidgetList(mc,this).setName("String_Node_Str").setRowheight(18).setDesiredHeight(58).addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget parent,    int index){
      clearSelectedStatus();
      selectReceiverFromTransmitter();
    }
    @Override public void doubleClick(    Widget parent,    int index){
      hilightSelectedTransmitter(index);
    }
  }
);
  Slider transmitterSlider=new Slider(mc,this).setDesiredWidth(11).setDesiredHeight(58).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChildren(transmitterList,transmitterSlider).setDesiredHeight(64).setFilledBackground(0xff9e9e9e);
}

Fixed version (ground truth):
private Panel setupTransmitterPanel(){
  transmitterList=new WidgetList(mc,this).setName("String_Node_Str").setRowheight(18).setDesiredHeight(58).addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget<?> parent,    int index){
      clearSelectedStatus();
      selectReceiverFromTransmitter();
    }
    @Override public void doubleClick(    Widget<?> parent,    int index){
      hilightSelectedTransmitter(index);
    }
  }
);
  Slider transmitterSlider=new Slider(mc,this).setDesiredWidth(11).setDesiredHeight(58).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChildren(transmitterList,transmitterSlider).setDesiredHeight(64).setFilledBackground(0xff9e9e9e);
}
Program: 165600
Project: 165600
Buggy source:
private Panel setupReceiverPanel(){
  receiverList=new WidgetList(mc,this).setName("String_Node_Str").setRowheight(14).setDesiredHeight(100).setPropagateEventsToChildren(true).addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget parent,    int index){
      clearSelectedStatus();
    }
    @Override public void doubleClick(    Widget parent,    int index){
      hilightSelectedReceiver(index);
    }
  }
);
  Slider receiverSlider=new Slider(mc,this).setDesiredWidth(11).setDesiredHeight(100).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChildren(receiverList,receiverSlider).setDesiredHeight(106).setFilledBackground(0xff9e9e9e);
}

Fixed version (ground truth):
private Panel setupReceiverPanel(){
  receiverList=new WidgetList(mc,this).setName("String_Node_Str").setRowheight(14).setDesiredHeight(100).setPropagateEventsToChildren(true).addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void select(    Widget<?> parent,    int index){
      clearSelectedStatus();
    }
    @Override public void doubleClick(    Widget<?> parent,    int index){
      hilightSelectedReceiver(index);
    }
  }
);
  Slider receiverSlider=new Slider(mc,this).setDesiredWidth(11).setDesiredHeight(100).setVertical().setScrollableName("String_Node_Str");
  return new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChildren(receiverList,receiverSlider).setDesiredHeight(106).setFilledBackground(0xff9e9e9e);
}
Program: 165601
Project: 165601
Buggy source:
@Override public void doubleClick(Widget parent,int index){
  hilightSelectedTransmitter(index);
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> parent,int index){
  hilightSelectedTransmitter(index);
}
Program: 165602
Project: 165602
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_NAME,MatterReceiverTileEntity::getName,MatterReceiverTileEntity::setName),new DefaultValue<>(VALUE_PRIVATE,MatterReceiverTileEntity::isPrivateAccess,MatterReceiverTileEntity::setPrivateAccess)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_NAME,MatterReceiverTileEntity::getName,MatterReceiverTileEntity::setName),new DefaultValue<>(VALUE_PRIVATE,MatterReceiverTileEntity::isPrivateAccess,MatterReceiverTileEntity::setPrivateAccess)};
}
Program: 165603
Project: 165603
Buggy source:
@Override public IValue[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_NAME,MatterTransmitterTileEntity::getName,MatterTransmitterTileEntity::setName),new DefaultValue<>(VALUE_PRIVATE,MatterTransmitterTileEntity::isPrivateAccess,MatterTransmitterTileEntity::setPrivateAccess),new DefaultValue<>(VALUE_BEAM,MatterTransmitterTileEntity::isBeamHidden,MatterTransmitterTileEntity::setBeamHidden)};
}

Fixed version (ground truth):
@Override public IValue<?,?>[] getValues(){
  return new IValue[]{new DefaultValue<>(VALUE_NAME,MatterTransmitterTileEntity::getName,MatterTransmitterTileEntity::setName),new DefaultValue<>(VALUE_PRIVATE,MatterTransmitterTileEntity::isPrivateAccess,MatterTransmitterTileEntity::setPrivateAccess),new DefaultValue<>(VALUE_BEAM,MatterTransmitterTileEntity::isBeamHidden,MatterTransmitterTileEntity::setBeamHidden)};
}
Program: 165604
Project: 165604
Buggy source:
@Override public void select(Widget parent,int index){
}

Fixed version (ground truth):
@Override public void select(Widget<?> parent,int index){
}
Program: 165606
Project: 165606
Buggy source:
@Override public void doubleClick(Widget parent,int index){
  selectRecipe();
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> parent,int index){
  selectRecipe();
}
Program: 165607
Project: 165607
Buggy source:
@Override public void doubleClick(Widget parent,int index){
  hilightBlock(index);
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> parent,int index){
  hilightBlock(index);
}
Program: 165608
Project: 165608
Buggy source:
@Override public void initGui(){
  super.initGui();
  list=new WidgetList(mc,this).setName("String_Node_Str").addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void doubleClick(    Widget parent,    int index){
      hilightBlock(index);
    }
  }
);
  listDirty=0;
  Slider listSlider=new Slider(mc,this).setDesiredWidth(11).setVertical().setScrollableName("String_Node_Str");
  Panel listPanel=new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChild(list).addChild(listSlider);
  showRfPerTick=new ToggleButton(mc,this).setCheckMarker(true).setText("String_Node_Str").setDesiredWidth(80).addButtonEvent(parent -> previousRfMillis=0).setDesiredHeight(14);
  filterTextField=new TextField(mc,this).setDesiredHeight(14).addTextEvent((parent,newText) -> {
    filter=filterTextField.getText();
    if (filter.trim().isEmpty()) {
      filter=null;
    }
    connectedBlocks=null;
  }
);
  Panel buttonPanel=new Panel(mc,this).setLayout(new HorizontalLayout()).addChild(showRfPerTick).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(filterTextField).setDesiredHeight(17);
  Panel toplevel=new Panel(mc,this).setFilledRectThickness(2).setLayout(new VerticalLayout().setVerticalMargin(3)).addChild(listPanel).addChild(buttonPanel);
  toplevel.setBounds(new Rectangle(guiLeft,guiTop,xSize,ySize));
  window=new Window(this,toplevel);
  serverConnectedBlocks=null;
}

Fixed version (ground truth):
@Override public void initGui(){
  super.initGui();
  list=new WidgetList(mc,this).setName("String_Node_Str").addSelectionEvent(new DefaultSelectionEvent(){
    @Override public void doubleClick(    Widget<?> parent,    int index){
      hilightBlock(index);
    }
  }
);
  listDirty=0;
  Slider listSlider=new Slider(mc,this).setDesiredWidth(11).setVertical().setScrollableName("String_Node_Str");
  Panel listPanel=new Panel(mc,this).setLayout(new HorizontalLayout().setSpacing(1).setHorizontalMargin(3)).addChild(list).addChild(listSlider);
  showRfPerTick=new ToggleButton(mc,this).setCheckMarker(true).setText("String_Node_Str").setDesiredWidth(80).addButtonEvent(parent -> previousRfMillis=0).setDesiredHeight(14);
  filterTextField=new TextField(mc,this).setDesiredHeight(14).addTextEvent((parent,newText) -> {
    filter=filterTextField.getText();
    if (filter.trim().isEmpty()) {
      filter=null;
    }
    connectedBlocks=null;
  }
);
  Panel buttonPanel=new Panel(mc,this).setLayout(new HorizontalLayout()).addChild(showRfPerTick).addChild(new Label(mc,this).setText("String_Node_Str")).addChild(filterTextField).setDesiredHeight(17);
  Panel toplevel=new Panel(mc,this).setFilledRectThickness(2).setLayout(new VerticalLayout().setVerticalMargin(3)).addChild(listPanel).addChild(buttonPanel);
  toplevel.setBounds(new Rectangle(guiLeft,guiTop,xSize,ySize));
  window=new Window(this,toplevel);
  serverConnectedBlocks=null;
}
Program: 165609
Project: 165609
Buggy source:
@Override public void doubleClick(Widget parent,int index){
  teleport(index);
}

Fixed version (ground truth):
@Override public void doubleClick(Widget<?> parent,int index){
  teleport(index);
}