Program: 40451
Project: 40451
Buggy source:
private static String getOverviewMessage(Config config,LocaleService localeService,RaidRepository raidRepository,ClockService clockService,Locale locale){
  Set<Raid> raids=raidRepository.getAllRaidsForRegion(config.getRegion());
  final String messageString;
  StringBuilder stringBuilder=new StringBuilder();
  if (raids.size() == 0) {
    stringBuilder.append(localeService.getMessageFor(LocaleService.LIST_NO_RAIDS,locale));
  }
 else {
    StringBuilder exRaids=new StringBuilder();
    stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.CURRENT_RAIDS,locale));
    stringBuilder.append("String_Node_Str");
    stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.RAID_DETAILS,locale)).append("String_Node_Str");
    Pokemon currentPokemon=null;
    for (    Raid raid : raids) {
      final Pokemon raidBoss=raid.getPokemon();
      if (!raid.isExRaid() && (currentPokemon == null || (!currentPokemon.equals(raidBoss)))) {
        currentPokemon=raid.getPokemon();
        stringBuilder.append("String_Node_Str").append(currentPokemon.getName()).append("String_Node_Str");
      }
      final int numberOfPeople=raid.getNumberOfPeopleSignedUp();
      final Gym raidGym=raid.getGym();
      if (!raid.isExRaid()) {
        stringBuilder.append("String_Node_Str").append(raidGym.getName()).append("String_Node_Str");
        stringBuilder.append("String_Node_Str").append(printTimeIfSameDay(getStartOfRaid(raid.getEndOfRaid(),false))).append("String_Node_Str").append(printTime(raid.getEndOfRaid().toLocalTime())).append("String_Node_Str").append(numberOfPeople).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.SIGNED_UP,locale)).append(raid.getNextEta(localeService,locale,LocalTime.now())).append("String_Node_Str");
      }
 else {
        exRaids.append("String_Node_Str").append(raidGym.getName()).append("String_Node_Str").append(raidBoss.getName()).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.RAID_BETWEEN,locale,printTimeIfSameDay(getStartOfRaid(raid.getEndOfRaid(),true)),printTime(raid.getEndOfRaid().toLocalTime()))).append("String_Node_Str").append(numberOfPeople).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.SIGNED_UP,locale)).append("String_Node_Str");
      }
    }
    final String exRaidList=exRaids.toString();
    if (exRaidList.length() > 1) {
      stringBuilder.append("String_Node_Str").append(exRaidList);
    }
  }
  stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.UPDATED_EVERY_X,locale,LocaleService.asString(TimeUnit.SECONDS,locale),String.valueOf(60))).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.LAST_UPDATE,locale,printTime(clockService.getCurrentTime())));
  final String message=stringBuilder.toString();
  return message;
}

Fixed version (ground truth):
private static String getOverviewMessage(Config config,LocaleService localeService,RaidRepository raidRepository,ClockService clockService,Locale locale){
  Set<Raid> raids=raidRepository.getAllRaidsForRegion(config.getRegion());
  StringBuilder stringBuilder=new StringBuilder();
  if (raids.size() == 0) {
    stringBuilder.append(localeService.getMessageFor(LocaleService.LIST_NO_RAIDS,locale));
  }
 else {
    StringBuilder exRaids=new StringBuilder();
    stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.CURRENT_RAIDS,locale));
    stringBuilder.append("String_Node_Str");
    stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.RAID_DETAILS,locale)).append("String_Node_Str");
    Pokemon currentPokemon=null;
    for (    Raid raid : raids) {
      final Pokemon raidBoss=raid.getPokemon();
      if (!raid.isExRaid() && (currentPokemon == null || (!currentPokemon.equals(raidBoss)))) {
        currentPokemon=raid.getPokemon();
        stringBuilder.append("String_Node_Str").append(currentPokemon.getName()).append("String_Node_Str");
      }
      final int numberOfPeople=raid.getNumberOfPeopleSignedUp();
      final Gym raidGym=raid.getGym();
      if (!raid.isExRaid()) {
        stringBuilder.append("String_Node_Str").append(raidGym.getName()).append("String_Node_Str");
        stringBuilder.append("String_Node_Str").append(printTimeIfSameDay(getStartOfRaid(raid.getEndOfRaid(),false))).append("String_Node_Str").append(printTime(raid.getEndOfRaid().toLocalTime())).append("String_Node_Str").append(numberOfPeople).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.SIGNED_UP,locale)).append(raid.getNextEta(localeService,locale,LocalTime.now())).append("String_Node_Str");
      }
 else {
        exRaids.append("String_Node_Str").append(raidGym.getName()).append("String_Node_Str").append(raidBoss.getName()).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.RAID_BETWEEN,locale,printTimeIfSameDay(getStartOfRaid(raid.getEndOfRaid(),true)),printTime(raid.getEndOfRaid().toLocalTime()))).append("String_Node_Str").append(numberOfPeople).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.SIGNED_UP,locale)).append("String_Node_Str");
      }
    }
    final String exRaidList=exRaids.toString();
    if (exRaidList.length() > 1) {
      stringBuilder.append("String_Node_Str").append(exRaidList);
    }
  }
  stringBuilder.append("String_Node_Str").append(localeService.getMessageFor(LocaleService.UPDATED_EVERY_X,locale,LocaleService.asString(TimeUnit.SECONDS,locale),String.valueOf(60))).append("String_Node_Str").append(localeService.getMessageFor(LocaleService.LAST_UPDATE,locale,printTime(clockService.getCurrentTime())));
  final String message=stringBuilder.toString();
  return message;
}