nus-yam/ex-repair huggingface dataset:
Program: 94045
Project: 94045
Buggy source:
public void onPlayerMove(PlayerMoveEvent event){
  if (!plugin.isAuthorized(event.getPlayer())) {
    if (!checkGuest(event.getPlayer(),Config.guests_movement)) {
      event.setCancelled(true);
      event.getPlayer().teleport(event.getFrom());
    }
  }
}

Fixed version (ground truth):
public void onPlayerMove(PlayerMoveEvent event){
  if (event.isCancelled()) {
    return;
  }
  if (!plugin.isAuthorized(event.getPlayer())) {
    if (!checkGuest(event.getPlayer(),Config.guests_movement)) {
      event.getPlayer().teleport(event.getFrom());
    }
  }
}
Program: 94047
Project: 94047
Buggy source:
public static boolean check_hash(String password,String hash){
  if (hash.length() == 34) {
    Util.logging.Info("String_Node_Str" + _hash_crypt_private(password,hash));
    return _hash_crypt_private(password,hash).equals(hash);
  }
 else {
    Util.logging.Info("String_Node_Str" + Encryption.md5(password));
    return Encryption.md5(password).equals(hash);
  }
}

Fixed version (ground truth):
public static boolean check_hash(String password,String hash){
  long start=Util.timeMS();
  boolean check;
  if (hash.length() == 34) {
    check=_hash_crypt_private(password,hash).equals(hash);
  }
 else {
    check=Encryption.md5(password).equals(hash);
  }
  long stop=Util.timeMS();
  Util.logging.timeUsage(stop - start,"String_Node_Str");
  return check;
}
Program: 94048
Project: 94048
Buggy source:
static String _hash_crypt_private(String password,String setting){
  String output="String_Node_Str";
  if (!setting.substring(0,3).equals("String_Node_Str")) {
    Util.logging.Info("String_Node_Str");
    return output;
  }
  int count_log2=itoa64.indexOf(setting.charAt(3));
  if (count_log2 < 7 || count_log2 > 30) {
    Util.logging.Info("String_Node_Str");
    return output;
  }
  int count=1 << count_log2;
  String salt=setting.substring(4,12);
  if (salt.length() != 8) {
    Util.logging.Info("String_Node_Str");
    return output;
  }
  String m1=Encryption.md5(salt + password);
  String hash=Encryption.pack(m1);
  do {
    Util.logging.Info("String_Node_Str");
    hash=Encryption.pack(Encryption.md5(hash + password));
  }
 while (--count > 0);
  Util.logging.Info("String_Node_Str");
  output=setting.substring(0,12) + _hash_encode64(hash,16);
  return output;
}

