nus-yam/ex-repair huggingface dataset:
Program: 179137
Project: 179137
Buggy source:
public boolean onCommand(CommandSender sender,Command command,String commandLabel,String[] args){
  User user;
  try {
    user=new User(plugin,(Player)sender);
  }
 catch (  ClassCastException e) {
    user=new User(plugin);
  }
  if (commandLabel.equalsIgnoreCase("String_Node_Str")) {
    tell(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    list(args,user);
    return true;
  }
  if (channelsEnabled()) {
    return false;
  }
  if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    slowMode(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    mute(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    unmute(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str")) {
    me(args,user);
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean onCommand(CommandSender sender,Command command,String commandLabel,String[] args){
  User user;
  try {
    user=User.getUser(plugin,(Player)sender);
  }
 catch (  ClassCastException e) {
    user=User.getUser(plugin);
  }
  if (commandLabel.equalsIgnoreCase("String_Node_Str")) {
    tell(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    list(args,user);
    return true;
  }
  if (channelsEnabled()) {
    return false;
  }
  if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    slowMode(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    mute(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str") && user.hasPerm("String_Node_Str")) {
    unmute(args,user);
    return true;
  }
 else   if (commandLabel.equalsIgnoreCase("String_Node_Str")) {
    me(args,user);
    return true;
  }
  return false;
}
Program: 179138
Project: 179138
Buggy source:
public void me(String[] args,User user){
  if (args.length == 0) {
    user.sendMessage(ChatColor.YELLOW + "String_Node_Str");
    return;
  }
  if (user.isMuted()) {
    user.sendMessage(ChatColor.GRAY + plugin.mainProperties.getString("String_Node_Str","String_Node_Str"));
    return;
  }
  String message="String_Node_Str";
  for (  String word : args) {
    if (message == "String_Node_Str") {
      message+=word;
    }
 else {
      message+="String_Node_Str" + word;
    }
  }
  boolean blocked=ChatChecker.checkBlocked(message,plugin);
  if (blocked) {
    user.sendMessage(ChatColor.GRAY + plugin.mainProperties.getString("String_Node_Str","String_Node_Str"));
    return;
  }
  long slowTimeLeft=plugin.chatListen.slow.playerBlocked(user.getName());
  if ((!plugin.perm.userFile.hasPermission(user.getName(),"String_Node_Str",true,true)) && plugin.chatListen.slow.isEnabled()) {
    if (slowTimeLeft > 0) {
      user.sendMessage(ChatColor.GRAY + "String_Node_Str" + (int)Math.ceil(slowTimeLeft / 1000)+ "String_Node_Str");
      return;
    }
 else {
      plugin.chatListen.slow.playerAdd(user.getName());
    }
  }
  message=ChatColor.WHITE + "String_Node_Str" + user.getColor()+ user.getName()+ "String_Node_Str"+ ChatColor.WHITE+ message;
  plugin.getServer().broadcastMessage(message);
  new User(plugin).sendMessage(message);
}

Fixed version (ground truth):
public void me(String[] args,User user){
  if (args.length == 0) {
    user.sendMessage(ChatColor.YELLOW + "String_Node_Str");
    return;
  }
  if (user.isMuted()) {
    user.sendMessage(ChatColor.GRAY + plugin.mainProperties.getString("String_Node_Str","String_Node_Str"));
    return;
  }
  String message="String_Node_Str";
  for (  String word : args) {
    if (message == "String_Node_Str") {
      message+=word;
    }
 else {
      message+="String_Node_Str" + word;
    }
  }
  boolean blocked=ChatChecker.checkBlocked(message,plugin);
  if (blocked) {
    user.sendMessage(ChatColor.GRAY + plugin.mainProperties.getString("String_Node_Str","String_Node_Str"));
    return;
  }
  long slowTimeLeft=plugin.chatListen.slow.playerBlocked(user.getName());
  if ((!plugin.perm.userFile.hasPermission(user.getName(),"String_Node_Str",true,true)) && plugin.chatListen.slow.isEnabled()) {
    if (slowTimeLeft > 0) {
      user.sendMessage(ChatColor.GRAY + "String_Node_Str" + (int)Math.ceil(slowTimeLeft / 1000)+ "String_Node_Str");
      return;
    }
 else {
      plugin.chatListen.slow.playerAdd(user.getName());
    }
  }
  message=ChatColor.WHITE + "String_Node_Str" + user.getColor()+ user.getName()+ "String_Node_Str"+ ChatColor.WHITE+ message;
  plugin.getServer().broadcastMessage(message);
  User.getUser(plugin).sendMessage(message);
}
Program: 179139
Project: 179139
Buggy source:
public void list(String[] args,User user){
  Player[] playerList=plugin.getServer().getOnlinePlayers();
  if (playerList.length == 1 && !user.isServer()) {
    user.sendMessage(ChatColor.GREEN + "String_Node_Str");
  }
 else {
    String playerString="String_Node_Str";
    for (    Player player2 : playerList) {
      User user2=new User(plugin,player2);
      if (user2.isOffline() && !user.isServer()) {
        continue;
      }
      playerString+=user2.getColor() + user2.getName() + ChatColor.WHITE+ "String_Node_Str";
    }
    user.sendMessage("String_Node_Str" + playerString);
  }
}

Fixed version (ground truth):
public void list(String[] args,User user){
  Player[] playerList=plugin.getServer().getOnlinePlayers();
  if (playerList.length == 1 && !user.isServer()) {
    user.sendMessage(ChatColor.GREEN + "String_Node_Str");
  }
 else {
    String playerString="String_Node_Str";
    for (    Player player2 : playerList) {
      User user2=User.getUser(plugin,player2);
      if (user2.isOffline() && !user.isServer()) {
        continue;
      }
      playerString+=user2.getColor() + user2.getName() + ChatColor.WHITE+ "String_Node_Str";
    }
    user.sendMessage("String_Node_Str" + playerString);
  }
}
Program: 179140
Project: 179140
Buggy source:
public void onPlayerKick(PlayerKickEvent event){
  User user=new User(plugin,event.getPlayer());
  if (user.isOffline()) {
    user.goOnlineNoMsg();
    event.setLeaveMessage("String_Node_Str");
  }
 else {
    event.setLeaveMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
  }
  plugin.maxPlayers.leave(user);
  if (user.isPoofed()) {
    user.UnPoof();
  }
  if (user.isNoPoofed()) {
    user.UnNoPoof();
  }
}

Fixed version (ground truth):
public void onPlayerKick(PlayerKickEvent event){
  User user=User.getUser(plugin,event.getPlayer());
  if (user.isOffline()) {
    user.goOnlineNoMsg();
    event.setLeaveMessage("String_Node_Str");
  }
 else {
    event.setLeaveMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
  }
  plugin.maxPlayers.leave(user);
  if (user.isPoofed()) {
    user.UnPoof();
  }
  if (user.isNoPoofed()) {
    user.UnNoPoof();
  }
  User.finalizeUser(user);
}
Program: 179141
Project: 179141
Buggy source:
public void onPlayerQuit(PlayerQuitEvent event){
  User user=new User(plugin,event.getPlayer());
  if (user.isOffline()) {
    user.goOnlineNoMsg();
    event.setQuitMessage("String_Node_Str");
  }
 else {
    event.setQuitMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
  }
  plugin.maxPlayers.leave(user);
  if (user.isPoofed()) {
    user.UnPoof();
  }
  if (user.isNoPoofed()) {
    user.UnNoPoof();
  }
}

Fixed version (ground truth):
public void onPlayerQuit(PlayerQuitEvent event){
  User user=User.getUser(plugin,event.getPlayer());
  if (user.isOffline()) {
    user.goOnlineNoMsg();
    event.setQuitMessage("String_Node_Str");
  }
 else {
    event.setQuitMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
  }
  plugin.maxPlayers.leave(user);
  if (user.isPoofed()) {
    user.UnPoof();
  }
  if (user.isNoPoofed()) {
    user.UnNoPoof();
  }
  User.finalizeUser(user);
}
Program: 179143
Project: 179143
Buggy source:
public void onPlayerJoin(PlayerJoinEvent event){
  User user=new User(plugin,event.getPlayer());
  Player[] playerList=plugin.getServer().getOnlinePlayers();
  if (user.hasPerm("String_Node_Str")) {
    if (playerList.length == 1) {
      user.sendMessage(ChatColor.GREEN + "String_Node_Str");
    }
 else {
      String playerString="String_Node_Str";
      for (      Player player2 : playerList) {
        if (new User(plugin,player2).isOffline()) {
          continue;
        }
        playerString+=plugin.perm.groupFile.getColor(plugin.perm.userFile.getGroup(player2.getName())) + player2.getName() + ChatColor.WHITE+ "String_Node_Str";
      }
      user.sendMessage("String_Node_Str" + playerString);
    }
  }
  if (user.isMuted()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str");
  }
 else   if (slow.isEnabled()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str" + (slow.getDefTime() / 1000)+ "String_Node_Str");
  }
  if (user.hasPerm("String_Node_Str") && plugin.reports.unreadTickets()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str");
  }
  event.setJoinMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
}

Fixed version (ground truth):
public void onPlayerJoin(PlayerJoinEvent event){
  User user=User.getUser(plugin,event.getPlayer());
  Player[] playerList=plugin.getServer().getOnlinePlayers();
  if (user.hasPerm("String_Node_Str")) {
    if (playerList.length == 1) {
      user.sendMessage(ChatColor.GREEN + "String_Node_Str");
    }
 else {
      String playerString="String_Node_Str";
      for (      Player player2 : playerList) {
        if (User.getUser(plugin,player2).isOffline()) {
          continue;
        }
        playerString+=plugin.perm.groupFile.getColor(plugin.perm.userFile.getGroup(player2.getName())) + player2.getName() + ChatColor.WHITE+ "String_Node_Str";
      }
      user.sendMessage("String_Node_Str" + playerString);
    }
  }
  if (user.isMuted()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str");
  }
 else   if (slow.isEnabled()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str" + (slow.getDefTime() / 1000)+ "String_Node_Str");
  }
  if (user.hasPerm("String_Node_Str") && plugin.reports.unreadTickets()) {
    user.sendMessage(ChatColor.RED + "String_Node_Str");
  }
  event.setJoinMessage(user.getColor() + user.getName() + ChatColor.WHITE+ "String_Node_Str");
}
Program: 179145
Project: 179145
Buggy source:
/** 
 * Gets whether or not the ActionableUser can see invisible ActionableUsers
 * @return Returns whether or not the ActionableUser can see invisible ActionableUsers
 */
public boolean isNoPoofed(){
  if (isConsole) {
    return false;
  }
 else {
    return plugin.noinvisible.contains(player);
  }
}

Fixed version (ground truth):
/** 
 * Gets whether or not the ActionableUser can see invisible ActionableUsers
 * @return Returns whether or not the ActionableUser can see invisibleActionableUsers
 */
public boolean isNoPoofed(){
  if (isConsole) {
    return false;
  }
 else {
    return plugin.noinvisible.contains(player);
  }
}
Program: 179146
Project: 179146
Buggy source:
public void updateValue(ProtectedBlock block){
  if (block instanceof ProtectedChest) {
    String value;
    String key;
    key=String.valueOf(block.GetId());
    value="String_Node_Str";
    value+="String_Node_Str";
    boolean init=false;
    for (    PermissionUser guest : block.getGuests()) {
      if (init) {
        value+="String_Node_Str";
      }
 else {
        init=false;
      }
      value+=guest.getName();
    }
    value+="String_Node_Str" + block.getOwner().getName();
    Location blockLoc=block.getLocation();
    value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
    this.put(key,value);
  }
  this.saveFile(proFile);
}

Fixed version (ground truth):
public void updateValue(ProtectedBlock block){
  if (block instanceof ProtectedChest) {
    String value;
    String key;
    key=String.valueOf(block.GetId());
    value="String_Node_Str";
    value+="String_Node_Str";
    boolean init=false;
    for (    PermissionUser guest : block.getGuests()) {
      if (init) {
        value+="String_Node_Str";
      }
 else {
        init=false;
      }
      value+=guest.getName();
    }
    value+="String_Node_Str" + block.getOwner().getName();
    Location blockLoc=block.getLocation();
    value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
    this.put(key,value);
  }
 else   if (block instanceof ProtectedDoor) {
    String value;
    String key;
    key=String.valueOf(block.GetId());
    value="String_Node_Str";
    value+="String_Node_Str";
    boolean init=false;
    for (    PermissionUser guest : block.getGuests()) {
      if (init) {
        value+="String_Node_Str";
      }
 else {
        init=false;
      }
      value+=guest.getName();
    }
    value+="String_Node_Str" + block.getOwner().getName();
    Location blockLoc=block.getLocation();
    value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
    this.put(key,value);
  }
  this.saveFile(proFile);
}
Program: 179147
Project: 179147
Buggy source:
public void saveValues(){
  this.clear();
  for (  ProtectedBlock block : protectedBlocks) {
    if (block instanceof ProtectedChest) {
      String value;
      String key;
      key=String.valueOf(block.GetId());
      value="String_Node_Str";
      value+="String_Node_Str";
      boolean init=false;
      for (      PermissionUser guest : block.getGuests()) {
        if (init) {
          value+="String_Node_Str";
        }
 else {
          init=false;
        }
        value+=guest.getName();
      }
      value+="String_Node_Str" + block.getOwner().getName();
      Location blockLoc=block.getLocation();
      value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
      this.put(key,value);
    }
  }
}

Fixed version (ground truth):
public void saveValues(){
  this.clear();
  for (  ProtectedBlock block : protectedBlocks) {
    if (block instanceof ProtectedChest) {
      String value;
      String key;
      key=String.valueOf(block.GetId());
      value="String_Node_Str";
      value+="String_Node_Str";
      boolean init=false;
      for (      PermissionUser guest : block.getGuests()) {
        if (init) {
          value+="String_Node_Str";
        }
 else {
          init=false;
        }
        value+=guest.getName();
      }
      value+="String_Node_Str" + block.getOwner().getName();
      Location blockLoc=block.getLocation();
      value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
      this.put(key,value);
    }
 else     if (block instanceof ProtectedDoor) {
      String value;
      String key;
      key=String.valueOf(block.GetId());
      value="String_Node_Str";
      value+="String_Node_Str";
      boolean init=false;
      for (      PermissionUser guest : block.getGuests()) {
        if (init) {
          value+="String_Node_Str";
        }
 else {
          init=false;
        }
        value+=guest.getName();
      }
      value+="String_Node_Str" + block.getOwner().getName();
      Location blockLoc=block.getLocation();
      value+="String_Node_Str" + blockLoc.getWorld().getName() + "String_Node_Str"+ String.valueOf(blockLoc.getBlockX())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockY())+ "String_Node_Str"+ String.valueOf(blockLoc.getBlockZ());
      this.put(key,value);
    }
  }
}
Program: 179149
Project: 179149
Buggy source:
public int addProtection(PermissionUser owner,Location loc,ProtectionType type){
  int id=getNextId();
  ProtectedBlock protect=null;
switch (type) {
case Chest:
    protectedBlocks.add(protect=new ProtectedChest(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
}
updateValue(protect);
return id;
}

Fixed version (ground truth):
public int addProtection(PermissionUser owner,Location loc,ProtectionType type){
  int id=getNextId();
  ProtectedBlock protect=null;
switch (type) {
case Chest:
    protectedBlocks.add(protect=new ProtectedChest(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
case Door:
  protectedBlocks.add(protect=new ProtectedDoor(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
}
updateValue(protect);
return id;
}
Program: 179150
Project: 179150
Buggy source:
public void onPlayerInteract(PlayerInteractEvent event){
  if (event.getAction() != Action.RIGHT_CLICK_BLOCK || event.isCancelled()) {
    return;
  }
  int id;
  ProtectedBlock block;
  if ((id=plugin.protectFile.getProtection(event.getClickedBlock().getLocation())) != -1) {
    block=plugin.protectFile.getProtection(id);
    User user=new User(plugin,event.getPlayer());
    if (!block.canUse(user)) {
      event.setCancelled(true);
      user.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      if (!user.getName().equalsIgnoreCase(block.getOwner().getName())) {
        log.info(user.getName() + "String_Node_Str" + block.getOwner().getName()+ "String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
public void onPlayerInteract(PlayerInteractEvent event){
  if ((event.getAction() != Action.RIGHT_CLICK_BLOCK && !(event.getAction() == Action.LEFT_CLICK_BLOCK && event.getClickedBlock().getType() == Material.WOODEN_DOOR)) || event.isCancelled()) {
    return;
  }
  int id;
  ProtectedBlock block;
  if ((id=plugin.protectFile.getProtection(event.getClickedBlock().getLocation())) != -1) {
    block=plugin.protectFile.getProtection(id);
    User user=new User(plugin,event.getPlayer());
    if (!block.canUse(user)) {
      event.setCancelled(true);
      user.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      if (!user.getName().equalsIgnoreCase(block.getOwner().getName())) {
        log.info(user.getName() + "String_Node_Str" + block.getOwner().getName()+ "String_Node_Str"+ block.GetId()+ "String_Node_Str");
      }
    }
  }
}
Program: 179152
Project: 179152
Buggy source:
public int addProtection(PermissionUser owner,Location loc,ProtectionType type){
  int id=getNextId();
  ProtectedBlock protect=null;
switch (type) {
case Chest:
    protectedBlocks.add(protect=new ProtectedChest(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
case Door:
  protectedBlocks.add(protect=new ProtectedDoor(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
}
updateValue(protect);
return id;
}

Fixed version (ground truth):
public int addProtection(PermissionUser owner,Location loc,ProtectionType type){
  int id=getNextId();
  ProtectedBlock protect=null;
switch (type) {
case Chest:
{
      protectedBlocks.add(protect=new ProtectedChest(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
      break;
    }
case Door:
{
    protectedBlocks.add(protect=new ProtectedDoor(plugin,id,owner,new ArrayList<PermissionUser>(),loc));
    break;
  }
}
updateValue(protect);
return id;
}
Program: 179153
Project: 179153
Buggy source:
public boolean onBlock(Player player){
  Location loc=player.getLocation();
  loc.setY(loc.getY() - 1);
  loc.setX(loc.getX() - 1);
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setX(loc.getX() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setX(loc.getX() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean onBlock(Location loc){
  loc.setX(loc.getX() - 1);
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setX(loc.getX() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() - 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setX(loc.getX() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  loc.setZ(loc.getZ() + 1);
  if (loc.getBlock().getType() != Material.AIR) {
    return true;
  }
  return false;
}
Program: 179154
Project: 179154
Buggy source:
@Override public void run(){
  for (  Player player : flyDetect.plugin.getServer().getOnlinePlayers()) {
    if (!onBlock(player)) {
      flyDetect.detect(player);
    }
 else {
      flyDetect.undetect(player);
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  for (  Player player : flyDetect.plugin.getServer().getOnlinePlayers()) {
    Location loc=player.getLocation();
    loc.setY(loc.getY() - 1);
    if (!onBlock(player.getLocation()) && !onBlock(loc)) {
      flyDetect.detect(player);
    }
 else {
      flyDetect.undetect(player);
    }
  }
}
Program: 179155
Project: 179155
Buggy source:
@Override public void onDisable(){
  FreezeTimer.cancel();
  PluginDescriptionFile pdfFile=this.getDescription();
  log.info(pdfFile.getName() + "String_Node_Str" + pdfFile.getVersion()+ "String_Node_Str");
}

Fixed version (ground truth):
@Override public void onDisable(){
  FreezeTimer.cancel();
  chatListen.slow.slowTimer.cancel();
  inv.timer.cancel();
  flyDetect.flyTime.cancel();
  PluginDescriptionFile pdfFile=this.getDescription();
  log.info(pdfFile.getName() + "String_Node_Str" + pdfFile.getVersion()+ "String_Node_Str");
}
Program: 179156
Project: 179156
Buggy source:
public static void open(RemoteWebDriver remoteWebDriver,State state,Map<String,String> params){
  String url=params.get("String_Node_Str");
  if (checkIsRelativeUrl(url)) {
    url=state.getBaseUrl().toString().concat(url);
  }
  remoteWebDriver.get(url);
}

Fixed version (ground truth):
public static void open(RemoteWebDriver remoteWebDriver,State state,Map<String,String> params){
  String url=params.get("String_Node_Str");
  if (checkIsRelativeUrl(url)) {
    String base=state.getBaseUrl().toString();
    if (base.endsWith("String_Node_Str"))     base=base.substring(0,base.length() - 1);
    url=base.concat(url);
  }
  remoteWebDriver.get(url);
}
Program: 179157
Project: 179157
Buggy source:
public static By detectTargetMethod(String target){
  if ((target.startsWith("String_Node_Str")) || (target.startsWith("String_Node_Str")))   By.xpath(target);
  if (target.startsWith("String_Node_Str"))   By.linkText(target);
  if (target.startsWith("String_Node_Str"))   By.cssSelector(target);
  if (target.startsWith("String_Node_Str"))   By.name(target);
  if ((target.startsWith("String_Node_Str")) || (target.startsWith("String_Node_Str"))) {
    return new ByDOM(target);
  }
  if (target.startsWith("String_Node_Str")) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.id(target);
  }
  return new ByIdOrName(target);
}

Fixed version (ground truth):
public static By detectTargetMethod(String target){
  if ((target.startsWith("String_Node_Str")) || (target.startsWith("String_Node_Str"))) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.xpath(target);
  }
  if (target.startsWith("String_Node_Str")) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.linkText(target);
  }
  if (target.startsWith("String_Node_Str")) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.cssSelector(target);
  }
  if (target.startsWith("String_Node_Str")) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.name(target);
  }
  if ((target.startsWith("String_Node_Str")) || (target.startsWith("String_Node_Str"))) {
    return new ByDOM(target);
  }
  if (target.startsWith("String_Node_Str")) {
    target=target.replace("String_Node_Str","String_Node_Str");
    return By.id(target);
  }
  return new ByIdOrName(target);
}
Program: 179158
Project: 179158
Buggy source:
@Test public void testDetectTargetMethod(){
}

Fixed version (ground truth):
/** 
 * This test depends on current Selenium Implementation
 * @TODO add ByDom , when finish ByDom class
 */
@Test public void testDetectTargetMethod(){
  String target;
  target="String_Node_Str";
  By context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
  target="String_Node_Str";
  context=CommandMappings.detectTargetMethod(target);
  assertEquals("String_Node_Str",context.toString());
}
Program: 179159
Project: 179159
Buggy source:
public static void main(String[] args){
  Config.parseConfiguration(args);
  if (Config.isRunnable() == false)   System.exit(0);
  Map<String,Object> config=Config.getConfig();
  String tsPath=(String)config.get("String_Node_Str");
  if (tsPath == null) {
    System.err.println("String_Node_Str");
    System.exit(ExitCodes.SUITE_NAME_EXPECTED);
  }
  try {
    Suite suite=ParserHelper.parseTestSuite(tsPath);
    Executor executor=new Executor(new URL((String)config.get("String_Node_Str")),DesiredCapabilities.firefox());
    SuiteResult suiteResult=executor.execute(suite);
    DefaultResultFormater defaultResultFormater=new DefaultResultFormater();
    defaultResultFormater.AddSuiteResult(suiteResult);
    defaultResultFormater.Process();
  }
 catch (  Exception ex) {
    System.err.println(ex);
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  Config.parseConfiguration(args);
  if (Config.isRunnable() == false)   System.exit(0);
  Map<String,Object> config=Config.getConfig();
  String tsPath=(String)config.get("String_Node_Str");
  if (tsPath == null) {
    System.err.println("String_Node_Str");
    System.exit(ExitCodes.SUITE_NAME_EXPECTED);
  }
  try {
    Suite suite=ParserHelper.parseTestSuite(tsPath);
    Executor executor=new Executor(new URL((String)config.get("String_Node_Str")),DesiredCapabilities.firefox());
    SuiteResult suiteResult=executor.execute(suite);
    executor.close();
    DefaultResultFormater defaultResultFormater=new DefaultResultFormater();
    defaultResultFormater.AddSuiteResult(suiteResult);
    defaultResultFormater.Process();
  }
 catch (  Exception ex) {
    System.err.println(ex);
  }
}
Program: 179160
Project: 179160
Buggy source:
public SuiteResult execute(Suite testSuite){
  for (  Test test : testSuite.getTests()) {
    State state=test.getState();
    while (test.hasNextCommand()) {
      Command command=test.nextCommand();
      String commandText=command.getCommandText();
      Map<String,String> params=state.processParams(command.getParams());
      try {
        CommandMappings.execute(this,state,commandText,params);
      }
 catch (      NoSuchMethodException ex) {
        Logger.getLogger(Executor.class).error("String_Node_Str" + commandText,ex);
      }
      if (state.isAborted())       break;
    }
  }
  suiteResult=new SuiteResult(testSuite);
  fireExecutionDone();
  return suiteResult;
}

Fixed version (ground truth):
public SuiteResult execute(Suite testSuite){
  for (  Test test : testSuite.getTests()) {
    State state=test.getState();
    while (test.hasNextCommand()) {
      Command command=test.nextCommand();
      String commandText=command.getCommandText();
      Map<String,String> params=state.processParams(command.getParams());
      state.setLastCommand(command);
      try {
        CommandMappings.execute(this,state,commandText,params);
      }
 catch (      NoSuchMethodException ex) {
        Logger.getLogger(Executor.class).error("String_Node_Str" + commandText,ex);
      }
      if (state.isAborted())       break;
    }
  }
  suiteResult=new SuiteResult(testSuite);
  fireExecutionDone();
  return suiteResult;
}
Program: 179161
Project: 179161
Buggy source:
protected SecureShell getSecureShell() throws Exception {
  final Logger logger=getLogger(CloudFormation.class);
  final SecureShell ssh=new SecureShell(logger,sshKeyFile,sshUser,sshHost);
  return ssh;
}

Fixed version (ground truth):
protected SecureShell getSecureShell() throws Exception {
  final Logger logger=getLogger(CloudFormation.class);
  final String sshHostConverted=getSSHHost();
  final SecureShell ssh=new SecureShell(logger,sshKeyFile,sshUser,sshHostConverted,maxRetries,timeOut);
  return ssh;
}
Program: 179162
Project: 179162
Buggy source:
private void ensureTargetFolder(final ChannelSftp channel,final String folder) throws Exception {
  logger.debug("String_Node_Str" + folder);
  final String[] pathArray=folder.split("String_Node_Str");
  String root="String_Node_Str";
  for (  final String path : pathArray) {
    if (path.length() == 0) {
      continue;
    }
    if ("String_Node_Str".equals(path)) {
      continue;
    }
    channel.cd(root);
    final String next=makePath(root,path);
    boolean isPresent=false;
    try {
      channel.stat(next);
      isPresent=true;
    }
 catch (    final Exception e) {
      isPresent=false;
    }
    if (isPresent) {
      logger.debug("String_Node_Str" + next);
    }
 else {
      channel.mkdir(path);
      logger.debug("String_Node_Str" + next);
    }
    root=next;
  }
}

Fixed version (ground truth):
private void ensureTargetFolder(final ChannelSftp channel,final String folder) throws Exception {
  logger.debug("String_Node_Str" + folder);
  final String[] pathArray=folder.split("String_Node_Str");
  String root="String_Node_Str";
  for (  final String path : pathArray) {
    if (path.length() == 0) {
      continue;
    }
    if ("String_Node_Str".equals(path)) {
      continue;
    }
    channel.cd(root);
    final String next=makePath(root,path);
    boolean isPresent=false;
    try {
      channel.stat(next);
      isPresent=true;
    }
 catch (    final Exception e) {
      isPresent=false;
    }
    if (isPresent) {
      logger.debug("String_Node_Str" + next);
    }
 else {
      logger.debug("String_Node_Str" + next + "String_Node_Str"+ path);
      channel.mkdir(path);
      logger.debug("String_Node_Str" + next);
    }
    root=next;
  }
}
Program: 179163
Project: 179163
Buggy source:
public int publish(final String source,final String target) throws Exception {
  logger.info("String_Node_Str" + source);
  logger.info("String_Node_Str" + target);
  final Session session=getSession();
  session.connect();
  final ChannelSftp channel=(ChannelSftp)session.openChannel("String_Node_Str");
  channel.connect();
  final SftpProgressMonitor monitor=new SftpProgressMonitor(){
    @Override public void init(    final int op,    final String source,    final String target,    final long max){
      logger.info("String_Node_Str" + target);
    }
    @Override public boolean count(    final long count){
      logger.debug("String_Node_Str" + count);
      return true;
    }
    @Override public void end(){
      logger.debug("String_Node_Str");
    }
  }
;
  final PathMaker maker=new PathMaker(logger,source,target);
  final List<Entry> entryList=maker.getEntryList();
  ensureTargetFolder(channel,target);
  for (  final Entry entry : entryList) {
    final String file=entry.target;
    final int index=file.lastIndexOf("String_Node_Str");
    final String folder=file.substring(0,index);
    ensureTargetFolder(channel,folder);
    channel.put(entry.source,entry.target,monitor,ChannelSftp.OVERWRITE);
  }
  channel.disconnect();
  final int status=channel.getExitStatus();
  session.disconnect();
  logger.info("String_Node_Str" + status);
  return status;
}

Fixed version (ground truth):
public int publish(final String source,final String target) throws Exception {
  logger.info("String_Node_Str" + host);
  logger.info("String_Node_Str" + source);
  logger.info("String_Node_Str" + target);
  final Session session=getSession();
  final ChannelSftp channel=(ChannelSftp)session.openChannel("String_Node_Str");
  channel.connect();
  final SftpProgressMonitor monitor=new SftpProgressMonitor(){
    @Override public void init(    final int op,    final String source,    final String target,    final long max){
      logger.info("String_Node_Str" + target);
    }
    @Override public boolean count(    final long count){
      logger.debug("String_Node_Str" + count);
      return true;
    }
    @Override public void end(){
      logger.debug("String_Node_Str");
    }
  }
;
  final PathMaker maker=new PathMaker(logger,source,target);
  final List<Entry> entryList=maker.getEntryList();
  ensureTargetFolder(channel,target);
  for (  final Entry entry : entryList) {
    final String file=entry.target;
    final int index=file.lastIndexOf("String_Node_Str");
    final String folder=file.substring(0,index);
    ensureTargetFolder(channel,folder);
    channel.put(entry.source,entry.target,monitor,ChannelSftp.OVERWRITE);
  }
  channel.disconnect();
  final int status=channel.getExitStatus();
  session.disconnect();
  logger.info("String_Node_Str" + status);
  return status;
}
Program: 179164
Project: 179164
Buggy source:
public SecureShell(final Logger logger,final File keyFile,final String user,final String host){
  this.logger=logger;
  this.keyFile=keyFile;
  this.user=user;
  this.host=host;
  this.port=22;
}

Fixed version (ground truth):
public SecureShell(final Logger logger,final File keyFile,final String user,final String host,int maxretries,int timeout){
  this.logger=logger;
  this.keyFile=keyFile;
  this.user=user;
  this.host=host;
  this.port=22;
  this.maxretries=maxretries;
  this.timeout=(long)timeout * 1000;
}
Program: 179165
Project: 179165
Buggy source:
private Session getSession() throws Exception {
  final JSch jsch=new JSch();
  jsch.addIdentity(keyFile.getAbsolutePath());
  final Session session=jsch.getSession(user,host,port);
  session.setConfig("String_Node_Str","String_Node_Str");
  return session;
}

Fixed version (ground truth):
private Session getSession() throws Exception {
  logger.debug("String_Node_Str" + host + "String_Node_Str"+ port+ "String_Node_Str"+ user);
  final JSch jsch=new JSch();
  jsch.addIdentity(keyFile.getAbsolutePath());
  final Session session=jsch.getSession(user,host,port);
  session.setConfig("String_Node_Str","String_Node_Str");
  sessionConnectRetry(session);
  return session;
}
Program: 179166
Project: 179166
Buggy source:
public int execute(final String command) throws Exception {
  logger.info("String_Node_Str" + command);
  final Session session=getSession();
  session.connect();
  final ChannelExec channel=(ChannelExec)session.openChannel("String_Node_Str");
  channel.setCommand(command);
  channel.connect();
  final InputStream input=channel.getInputStream();
  final Reader reader=new InputStreamReader(input);
  final BufferedReader buffered=new BufferedReader(reader);
  while (true) {
    final String line=buffered.readLine();
    if (line == null) {
      break;
    }
    logger.info("String_Node_Str" + line);
  }
  channel.disconnect();
  final int status=channel.getExitStatus();
  session.disconnect();
  logger.info("String_Node_Str" + status);
  return status;
}

Fixed version (ground truth):
public int execute(final String command) throws Exception {
  logger.info("String_Node_Str" + command + "String_Node_Str"+ host);
  final Session session=getSession();
  final ChannelExec channel=(ChannelExec)session.openChannel("String_Node_Str");
  channel.setCommand(command);
  channel.setPty(true);
  channel.connect();
  final InputStream input=channel.getInputStream();
  final Reader reader=new InputStreamReader(input);
  final BufferedReader buffered=new BufferedReader(reader);
  while (true) {
    final String line=buffered.readLine();
    if (line == null) {
      break;
    }
    logger.info("String_Node_Str" + line);
  }
  channel.disconnect();
  final int status=channel.getExitStatus();
  session.disconnect();
  logger.info("String_Node_Str" + status);
  return status;
}
Program: 179167
Project: 179167
Buggy source:
@GET public Response childDSRs(){
  if (EMIRServer.getServerProperties().isGlobalEnabled()) {
    return Response.noContent().entity("String_Node_Str").build();
  }
  List<String> resp;
  resp=NeighborsManager.getInstance().getNeighbors();
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}

Fixed version (ground truth):
@GET public Response childDSRs(){
  if (!EMIRServer.getServerProperties().isGlobalEnabled()) {
    return Response.noContent().entity("String_Node_Str").build();
  }
  List<String> resp;
  resp=NeighborsManager.getInstance().getNeighbors();
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}
Program: 179168
Project: 179168
Buggy source:
@GET public Response childDSRs(){
  String parent=DSRServer.getProperty(ServerConstants.REGISTRY_PARENT_URL);
  if (parent.isEmpty()) {
    parent="String_Node_Str";
  }
  return Response.ok().entity(parent).build();
}

Fixed version (ground truth):
@GET public Response childDSRs(){
  String parent=DSRServer.getProperty(ServerConstants.REGISTRY_PARENT_URL);
  if (parent == null || parent.isEmpty()) {
    parent="String_Node_Str";
  }
  return Response.ok().entity(parent).build();
}
Program: 179169
Project: 179169
Buggy source:
@GET public Response childDSRs(){
  System.out.println("String_Node_Str");
  List<String> resp;
  resp=ChildrenManager.getInstance().getChildDSRs();
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    System.out.println(i + "String_Node_Str" + resp.get(i));
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}

Fixed version (ground truth):
@GET public Response childDSRs(){
  System.out.println("String_Node_Str");
  List<String> resp;
  try {
    resp=ChildrenManager.getInstance().getChildDSRs();
  }
 catch (  ConcurrentModificationException e) {
    resp=ChildrenManager.getInstance().getChildDSRs();
  }
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    System.out.println(i + "String_Node_Str" + resp.get(i));
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}
Program: 179170
Project: 179170
Buggy source:
@GET public Response childDSRs(){
  List<String> resp;
  resp=NeighborsManager.getInstance().getNeighbors();
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}

Fixed version (ground truth):
@GET public Response childDSRs(){
  if ("String_Node_Str".equalsIgnoreCase(DSRServer.getProperty(ServerConstants.REGISTRY_GLOBAL_ENABLE,"String_Node_Str").toString())) {
    return Response.noContent().entity("String_Node_Str").build();
  }
  List<String> resp;
  resp=NeighborsManager.getInstance().getNeighbors();
  JSONArray respArray=new JSONArray();
  for (int i=0; i < resp.size(); i++) {
    respArray.put(resp.get(i));
  }
  return Response.ok().entity(respArray).build();
}
Program: 179171
Project: 179171
Buggy source:
/** 
 * @param messageGenerationTime
 * @param serviceurl 
 * @return
 * @throws PersistentStoreFailureException
 * @throws QueryException
 */
public boolean checkMessageGenerationTime(String messageTime,String serviceurl) throws QueryException, PersistentStoreFailureException {
  Map<String,String> map=new HashMap<String,String>();
  map.put(ServiceBasicAttributeNames.SERVICE_ENDPOINT_URL.getAttributeName(),serviceurl);
  JSONObject jo=new JSONObject(map);
  List<ServiceObject> storedEntries=serviceDB.query(jo.toString());
  if (storedEntries.size() > 0) {
    Date messageDate=new Date();
    try {
      messageDate=ServiceUtil.UTCISODateFormat.parse(messageTime);
    }
 catch (    ParseException e) {
    }
    Date entryDate=storedEntries.get(0).getUpdateSince();
    if (messageDate.compareTo(entryDate) > 0) {
      return true;
    }
 else {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
/** 
 * @param messageGenerationTime
 * @param serviceurl 
 * @return
 * @throws PersistentStoreFailureException
 * @throws QueryException
 */
public boolean checkMessageGenerationTime(String messageTime,String serviceurl) throws QueryException, PersistentStoreFailureException {
  Map<String,String> map=new HashMap<String,String>();
  map.put(ServiceBasicAttributeNames.SERVICE_ENDPOINT_URL.getAttributeName(),serviceurl);
  JSONObject jo=new JSONObject(map);
  List<ServiceObject> storedEntries=serviceDB.query(jo.toString());
  if (storedEntries.size() > 0) {
    Date messageDate=new Date();
    try {
      messageDate=ServiceUtil.UTCISODateFormat.parse(ServiceUtil.toUTCFormat(messageDate));
      messageDate=ServiceUtil.UTCISODateFormat.parse(messageTime);
    }
 catch (    ParseException e) {
    }
    Date entryDate=storedEntries.get(0).getUpdateSince();
    if (messageDate.compareTo(entryDate) > 0) {
      return true;
    }
 else {
      return false;
    }
  }
  return true;
}
Program: 179172
Project: 179172
Buggy source:
/** 
 * @param jo
 * @throws JSONException
 * @throws InvalidServiceDescriptionException
 * @throws NonExistingResourceException
 * @throws MultipleResourceException
 */
public JSONObject updateService(JSONObject jo) throws UnknownServiceException, InvalidServiceDescriptionException, JSONException, WebApplicationException {
  if (!ServiceUtil.isValidServiceInfo(jo)) {
    throw new InvalidServiceDescriptionException("String_Node_Str");
  }
  if (!jo.has(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON.getAttributeName())) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    DateUtil.setExpiryTime(jo,Integer.valueOf(DSRServer.getProperty(ServerConstants.REGISTRY_EXPIRY_DEFAULT,"String_Node_Str")));
  }
  if (!jo.has(ServiceBasicAttributeNames.SERVICE_CREATED_ON.getAttributeName())) {
    JSONObject date=new JSONObject();
    date.put("String_Node_Str",ServiceUtil.toUTCFormat(new Date()));
    jo.put(ServiceBasicAttributeNames.SERVICE_CREATED_ON.getAttributeName(),date);
  }
  jo=DateUtil.addDate(jo,ServiceBasicAttributeNames.SERVICE_UPDATE_SINCE.getAttributeName(),new Date());
  ServiceObject sObj=new ServiceObject(jo);
  try {
    serviceDB.update(sObj);
    return jo;
  }
 catch (  MultipleResourceException e) {
    e.printStackTrace();
  }
catch (  NonExistingResourceException e) {
    throw new WebApplicationException(Status.CONFLICT);
  }
catch (  PersistentStoreFailureException e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
/** 
 * @param jo
 * @throws JSONException
 * @throws InvalidServiceDescriptionException
 * @throws NonExistingResourceException
 * @throws MultipleResourceException
 */
public JSONObject updateService(JSONObject jo) throws UnknownServiceException, InvalidServiceDescriptionException, JSONException, WebApplicationException {
  if (!ServiceUtil.isValidServiceInfo(jo)) {
    throw new InvalidServiceDescriptionException("String_Node_Str");
  }
  if (!jo.has(ServiceBasicAttributeNames.SERVICE_EXPIRE_ON.getAttributeName())) {
    if (log.isDebugEnabled()) {
      log.debug("String_Node_Str");
    }
    DateUtil.setExpiryTime(jo,Integer.valueOf(DSRServer.getProperty(ServerConstants.REGISTRY_EXPIRY_DEFAULT,"String_Node_Str")));
  }
  if (!jo.has(ServiceBasicAttributeNames.SERVICE_CREATED_ON.getAttributeName())) {
    JSONObject date=new JSONObject();
    date.put("String_Node_Str",ServiceUtil.toUTCFormat(new Date()));
    jo.put(ServiceBasicAttributeNames.SERVICE_CREATED_ON.getAttributeName(),date);
  }
  if (!jo.has(ServiceBasicAttributeNames.SERVICE_UPDATE_SINCE.getAttributeName())) {
    jo=DateUtil.addDate(jo,ServiceBasicAttributeNames.SERVICE_UPDATE_SINCE.getAttributeName(),new Date());
  }
  ServiceObject sObj=new ServiceObject(jo);
  try {
    serviceDB.update(sObj);
    return jo;
  }
 catch (  MultipleResourceException e) {
    e.printStackTrace();
  }
catch (  NonExistingResourceException e) {
    throw new WebApplicationException(Status.CONFLICT);
  }
catch (  PersistentStoreFailureException e) {
    e.printStackTrace();
  }
  return null;
}
Program: 179177
Project: 179177
Buggy source:
private void setSecurityProperties(){
  try {
    if (getProperty(ServerConstants.REGISTRY_SCHEME).equalsIgnoreCase("String_Node_Str")) {
      conf.setProperty(ISecurityProperties.REGISTRY_SSL_ENABLED,"String_Node_Str");
    }
    if ("String_Node_Str".equalsIgnoreCase(getProperty(ISecurityProperties.REGISTRY_SSL_ENABLED,"String_Node_Str"))) {
      sProps=new DSRSecurityProperties(conf.getProperties());
    }
  }
 catch (  UnrecoverableKeyException e) {
    e.printStackTrace();
  }
catch (  KeyStoreException e) {
    e.printStackTrace();
  }
catch (  NoSuchAlgorithmException e) {
    e.printStackTrace();
  }
catch (  CertificateException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void setSecurityProperties(){
  try {
    if (getProperty(ServerConstants.REGISTRY_SCHEME,"String_Node_Str").equalsIgnoreCase("String_Node_Str")) {
      conf.setProperty(ISecurityProperties.REGISTRY_SSL_ENABLED,"String_Node_Str");
    }
    if ("String_Node_Str".equalsIgnoreCase(getProperty(ISecurityProperties.REGISTRY_SSL_ENABLED,"String_Node_Str"))) {
      sProps=new DSRSecurityProperties(conf.getProperties());
    }
  }
 catch (  UnrecoverableKeyException e) {
    e.printStackTrace();
  }
catch (  KeyStoreException e) {
    e.printStackTrace();
  }
catch (  NoSuchAlgorithmException e) {
    e.printStackTrace();
  }
catch (  CertificateException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
}