nus-yam/ex-repair huggingface dataset:
Program: 174089
Project: 174089
Buggy source:
@Override public void onUserAvatarUpdate(UserAvatarUpdateEvent event){
  List<Guild> guilds=event.getUser().getMutualGuilds();
  EmbedBuilder builder=new EmbedBuilder();
  User user=event.getUser();
  String title="String_Node_Str" + user.getName() + "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str";
  if (!(guilds.isEmpty()) && !(user.isBot())) {
    for (    Guild guild : guilds) {
      TextChannel tc=db.getServerlogChannel(guild);
      TextChannel channel=FinderUtil.getDefaultChannel(guild);
      if (!(tc == null)) {
        if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))         guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
          builder.setAuthor(user.getName(),null,user.getEffectiveAvatarUrl());
          builder.setThumbnail(event.getPreviousAvatarUrl());
          builder.setImage(user.getEffectiveAvatarUrl());
          builder.setColor(guild.getSelfMember().getColor());
          tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue();
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void onUserAvatarUpdate(UserAvatarUpdateEvent event){
  List<Guild> guilds=event.getUser().getMutualGuilds();
  EmbedBuilder builder=new EmbedBuilder();
  User user=event.getUser();
  String title="String_Node_Str" + user.getName() + "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str";
  if (!(guilds.isEmpty()) && !(user.isBot())) {
    for (    Guild guild : guilds) {
      TextChannel tc=ldm.getServerlogChannel(guild);
      TextChannel channel=FinderUtil.getDefaultChannel(guild);
      if (!(tc == null)) {
        if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))         guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else {
          builder.setAuthor(user.getName(),null,user.getEffectiveAvatarUrl());
          builder.setThumbnail(event.getPreviousAvatarUrl());
          builder.setImage(user.getEffectiveAvatarUrl());
          builder.setColor(guild.getSelfMember().getColor());
          tc.sendMessage(new MessageBuilder().append(title).setEmbed(builder.build()).build()).queue();
        }
      }
    }
  }
}
Program: 174090
Project: 174090
Buggy source:
@Override public void onGuildVoiceJoin(GuildVoiceJoinEvent event){
  Guild guild=event.getGuild();
  TextChannel tc=db.getServerlogChannel(guild);
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  VoiceChannel vc=event.getChannelJoined();
  User user=event.getMember().getUser();
  Calendar calendar=GregorianCalendar.getInstance();
  calendar.setTime(new Date());
  String hour=String.format("String_Node_Str",calendar.get(Calendar.HOUR_OF_DAY));
  String min=String.format("String_Node_Str",calendar.get(Calendar.MINUTE));
  String sec=String.format("String_Node_Str",calendar.get(Calendar.SECOND));
  if (!(tc == null) && !(user.isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else     tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ user.getName()+ "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str"+ vc.getName()+ "String_Node_Str"+ vc.getId()+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
@Override public void onGuildVoiceJoin(GuildVoiceJoinEvent event){
  Guild guild=event.getGuild();
  TextChannel tc=ldm.getServerlogChannel(guild);
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  VoiceChannel vc=event.getChannelJoined();
  User user=event.getMember().getUser();
  Calendar calendar=GregorianCalendar.getInstance();
  calendar.setTime(new Date());
  String hour=String.format("String_Node_Str",calendar.get(Calendar.HOUR_OF_DAY));
  String min=String.format("String_Node_Str",calendar.get(Calendar.MINUTE));
  String sec=String.format("String_Node_Str",calendar.get(Calendar.SECOND));
  if (!(tc == null) && !(user.isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else     tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ user.getName()+ "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str"+ vc.getName()+ "String_Node_Str"+ vc.getId()+ "String_Node_Str").queue();
  }
}
Program: 174091
Project: 174091
Buggy source:
@Override public void onGuildVoiceLeave(GuildVoiceLeaveEvent event){
  Guild guild=event.getGuild();
  TextChannel tc=db.getServerlogChannel(guild);
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  VoiceChannel vc=event.getChannelLeft();
  User user=event.getMember().getUser();
  Calendar calendar=GregorianCalendar.getInstance();
  calendar.setTime(new Date());
  String hour=String.format("String_Node_Str",calendar.get(Calendar.HOUR_OF_DAY));
  String min=String.format("String_Node_Str",calendar.get(Calendar.MINUTE));
  String sec=String.format("String_Node_Str",calendar.get(Calendar.SECOND));
  if (!(tc == null) && !(user.isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else     tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ user.getName()+ "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str"+ vc.getName()+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
@Override public void onGuildVoiceLeave(GuildVoiceLeaveEvent event){
  Guild guild=event.getGuild();
  TextChannel tc=ldm.getServerlogChannel(guild);
  TextChannel channel=FinderUtil.getDefaultChannel(event.getGuild());
  VoiceChannel vc=event.getChannelLeft();
  User user=event.getMember().getUser();
  Calendar calendar=GregorianCalendar.getInstance();
  calendar.setTime(new Date());
  String hour=String.format("String_Node_Str",calendar.get(Calendar.HOUR_OF_DAY));
  String min=String.format("String_Node_Str",calendar.get(Calendar.MINUTE));
  String sec=String.format("String_Node_Str",calendar.get(Calendar.SECOND));
  if (!(tc == null) && !(user.isBot())) {
    if (!(tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)))     guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.SRVLOG_NOPERMISSIONS).queue()));
 else     tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ user.getName()+ "String_Node_Str"+ user.getDiscriminator()+ "String_Node_Str"+ vc.getName()+ "String_Node_Str").queue();
  }
}
Program: 174092
Project: 174092
Buggy source:
public Import(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.arguments="String_Node_Str";
  this.category=Categories.FUN;
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MANAGE_SERVER};
  this.ownerCommand=false;
  this.guildOnly=false;
}

