nus-yam/ex-repair huggingface dataset:
Program: 87099
Project: 87099
Buggy source:
@Override public long getTimePlayed(){
  if (getNBT() != null && getNBT().containsKey("String_Node_Str")) {
    return getNBT().getInt("String_Node_Str");
  }
  return 0;
}

Fixed version (ground truth):
@Override public long getTimePlayed(){
  if (getNBT() != null && getNBT().containsKey("String_Node_Str")) {
    return getNBT().getLong("String_Node_Str");
  }
  return 0;
}
Program: 87100
Project: 87100
Buggy source:
/** 
 * Create a new Server Wrapper
 * @param server the MinecraftServer instance
 */
public CanaryServer(MinecraftServer server){
  if (this.server == null) {
    this.server=server;
    addSynchronousTask(new TPSTracker(this));
  }
}

Fixed version (ground truth):
/** 
 * Create a new Server Wrapper
 * @param server the MinecraftServer instance
 */
public CanaryServer(MinecraftServer server){
  this.server=server;
  addSynchronousTask(new TPSTracker(this));
}
Program: 87101
Project: 87101
Buggy source:
public boolean matchesMatrix(CraftingMatrix matrix){
  if (matrix instanceof CanaryPlayerCraftingMatrix) {
    if (getHandle().a(((CanaryPlayerCraftingMatrix)matrix).getHandle(),null)) {
      return true;
    }
  }
 else   if (matrix instanceof CanaryWorkbench) {
    if (getHandle().a(((CanaryWorkbench)matrix).getInventory(),null)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean matchesMatrix(CraftingMatrix matrix){
  if (matrix instanceof CanaryPlayerCraftingMatrix) {
    if (getHandle().a(((CanaryPlayerCraftingMatrix)matrix).getHandle(),((CanaryWorld)Canary.getServer().getDefaultWorld()).getHandle())) {
      return true;
    }
  }
 else   if (matrix instanceof CanaryWorkbench) {
    if (getHandle().a(((CanaryWorkbench)matrix).getInventory(),((CanaryWorld)Canary.getServer().getDefaultWorld()).getHandle())) {
      return true;
    }
  }
  return false;
}
Program: 87102
Project: 87102
Buggy source:
@Override public void setRotation(float rotation){
  entity.A=rotation;
}

Fixed version (ground truth):
@Override public void setRotation(float rotation){
  entity.B=rotation;
}
Program: 87103
Project: 87103
Buggy source:
@Override public void setPitch(float pitch){
  entity.B=pitch;
}

Fixed version (ground truth):
@Override public void setPitch(float pitch){
  entity.A=pitch;
}
Program: 87104
Project: 87104
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public String toString(){
  return String.format("String_Node_Str",getID(),getName());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String toString(){
  return String.format("String_Node_Str",getFqName(),getID(),getName());
}
Program: 87105
Project: 87105
Buggy source:
@Override public void l_(){
  super.c();
  super.l_();
  if (!this.M) {
    try {
      getNPC().update();
    }
 catch (    Exception ex) {
    }
  }
}

Fixed version (ground truth):
@Override public void l_(){
  super.l_();
  if (!this.M) {
    getNPC().update();
  }
  this.H();
}
Program: 87106
Project: 87106
Buggy source:
public EntityNonPlayableCharacter(String name,Location location){
  super(((CanaryWorld)location.getWorld()).getHandle(),name);
  this.a(location.getX(),location.getY(),location.getZ(),location.getRotation(),location.getPitch());
  this.entity=new CanaryNonPlayableCharacter(this);
}

Fixed version (ground truth):
public EntityNonPlayableCharacter(String name,Location location){
  super(((CanaryWorld)location.getWorld()).getHandle(),name);
  this.b(location.getX(),location.getY(),location.getZ(),location.getRotation(),location.getPitch());
  this.i(1.0F);
  this.entity=new CanaryNonPlayableCharacter(this);
}
Program: 87108
Project: 87108
Buggy source:
public void c(String s0){
  DisconnectionHook hook=new DisconnectionHook(serverHandler.getUser(),s0,EnumChatFormatting.o + this.c.ax() + "String_Node_Str");
  Canary.hooks().callHook(hook);
  if (!this.b) {
    this.c.k();
    this.b(new Packet255KickDisconnect(s0));
    this.a.d();
    if (!hook.isHidden()) {
      this.d.ad().a((Packet)(new Packet3Chat(hook.getLeaveMessage())));
    }
    this.d.ad().e(this.c);
    this.b=true;
  }
}

Fixed version (ground truth):
public void c(String s0){
  DisconnectionHook hook=new DisconnectionHook(serverHandler.getUser(),s0,EnumChatFormatting.o + this.c.ax() + "String_Node_Str");
  Canary.hooks().callHook(hook);
  if (!this.b) {
    this.c.k();
    this.b(new Packet255KickDisconnect(s0));
    this.a.d();
    if (!hook.isHidden()) {
      this.d.ad().a((Packet)(new Packet3Chat(hook.getLeaveMessage())));
    }
    this.d.ad().e(this.c);
    this.b=true;
    Canary.channels().unregisterClientAll(serverHandler);
  }
}
Program: 87109
Project: 87109
Buggy source:
void update(){
synchronized (behaviors) {
    for (    NPCBehavior behavior : behaviors) {
      try {
        if (!getHandle().M) {
          behavior.onUpdate();
        }
      }
 catch (      Exception ex) {
        Canary.logWarning("String_Node_Str" + behavior.getClass().getSimpleName() + "String_Node_Str"+ this.getName());
        Canary.logStackTrace("String_Node_Str",ex);
      }
    }
  }
}

Fixed version (ground truth):
void update(){
  try {
synchronized (behaviors) {
      for (      NPCBehavior behavior : behaviors) {
        try {
          if (!getHandle().M) {
            behavior.onUpdate();
          }
        }
 catch (        Exception ex) {
          Canary.logWarning("String_Node_Str" + behavior.getClass().getSimpleName() + "String_Node_Str"+ this.getName());
          Canary.logStackTrace("String_Node_Str",ex);
        }
      }
    }
  }
 catch (  Exception ex) {
    Canary.logWarning("String_Node_Str" + this.getName());
    Canary.logStackTrace("String_Node_Str",ex);
  }
}
Program: 87110
Project: 87110
Buggy source:
void clicked(Player player){
synchronized (behaviors) {
    for (    NPCBehavior behavior : behaviors) {
      try {
        if (!getHandle().M) {
          behavior.onClicked(player);
        }
      }
 catch (      Exception ex) {
        Canary.logWarning("String_Node_Str" + behavior.getClass().getSimpleName() + "String_Node_Str"+ this.getName());
        Canary.logStackTrace("String_Node_Str",ex);
      }
    }
  }
}

Fixed version (ground truth):
void clicked(Player player){
  try {
synchronized (behaviors) {
      for (      NPCBehavior behavior : behaviors) {
        try {
          if (!getHandle().M) {
            behavior.onClicked(player);
          }
        }
 catch (        Exception ex) {
          Canary.logWarning("String_Node_Str" + behavior.getClass().getSimpleName() + "String_Node_Str"+ this.getName());
          Canary.logStackTrace("String_Node_Str",ex);
        }
      }
    }
  }
 catch (  Exception ex) {
    Canary.logWarning("String_Node_Str" + this.getName());
    Canary.logStackTrace("String_Node_Str",ex);
  }
}
Program: 87111
Project: 87111
Buggy source:
@Override public void w(){
  super.w();
  ((CanaryNonPlayableCharacter)entity).destoryed();
}

Fixed version (ground truth):
@Override public void w(){
  super.w();
  ((CanaryNonPlayableCharacter)entity).destroyed();
}
Program: 87112
Project: 87112
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void setCanSwim(boolean bool){
  nav.e(true);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void setCanSwim(boolean bool){
  nav.e(bool);
}
Program: 87113
Project: 87113
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void disableWaterPathing(){
  nav.a(false);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override @Deprecated public void disableWaterPathing(){
  nav.a(false);
}
Program: 87114
Project: 87114
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void enableWaterPathing(){
  nav.a(true);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override @Deprecated public void enableWaterPathing(){
  nav.a(true);
}
Program: 87115
Project: 87115
Buggy source:
public Chunk(World world,byte[] abyte,int i0,int i1){
  this(world,i0,i1);
  int i2=abyte.length / 256;
  for (int i3=0; i3 < 16; ++i3) {
    for (int i4=0; i4 < 16; ++i4) {
      for (int i5=0; i5 < i2; ++i5) {
        byte b0=abyte[i3 << 11 | i4 << 7 | i5];
        if (b0 != 0) {
          int i6=i5 >> 4;
          if (this.r[i6] == null) {
            this.r[i6]=new ExtendedBlockStorage(i6 << 4,!world.t.f);
          }
          this.r[i6].a(i3,i5 & 15,i4,b0);
        }
      }
    }
  }
  canaryChunk=new CanaryChunk(this);
}

Fixed version (ground truth):
public Chunk(World world,byte[] abyte,int i0,int i1){
  this(world,i0,i1);
  int i2=abyte.length / 256;
  for (int i3=0; i3 < 16; ++i3) {
    for (int i4=0; i4 < 16; ++i4) {
      for (int i5=0; i5 < i2; ++i5) {
        byte b0=abyte[i3 << 11 | i4 << 7 | i5];
        if (b0 != 0) {
          int i6=i5 >> 4;
          if (this.r[i6] == null) {
            this.r[i6]=new ExtendedBlockStorage(i6 << 4,!world.t.f);
          }
          this.r[i6].a(i3,i5 & 15,i4,b0);
        }
      }
    }
  }
}
Program: 87116
Project: 87116
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public String getTextOnLine(int line){
  if (line > 0 && line < 3) {
    return getTileEntity().a[line];
  }
  return null;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String getTextOnLine(int line){
  if (line >= 0 && line <= 3) {
    return getTileEntity().a[line];
  }
  return null;
}
Program: 87117
Project: 87117
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void setTextOnLine(String text,int line){
  if (line > 0 && line < 3) {
    getTileEntity().a[line]=text;
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void setTextOnLine(String text,int line){
  if (line >= 0 && line <= 3) {
    getTileEntity().a[line]=text;
  }
}
Program: 87118
Project: 87118
Buggy source:
@Override public String getPrefix(){
  if (prefix != null) {
    return Colors.MARKER + prefix;
  }
 else   if (group.getPrefix() != null) {
    return Colors.MARKER + group.getPrefix();
  }
 else {
    return Colors.WHITE;
  }
}

Fixed version (ground truth):
@Override public String getPrefix(){
  if (prefix != null) {
    if (prefix.contains(Colors.MARKER)) {
      return prefix;
    }
    return Colors.MARKER + prefix;
  }
 else   if (group.getPrefix() != null) {
    return Colors.MARKER + group.getPrefix();
  }
 else {
    return Colors.WHITE;
  }
}
Program: 87120
Project: 87120
Buggy source:
@Override public int getWeight(){
  return handle.b();
}

Fixed version (ground truth):
@Override public int getWeight(){
  return handle.c();
}
Program: 87121
Project: 87121
Buggy source:
@Override public int getMinEnchantmentLevel(){
  return handle.c();
}

Fixed version (ground truth):
@Override public int getMinEnchantmentLevel(){
  return handle.d();
}
Program: 87122
Project: 87122
Buggy source:
@Override public int getMaxEnchantmentLevel(){
  return handle.a();
}

Fixed version (ground truth):
@Override public int getMaxEnchantmentLevel(){
  return handle.b();
}
Program: 87123
Project: 87123
Buggy source:
@Override public void handleCommand(String[] command){
  handler.getUser().executeCommand(command);
}

Fixed version (ground truth):
@Override public void handleCommand(String[] command){
  getUser().executeCommand(command);
}
Program: 87124
Project: 87124
Buggy source:
@Override public Player getUser(){
  return handler.getUser();
}

Fixed version (ground truth):
@Override public Player getUser(){
  return handler.c.getPlayer();
}
Program: 87125
Project: 87125
Buggy source:
@Override public void sendMessage(String messgage){
  handler.sendMessage(messgage);
}

Fixed version (ground truth):
@Override public void sendMessage(String message){
  getUser().sendMessage(message);
}
Program: 87126
Project: 87126
Buggy source:
@Override public void handleChat(Packet chatPacket){
  if (chatPacket.getPacketId() != 3) {
    return;
  }
  handler.playerChat((net.minecraft.server.Packet3Chat)((CanaryPacket)chatPacket).getPacket());
}

Fixed version (ground truth):
@Override public void handleChat(Packet chatPacket){
  if (chatPacket.getPacketId() != 3) {
    return;
  }
  handler.a((net.minecraft.server.Packet3Chat)((CanaryPacket)chatPacket).getPacket());
}
Program: 87127
Project: 87127
Buggy source:
@Override public int getPacketId(){
  return packet.b();
}

Fixed version (ground truth):
@Override public int getPacketId(){
  return packet.n();
}
Program: 87128
Project: 87128
Buggy source:
@Override public ArrayList<Player> getManagedPlayers(){
  ArrayList<Player> players=new ArrayList<Player>();
  for (  net.minecraft.server.EntityPlayerMP player : pm.managedPlayers) {
    players.add(player.getPlayer());
  }
  return players;
}

Fixed version (ground truth):
@Override public ArrayList<Player> getManagedPlayers(){
  ArrayList<Player> players=new ArrayList<Player>();
  for (  net.minecraft.server.EntityPlayerMP player : pm.getManagedPlayers()) {
    players.add(player.getPlayer());
  }
  return players;
}
Program: 87129
Project: 87129
Buggy source:
@Override public int getMaxTrackingDistance(){
  return pm.c();
}

Fixed version (ground truth):
@Override public int getMaxTrackingDistance(){
  return net.minecraft.server.PlayerManager.a(pm.getPlayerViewRadius());
}
Program: 87130
Project: 87130
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public int getMaxPlayers(){
  return Configuration.getNetConfig().getMaxPlayers();
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int getMaxPlayers(){
  return Configuration.getServerConfig().getMaxPlayers();
}
Program: 87131
Project: 87131
Buggy source:
/** 
 * The canary Bootstrap process
 * @param args
 */
public static void main(String[] args){
  Main.args=args;
  initBird();
  try {
    OMinecraftServer.main(args);
  }
 catch (  Throwable t) {
    Logman.logStackTrace("String_Node_Str",t);
  }
}

Fixed version (ground truth):
/** 
 * The canary Bootstrap process
 * @param args
 */
public static void main(String[] args){
  initBird();
  try {
    OMinecraftServer.main(args);
  }
 catch (  Throwable t) {
    Logman.logStackTrace("String_Node_Str",t);
  }
}
Program: 87132
Project: 87132
Buggy source:
@Override public void consoleCommand(String command,Player player){
  ConsoleCommandHook hook=(ConsoleCommandHook)Canary.hooks().callCancelableHook(new ConsoleCommandHook(player,command));
  if (hook.isCanceled()) {
    return;
  }
  String[] args=command.split("String_Node_Str");
  CanaryCommand toExecute=CanaryCommand.fromString(args[0].replace("String_Node_Str","String_Node_Str"));
  if (toExecute != null) {
    toExecute.execute(null,args);
  }
 else {
    server.a(command,((CanaryPlayer)player).getHandle().a);
  }
  Logman.logInfo(player.getName() + "String_Node_Str" + command);
}

Fixed version (ground truth):
@Override public boolean consoleCommand(String command,Player player){
  ConsoleCommandHook hook=(ConsoleCommandHook)Canary.hooks().callCancelableHook(new ConsoleCommandHook(player,command));
  if (hook.isCanceled()) {
    return true;
  }
  String[] args=command.split("String_Node_Str");
  CanaryCommand toExecute=CanaryCommand.fromString(args[0].replace("String_Node_Str","String_Node_Str"));
  if (toExecute != null) {
    return toExecute.execute(null,args);
  }
 else {
    server.a(command,((CanaryPlayer)player).getHandle().a);
    return false;
  }
}
Program: 87133
Project: 87133
Buggy source:
@Override public void actionPerformed(ActionEvent var1){
  String var2=this.a.getText().trim();
  if (var2.length() > 0) {
    OServerGUI.a(this.b).a(var2,this.b);
  }
  this.a.setText("String_Node_Str");
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent var1){
  String var2=this.a.getText().trim();
  if (var2.length() > 0 && Canary.instance() != null) {
    Canary.getServer().consoleCommand(var2);
  }
  this.a.setText("String_Node_Str");
}
Program: 87134
Project: 87134
Buggy source:
private void u(){
  a.info("String_Node_Str");
  for (int var1=0; var1 < this.e.length; ++var1) {
    OWorldServer var2=this.e[var1];
    try {
      var2.a(true,(OIProgressUpdate)null);
    }
 catch (    IOException e1) {
      e1.printStackTrace();
    }
    var2.A();
  }
}

Fixed version (ground truth):
private void u(){
  a.info("String_Node_Str");
  for (int var1=0; var1 < this.e.length; ++var1) {
    OWorldServer var2=this.e[var1];
    try {
      var2.a(true,(OIProgressUpdate)null);
    }
 catch (    IOException e1) {
      e1.printStackTrace();
    }
  }
}
Program: 87135
Project: 87135
Buggy source:
@Override public void consoleCommand(String command,IPlayer player){
}

Fixed version (ground truth):
public void consoleCommand(String command,IPlayer player){
}
Program: 87136
Project: 87136
Buggy source:
@Override public void setTimer(String uniqueName,int time){
}

Fixed version (ground truth):
public void setTimer(String uniqueName,int time){
}
Program: 87137
Project: 87137
Buggy source:
@Override public boolean isTimerExpired(String uniqueName){
  return false;
}

Fixed version (ground truth):
public boolean isTimerExpired(String uniqueName){
  return false;
}
Program: 87138
Project: 87138
Buggy source:
public void e(){
  OThreadedFileIOBase.a.a();
  ORegionFileCache.a();
}

Fixed version (ground truth):
public void e(){
  System.out.println("String_Node_Str");
  try {
    OThreadedFileIOBase.a.a();
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
  ORegionFileCache.a();
}
Program: 87139
Project: 87139
Buggy source:
public void a(){
  this.e=true;
  while (this.c != this.d) {
    try {
      Thread.sleep(10L);
    }
 catch (    InterruptedException e1) {
      e1.printStackTrace();
    }
  }
  this.e=false;
}

Fixed version (ground truth):
public void a() throws InterruptedException {
  this.e=true;
  while (this.c != this.d) {
    Thread.sleep(10L);
  }
  this.e=false;
}
Program: 87140
Project: 87140
Buggy source:
private OThreadedFileIOBase(){
  super();
  Thread var1=new Thread(this,"String_Node_Str");
  var1.setPriority(1);
  var1.start();
}

Fixed version (ground truth):
private OThreadedFileIOBase(){
  super();
  b=Collections.synchronizedList(new ArrayList());
  Thread var1=new Thread(this,"String_Node_Str");
  var1.setPriority(1);
  var1.start();
}
Program: 87141
Project: 87141
Buggy source:
public void run(){
  this.b();
}

Fixed version (ground truth):
public void run(){
  while (true) {
    this.b();
  }
}
Program: 87142
Project: 87142
Buggy source:
/** 
 * Update internal state and forward to token
 * @param toState
 */
void transitionTo(State toState){
  token.setStateName(toState.getName());
  token.setTimeEntered(currentDateService.getNow());
}

Fixed version (ground truth):
/** 
 * Update internal state and forward to token
 * @param toState
 */
void transitionTo(Transition transition){
  State toState=transition.getToState();
  token.setStateName(toState.getName());
  token.setTimeEntered(currentDateService.getNow());
  for (  ActionHandler handler : transition.getOnTransitionHandlers()) {
    handler.process(this);
  }
}
Program: 87143
Project: 87143
Buggy source:
/** 
 * Scan for triggers on the current state. This is recursive, so if a transition occurs it will scan again, and so forth. Because of the likelihood of infinite recursion, this implements a maximum number of auto transitions - see MAX_TRANSITIONS
 */
public boolean scan(){
  log.debug("String_Node_Str");
  int cnt=0;
  boolean didTransition=false;
  while (_scan()) {
    didTransition=true;
    if (cnt++ > MAX_TRANSITIONS)     throw new RuntimeException("String_Node_Str" + cnt + "String_Node_Str");
  }
  return didTransition;
}

Fixed version (ground truth):
/** 
 * Scan for triggers on the current state. This is recursive, so if a transition occurs it will scan again, and so forth. Because of the likelihood of infinite recursion, this implements a maximum number of auto transitions - see MAX_TRANSITIONS
 */
public boolean scan(){
  log.debug("String_Node_Str");
  int cnt=0;
  boolean didTransition=false;
  while (_scan()) {
    didTransition=true;
    if (cnt++ > MAX_TRANSITIONS) {
      throw new RuntimeException("String_Node_Str" + cnt + "String_Node_Str");
    }
  }
  return didTransition;
}
Program: 87144
Project: 87144
Buggy source:
void executeTransition(Transition transition){
  log.debug("String_Node_Str" + transition.getFromState().getName() + "String_Node_Str"+ transition.getToState().getName());
  fireOnExit(transition.getFromState());
  transitionTo(transition.getToState());
  fireOnEnter(transition.getToState());
  if (transition.getToState().getInterval() != null) {
    if (timerService != null) {
      timerService.registerTimer(this);
    }
  }
 else {
    if (timerService != null) {
      timerService.unRegisterTimer(this);
    }
  }
  scan();
}

Fixed version (ground truth):
void executeTransition(Transition transition){
  log.info("String_Node_Str" + transition.getFromState().getName() + "String_Node_Str"+ transition.getToState().getName());
  fireOnExit(transition.getFromState());
  transitionTo(transition);
  fireOnEnter(transition.getToState());
  if (transition.getToState().getInterval() != null) {
    if (timerService != null) {
      timerService.registerTimer(this);
    }
  }
 else {
    if (timerService != null) {
      timerService.unRegisterTimer(this);
    }
  }
  scan();
}
Program: 87145
Project: 87145
Buggy source:
private boolean _scan(){
  boolean didTransition=false;
  State state=getCurrentState();
  if (state == null) {
    state=process.getStartState();
    token.setStateName(state.getName());
    System.out.println("String_Node_Str" + token.getStateName());
    System.out.println("String_Node_Str" + getCurrentState().getName());
    didTransition=true;
  }
  System.out.println("String_Node_Str" + state.getTransitions().size());
  for (  Transition t : state.getTransitions()) {
    System.out.println("String_Node_Str" + t.getName());
    if (evalAndTransition(t,false)) {
      System.out.println("String_Node_Str" + token.getStateName());
      return true;
    }
  }
  return didTransition;
}

Fixed version (ground truth):
private boolean _scan(){
  boolean didTransition=false;
  State state=getCurrentState();
  if (state == null) {
    state=process.getStartState();
    token.setStateName(state.getName());
    log.info("String_Node_Str" + token.getStateName());
    didTransition=true;
  }
  for (  Transition t : state.getTransitions()) {
    if (evalAndTransition(t,false)) {
      log.info("String_Node_Str" + token.getStateName());
      return true;
    }
  }
  return didTransition;
}
Program: 87146
Project: 87146
Buggy source:
/** 
 * @param org
 * @param name
 * @param groupDao
 * @param numUsers
 * @param session
 * @param emailSender
 * @param registrationMode = eg "o" = open
 * @return
 * @throws HibernateException
 */
public Group checkCreateGroup(Organisation org,String name,int numUsers,Session session,Profile emailSender,String registrationMode) throws HibernateException {
  Group g=Group.findGroup(org,name,session);
  if (g == null) {
    g=new Group();
    g.setOrganisation(org);
    g.setName(name);
    g.setCreatedDate(new Date());
    g.setModifiedDate(new Date());
    g.setRegistrationMode(registrationMode);
    session.save(g);
    for (int i=0; i < numUsers; i++) {
      String pname=name + i;
      Profile p=checkCreateUser(pname,"String_Node_Str",session,org,emailSender);
      p.addToGroup(g,org,session);
    }
  }
  return g;
}

Fixed version (ground truth):
/** 
 * @param org
 * @param name
 * @param groupDao
 * @param numUsers
 * @param session
 * @param emailSender
 * @param registrationMode = eg "o" = open
 * @return
 * @throws HibernateException
 */
public Group checkCreateGroup(Organisation org,String name,int numUsers,Session session,Profile emailSender,String registrationMode) throws HibernateException {
  Group g=Group.findGroup(org,name,session);
  if (g == null) {
    g=new Group();
    g.setOrganisation(org);
    g.setName(name);
    g.setCreatedDate(new Date());
    g.setModifiedDate(new Date());
    g.setRegistrationMode(registrationMode);
    if (org.getGroups() == null) {
      org.setGroups(new ArrayList<Group>());
    }
    org.getGroups().add(g);
    session.save(g);
    for (int i=0; i < numUsers; i++) {
      String pname=name + i;
      Profile p=checkCreateUser(pname,"String_Node_Str",session,org,emailSender);
      p.addToGroup(g,org,session);
    }
  }
  return g;
}
Program: 87148
Project: 87148
Buggy source:
@Override public void doProcess(io.milton.context.Context context){
  log.info("String_Node_Str" + jobId);
  Session session=SessionManager.session();
  Transaction tx=session.beginTransaction();
  try {
    context.get(EmailTriggerService.class).send(jobId,sourceEntityIds,session);
  }
 catch (  Exception e) {
    tx.rollback();
    log.error("String_Node_Str" + jobId,e);
  }
}

Fixed version (ground truth):
@Override public void doProcess(io.milton.context.Context context){
  log.info("String_Node_Str" + jobId);
  Session session=SessionManager.session();
  Transaction tx=session.beginTransaction();
  try {
    EmailTriggerService emailTriggerService=context.get(EmailTriggerService.class);
    if (emailTriggerService == null) {
      throw new RuntimeException("String_Node_Str" + EmailTriggerService.class + "String_Node_Str");
    }
    emailTriggerService.send(jobId,sourceEntityIds,session);
    tx.commit();
  }
 catch (  Exception e) {
    tx.rollback();
    log.error("String_Node_Str" + jobId,e);
  }
}
Program: 87150
Project: 87150
Buggy source:
@Override public RunInstancesResponse runInstances(RunInstances runInstances){
  try {
    RunInstancesRequestVCloud vCloudRequest=mappingService.getRunInstancesRequest(runInstances);
    RunInstancesResponseVCloud vCloudResponse=vCloudService.runInstances(vCloudRequest);
    DescribeInstancesInfoType describeInstancesInfoType=new DescribeInstancesInfoType().withItems(new DescribeInstancesItemType().withInstanceId(MappingUtils.vmUrnToInstanceId(vCloudResponse.getVmId())));
    DescribeInstancesResponse describeInstancesResponse=describeInstances(new DescribeInstances().withInstancesSet(describeInstancesInfoType));
    return mappingService.getRunInstancesResponse(describeInstancesResponse);
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new EC2ServiceException(InternalError,e.getMessage() != null ? e.getMessage() : "String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public RunInstancesResponse runInstances(RunInstances runInstances){
  try {
    RunInstancesRequestVCloud vCloudRequest=mappingService.getRunInstancesRequest(runInstances);
    RunInstancesResponseVCloud vCloudResponse=vCloudService.runInstances(vCloudRequest);
    DescribeInstancesInfoType describeInstancesInfoType=new DescribeInstancesInfoType();
    describeInstancesInfoType.withNewItems().withInstanceId(MappingUtils.vmUrnToInstanceId(vCloudResponse.getVmId()));
    RunInstancesResponse response=mappingService.getRunInstancesResponse(vCloudRequest,vCloudResponse);
    response.withGroupSet().withNewItems().withGroupId("String_Node_Str");
    return response;
  }
 catch (  Exception e) {
    log.error("String_Node_Str",e);
    throw new EC2ServiceException(InternalError,e.getMessage() != null ? e.getMessage() : "String_Node_Str");
  }
}
Program: 87151
Project: 87151
Buggy source:
RunInstancesResponse getRunInstancesResponse(DescribeInstancesResponse describeInstancesResponse);

Fixed version (ground truth):
RunInstancesResponse getRunInstancesResponse(RunInstancesRequestVCloud runInstancesRequestVCloud,RunInstancesResponseVCloud runInstancesResponseVCloud);
Program: 87152
Project: 87152
Buggy source:
@Override public String apply(DescribeRegionsSetItemType in){
  return in.getRegionName();
}

Fixed version (ground truth):
@Override public boolean apply(Vm in){
  return in.getId().equals(runInstancesResponse.getVmId());
}
Program: 87154
Project: 87154
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.parish_search);
  filterText=(EditText)findViewById(R.id.search_parishes);
  filterText.addTextChangedListener(filterTextWatcher);
  filterText.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View view,    boolean hasFocus){
      if (!hasFocus) {
        hideKeyboard();
      }
    }
  }
);
  parishData=new ParishData(getApplicationContext());
  parishes=parishData.getAllParishes();
  adapter=new ParishAdapter(this,R.layout.parish_search_row,getParishNameArrayList());
  setListAdapter(adapter);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.parish_search);
  filterText=(EditText)findViewById(R.id.search_parishes);
  filterText.addTextChangedListener(filterTextWatcher);
  filterText.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View view,    boolean hasFocus){
      if (!hasFocus) {
        hideKeyboard();
      }
    }
  }
);
  parishData=new ParishData(getApplicationContext());
  adapter=new ParishAdapter(this,R.layout.parish_search_row,parishData.getAllParishes());
  setListAdapter(adapter);
}
Program: 87155
Project: 87155
Buggy source:
public ParishAdapter(Context context,int textViewResourceId,String[] objects){
  super(context,textViewResourceId,objects);
}

Fixed version (ground truth):
public ParishAdapter(Context context,int textViewResourceId,List<Parish> parishList){
  super(context,textViewResourceId,parishList);
  parishes=parishList;
}
Program: 87156
Project: 87156
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  LayoutInflater inflater=getLayoutInflater();
  View row=inflater.inflate(R.layout.parish_search_row,parent,false);
  TextView name=(TextView)row.findViewById(R.id.parish_name);
  name.setText(parishes.get(position).getName());
  name.setTag(parishes.get(position).getParishID());
  TextView address=(TextView)row.findViewById(R.id.parish_city);
  address.setText(parishes.get(position).getCity() + "String_Node_Str" + parishes.get(position).getState());
  return row;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  View row=convertView;
  if (row == null) {
    LayoutInflater inflater=getLayoutInflater();
    row=inflater.inflate(R.layout.parish_search_row,parent,false);
  }
  if (getItem(position) != null) {
    parish=getItem(position);
  }
 else {
    parish=parishes.get(position);
  }
  TextView name=(TextView)row.findViewById(R.id.parish_name);
  name.setText(parish.getName());
  name.setTag(parish.getParishID());
  TextView address=(TextView)row.findViewById(R.id.parish_city);
  address.setText(parish.getCity() + "String_Node_Str" + parish.getState());
  return row;
}
Program: 87157
Project: 87157
Buggy source:
void syncFromTemplate(AbstractProject template,AbstractProject implementation) throws IOException {
  if (implementation == null || !(implementation instanceof BuildableItemWithBuildWrappers) || !(implementation instanceof Describable) || template == null || !(template instanceof BuildableItemWithBuildWrappers) || !(template instanceof Describable)) {
    return;
  }
  ImplementationBuildWrapper implementationBuildWrapper=this;
  Map<Pattern,String> propertiesMap=getPropertiesMap(template,implementation,implementationBuildWrapper);
  String oldDescription=implementation.getDescription();
  boolean oldDisabled=implementation.isDisabled();
  XmlFile implementationXmlFile=replaceConfig(template,implementation,propertiesMap);
  refreshAndSave(template,implementationBuildWrapper,implementationXmlFile,oldDescription,oldDisabled);
}

Fixed version (ground truth):
void syncFromTemplate(AbstractProject template,AbstractProject implementation) throws IOException {
  if (implementation == null || !(implementation instanceof BuildableItemWithBuildWrappers) || !(implementation instanceof Describable) || template == null || !(template instanceof BuildableItemWithBuildWrappers) || !(template instanceof Describable)) {
    return;
  }
  ImplementationBuildWrapper implementationBuildWrapper=this;
  TemplateBuildWrapper templateBuildWrapper=BuildWrapperUtils.findBuildWrapper(TemplateBuildWrapper.class,template);
  if (templateBuildWrapper == null) {
    return;
  }
  Map<Pattern,String> propertiesMap=getPropertiesMap(template,implementation,implementationBuildWrapper);
  String oldDescription=implementation.getDescription();
  boolean oldDisabled=implementation.isDisabled();
  XmlFile implementationXmlFile=replaceConfig(template,implementation,propertiesMap);
  refreshAndSave(template,implementationBuildWrapper,implementationXmlFile,oldDescription,oldDisabled);
}
Program: 87158
Project: 87158
Buggy source:
@Test public void post() throws Exception {
  ClientDispatcher myClient=new ClientDispatcher();
  TransportImpl myTransport=new TransportImpl(null);
  myClient.init(myTransport);
  FailureDetector myFd=_tport1.getFD();
  FDUtil.ensureFD(myFd);
  ByteBuffer myBuffer=ByteBuffer.allocate(4);
  myBuffer.putInt(55);
  Proposal myProp=new Proposal("String_Node_Str",myBuffer.array());
  myClient.send(new Envelope(myProp),_tport1.getLocalAddress());
  VoteOutcome myEv=myClient.getNext(10000);
  Assert.assertFalse((myEv == null));
  Assert.assertTrue(myEv.getResult() == VoteOutcome.Reason.VALUE);
  AcceptorLearner myAl=_node2.getAcceptorLearner();
  Common myCommon=_node2.getCore().getCommon();
  Collect myCollect=new Collect(myAl.getLowWatermark().getSeqNum() + 1,myAl.getLeaderRndNum());
  myClient.send(myCollect,_tport2.getLocalAddress());
  Thread.sleep(5000);
  Assert.assertTrue(myAl.getStats().getIgnoredCollectsCount() == 1);
}

Fixed version (ground truth):
@Test public void post() throws Exception {
  ClientDispatcher myClient=new ClientDispatcher();
  TransportImpl myTransport=new TransportImpl(null);
  myClient.init(myTransport);
  FailureDetector myFd=_tport1.getFD();
  FDUtil.ensureFD(myFd);
  ByteBuffer myBuffer=ByteBuffer.allocate(4);
  myBuffer.putInt(55);
  Proposal myProp=new Proposal("String_Node_Str",myBuffer.array());
  myClient.send(new Envelope(myProp),_tport1.getLocalAddress());
  VoteOutcome myEv=myClient.getNext(10000);
  Assert.assertFalse((myEv == null));
  Assert.assertTrue(myEv.getResult() == VoteOutcome.Reason.VALUE);
  AcceptorLearner myAl=_node2.getAcceptorLearner();
  Common myCommon=_node2.getCore().getCommon();
  Collect myCollect=new Collect(myAl.getLowWatermark().getSeqNum() + 1,myAl.getLeaderRndNum() + 1);
  myClient.send(myCollect,_tport2.getLocalAddress());
  Thread.sleep(5000);
  Assert.assertTrue(myAl.getStats().getIgnoredCollectsCount() == 1);
}
Program: 87159
Project: 87159
Buggy source:
void shutdown(){
  _nodeSet.shutdown();
  _transportFactory.stop();
}

Fixed version (ground truth):
void shutdown() throws Exception {
  _nodeSet.shutdown();
  _transportFactory.stop();
}
Program: 87160
Project: 87160
Buggy source:
public void checkpoint() throws Exception {
  _checkpointer.checkpoint(_dispatcher);
}

Fixed version (ground truth):
public void checkpoint() throws Exception {
  _config.setHandle(_checkpointer.checkpoint(_dispatcher));
}
Program: 87161
Project: 87161
Buggy source:
NodeAdminImpl(OrderedMemoryTransport aTransport,Config aConfig,Environment anEnv){
  _config=aConfig;
  _env=anEnv;
  _transport=aTransport;
  _dispatcher=new ServerDispatcher(_config._loggerFactory.getLogger(),this);
  try {
    _dispatcher.init(_transport);
  }
 catch (  Exception anE) {
    throw new RuntimeException("String_Node_Str",anE);
  }
}

Fixed version (ground truth):
NodeAdminImpl(OrderedMemoryTransport aTransport,Config aConfig,Environment anEnv){
  _config=aConfig;
  _env=anEnv;
  _transport=aTransport;
  _dispatcher=new ServerDispatcher(_config._loggerFactory.getLogger(),_config.getHandle(),this,false);
  try {
    _dispatcher.init(_transport);
  }
 catch (  Exception anE) {
    throw new RuntimeException("String_Node_Str",anE);
  }
}
Program: 87162
Project: 87162
Buggy source:
public NodeAdmin.Memento terminate(NodeAdmin anAdmin){
  _nodes.remove(anAdmin);
  return anAdmin.terminate();
}

Fixed version (ground truth):
public NodeAdmin.Memento terminate(NodeAdmin anAdmin) throws Exception {
  _nodes.remove(anAdmin);
  return anAdmin.terminate();
}
Program: 87163
Project: 87163
Buggy source:
void shutdown(){
  for (  NodeAdmin myNA : _nodes)   myNA.terminate();
}

Fixed version (ground truth):
void shutdown() throws Exception {
  for (  NodeAdmin myNA : _nodes)   myNA.terminate();
}
Program: 87164
Project: 87164
Buggy source:
@Override public Permuter.Restoration<OrderedMemoryNetwork.Context> apply(OrderedMemoryNetwork.Context aContext,RandomGenerator aGen){
  Environment myEnv=aContext._transport.getEnv();
  for (  NodeAdmin myAdmin : myEnv.getNodes().getKillableNodes()) {
    if ((!myAdmin.getTransport().getLocalAddress().equals(aContext._packet.getSource())) && (_deadCount.compareAndSet(0,1))) {
      int myRebirthTicks=aGen.nextInt(501) + 500;
      NodeAdmin.Memento myMemento=myEnv.getNodes().terminate(myAdmin);
      if (myMemento != null) {
        Grave myGrave=new Grave(myMemento,myRebirthTicks);
        OrderedMemoryTransportImpl._logger.info("String_Node_Str" + myGrave.getId() + "String_Node_Str"+ myMemento+ "String_Node_Str"+ myRebirthTicks+ "String_Node_Str"+ (_deadCount.get())+ "String_Node_Str");
        return myGrave;
      }
 else {
        _deadCount.decrementAndGet();
      }
    }
  }
  return (c) -> true;
}

Fixed version (ground truth):
@Override public Permuter.Restoration<OrderedMemoryNetwork.Context> apply(OrderedMemoryNetwork.Context aContext,RandomGenerator aGen){
  Environment myEnv=aContext._transport.getEnv();
  for (  NodeAdmin myAdmin : myEnv.getNodes().getKillableNodes()) {
    if ((!myAdmin.getTransport().getLocalAddress().equals(aContext._packet.getSource())) && (_deadCount.compareAndSet(0,1))) {
      int myRebirthTicks=aGen.nextInt(501) + 500;
      NodeAdmin.Memento myMemento=null;
      try {
        myMemento=myEnv.getNodes().terminate(myAdmin);
      }
 catch (      Exception anE) {
        OrderedMemoryTransportImpl._logger.error("String_Node_Str",anE);
      }
      if (myMemento != null) {
        Grave myGrave=new Grave(myMemento,myRebirthTicks);
        OrderedMemoryTransportImpl._logger.info("String_Node_Str" + myGrave.getId() + "String_Node_Str"+ myMemento+ "String_Node_Str"+ myRebirthTicks+ "String_Node_Str"+ (_deadCount.get())+ "String_Node_Str");
        return myGrave;
      }
 else {
        _deadCount.decrementAndGet();
      }
    }
  }
  return (c) -> true;
}
Program: 87165
Project: 87165
Buggy source:
public void OrderedMemoryNetwork(Environment anEnv){
  _env=anEnv;
  _broadcastAddr=new InetSocketAddress(org.dancres.paxos.impl.net.Utils.getBroadcastAddress(),255);
  Thread myDispatcher=new Thread(this);
  myDispatcher.setDaemon(true);
  myDispatcher.start();
  _permuter=new Permuter<>(_env.getRng().nextLong());
  if (_env.isSimulating())   _permuter.add(new PacketDrop()).add(new MachineBlip());
}

Fixed version (ground truth):
public OrderedMemoryNetwork(Environment anEnv){
  _env=anEnv;
  _broadcastAddr=new InetSocketAddress(org.dancres.paxos.impl.net.Utils.getBroadcastAddress(),255);
  Thread myDispatcher=new Thread(this);
  myDispatcher.setDaemon(true);
  myDispatcher.start();
  _permuter=new Permuter<>(_env.getRng().nextLong());
  if (_env.isSimulating())   _permuter.add(new PacketDrop()).add(new MachineBlip());
}
Program: 87166
Project: 87166
Buggy source:
EnvironmentImpl(long aSeed,long aCycles,boolean doCalibrate,long aCkptCycle,boolean inMemory) throws Exception {
  _ckptCycle=aCkptCycle;
  _isLive=!doCalibrate;
  _maxCycles=aCycles;
  _baseRng=new Random(aSeed);
  _factory=new OrderedMemoryNetwork(this);
  _nodeFactory=(  InetSocketAddress aLocalAddr,  InetSocketAddress aBroadcastAddr,  OrderedMemoryNetwork aNetwork,  MessageBasedFailureDetector anFD,  Object aContext) -> {
    NodeAdminImpl myNode=new NodeAdminImpl(aLocalAddr,aBroadcastAddr,aNetwork,anFD,(NodeAdminImpl.Config)aContext,EnvironmentImpl.this);
    return new OrderedMemoryNetwork.Factory.Constructed(myNode.getTransport(),myNode);
  }
;
  Deque<NodeAdmin> myNodes=new LinkedList<>();
  for (int i=0; i < 5; i++) {
    LogStorageFactory myFactory=(!inMemory) ? new HowlLoggerFactory(BASEDIR,i) : new MemoryLoggerFactory();
    OrderedMemoryNetwork.Factory.Constructed myResult=addNodeAdmin(Utils.getTestAddress(),new NodeAdminImpl.Config(i,myFactory));
    myNodes.add((NodeAdmin)myResult.getAdditional());
  }
  _nodeSet=new NodeSet(myNodes);
}

Fixed version (ground truth):
EnvironmentImpl(long aSeed,long aCycles,boolean doCalibrate,long aCkptCycle,boolean inMemory) throws Exception {
  _ckptCycle=aCkptCycle;
  _isLive=!doCalibrate;
  _maxCycles=aCycles;
  _baseRng=new Random(aSeed);
  _factory=new OrderedMemoryNetwork(this);
  _nodeFactory=(  InetSocketAddress aLocalAddr,  InetSocketAddress aBroadcastAddr,  OrderedMemoryNetwork aNetwork,  MessageBasedFailureDetector anFD,  Object aContext) -> {
    NodeAdminImpl myNode=new NodeAdminImpl(aLocalAddr,aBroadcastAddr,aNetwork,anFD,(NodeAdminImpl.Config)aContext,EnvironmentImpl.this);
    return new OrderedMemoryNetwork.Factory.Constructed(myNode.getTransport(),myNode);
  }
;
  Deque<NodeAdmin> myNodes=new LinkedList<>();
  for (int i=0; i < 5; i++) {
    LogStorageFactory myFactory=(!inMemory) ? new HowlLoggerFactory(BASEDIR,i) : new MemoryLoggerFactory();
    OrderedMemoryNetwork.Factory.Constructed myResult=addNodeAdmin(Utils.getTestAddress(),new NodeAdminImpl.Config(i,myFactory));
    myNodes.add((NodeAdmin)myResult.getAdditional());
  }
  _nodeSet.init(myNodes);
}
Program: 87167
Project: 87167
Buggy source:
NodeSet(Deque<NodeAdmin> aNodes){
  _currentLeader=aNodes.getFirst();
  _nodes.addAll(aNodes);
}

Fixed version (ground truth):
NodeSet(){
}
Program: 87168
Project: 87168
Buggy source:
private void awaken(Environment anEnv){
  OrderedMemoryTransportImpl._logger.info("String_Node_Str" + _id + "String_Node_Str"+ _dna.get()+ "String_Node_Str");
  NodeAdmin.Memento myDna=_dna.getAndSet(null);
  if (myDna != null)   anEnv.addNodeAdmin(myDna);
}

Fixed version (ground truth):
private void awaken(Environment anEnv){
  OrderedMemoryTransportImpl._logger.info("String_Node_Str" + _id + "String_Node_Str"+ _dna.get()+ "String_Node_Str");
  NodeAdmin.Memento myDna=_dna.getAndSet(null);
  if (myDna != null)   anEnv.addNodeAdmin(myDna);
  _deadCount.decrementAndGet();
}
Program: 87169
Project: 87169
Buggy source:
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log));
  _node2=new ServerDispatcher(new HowlLogger(_node2Log));
  _tport1=new DropTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new DropTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log),Listener.NULL_LISTENER);
  _node2=new ServerDispatcher(new HowlLogger(_node2Log),Listener.NULL_LISTENER);
  _tport1=new DropTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new DropTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}