Fixed version (ground truth):
static String _hash_crypt_private(String password,String setting){
  String output="String_Node_Str";
  if (!setting.substring(0,3).equals("String_Node_Str")) {
    return output;
  }
  int count_log2=itoa64.indexOf(setting.charAt(3));
  if (count_log2 < 7 || count_log2 > 30) {
    return output;
  }
  int count=1 << count_log2;
  String salt=setting.substring(4,12);
  if (salt.length() != 8) {
    return output;
  }
  String m1=Encryption.md5(salt + password);
  String hash=Encryption.pack(m1);
  int counter=0;
  do {
    counter++;
    hash=Encryption.pack(Encryption.md5(hash + password));
  }
 while (--count > 0);
  Util.logging.Info("String_Node_Str" + counter + "String_Node_Str");
  output=setting.substring(0,12) + _hash_encode64(hash,16);
  return output;
}
Program: 94050
Project: 94050
Buggy source:
public static String removeColors(String toremove){
  logging.Debug("String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  return toremove;
}

Fixed version (ground truth):
public static String removeColors(String toremove){
  long start=Util.timeMS();
  logging.Debug("String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  toremove=toremove.replace("String_Node_Str","String_Node_Str");
  long stop=Util.timeMS();
  Util.logging.Debug("String_Node_Str" + ((stop - start) / 1000) + "String_Node_Str"+ (stop - start)+ "String_Node_Str");
  return toremove;
}
Program: 94052
Project: 94052
Buggy source:
public boolean checkTimeout(Player player) throws IOException {
  Util.logging.Debug("String_Node_Str");
  if (plugin.isAuthorized(player) == false && AuthDB.AuthDB_Timeouts.containsKey(player.getName())) {
    Messages.sendMessage(Message.idle_kick,player,null);
    return true;
  }
  return false;
}

Fixed version (ground truth):
public void checkTimeout(Player player){
  Util.logging.Debug("String_Node_Str");
  if (plugin.isAuthorized(player) == false && AuthDB.AuthDB_Timeouts.containsKey(player.getName())) {
    if (plugin.isRegistered("String_Node_Str",player.getName())) {
      Messages.sendMessage(Message.login_timeout,player,null);
    }
 else {
      Messages.sendMessage(Message.register_timeout,player,null);
    }
  }
}
Program: 94056
Project: 94056
Buggy source:
public void onDisable(){
  for (  Player p : getServer().getOnlinePlayers()) {
    eBean eBeanClass=eBean.find(p);
    eBeanClass.setReloadtime(Util.TimeStamp());
    eBean.save(eBeanClass);
    Processes.Logout(p);
  }
  Util.Log("String_Node_Str",PluginName + "String_Node_Str" + PluginVersion+ "String_Node_Str");
  Plugin checkCraftIRC=getServer().getPluginManager().getPlugin("String_Node_Str");
  if ((checkCraftIRC != null) && (checkCraftIRC.isEnabled()) && (Config.CraftIRC_enabled == true))   zCraftIRC.SendMessage(Message.OnDisable,null);
  disableInventory();
  authorizedNames.clear();
  AuthTimeDB.clear();
  AuthDBRemindLogin.clear();
  AuthDBSpamMessage.clear();
  AuthDBSpamMessageTime.clear();
  AuthOtherNamesDB.clear();
  AuthPasswordTriesDB.clear();
  db.clear();
  db2.clear();
  db3.clear();
  MySQL.close();
}

Fixed version (ground truth):
public void onDisable(){
  for (  Player p : getServer().getOnlinePlayers()) {
    eBean eBeanClass=eBean.CheckPlayer(p);
    if (eBeanClass.getAuthorized().equalsIgnoreCase("String_Node_Str")) {
      eBeanClass.setReloadtime(Util.TimeStamp());
      eBean.save(eBeanClass);
    }
    Processes.Logout(p);
  }
  Util.Log("String_Node_Str",PluginName + "String_Node_Str" + PluginVersion+ "String_Node_Str");
  Plugin checkCraftIRC=getServer().getPluginManager().getPlugin("String_Node_Str");
  if ((checkCraftIRC != null) && (checkCraftIRC.isEnabled()) && (Config.CraftIRC_enabled == true))   zCraftIRC.SendMessage(Message.OnDisable,null);
  disableInventory();
  authorizedNames.clear();
  AuthTimeDB.clear();
  AuthDBRemindLogin.clear();
  AuthDBSpamMessage.clear();
  AuthDBSpamMessageTime.clear();
  AuthOtherNamesDB.clear();
  AuthPasswordTriesDB.clear();
  db.clear();
  db2.clear();
  db3.clear();
  MySQL.close();
}
Program: 94057
Project: 94057
Buggy source:
public static ItemStack[] getInventory(Player player){
  eBean eBeanClass=eBean.find(player);
  if (eBeanClass != null) {
    String data=eBeanClass.getInventory();
    if (data != "String_Node_Str" && data != null) {
      String[] inv=Util.split(data,"String_Node_Str");
      ItemStack[] inventory=null;
      for (int i=0; i < inv.length - 1; i++) {
        String line=inv[i];
        String[] split=line.split("String_Node_Str");
        if (split.length == 4) {
          int type=Integer.valueOf(split[0]).intValue();
          inventory[i]=new ItemStack(type,Integer.valueOf(split[1]).intValue());
          short dur=Short.valueOf(split[3]).shortValue();
          if (dur > 0)           inventory[i].setDurability(dur);
          byte dd;
          if (split[2].length() == 0)           dd=0;
 else           dd=Byte.valueOf(split[2]).byteValue();
          Material mat=Material.getMaterial(type);
          if (mat == null)           inventory[i].setData(new MaterialData(type,dd));
 else           inventory[i].setData(mat.getNewData(dd));
          i=(short)(i + 1);
        }
      }
      eBeanClass.setInventory(null);
      AuthDB.Database.save(eBeanClass);
      return inventory;
    }
  }
  return null;
}

Fixed version (ground truth):
public static ItemStack[] getInventory(Player player){
  eBean eBeanClass=eBean.find(player);
  if (eBeanClass != null) {
    String data=eBeanClass.getInventory();
    if (data != "String_Node_Str" && data != null) {
      String[] inv=Util.split(data,"String_Node_Str");
      ItemStack[] inventory=new ItemStack[36];
      for (int i=0; i < inv.length - 1; i++) {
        String line=inv[i];
        String[] split=line.split("String_Node_Str");
        if (split.length == 4) {
          int type=Integer.valueOf(split[0]).intValue();
          inventory[i]=new ItemStack(type,Integer.valueOf(split[1]).intValue());
          short dur=Short.valueOf(split[3]).shortValue();
          if (dur > 0)           inventory[i].setDurability(dur);
          byte dd;
          if (split[2].length() == 0)           dd=0;
 else           dd=Byte.valueOf(split[2]).byteValue();
          Material mat=Material.getMaterial(type);
          if (mat == null)           inventory[i].setData(new MaterialData(type,dd));
 else           inventory[i].setData(mat.getNewData(dd));
          i=(short)(i + 1);
        }
      }
      eBeanClass.setInventory(null);
      AuthDB.Database.save(eBeanClass);
      return inventory;
    }
  }
  return null;
}
Program: 94059
Project: 94059
Buggy source:
public void onPlayerLogin(PlayerLoginEvent event){
  Player player=event.getPlayer();
  try {
    Util.CheckScript("String_Node_Str",Config.script_name,player.getName(),null,null,null);
    Util.CheckScript("String_Node_Str",Config.script_name,player.getName(),null,null,null);
  }
 catch (  SQLException e) {
    e.printStackTrace();
  }
  if (Config.session_protect && Util.CheckIfLoggedIn(player)) {
    Messages.SendMessage(Message.session_protected,player,event);
  }
  if (Config.filter_action.equalsIgnoreCase("String_Node_Str") || Config.filter_action.equalsIgnoreCase("String_Node_Str")) {
    String name=player.getName();
    if (Util.CheckFilter("String_Node_Str",name) == false && Util.CheckWhitelist("String_Node_Str",player) == false) {
      Util.Debug("String_Node_Str");
      if (Config.filter_action.equalsIgnoreCase("String_Node_Str"))       Messages.SendMessage(Message.filter_username,player,event);
    }
  }
  if (player.getName().length() < Integer.parseInt(Config.username_minimum)) {
    Messages.SendMessage(Message.username_minimum,player,event);
  }
 else   if (player.getName().length() > Integer.parseInt(Config.username_maximum)) {
    Messages.SendMessage(Message.username_maximum,player,event);
  }
  if (Config.link_rename && Util.CheckOtherName(player.getName()) != player.getName()) {
    Util.RenamePlayer(player,Util.CheckOtherName(player.getName()));
  }
}

Fixed version (ground truth):
public void onPlayerLogin(PlayerLoginEvent event){
  Player player=event.getPlayer();
  eBean.sync(player);
  if (Config.session_protect && Util.CheckIfLoggedIn(player)) {
    Messages.SendMessage(Message.session_protected,player,event);
  }
  if (Config.filter_action.equalsIgnoreCase("String_Node_Str") || Config.filter_action.equalsIgnoreCase("String_Node_Str")) {
    String name=player.getName();
    if (Util.CheckFilter("String_Node_Str",name) == false && Util.CheckWhitelist("String_Node_Str",player) == false) {
      Util.Debug("String_Node_Str");
      if (Config.filter_action.equalsIgnoreCase("String_Node_Str"))       Messages.SendMessage(Message.filter_username,player,event);
    }
  }
  if (player.getName().length() < Integer.parseInt(Config.username_minimum)) {
    Messages.SendMessage(Message.username_minimum,player,event);
  }
 else   if (player.getName().length() > Integer.parseInt(Config.username_maximum)) {
    Messages.SendMessage(Message.username_maximum,player,event);
  }
  if (Config.link_rename && Util.CheckOtherName(player.getName()) != player.getName()) {
    Util.RenamePlayer(player,Util.CheckOtherName(player.getName()));
  }
}
Program: 94060
Project: 94060
Buggy source:
public static boolean Login(Player player){
  if (!AuthDB.isAuthorized(player)) {
    long timestamp=Util.TimeStamp();
    if (!AuthDB.AuthTimeDB.containsKey(player.getName())) {
      AuthDB.AuthTimeDB.put(player.getName(),"String_Node_Str" + timestamp);
    }
    AuthDB.authorizedNames.add(player.getName());
    eBean eBeanClass=eBean.CheckPlayer(player);
    eBeanClass.setAuthorized("String_Node_Str");
    AuthDB.Database.save(eBeanClass);
    if (!AuthDB.db3.containsKey(Encryption.md5(player.getName()))) {
      AuthDB.db3.put(Encryption.md5(player.getName()),"String_Node_Str");
    }
    if (AuthDB.db2.containsKey(Encryption.md5(player.getName() + Util.GetIP(player)))) {
      AuthDB.db2.put(Encryption.md5(player.getName() + Util.GetIP(player)),"String_Node_Str" + timestamp);
    }
    ItemStack[] inv=AuthDB.getInventory(player);
    if (inv != null) {
      player.getInventory().setContents(inv);
    }
    return true;
  }
  return false;
}

Fixed version (ground truth):
public static boolean Login(Player player){
  if (!AuthDB.isAuthorized(player)) {
    long timestamp=Util.TimeStamp();
    if (!AuthDB.AuthTimeDB.containsKey(player.getName())) {
      AuthDB.AuthTimeDB.put(player.getName(),"String_Node_Str" + timestamp);
    }
    AuthDB.authorizedNames.add(player.getName());
    eBean eBeanClass=eBean.CheckPlayer(player);
    eBeanClass.setAuthorized("String_Node_Str");
    eBeanClass.setRegistred("String_Node_Str");
    AuthDB.Database.save(eBeanClass);
    if (!AuthDB.db3.containsKey(Encryption.md5(player.getName()))) {
      AuthDB.db3.put(Encryption.md5(player.getName()),"String_Node_Str");
    }
    if (AuthDB.db2.containsKey(Encryption.md5(player.getName() + Util.GetIP(player)))) {
      AuthDB.db2.put(Encryption.md5(player.getName() + Util.GetIP(player)),"String_Node_Str" + timestamp);
    }
    ItemStack[] inv=AuthDB.getInventory(player);
    if (inv != null) {
      player.getInventory().setContents(inv);
    }
    return true;
  }
  return false;
}
Program: 94062
Project: 94062
Buggy source:
public void onEntityDamage(EntityDamageEvent event){
  if (event.getEntity() instanceof Player) {
    if (event.getCause().name().equals("String_Node_Str")) {
      Player p=(Player)event.getEntity();
      if (!CheckGuest(p,Config.guests_health)) {
        event.setCancelled(true);
      }
    }
 else     if (event.getCause().name().equals("String_Node_Str")) {
      Player p=(Player)event.getEntity();
      EntityDamageByEntityEvent e=(EntityDamageByEntityEvent)event;
      if ((e.getEntity() instanceof Player)) {
        Player t=(Player)e.getDamager();
        if (!CheckGuest(t,Config.guests_pvp)) {
          if (!CheckGuest(p,Config.guests_health)) {
            event.setCancelled(true);
          }
        }
      }
    }
  }
 else   if ((event.getEntity() instanceof Animals) || (event.getEntity() instanceof Monster)) {
    if (!(event instanceof EntityDamageByEntityEvent)) {
      return;
    }
    EntityDamageByEntityEvent e=(EntityDamageByEntityEvent)event;
    Player t=(Player)e.getDamager();
    if ((e.getEntity() instanceof Player) && CheckGuest(t,Config.guests_mobdamage) == false) {
      event.setCancelled(true);
    }
  }
}

Fixed version (ground truth):
public void onEntityDamage(EntityDamageEvent event){
  if (event.getEntity() instanceof Player) {
    if (event.getCause().name().equals("String_Node_Str")) {
      Player p=(Player)event.getEntity();
      if (!CheckGuest(p,Config.guests_health)) {
        event.setCancelled(true);
      }
    }
 else     if (event.getCause().name().equals("String_Node_Str")) {
      Player p=(Player)event.getEntity();
      EntityDamageByEntityEvent e=(EntityDamageByEntityEvent)event;
      if ((e.getEntity() instanceof Player)) {
        Player t=(Player)e.getDamager();
        if (!CheckGuest(t,Config.guests_pvp)) {
          if (!CheckGuest(p,Config.guests_health)) {
            event.setCancelled(true);
          }
        }
      }
    }
  }
 else   if ((event.getEntity() instanceof Animals) || (event.getEntity() instanceof Monster)) {
    if (!(event instanceof EntityDamageByEntityEvent)) {
      return;
    }
    EntityDamageByEntityEvent e=(EntityDamageByEntityEvent)event;
    Player t=(Player)e.getDamager();
    if ((e.getDamager() instanceof Player) && CheckGuest(t,Config.guests_mobdamage) == false) {
      event.setCancelled(true);
    }
  }
}
Program: 94064
Project: 94064
Buggy source:
public boolean checkPassword(String player,String password){
  try {
    if (Config.script_name.equals(Config.script_name1)) {
      if (phpBB3.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name2)) {
      if (SMF1.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name3)) {
      if (SMF2.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name4)) {
      if (myBB1_6.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name5)) {
      if (vB4_1.checkpassword(player.toLowerCase(),password))       return true;
    }
 else {
      Stop("String_Node_Str");
    }
  }
 catch (  SQLException e) {
    e.printStackTrace();
    Stop("String_Node_Str");
  }
  return false;
}

Fixed version (ground truth):
public boolean checkPassword(String player,String password){
  try {
    try {
      MySQL.connect();
    }
 catch (    ClassNotFoundException e) {
      Util.Debug("String_Node_Str");
      e.printStackTrace();
    }
    if (Config.script_name.equals(Config.script_name1)) {
      if (phpBB3.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name2)) {
      if (SMF1.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name3)) {
      if (SMF2.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name4)) {
      if (myBB1_6.checkpassword(player.toLowerCase(),password))       return true;
    }
 else     if (Config.script_name.equals(Config.script_name5)) {
      if (vB4_1.checkpassword(player.toLowerCase(),password))       return true;
    }
 else {
      Stop("String_Node_Str");
    }
    MySQL.close();
  }
 catch (  SQLException e) {
    e.printStackTrace();
    Stop("String_Node_Str");
  }
  return false;
}
Program: 94065
Project: 94065
Buggy source:
public boolean isRegistered(String player){
  try {
    Util.Debug("String_Node_Str");
    if (Config.script_name.equals(Config.script_name1)) {
      if (phpBB3.checkuser(player.toLowerCase())) {
        return true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name2)) {
      if (SMF1.checkuser(player.toLowerCase())) {
        return true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name3)) {
      if (SMF2.checkuser(player.toLowerCase())) {
        return true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name4)) {
      if (myBB1_6.checkuser(player.toLowerCase())) {
        return true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name5)) {
      if (vB4_1.checkuser(player.toLowerCase())) {
        return true;
      }
    }
 else {
      Stop("String_Node_Str");
    }
    Util.Debug("String_Node_Str");
  }
 catch (  SQLException e) {
    e.printStackTrace();
    Stop("String_Node_Str");
  }
  return false;
}

Fixed version (ground truth):
public boolean isRegistered(String player){
  try {
    Util.Debug("String_Node_Str");
    boolean dupe=false;
    try {
      MySQL.connect();
    }
 catch (    ClassNotFoundException e) {
      Util.Debug("String_Node_Str");
      e.printStackTrace();
    }
    if (Config.script_name.equals(Config.script_name1)) {
      if (phpBB3.checkuser(player.toLowerCase())) {
        dupe=true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name2)) {
      if (SMF1.checkuser(player.toLowerCase())) {
        dupe=true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name3)) {
      if (SMF2.checkuser(player.toLowerCase())) {
        dupe=true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name4)) {
      if (myBB1_6.checkuser(player.toLowerCase())) {
        dupe=true;
      }
    }
 else     if (Config.script_name.equals(Config.script_name5)) {
      if (vB4_1.checkuser(player.toLowerCase())) {
        dupe=true;
      }
    }
 else {
      Stop("String_Node_Str");
    }
    Util.Debug("String_Node_Str");
    MySQL.close();
    return dupe;
  }
 catch (  SQLException e) {
    e.printStackTrace();
    Stop("String_Node_Str");
  }
  return false;
}
Program: 94066
Project: 94066
Buggy source:
public void register(String player,String password,String email,String ipAddress) throws IOException, SQLException {
  if (Config.script_name.equals(Config.script_name1)) {
    phpBB3.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name2)) {
    SMF1.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name3)) {
    SMF2.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name4)) {
    myBB1_6.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name5)) {
    vB4_1.adduser(player,email,password,ipAddress);
  }
 else {
    Stop("String_Node_Str");
  }
}