Fixed version (ground truth):
public Import(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.arguments="String_Node_Str";
  this.category=Categories.FUN;
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MANAGE_SERVER};
  this.ownerCommand=false;
  this.guildOnly=true;
}
Program: 174093
Project: 174093
Buggy source:
public UnImport(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.arguments="String_Node_Str";
  this.category=Categories.FUN;
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MANAGE_SERVER};
  this.ownerCommand=false;
  this.guildOnly=false;
}

Fixed version (ground truth):
public UnImport(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.arguments="String_Node_Str";
  this.category=Categories.FUN;
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MANAGE_SERVER};
  this.ownerCommand=false;
  this.guildOnly=true;
}
Program: 174095
Project: 174095
Buggy source:
public static void logKick(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
public static void logKick(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason).queue();
  }
}
Program: 174096
Project: 174096
Buggy source:
public static void logSoftban(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
public static void logSoftban(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason).queue();
  }
}
Program: 174097
Project: 174097
Buggy source:
public static void logUnban(User author,User target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getName()+ "String_Node_Str"+ target.getDiscriminator()+ "String_Node_Str"+ target.getId()+ "String_Node_Str"+ "String_Node_Str"+ reason+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
public static void logUnban(User author,User target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getName()+ "String_Node_Str"+ target.getDiscriminator()+ "String_Node_Str"+ target.getId()+ "String_Node_Str"+ "String_Node_Str"+ reason).queue();
  }
}
Program: 174098
Project: 174098
Buggy source:
public static void logHackban(User author,User target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getName()+ "String_Node_Str"+ target.getDiscriminator()+ "String_Node_Str"+ target.getId()+ "String_Node_Str"+ "String_Node_Str"+ reason+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
public static void logHackban(User author,User target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getName()+ "String_Node_Str"+ target.getDiscriminator()+ "String_Node_Str"+ target.getId()+ "String_Node_Str"+ "String_Node_Str"+ reason).queue();
  }
}
Program: 174099
Project: 174099
Buggy source:
public static void logBan(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason+ "String_Node_Str").queue();
  }
}

Fixed version (ground truth):
public static void logBan(User author,Member target,String reason,Guild guild,TextChannel channel,Message message){
  Settings set=bot.getSettings(guild);
  TextChannel tc=guild.getTextChannelById(set.getModLogId());
  OffsetDateTime time=message.getCreationTime();
  int hour=time.getHour();
  int min=time.getMinute();
  int sec=time.getSecond();
  if (tc == null) {
  }
 else   if (!tc.getGuild().getSelfMember().hasPermission(tc,Permission.MESSAGE_READ,Permission.MESSAGE_WRITE,Permission.MESSAGE_EMBED_LINKS,Permission.MESSAGE_HISTORY)) {
    guild.getOwner().getUser().openPrivateChannel().queue(s -> s.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue(null,(e) -> channel.sendMessage(Messages.MODLOG_NOPERMISSIONS).queue()));
  }
 else {
    tc.sendMessage("String_Node_Str" + hour + "String_Node_Str"+ min+ "String_Node_Str"+ sec+ "String_Node_Str"+ author.getName()+ "String_Node_Str"+ author.getDiscriminator()+ "String_Node_Str"+ author.getId()+ "String_Node_Str"+ target.getUser().getName()+ "String_Node_Str"+ target.getUser().getDiscriminator()+ "String_Node_Str"+ target.getUser().getId()+ "String_Node_Str"+ "String_Node_Str"+ reason).queue();
  }
}
Program: 174100
Project: 174100
Buggy source:
public BotCPanel(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.category=new Command.Category("String_Node_Str");
  this.children=new Command[]{new Status()};
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.ownerCommand=false;
  this.guildOnly=false;
}

