nus-yam/ex-repair huggingface dataset:
Program: 98693
Project: 98693
Buggy source:
@POST @Produces(MediaType.TEXT_HTML) @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public void newAccData(Position newPosition){
  DAO.insertTripPosition(tripId,newPosition);
}

Fixed version (ground truth):
@POST @Produces(MediaType.TEXT_HTML) @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) public String newAccData(Position newPosition){
  DAO.insertTripPosition(tripId,newPosition);
  return "String_Node_Str";
}
Program: 98694
Project: 98694
Buggy source:
public void reduce(ik key,Iterable<iv> values,Context context){
}

Fixed version (ground truth):
public void reduce(Text key,Iterable<TupleWritable> values,Context context){
}
Program: 98695
Project: 98695
Buggy source:
public static void main(String[] args){
  Job deletion=new Job(new Configuration());
  job.setJarByClass(Deleter.class);
  job.setJobName("String_Node_Str");
  job.setInputPath(new Path("String_Node_Str"));
  job.setOutputPath(new Path("String_Node_Str"));
  job.setMapperClass(DeleteMapper.class);
  job.setReducerClass(DeleteReducer.class);
  job.waitForCompletion(true);
}

Fixed version (ground truth):
public static void main(String[] args){
  Job deletion=Job.getInstance(new Configuration());
  deletion.setJarByClass(Deleter.class);
  deletion.setJobName("String_Node_Str");
  deletion.setInputPath(new Path("String_Node_Str"));
  deletion.setOutputPath(new Path("String_Node_Str"));
  deletion.setMapperClass(DeleteMapper.class);
  deletion.setReducerClass(DeleteReducer.class);
  deletion.waitForCompletion(true);
}
Program: 98696
Project: 98696
Buggy source:
public void map(ik key,iv value,Context context) throws IOException, InterruptedException {
  String line=value.toString();
  StringTokenizer tok=new StringTokenizer(line);
  while (tok.hasMoreTokens()) {
    first.set(tokenizer.nextToken());
    context.write(word,count);
  }
}

Fixed version (ground truth):
public void map(Text key,TupleWritable value,Context context) throws IOException, InterruptedException {
}
Program: 98697
Project: 98697
Buggy source:
@Override public boolean onCommand(CommandSender sender,Command cmd,String commandLabel,String[] args){
  if (cmd.getName().equalsIgnoreCase(Constants.COMMAND_PRIVATEMESSAGE)) {
    if (sender != null) {
      if (args.length > 1) {
        world=((Player)sender).getWorld();
        String msg="String_Node_Str";
        for (int i=1; i < args.length; i++) {
          msg+=args[i] + "String_Node_Str";
        }
        String nickname=args[0].trim();
        for (        Player p : world.getPlayers()) {
          if (p.getPlayerListName().equalsIgnoreCase(nickname) && p.isOnline()) {
            p.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ p.getDisplayName()+ "String_Node_Str"+ msg.trim());
            return true;
          }
 else           if (handler.isParticipantOnline(nickname)) {
            handler.sendMessageToChatUser(sender.getName(),plugin.getConfig().getString("String_Node_Str") + "String_Node_Str" + nickname,msg);
            return true;
          }
 else {
            p.sendMessage(ChatColor.YELLOW + Constants.PREFIX_CHAT + ChatColor.WHITE+ "String_Node_Str");
          }
        }
      }
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandSender sender,Command cmd,String commandLabel,String[] args){
  if (cmd.getName().equalsIgnoreCase(Constants.COMMAND_PRIVATEMESSAGE)) {
    if (sender != null) {
      world=((Player)sender).getWorld();
      if (args.length > 1) {
        String msg="String_Node_Str";
        for (int i=1; i < args.length; i++) {
          msg+=args[i] + "String_Node_Str";
        }
        String nickname=args[0].trim();
        for (        Player p : world.getPlayers()) {
          if (p.getPlayerListName().equalsIgnoreCase(nickname) && p.isOnline()) {
            p.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ p.getDisplayName()+ "String_Node_Str"+ msg.trim());
            return true;
          }
 else           if (handler.isParticipantOnline(nickname)) {
            handler.sendMessageToChatUser(sender.getName(),plugin.getConfig().getString("String_Node_Str") + "String_Node_Str" + nickname,msg);
            return true;
          }
 else {
            p.sendMessage(ChatColor.YELLOW + Constants.PREFIX_CHAT + ChatColor.WHITE+ String.format(Constants.TEXT_XMPP_USER_NOTAVAILABLE,nickname));
          }
        }
      }
    }
  }
  return true;
}
Program: 98698
Project: 98698
Buggy source:
public void sendMessageToPlayer(String sender,String player,String message){
  for (  Player p : world.getPlayers()) {
    if (p.getDisplayName().equalsIgnoreCase(player) && p.isOnline()) {
      p.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ sender+ "String_Node_Str"+ message);
    }
  }
}

