nus-yam/ex-repair huggingface dataset:
Program: 87096
Project: 87096
Buggy source:
/** 
 * Only fill a maximum of one slot
 * @return The remainder
 */
public static ItemStack insertStackIntoInventoryOnce(ItemStack itemStack,IInventory inventory){
  int originalStackSize=itemStack.stackSize;
  for (int l=0; l < inventory.getSizeInventory(); ++l) {
    try {
      itemStack=(ItemStack)hopperInsertIntoInventory.invoke(null,inventory,itemStack,l,ForgeDirection.UNKNOWN.ordinal());
    }
 catch (    RuntimeException e) {
      throw e;
    }
catch (    Exception e) {
      e.printStackTrace();
    }
    if (itemStack == null || itemStack.stackSize != originalStackSize)     break;
  }
  if (itemStack != null && itemStack.stackSize == 0) {
    itemStack=null;
  }
  return itemStack;
}

Fixed version (ground truth):
/** 
 * Only fill a maximum of one slot
 * @return The remainder
 */
public static ItemStack insertStackIntoInventoryOnce(ItemStack itemStack,IInventory inventory,ForgeDirection direction){
  int originalStackSize=itemStack.stackSize;
  for (int l=0; l < inventory.getSizeInventory(); ++l) {
    try {
      itemStack=(ItemStack)hopperInsertIntoInventory.invoke(null,inventory,itemStack,l,direction.ordinal());
    }
 catch (    RuntimeException e) {
      throw e;
    }
catch (    Exception e) {
      e.printStackTrace();
    }
    if (itemStack == null || itemStack.stackSize != originalStackSize)     break;
  }
  if (itemStack != null && itemStack.stackSize == 0) {
    itemStack=null;
  }
  return itemStack;
}
Program: 87097
Project: 87097
Buggy source:
public static void setRoundingMode(){
  for (  RoundingMode roundingMode : RoundingMode.values()) {
    if (roundingMode.id.equals(FOOD_HUNGER_ROUNDING_MODE_STRING.toLowerCase())) {
      FOOD_HUNGER_ROUNDING_MODE=roundingMode;
      break;
    }
  }
  if (FOOD_HUNGER_ROUNDING_MODE == null) {
    ModSpiceOfLife.Log.warn("String_Node_Str" + FOOD_HUNGER_ROUNDING_MODE_STRING + "String_Node_Str");
    FOOD_HUNGER_ROUNDING_MODE_STRING="String_Node_Str";
    FOOD_HUNGER_ROUNDING_MODE=RoundingMode.ROUND;
  }
}

Fixed version (ground truth):
public static void setRoundingMode(){
  for (  RoundingMode roundingMode : RoundingMode.values()) {
    if (roundingMode.id.equals(FOOD_HUNGER_ROUNDING_MODE_STRING.toLowerCase(Locale.ROOT))) {
      FOOD_HUNGER_ROUNDING_MODE=roundingMode;
      break;
    }
  }
  if (FOOD_HUNGER_ROUNDING_MODE == null) {
    ModSpiceOfLife.Log.warn("String_Node_Str" + FOOD_HUNGER_ROUNDING_MODE_STRING + "String_Node_Str");
    FOOD_HUNGER_ROUNDING_MODE_STRING="String_Node_Str";
    FOOD_HUNGER_ROUNDING_MODE=RoundingMode.ROUND;
  }
}
Program: 87098
Project: 87098
Buggy source:
@Override public boolean equals(Object obj){
  return buf.equals(obj);
}

Fixed version (ground truth):
@Override public boolean equals(Object obj){
  if (super.equals(obj))   return true;
 else   if (obj instanceof ByteIONetty)   return buf.equals(((ByteIONetty)obj).buf);
 else   return false;
}
Program: 87099
Project: 87099
Buggy source:
public static FoodQueue getNewFoodQueue(){
  if (ModConfig.USE_HUNGER_QUEUE)   return new FixedHungerQueue(ModConfig.FOOD_HISTORY_LENGTH);
 else   if (ModConfig.USE_TIME_QUEUE)   return new FixedTimeQueue(ModConfig.FOOD_HISTORY_LENGTH * MiscHelper.TICKS_PER_DAY);
 else   return new FixedSizeQueue(ModConfig.FOOD_HISTORY_LENGTH);
}

Fixed version (ground truth):
public static FoodQueue getNewFoodQueue(){
  if (ModConfig.USE_HUNGER_QUEUE)   return new FixedHungerQueue(ModConfig.FOOD_HISTORY_LENGTH);
 else   if (ModConfig.USE_TIME_QUEUE)   return new FixedTimeQueue((long)ModConfig.FOOD_HISTORY_LENGTH * MiscHelper.TICKS_PER_DAY);
 else   return new FixedSizeQueue(ModConfig.FOOD_HISTORY_LENGTH);
}
Program: 87100
Project: 87100
Buggy source:
public void addItemFromString(String itemString,boolean isBaseItem){
  String[] itemStringParts=itemString.split("String_Node_Str");
  if (itemStringParts.length > 1) {
    Item item=GameRegistry.findItem(itemStringParts[0],itemStringParts[1]);
    if (item != null) {
      boolean exactMetadata=itemStringParts.length > 2 && itemStringParts[2] != "String_Node_Str";
      int metadata=itemStringParts.length > 2 && exactMetadata ? Integer.parseInt(itemStringParts[2]) : 0;
      addFood(new ItemStack(item,1,metadata),exactMetadata,isBaseItem);
    }
  }
}