Fixed version (ground truth):
public BotCPanel(){
  this.name="String_Node_Str";
  this.help="String_Node_Str";
  this.category=new Command.Category("String_Node_Str");
  this.children=new Command[]{new Status(),new Playing()};
  this.botPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.userPermissions=new Permission[]{Permission.MESSAGE_WRITE};
  this.ownerCommand=false;
  this.guildOnly=false;
}
Program: 174101
Project: 174101
Buggy source:
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  if (event.getArgs().isEmpty()) {
    event.replyError("String_Node_Str");
    return;
  }
  if (event.getArgs().equals("String_Node_Str")) {
    event.replyInDM("String_Node_Str" + "String_Node_Str");
    event.reactSuccess();
    return;
  }
  try {
    String status=event.getArgs();
    event.getJDA().getPresence().setStatus(OnlineStatus.valueOf(status));
    event.replySuccess("String_Node_Str" + event.getJDA().getPresence().getStatus() + "String_Node_Str");
  }
 catch (  Exception e) {
    event.replyError("String_Node_Str");
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  if (event.getArgs().isEmpty()) {
    event.replySuccess("String_Node_Str");
  }
  try {
    event.getJDA().getPresence().setGame(Game.of(event.getArgs()));
    event.replySuccess("String_Node_Str" + event.getJDA().getPresence().getGame() + "String_Node_Str");
  }
 catch (  Exception e) {
    event.replyError("String_Node_Str");
    e.printStackTrace();
  }
}
Program: 174102
Project: 174102
Buggy source:
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  event.getTextChannel().sendMessage("String_Node_Str").queue();
  event.getJDA().shutdown();
}

Fixed version (ground truth):
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  event.getTextChannel().sendMessage("String_Node_Str").complete();
  event.getJDA().shutdown();
}
Program: 174103
Project: 174103
Buggy source:
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  if (event.getArgs().isEmpty()) {
    event.replyError("String_Node_Str");
    return;
  }
  StringBuilder output=new StringBuilder();
  String finalOutput;
  try {
    Process p=Runtime.getRuntime().exec(event.getArgs());
    p.waitFor();
    BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String runningLineOutput;
    while ((runningLineOutput=reader.readLine()) != null) {
      output.append(runningLineOutput).append("String_Node_Str");
    }
    if (output.toString().isEmpty()) {
      event.replySuccess("String_Node_Str");
      return;
    }
    finalOutput=output.substring(0,output.length() - 1);
  }
 catch (  IOException e) {
    event.replyError("String_Node_Str" + args + "String_Node_Str");
    return;
  }
catch (  Exception e) {
    e.printStackTrace();
    event.replyError("String_Node_Str");
    return;
  }
  event.reply("String_Node_Str" + finalOutput + "String_Node_Str");
}

Fixed version (ground truth):
@Override protected void execute(CommandEvent event){
  if (!(event.isOwner()) || event.isCoOwner()) {
    event.replyError("String_Node_Str");
    return;
  }
  if (event.getArgs().isEmpty()) {
    event.replyError("String_Node_Str");
    return;
  }
  StringBuilder output=new StringBuilder();
  String finalOutput;
  try {
    Process p=Runtime.getRuntime().exec(event.getArgs());
    p.waitFor();
    BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String runningLineOutput;
    while ((runningLineOutput=reader.readLine()) != null) {
      output.append(runningLineOutput).append("String_Node_Str");
    }
    System.out.println(output.toString());
    if (output.toString().isEmpty()) {
      event.replySuccess("String_Node_Str");
      return;
    }
    finalOutput=output.substring(0,output.length() - 1);
  }
 catch (  IOException e) {
    event.replyError("String_Node_Str" + args + "String_Node_Str");
    return;
  }
catch (  IllegalArgumentException e) {
    event.replyError("String_Node_Str");
  }
catch (  Exception e) {
    e.printStackTrace();
    event.replyError("String_Node_Str");
    return;
  }
  event.reply("String_Node_Str" + finalOutput + "String_Node_Str");
}
Program: 174104
Project: 174104
Buggy source:
protected void markFluidDirty(){
}