Fixed version (ground truth):
public void sendMessageToPlayer(String sender,String player,String message){
  log.info(sender + "String_Node_Str" + player+ "String_Node_Str"+ message);
  for (  Player p : world.getPlayers()) {
    if (p.getDisplayName().equalsIgnoreCase(player) && p.isOnline()) {
      p.sendMessage(ChatColor.YELLOW + "String_Node_Str" + ChatColor.WHITE+ sender+ "String_Node_Str"+ message);
    }
  }
}
Program: 98699
Project: 98699
Buggy source:
public void connectToJabber(String server,String username,String password,String channel,String nickname){
  conn=new XMPPConnection(server);
  conn.getChatManager().addChatListener(this);
  DiscussionHistory history=new DiscussionHistory();
  history.setMaxStanzas(0);
  try {
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + server+ "String_Node_Str");
    conn.connect();
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + username+ "String_Node_Str");
    conn.login(username,password);
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + channel+ "String_Node_Str"+ nickname+ "String_Node_Str");
    chatRoom=new MultiUserChat(conn,channel);
    chatRoom.addMessageListener(this);
    chatRoom.join(nickname,"String_Node_Str",history,SmackConfiguration.getPacketReplyTimeout());
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
  }
 catch (  XMPPException ex) {
    log.log(Level.SEVERE,Constants.PREFIX_LOG + "String_Node_Str",ex);
  }
}

Fixed version (ground truth):
public void connectToJabber(String server,String username,String password,String channel,String nickname){
  conn=new XMPPConnection(server);
  conn.getChatManager().addChatListener(this);
  DiscussionHistory history=new DiscussionHistory();
  history.setMaxStanzas(0);
  try {
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + server+ "String_Node_Str");
    conn.connect();
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + username+ "String_Node_Str");
    conn.login(username,password);
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str" + channel+ "String_Node_Str"+ nickname+ "String_Node_Str");
    chatRoom=new MultiUserChat(conn,channel);
    chatRoom.addMessageListener(this);
    chatRoom.addParticipantStatusListener(this);
    chatRoom.join(nickname,"String_Node_Str",history,SmackConfiguration.getPacketReplyTimeout());
    log.log(Level.INFO,Constants.PREFIX_LOG + "String_Node_Str");
  }
 catch (  XMPPException ex) {
    log.log(Level.SEVERE,Constants.PREFIX_LOG + "String_Node_Str",ex);
  }
}
Program: 98700
Project: 98700
Buggy source:
@Override public void moderatorRevoked(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void moderatorRevoked(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_MODERATORREVOKED,StringUtils.parseResource(participant)));
}
Program: 98701
Project: 98701
Buggy source:
@Override public void processMessage(Chat chat,Message msg){
  String body=msg.getBody();
  String sender=msg.getFrom();
  Occupant oc=this.chatRoom.getOccupant(sender);
  if (!oc.getNick().equals(this.chatRoom.getNickname())) {
    if (oc.getRole().equalsIgnoreCase("String_Node_Str") || oc.getRole().equalsIgnoreCase("String_Node_Str")) {
      if (body.startsWith(Constants.PREFIX_COMMAND)) {
        String split[]=body.split("String_Node_Str");
        String message="String_Node_Str";
        for (int i=2; i < split.length; i++) {
          message+=split[i] + "String_Node_Str";
        }
        plugin.getCommandClass().sendMessageToPlayer(StringUtils.parseResource(sender),split[1],message.trim());
      }
 else {
        String command=body.substring(Constants.PREFIX_COMMAND.length()).trim();
        boolean executed=plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(),command);
        try {
          if (!executed) {
            chat.sendMessage(String.format(Constants.TEXT_COMMAND_IMPOSSIBLE,command));
          }
        }
 catch (        XMPPException ex) {
          log.log(Level.SEVERE,Constants.PREFIX_LOG + "String_Node_Str",ex);
        }
      }
    }
  }
}