Fixed version (ground truth):
public void addItemFromString(String itemString,boolean isBaseItem){
  String[] itemStringParts=itemString.split("String_Node_Str");
  if (itemStringParts.length > 1) {
    Item item=GameRegistry.findItem(itemStringParts[0],itemStringParts[1]);
    if (item != null) {
      boolean exactMetadata=itemStringParts.length > 2 && !itemStringParts[2].equals("String_Node_Str");
      int metadata=itemStringParts.length > 2 && exactMetadata ? Integer.parseInt(itemStringParts[2]) : 0;
      addFood(new ItemStack(item,1,metadata),exactMetadata,isBaseItem);
    }
  }
}
Program: 87101
Project: 87101
Buggy source:
public static void writeExampleFoodGroup(File configDirectory){
  final String exampleFoodGroupFileName="String_Node_Str";
  final String exampleFoodGroupRelativePath="String_Node_Str" + exampleFoodGroupFileName;
  File exampleFoodGroupDest=new File(configDirectory,exampleFoodGroupFileName);
  try {
    boolean shouldOverwrite=shouldOverwriteExampleFoodGroup(exampleFoodGroupDest);
    if (ModSpiceOfLife.instance.sourceFile.isDirectory()) {
      File sourceFile=new File(ModSpiceOfLife.instance.sourceFile,exampleFoodGroupRelativePath);
      FileHelper.copyFile(sourceFile,exampleFoodGroupDest,shouldOverwrite);
    }
 else {
      InputStream exampleFoodGroupInputStream=FoodGroupConfig.class.getClassLoader().getResourceAsStream(exampleFoodGroupRelativePath);
      FileHelper.copyFile(exampleFoodGroupInputStream,exampleFoodGroupDest,shouldOverwrite);
      exampleFoodGroupInputStream.close();
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void writeExampleFoodGroup(File configDirectory){
  final String exampleFoodGroupFileName="String_Node_Str";
  final String exampleFoodGroupRelativePath="String_Node_Str" + exampleFoodGroupFileName;
  File exampleFoodGroupDest=new File(configDirectory,exampleFoodGroupFileName);
  try {
    boolean shouldOverwrite=shouldOverwriteExampleFoodGroup(exampleFoodGroupDest);
    if (ModSpiceOfLife.instance.sourceFile != null && ModSpiceOfLife.instance.sourceFile.isDirectory()) {
      File sourceFile=new File(ModSpiceOfLife.instance.sourceFile,exampleFoodGroupRelativePath);
      FileHelper.copyFile(sourceFile,exampleFoodGroupDest,shouldOverwrite);
    }
 else {
      InputStream exampleFoodGroupInputStream=FoodGroupConfig.class.getClassLoader().getResourceAsStream(exampleFoodGroupRelativePath);
      FileHelper.copyFile(exampleFoodGroupInputStream,exampleFoodGroupDest,shouldOverwrite);
      exampleFoodGroupInputStream.close();
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}
Program: 87102
Project: 87102
Buggy source:
public static void load(){
  for (  File configFile : configFiles) {
    try {
      FileReader reader=new FileReader(configFile);
      FoodGroup foodGroup=gson.fromJson(reader,FoodGroup.class);
      if (foodGroup != null && foodGroup.enabled) {
        foodGroup.identifier=FilenameUtils.removeExtension(configFile.getName());
        foodGroup.initFromConfig();
        FoodGroupRegistry.addFoodGroup(foodGroup);
      }
      reader.close();
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
public static void load(){
  for (  File configFile : configFiles) {
    InputStreamReader reader=null;
    try {
      reader=new InputStreamReader(new FileInputStream(configFile),"String_Node_Str");
      FoodGroup foodGroup=gson.fromJson(reader,FoodGroup.class);
      if (foodGroup != null && foodGroup.enabled) {
        foodGroup.identifier=FilenameUtils.removeExtension(configFile.getName());
        foodGroup.initFromConfig();
        FoodGroupRegistry.addFoodGroup(foodGroup);
      }
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
 finally {
      MiscHelper.tryCloseStream(reader);
    }
  }
}
Program: 87103
Project: 87103
Buggy source:
public static void setup(File configDirectory){
  File modConfigDirectory=new File(configDirectory,ModInfo.MODID);
  if (!modConfigDirectory.exists()) {
    modConfigDirectory.mkdirs();
  }
  writeExampleFoodGroup(modConfigDirectory);
  configFiles=modConfigDirectory.listFiles();
}

Fixed version (ground truth):
public static void setup(File configDirectory){
  File modConfigDirectory=new File(configDirectory,ModInfo.MODID);
  if (modConfigDirectory.exists() || modConfigDirectory.mkdirs()) {
    writeExampleFoodGroup(modConfigDirectory);
    configFiles=modConfigDirectory.listFiles();
  }
}
Program: 87104
Project: 87104
Buggy source:
public static boolean shouldOverwriteExampleFoodGroup(File exampleFoodGroup) throws IOException {
  FileInputStream exampleFoodGroupStream;
  try {
    exampleFoodGroupStream=new FileInputStream(exampleFoodGroup);
  }
 catch (  FileNotFoundException e) {
    return true;
  }
  BufferedReader exampleFoodGroupReader=new BufferedReader(new InputStreamReader(exampleFoodGroupStream));
  String firstLine=exampleFoodGroupReader.readLine();
  exampleFoodGroupReader.close();
  return firstLine == null || !firstLine.equals("String_Node_Str" + ModInfo.VERSION);
}

Fixed version (ground truth):
public static boolean shouldOverwriteExampleFoodGroup(File exampleFoodGroup) throws IOException {
  FileInputStream exampleFoodGroupStream;
  try {
    exampleFoodGroupStream=new FileInputStream(exampleFoodGroup);
  }
 catch (  FileNotFoundException e) {
    return true;
  }
  BufferedReader exampleFoodGroupReader=null;
  try {
    exampleFoodGroupReader=new BufferedReader(new InputStreamReader(exampleFoodGroupStream,"String_Node_Str"));
    String firstLine=exampleFoodGroupReader.readLine();
    return firstLine == null || !firstLine.equals("String_Node_Str" + ModInfo.VERSION);
  }
 catch (  IOException e) {
    throw e;
  }
 finally {
    MiscHelper.tryCloseStream(exampleFoodGroupReader);
  }
}
Program: 87105
Project: 87105
Buggy source:
public GuiFoodContainer(InventoryPlayer playerInventory,IInventory foodContainerInventory,ItemStack itemStack){
  super(new ContainerFoodContainer(playerInventory,foodContainerInventory,itemStack));
  this.inventory=foodContainerInventory;
  this.playerInventory=playerInventory;
  this.ySize=133;
}

Fixed version (ground truth):
public GuiFoodContainer(InventoryPlayer playerInventory,FoodContainerInventory foodContainerInventory){
  super(new ContainerFoodContainer(playerInventory,foodContainerInventory));
  this.inventory=foodContainerInventory;
  this.playerInventory=playerInventory;
  this.ySize=133;
}
Program: 87106
Project: 87106
Buggy source:
public Object getSidedGuiElement(boolean isClientSide,int guiId,EntityPlayer player,World world,int x,int y,int z){
switch (GuiIds.values()[guiId]) {
case FOOD_CONTAINER:
    ItemStack heldItem=player.getHeldItem();
  if (heldItem != null && heldItem.getItem() instanceof ItemFoodContainer) {
    IInventory foodContainerInventory=((ItemFoodContainer)heldItem.getItem()).getInventory(heldItem);
    return isClientSide ? new GuiFoodContainer(player.inventory,foodContainerInventory,heldItem) : new ContainerFoodContainer(player.inventory,foodContainerInventory,heldItem);
  }
break;
default :
break;
}
return null;
}

Fixed version (ground truth):
public Object getSidedGuiElement(boolean isClientSide,int guiId,EntityPlayer player,World world,int x,int y,int z){
switch (GuiIds.values()[guiId]) {
case FOOD_CONTAINER:
    ItemStack heldItem=player.getHeldItem();
  if (heldItem != null && heldItem.getItem() instanceof ItemFoodContainer) {
    FoodContainerInventory foodContainerInventory=((ItemFoodContainer)heldItem.getItem()).getInventory(heldItem);
    return isClientSide ? new GuiFoodContainer(player.inventory,foodContainerInventory) : new ContainerFoodContainer(player.inventory,foodContainerInventory);
  }
break;
default :
break;
}
return null;
}
Program: 87107
Project: 87107
Buggy source:
@Override public void onContainerClosed(EntityPlayer player){
  if (player.worldObj.isRemote) {
    itemStack=findFoodContainerWithUUID(getUUID());
  }
  if (itemStack != null)   ((ItemFoodContainer)itemStack.getItem()).setIsOpen(itemStack,false);
  super.onContainerClosed(player);
}

Fixed version (ground truth):
@Override public void onContainerClosed(EntityPlayer player){
  if (player.worldObj.isRemote) {
    setFoodContainerItemStack(findFoodContainerWithUUID(getUUID()));
  }
  if (getItemStack() != null)   ((ItemFoodContainer)getItemStack().getItem()).setIsOpen(getItemStack(),false);
  super.onContainerClosed(player);
}
Program: 87108
Project: 87108
Buggy source:
public ItemStack findFoodContainerWithUUID(UUID uuid){
  for (  Object inventorySlotObj : this.inventorySlots) {
    Slot inventorySlot=(Slot)inventorySlotObj;
    ItemStack itemStack=inventorySlot.getStack();
    if (itemStack != null && itemStack.getItem() instanceof ItemFoodContainer) {
      if (((ItemFoodContainer)itemStack.getItem()).getUUID(itemStack).equals(uuid))       return itemStack;
    }
  }
  return null;
}

Fixed version (ground truth):
public ItemStack findFoodContainerWithUUID(UUID uuid){
  for (  Object inventorySlotObj : this.inventorySlots) {
    Slot inventorySlot=(Slot)inventorySlotObj;
    ItemStack itemStack=inventorySlot.getStack();
    if (isFoodContainerWithUUID(itemStack,uuid)) {
      return itemStack;
    }
  }
  return null;
}
Program: 87109
Project: 87109
Buggy source:
public UUID getUUID(){
  return ((ItemFoodContainer)itemStack.getItem()).getUUID(itemStack);
}

Fixed version (ground truth):
public UUID getUUID(){
  return ((ItemFoodContainer)getItemStack().getItem()).getUUID(getItemStack());
}
Program: 87110
Project: 87110
Buggy source:
public ContainerFoodContainer(InventoryPlayer playerInventory,IInventory foodContainerInventory,ItemStack itemStack){
  super(foodContainerInventory);
  this.itemStack=itemStack;
  slotsX=(int)(GuiHelper.STANDARD_GUI_WIDTH / 2f - (inventory.getSizeInventory() * GuiHelper.STANDARD_SLOT_WIDTH / 2f));
  slotsY=19;
  this.addSlotsOfType(SlotFiltered.class,inventory,slotsX,slotsY);
  this.addPlayerInventorySlots(playerInventory,51);
}

Fixed version (ground truth):
public ContainerFoodContainer(InventoryPlayer playerInventory,FoodContainerInventory foodContainerInventory){
  super(foodContainerInventory);
  this.foodContainerInventory=foodContainerInventory;
  slotsX=(int)(GuiHelper.STANDARD_GUI_WIDTH / 2f - (inventory.getSizeInventory() * GuiHelper.STANDARD_SLOT_WIDTH / 2f));
  slotsY=19;
  this.addSlotsOfType(SlotFiltered.class,inventory,slotsX,slotsY);
  this.addPlayerInventorySlots(playerInventory,51);
}
Program: 87111
Project: 87111
Buggy source:
public static boolean isDirectlyEdible(ItemStack itemStack){
  return !(itemStack.getItem() == Item.cake || isFoodContainer(itemStack));
}

Fixed version (ground truth):
public static boolean isDirectlyEdible(ItemStack itemStack){
  return !(itemStack.getItem() == Items.cake || isFoodContainer(itemStack));
}
Program: 87113
Project: 87113
Buggy source:
public void addFoodStatsHook(MethodNode method,Class<?> hookClass,String hookMethod,String hookDesc){
  AbstractInsnNode targetNode=findFirstInstructionOfType(method,ALOAD);
  InsnList toInject=new InsnList();
  LabelNode varStartLabel=new LabelNode();
  LabelNode end=findEndLabel(method);
  LocalVariableNode localVar=new LocalVariableNode("String_Node_Str","String_Node_Str",null,varStartLabel,end,method.maxLocals);
  method.maxLocals+=1;
  method.localVariables.add(localVar);
  toInject.add(new VarInsnNode(ALOAD,0));
  toInject.add(new VarInsnNode(ILOAD,1));
  toInject.add(new VarInsnNode(FLOAD,2));
  toInject.add(new MethodInsnNode(INVOKESTATIC,hookClass.getName().replace('.','/'),hookMethod,hookDesc));
  toInject.add(new VarInsnNode(ASTORE,localVar.index));
  toInject.add(varStartLabel);
  toInject.add(new VarInsnNode(ALOAD,localVar.index));
  toInject.add(new FieldInsnNode(GETFIELD,FoodValues.class.getName().replace('.','/'),"String_Node_Str","String_Node_Str"));
  toInject.add(new VarInsnNode(ISTORE,1));
  toInject.add(new VarInsnNode(ALOAD,localVar.index));
  toInject.add(new FieldInsnNode(GETFIELD,FoodValues.class.getName().replace('.','/'),"String_Node_Str","String_Node_Str"));
  toInject.add(new VarInsnNode(FSTORE,2));
  method.instructions.insertBefore(targetNode,toInject);
  ModSpiceOfLife.Log.info("String_Node_Str" + method.name);
}

Fixed version (ground truth):
public void addFoodStatsHook(MethodNode method,Class<?> hookClass,String hookMethod,String hookDesc){
  AbstractInsnNode targetNode=findFirstInstructionOfType(method,ALOAD);
  InsnList toInject=new InsnList();
  LabelNode varStartLabel=new LabelNode();
  LabelNode end=findEndLabel(method);
  LocalVariableNode localVar=new LocalVariableNode("String_Node_Str","String_Node_Str",null,varStartLabel,end,method.maxLocals);
  method.maxLocals+=1;
  method.localVariables.add(localVar);
  toInject.add(new VarInsnNode(ALOAD,0));
  toInject.add(new VarInsnNode(ILOAD,1));
  toInject.add(new VarInsnNode(FLOAD,2));
  toInject.add(new MethodInsnNode(INVOKESTATIC,hookClass.getName().replace('.','/'),hookMethod,hookDesc));
  toInject.add(new VarInsnNode(ASTORE,localVar.index));
  toInject.add(varStartLabel);
  toInject.add(new VarInsnNode(ALOAD,localVar.index));
  toInject.add(new FieldInsnNode(GETFIELD,FoodValues.class.getName().replace('.','/'),"String_Node_Str","String_Node_Str"));
  toInject.add(new VarInsnNode(ISTORE,1));
  toInject.add(new VarInsnNode(ALOAD,localVar.index));
  toInject.add(new FieldInsnNode(GETFIELD,FoodValues.class.getName().replace('.','/'),"String_Node_Str","String_Node_Str"));
  toInject.add(new VarInsnNode(FSTORE,2));
  method.instructions.insertBefore(targetNode,toInject);
  ModSpiceOfLife.Log.info("String_Node_Str" + hookMethod + "String_Node_Str"+ method.name);
}
Program: 87114
Project: 87114
Buggy source:
public static FoodValues getModifiedFoodValues(ItemFood itemFood){
  try {
    boolean wasRegenHealthEnabled=foodRegensHealth.getBoolean(null);
    foodRegensHealth.setBoolean(null,false);
    dummyFoodStats.setFoodLevel(0);
    dummyFoodStats.setFoodSaturationLevel(0);
    dummyFoodStats.addStats(itemFood);
    int hunger=dummyFoodStats.getFoodLevel();
    dummyFoodStats.setFoodLevel(20);
    dummyFoodStats.setFoodSaturationLevel(0);
    dummyFoodStats.addStats(itemFood);
    float saturationModifier=FoodValues.getSaturationModifierFromIncrement(dummyFoodStats.getSaturationLevel(),hunger);
    foodRegensHealth.setBoolean(null,wasRegenHealthEnabled);
    return new FoodValues(hunger,saturationModifier);
  }
 catch (  Exception e) {
    return new FoodValues(0,0);
  }
}

Fixed version (ground truth):
public static FoodValues getModifiedFoodValues(ItemFood itemFood){
  try {
    dummyFoodStats.setFoodLevel(0);
    dummyFoodStats.setFoodSaturationLevel(0);
    dummyFoodStats.addStats(itemFood);
    int hunger=dummyFoodStats.getFoodLevel();
    dummyFoodStats.setFoodLevel(20);
    dummyFoodStats.setFoodSaturationLevel(0);
    dummyFoodStats.addStats(itemFood);
    float saturationModifier=FoodValues.getSaturationModifierFromIncrement(dummyFoodStats.getSaturationLevel(),hunger);
    return new FoodValues(hunger,saturationModifier);
  }
 catch (  Exception e) {
    return new FoodValues(0,0);
  }
}
Program: 87116
Project: 87116
Buggy source:
public static void unpackLibrary(File output,byte[] data) throws IOException {
  if (output.exists()) {
    output.delete();
  }
  byte[] decompressed=readFully(new XZInputStream(new ByteArrayInputStream(data)));
  String end=new String(decompressed,decompressed.length - 4,4);
  if (!end.equals("String_Node_Str")) {
    System.out.println("String_Node_Str" + end);
    return;
  }
  int x=decompressed.length;
  int len=((decompressed[x - 8] & 0xFF)) | ((decompressed[x - 7] & 0xFF) << 8) | ((decompressed[x - 6] & 0xFF) << 16)| ((decompressed[x - 5] & 0xFF) << 24);
  byte[] checksums=Arrays.copyOfRange(decompressed,decompressed.length - len - 8,decompressed.length - 8);
  FileOutputStream jarBytes=new FileOutputStream(output);
  JarOutputStream jos=new JarOutputStream(jarBytes);
  Pack200.newUnpacker().unpack(new ByteArrayInputStream(decompressed),jos);
  jos.putNextEntry(new JarEntry("String_Node_Str"));
  jos.write(checksums);
  jos.closeEntry();
  jos.close();
  jarBytes.close();
}

Fixed version (ground truth):
public static void unpackLibrary(File output,byte[] data) throws IOException {
  if (output.exists()) {
    output.delete();
  }
  byte[] decompressed=readFully(new XZInputStream(new ByteArrayInputStream(data)));
  String end=new String(decompressed,decompressed.length - 4,4);
  if (!end.equals("String_Node_Str")) {
    System.err.println("String_Node_Str" + end);
    return;
  }
  int x=decompressed.length;
  int len=((decompressed[x - 8] & 0xFF)) | ((decompressed[x - 7] & 0xFF) << 8) | ((decompressed[x - 6] & 0xFF) << 16)| ((decompressed[x - 5] & 0xFF) << 24);
  byte[] checksums=Arrays.copyOfRange(decompressed,decompressed.length - len - 8,decompressed.length - 8);
  FileOutputStream jarBytes=new FileOutputStream(output);
  JarOutputStream jos=new JarOutputStream(jarBytes);
  Pack200.newUnpacker().unpack(new ByteArrayInputStream(decompressed),jos);
  jos.putNextEntry(new JarEntry("String_Node_Str"));
  jos.write(checksums);
  jos.closeEntry();
  jos.close();
  jarBytes.close();
}
Program: 87118
Project: 87118
Buggy source:
public void deleteDeprecated(){
  for (  FileEntry entry : this.fileChecker.outdatedList) {
    File f=new File(modPackDir,entry.getPath());
    if (f.delete()) {
      System.out.println(f.getPath() + "String_Node_Str" + entry.getMd5());
    }
 else {
      frame.dispose();
      JOptionPane.showMessageDialog(null,"String_Node_Str" + f.getPath(),"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
  }
}

Fixed version (ground truth):
public void deleteDeprecated(){
  for (  FileEntry entry : this.fileChecker.outdatedList) {
    File f=new File(modPackDir,entry.getPath());
    if (f.delete()) {
      System.err.println(f.getPath() + "String_Node_Str" + entry.getMd5());
    }
 else {
      frame.dispose();
      JOptionPane.showMessageDialog(null,"String_Node_Str" + f.getPath(),"String_Node_Str",JOptionPane.ERROR_MESSAGE);
    }
  }
}
Program: 87119
Project: 87119
Buggy source:
public CreditFrame(Dimension dim){
  this.setTitle("String_Node_Str");
  this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
  this.setResizable(false);
  JPanel panel=new JPanel();
  panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
  JButton sponsorButton=new JButton("String_Node_Str");
  sponsorButton.setAlignmentX(CENTER_ALIGNMENT);
  sponsorButton.setAlignmentY(CENTER_ALIGNMENT);
  sponsorButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      try {
        Desktop.getDesktop().browse(new URI("String_Node_Str"));
      }
 catch (      Exception ex) {
        JOptionPane.showMessageDialog(CreditFrame.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
);
  JPanel sponsorPanel=new JPanel();
  sponsorPanel.setLayout(new BoxLayout(sponsorPanel,BoxLayout.X_AXIS));
  sponsorPanel.setAlignmentX(CENTER_ALIGNMENT);
  sponsorPanel.setAlignmentY(CENTER_ALIGNMENT);
  sponsorPanel.add(sponsorButton);
  JLabel text=new JLabel();
  text.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  text.setAlignmentX(CENTER_ALIGNMENT);
  text.setAlignmentY(CENTER_ALIGNMENT);
  panel.add(text);
  panel.add(sponsorPanel);
  this.add(panel);
  this.pack();
  int x=(dim.width / 2) - (this.getSize().width / 2);
  int y=(dim.height / 2) - (this.getSize().height / 2);
  this.setLocation(x,y);
}

Fixed version (ground truth):
public CreditFrame(Dimension dim){
  this.setTitle("String_Node_Str");
  this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
  this.setResizable(false);
  JPanel panel=new JPanel();
  panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
  JButton sponsorButton=new JButton("String_Node_Str");
  sponsorButton.setAlignmentX(CENTER_ALIGNMENT);
  sponsorButton.setAlignmentY(CENTER_ALIGNMENT);
  sponsorButton.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      try {
        if (Desktop.isDesktopSupported())         Desktop.getDesktop().browse(new URI("String_Node_Str"));
 else         throw new Exception();
      }
 catch (      Exception ex) {
        JOptionPane.showMessageDialog(CreditFrame.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
      }
    }
  }
);
  JPanel sponsorPanel=new JPanel();
  sponsorPanel.setLayout(new BoxLayout(sponsorPanel,BoxLayout.X_AXIS));
  sponsorPanel.setAlignmentX(CENTER_ALIGNMENT);
  sponsorPanel.setAlignmentY(CENTER_ALIGNMENT);
  sponsorPanel.add(sponsorButton);
  JLabel text=new JLabel();
  text.setText("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  text.setAlignmentX(CENTER_ALIGNMENT);
  text.setAlignmentY(CENTER_ALIGNMENT);
  panel.add(text);
  panel.add(sponsorPanel);
  this.add(panel);
  this.pack();
  int x=(dim.width / 2) - (this.getSize().width / 2);
  int y=(dim.height / 2) - (this.getSize().height / 2);
  this.setLocation(x,y);
}
Program: 87120
Project: 87120
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  try {
    Desktop.getDesktop().browse(new URI("String_Node_Str"));
  }
 catch (  Exception ex) {
    JOptionPane.showMessageDialog(CreditFrame.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  try {
    if (Desktop.isDesktopSupported())     Desktop.getDesktop().browse(new URI("String_Node_Str"));
 else     throw new Exception();
  }
 catch (  Exception ex) {
    JOptionPane.showMessageDialog(CreditFrame.this,"String_Node_Str","String_Node_Str",JOptionPane.ERROR_MESSAGE);
  }
}
Program: 87121
Project: 87121
Buggy source:
public SqlStatementsBuilder insert(String table,JsonArray fields,JsonArray values,String returning){
  if (table != null && !table.trim().isEmpty()) {
    JsonObject statement=new JsonObject().put("String_Node_Str","String_Node_Str").put("String_Node_Str",table).put("String_Node_Str",fields).put("String_Node_Str",values);
    if (returning != null && !returning.trim().isEmpty()) {
      statement.put("String_Node_Str",returning);
    }
    statements.add(statement);
  }
  return this;
}

Fixed version (ground truth):
public SqlStatementsBuilder insert(String table,JsonArray fields,JsonArray values,String returning){
  if (table != null && !table.trim().isEmpty() && values != null && !values.isEmpty()) {
    JsonObject statement=new JsonObject().put("String_Node_Str","String_Node_Str").put("String_Node_Str",table).put("String_Node_Str",fields).put("String_Node_Str",values);
    if (returning != null && !returning.trim().isEmpty()) {
      statement.put("String_Node_Str",returning);
    }
    statements.add(statement);
  }
  return this;
}
Program: 87122
Project: 87122
Buggy source:
@Override public void validate(ImportInfos importInfos,final Handler<Either<JsonObject,JsonObject>> handler){
  try {
    JsonObject action=new JsonObject(mapper.writeValueAsString(importInfos)).putString("String_Node_Str","String_Node_Str");
    eb.send(Directory.FEEDER,action,new Handler<Message<JsonObject>>(){
      @Override public void handle(      Message<JsonObject> res){
        if ("String_Node_Str".equals(res.body().getString("String_Node_Str"))) {
          JsonObject r=res.body().getObject("String_Node_Str",new JsonObject());
          if (r.getObject("String_Node_Str",new JsonObject()).size() > 0) {
            handler.handle(new Either.Left<JsonObject,JsonObject>(r.getObject("String_Node_Str")));
          }
 else {
            handler.handle(new Either.Right<JsonObject,JsonObject>(r.getObject("String_Node_Str").putObject("String_Node_Str",r.getObject("String_Node_Str"))));
          }
        }
 else {
          handler.handle(new Either.Left<JsonObject,JsonObject>(new JsonObject().putArray("String_Node_Str",new JsonArray().addString(res.body().getString("String_Node_Str","String_Node_Str")))));
        }
      }
    }
);
  }
 catch (  JsonProcessingException e) {
    handler.handle(new Either.Left<JsonObject,JsonObject>(new JsonObject().putArray("String_Node_Str",new JsonArray().addString("String_Node_Str"))));
    log.error(e.getMessage(),e);
  }
}

Fixed version (ground truth):
@Override public void validate(ImportInfos importInfos,final Handler<Either<JsonObject,JsonObject>> handler){
  try {
    JsonObject action=new JsonObject(mapper.writeValueAsString(importInfos)).putString("String_Node_Str","String_Node_Str");
    eb.send(Directory.FEEDER,action,new Handler<Message<JsonObject>>(){
      @Override public void handle(      Message<JsonObject> res){
        if ("String_Node_Str".equals(res.body().getString("String_Node_Str"))) {
          JsonObject r=res.body().getObject("String_Node_Str",new JsonObject());
          if (r.getObject("String_Node_Str",new JsonObject()).size() > 0) {
            handler.handle(new Either.Left<JsonObject,JsonObject>(r.getObject("String_Node_Str")));
          }
 else {
            JsonObject f=r.getObject("String_Node_Str");
            if (r.getObject("String_Node_Str") != null) {
              f.putObject("String_Node_Str",r.getObject("String_Node_Str"));
            }
            handler.handle(new Either.Right<JsonObject,JsonObject>(f));
          }
        }
 else {
          handler.handle(new Either.Left<JsonObject,JsonObject>(new JsonObject().putArray("String_Node_Str",new JsonArray().addString(res.body().getString("String_Node_Str","String_Node_Str")))));
        }
      }
    }
);
  }
 catch (  JsonProcessingException e) {
    handler.handle(new Either.Left<JsonObject,JsonObject>(new JsonObject().putArray("String_Node_Str",new JsonArray().addString("String_Node_Str"))));
    log.error(e.getMessage(),e);
  }
}
Program: 87123
Project: 87123
Buggy source:
@Override public void handle(Message<JsonObject> m){
  if (m != null && "String_Node_Str".equals(m.body().getString("String_Node_Str"))) {
    logger.info(m.body().encode());
    if (executePostImport) {
      postImport.execute();
    }
  }
 else {
    Validator.initLogin(neo4j,vertx);
    if (m != null) {
      logger.error(m.body().getString("String_Node_Str"));
      report.addError(m.body().getString("String_Node_Str"));
    }
 else     if (report.getResult().getObject("String_Node_Str").size() < 1) {
      logger.error("String_Node_Str");
      report.addError("String_Node_Str");
    }
  }
  report.getResult().putArray("String_Node_Str",new JsonArray(importer.getUserImportedExternalId().toArray()));
  h.handle(report);
  logger.info("String_Node_Str" + (System.currentTimeMillis() - start) + "String_Node_Str");
  importer.clear();
  checkEventQueue();
}

Fixed version (ground truth):
@Override public void handle(Message<JsonObject> m){
  if (m != null && "String_Node_Str".equals(m.body().getString("String_Node_Str"))) {
    logger.info(m.body().encode());
    if (executePostImport) {
      postImport.execute();
    }
  }
 else {
    Validator.initLogin(neo4j,vertx);
    if (m != null) {
      logger.error(m.body().getString("String_Node_Str"));
      report.addError(m.body().getString("String_Node_Str"));
    }
 else     if (report.getResult().getObject("String_Node_Str").size() < 1) {
      logger.error("String_Node_Str");
      report.addError("String_Node_Str");
    }
  }
  report.setUsersExternalId(new JsonArray(importer.getUserImportedExternalId().toArray()));
  h.handle(report);
  logger.info("String_Node_Str" + (System.currentTimeMillis() - start) + "String_Node_Str");
  importer.clear();
  checkEventQueue();
}
Program: 87125
Project: 87125
Buggy source:
public static void generateUserExternalId(JsonObject props,String c,Structure structure,long seed){
  String externalId=props.getString("String_Node_Str");
  if (externalId != null && !externalId.trim().isEmpty()) {
    return;
  }
  String mapping=structure.getExternalId() + props.getString("String_Node_Str","String_Node_Str") + props.getString("String_Node_Str","String_Node_Str")+ props.getString("String_Node_Str","String_Node_Str")+ props.getString("String_Node_Str","String_Node_Str")+ props.getString("String_Node_Str","String_Node_Str")+ props.getString("String_Node_Str","String_Node_Str")+ props.getString("String_Node_Str","String_Node_Str")+ c+ seed;
  try {
    props.putString("String_Node_Str",Hash.sha1(mapping.getBytes("String_Node_Str")));
  }
 catch (  NoSuchAlgorithmException|UnsupportedEncodingException e) {
    log.error(e.getMessage(),e);
  }
}

Fixed version (ground truth):
public static void generateUserExternalId(JsonObject props,String c,Structure structure,long seed){
  String externalId=props.getString("String_Node_Str");
  if (externalId != null && !externalId.trim().isEmpty()) {
    return;
  }
  String hash=getHashMapping(props,c,structure,seed);
  if (hash != null) {
    props.putString("String_Node_Str",hash);
  }
}
Program: 87126
Project: 87126
Buggy source:
static void relativeStudentMapping(JsonArray linkStudents,String mapping){
  if (mapping.trim().isEmpty())   return;
  try {
    linkStudents.add(Hash.sha1(mapping.getBytes("String_Node_Str")));
  }
 catch (  NoSuchAlgorithmException|UnsupportedEncodingException e) {
    log.error(e.getMessage(),e);
  }
}

Fixed version (ground truth):
private void relativeStudentMapping(JsonArray linkStudents,String mapping){
  if (mapping.trim().isEmpty())   return;
  try {
    String hash=Hash.sha1(mapping.getBytes("String_Node_Str"));
    linkStudents.add(getOrElse(studentExternalIdMapping.get(hash),hash));
  }
 catch (  NoSuchAlgorithmException|UnsupportedEncodingException e) {
    log.error(e.getMessage(),e);
  }
}
Program: 87128
Project: 87128
Buggy source:
@Override public void launch(final Importer importer,final String path,final Handler<Message<JsonObject>> handler) throws Exception {
  parse(importer,path,handler);
}

Fixed version (ground truth):
@Override public void launch(final Importer importer,final String path,final Handler<Message<JsonObject>> handler) throws Exception {
  studentExternalIdMapping.clear();
  defaultStudentSeed=new Random().nextLong();
  parse(importer,path,handler);
}
Program: 87129
Project: 87129
Buggy source:
public CsvValidator(Vertx vertx,String acceptLanguage,JsonObject additionnalsMappings){
  super(acceptLanguage);
  this.columnsMapper=new ColumnsMapper(additionnalsMappings);
  this.mappingFinder=new MappingFinder(vertx);
  this.vertx=vertx;
}

Fixed version (ground truth):
public CsvValidator(Vertx vertx,String acceptLanguage,JsonObject additionnalsMappings){
  super(acceptLanguage);
  this.columnsMapper=new ColumnsMapper(additionnalsMappings);
  this.mappingFinder=new MappingFinder(vertx);
  this.vertx=vertx;
  defaultStudentSeed=new Random().nextLong();
}
Program: 87132
Project: 87132
Buggy source:
private void initPostCreate(final String classId,final JsonArray userIds,final boolean welcomeMessage,final HttpServerRequest request){
  ApplicationUtils.sendModifiedUserGroup(eb,userIds,new Handler<Message<JsonObject>>(){
    @Override public void handle(    Message<JsonObject> message){
      schoolService.getByClassId(classId,new Handler<Either<String,JsonObject>>(){
        @Override public void handle(        Either<String,JsonObject> s){
          if (s.isRight()) {
            JsonObject j=new JsonObject().putString("String_Node_Str","String_Node_Str").putString("String_Node_Str",s.right().getValue().getString("String_Node_Str"));
            eb.send("String_Node_Str",j);
          }
        }
      }
);
      if (welcomeMessage) {
        JsonObject params=new JsonObject();
        conversationNotification.notify(request,"String_Node_Str",userIds,null,"String_Node_Str","String_Node_Str",params,new Handler<Either<String,JsonObject>>(){
          @Override public void handle(          Either<String,JsonObject> r){
            if (r.isLeft()) {
              log.error(r.left().getValue());
            }
          }
        }
);
      }
    }
  }
);
}

Fixed version (ground truth):
private void initPostCreate(final String classId,final JsonArray userIds,final boolean welcomeMessage,final HttpServerRequest request){
  ApplicationUtils.sendModifiedUserGroup(eb,userIds,new Handler<Message<JsonObject>>(){
    @Override public void handle(    Message<JsonObject> message){
      schoolService.getByClassId(classId,new Handler<Either<String,JsonObject>>(){
        @Override public void handle(        Either<String,JsonObject> s){
          if (s.isRight()) {
            JsonObject j=new JsonObject().putString("String_Node_Str","String_Node_Str").putString("String_Node_Str",s.right().getValue().getString("String_Node_Str"));
            eb.send("String_Node_Str",j,new Handler<Message<JsonObject>>(){
              public void handle(              Message<JsonObject> event){
                if ("String_Node_Str".equals(event.body().getString("String_Node_Str","String_Node_Str"))) {
                  log.error("String_Node_Str");
                }
 else                 if (welcomeMessage) {
                  JsonObject params=new JsonObject();
                  conversationNotification.notify(request,"String_Node_Str",userIds,null,"String_Node_Str","String_Node_Str",params,new Handler<Either<String,JsonObject>>(){
                    public void handle(                    Either<String,JsonObject> r){
                      if (r.isLeft()) {
                        log.error(r.left().getValue());
                      }
                    }
                  }
);
                }
              }
            }
);
          }
        }
      }
);
    }
  }
);
}
Program: 87135
Project: 87135
Buggy source:
private JsonObject getSessionByUserId(Message<JsonObject> message){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return null;
  }
  LoginInfo info=logins.get(userId);
  if (info == null) {
    sendError(message,"String_Node_Str");
    return null;
  }
  JsonObject session=unmarshal(sessions.get(info.sessionId));
  if (session == null) {
    sendError(message,"String_Node_Str");
    return null;
  }
  return session;
}

Fixed version (ground truth):
private JsonObject getSessionByUserId(Message<JsonObject> message){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return null;
  }
  LoginInfo info=logins.get(userId);
  if (info == null) {
    sendError(message,"String_Node_Str");
    return null;
  }
  JsonObject session=null;
  try {
    session=unmarshal(sessions.get(info.sessionId));
  }
 catch (  HazelcastSerializationException e) {
    logger.error("String_Node_Str" + info.sessionId,e);
  }
  if (session == null) {
    sendError(message,"String_Node_Str");
    return null;
  }
  return session;
}
Program: 87137
Project: 87137
Buggy source:
private void doFindByUserId(final Message<JsonObject> message){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  LoginInfo info=logins.get(userId);
  if (info == null && !message.body().getBoolean("String_Node_Str",false)) {
    sendError(message,"String_Node_Str");
    return;
  }
 else   if (info == null) {
    generateSessionInfos(userId,new Handler<JsonObject>(){
      @Override public void handle(      JsonObject infos){
        if (infos != null) {
          sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str").putObject("String_Node_Str",infos));
        }
 else {
          sendError(message,"String_Node_Str" + userId);
        }
      }
    }
);
    return;
  }
  JsonObject session=unmarshal(sessions.get(info.sessionId));
  if (session == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str").putObject("String_Node_Str",session));
}

Fixed version (ground truth):
private void doFindByUserId(final Message<JsonObject> message){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  LoginInfo info=logins.get(userId);
  if (info == null && !message.body().getBoolean("String_Node_Str",false)) {
    sendError(message,"String_Node_Str");
    return;
  }
 else   if (info == null) {
    generateSessionInfos(userId,new Handler<JsonObject>(){
      @Override public void handle(      JsonObject infos){
        if (infos != null) {
          sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str").putObject("String_Node_Str",infos));
        }
 else {
          sendError(message,"String_Node_Str" + userId);
        }
      }
    }
);
    return;
  }
  JsonObject session=null;
  try {
    session=unmarshal(sessions.get(info.sessionId));
  }
 catch (  HazelcastSerializationException e) {
    logger.error("String_Node_Str" + info.sessionId,e);
  }
  if (session == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str").putObject("String_Node_Str",session));
}
Program: 87138
Project: 87138
Buggy source:
private void createSession(final String userId,final String sId,final Handler<String> handler){
  final String sessionId=(sId != null) ? sId : UUID.randomUUID().toString();
  generateSessionInfos(userId,new Handler<JsonObject>(){
    @Override public void handle(    JsonObject infos){
      if (infos != null) {
        long timerId=vertx.setTimer(sessionTimeout,new Handler<Long>(){
          public void handle(          Long timerId){
            sessions.remove(sessionId);
            logins.remove(userId);
          }
        }
);
        sessions.put(sessionId,infos.encode());
        logins.put(userId,new LoginInfo(timerId,sessionId));
        final JsonObject now=MongoDb.now();
        if (sId == null) {
          mongo.save(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId).putString("String_Node_Str",userId).putObject("String_Node_Str",now).putObject("String_Node_Str",now));
        }
 else {
          mongo.update(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId),new JsonObject().putObject("String_Node_Str",new JsonObject().putObject("String_Node_Str",now)));
        }
        handler.handle(sessionId);
      }
 else {
        handler.handle(null);
      }
    }
  }
);
}

Fixed version (ground truth):
private void createSession(final String userId,final String sId,final Handler<String> handler){
  final String sessionId=(sId != null) ? sId : UUID.randomUUID().toString();
  generateSessionInfos(userId,new Handler<JsonObject>(){
    @Override public void handle(    JsonObject infos){
      if (infos != null) {
        long timerId=vertx.setTimer(sessionTimeout,new Handler<Long>(){
          public void handle(          Long timerId){
            logins.remove(userId);
            sessions.remove(sessionId);
          }
        }
);
        try {
          sessions.put(sessionId,infos.encode());
          logins.put(userId,new LoginInfo(timerId,sessionId));
        }
 catch (        HazelcastSerializationException e) {
          logger.error("String_Node_Str");
          try {
            if (sessions instanceof IMap) {
              ((IMap)sessions).putAsync(sessionId,infos.encode());
            }
            logins.put(userId,new LoginInfo(timerId,sessionId));
          }
 catch (          HazelcastSerializationException e1) {
            logger.error("String_Node_Str",e1);
          }
        }
        final JsonObject now=MongoDb.now();
        if (sId == null) {
          mongo.save(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId).putString("String_Node_Str",userId).putObject("String_Node_Str",now).putObject("String_Node_Str",now));
        }
 else {
          mongo.update(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId),new JsonObject().putObject("String_Node_Str",new JsonObject().putObject("String_Node_Str",now)));
        }
        handler.handle(sessionId);
      }
 else {
        handler.handle(null);
      }
    }
  }
);
}
Program: 87139
Project: 87139
Buggy source:
private void updateSessionByUserId(Message<JsonObject> message,JsonObject session){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  LoginInfo info=logins.get(userId);
  if (info == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  sessions.put(info.sessionId,session.encode());
}

Fixed version (ground truth):
private void updateSessionByUserId(Message<JsonObject> message,JsonObject session){
  final String userId=message.body().getString("String_Node_Str");
  if (userId == null || userId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  LoginInfo info=logins.get(userId);
  if (info == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  try {
    sessions.put(info.sessionId,session.encode());
  }
 catch (  HazelcastSerializationException e) {
    logger.error("String_Node_Str" + info.sessionId,e);
  }
}
Program: 87140
Project: 87140
Buggy source:
private void doDrop(Message<JsonObject> message){
  String sessionId=message.body().getString("String_Node_Str");
  if (sessionId == null || sessionId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  mongo.delete(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId));
  JsonObject session=unmarshal(sessions.get(sessionId));
  if (session == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  JsonObject s=unmarshal(sessions.remove(sessionId));
  if (s != null) {
    final String userId=s.getString("String_Node_Str");
    LoginInfo info=logins.remove(userId);
    if (config.getBoolean("String_Node_Str",false)) {
      eb.send("String_Node_Str",new JsonObject().putString("String_Node_Str","String_Node_Str").putString("String_Node_Str",userId));
    }
    if (info != null) {
      vertx.cancelTimer(info.timerId);
    }
  }
  sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str"));
}

Fixed version (ground truth):
private void doDrop(Message<JsonObject> message){
  String sessionId=message.body().getString("String_Node_Str");
  if (sessionId == null || sessionId.trim().isEmpty()) {
    sendError(message,"String_Node_Str");
    return;
  }
  mongo.delete(SESSIONS_COLLECTION,new JsonObject().putString("String_Node_Str",sessionId));
  JsonObject session=null;
  try {
    session=unmarshal(sessions.get(sessionId));
  }
 catch (  HazelcastSerializationException e) {
    try {
      if (sessions instanceof BaseMap) {
        ((BaseMap)sessions).delete(sessionId);
      }
 else {
        sessions.remove(sessionId);
      }
    }
 catch (    HazelcastSerializationException e1) {
      logger.error("String_Node_Str" + sessionId,e);
    }
  }
  if (session == null) {
    sendError(message,"String_Node_Str");
    return;
  }
  JsonObject s=unmarshal(sessions.remove(sessionId));
  if (s != null) {
    final String userId=s.getString("String_Node_Str");
    LoginInfo info=logins.remove(userId);
    if (config.getBoolean("String_Node_Str",false)) {
      eb.send("String_Node_Str",new JsonObject().putString("String_Node_Str","String_Node_Str").putString("String_Node_Str",userId));
    }
    if (info != null) {
      vertx.cancelTimer(info.timerId);
    }
  }
  sendOK(message,new JsonObject().putString("String_Node_Str","String_Node_Str"));
}