Fixed version (ground truth):
protected void markFluidDirty(){
  markDirty();
}
Program: 174105
Project: 174105
Buggy source:
protected void finish(){
  RenderHelper.enableStandardItemLighting();
}

Fixed version (ground truth):
protected void finish(){
  GlStateManager.enableCull();
  RenderHelper.enableStandardItemLighting();
}
Program: 174106
Project: 174106
Buggy source:
@Override public void grow(World worldIn,Random rand,BlockPos pos,IBlockState state){
  BlockPos posDown=pos.down();
  if (worldIn.isAirBlock(posDown) && (rand.nextInt(this.grapeSpawnRate) == 0)) {
    setGrapeBlock(worldIn,posDown,state);
  }
  if (worldIn.rand.nextInt(this.grapeLeavesGrowthRate) == 0) {
    if (canGrowOutwardsOnRope(worldIn,pos)) {
      final EnumFacing dir=BlockCheck.DIR4[rand.nextInt(4)];
      BlockPos posDir=pos.add(dir.getFrontOffsetX(),0,dir.getFrontOffsetZ());
      if (canGrowHere(worldIn,posDir)) {
        int type=state.getValue(SUBTYPE);
        worldIn.setBlockState(posDir,getDefaultState().withProperty(SUBTYPE,type),BlockFlags.UPDATE_AND_SYNC);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void grow(World worldIn,Random rand,BlockPos pos,IBlockState state){
  BlockPos posDown=pos.down();
  if (worldIn.isAirBlock(posDown) && (rand.nextInt(this.grapeSpawnRate) == 0)) {
    setGrapeBlock(worldIn,posDown,state);
  }
  if (worldIn.rand.nextInt(this.grapeLeavesGrowthRate) == 0) {
    if (canGrowOutwardsOnRope(worldIn,pos)) {
      final EnumFacing dir=BlockCheck.DIR4[rand.nextInt(4)];
      BlockPos posDir=pos.add(dir.getFrontOffsetX(),0,dir.getFrontOffsetZ());
      if (canGrowHere(worldIn,posDir)) {
        int type=state.getValue(SUBTYPE);
        worldIn.setBlockState(posDir,getDefaultState().withProperty(SUBTYPE,type),BlockFlags.UPDATE_AND_SYNC);
        BlockPos below=posDir.down();
        IBlockState stateBelow=worldIn.getBlockState(below);
        if ((stateBelow.getBlock() instanceof BlockGrapeVine1)) {
          BlockGrapeVine1 blockBelow=(BlockGrapeVine1)stateBelow.getBlock();
          if (stateBelow.getValue(BlockGrapeVineBase.AGE) < blockBelow.getMaxAge()) {
            worldIn.setBlockState(below,stateBelow.withProperty(BlockGrapeVineBase.AGE,blockBelow.getMaxAge()),BlockFlags.UPDATE_AND_SYNC);
          }
        }
      }
    }
  }
}
Program: 174107
Project: 174107
Buggy source:
@Override public void updateTick(World worldIn,BlockPos pos,IBlockState state,Random rand){
  super.updateTick(worldIn,pos,state,rand);
  if (canUpdateGrowth(worldIn,pos)) {
    final Event.Result allowGrowthResult=Event.Result.DEFAULT;
    if (Event.Result.DENY == allowGrowthResult)     return;
    final float f=this.getGrowthRate(worldIn,pos);
    final boolean continueGrowth=rand.nextInt((int)(getGrowthRateMultiplier() / f) + 1) == 0;
    if (Event.Result.ALLOW == allowGrowthResult || continueGrowth) {
      doGrowth(worldIn,pos,state);
    }
  }
}

Fixed version (ground truth):
@Override public void updateTick(World worldIn,BlockPos pos,IBlockState state,Random rand){
  if (canUpdateGrowth(worldIn,pos)) {
    final Event.Result allowGrowthResult=Event.Result.DEFAULT;
    if (Event.Result.DENY == allowGrowthResult)     return;
    final float f=this.getGrowthRate(worldIn,pos);
    final boolean continueGrowth=rand.nextInt((int)(getGrowthRateMultiplier() / f) + 1) == 0;
    if (Event.Result.ALLOW == allowGrowthResult || continueGrowth) {
      doGrowth(worldIn,pos,state);
      return;
    }
  }
  this.checkAndDropBlock(worldIn,pos,state);
}
Program: 174108
Project: 174108
Buggy source:
@Override public int getMetaFromState(IBlockState state){
  return state.getValue(TYPE_ORIENT).ordinal() | (state.getValue(TYPE_ORIENT).ordinal() << 1);
}

Fixed version (ground truth):
@Override public int getMetaFromState(IBlockState state){
  return state.getValue(TYPE_ORIENT).ordinal() | (state.getValue(TYPE_PRESSED).ordinal() << 1);
}
Program: 174109
Project: 174109
Buggy source:
public static void registerSpecialRenders(){
  ClientRegistry.bindTileEntitySpecialRenderer(PREVTileEntityBrewKettle.class,new RenderBrewKettle());
  ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCultureJar.class,new RenderCultureJar());
}

Fixed version (ground truth):
public static void registerSpecialRenders(){
  ClientRegistry.bindTileEntitySpecialRenderer(PREVTileEntityBrewKettle.class,new RenderBrewKettle());
  ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCultureJar.class,new RenderCultureJar());
  ClientRegistry.bindTileEntitySpecialRenderer(TileEntityFruitPress.class,new RenderFruitPress());
}
Program: 174110
Project: 174110
Buggy source:
@Override protected boolean shouldDropTileStack(World world,BlockPos pos,IBlockState state,int fortune){
  return true;
}

Fixed version (ground truth):
@Override protected boolean shouldDropTileStack(IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  return true;
}
Program: 174111
Project: 174111
Buggy source:
protected boolean shouldDropTileStack(World world,BlockPos pos,IBlockState state,int fortune){
  return false;
}

Fixed version (ground truth):
protected boolean shouldDropTileStack(IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  return false;
}
Program: 174112
Project: 174112
Buggy source:
protected void setTileTagCompound(World world,BlockPos pos,ItemStack stack,NBTTagCompound tag){
  final Item item=stack.getItem();
  if (item instanceof IItemTileBlock) {
    final IItemTileBlock itb=(IItemTileBlock)item;
    itb.setTileTagCompound(stack,tag);
  }
 else {
    GrowthcraftCore.logger.error("String_Node_Str",stack,this);
  }
}

Fixed version (ground truth):
protected void setTileTagCompound(IBlockAccess world,BlockPos pos,ItemStack stack,NBTTagCompound tag){
  final Item item=stack.getItem();
  if (item instanceof IItemTileBlock) {
    final IItemTileBlock itb=(IItemTileBlock)item;
    itb.setTileTagCompound(stack,tag);
  }
 else {
    GrowthcraftCore.logger.error("String_Node_Str",stack,this);
  }
}
Program: 174113
Project: 174113
Buggy source:
private void getDefaultDrops(List<ItemStack> ret,World world,BlockPos pos,IBlockState state,int fortune){
  final int count=quantityDropped(state,fortune,world.rand);
  for (int i=0; i < count; ++i) {
    final Item item=getItemDropped(state,world.rand,fortune);
    if (item != null) {
      ret.add(new ItemStack(item,1,damageDropped(state)));
    }
  }
}

Fixed version (ground truth):
private void getDefaultDrops(List<ItemStack> ret,IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  final int count=quantityDropped(state,fortune,rand);
  for (int i=0; i < count; ++i) {
    final Item item=getItemDropped(state,rand,fortune);
    if (item != null) {
      ret.add(new ItemStack(item,1,damageDropped(state)));
    }
  }
}
Program: 174114
Project: 174114
Buggy source:
public ArrayList<ItemStack> getDrops(World world,BlockPos pos,IBlockState state,int fortune){
  final ArrayList<ItemStack> ret=new ArrayList<ItemStack>();
  if (shouldDropTileStack(world,pos,state,fortune)) {
    getTileItemStackDrops(ret,world,pos,state,fortune);
  }
 else {
    getDefaultDrops(ret,world,pos,state,fortune);
  }
  return ret;
}

Fixed version (ground truth):
@Override public List<ItemStack> getDrops(IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  final ArrayList<ItemStack> ret=new ArrayList<ItemStack>();
  if (shouldDropTileStack(world,pos,state,fortune)) {
    getTileItemStackDrops(ret,world,pos,state,fortune);
  }
 else {
    getDefaultDrops(ret,world,pos,state,fortune);
  }
  return ret;
}
Program: 174115
Project: 174115
Buggy source:
protected void getTileItemStackDrops(List<ItemStack> ret,World world,BlockPos pos,IBlockState state,int fortune){
  final TileEntity te=getTileEntity(world,pos);
  if (te instanceof INBTItemSerializable) {
    final NBTTagCompound tag=new NBTTagCompound();
    ((INBTItemSerializable)te).writeToNBTForItem(tag);
    final ItemStack stack=new ItemStack(this,1,getMetaFromState(state));
    setTileTagCompound(world,pos,stack,tag);
    ret.add(stack);
  }
 else {
    getDefaultDrops(ret,world,pos,state,fortune);
  }
}

Fixed version (ground truth):
protected void getTileItemStackDrops(List<ItemStack> ret,IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  final TileEntity te=getTileEntity(world,pos);
  if (te instanceof INBTItemSerializable) {
    final NBTTagCompound tag=new NBTTagCompound();
    ((INBTItemSerializable)te).writeToNBTForItem(tag);
    final ItemStack stack=new ItemStack(this,1,getMetaFromState(state));
    setTileTagCompound(world,pos,stack,tag);
    ret.add(stack);
  }
 else {
    getDefaultDrops(ret,world,pos,state,fortune);
  }
}
Program: 174116
Project: 174116
Buggy source:
@Override protected boolean shouldDropTileStack(World world,BlockPos pos,IBlockState state,int fortune){
  return false;
}

Fixed version (ground truth):
@Override protected boolean shouldDropTileStack(IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  return false;
}
Program: 174117
Project: 174117
Buggy source:
@Override public ArrayList<ItemStack> getDrops(World world,BlockPos pos,IBlockState state,int fortune){
  final ArrayList<ItemStack> ret=new ArrayList<ItemStack>();
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    te.populateDrops(ret);
  }
  return ret;
}

Fixed version (ground truth):
@Override public List<ItemStack> getDrops(IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  final ArrayList<ItemStack> ret=new ArrayList<ItemStack>();
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    te.populateDrops(ret);
  }
  return ret;
}
Program: 174118
Project: 174118
Buggy source:
@Override protected void getTileItemStackDrops(List<ItemStack> ret,World world,BlockPos pos,IBlockState state,int fortune){
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    ret.add(te.asItemStack());
  }
 else {
    super.getTileItemStackDrops(ret,world,pos,state,fortune);
  }
}