Fixed version (ground truth):
@Override public void processMessage(Chat chat,Message msg){
  String body=msg.getBody();
  String sender=msg.getFrom();
  Occupant oc=this.chatRoom.getOccupant(sender);
  if (!oc.getNick().equals(this.chatRoom.getNickname())) {
    if (body.startsWith(Constants.PREFIX_COMMAND + Constants.COMMAND_PRIVATEMESSAGE)) {
      String split[]=body.split("String_Node_Str");
      String message="String_Node_Str";
      for (int i=2; i < split.length; i++) {
        message+=split[i] + "String_Node_Str";
      }
      log.info("String_Node_Str");
      plugin.getCommandClass().sendMessageToPlayer(StringUtils.parseResource(sender),split[1].trim(),message.trim());
      log.info("String_Node_Str");
    }
    if (oc.getRole().equalsIgnoreCase("String_Node_Str") || oc.getRole().equalsIgnoreCase("String_Node_Str")) {
      if (body.startsWith(Constants.PREFIX_COMMAND)) {
        String command=body.substring(Constants.PREFIX_COMMAND.length()).trim();
        boolean executed=plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(),command);
        try {
          if (!executed) {
            chat.sendMessage(String.format(Constants.TEXT_COMMAND_IMPOSSIBLE,command));
          }
        }
 catch (        XMPPException ex) {
          log.log(Level.SEVERE,Constants.PREFIX_LOG + "String_Node_Str",ex);
        }
      }
    }
  }
}
Program: 98702
Project: 98702
Buggy source:
@Override public void adminGranted(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void adminGranted(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_ADMINGRANTED,StringUtils.parseResource(participant)));
}
Program: 98703
Project: 98703
Buggy source:
@Override public void adminRevoked(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void adminRevoked(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_ADMINREVOKED,StringUtils.parseResource(participant)));
}
Program: 98704
Project: 98704
Buggy source:
@Override public void voiceRevoked(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void voiceRevoked(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_VOICEREVOKED,StringUtils.parseResource(participant)));
}
Program: 98705
Project: 98705
Buggy source:
@Override public void moderatorGranted(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void moderatorGranted(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_MODERATORGRANTED,StringUtils.parseResource(participant)));
}
Program: 98707
Project: 98707
Buggy source:
@Override public void voiceGranted(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void voiceGranted(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_VOICEGRANTED,StringUtils.parseResource(participant)));
}
Program: 98708
Project: 98708
Buggy source:
@Override public void membershipGranted(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void membershipGranted(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_MEMBERSHIPGRANTED,StringUtils.parseResource(participant)));
}
Program: 98709
Project: 98709
Buggy source:
@Override public void banned(String string,String string1,String string2){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void banned(String participant,String actor,String reason){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_BANNED,StringUtils.parseResource(participant),StringUtils.parseName(actor)));
}
Program: 98710
Project: 98710
Buggy source:
@Override public void membershipRevoked(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void membershipRevoked(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_MEMBERSHIPREVOKED,StringUtils.parseResource(participant)));
}
Program: 98711
Project: 98711
Buggy source:
@Override public void ownershipGranted(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void ownershipGranted(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_OWNERSHIPGRANTED,StringUtils.parseResource(participant)));
}
Program: 98712
Project: 98712
Buggy source:
@Override public void ownershipRevoked(String string){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void ownershipRevoked(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_OWNERSHIPREVOKED,StringUtils.parseResource(participant)));
}
Program: 98713
Project: 98713
Buggy source:
@Override public void joined(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_JOIN,participant));
}

Fixed version (ground truth):
@Override public void joined(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_JOIN,StringUtils.parseResource(participant)));
}
Program: 98714
Project: 98714
Buggy source:
@Override public void kicked(String string,String string1,String string2){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void kicked(String participant,String actor,String reason){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_KICKED,StringUtils.parseResource(participant),StringUtils.parseName(actor)));
}
Program: 98715
Project: 98715
Buggy source:
@Override public void left(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_QUIT,participant));
}