Fixed version (ground truth):
public void register(String player,String password,String email,String ipAddress) throws IOException, SQLException {
  try {
    MySQL.connect();
  }
 catch (  ClassNotFoundException e) {
    Util.Debug("String_Node_Str");
    e.printStackTrace();
  }
  if (Config.script_name.equals(Config.script_name1)) {
    phpBB3.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name2)) {
    SMF1.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name3)) {
    SMF2.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name4)) {
    myBB1_6.adduser(player,email,password,ipAddress);
  }
 else   if (Config.script_name.equals(Config.script_name5)) {
    vB4_1.adduser(player,email,password,ipAddress);
  }
 else {
    Stop("String_Node_Str");
  }
  MySQL.close();
}
Program: 94069
Project: 94069
Buggy source:
public static void PostInfo(String b407f35cb00b96936a585c4191fc267a,String f13a437cb9b1ac68b49d597ed7c4bfde,String cafd6e81e3a478a7fe0b40e7502bf1f) throws IOException {
  String e5544ab05d8c25c1a5da5cd59144fb=Util.md5(b407f35cb00b96936a585c4191fc267a + f13a437cb9b1ac68b49d597ed7c4bfde + cafd6e81e3a478a7fe0b40e7502bf1f);
  String data=URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str" + URLEncoder.encode(b407f35cb00b96936a585c4191fc267a,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(f13a437cb9b1ac68b49d597ed7c4bfde,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(cafd6e81e3a478a7fe0b40e7502bf1f,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(e5544ab05d8c25c1a5da5cd59144fb,"String_Node_Str");
  URL url=new URL("String_Node_Str");
  URLConnection conn=url.openConnection();
  conn.setRequestProperty("String_Node_Str",e5544ab05d8c25c1a5da5cd59144fb);
  conn.setDoOutput(true);
  OutputStreamWriter wr=new OutputStreamWriter(conn.getOutputStream());
  wr.write(data);
  wr.flush();
  BufferedReader rd=new BufferedReader(new InputStreamReader(conn.getInputStream()));
  String line;
  while ((line=rd.readLine()) != null) {
    System.out.println(line);
  }
}