Fixed version (ground truth):
@Override protected void getTileItemStackDrops(List<ItemStack> ret,IBlockAccess world,BlockPos pos,IBlockState state,int fortune){
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    ret.add(te.asItemStack());
  }
 else {
    super.getTileItemStackDrops(ret,world,pos,state,fortune);
  }
}
Program: 174119
Project: 174119
Buggy source:
@Override protected ItemStack createHarvestedBlockItemStack(World world,EntityPlayer player,BlockPos pos,IBlockState state){
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    return te.asItemStack();
  }
  return new ItemStack(this,1,state.getBlock().getMetaFromState(state));
}

Fixed version (ground truth):
@Override protected ItemStack createHarvestedBlockItemStack(World world,EntityPlayer player,BlockPos pos,IBlockState state){
  final TileEntityCheeseBlock te=getTileEntity(world,pos);
  if (te != null) {
    return te.asItemStack();
  }
  return new ItemStack(this,1,damageDropped(state));
}
Program: 174120
Project: 174120
Buggy source:
@SideOnly(Side.CLIENT) @Override public void getSubItems(Item itemIn,CreativeTabs tab,NonNullList<ItemStack> subItems){
  for (  T type : typeLookup) {
    ICheeseBlockStackFactory blockStackFactory=type.getCheeseBlocks();
    ItemStack stack=blockStackFactory.asItemStackForStage(blockStackFactory.getInitialStage());
    subItems.add(stack);
  }
}