Fixed version (ground truth):
@Override public void left(String participant){
  plugin.broadcastInfoMessage(String.format(Constants.TEXT_XMPP_QUIT,StringUtils.parseResource(participant)));
}
Program: 98716
Project: 98716
Buggy source:
public static void main(String[] args) throws InterruptedException {
  Country.getInstance();
  System.out.println("String_Node_Str" + ProgramVersion + "String_Node_Str"+ Country.NumberOfTrains+ "String_Node_Str"+ Country.NumberOfStations+ "String_Node_Str");
  CargoManager cargo_thread=new CargoManager();
  cargo_thread.start();
  Thread visualizatorThread=new Visualizator();
  visualizatorThread.start();
  while (true) {
    try {
      Country.getInstance().wait();
    }
 catch (    InterruptedException e) {
      System.out.println("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public static void main(String[] args) throws InterruptedException {
  Country.getInstance();
  System.out.println("String_Node_Str" + ProgramVersion + "String_Node_Str"+ Country.NumberOfTrains+ "String_Node_Str"+ Country.NumberOfStations+ "String_Node_Str");
  CargoManager cargo_thread=new CargoManager();
  cargo_thread.start();
  Thread visualizatorThread=new Visualizator();
  visualizatorThread.start();
  System.out.println("String_Node_Str");
}
Program: 98717
Project: 98717
Buggy source:
/** 
 * Removes a train from the list of trains the station has. There is no sync problem. Note. ArrayList only supports removing INT (index of object). Strangely enough, Eclipse didnt correct me!
 */
public synchronized void removeTrain(Train train){
synchronized (trains_here) {
    if (trains_here == null) {
      System.err.println("String_Node_Str");
    }
    trains_here.remove(trains_here.indexOf(train));
  }
}

Fixed version (ground truth):
/** 
 * Removes a train from the list of trains the station has. There is no sync problem. Note. ArrayList only supports removing INT (index of object). Strangely enough, Eclipse didnt correct me!
 */
public synchronized void removeTrain(Train train){
synchronized (trains_here) {
    if (trains_here == null) {
      System.err.println("String_Node_Str");
    }
    int pos=trains_here.indexOf(train);
    if (pos == -1) {
      System.err.println("String_Node_Str");
    }
    trains_here.remove(pos);
  }
}
Program: 98718
Project: 98718
Buggy source:
public synchronized void addTrain(Train newTrain){
  if (trains_here.indexOf(newTrain) != -1) {
    System.err.println("String_Node_Str" + newTrain);
  }
  trains_here.add(newTrain);
}

Fixed version (ground truth):
public synchronized void addTrain(Train newTrain){
  if (trains_here.indexOf(newTrain) != -1) {
    System.err.println("String_Node_Str" + newTrain);
  }
 else {
    trains_here.add(newTrain);
  }
}
Program: 98719
Project: 98719
Buggy source:
public void registerToStation(int station_number){
  Station myStation=Country.getInstance().getStation(station_number);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myStation);
  myStation.addTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myStation);
}

Fixed version (ground truth):
public synchronized void registerToStation(int station_number){
  Station myStation=Country.getInstance().getStation(station_number);
  log("String_Node_Str" + myStation.toStringMini());
  myStation.addTrain(this);
}
Program: 98720
Project: 98720
Buggy source:
synchronized void unloadCargo(){
  dlog("String_Node_Str" + this + "String_Node_Str"+ position);
  for (int k=0; k < cargos.size(); k++) {
    Cargo c=cargos.get(k);
    boolean matches=c.destination == position / 2;
    dlog("String_Node_Str" + c + "String_Node_Str"+ position+ "String_Node_Str"+ matches);
    if (c.destination == myStation().getIndex()) {
      Cargo tmpCargo=cargos.remove(k);
      vlog("String_Node_Str" + this + "String_Node_Str"+ myStation()+ "String_Node_Str"+ tmpCargo);
    }
    try {
      Thread.sleep(Country.UnloadTimeMilliSecs);
    }
 catch (    Exception e) {
      log("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
void unloadCargo(){
synchronized (cargos) {
    dlog("String_Node_Str" + this + "String_Node_Str"+ position);
    for (int k=0; k < cargos.size(); k++) {
      Cargo c=cargos.get(k);
      if (c.destination == myStation().getIndex()) {
        Cargo tmpCargo=cargos.remove(k);
        vlog("String_Node_Str" + myStation() + "String_Node_Str"+ tmpCargo);
      }
      try {
        Thread.sleep(Country.UnloadTimeMilliSecs);
      }
 catch (      Exception e) {
        log("String_Node_Str");
      }
    }
  }
}
Program: 98721
Project: 98721
Buggy source:
public void run(){
  System.out.println("String_Node_Str" + toString());
  setName("String_Node_Str" + occurrence);
  log("String_Node_Str" + toString());
  while (true) {
    set_status(TrainStatus.STATION_START);
    set_status(TrainStatus.STATION_UNLOAD_CARGO);
    set_status(TrainStatus.STATION_LOAD_CARGO);
    set_status(TrainStatus.STATION_END);
  }
}

Fixed version (ground truth):
public void run(){
  System.out.println("String_Node_Str" + toString());
  setName("String_Node_Str" + occurrence);
  log("String_Node_Str" + toString());
  myStation().addTrain(this);
  while (true) {
    set_status(TrainStatus.STATION_START);
    set_status(TrainStatus.STATION_UNLOAD_CARGO);
    set_status(TrainStatus.STATION_LOAD_CARGO);
    set_status(TrainStatus.STATION_END);
  }
}
Program: 98722
Project: 98722
Buggy source:
/** 
 * This is where a train waits in the Railway
 * @param railway_number
 */
public synchronized void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    vlog("String_Node_Str" + this + "String_Node_Str");
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}

Fixed version (ground truth):
/** 
 * This is where a train waits in the Railway
 * @param railway_number
 */
public synchronized void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    log("String_Node_Str" + myRailway.toStringMini());
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}
Program: 98723
Project: 98723
Buggy source:
public String toString(){
  return "String_Node_Str" + source + "String_Node_Str"+ destination+ "String_Node_Str"+ birthDate+ "String_Node_Str";
}

Fixed version (ground truth):
public String toString(){
  return "String_Node_Str" + source + "String_Node_Str"+ destination+ "String_Node_Str";
}
Program: 98724
Project: 98724
Buggy source:
private Country(){
  System.out.println("String_Node_Str");
  for (int i=0; i < Country.NumberOfStations; i++) {
    stations[i]=new Station(i);
    railways[i]=new Railway(i);
  }
  for (int i=0; i < Country.NumberOfTrains; i++) {
    Train train=trains[i];
    train=new Train(i,4 + i,2 * i,Country.CargoCapacity);
    train.start();
  }
}

Fixed version (ground truth):
private Country(){
  System.out.println("String_Node_Str");
  for (int i=0; i < Country.NumberOfStations; i++) {
    stations[i]=new Station(i);
    railways[i]=new Railway(i);
  }
  for (int i=0; i < Country.NumberOfTrains; i++) {
    trains[i]=new Train(i,4 + i,2 * i,Country.CargoCapacity);
    trains[i].start();
  }
}
Program: 98725
Project: 98725
Buggy source:
public ArrayList<Cargo> getCargos(){
  return cargos;
}

Fixed version (ground truth):
public synchronized ArrayList<Cargo> getCargos(){
  return cargos;
}
Program: 98726
Project: 98726
Buggy source:
public synchronized void loadCargo(){
}

Fixed version (ground truth):
public synchronized void loadCargo(){
  dlog("String_Node_Str" + position);
  dlog("String_Node_Str");
  Station myStation=(Station)APlace.getCountryPlace(position);
  dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().size()+ "String_Node_Str");
  dlog("String_Node_Str" + this + "String_Node_Str"+ cargos.size()+ "String_Node_Str"+ cargoCapacity+ "String_Node_Str");
  for (int i=0; i < myStation.getCargos().size() && i < (cargoCapacity - cargos.size()); i++) {
    dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().get(i));
    myStation.removeCargo(i);
    cargos.add(myStation.getCargos().get(i));
  }
  dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().size()+ "String_Node_Str");
  dlog("String_Node_Str" + this + "String_Node_Str"+ cargos.size()+ "String_Node_Str"+ cargoCapacity+ "String_Node_Str");
}
Program: 98727
Project: 98727
Buggy source:
public void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  vlog("String_Node_Str");
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}

