nus-yam/ex-repair huggingface dataset:
Program: 86500
Project: 86500
Buggy source:
@EventHandler(ignoreCancelled=true) public void onVillagerTrade(InventoryClickEvent event){
  if (event.getWhoClicked() == null) {
    return;
  }
  if (event.getWhoClicked() instanceof Player) {
    UPlayer uPlayer=UPlayer.get(event.getWhoClicked());
    if (uPlayer == null) {
      return;
    }
    if (event.getInventory().getType() == InventoryType.MERCHANT && !uPlayer.isUsingAdminMode()) {
      Faction factionAt=BoardColls.get().getFactionAt(PS.valueOf(uPlayer.getPlayer().getLocation()));
      if (factionAt != uPlayer.getFaction() && !factionAt.isNone() && FType.valueOf(factionAt) != FType.SAFEZONE) {
        event.setCancelled(true);
        uPlayer.msg(ChatColor.RED + "String_Node_Str");
        return;
      }
    }
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.NORMAL) public void onVillagerTrade(InventoryClickEvent event){
  if (event.getWhoClicked() == null) {
    return;
  }
  if (event.getWhoClicked() instanceof Player) {
    UPlayer uPlayer=UPlayer.get(event.getWhoClicked());
    if (uPlayer == null) {
      return;
    }
    if (event.getInventory().getType() == InventoryType.MERCHANT && !uPlayer.isUsingAdminMode()) {
      Faction factionAt=BoardColls.get().getFactionAt(PS.valueOf(uPlayer.getPlayer().getLocation()));
      if (factionAt != uPlayer.getFaction() && !factionAt.isNone() && FType.valueOf(factionAt) != FType.SAFEZONE) {
        event.setCancelled(true);
        uPlayer.msg(ChatColor.RED + "String_Node_Str");
        return;
      }
    }
  }
}
Program: 86501
Project: 86501
Buggy source:
@EventHandler(ignoreCancelled=true) public void onLandClaim(FactionsEventChunkChange event){
  if (Config._extras._protection.worldguardCanBuildCheck._) {
    if (!event.getNewFaction().isNone() && !event.getUSender().isUsingAdminMode() && !event.getUSender().getPlayer().isOp()&& !FP.permission.has(event.getUSender().getPlayer(),"String_Node_Str")) {
      if (Bukkit.getServer().getPluginManager().isPluginEnabled("String_Node_Str")) {
        if (FP.worldGuardPlugin != null) {
          if (Utilities.checkForRegionsInChunk(event.getUSender().getPlayer().getLocation())) {
            event.setCancelled(true);
            event.getUSender().msg(ChatColor.RED + "String_Node_Str");
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
@EventHandler(ignoreCancelled=true) public void onLandClaim(FactionsEventChunkChange event){
  if (Config._extras._protection.worldguardCanBuildCheck._) {
    if (!event.getUSender().getFaction().isNone() && !event.getUSender().isUsingAdminMode() && !event.getUSender().getPlayer().isOp()&& !FP.permission.has(event.getUSender().getPlayer(),"String_Node_Str")) {
      if (Bukkit.getServer().getPluginManager().isPluginEnabled("String_Node_Str")) {
        if (FP.worldGuardPlugin != null) {
          if (Utilities.checkForRegionsInChunk(event.getUSender().getPlayer().getLocation())) {
            event.setCancelled(true);
            event.getUSender().msg(ChatColor.RED + "String_Node_Str");
          }
        }
      }
    }
  }
}
Program: 86502
Project: 86502
Buggy source:
public final static Location getHomeForPlayer(Player player,String homeName) throws Exception {
  checkInvariants();
  try {
    return (getEssentialsInstance().getUser(player).getHome(homeName));
  }
 catch (  InvalidWorldException e) {
    player.sendMessage(ChatColor.RED + "String_Node_Str" + homeName+ "String_Node_Str"+ e.getWorld()+ "String_Node_Str");
    return (null);
  }
}

Fixed version (ground truth):
public final static Location getHomeForPlayer(Player player,String homeName) throws Exception {
  checkInvariants();
  try {
    return (getEssentialsInstance().getUser(player).getHome(homeName));
  }
 catch (  Exception e) {
    player.sendMessage(ChatColor.RED + "String_Node_Str" + homeName+ "String_Node_Str"+ player.getWorld()+ "String_Node_Str");
    return (null);
  }
}
Program: 86503
Project: 86503
Buggy source:
public static Location getSafeDestination(Location targetLocation){
  if (isHooked()) {
    try {
      return LocationUtil.getSafeDestination(targetLocation);
    }
 catch (    Exception e) {
      FP.severe("String_Node_Str");
      return (targetLocation);
    }
  }
 else {
    return targetLocation;
  }
}

Fixed version (ground truth):
public static Location getSafeDestination(Location targetLocation){
  if (isHooked()) {
    try {
      return Util.getSafeDestination(targetLocation);
    }
 catch (    Exception e) {
      FP.severe("String_Node_Str");
      return (targetLocation);
    }
  }
 else {
    return targetLocation;
  }
}
Program: 86504
Project: 86504
Buggy source:
@SuppressWarnings("String_Node_Str") public static boolean handleTeleport(Player player,Location loc){
  if (!isHooked()) {
    return false;
  }
  try {
    Teleport teleport=(Teleport)getEssentialsInstance().getUser(player).getTeleport();
    Trade trade=new Trade((int)UConf.get(player).econCostHome,(net.ess3.api.IEssentials)getEssentialsInstance());
    new Trade(0,null);
    teleport.teleport(loc,trade,TeleportCause.PLUGIN);
  }
 catch (  Exception e) {
    player.sendMessage(ChatColor.RED.toString() + e.getMessage());
    return false;
  }
  return true;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static boolean handleTeleport(Player player,Location loc){
  if (!isHooked()) {
    return false;
  }
  try {
    Teleport teleport=(Teleport)getEssentialsInstance().getUser(player).getTeleport();
    Trade trade=new Trade((int)UConf.get(player).econCostHome,(IEssentials)getEssentialsInstance());
    new Trade(0,null);
    teleport.teleport(loc,trade,TeleportCause.PLUGIN);
  }
 catch (  Exception e) {
    player.sendMessage(ChatColor.RED.toString() + e.getMessage());
    return false;
  }
  return true;
}
Program: 86507
Project: 86507
Buggy source:
@EventHandler(priority=EventPriority.HIGHEST) public void onPlayerDeath(PlayerDeathEvent event){
  final Player currentPlayer=event.getEntity();
  FPlayer currentFPlayer=FPlayers.i.get(currentPlayer);
  if (Utilities.isWarZone(Board.getFactionAt(currentPlayer.getLocation()))) {
    if (!FactionsPlus.permission.has(currentPlayer,"String_Node_Str")) {
      return;
    }
 else {
      currentPlayer.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    final ItemStack[] playersArmor=currentPlayer.getInventory().getArmorContents();
    final ItemStack[] playersInventory=currentPlayer.getInventory().getContents();
    Bukkit.getScheduler().scheduleSyncDelayedTask((Plugin)this,new Runnable(){
      @Override public void run(){
        currentPlayer.getInventory().setArmorContents(playersArmor);
      }
    }
);
    for (    ItemStack is : playersArmor) {
      event.getDrops().remove(is);
    }
    event.setDroppedExp(0);
    for (int i=0; i < playersInventory.length; i++) {
      event.getDrops().remove(playersInventory[i]);
    }
    Bukkit.getScheduler().scheduleSyncDelayedTask((Plugin)this,new Runnable(){
      @Override public void run(){
        currentPlayer.getInventory().setContents(playersInventory);
      }
    }
);
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.HIGHEST) public void onPlayerDeath(PlayerDeathEvent event){
  final Player currentPlayer=event.getEntity();
  FPlayer currentFPlayer=FPlayers.i.get(currentPlayer);
  if (Utilities.isWarZone(Board.getFactionAt(currentPlayer.getLocation()))) {
    if (!FactionsPlus.permission.has(currentPlayer,"String_Node_Str")) {
      return;
    }
 else {
      currentPlayer.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    final ItemStack[] playersArmor=currentPlayer.getInventory().getArmorContents();
    final ItemStack[] playersInventory=currentPlayer.getInventory().getContents();
    Bukkit.getScheduler().scheduleSyncDelayedTask(fp.getPluginManager().getPlugin("String_Node_Str"),new Runnable(){
      @Override public void run(){
        currentPlayer.getInventory().setArmorContents(playersArmor);
      }
    }
);
    for (    ItemStack is : playersArmor) {
      event.getDrops().remove(is);
    }
    event.setDroppedExp(0);
    for (int i=0; i < playersInventory.length; i++) {
      event.getDrops().remove(playersInventory[i]);
    }
    Bukkit.getScheduler().scheduleSyncDelayedTask(fp.getPluginManager().getPlugin("String_Node_Str"),new Runnable(){
      @Override public void run(){
        currentPlayer.getInventory().setContents(playersInventory);
      }
    }
);
  }
}
Program: 86508
Project: 86508
Buggy source:
@SuppressWarnings("String_Node_Str") public static void createTemplatesFile(){
  try {
    if (Config.templatesFile.exists()) {
      Config.templatesFile.delete();
    }
    Config.templatesFile.createNewFile();
    Config.templates=YamlConfiguration.loadConfiguration(Config.templatesFile);
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str",3);
    Config.templates.save(Config.templatesFile);
  }
 catch (  Exception e) {
    e.printStackTrace();
    FactionsPlusPlugin.info("String_Node_Str");
    return;
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void createTemplatesFile(){
  try {
    if (Config.templatesFile.exists()) {
      Config.templatesFile.delete();
    }
    Config.templatesFile.createNewFile();
    Config.templates=YamlConfiguration.loadConfiguration(Config.templatesFile);
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str","String_Node_Str");
    Config.templates.set("String_Node_Str",4);
    Config.templates.save(Config.templatesFile);
  }
 catch (  Exception e) {
    e.printStackTrace();
    FactionsPlusPlugin.info("String_Node_Str");
    return;
  }
}
Program: 86511
Project: 86511
Buggy source:
@EventHandler(priority=EventPriority.HIGHEST) public void onPlayerDisguise(PlayerDisguiseEvent e){
  if (e.isCancelled()) {
    return;
  }
  FPlayer fplayer=FPlayers.i.get(e.getPlayer());
  if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
    if (fplayer.isInEnemyTerritory()) {
      e.getPlayer().sendMessage("String_Node_Str");
      e.setCancelled(true);
    }
  }
  if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
    if (fplayer.isInOwnTerritory()) {
      e.getPlayer().sendMessage("String_Node_Str");
      e.setCancelled(true);
    }
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.HIGHEST) public void onPlayerDisguise(PlayerDisguiseEvent e){
  if (e.isCancelled()) {
    return;
  }
  FPlayer fplayer=FPlayers.i.get(e.getPlayer());
  if (!fplayer.hasFaction()) {
    return;
  }
  if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
    if (fplayer.isInEnemyTerritory()) {
      e.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      e.setCancelled(true);
    }
  }
  if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
    if (fplayer.isInOwnTerritory()) {
      e.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      e.setCancelled(true);
    }
  }
}
Program: 86512
Project: 86512
Buggy source:
@EventHandler public void onPlayerMove(PlayerMoveEvent event){
  if (event.isCancelled()) {
    return;
  }
  if (isMobDisguiseIntegrated()) {
    FPlayer fplayer=FPlayers.i.get(event.getPlayer());
    if (MobDisguiseAPI.isDisguised(event.getPlayer())) {
      if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
        if (fplayer.isInEnemyTerritory()) {
          MobDisguiseAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
      if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
        if (fplayer.isInOwnTerritory()) {
          MobDisguiseAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
    }
  }
  if (isDisguiseCraftIntegrated()) {
    DisguiseCraftAPI dcAPI=DisguiseCraft.getAPI();
    FPlayer fplayer=FPlayers.i.get(event.getPlayer());
    if (dcAPI.isDisguised(event.getPlayer())) {
      if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
        if (fplayer.isInEnemyTerritory()) {
          dcAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
      if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
        if (fplayer.isInOwnTerritory()) {
          dcAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
    }
  }
}

Fixed version (ground truth):
@EventHandler public void onPlayerMove(PlayerMoveEvent event){
  if (event.isCancelled()) {
    return;
  }
  FPlayer fplayer=FPlayers.i.get(event.getPlayer());
  if (!fplayer.hasFaction()) {
    return;
  }
  if (isMobDisguiseIntegrated()) {
    if (MobDisguiseAPI.isDisguised(event.getPlayer())) {
      if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
        if (fplayer.isInEnemyTerritory()) {
          MobDisguiseAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
      if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
        if (fplayer.isInOwnTerritory()) {
          MobDisguiseAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
    }
  }
  if (isDisguiseCraftIntegrated()) {
    DisguiseCraftAPI dcAPI=DisguiseCraft.getAPI();
    if (dcAPI.isDisguised(event.getPlayer())) {
      if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
        if (fplayer.isInEnemyTerritory()) {
          dcAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
      if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
        if (fplayer.isInOwnTerritory()) {
          dcAPI.undisguisePlayer(event.getPlayer());
          event.getPlayer().sendMessage("String_Node_Str");
        }
      }
    }
  }
}
Program: 86513
Project: 86513
Buggy source:
@EventHandler(priority=EventPriority.HIGHEST) public void onDisguiseEvent(DisguiseEvent e){
  if (e.isCancelled()) {
    return;
  }
  FPlayer fplayer=FPlayers.i.get(e.getPlayer());
  if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
    if (fplayer.isInEnemyTerritory()) {
      MobDisguiseAPI.undisguisePlayer(e.getPlayer());
      e.getPlayer().sendMessage("String_Node_Str");
      e.setCancelled(true);
    }
  }
  if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
    if (fplayer.isInOwnTerritory()) {
      MobDisguiseAPI.undisguisePlayer(e.getPlayer());
      e.getPlayer().sendMessage("String_Node_Str");
      e.setCancelled(true);
    }
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.HIGHEST) public void onDisguiseEvent(DisguiseEvent e){
  if (e.isCancelled()) {
    return;
  }
  FPlayer fplayer=FPlayers.i.get(e.getPlayer());
  if (!fplayer.hasFaction()) {
    return;
  }
  if (Config._extras._disguise.unDisguiseIfInEnemyTerritory._) {
    if (fplayer.isInEnemyTerritory()) {
      MobDisguiseAPI.undisguisePlayer(e.getPlayer());
      e.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      e.setCancelled(true);
    }
  }
  if (Config._extras._disguise.unDisguiseIfInOwnTerritory._) {
    if (fplayer.isInOwnTerritory()) {
      MobDisguiseAPI.undisguisePlayer(e.getPlayer());
      e.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      e.setCancelled(true);
    }
  }
}
Program: 86517
Project: 86517
Buggy source:
/** 
 * with lazy init, due to the fact that Essentials being a soft-depend, my guess is that there is a possibility it can be  not enabled, ie. it may enable after our plugin enables<br>
 * @return the instance or null
 */
private synchronized static final IEssentials getEssentialsInstance(){
  if (null == ess) {
    Plugin essPlugin=Bukkit.getPluginManager().getPlugin(pluginName);
    isLoadedButNotEnabled=!essPlugin.isEnabled();
    if ((null != essPlugin) && (essPlugin.isEnabled())) {
      ess=(IEssentials)essPlugin;
    }
  }
  return ess;
}

Fixed version (ground truth):
/** 
 * with lazy init, due to the fact that Essentials being a soft-depend, my guess is that there is a possibility it can be  not enabled, ie. it may enable after our plugin enables<br>
 * @return the instance or null
 */
private synchronized static final IEssentials getEssentialsInstance(){
  if (null == ess) {
    Plugin essPlugin=Bukkit.getPluginManager().getPlugin(pluginName);
    if ((null != essPlugin) && (essPlugin.isEnabled())) {
      ess=(IEssentials)essPlugin;
      isLoadedButNotEnabled=!essPlugin.isEnabled();
    }
  }
  return ess;
}
Program: 86519
Project: 86519
Buggy source:
@Override public void onDisable(){
  Throwable failed=null;
  try {
    if (null != metrics) {
      try {
        metrics.disable();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
    try {
      EssentialsIntegration.onDisable();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      Config.deInit();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      if (LWCBase.isLWC()) {
        LWCFunctions.unhookLWC();
      }
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      FactionsPlusUpdate.ensureNotRunning();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      getServer().getServicesManager().unregisterAll(this);
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      HandlerList.unregisterAll(FactionsPlus.instance);
    }
 catch (    Throwable t) {
      failed=t;
    }
    if (null == failed) {
      FactionsPlusPlugin.info("String_Node_Str");
    }
  }
 catch (  Throwable t) {
    failed=t;
  }
 finally {
    if (null != failed) {
      FactionsPlusPlugin.info("String_Node_Str");
      FactionsPlus.severe(failed,"String_Node_Str");
    }
  }
}

Fixed version (ground truth):
@Override public void onDisable(){
  Throwable failed=null;
  try {
synchronized (Metrics.class) {
      if (null != metrics) {
        try {
          metrics.disable();
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
    }
    try {
      EssentialsIntegration.onDisable();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      Config.deInit();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      if (LWCBase.isLWC()) {
        LWCFunctions.unhookLWC();
      }
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      FactionsPlusUpdate.ensureNotRunning();
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      getServer().getServicesManager().unregisterAll(this);
    }
 catch (    Throwable t) {
      failed=t;
    }
    try {
      HandlerList.unregisterAll(FactionsPlus.instance);
    }
 catch (    Throwable t) {
      failed=t;
    }
    if (null == failed) {
      FactionsPlusPlugin.info("String_Node_Str");
    }
  }
 catch (  Throwable t) {
    failed=t;
  }
 finally {
    if (null != failed) {
      FactionsPlusPlugin.info("String_Node_Str");
      FactionsPlus.severe(failed,"String_Node_Str");
    }
  }
}
Program: 86520
Project: 86520
Buggy source:
protected Factions16(){
  super();
  boolean failed=false;
  try {
    mSetPeaceful=Faction.class.getMethod("String_Node_Str",boolean.class);
    Class clas=Class.forName("String_Node_Str");
    methodUpdateHelp=clas.getMethod("String_Node_Str");
    Class fcmdroot=Class.forName("String_Node_Str");
    fieldCmdHelp=fcmdroot.getField("String_Node_Str");
    fHelpPages=clas.getField("String_Node_Str");
    Class classChatMode=Class.forName("String_Node_Str");
    Reflective.mapEnumsToSome(mapChatMode,classChatMode,FactionsAny.ChatMode.class,null,false);
    Class classFPlayer=Class.forName("String_Node_Str");
    mSetChatMode=classFPlayer.getMethod("String_Node_Str",classChatMode);
    mGetChatMode=classFPlayer.getMethod("String_Node_Str");
  }
 catch (  NoSuchMethodException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  SecurityException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  NoSuchFieldException e) {
    e.printStackTrace();
    failed=true;
  }
 finally {
    if (failed) {
      throw FactionsPlusPlugin.bailOut("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
protected Factions16(){
  super();
  boolean failed=false;
  try {
    mSetPeaceful=Faction.class.getMethod("String_Node_Str",boolean.class);
    Class clas=Class.forName("String_Node_Str");
    methodUpdateHelp=clas.getMethod("String_Node_Str");
    Class fcmdroot=Class.forName("String_Node_Str");
    fieldCmdHelp=fcmdroot.getField("String_Node_Str");
    fHelpPages=clas.getField("String_Node_Str");
    Class classChatMode=Class.forName("String_Node_Str");
    Reflective.mapEnumsToSome(mapChatMode,classChatMode,FactionsAny.ChatMode.class,null);
    Class classFPlayer=Class.forName("String_Node_Str");
    mSetChatMode=classFPlayer.getMethod("String_Node_Str",classChatMode);
    mGetChatMode=classFPlayer.getMethod("String_Node_Str");
  }
 catch (  NoSuchMethodException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  SecurityException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  NoSuchFieldException e) {
    e.printStackTrace();
    failed=true;
  }
 finally {
    if (failed) {
      throw FactionsPlusPlugin.bailOut("String_Node_Str");
    }
  }
}
Program: 86521
Project: 86521
Buggy source:
protected Factions17(){
  super();
  boolean failed=false;
  try {
    classFFlag=Class.forName("String_Node_Str");
    mSetFlag=Faction.class.getMethod("String_Node_Str",classFFlag,boolean.class);
    Reflective.mapEnums(mapFFlag,"String_Node_Str",FactionsAny.FFlag.class,null,false);
  }
 catch (  NoSuchMethodException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  SecurityException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  IllegalArgumentException e) {
    e.printStackTrace();
    failed=true;
  }
 finally {
    if (failed) {
      throw FactionsPlusPlugin.bailOut("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
protected Factions17(){
  super();
  boolean failed=false;
  try {
    classFFlag=Class.forName("String_Node_Str");
    mSetFlag=Faction.class.getMethod("String_Node_Str",classFFlag,boolean.class);
    Reflective.mapEnums(mapFFlag,"String_Node_Str",FactionsAny.FFlag.class,null);
  }
 catch (  NoSuchMethodException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  SecurityException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
    failed=true;
  }
catch (  IllegalArgumentException e) {
    e.printStackTrace();
    failed=true;
  }
 finally {
    if (failed) {
      throw FactionsPlusPlugin.bailOut("String_Node_Str");
    }
  }
}
Program: 86523
Project: 86523
Buggy source:
@Override public Relation getRole(RelationParticipator one){
  Throwable error=null;
  FactionsAny.Relation ret=null;
  try {
    if (null == one) {
      error=new NullPointerException("String_Node_Str");
      return null;
    }
    Object isReturn=mGetRole.invoke(one);
    ret=mapRelation.get(isReturn);
    if (null == ret) {
      FactionsPlusPlugin.severe("String_Node_Str" + isReturn + "String_Node_Str");
    }
  }
 catch (  IllegalAccessException e) {
    error=e;
  }
catch (  IllegalArgumentException e) {
    error=e;
  }
catch (  InvocationTargetException e) {
    error=e;
  }
 finally {
    if ((null != error) || (null == ret)) {
      throw FactionsPlusPlugin.bailOut(error,"String_Node_Str" + mGetRole);
    }
  }
  return ret;
}

Fixed version (ground truth):
@Override public Relation getRole(RelationParticipator one){
  Throwable error=null;
  FactionsAny.Relation ret=null;
  try {
    if (null == one) {
      error=new NullPointerException("String_Node_Str");
      return null;
    }
    Object isReturn=mGetRole.invoke(one);
    ret=mapRole.get(isReturn);
    if (null == ret) {
      if (null == isReturn) {
        FactionsPlusPlugin.severe("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      }
 else {
        FactionsPlusPlugin.severe("String_Node_Str" + isReturn + "String_Node_Str");
      }
    }
  }
 catch (  IllegalAccessException e) {
    error=e;
  }
catch (  IllegalArgumentException e) {
    error=e;
  }
catch (  InvocationTargetException e) {
    error=e;
  }
 finally {
    if ((null != error) || (null == ret)) {
      throw FactionsPlusPlugin.bailOut(error,"String_Node_Str" + mGetRole);
    }
  }
  return ret;
}
Program: 86525
Project: 86525
Buggy source:
public static <K extends Object,V extends Object>void mapEnums(Map<K,V> destinationMap,String sourceEnum,Class<V> destinationEnum,Map<String,V> mapOfRenameSourceNameToDestEnum,boolean skipNotFoundSourceEnums){
  Class<?> sourceClass;
  try {
    sourceClass=Class.forName(sourceEnum);
  }
 catch (  ClassNotFoundException e1) {
    e1.printStackTrace();
    throw FactionsPlusPlugin.bailOut("String_Node_Str" + sourceEnum);
  }
  mapEnumsToSome(destinationMap,sourceClass,destinationEnum,mapOfRenameSourceNameToDestEnum,skipNotFoundSourceEnums);
}

Fixed version (ground truth):
public static <K extends Object,V extends Object>void mapEnums(Map<K,V> destinationMap,String sourceEnum,Class<V> destinationEnum,Map<String,V> mapOfRenameSourceNameToDestEnum){
  Class<?> sourceClass;
  try {
    sourceClass=Class.forName(sourceEnum);
  }
 catch (  ClassNotFoundException e1) {
    e1.printStackTrace();
    throw FactionsPlusPlugin.bailOut("String_Node_Str" + sourceEnum);
  }
  mapEnumsToSome(destinationMap,sourceClass,destinationEnum,mapOfRenameSourceNameToDestEnum);
}
Program: 86526
Project: 86526
Buggy source:
public final static void reloadConfig(){
}

Fixed version (ground truth):
public final static void reloadConfig(){
  InputStream defConfigStream=FactionsPlus.instance.getResource(Config.fileConfigDefaults);
  if (defConfigStream != null) {
    Config.config=YamlConfiguration.loadConfiguration(defConfigStream);
  }
 else {
    throw FactionsPlusPlugin.bailOut("String_Node_Str" + Config.fileConfigDefaults + "String_Node_Str"+ "String_Node_Str");
  }
  if (Config.fileConfig.exists()) {
    if (!Config.fileConfig.isFile()) {
      throw FactionsPlusPlugin.bailOut("String_Node_Str" + Config.fileConfig.getAbsolutePath() + "String_Node_Str");
    }
    try {
      YamlConfiguration realConfig=YamlConfiguration.loadConfiguration(Config.fileConfig);
      for (      Map.Entry<String,Object> entry : realConfig.getValues(true).entrySet()) {
        Object val=entry.getValue();
        if (!(val instanceof MemorySection)) {
          String key=entry.getKey();
          Config.config.set(key,val);
        }
      }
    }
 catch (    Exception e) {
      e.printStackTrace();
      throw FactionsPlusPlugin.bailOut("String_Node_Str" + Config.fileConfig.getAbsolutePath() + "String_Node_Str");
    }
  }
 else {
    FactionsPlusPlugin.info(Config.fileConfig + "String_Node_Str");
  }
  saveConfig();
}
Program: 86528
Project: 86528
Buggy source:
@Override public void onDisable(){
  if (null != metrics) {
    try {
      metrics.disable();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  LWCFunctions.ensure_LWC_Disintegrate();
  getServer().getServicesManager().unregisterAll(this);
  FactionsPlusPlugin.info("String_Node_Str");
}

Fixed version (ground truth):
@Override public void onDisable(){
  if (null != metrics) {
    try {
      metrics.disable();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  if (LWCBase.isLWC()) {
    LWCFunctions.unhookLWC();
  }
  getServer().getServicesManager().unregisterAll(this);
  FactionsPlusPlugin.info("String_Node_Str");
}
Program: 86529
Project: 86529
Buggy source:
private static LWC getLWCInstance(){
}

Fixed version (ground truth):
public static LWC getLWCInstance(){
}
Program: 86533
Project: 86533
Buggy source:
public void perform(){
  String banningThisPlayer=this.argAsString(0);
  Faction pFaction=fme.getFaction();
  if (!FactionsPlus.permission.has(sender,"String_Node_Str")) {
    sender.sendMessage(ChatColor.RED + "String_Node_Str");
    return;
  }
  Boolean authallow=false;
  if (FactionsPlus.config.getBoolean("String_Node_Str") && Utilities.isLeader(fme)) {
    authallow=true;
  }
 else   if (FactionsPlus.config.getBoolean("String_Node_Str") && Utilities.isOfficer(fme)) {
    authallow=true;
  }
  if (!authallow) {
    fme.msg(ChatColor.RED + "String_Node_Str");
    return;
  }
  Player playerBanThisPlayer=Bukkit.getServer().getPlayer(banningThisPlayer);
  FPlayer fPlayerBanThisPlayer=FPlayers.i.get(banningThisPlayer);
  if (Utilities.isLeader(fPlayerBanThisPlayer)) {
    me.sendMessage("String_Node_Str");
    return;
  }
  if (fPlayerBanThisPlayer.getFactionId() != fme.getFactionId()) {
    fme.msg("String_Node_Str");
    return;
  }
  fPlayerBanThisPlayer.leave(true);
  playerBanThisPlayer.sendMessage("String_Node_Str");
  File banFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ pFaction.getId()+ "String_Node_Str"+ banningThisPlayer.toLowerCase());
  if (banFile.exists()) {
    me.sendMessage("String_Node_Str");
    return;
  }
 else {
    try {
      banFile.createNewFile();
      me.sendMessage(banningThisPlayer + "String_Node_Str");
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
public void perform(){
  String banningThisPlayer=this.argAsString(0);
  Faction pFaction=fme.getFaction();
  if (!FactionsPlus.permission.has(sender,"String_Node_Str")) {
    sender.sendMessage(ChatColor.RED + "String_Node_Str");
    return;
  }
  Boolean authallow=false;
  if (FactionsPlus.config.getBoolean("String_Node_Str") && Utilities.isLeader(fme)) {
    authallow=true;
  }
 else   if (FactionsPlus.config.getBoolean("String_Node_Str") && Utilities.isOfficer(fme)) {
    authallow=true;
  }
  if (!authallow) {
    fme.msg(ChatColor.RED + "String_Node_Str");
    return;
  }
  Player playerBanThisPlayer=Bukkit.getServer().getPlayer(banningThisPlayer);
  FPlayer fPlayerBanThisPlayer=FPlayers.i.get(banningThisPlayer);
  if (Utilities.isLeader(fPlayerBanThisPlayer)) {
    me.sendMessage("String_Node_Str");
    return;
  }
  if (!fPlayerBanThisPlayer.getFactionId().equalsIgnoreCase(fme.getFactionId())) {
    fme.msg("String_Node_Str");
    return;
  }
  fPlayerBanThisPlayer.leave(true);
  playerBanThisPlayer.sendMessage("String_Node_Str");
  File banFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ pFaction.getId()+ "String_Node_Str"+ banningThisPlayer.toLowerCase());
  if (banFile.exists()) {
    me.sendMessage("String_Node_Str");
    return;
  }
 else {
    try {
      banFile.createNewFile();
      me.sendMessage(banningThisPlayer + "String_Node_Str");
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}
Program: 86534
Project: 86534
Buggy source:
public void perform(){
  String playerToJail=this.argAsString(0);
  FPlayer fPlayerBanThisPlayer=FPlayers.i.get(playerToJail);
  if (fPlayerBanThisPlayer.getFactionId() != fme.getFactionId()) {
    fme.msg("String_Node_Str");
    return;
  }
  FactionsPlusJail.sendToJail(playerToJail,fme.getPlayer(),-1);
}

Fixed version (ground truth):
public void perform(){
  String playerToJail=this.argAsString(0);
  FPlayer fPlayerBanThisPlayer=FPlayers.i.get(playerToJail);
  if (!fPlayerBanThisPlayer.getFactionId().equalsIgnoreCase(fme.getFactionId())) {
    fme.msg("String_Node_Str");
    return;
  }
  FactionsPlusJail.sendToJail(playerToJail,fme.getPlayer(),-1);
}
Program: 86536
Project: 86536
Buggy source:
@EventHandler public void onFPlayerJoinEvent(FPlayerJoinEvent event){
  if (event.isCancelled()) {
    return;
  }
  File banFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ event.getFaction().getId()+ "String_Node_Str"+ event.getFPlayer().getName().toLowerCase());
  if (banFile.exists()) {
    event.getFPlayer().msg("String_Node_Str");
    event.getFPlayer().leave(true);
    event.setCancelled(true);
    return;
  }
  if (FactionsPlus.config.getInt("String_Node_Str") > 0) {
    if (event.getFaction().isPeaceful()) {
      Utilities.addPower(event.getFPlayer(),FactionsPlus.config.getInt("String_Node_Str"));
    }
  }
}

Fixed version (ground truth):
@EventHandler public void onFPlayerJoinEvent(FPlayerJoinEvent event){
  if (event.isCancelled()) {
    return;
  }
  File banFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ event.getFaction().getId()+ "String_Node_Str"+ event.getFPlayer().getName().toLowerCase());
  if (banFile.exists()) {
    event.getFPlayer().msg("String_Node_Str");
    event.getFPlayer().leave(true);
    event.setCancelled(true);
    return;
  }
  if (FactionsPlus.config.getInt("String_Node_Str") > 0) {
    if (event.getFaction().isPeaceful()) {
      Utilities.addPower(event.getFPlayer(),FactionsPlus.config.getInt("String_Node_Str"));
    }
  }
  if (Utilities.isJailed(event.getFPlayer().getPlayer())) {
    event.getFPlayer().getPlayer().teleport(FactionsPlusJail.getJailLocation(event.getFPlayer().getPlayer()));
  }
}
Program: 86537
Project: 86537
Buggy source:
@EventHandler public void onFactionDisband(FactionDisbandEvent event){
  Faction faction=event.getFaction();
  File tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
  File tempDir=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator);
  if (tempDir.isDirectory()) {
    for (    File file : tempDir.listFiles()) {
      if (file.getName().startsWith(faction.getId() + "String_Node_Str")) {
        file.delete();
      }
    }
  }
  tempDir=null;
  tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
  tempDir=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator);
  if (tempDir.isDirectory()) {
    for (    File file : tempDir.listFiles()) {
      if (file.getName().startsWith("String_Node_Str" + faction.getId() + "String_Node_Str")) {
        file.delete();
      }
    }
  }
  tempDir=null;
  tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
}

Fixed version (ground truth):
@EventHandler public void onFactionDisband(FactionDisbandEvent event){
  Faction faction=event.getFaction();
  File tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
  File tempDir=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator);
  if (tempDir.isDirectory()) {
    for (    File file : tempDir.listFiles()) {
      if (file.getName().startsWith(faction.getId() + "String_Node_Str")) {
        file.delete();
      }
    }
  }
  tempDir=null;
  tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
  tempDir=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator);
  if (tempDir.isDirectory()) {
    for (    File file : tempDir.listFiles()) {
      if (file.getName().startsWith("String_Node_Str" + faction.getId() + "String_Node_Str")) {
        file.delete();
      }
 else       if (file.getName().equals("String_Node_Str" + faction.getId())) {
        file.delete();
      }
    }
  }
  tempFile=new File("String_Node_Str" + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ faction.getId());
  if (tempFile.exists()) {
    tempFile.delete();
  }
  tempFile=null;
}
Program: 86539
Project: 86539
Buggy source:
public Subscription updateSubscription(final Subscription subscription,@Nullable final DateTime requestedDate,@Nullable final BillingActionPolicy billingPolicy,final int timeoutSec,final RequestOptions inputOptions) throws KillBillClientException {
  Preconditions.checkNotNull(subscription.getSubscriptionId(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getProductName(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getBillingPeriod(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getPriceList(),"String_Node_Str");
  final String uri=JaxrsResource.SUBSCRIPTIONS_PATH + "String_Node_Str" + subscription.getSubscriptionId();
  final Multimap<String,String> queryParams=HashMultimap.<String,String>create(inputOptions.getQueryParams());
  queryParams.put(JaxrsResource.QUERY_CALL_COMPLETION,timeoutSec > 0 ? "String_Node_Str" : "String_Node_Str");
  queryParams.put(JaxrsResource.QUERY_CALL_TIMEOUT,String.valueOf(timeoutSec));
  if (requestedDate != null) {
    queryParams.put(JaxrsResource.QUERY_REQUESTED_DT,requestedDate.toDateTimeISO().toString());
  }
  if (billingPolicy != null) {
    queryParams.put(JaxrsResource.QUERY_BILLING_POLICY,billingPolicy.toString());
  }
  final RequestOptions requestOptions=inputOptions.extend().withQueryParams(queryParams).build();
  return httpClient.doPut(uri,subscription,Subscription.class,inputOptions);
}

Fixed version (ground truth):
public Subscription updateSubscription(final Subscription subscription,@Nullable final DateTime requestedDate,@Nullable final BillingActionPolicy billingPolicy,final int timeoutSec,final RequestOptions inputOptions) throws KillBillClientException {
  Preconditions.checkNotNull(subscription.getSubscriptionId(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getProductName(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getBillingPeriod(),"String_Node_Str");
  Preconditions.checkNotNull(subscription.getPriceList(),"String_Node_Str");
  final String uri=JaxrsResource.SUBSCRIPTIONS_PATH + "String_Node_Str" + subscription.getSubscriptionId();
  final Multimap<String,String> queryParams=HashMultimap.<String,String>create(inputOptions.getQueryParams());
  queryParams.put(JaxrsResource.QUERY_CALL_COMPLETION,timeoutSec > 0 ? "String_Node_Str" : "String_Node_Str");
  queryParams.put(JaxrsResource.QUERY_CALL_TIMEOUT,String.valueOf(timeoutSec));
  if (requestedDate != null) {
    queryParams.put(JaxrsResource.QUERY_REQUESTED_DT,requestedDate.toDateTimeISO().toString());
  }
  if (billingPolicy != null) {
    queryParams.put(JaxrsResource.QUERY_BILLING_POLICY,billingPolicy.toString());
  }
  final RequestOptions requestOptions=inputOptions.extend().withQueryParams(queryParams).build();
  return httpClient.doPut(uri,subscription,Subscription.class,requestOptions);
}
Program: 86541
Project: 86541
Buggy source:
public RequestOptionsBuilder extend(){
  final RequestOptionsBuilder builder=new RequestOptionsBuilder();
  builder.headers.putAll(this.headers);
  return builder.withRequestId(requestId).withUser(user).withPassword(password).withCreatedBy(createdBy).withCreatedBy(reason).withComment(comment).withTenantApiKey(tenantApiKey).withTenantApiSecret(tenantApiSecret).withQueryParams(queryParams).withFollowLocation(followLocation).withQueryParamsForFollow(queryParamsForFollow);
}

Fixed version (ground truth):
public RequestOptionsBuilder extend(){
  final RequestOptionsBuilder builder=new RequestOptionsBuilder();
  builder.headers.putAll(this.headers);
  return builder.withRequestId(requestId).withUser(user).withPassword(password).withCreatedBy(createdBy).withReason(reason).withComment(comment).withTenantApiKey(tenantApiKey).withTenantApiSecret(tenantApiSecret).withQueryParams(queryParams).withFollowLocation(followLocation).withQueryParamsForFollow(queryParamsForFollow);
}
Program: 86542
Project: 86542
Buggy source:
public Payment voidPayment(final UUID paymentId,final String paymentExternalKey,final String transactionExternalKey,final Map<String,String> pluginProperties,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  Preconditions.checkState(paymentId != null || paymentExternalKey != null,"String_Node_Str");
  final String uri=(paymentId != null) ? JaxrsResource.PAYMENTS_PATH + "String_Node_Str" + paymentId : JaxrsResource.PAYMENTS_PATH;
  final PaymentTransaction paymentTransaction=new PaymentTransaction();
  paymentTransaction.setTransactionExternalKey(transactionExternalKey);
  final Multimap<String,String> params=HashMultimap.<String,String>create();
  storePluginPropertiesAsParams(pluginProperties,params);
  final Multimap<String,String> queryParams=paramsWithAudit(params,createdBy,reason,comment);
  return httpClient.doDeleteAndFollowLocation(uri,paymentTransaction,queryParams,Payment.class);
}

Fixed version (ground truth):
public Payment voidPayment(final UUID paymentId,final String paymentExternalKey,final String transactionExternalKey,final Map<String,String> pluginProperties,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  Preconditions.checkState(paymentId != null || paymentExternalKey != null,"String_Node_Str");
  final String uri=(paymentId != null) ? JaxrsResource.PAYMENTS_PATH + "String_Node_Str" + paymentId : JaxrsResource.PAYMENTS_PATH;
  final PaymentTransaction paymentTransaction=new PaymentTransaction();
  if (paymentExternalKey != null) {
    paymentTransaction.setPaymentExternalKey(paymentExternalKey);
  }
  paymentTransaction.setTransactionExternalKey(transactionExternalKey);
  final Multimap<String,String> params=HashMultimap.<String,String>create();
  storePluginPropertiesAsParams(pluginProperties,params);
  final Multimap<String,String> queryParams=paramsWithAudit(params,createdBy,reason,comment);
  return httpClient.doDeleteAndFollowLocation(uri,paymentTransaction,queryParams,Payment.class);
}
Program: 86543
Project: 86543
Buggy source:
private String getUniqueValue(final Multimap<String,String> options,final String key){
  final Collection<String> values=options.get(key);
  if (values == null) {
    return null;
  }
 else {
    Preconditions.checkState(values.size() == 1,"String_Node_Str" + key);
    return values.iterator().next();
  }
}

Fixed version (ground truth):
private String getUniqueValue(final Multimap<String,String> options,final String key){
  final Collection<String> values=options.get(key);
  if (values == null || values.size() == 0) {
    return null;
  }
 else {
    Preconditions.checkState(values.size() == 1,"String_Node_Str" + key);
    return values.iterator().next();
  }
}
Program: 86544
Project: 86544
Buggy source:
public void payAllInvoices(final UUID accountId,final boolean externalPayment,final BigDecimal paymentAmount,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  final String uri=JaxrsResource.ACCOUNTS_PATH + "String_Node_Str" + accountId+ "String_Node_Str"+ JaxrsResource.PAYMENTS;
  final Map<String,String> queryParams=paramsWithAudit(ImmutableMap.<String,String>of("String_Node_Str",String.valueOf(externalPayment),"String_Node_Str",String.valueOf(paymentAmount)),createdBy,reason,comment);
  httpClient.doPost(uri,null,queryParams);
}

Fixed version (ground truth):
public void payAllInvoices(final UUID accountId,final boolean externalPayment,final BigDecimal paymentAmount,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  final String uri=JaxrsResource.ACCOUNTS_PATH + "String_Node_Str" + accountId+ "String_Node_Str"+ JaxrsResource.PAYMENTS;
  final Map<String,String> params=new HashMap<String,String>();
  params.put(JaxrsResource.QUERY_PAYMENT_EXTERNAL,String.valueOf(externalPayment));
  if (paymentAmount != null) {
    params.put("String_Node_Str",String.valueOf(paymentAmount));
  }
  final Map<String,String> queryParams=paramsWithAudit(params,createdBy,reason,comment);
  httpClient.doPost(uri,null,queryParams);
}
Program: 86545
Project: 86545
Buggy source:
public void payAllInvoices(final UUID accountId,final boolean externalPayment,final BigDecimal paymentAmount,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  final String uri=JaxrsResource.ACCOUNTS_PATH + "String_Node_Str" + accountId+ "String_Node_Str"+ JaxrsResource.PAYMENTS;
  final Map<String,String> queryParams=paramsWithAudit(ImmutableMap.<String,String>of("String_Node_Str",String.valueOf(externalPayment),"String_Node_Str",String.valueOf(paymentAmount)),createdBy,reason,comment);
  httpClient.doPost(uri,null,queryParams);
}

Fixed version (ground truth):
public void payAllInvoices(final UUID accountId,final boolean externalPayment,final BigDecimal paymentAmount,final String createdBy,final String reason,final String comment) throws KillBillClientException {
  final String uri=JaxrsResource.ACCOUNTS_PATH + "String_Node_Str" + accountId+ "String_Node_Str"+ JaxrsResource.PAYMENTS;
  final Map<String,String> params=new HashMap<String,String>();
  params.put(JaxrsResource.QUERY_PAYMENT_EXTERNAL,String.valueOf(externalPayment));
  if (paymentAmount != null) {
    params.put("String_Node_Str",String.valueOf(paymentAmount));
  }
  final Map<String,String> queryParams=paramsWithAudit(params,createdBy,reason,comment);
  httpClient.doPost(uri,null,queryParams);
}
Program: 86547
Project: 86547
Buggy source:
/** 
 * A configuration from the contour line of the Chezine river.
 * @throws DelaunayError 
 */
public void testRefinementChezine3() throws DelaunayError {
  ConstrainedMesh mesh=new ConstrainedMesh();
  mesh.addConstraintEdge(new DEdge(0,284,0,20,286,0));
  mesh.addConstraintEdge(new DEdge(20,36,0,40,0,0));
  mesh.addConstraintEdge(new DEdge(20,286,0,40,300,0));
  mesh.processDelaunay();
  mesh.refineMesh(1,new SkinnyEvaluator(15));
  assertTrue(true);
}

Fixed version (ground truth):
/** 
 * A configuration from the contour line of the Chezine river.
 * @throws DelaunayError 
 */
public void testRefinementChezine3() throws DelaunayError {
  ConstrainedMesh mesh=new ConstrainedMesh();
  mesh.addConstraintEdge(new DEdge(0,142,0,10,143,0));
  mesh.addConstraintEdge(new DEdge(10,18,0,20,0,0));
  mesh.addConstraintEdge(new DEdge(10,143,0,20,149,0));
  mesh.processDelaunay();
  mesh.edgeSplitting(1);
  assertTrianglesTopology(mesh);
  mesh.refineMesh(.5,new SkinnyEvaluator(15));
  assertTrianglesTopology(mesh);
  assertTrue(true);
}