Fixed version (ground truth):
@SideOnly(Side.CLIENT) @Override public void getSubItems(Item itemIn,CreativeTabs tab,NonNullList<ItemStack> subItems){
  for (  T type : typeLookup) {
    ICheeseBlockStackFactory blockStackFactory=type.getCheeseBlocks();
    ItemStack stack=blockStackFactory.asStackForStage(blockStackFactory.getInitialStage());
    subItems.add(stack);
  }
}
Program: 174121
Project: 174121
Buggy source:
public ItemStack yankSlices(int count,boolean doYank){
  final int yankedCount=MathHelper.clamp(count,0,getSlices());
  final int quantity=yankedCount * cheesePerSlice;
  if (quantity > 0) {
    if (doYank) {
      this.slices-=yankedCount;
      setStage(EnumCheeseStage.CUT);
    }
    return cheese.getCheeseItems().asStack(quantity);
  }
  return null;
}

Fixed version (ground truth):
public ItemStack yankSlices(int count,boolean doYank){
  final int yankedCount=MathHelper.clamp(count,0,getSlices());
  final int quantity=yankedCount * cheesePerSlice;
  if (quantity > 0) {
    if (doYank) {
      this.slices-=yankedCount;
      setStage(EnumCheeseStage.CUT);
    }
    return cheese.getCheeseItems().asStack(quantity);
  }
  return ItemStack.EMPTY;
}
Program: 174122
Project: 174122
Buggy source:
@Override public ICheeseBlockStackFactory getCheeseBlocks(){
  return new ICheeseBlockStackFactory(){
    @Override public ItemStack asStackForStage(    int size,    EnumCheeseStage stage){
      return GrowthcraftMilkBlocks.agedCheeseBlock.asStack(size,CheeseUtils.getItemMetaFor(AgedCheeseTypes.this,stage));
    }
    @Override public ItemStack asItemStackForStage(    int size,    EnumCheeseStage stage){
      return GrowthcraftMilkItems.agedCheeseBlockItem.asStack(size,CheeseUtils.getItemMetaFor(AgedCheeseTypes.this,stage));
    }
    @Override public EnumCheeseStage getInitialStage(){
      return EnumCheeseStage.UNAGED;
    }
  }
;
}