Fixed version (ground truth):
public void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  vlog("String_Node_Str");
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    vlog("String_Node_Str");
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}
Program: 98728
Project: 98728
Buggy source:
public void run(){
  setName("String_Node_Str");
  vlog("String_Node_Str");
  try {
    while (true) {
      Thread.sleep(random.nextInt(100 * Country.RandomCargoPeriodSecs));
      Cargo recurrent=Cargo.getRandomCargo();
      Country.getInstance().deliverCargoToAppropriateStation(recurrent);
    }
  }
 catch (  InterruptedException e) {
    log("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * This thread generates every "Country.RandomCargoPeriodSecs" seconds a new random instance of Cargo and delivers it to the appropriate station.
 */
public void run(){
  setName("String_Node_Str");
  log("String_Node_Str");
  try {
    while (true) {
      Thread.sleep(random.nextInt(1000 * Country.RandomCargoPeriodSecs));
      Cargo recurrent=Cargo.getRandomCargo();
      Country.getInstance().deliverCargoToAppropriateStation(recurrent);
    }
  }
 catch (  InterruptedException e) {
    log("String_Node_Str");
  }
}
Program: 98729
Project: 98729
Buggy source:
public synchronized void loadCargo(){
  Station myStation=myStation();
synchronized (myStation.depotLock) {
    dlog("String_Node_Str" + position);
    dlog("String_Node_Str");
    dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().size()+ "String_Node_Str");
    dlog("String_Node_Str" + this + "String_Node_Str"+ cargos.size()+ "String_Node_Str"+ cargoCapacity+ "String_Node_Str");
    for (int i=0; i < myStation.getCargos().size() && i < (cargoCapacity - cargos.size()); i++) {
      dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().get(i));
      myStation.removeCargo(i);
      cargos.add(myStation.getCargos().get(i));
    }
    dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().size()+ "String_Node_Str");
    dlog("String_Node_Str" + this + "String_Node_Str"+ cargos.size()+ "String_Node_Str"+ cargoCapacity+ "String_Node_Str");
  }
}