Program: 87171
Project: 87171
Buggy source:
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log));
  _node2=new ServerDispatcher(new HowlLogger(_node2Log));
  _tport1=new OODTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new OODTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log),org.dancres.paxos.Listener.NULL_LISTENER);
  _node2=new ServerDispatcher(new HowlLogger(_node2Log),org.dancres.paxos.Listener.NULL_LISTENER);
  _tport1=new OODTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new OODTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}
Program: 87173
Project: 87173
Buggy source:
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log));
  _node2=new ServerDispatcher(new HowlLogger(_node2Log));
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log),Listener.NULL_LISTENER);
  _node2=new ServerDispatcher(new HowlLogger(_node2Log),Listener.NULL_LISTENER);
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}
Program: 87175
Project: 87175
Buggy source:
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log));
  _node2=new ServerDispatcher(new HowlLogger(_node2Log));
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  FileSystem.deleteDirectory(new File(_node1Log));
  FileSystem.deleteDirectory(new File(_node2Log));
  FileSystem.deleteDirectory(new File(_node3Log));
  _node1=new ServerDispatcher(new HowlLogger(_node1Log),Listener.NULL_LISTENER);
  _node2=new ServerDispatcher(new HowlLogger(_node2Log),Listener.NULL_LISTENER);
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}
Program: 87177
Project: 87177
Buggy source:
@Before public void init() throws Exception {
  _node1=new ServerDispatcher();
  _node2=new ServerDispatcher();
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new DroppingTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}

Fixed version (ground truth):
@Before public void init() throws Exception {
  _node1=new ServerDispatcher(Listener.NULL_LISTENER);
  _node2=new ServerDispatcher(Listener.NULL_LISTENER);
  _tport1=new TransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node1.init(_tport1);
  _tport2=new DroppingTransportImpl(new FailureDetectorImpl(5000,FailureDetectorImpl.OPEN_PIN));
  _node2.init(_tport2);
}