Fixed version (ground truth):
@Override public ICheeseBlockStackFactory getCheeseBlocks(){
  return new ICheeseBlockStackFactory(){
    @Override public ItemStack asStackForStage(    int size,    EnumCheeseStage stage){
      return GrowthcraftMilkBlocks.agedCheeseBlock.asStack(size,CheeseUtils.getItemMetaFor(AgedCheeseTypes.this,stage));
    }
    @Override public EnumCheeseStage getInitialStage(){
      return EnumCheeseStage.UNAGED;
    }
  }
;
}
Program: 174123
Project: 174123
Buggy source:
public static void register(){
  thistle.register(false);
  cheeseVat.getBlock().setCreativeTab(tabGrowthcraft);
  cheeseVat.register(true);
  pancheon.getBlock().setCreativeTab(tabGrowthcraft);
  pancheon.register(true);
  churn.getBlock().setCreativeTab(tabGrowthcraft);
  churn.register(true);
  agedCheeseBlock.register(new ResourceLocation(Reference.MODID,"String_Node_Str"),false);
}

Fixed version (ground truth):
public static void register(){
  thistle.register(false);
  cheeseVat.getBlock().setCreativeTab(tabGrowthcraft);
  cheeseVat.register(true);
  pancheon.getBlock().setCreativeTab(tabGrowthcraft);
  pancheon.register(true);
  churn.getBlock().setCreativeTab(tabGrowthcraft);
  churn.register(true);
  agedCheeseBlock.getBlock().setCreativeTab(tabGrowthcraft);
  agedCheeseBlock.register(new ResourceLocation(Reference.MODID,"String_Node_Str"),false);
}
Program: 174124
Project: 174124
Buggy source:
public static void register(){
  thistle.getItem().setCreativeTab(tabGrowthcraft);
  thistle.register();
  registerItem(thistle_seed);
  stomach.getItem().setCreativeTab(tabGrowthcraft);
  stomach.register();
  registerItem(itemCheeseCloth);
  starterCulture.getItem().setCreativeTab(GrowthcraftCore.tabGrowthcraft);
  starterCulture.register();
  butter.getItem().setCreativeTab(GrowthcraftCore.tabGrowthcraft);
  butter.register();
  registerItem(itemIceCream);
  registerItem(itemYogurt);
  registerItem(itemAgedCheeseSlice);
  registerItem(itemWaxedCheeseSlice);
  registerItem(itemSimpleCheeseSlice);
  agedCheeseBlockItem.getItem().setCreativeTab(GrowthcraftCore.tabGrowthcraft);
  agedCheeseBlockItem.register(new ResourceLocation(Reference.MODID,"String_Node_Str"));
  registerOres();
}