Fixed version (ground truth):
public synchronized void loadCargo(){
  Station myStation=myStation();
synchronized (myStation.depotLock) {
    dlog("String_Node_Str" + position);
    dlog("String_Node_Str");
    dlog("String_Node_Str" + myStation + "String_Node_Str"+ myStation.getCargos().size()+ "String_Node_Str");
    dlog("String_Node_Str" + this + "String_Node_Str"+ cargos.size()+ "String_Node_Str"+ cargoCapacity+ "String_Node_Str");
    int cargo_size=cargos.size();
    for (int i=0; i < myStation.getCargos().size() && i < (cargoCapacity - cargo_size); i++) {
      cargos.add(myStation.removeAndGetCargo());
    }
  }
}
Program: 98730
Project: 98730
Buggy source:
void unloadCargo(){
  dlog("String_Node_Str" + this + "String_Node_Str"+ position);
  for (int k=0; k < cargos.size(); k++) {
    Cargo c=cargos.get(k);
    boolean matches=c.destination == position / 2;
    dlog("String_Node_Str" + c + "String_Node_Str"+ position+ "String_Node_Str"+ matches);
    if (c.source == myStation().getIndex()) {
      cargos.remove(k);
      log("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
synchronized void unloadCargo(){
  dlog("String_Node_Str" + this + "String_Node_Str"+ position);
  for (int k=0; k < cargos.size(); k++) {
    Cargo c=cargos.get(k);
    boolean matches=c.destination == position / 2;
    dlog("String_Node_Str" + c + "String_Node_Str"+ position+ "String_Node_Str"+ matches);
    if (c.source == myStation().getIndex()) {
      cargos.remove(k);
      log("String_Node_Str");
    }
  }
}
Program: 98731
Project: 98731
Buggy source:
public synchronized void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  vlog("String_Node_Str");
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    vlog("String_Node_Str");
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}

Fixed version (ground truth):
/** 
 * This is where a train waits in the Railway
 * @param railway_number
 */
public synchronized void registerToRailway(int railway_number){
  Railway myRailway=Country.getInstance().getRailway(railway_number);
  Station myStation=Country.getInstance().getStation(railway_number);
  myStation.removeTrain(this);
  dlog("String_Node_Str" + this + "String_Node_Str"+ myRailway);
  while (myRailway.isBusy()) {
    try {
      wait();
    }
 catch (    InterruptedException e) {
      log("String_Node_Str");
    }
  }
  myRailway.addTrain(this);
  try {
    vlog("String_Node_Str");
    Thread.sleep(slowness * 1000);
  }
 catch (  InterruptedException e) {
    log("String_Node_Str" + myRailway);
  }
  myRailway.removeTrain(this);
}
Program: 98732
Project: 98732
Buggy source:
public static boolean Download_HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str");
          }
        }
      }
    }
  }
  return Check;
}

Fixed version (ground truth):
public static boolean Download_HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
            count++;
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str");
          }
        }
      }
    }
  }
  return Check;
}
Program: 98733
Project: 98733
Buggy source:
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile > count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
            restoreLog.error("String_Node_Str" + myfile.getName());
            int ori=FailUpload_Download.failDownload(myfile.getName(),dbfile.getRemotePath(),dbfile.getCloud());
            Download_HashCheck(listoffiles,restoreFileID);
          }
        }
      }
    }
  }
  return Check;
}

Fixed version (ground truth):
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile > count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
            count++;
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
            restoreLog.error("String_Node_Str" + myfile.getName());
            int ori=FailUpload_Download.failDownload(myfile.getName(),dbfile.getRemotePath(),dbfile.getCloud());
            Download_HashCheck(listoffiles,restoreFileID);
          }
        }
      }
    }
  }
  return Check;
}
Program: 98734
Project: 98734
Buggy source:
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str");
          }
        }
      }
    }
  }
  return Check;
}

Fixed version (ground truth):
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
          }
        }
      }
    }
  }
  return Check;
}
Program: 98735
Project: 98735
Buggy source:
public static boolean Download_HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str");
          }
        }
      }
    }
  }
  return Check;
}

Fixed version (ground truth):
public static boolean Download_HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
            System.out.print("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
            System.out.print("String_Node_Str" + myfile.getName());
          }
        }
      }
    }
  }
  return Check;
}
Program: 98736
Project: 98736
Buggy source:
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
          }
        }
      }
    }
  }
  return Check;
}

