Program: 44805
Project: 44805
Buggy source:
/** 
 * @since 0.2
 */
@Deprecated public void updateDisconnect(String key,List<PlayerInfo> list,String remoteAddr){
  DatastoreService service=DatastoreServiceFactory.getDatastoreService();
  ServerManager serverManager=new ServerManager();
  try {
    Date stamp=new Date();
    Server server=serverManager.getAuthorizedServer(key,remoteAddr);
    log.info("String_Node_Str" + server.getName());
    Map<String,Entity> entities=new HashMap<String,Entity>();
    for (    PlayerInfo info : list) {
      String playerKey="String_Node_Str" + key + info.getGuid();
      Player player=playerDAO.findByServerAndGuid(server.getKey(),info.getGuid());
      if (player == null) {
        player=new Player();
        player.setCreated(stamp);
        player.setUpdated(stamp);
        player.setGuid(info.getGuid());
        player.setServer(server.getKey());
        player.setBanInfo(null);
        player.setBanInfoUpdated(null);
        playerDAO.save(player);
      }
 else {
        player.setUpdated(stamp);
        playerDAO.save(player,false);
        entities.put(playerKey,player.toEntity());
      }
      String aliasKey="String_Node_Str" + player.getGuid() + info.getName()+ info.getIp();
      Alias alias=aliasDAO.findByPlayerAndNicknameAndIp(player.getKey(),info.getName(),info.getIp());
      if (alias == null) {
        alias=new Alias();
        alias.setCount(1L);
        alias.setCreated(stamp);
        alias.setNickname(info.getName());
        alias.setNgrams(NGrams.ngrams(info.getName()));
        alias.setPlayer(player.getKey());
        alias.setIp(info.getIp());
        alias.setUpdated(stamp);
        alias.setServer(server.getKey());
        entities.put(aliasKey,alias.toEntity());
      }
 else {
        alias.setUpdated(stamp);
        aliasDAO.save(alias,false);
      }
    }
    server.setUpdated(stamp);
    service.put(entities.values());
    serverDAO.save(server);
  }
 catch (  UnauthorizedUpdateException e) {
    log.severe(e.getMessage());
    StringWriter w=new StringWriter();
    e.printStackTrace(new PrintWriter(w));
    log.severe(w.getBuffer().toString());
  }
catch (  Exception e) {
    log.severe(e.getMessage());
    StringWriter w=new StringWriter();
    e.printStackTrace(new PrintWriter(w));
    log.severe(w.getBuffer().toString());
  }
}

Fixed version (ground truth):
/** 
 * @since 0.2
 */
@Deprecated public void updateDisconnect(String key,List<PlayerInfo> list,String remoteAddr){
  DatastoreService service=DatastoreServiceFactory.getDatastoreService();
  ServerManager serverManager=new ServerManager();
  try {
    Date stamp=new Date();
    Server server=serverManager.getAuthorizedServer(key,remoteAddr);
    log.info("String_Node_Str" + server.getName());
    Map<String,Entity> entities=new LinkedHashMap<String,Entity>();
    for (    PlayerInfo info : list) {
      String playerKey="String_Node_Str" + key + info.getGuid();
      Player player=playerDAO.findByServerAndGuid(server.getKey(),info.getGuid());
      if (player == null) {
        player=new Player();
        player.setCreated(stamp);
        player.setUpdated(stamp);
        player.setGuid(info.getGuid());
        player.setServer(server.getKey());
        player.setBanInfo(null);
        player.setBanInfoUpdated(null);
        playerDAO.save(player);
      }
 else {
        player.setUpdated(stamp);
        playerDAO.save(player,false);
        entities.put(playerKey,player.toEntity());
      }
      String aliasKey="String_Node_Str" + player.getGuid() + info.getName()+ info.getIp();
      Alias alias=aliasDAO.findByPlayerAndNicknameAndIp(player.getKey(),info.getName(),info.getIp());
      if (alias == null) {
        alias=new Alias();
        alias.setCount(1L);
        alias.setCreated(stamp);
        alias.setNickname(info.getName());
        alias.setNgrams(NGrams.ngrams(info.getName()));
        alias.setPlayer(player.getKey());
        alias.setIp(info.getIp());
        alias.setUpdated(stamp);
        alias.setServer(server.getKey());
        entities.put(aliasKey,alias.toEntity());
      }
 else {
        alias.setUpdated(stamp);
        aliasDAO.save(alias,false);
      }
    }
    server.setUpdated(stamp);
    service.put(entities.values());
    serverDAO.save(server);
  }
 catch (  UnauthorizedUpdateException e) {
    log.severe(e.getMessage());
    StringWriter w=new StringWriter();
    e.printStackTrace(new PrintWriter(w));
    log.severe(w.getBuffer().toString());
  }
catch (  Exception e) {
    log.severe(e.getMessage());
    StringWriter w=new StringWriter();
    e.printStackTrace(new PrintWriter(w));
    log.severe(w.getBuffer().toString());
  }
}