Fixed version (ground truth):
public static void register(){
  thistle.getItem().setCreativeTab(tabGrowthcraft);
  thistle.register();
  registerItem(thistle_seed);
  stomach.getItem().setCreativeTab(tabGrowthcraft);
  stomach.register();
  registerItem(itemCheeseCloth);
  starterCulture.getItem().setCreativeTab(GrowthcraftCore.tabGrowthcraft);
  starterCulture.register();
  butter.getItem().setCreativeTab(GrowthcraftCore.tabGrowthcraft);
  butter.register();
  registerItem(itemIceCream);
  registerItem(itemYogurt);
  registerItem(itemAgedCheeseSlice);
  registerItem(itemWaxedCheeseSlice);
  registerItem(itemSimpleCheeseSlice);
  agedCheeseBlockItem.register(GrowthcraftMilkBlocks.agedCheeseBlock.getBlock().getRegistryName());
  registerOres();
}
Program: 174125
Project: 174125
Buggy source:
@Override public void showHighBaskNotice(){
  mViewHolder.getTvBaskNotice().setText(R.string.weather_middle_bask);
}

Fixed version (ground truth):
@Override public void showHighBaskNotice(){
  mViewHolder.getTvBaskNotice().setText(R.string.weather_high_bask);
}
Program: 174127
Project: 174127
Buggy source:
@Override public String getTag(){
  String tag=String.format("String_Node_Str",credentials.getRegistryURL(),credentials.getUsername(),credentials.getRepository(),super.getTag());
  logger.info("String_Node_Str",tag);
  return tag;
}

Fixed version (ground truth):
@Override public String getTag(){
  String registryUrl=credentials.getRegistryURL();
  if (!registryUrl.endsWith("String_Node_Str")) {
    registryUrl=registryUrl + "String_Node_Str";
  }
  String username=credentials.getUsername();
  if (!username.isEmpty()) {
    username+="String_Node_Str";
  }
  String tag=String.format("String_Node_Str",registryUrl,username,credentials.getRepository(),super.getTag());
  logger.info("String_Node_Str",tag);
  return tag;
}
Program: 174128
Project: 174128
Buggy source:
/** 
 * Creates a script to delete the S3Bucket and the deployed Stack. Note: May or may not be included in the final version. Currently used for quicker manual debugging.
 */
private void writeCleanUpScript() throws IOException {
  logger.debug("String_Node_Str");
  BashScript cleanupScript=new BashScript(cfnModule.getFileAccess(),FILENAME_CLEANUP);
  cleanupScript.append(CLI_COMMAND_DELETEBUCKET + cfnModule.getBucketName());
  cleanupScript.append(CLI_COMMAND_DELETESTACK + CLI_PARAM_STACKNAME + cfnModule.getStackName());
}

Fixed version (ground truth):
/** 
 * Creates a script to delete the S3Bucket and the deployed Stack. Note: May or may not be included in the final version. Currently used for quicker manual debugging.
 */
private void writeCleanUpScript() throws IOException {
  logger.debug("String_Node_Str");
  BashScript cleanupScript=new BashScript(cfnModule.getFileAccess(),FILENAME_CLEANUP);
  cleanupScript.append(CLI_COMMAND_DELETEBUCKET + cfnModule.getBucketName() + "String_Node_Str"+ CLI_PARAM_FORCE);
  cleanupScript.append(CLI_COMMAND_DELETESTACK + CLI_PARAM_STACKNAME + cfnModule.getStackName());
}
Program: 174129
Project: 174129
Buggy source:
/** 
 * creates a service which depends on the template add it to the manifest
 */
private void createService() throws IOException {
  ArrayList<String> services=new ArrayList<>();
  services.add(String.format("String_Node_Str",SERVICE.getName()));
  for (  Map.Entry<String,CloudFoundryServiceType> service : app.getServices().entrySet()) {
    services.add(String.format("String_Node_Str",service.getKey()));
  }
  for (  String service : services) {
    fileAccess.access(MANIFEST).appendln(service).close();
  }
}

Fixed version (ground truth):
/** 
 * creates a service which depends on the template add it to the manifest
 */
private void createService() throws IOException {
  Map<String,CloudFoundryServiceType> appServices=app.getServices();
  if (!appServices.isEmpty()) {
    ArrayList<String> services=new ArrayList<>();
    services.add(String.format("String_Node_Str",SERVICE.getName()));
    for (    Map.Entry<String,CloudFoundryServiceType> service : appServices.entrySet()) {
      services.add(String.format("String_Node_Str",service.getKey()));
    }
    for (    String service : services) {
      fileAccess.access(MANIFEST_PATH).appendln(service).close();
    }
  }
}