Fixed version (ground truth):
public static boolean HashCheck(List<MYSpFile> listoffiles,int restoreFileID) throws Exception {
  boolean Check=true;
  int count=0;
  DbConnect dbconnect=new DbConnect();
  List<MYSpFile> listofFileSp=dbconnect.selectQuery(restoreFileID);
  int SplitCountFile=dbconnect.SplitFileCount(restoreFileID);
  for (  MYSpFile myfile : listoffiles) {
    for (    MYSpFile dbfile : listofFileSp) {
      if (SplitCountFile < count) {
        if ((myfile.getName().equalsIgnoreCase(dbfile.getName()))) {
          System.out.print("String_Node_Str" + myfile.getName());
          if (myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
            Check=true;
            restoreLog.info("String_Node_Str" + myfile.getName());
            System.out.print("String_Node_Str" + myfile.getName());
          }
 else {
            Check=false;
            restoreLog.error("String_Node_Str" + myfile.getName());
            System.out.print("String_Node_Str" + myfile.getName());
          }
        }
      }
    }
  }
  return Check;
}
Program: 98737
Project: 98737
Buggy source:
public static String CreateFolder(String path) throws Exception {
  String fldate;
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  java.util.Date date=new java.util.Date();
  fldate=dateFormat.format(date);
  String strDirectoy=path + "String_Node_Str" + fldate;
  boolean success=(new File(strDirectoy)).mkdir();
  if (success) {
    System.out.println("String_Node_Str" + strDirectoy + "String_Node_Str");
    logger.info("String_Node_Str" + strDirectoy + "String_Node_Str");
  }
  return strDirectoy;
}

Fixed version (ground truth):
public static String CreateFolder(String path) throws Exception {
  String fldate;
  DateFormat dateFormat=new SimpleDateFormat("String_Node_Str");
  java.util.Date date=new java.util.Date();
  fldate=dateFormat.format(date);
  String strDirectoy=path + Global.fs + fldate;
  boolean success=(new File(strDirectoy)).mkdir();
  if (success) {
    System.out.println("String_Node_Str" + strDirectoy + "String_Node_Str");
    logger.info("String_Node_Str" + strDirectoy + "String_Node_Str");
  }
  return strDirectoy;
}
Program: 98739
Project: 98739
Buggy source:
public static void compressFile(String path) throws Exception {
  String D_path=path + "String_Node_Str";
  ZipOutputStream out=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(D_path)));
  byte[] data=new byte[1000];
  BufferedInputStream in=new BufferedInputStream(new FileInputStream(path));
  int count;
  out.putNextEntry(new ZipEntry("String_Node_Str"));
  while ((count=in.read(data,0,1000)) != -1) {
    out.write(data,0,count);
  }
  in.close();
  out.flush();
  System.out.println("String_Node_Str");
}

Fixed version (ground truth):
public static void compressFile(String path) throws Exception {
  String D_path=path + "String_Node_Str";
  ZipOutputStream out=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(D_path)));
  byte[] data=new byte[1000];
  BufferedInputStream in=new BufferedInputStream(new FileInputStream(path));
  int count;
  out.putNextEntry(new ZipEntry("String_Node_Str"));
  while ((count=in.read(data,0,1000)) != -1) {
    out.write(data,0,count);
  }
  in.close();
  out.flush();
}
Program: 98740
Project: 98740
Buggy source:
public static boolean FullHashCheck(List<MyFile> listoffiles,int i) throws Exception {
  boolean pass=true;
  DbConnect dbconnect=new DbConnect();
  List<MyFile> list=dbconnect.selectFullQuery(i);
  for (  MyFile myfile : listoffiles) {
    for (    MyFile dbfile : list) {
      if (myfile.getName().equalsIgnoreCase(dbfile.getName()) && myfile.getHash().equalsIgnoreCase(dbfile.getHash())) {
        pass=true;
        restoreLog.info("String_Node_Str" + myfile.getName());
      }
 else {
        pass=false;
      }
    }
  }
  return pass;
}

Fixed version (ground truth):
public static boolean FullHashCheck(List<MyFile> listoffiles,int i) throws Exception {
  boolean pass=true;
  DbConnect dbconnect=new DbConnect();
  List<MyFile> list=dbconnect.selectFullQuery(i);
  for (  MyFile myfile : listoffiles) {
    for (    MyFile dbfile : list) {
      if (myfile.getName().equalsIgnoreCase(dbfile.getName()) && myfile.getHash().equalsIgnoreCase(dbfile.getHash().replaceAll("String_Node_Str","String_Node_Str"))) {
        pass=true;
        restoreLog.info("String_Node_Str" + myfile.getName());
      }
 else {
        pass=false;
      }
    }
  }
  return pass;
}
Program: 98741
Project: 98741
Buggy source:
@Override public boolean configure(StaplerRequest req,JSONObject json) throws FormException {
  req.bindJSON(this,json);
  save();
  return true;
}