Fixed version (ground truth):
public static void PostInfo(String b407f35cb00b96936a585c4191fc267a,String f13a437cb9b1ac68b49d597ed7c4bfde,String cafd6e81e3a478a7fe0b40e7502bf1f) throws IOException {
  String e5544ab05d8c25c1a5da5cd59144fb=Util.md5(b407f35cb00b96936a585c4191fc267a + f13a437cb9b1ac68b49d597ed7c4bfde + cafd6e81e3a478a7fe0b40e7502bf1f);
  String data=URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str" + URLEncoder.encode(b407f35cb00b96936a585c4191fc267a,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(f13a437cb9b1ac68b49d597ed7c4bfde,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(cafd6e81e3a478a7fe0b40e7502bf1f,"String_Node_Str");
  data+="String_Node_Str" + URLEncoder.encode("String_Node_Str","String_Node_Str") + "String_Node_Str"+ URLEncoder.encode(e5544ab05d8c25c1a5da5cd59144fb,"String_Node_Str");
  URL url=new URL("String_Node_Str");
  URLConnection conn=url.openConnection();
  conn.setRequestProperty("String_Node_Str",e5544ab05d8c25c1a5da5cd59144fb);
  conn.setDoOutput(true);
  OutputStreamWriter wr=new OutputStreamWriter(conn.getOutputStream());
  wr.write(data);
  wr.flush();
}
Program: 94070
Project: 94070
Buggy source:
public static String getfromtable(String table,String column1,String column2,String value) throws SQLException {
  String query="String_Node_Str" + column1 + "String_Node_Str"+ table+ "String_Node_Str"+ column2+ "String_Node_Str"+ value+ "String_Node_Str";
  Statement stmt=mysql.createStatement();
  ResultSet rs=stmt.executeQuery(query);
  if (rs.next()) {
    return rs.getString(1);
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
public static String getfromtable(String table,String column1,String column2,String value) throws SQLException {
  try {
    MySQL.connect();
  }
 catch (  ClassNotFoundException e) {
    Util.Debug("String_Node_Str");
    e.printStackTrace();
  }
  String query="String_Node_Str" + column1 + "String_Node_Str"+ table+ "String_Node_Str"+ column2+ "String_Node_Str"+ value+ "String_Node_Str";
  Statement stmt=mysql.createStatement();
  ResultSet rs=stmt.executeQuery(query);
  String dupe="String_Node_Str";
  if (rs.next()) {
    dupe=rs.getString(1);
  }
  close();
  return dupe;
}
Program: 94071
Project: 94071
Buggy source:
public static void connect() throws ClassNotFoundException, SQLException {
  Class.forName(Util.ToDriver(Config.database_driver));
  if (Config.debug_enable) {
    Util.Debug("String_Node_Str");
    Util.Debug("String_Node_Str" + Config.dbDb);
    Util.Debug("String_Node_Str" + Config.database_driver);
    Util.Debug("String_Node_Str" + Config.database_username);
    Util.Debug("String_Node_Str" + Config.database_password);
    Util.Debug("String_Node_Str" + Config.database_host);
    Util.Debug("String_Node_Str" + Config.database_port);
    Util.Debug("String_Node_Str" + Config.database_database);
    Util.Debug("String_Node_Str" + Config.database_prefix);
  }
  if (Config.debug_enable)   Util.Debug("String_Node_Str" + Config.dbDb + "String_Node_Str"+ Config.database_username+ "String_Node_Str"+ Config.database_password);
  mysql=DriverManager.getConnection(Config.dbDb,Config.database_username,Config.database_password);
  mysql.setAutoCommit(true);
  PreparedStatement ps=null;
  if (Config.script_name.equals(Config.script_name1)) {
    ps=(PreparedStatement)mysql.prepareStatement("String_Node_Str" + Config.database_prefix + "String_Node_Str"+ "String_Node_Str");
  }
 else   if (Config.script_name.equals(Config.script_name2)) {
    ps=(PreparedStatement)mysql.prepareStatement("String_Node_Str" + Config.database_prefix + "String_Node_Str"+ "String_Node_Str");
  }
 else   if (Config.script_name.equals(Config.script_name3)) {
    ps=(PreparedStatement)mysql.prepareStatement("String_Node_Str" + Config.database_prefix + "String_Node_Str"+ "String_Node_Str");
  }
 else   if (Config.script_name.equals(Config.script_name4)) {
    ps=(PreparedStatement)mysql.prepareStatement("String_Node_Str" + Config.database_prefix + "String_Node_Str"+ "String_Node_Str");
  }
 else   if (Config.script_name.equals(Config.script_name5)) {
    ps=(PreparedStatement)mysql.prepareStatement("String_Node_Str" + Config.database_prefix + "String_Node_Str"+ "String_Node_Str");
  }
  ResultSet rs=ps.executeQuery();
  if (rs.next()) {
    Util.Log("String_Node_Str",rs.getInt("String_Node_Str") + "String_Node_Str");
  }
}

Fixed version (ground truth):
public static void connect() throws SQLException, ClassNotFoundException {
  Class.forName(Util.ToDriver(Config.database_driver));
  if (Config.debug_enable) {
    Util.Debug("String_Node_Str");
    Util.Debug("String_Node_Str" + Config.dbDb);
    Util.Debug("String_Node_Str" + Config.database_driver);
    Util.Debug("String_Node_Str" + Config.database_username);
    Util.Debug("String_Node_Str" + Config.database_password);
    Util.Debug("String_Node_Str" + Config.database_host);
    Util.Debug("String_Node_Str" + Config.database_port);
    Util.Debug("String_Node_Str" + Config.database_database);
    Util.Debug("String_Node_Str" + Config.database_prefix);
  }
  if (Config.debug_enable)   Util.Debug("String_Node_Str" + Config.dbDb + "String_Node_Str"+ Config.database_username+ "String_Node_Str"+ Config.database_password);
  mysql=DriverManager.getConnection(Config.dbDb + "String_Node_Str" + Config.database_username+ "String_Node_Str"+ Config.database_password);
}
Program: 94072
Project: 94072
Buggy source:
public static int countitall(String table) throws SQLException {
  String query="String_Node_Str" + table + "String_Node_Str";
  Statement stmt=mysql.createStatement();
  ResultSet rs=stmt.executeQuery(query);
  if (rs.next()) {
    return rs.getInt(1);
  }
 else {
    return 0;
  }
}

Fixed version (ground truth):
public static int countitall(String table) throws SQLException {
  String query="String_Node_Str" + table + "String_Node_Str";
  Statement stmt=mysql.createStatement();
  ResultSet rs=stmt.executeQuery(query);
  int dupe=0;
  if (rs.next()) {
    dupe=rs.getInt(1);
  }
  return dupe;
}
Program: 94073
Project: 94073
Buggy source:
public void storeInventory(String player,ItemStack[] inventory) throws IOException {
  File inv=new File(getDataFolder(),player + "String_Node_Str");
  if (inv.exists())   return;
  inv.createNewFile();
  BufferedWriter bw=new BufferedWriter(new FileWriter(inv));
  for (short i=0; i < inventory.length; i=(short)(i + 1)) {
    bw.write(inventory[i].getTypeId() + "String_Node_Str" + inventory[i].getAmount()+ "String_Node_Str"+ (inventory[i].getData() == null ? "String_Node_Str" : Byte.valueOf(inventory[i].getData().getData()))+ "String_Node_Str"+ inventory[i].getDurability());
    bw.newLine();
  }
  bw.close();
  this.inventories.put(player.toLowerCase(),inventory);
}

Fixed version (ground truth):
public void storeInventory(String player,ItemStack[] inventory) throws IOException {
  File inv=new File(getDataFolder(),player + "String_Node_Str");
  if (inv.exists())   return;
  inv.createNewFile();
  BufferedWriter bw=new BufferedWriter(new FileWriter(inv));
  for (short i=0; i < inventory.length; i=(short)(i + 1)) {
    bw.write(inventory[i].getTypeId() + "String_Node_Str" + inventory[i].getAmount()+ "String_Node_Str"+ (inventory[i].getData() == null ? "String_Node_Str" : Byte.valueOf(inventory[i].getData().getData()))+ "String_Node_Str"+ inventory[i].getDurability());
    bw.newLine();
  }
  bw.close();
}
Program: 94074
Project: 94074
Buggy source:
public ItemStack[] getInventory(String player){
  File f=new File(getDataFolder(),player + "String_Node_Str");
  if (inventories.containsKey(player.toLowerCase())) {
    if ((f.exists()) && (!f.delete()))     Util.Log("String_Node_Str","String_Node_Str" + player + "String_Node_Str");
    return (ItemStack[])inventories.remove(player.toLowerCase());
  }
  if (f.exists()) {
    ItemStack[] inv=new ItemStack[36];
    try {
      Scanner s=new Scanner(f);
      short i=0;
      while (s.hasNextLine()) {
        String line=s.nextLine();
        String[] split=line.split("String_Node_Str");
        if (split.length == 4) {
          inv[i]=new ItemStack(Integer.valueOf(split[0]).intValue(),Integer.valueOf(split[1]).intValue(),Short.valueOf(split[3]).shortValue(),split[2].length() == 0 ? null : Byte.valueOf(split[2]));
          i=(short)(i + 1);
        }
      }
      s.close();
      if (!f.delete())       Util.Log("String_Node_Str","String_Node_Str" + player + "String_Node_Str");
    }
 catch (    IOException e) {
      e.printStackTrace();
      Stop("String_Node_Str");
    }
    return inv;
  }
  return null;
}

Fixed version (ground truth):
public ItemStack[] getInventory(String player){
  File f=new File(getDataFolder(),player + "String_Node_Str");
  if (f.exists()) {
    ItemStack[] inv=new ItemStack[36];
    try {
      Scanner s=new Scanner(f);
      short i=0;
      while (s.hasNextLine()) {
        String line=s.nextLine();
        String[] split=line.split("String_Node_Str");
        if (split.length == 4) {
          int type=Integer.valueOf(split[0]).intValue();
          inv[i]=new ItemStack(type,Integer.valueOf(split[1]).intValue());
          short dur=Short.valueOf(split[3]).shortValue();
          if (dur > 0)           inv[i].setDurability(dur);
          byte dd;
          if (split[2].length() == 0)           dd=0;
 else           dd=Byte.valueOf(split[2]).byteValue();
          Material mat=Material.getMaterial(type);
          if (mat == null)           inv[i].setData(new MaterialData(type,dd));
 else           inv[i].setData(mat.getNewData(dd));
          i=(short)(i + 1);
        }
      }
      s.close();
      if (!f.delete())       Util.Log("String_Node_Str","String_Node_Str" + player + "String_Node_Str");
    }
 catch (    IOException e) {
      Util.Log("String_Node_Str","String_Node_Str");
      e.printStackTrace();
    }
    return inv;
  }
  return null;
}
Program: 94075
Project: 94075
Buggy source:
public void onPlayerQuit(PlayerEvent event){
  Player player=event.getPlayer();
  Messages.SendMessage("String_Node_Str",player,null);
  try {
    if (this.plugin.IdleTask("String_Node_Str",player,"String_Node_Str")) {
      int TaskID=Integer.parseInt(this.plugin.IdleGetTaskID(player));
      if (Config.debug_enable)       Util.Debug(player.getName() + "String_Node_Str" + TaskID);
      if (this.plugin.IdleTask("String_Node_Str",player,"String_Node_Str")) {
        if (Config.debug_enable)         Util.Debug(player.getName() + "String_Node_Str");
        plugin.getServer().getScheduler().cancelTask(TaskID);
      }
 else {
        if (Config.debug_enable)         Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str");
      }
    }
 else {
      if (Config.debug_enable)       Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str");
    }
    this.plugin.updateDb();
  }
 catch (  IOException e) {
    if (Config.debug_enable)     Util.Debug("String_Node_Str");
    e.printStackTrace();
  }
  ItemStack[] inv=this.plugin.getInventory(player.getName());
  if ((inv != null) && (!AuthDB.isAuthorized(player.getEntityId()))) {
  }
}

Fixed version (ground truth):
public void onPlayerQuit(PlayerEvent event){
  Player player=event.getPlayer();
  Messages.SendMessage("String_Node_Str",player,null);
  try {
    if (this.plugin.IdleTask("String_Node_Str",player,"String_Node_Str")) {
      int TaskID=Integer.parseInt(this.plugin.IdleGetTaskID(player));
      if (Config.debug_enable)       Util.Debug(player.getName() + "String_Node_Str" + TaskID);
      if (this.plugin.IdleTask("String_Node_Str",player,"String_Node_Str")) {
        if (Config.debug_enable)         Util.Debug(player.getName() + "String_Node_Str");
        plugin.getServer().getScheduler().cancelTask(TaskID);
      }
 else {
        if (Config.debug_enable)         Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str");
      }
    }
 else {
      if (Config.debug_enable)       Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str");
    }
    this.plugin.updateDb();
  }
 catch (  IOException e) {
    if (Config.debug_enable)     Util.Debug("String_Node_Str");
    e.printStackTrace();
  }
  this.plugin.unauthorize(player.getEntityId());
}
Program: 94079
Project: 94079
Buggy source:
public void onEntityTarget(EntityTargetEvent event){
  if (((event.getEntity() instanceof Player)) && AuthDB.isAuthorized(event.getEntity().getEntityId()) == false)   event.setCancelled(true);
}

Fixed version (ground truth):
public void onEntityTarget(EntityTargetEvent event){
  if (((event.getEntity() instanceof Player)) && AuthDB.isAuthorized(event.getEntity().getEntityId()) == false)   event.setCancelled(true);
 else   if (((event.getEntity() instanceof Monster)) && (event.getTarget() instanceof Player) && AuthDB.isAuthorized(event.getTarget().getEntityId()) == false)   event.setCancelled(true);
}
Program: 94084
Project: 94084
Buggy source:
ExportEndpoint(ServiceReference serviceReference,EndpointDescription endpointDescription,IRemoteServiceRegistration reg,IRemoteServiceContainerAdapter containerAdapter,Map<String,Object> originalProperties){
  Assert.isNotNull(serviceReference);
  this.serviceReference=serviceReference;
  Assert.isNotNull(endpointDescription);
  this.endpointDescription=endpointDescription;
  Assert.isNotNull(reg);
  this.rsRegistration=reg;
  Assert.isNotNull(containerAdapter);
  this.containerAdapter=containerAdapter;
  this.remoteServiceListener=new IRemoteServiceListener(){
    public void handleServiceEvent(    IRemoteServiceEvent event){
      Collection<ExportRegistration> regs=null;
synchronized (this) {
        regs=new ArrayList(activeExportRegistrations);
      }
      for (      ExportRegistration r : regs)       r.close();
    }
  }
;
  Assert.isNotNull(originalProperties);
  this.originalProperties=originalProperties;
  this.containerAdapter.addRemoteServiceListener(this.remoteServiceListener);
}

Fixed version (ground truth):
ExportEndpoint(ServiceReference serviceReference,EndpointDescription endpointDescription,IRemoteServiceRegistration reg,IRemoteServiceContainerAdapter containerAdapter,Map<String,Object> originalProperties){
  Assert.isNotNull(serviceReference);
  this.serviceReference=serviceReference;
  Assert.isNotNull(endpointDescription);
  this.endpointDescription=endpointDescription;
  Assert.isNotNull(reg);
  this.rsRegistration=reg;
  Assert.isNotNull(containerAdapter);
  this.containerAdapter=containerAdapter;
  this.remoteServiceListener=new IRemoteServiceListener(){
    public void handleServiceEvent(    IRemoteServiceEvent event){
      if (event instanceof IRemoteServiceUnregisteredEvent) {
        IRemoteServiceReference ref=((IRemoteServiceUnregisteredEvent)event).getReference();
        Collection<ExportRegistration> regs=null;
synchronized (ExportEndpoint.this) {
          regs=new ArrayList(activeExportRegistrations);
        }
        for (        ExportRegistration r : regs) {
          IRemoteServiceRegistration rsReg=r.getRemoteServiceRegistration();
          if (rsReg != null) {
            IRemoteServiceReference rsRef=rsReg.getReference();
            if (rsRef != null && rsRef.equals(ref))             r.close();
          }
        }
      }
    }
  }
;
  Assert.isNotNull(originalProperties);
  this.originalProperties=originalProperties;
  this.containerAdapter.addRemoteServiceListener(this.remoteServiceListener);
}
Program: 94086
Project: 94086
Buggy source:
public boolean triggerDiscovery(){
  return false;
}

Fixed version (ground truth):
public boolean triggerDiscovery(){
  return true;
}
Program: 94087
Project: 94087
Buggy source:
@Override public void callAsync(IRemoteCall call,IRemoteCallListener listener){
  if (call instanceof RSARemoteCall) {
    Callable<IRemoteCallCompleteEvent> c=createAsyncCallable((RSARemoteCall)call);
    if (c != null)     callAsyncWithTimeout(call,c,listener);
  }
 else   super.callAsync(call,listener);
}

Fixed version (ground truth):
@Override public void callAsync(IRemoteCall call,IRemoteCallListener listener){
  if (call instanceof RSARemoteCall)   callAsyncWithTimeout(call,createAsyncCallable((RSARemoteCall)call),listener);
 else   super.callAsync(call,listener);
}
Program: 94088
Project: 94088
Buggy source:
/** 
 * @since 8.13
 */
protected Object invokeReturnAsync(Object proxy,Method method,Object[] args) throws Throwable {
  final String invokeMethodName=method.getName();
  final AsyncArgs asyncArgs=new AsyncArgs(args,method.getReturnType());
  RemoteCall remoteCall=getAsyncRemoteCall(invokeMethodName,asyncArgs.getArgs());
  return callFuture(remoteCall,asyncArgs.getReturnType());
}

Fixed version (ground truth):
/** 
 * @since 8.13
 */
protected Object invokeReturnAsync(Object proxy,Method method,Object[] args) throws Throwable {
  return callFuture(getAsyncRemoteCall(method.getName(),args),method.getReturnType());
}
Program: 94089
Project: 94089
Buggy source:
@Override protected void callAsync(IRemoteCall call,IRemoteCallable callable,IRemoteCallListener listener){
  if (call.getClass().isAssignableFrom(RSARemoteCall.class)) {
    Callable<IRemoteCallCompleteEvent> c=createAsyncCallable((RSARemoteCall)call);
    if (c == null)     throw new NullPointerException("String_Node_Str");
    callAsyncWithTimeout(call,c,listener);
  }
  super.callAsync(call,callable,listener);
}

Fixed version (ground truth):
@Override public void callAsync(IRemoteCall call,IRemoteCallListener listener){
  if (call instanceof RSARemoteCall) {
    Callable<IRemoteCallCompleteEvent> c=createAsyncCallable((RSARemoteCall)call);
    if (c == null)     throw new NullPointerException("String_Node_Str");
    callAsyncWithTimeout(call,c,listener);
  }
 else   super.callAsync(call,listener);
}
Program: 94090
Project: 94090
Buggy source:
/** 
 * @since 4.4
 */
@SuppressWarnings("String_Node_Str") protected Object invokeLocal(RemoteServiceRegistrationImpl reg,RemoteCallImpl call) throws InvocationTargetException, Exception, NoClassDefFoundError {
  Object[] callArgs=call.getParameters();
  Object[] args=(callArgs == null) ? SharedObjectMsg.nullArgs : callArgs;
  Object service=reg.getService();
  final Method method=ClassUtil.getMethod(service.getClass(),call.getMethod(),SharedObjectMsg.getTypesForParameters(args));
  AccessController.doPrivileged(new PrivilegedExceptionAction(){
    public Object run() throws Exception {
      if (!method.isAccessible())       method.setAccessible(true);
      return null;
    }
  }
);
  Object result=method.invoke(service,args);
  if (result != null) {
    Class returnType=method.getReturnType();
    if (reg.getProperty(Constants.OSGI_ASYNC_INTENT) != null && AsyncReturnUtil.isAsyncType(returnType))     return AsyncReturnUtil.convertAsyncToReturn(result,returnType,call.getTimeout());
  }
  return result;
}

Fixed version (ground truth):
/** 
 * @since 4.4
 */
protected Object invokeLocal(RemoteServiceRegistrationImpl reg,RemoteCallImpl call) throws InvocationTargetException, Exception, NoClassDefFoundError {
  Object[] callArgs=call.getParameters();
  Object[] args=(callArgs == null) ? SharedObjectMsg.nullArgs : callArgs;
  Object service=reg.getService();
  final Method method=ClassUtil.getMethod(service.getClass(),call.getMethod(),SharedObjectMsg.getTypesForParameters(args));
  Object result=method.invoke(service,args);
  if (result != null) {
    Class returnType=method.getReturnType();
    if (reg.getProperty(Constants.OSGI_ASYNC_INTENT) != null && AsyncReturnUtil.isAsyncType(returnType))     return AsyncReturnUtil.convertAsyncToReturn(result,returnType,call.getTimeout());
  }
  return result;
}
Program: 94091
Project: 94091
Buggy source:
protected boolean namespaceEquals(BaseID o){
  if (this == o)   return true;
  if (!this.getClass().equals(o.getClass()))   return false;
  return this.uri.equals(((URIID)o).uri);
}

Fixed version (ground truth):
protected boolean namespaceEquals(BaseID o){
  if (this == o)   return true;
  if (!this.getClass().equals(o.getClass()))   return false;
  return this.uri.toString().equals((((URIID)o).uri).toString());
}
Program: 94092
Project: 94092
Buggy source:
protected int namespaceHashCode(){
  return uri.hashCode();
}

Fixed version (ground truth):
protected int namespaceHashCode(){
  return uri.toString().hashCode() ^ getClass().hashCode();
}
Program: 94093
Project: 94093
Buggy source:
/** 
 * Called by   {@link Namespace#toExternalForm(BaseID)}.
 * @return String that represents this ID. Default implementation is toreturn <pre> namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); </pre>
 */
protected String namespaceToExternalForm(){
  return namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
}

Fixed version (ground truth):
/** 
 * Called by   {@link Namespace#toExternalForm(BaseID)}.
 * @return String that represents this ID. Default implementation is to return<pre> namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName(); </pre>
 */
protected String namespaceToExternalForm(){
  return namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
}
Program: 94094
Project: 94094
Buggy source:
/** 
 * Called by   {@link Namespace#getHashCodeForID(BaseID)}.
 * @return int hashCode for this ID. Returned value must be unique withinthis process.
 */
protected abstract int namespaceHashCode();

Fixed version (ground truth):
/** 
 * Called by   {@link Namespace#getHashCodeForID(BaseID)}.
 * @return int hashCode for this ID. Returned value must be unique within thisprocess.
 */
protected abstract int namespaceHashCode();
Program: 94095
Project: 94095
Buggy source:
/** 
 * Get the name of this namespace. Must not return <code>null</code>.
 * @return String name of Namespace instance. Must not return<code>null</code>, and the returned value should be a globally unique name for this Namespace subclass.
 */
public String getName(){
  return name;
}

Fixed version (ground truth):
/** 
 * Get the name of this namespace. Must not return <code>null</code>.
 * @return String name of Namespace instance. Must not return <code>null</code>,and the returned value should be a globally unique name for this Namespace subclass.
 */
public String getName(){
  return name;
}
Program: 94096
Project: 94096
Buggy source:
/** 
 * The default implementation of this method is to call id.namespaceHashCode(). Subclasses may override.
 * @param id the id in this Namespace to get the hashcode for. Must not be <code>null</code>.
 * @return the hashcode for the given id. Returned value must be uniquewithin this process.
 */
protected int getHashCodeForID(BaseID id){
  return id.namespaceHashCode();
}

Fixed version (ground truth):
/** 
 * The default implementation of this method is to call id.namespaceHashCode(). Subclasses may override.
 * @param id the id in this Namespace to get the hashcode for. Must not be <code>null</code>.
 * @return the hashcode for the given id. Returned value must be unique withinthis process.
 */
protected int getHashCodeForID(BaseID id){
  return id.namespaceHashCode();
}