Fixed version (ground truth):
@Override public boolean configure(StaplerRequest req,JSONObject json) throws FormException {
  boolean clean_servers=json.get("String_Node_Str") == null && servers.size() > 0;
  if (clean_servers) {
    json.put("String_Node_Str",new JSONObject());
  }
  req.bindJSON(this,json);
  save();
  boolean result=super.configure(req,json);
  if (clean_servers) {
    servers.clear();
  }
  return result;
}
Program: 98742
Project: 98742
Buggy source:
@DataBoundConstructor public QAVerifyServerConfiguration(String configurationName,String hostName,Integer portNumber,String userName,String password,String protocol,Integer viewerPortNumber){
  this.configurationName=configurationName;
  this.hostName=hostName;
  this.password=password;
  this.userName=userName;
  this.portNumber=portNumber;
  this.protocol=protocol;
  this.viewerPortNumber=viewerPortNumber;
}

Fixed version (ground truth):
@DataBoundConstructor public QAVerifyServerConfiguration(String configurationName,String hostName,Integer portNumber,String userName,String password,String protocol,Integer viewerPortNumber){
  super(configurationName,hostName,null);
  this.configurationName=configurationName;
  this.hostName=hostName;
  this.password=password;
  this.userName=userName;
  this.portNumber=portNumber;
  this.protocol=protocol;
  this.viewerPortNumber=viewerPortNumber;
}
Program: 98743
Project: 98743
Buggy source:
private void copyArtifacts(AbstractBuild<?,?> build,QaFrameworkReportSettings qaReportSettings){
  try {
    copyReportsToArtifactsDir(qaReportSettings,build);
    if (qaReportSettings.isPublishToQAV() && qaReportSettings.isLoginToQAV()) {
      copyReourcesToArtifactsDir("String_Node_Str",build);
    }
  }
 catch (  Exception ex) {
    outStream.println("String_Node_Str");
    outStream.println("String_Node_Str");
    log.log(Level.SEVERE,"String_Node_Str",ex);
    log.log(Level.INFO,"String_Node_Str",ex);
  }
}

Fixed version (ground truth):
private void copyArtifacts(AbstractBuild<?,?> build,QaFrameworkReportSettings qaReportSettings){
  try {
    copyReportsToArtifactsDir(qaReportSettings,build);
    if (qaReportSettings.isPublishToQAV() && qaReportSettings.isLoginToQAV()) {
      copyReourcesToArtifactsDir("String_Node_Str",build);
    }
  }
 catch (  Exception ex) {
    outStream.println("String_Node_Str");
    outStream.println("String_Node_Str");
    log.log(Level.SEVERE,"String_Node_Str",ex.getMessage());
  }
}
Program: 98746
Project: 98746
Buggy source:
@Override public PRQAComplianceStatus invoke(File f,VirtualChannel channel) throws IOException, InterruptedException {
  Map<String,String> expandedEnvironment=expandEnvironment(report.getEnvironment(),report.getAppSettings(),report.getSettings());
  report.setEnvironment(expandedEnvironment);
  report.setWorkspace(f);
  PrintStream out=listener.getLogger();
  try {
    if (StringUtils.isBlank(report.getSettings().getQaInstallation())) {
      throw new PrqaException("String_Node_Str");
    }
    if (reportSetting.isPublishToQAV()) {
      CmdResult uploadResult=report.uploadQacli(out);
      logCmdResult(uploadResult,out);
    }
    return report.getDummyComplianceStatus(out);
  }
 catch (  PrqaException exception) {
    throw new IOException(exception.getMessage(),exception);
  }
catch (  Exception ex) {
    throw new IOException(ex.getMessage());
  }
}

Fixed version (ground truth):
@Override public PRQAComplianceStatus invoke(File f,VirtualChannel channel) throws IOException, InterruptedException {
  Map<String,String> expandedEnvironment=expandEnvironment(report.getEnvironment(),report.getAppSettings(),report.getSettings());
  report.setEnvironment(expandedEnvironment);
  report.setWorkspace(f);
  PrintStream out=listener.getLogger();
  try {
    if (StringUtils.isBlank(report.getSettings().getQaInstallation())) {
      throw new PrqaException("String_Node_Str");
    }
    if (reportSetting.isPublishToQAV()) {
      CmdResult uploadResult=report.uploadQacli(out);
      logCmdResult(uploadResult,out);
    }
    return report.getComplianceStatus(out);
  }
 catch (  PrqaException exception) {
    throw new IOException(exception.getMessage(),exception);
  }
catch (  Exception ex) {
    throw new IOException(ex.getMessage());
  }
}