nus-yam/ex-repair huggingface dataset:
Program: 50004
Project: 50004
Buggy source:
/** 
 * @param r Reference to which button the user clicked for the end game. "Save" "New Game" or "Quit"
 */
public static void endOfGame(Result r){
  if (isPlayback)   return;
  Object[] options=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  String toDisplay;
  System.out.println(r.isDraw());
  if (r.isDraw())   toDisplay="String_Node_Str" + "String_Node_Str";
 else   toDisplay="String_Node_Str" + r.text() + "String_Node_Str"+ "String_Node_Str";
  toDisplay+="String_Node_Str";
  int answer=JOptionPane.showOptionDialog(null,toDisplay,r.text(),JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE,null,options,options[0]);
switch (answer) {
case 0:
    String fileName=JOptionPane.showInputDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.PLAIN_MESSAGE);
  g.saveGame("String_Node_Str",fileName,g.isClassicChess());
Driver.getInstance().revertPanel();
break;
case 2:
System.exit(0);
break;
default :
Driver.getInstance().revertPanel();
}
}

Fixed version (ground truth):
/** 
 * @param r Reference to which button the user clicked for the end game. "Save" "New Game" or "Quit"
 */
public static void endOfGame(Result r){
  if (isPlayback)   return;
  Object[] options=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  String toDisplay;
  if (r.isDraw())   toDisplay="String_Node_Str" + "String_Node_Str";
 else   toDisplay="String_Node_Str" + r.text() + "String_Node_Str"+ "String_Node_Str";
  toDisplay+="String_Node_Str";
  int answer=JOptionPane.showOptionDialog(null,toDisplay,r.text(),JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.PLAIN_MESSAGE,null,options,options[0]);
switch (answer) {
case 0:
    String fileName=JOptionPane.showInputDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.PLAIN_MESSAGE);
  g.saveGame("String_Node_Str",fileName,g.isClassicChess());
Driver.getInstance().revertPanel();
break;
case 2:
System.exit(0);
break;
default :
Driver.getInstance().revertPanel();
}
}
Program: 50005
Project: 50005
Buggy source:
/** 
 * Play a move in the Game
 * @param move The Move to play
 * @throws Exception If the Move was illegal
 */
public void playMove(Move move) throws Exception {
  Move m=move;
  m.execute();
  if (getHistory().contains(m))   return;
  getHistory().add(m);
  if (!isBlackMove()) {
    getBlackRules().endOfGame(blackObjectivePiece);
  }
 else {
    getWhiteRules().endOfGame(whiteObjectivePiece);
  }
}

Fixed version (ground truth):
/** 
 * Play a move in the Game
 * @param move The Move to play
 * @throws Exception If the Move was illegal
 */
public void playMove(Move move) throws Exception {
  Move m=move;
  m.execute();
  if (getHistory().contains(m))   return;
  getHistory().add(m);
  if (isBlackMove()) {
    getBlackRules().endOfGame(blackObjectivePiece);
  }
 else {
    getWhiteRules().endOfGame(whiteObjectivePiece);
  }
}
Program: 50006
Project: 50006
Buggy source:
/** 
 * Constructor. Call initComponents to initialize the GUI.
 * @param g The reference to the game being played.
 * @param isPlayback whether PlayGame is in play back mode
 */
public PlayGame(Game g,boolean isPlayback){
  PlayGame.g=g;
  PlayGame.isPlayback=isPlayback;
  if (isPlayback) {
    PlayGame.whiteTimer=new NoTimer();
    PlayGame.blackTimer=new NoTimer();
    history=new Move[g.getHistory().size()];
    g.getHistory().toArray(history);
    index=history.length - 1;
    while (index >= 0) {
      history[index].undo();
      index--;
    }
  }
 else {
    mustMove=false;
    PlayGame.whiteTimer=g.getWhiteTimer();
    PlayGame.blackTimer=g.getBlackTimer();
    whiteTimer.restart();
    blackTimer.restart();
    turn(g.isBlackMove());
    history=null;
    index=-3;
  }
  initComponents(isPlayback);
  boardRefresh(g.getBoards());
}

Fixed version (ground truth):
/** 
 * Constructor. Call initComponents to initialize the GUI.
 * @param g The reference to the game being played.
 * @param isPlayback whether PlayGame is in play back mode
 */
public PlayGame(Game g,boolean isPlayback){
  PlayGame.g=g;
  PlayGame.isPlayback=isPlayback;
  initComponents(isPlayback);
  if (isPlayback) {
    PlayGame.whiteTimer=new NoTimer();
    PlayGame.blackTimer=new NoTimer();
    history=new Move[g.getHistory().size()];
    g.getHistory().toArray(history);
    index=history.length - 1;
    while (index >= 0) {
      history[index].undo();
      index--;
    }
  }
 else {
    mustMove=false;
    PlayGame.whiteTimer=g.getWhiteTimer();
    PlayGame.blackTimer=g.getBlackTimer();
    whiteTimer.restart();
    blackTimer.restart();
    turn(g.isBlackMove());
    history=null;
    index=-3;
  }
  boardRefresh(g.getBoards());
}
Program: 50007
Project: 50007
Buggy source:
/** 
 * Constructor. Call initComponents to initialize the GUI.
 * @param g The reference to the game being played.
 * @param isPlayback whether PlayGame is in play back mode
 */
public PlayGame(Game g,boolean isPlayback){
  PlayGame.g=g;
  PlayGame.isPlayback=isPlayback;
  initComponents(isPlayback);
  if (isPlayback) {
    PlayGame.whiteTimer=new NoTimer();
    PlayGame.blackTimer=new NoTimer();
    history=new Move[g.getHistory().size()];
    g.getHistory().toArray(history);
    index=history.length - 1;
    while (index >= 0) {
      history[index].undo();
      index--;
    }
  }
 else {
    mustMove=false;
    PlayGame.whiteTimer=g.getWhiteTimer();
    PlayGame.blackTimer=g.getBlackTimer();
    whiteTimer.restart();
    blackTimer.restart();
    turn(g.isBlackMove());
    history=null;
    index=-3;
  }
  boardRefresh(g.getBoards());
}

Fixed version (ground truth):
/** 
 * Constructor. Call initComponents to initialize the GUI.
 * @param g The reference to the game being played.
 * @param isPlayback whether PlayGame is in play back mode
 */
public PlayGame(Game g,boolean isPlayback){
  PlayGame.g=g;
  PlayGame.isPlayback=isPlayback;
  if (isPlayback) {
    PlayGame.whiteTimer=new NoTimer();
    PlayGame.blackTimer=new NoTimer();
    history=new Move[g.getHistory().size()];
    g.getHistory().toArray(history);
    initComponents(isPlayback);
    index=history.length - 1;
    while (index >= 0) {
      history[index].undo();
      index--;
    }
  }
 else {
    mustMove=false;
    PlayGame.whiteTimer=g.getWhiteTimer();
    PlayGame.blackTimer=g.getBlackTimer();
    whiteTimer.restart();
    blackTimer.restart();
    turn(g.isBlackMove());
    history=null;
    index=-3;
    initComponents(isPlayback);
  }
  boardRefresh(g.getBoards());
}
Program: 50010
Project: 50010
Buggy source:
/** 
 * @return The Menu bar for the GUI
 */
public JMenu createMenu(){
  JMenu menu=new JMenu("String_Node_Str");
  if (!isPlayback) {
    JMenuItem drawItem=new JMenuItem("String_Node_Str",KeyEvent.VK_D);
    JMenuItem saveItem=new JMenuItem("String_Node_Str",KeyEvent.VK_S);
    drawItem.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        if (g.getLastMove() == null)         return;
        g.getLastMove().setResult(new Result(Result.DRAW));
        endOfGame(new Result(Result.DRAW));
      }
    }
);
    saveItem.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        String fileName=JOptionPane.showInputDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.PLAIN_MESSAGE);
        if (fileName == null)         return;
        g.saveGame("String_Node_Str",fileName,false);
        Driver.getInstance().revertPanel();
      }
    }
);
    menu.add(drawItem);
    menu.add(saveItem);
  }
  return menu;
}

Fixed version (ground truth):
/** 
 * @return The Menu bar for the GUI
 */
public JMenu createMenu(){
  JMenu menu=new JMenu("String_Node_Str");
  if (!isPlayback) {
    JMenuItem drawItem=new JMenuItem("String_Node_Str",KeyEvent.VK_D);
    JMenuItem saveItem=new JMenuItem("String_Node_Str",KeyEvent.VK_S);
    drawItem.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        if (g.getLastMove() == null)         return;
        g.getLastMove().setResult(new Result(Result.DRAW));
        endOfGame(new Result(Result.DRAW));
      }
    }
);
    saveItem.addActionListener(new ActionListener(){
      @Override public void actionPerformed(      ActionEvent e){
        whiteTimer.stop();
        blackTimer.stop();
        String fileName=JOptionPane.showInputDialog(null,"String_Node_Str","String_Node_Str",JOptionPane.PLAIN_MESSAGE);
        if (fileName == null)         return;
        g.saveGame("String_Node_Str",fileName,false);
        Driver.getInstance().revertPanel();
      }
    }
);
    menu.add(drawItem);
    menu.add(saveItem);
  }
  return menu;
}
Program: 50011
Project: 50011
Buggy source:
public void addName(String name){
  if (name.equals("String_Node_Str"))   propPrefix=name + "String_Node_Str" + propPrefix;
}

Fixed version (ground truth):
public void addName(String name){
  if (!name.equals("String_Node_Str"))   propPrefix=name + "String_Node_Str" + propPrefix;
}
Program: 50012
Project: 50012
Buggy source:
/** 
 * Example: java -DTwitterTokenizer.unicode=proj/tokenize/unicode.csv -DTwitterTokenizer.full=true edu.jhu.jerboa.processing.TwitterTokenizer proj/tokenize/example_tweets.txt
 */
public static void main(String[] args) throws Exception {
  BufferedReader reader;
  if (args.length == 0)   reader=new BufferedReader(new InputStreamReader(System.in,"String_Node_Str"));
 else   reader=FileManager.getReader(args[0]);
  String line;
  String[][] tokens;
  boolean full=JerboaProperties.getBoolean("String_Node_Str",false);
  while ((line=reader.readLine()) != null) {
    tokens=tokenize(line);
    if (tokens[0].length > 0) {
      if (full)       System.out.println(line);
      System.out.print(tokens[0][0]);
      for (int i=1; i < tokens[0].length; i++)       System.out.print("String_Node_Str" + tokens[0][i]);
      System.out.println();
      if (full) {
        System.out.print(tokens[1][0]);
        for (int i=1; i < tokens[1].length; i++)         System.out.print("String_Node_Str" + tokens[1][i]);
        System.out.println();
      }
      if (full) {
        System.out.print(tokens[2][0]);
        for (int i=1; i < tokens[2].length; i++)         System.out.print("String_Node_Str" + tokens[2][i]);
        System.out.println();
      }
    }
 else {
      if (full) {
        System.out.println("String_Node_Str");
        System.out.println("String_Node_Str");
        System.out.println("String_Node_Str");
        System.out.println("String_Node_Str");
      }
 else {
        System.out.println("String_Node_Str");
      }
    }
  }
  reader.close();
}

Fixed version (ground truth):
/** 
 * Example: java -DTwitterTokenizer.unicode=proj/tokenize/unicode.csv -DTwitterTokenizer.full=true edu.jhu.jerboa.processing.TwitterTokenizer proj/tokenize/example_tweets.txt
 */
public static void main(String[] args) throws Exception {
  BufferedReader reader;
  if (args.length == 0)   reader=new BufferedReader(new InputStreamReader(System.in,"String_Node_Str"));
 else   reader=FileManager.getReader(args[0]);
  PrintStream out=new PrintStream(System.out,true,"String_Node_Str");
  String line;
  String[][] tokens;
  boolean full=JerboaProperties.getBoolean("String_Node_Str",false);
  while ((line=reader.readLine()) != null) {
    tokens=tokenize(line);
    if (tokens[0].length > 0) {
      if (full)       out.println(line);
      out.print(tokens[0][0]);
      for (int i=1; i < tokens[0].length; i++)       out.print("String_Node_Str" + tokens[0][i]);
      out.println();
      if (full) {
        out.print(tokens[1][0]);
        for (int i=1; i < tokens[1].length; i++)         out.print("String_Node_Str" + tokens[1][i]);
        out.println();
      }
      if (full) {
        out.print(tokens[2][0]);
        for (int i=1; i < tokens[2].length; i++)         out.print("String_Node_Str" + tokens[2][i]);
        out.println();
      }
    }
 else {
      if (full) {
        out.println("String_Node_Str");
        out.println("String_Node_Str");
        out.println("String_Node_Str");
        out.println("String_Node_Str");
      }
 else {
        out.println("String_Node_Str");
      }
    }
  }
  reader.close();
}
Program: 50013
Project: 50013
Buggy source:
public Hashtable<String,Object> next() throws Exception {
  if (messageIter == null)   return null;
  Message m=messageIter.next();
  Hashtable<String,Object> h=new Hashtable();
  h.put("String_Node_Str",m);
  h.put("String_Node_Str",participants);
  h.put("String_Node_Str",participantMap);
  h.put("String_Node_Str",m.getSender().getCommunicationId());
  String label=processor.getLabel(participantMap.get(m.getSender()));
  if (form == ClassifierForm.BINARY)   h.put("String_Node_Str",classPolarity.get(label.toLowerCase()) ? this.classLabels[0] : this.classLabels[1]);
 else   if (form == ClassifierForm.REGRESSION)   h.put("String_Node_Str",Double.parseDouble(label));
 else   h.put("String_Node_Str",label);
  return h;
}

Fixed version (ground truth):
public Hashtable<String,Object> next() throws Exception {
  if (messageIter == null)   return null;
  Message m=messageIter.next();
  Hashtable<String,Object> h=new Hashtable();
  h.put("String_Node_Str",m);
  h.put("String_Node_Str",participants);
  h.put("String_Node_Str",participantMap);
  h.put("String_Node_Str",m.getSender().getCommunicationId());
  String label=processor.getLabel(participantMap.get(m.getSender()));
  if (form == ClassifierForm.BINARY)   h.put("String_Node_Str",classPolarity.get(label.toLowerCase()) ? 1.0 : -1.0);
 else   if (form == ClassifierForm.REGRESSION)   h.put("String_Node_Str",Double.parseDouble(label));
 else   h.put("String_Node_Str",label);
  return h;
}
Program: 50014
Project: 50014
Buggy source:
public MessageSenderParser() throws Exception {
  form=ClassifierForm.valueOf(JerboaProperties.getString(propPrefix + "String_Node_Str","String_Node_Str"));
  if (form == ClassifierForm.BINARY) {
    this.classLabels=JerboaProperties.getStrings(propPrefix + "String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"});
    if (classLabels.length != 2)     throw new Exception("String_Node_Str" + classLabels.length + "String_Node_Str");
    classPolarity=new Hashtable();
    classPolarity.put(classLabels[0].toLowerCase(),true);
    classPolarity.put(classLabels[1].toLowerCase(),false);
  }
  this.processor=new VertexProcessor();
}

Fixed version (ground truth):
public MessageSenderParser() throws Exception {
  form=ClassifierForm.valueOf(JerboaProperties.getString(propPrefix + "String_Node_Str","String_Node_Str"));
  if (form == ClassifierForm.BINARY) {
    String[] classLabels=JerboaProperties.getStrings(propPrefix + "String_Node_Str",new String[]{"String_Node_Str","String_Node_Str"});
    if (classLabels.length != 2)     throw new Exception("String_Node_Str" + classLabels.length + "String_Node_Str");
    classPolarity=new Hashtable();
    classPolarity.put(classLabels[0].toLowerCase(),true);
    classPolarity.put(classLabels[1].toLowerCase(),false);
  }
  this.processor=new VertexProcessor();
}
Program: 50015
Project: 50015
Buggy source:
public BloomParamOpt() throws Exception {
  this.propPrefix="String_Node_Str";
  this.weights=getWeights();
  this.numElements=JerboaProperties.getInt(propPrefix + "String_Node_Str",this.weights.size());
  this.numBits=parseNumBits(JerboaProperties.getString(propPrefix + "String_Node_Str"));
  this.kmax=JerboaProperties.getDouble(propPrefix + "String_Node_Str",2);
  this.outputFilename=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.coreValsCached=JerboaProperties.getBoolean(propPrefix + "String_Node_Str");
  this.featuresCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.trainInstCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.usersCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.labelsCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
}

Fixed version (ground truth):
public BloomParamOpt() throws Exception {
  this.propPrefix="String_Node_Str";
  this.weights=getWeights();
  this.numElements=JerboaProperties.getInt(propPrefix + "String_Node_Str",this.weights.size());
  this.numBits=parseNumBits(JerboaProperties.getString(propPrefix + "String_Node_Str"));
  this.kmax=JerboaProperties.getDouble(propPrefix + "String_Node_Str",2);
  this.outputFilename=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.coreValsCached=JerboaProperties.getBoolean(propPrefix + "String_Node_Str");
  this.featuresCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.trainInstCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.usersCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  this.labelsCache=JerboaProperties.getString(propPrefix + "String_Node_Str");
  populateCoreValues();
}
Program: 50016
Project: 50016
Buggy source:
public void optimize(){
  logger.config("String_Node_Str" + this.numElements + "String_Node_Str"+ this.numBits+ "String_Node_Str"+ this.kmax);
  populateCoreValues();
}

Fixed version (ground truth):
public void optimize(){
  logger.config("String_Node_Str" + this.numElements + "String_Node_Str"+ this.numBits+ "String_Node_Str"+ this.kmax);
}
Program: 50017
Project: 50017
Buggy source:
public void populateCoreValues(){
  if (this.coreValsCached) {
    try {
      readAll();
    }
 catch (    IOException err) {
      System.out.println("String_Node_Str");
      System.err.println(err);
      System.exit(0);
    }
    System.out.println("String_Node_Str");
    System.exit(0);
  }
 else {
    System.out.println("String_Node_Str");
    System.exit(0);
  }
}

Fixed version (ground truth):
public void populateCoreValues(){
  if (this.coreValsCached) {
    logger.info("String_Node_Str");
    try {
      readAll();
    }
 catch (    IOException err) {
      logger.info("String_Node_Str" + "String_Node_Str");
      System.out.println("String_Node_Str");
      System.err.println(err);
      System.exit(0);
    }
    System.out.println("String_Node_Str");
    System.exit(0);
  }
 else {
    System.out.println("String_Node_Str");
    System.exit(0);
  }
}
Program: 50018
Project: 50018
Buggy source:
public void disconnect(){
  log.info("String_Node_Str");
  log.debug("String_Node_Str" + session.getExitStatus());
  session.close();
  stopParsing();
  log.debug("String_Node_Str");
  connection.close();
  closed=true;
  log.info("String_Node_Str");
  for (  TransportListener handler : listeners)   handler.transportClosed();
}

Fixed version (ground truth):
public void disconnect(){
  log.info("String_Node_Str");
  log.debug("String_Node_Str" + session.getExitStatus());
  session.close();
  log.debug("String_Node_Str");
  closed=true;
  connection.close();
  log.info("String_Node_Str");
  for (  TransportListener handler : listeners)   handler.transportClosed();
}
Program: 50019
Project: 50019
Buggy source:
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      while (!closed) {
        try {
          String buffer="String_Node_Str";
          BufferedReader reader=new BufferedReader(new InputStreamReader(session.getStdout()));
          do {
            buffer+=reader.readLine();
          }
 while (!buffer.endsWith(delimiter));
          parser.parse(new InputSource(new StringReader(buffer)));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
          }
 else {
            log.error(e.getMessage());
            e.printStackTrace();
            disconnect();
          }
          log.info("String_Node_Str");
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}

Fixed version (ground truth):
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      BufferedReader reader=null;
      while (!closed) {
        try {
          String buffer="String_Node_Str";
          reader=new BufferedReader(new InputStreamReader(session.getStdout()));
          do {
            buffer+=reader.readLine();
          }
 while (!buffer.endsWith(delimiter) && !closed);
          parser.parse(new InputSource(new StringReader(buffer)));
        }
 catch (        IOException e) {
          log.error(e.getMessage());
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
          }
 else {
            log.error(e.getMessage());
            disconnect();
          }
          log.info("String_Node_Str");
        }
 finally {
          if (reader != null) {
            try {
              reader.close();
            }
 catch (            IOException e) {
              log.error(e.getMessage());
            }
          }
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}
Program: 50020
Project: 50020
Buggy source:
public SSHTransport(){
  listeners=new Vector<TransportListener>();
  xmlHandler=new TransportContentParser();
  try {
    parser=XMLReaderFactory.createXMLReader();
    parser.setContentHandler(xmlHandler);
    parser.setErrorHandler(xmlHandler);
  }
 catch (  SAXException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public SSHTransport(){
  listeners=new Vector<TransportListener>();
  xmlHandler=new TransportContentParser();
  try {
    parser=XMLReaderFactory.createXMLReader();
    parser.setContentHandler(xmlHandler);
    parser.setErrorHandler(xmlHandler);
  }
 catch (  SAXException e) {
    log.error(e.getMessage());
  }
}
Program: 50021
Project: 50021
Buggy source:
@Override public void run(){
  log.debug("String_Node_Str");
  while (!closed) {
    try {
      String buffer="String_Node_Str";
      BufferedReader reader=new BufferedReader(new InputStreamReader(session.getStdout()));
      do {
        buffer+=reader.readLine();
      }
 while (!buffer.endsWith(delimiter));
      parser.parse(new InputSource(new StringReader(buffer)));
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
catch (    SAXException e) {
      if (e.getMessage().contentEquals("String_Node_Str")) {
      }
 else {
        log.error(e.getMessage());
        e.printStackTrace();
        disconnect();
      }
      log.info("String_Node_Str");
    }
    log.debug("String_Node_Str");
  }
  log.debug("String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(){
  log.debug("String_Node_Str");
  BufferedReader reader=null;
  while (!closed) {
    try {
      String buffer="String_Node_Str";
      reader=new BufferedReader(new InputStreamReader(session.getStdout()));
      do {
        buffer+=reader.readLine();
      }
 while (!buffer.endsWith(delimiter) && !closed);
      parser.parse(new InputSource(new StringReader(buffer)));
    }
 catch (    IOException e) {
      log.error(e.getMessage());
    }
catch (    SAXException e) {
      if (e.getMessage().contentEquals("String_Node_Str")) {
      }
 else {
        log.error(e.getMessage());
        disconnect();
      }
      log.info("String_Node_Str");
    }
 finally {
      if (reader != null) {
        try {
          reader.close();
        }
 catch (        IOException e) {
          log.error(e.getMessage());
        }
      }
    }
    log.debug("String_Node_Str");
  }
  log.debug("String_Node_Str");
}
Program: 50023
Project: 50023
Buggy source:
public SessionContext() throws ConfigurationException {
  this.addConfiguration(new PropertiesConfiguration("String_Node_Str"));
}

Fixed version (ground truth):
public SessionContext() throws ConfigurationException {
  this.addConfiguration(createDefaultConfiguration());
  try {
    String path=new java.io.File("String_Node_Str").getCanonicalPath();
    log.info("String_Node_Str" + path);
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}
Program: 50024
Project: 50024
Buggy source:
public String generateReply(RPCElement request){
  String pathFile="String_Node_Str";
  String strResponse="String_Node_Str";
  String messageId="String_Node_Str";
  log.debug("String_Node_Str");
  log.debug(request.toXML());
  if (request instanceof Hello) {
    log.debug("String_Node_Str");
    pathFile=helloFile;
  }
 else   if (request instanceof Query) {
    if (responseError) {
      log.debug("String_Node_Str");
      pathFile=errorFile;
    }
 else {
      Operation oper=((Query)request).getOperation();
      messageId=((Query)request).getMessageId();
      if (oper.equals(Operation.GET) || oper.equals(Operation.GET_CONFIG)) {
        log.debug("String_Node_Str");
        pathFile=infoFile;
      }
 else {
        log.debug("String_Node_Str");
        pathFile=okFile;
      }
    }
  }
  log.info("String_Node_Str" + pathFile);
  strResponse=FileHelper.readStringFromFile(pathFile);
  if (!messageId.equals("String_Node_Str"))   strResponse=changeMessageIdNETCONF(strResponse,messageId);
  return strResponse;
}

Fixed version (ground truth):
public String generateReply(RPCElement request){
  String pathFile="String_Node_Str";
  String strResponse="String_Node_Str";
  String messageId="String_Node_Str";
  log.debug("String_Node_Str");
  log.debug(request.toXML());
  if (request instanceof Hello) {
    log.debug("String_Node_Str");
    pathFile=helloFile;
  }
 else   if (request instanceof Query) {
    if (responseError) {
      log.debug("String_Node_Str");
      pathFile=errorFile;
    }
 else {
      Operation oper=((Query)request).getOperation();
      messageId=((Query)request).getMessageId();
      if (oper.equals(Operation.GET) || oper.equals(Operation.GET_CONFIG)) {
        log.debug("String_Node_Str");
        pathFile=infoFile;
      }
 else {
        log.debug("String_Node_Str");
        pathFile=okFile;
      }
    }
  }
  log.info("String_Node_Str" + pathFile);
  try {
    strResponse=FileHelper.getInstance().readStringFromFile(pathFile);
  }
 catch (  Exception e) {
    log.error(e.getMessage());
  }
  if (!messageId.equals("String_Node_Str"))   strResponse=changeMessageIdNETCONF(strResponse,messageId);
  return strResponse;
}
Program: 50025
Project: 50025
Buggy source:
public ArrayList<Capability> getActiveCapabilities(){
  return (ArrayList<Capability>)this.getList(CAPABILITIES_ACTIVE);
}

Fixed version (ground truth):
public ArrayList<Capability> getActiveCapabilities(){
  if (this.getProperty(CAPABILITIES_ACTIVE) instanceof Capability) {
    return getCapability(CAPABILITIES_ACTIVE);
  }
  return (ArrayList<Capability>)this.getList(CAPABILITIES_ACTIVE);
}
Program: 50026
Project: 50026
Buggy source:
public ArrayList<Capability> getServerCapabilities(){
  return (ArrayList<Capability>)this.getList(CAPABILITIES_SERVER);
}

Fixed version (ground truth):
public ArrayList<Capability> getServerCapabilities(){
  if (this.getProperty(CAPABILITIES_SERVER) instanceof Capability) {
    return getCapability(CAPABILITIES_SERVER);
  }
  return (ArrayList<Capability>)this.getList(CAPABILITIES_SERVER);
}
Program: 50027
Project: 50027
Buggy source:
public ArrayList<Capability> getClientCapabilities(){
  return (ArrayList<Capability>)this.getList(CAPABILITIES_CLIENT);
}

Fixed version (ground truth):
public ArrayList<Capability> getClientCapabilities(){
  if (this.getProperty(CAPABILITIES_CLIENT) instanceof Capability) {
    return getCapability(CAPABILITIES_CLIENT);
  }
  return (ArrayList<Capability>)this.getList(CAPABILITIES_CLIENT);
}
Program: 50028
Project: 50028
Buggy source:
public String toXML(){
  String xml="String_Node_Str";
  xml+="String_Node_Str" + messageId + "String_Node_Str";
  if (operation.equals(Operation.EDIT_CONFIG)) {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str"+ editOperation+ "String_Node_Str";
  }
 else {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  }
  if (target != null)   xml+="String_Node_Str" + target + "String_Node_Str";
  if (source != null)   xml+="String_Node_Str" + source + "String_Node_Str";
  if (filter != null) {
    xml+="String_Node_Str";
    if (filterType != null)     xml+="String_Node_Str" + filterType;
    xml+="String_Node_Str" + filter + "String_Node_Str";
  }
  if (sessionId != null)   xml+="String_Node_Str" + sessionId + "String_Node_Str";
  if (defaultOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (editOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (testOption != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (errorOption != null)   xml+="String_Node_Str" + errorOption + "String_Node_Str";
  if (config != null)   xml+="String_Node_Str" + config + "String_Node_Str";
  xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  xml+="String_Node_Str";
  return xml;
}

Fixed version (ground truth):
public String toXML(){
  String xml="String_Node_Str";
  xml+="String_Node_Str" + messageId + "String_Node_Str";
  xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  if (target != null)   xml+="String_Node_Str" + target + "String_Node_Str";
  if (source != null)   xml+="String_Node_Str" + source + "String_Node_Str";
  if (filter != null) {
    xml+="String_Node_Str";
    if (filterType != null)     xml+="String_Node_Str" + filterType;
    xml+="String_Node_Str" + filter + "String_Node_Str";
  }
  if (sessionId != null)   xml+="String_Node_Str" + sessionId + "String_Node_Str";
  if (defaultOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (editOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (testOption != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (errorOption != null)   xml+="String_Node_Str" + errorOption + "String_Node_Str";
  if (config != null)   xml+="String_Node_Str" + config + "String_Node_Str";
  xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  xml+="String_Node_Str";
  return xml;
}
Program: 50029
Project: 50029
Buggy source:
public String getDataFromFile(String fileConfig) throws TransportException {
  String str="String_Node_Str";
  log.info("String_Node_Str" + fileConfig);
  try {
    str=FileHelper.readStringFromFile(fileConfig);
  }
 catch (  Exception e) {
    e.printStackTrace();
    log.error("String_Node_Str" + e.getLocalizedMessage());
    throw new TransportException(e.getMessage());
  }
  log.info("String_Node_Str");
  return str;
}

Fixed version (ground truth):
public String getDataFromFile(String fileConfig) throws TransportException {
  String str="String_Node_Str";
  log.info("String_Node_Str" + fileConfig);
  try {
    str=FileHelper.getInstance().readStringFromFile(fileConfig);
  }
 catch (  Exception e) {
    e.printStackTrace();
    log.error("String_Node_Str" + e.getLocalizedMessage());
    throw new TransportException(e.getMessage());
  }
  log.info("String_Node_Str");
  return str;
}
Program: 50030
Project: 50030
Buggy source:
/** 
 * Simple parser. It was used for proves with xml files
 * @param stream
 * @return
 */
public static String readStringFromFile(String pathFile){
  String answer=null;
  InputStream inputFile=ClassLoader.getSystemResourceAsStream(pathFile);
  try {
    InputStreamReader streamReader=new InputStreamReader(inputFile);
    StringBuffer fileData=new StringBuffer(1000);
    BufferedReader reader=new BufferedReader(streamReader);
    char[] buf=new char[1024];
    int numRead=0;
    while ((numRead=reader.read(buf)) != -1) {
      String readData=String.valueOf(buf,0,numRead);
      fileData.append(readData);
      buf=new char[1024];
    }
    reader.close();
    answer=fileData.toString();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return answer;
}

Fixed version (ground truth):
/** 
 * Simple parser. It was used for proves with xml files
 * @param stream
 * @return
 */
public String readStringFromFile(String pathFile) throws Exception {
  String answer=null;
  InputStream inputFile=getClass().getResourceAsStream(pathFile);
  InputStreamReader streamReader=new InputStreamReader(inputFile);
  StringBuffer fileData=new StringBuffer(1000);
  BufferedReader reader=new BufferedReader(streamReader);
  char[] buf=new char[1024];
  int numRead=0;
  while ((numRead=reader.read(buf)) != -1) {
    String readData=String.valueOf(buf,0,numRead);
    fileData.append(readData);
    buf=new char[1024];
  }
  reader.close();
  answer=fileData.toString();
  return answer;
}
Program: 50033
Project: 50033
Buggy source:
public boolean equals(Operation compareOperation){
  return (this.name == compareOperation.name && this.capability == compareOperation.capability);
}

Fixed version (ground truth):
public boolean equals(Operation compareOperation){
  return (this.name.equals(compareOperation.name) && this.capability.equals(compareOperation.capability));
}
Program: 50035
Project: 50035
Buggy source:
public void disconnect() throws TransportException {
  if (timerKeepAlive != null)   timerKeepAlive.close();
  transport.disconnect();
}

Fixed version (ground truth):
public void disconnect() throws TransportException {
  transport.disconnect();
}
Program: 50036
Project: 50036
Buggy source:
/** 
 * Send a Netconf Query and return immediately. You will have to get the reply (if any) via a NetconfReplyHandler or polling receiveReply() for it. Don't set message-id, it will be ignored and overridden by the session.
 * @param querys
 * @throws TransportException
 */
public void sendAsyncQuery(Query query) throws TransportException {
  query.setMessageId(generateMessageId());
  timerKeepAlive.reset();
  transport.sendAsyncQuery(query);
}

Fixed version (ground truth):
/** 
 * Send a Netconf Query and return immediately. You will have to get the reply (if any) via a NetconfReplyHandler or polling receiveReply() for it. Don't set message-id, it will be ignored and overridden by the session.
 * @param querys
 * @throws TransportException
 */
public void sendAsyncQuery(Query query) throws TransportException {
  query.setMessageId(generateMessageId());
  transport.sendAsyncQuery(query);
}
Program: 50037
Project: 50037
Buggy source:
public void loadConfiguration(Configuration source){
  sessionContext.addConfiguration(source);
}

Fixed version (ground truth):
public void loadConfiguration(Configuration source){
  sessionContext.newConfiguration(source);
}
Program: 50039
Project: 50039
Buggy source:
public void start(int period){
  this.period=period;
  log.info("String_Node_Str");
  schedulerHandler=timer.scheduleAtFixedRate(this,0,period,TimeUnit.MINUTES);
}

Fixed version (ground truth):
public void start(int period){
  this.period=period;
  log.info("String_Node_Str");
  schedulerHandler=timer.scheduleAtFixedRate(this,period,period,TimeUnit.MINUTES);
}
Program: 50040
Project: 50040
Buggy source:
public void reset(){
  close();
  schedulerHandler=timer.scheduleAtFixedRate(this,0,period,TimeUnit.MINUTES);
}

Fixed version (ground truth):
public void reset(){
  close();
  schedulerHandler=timer.scheduleAtFixedRate(this,period,period,TimeUnit.MINUTES);
}
Program: 50041
Project: 50041
Buggy source:
public void run(){
  try {
    log.info("String_Node_Str");
    Reply reply=netconfSession.sendSyncQuery(query);
    if (reply.containsErrors()) {
      log.error("String_Node_Str" + '\n' + reply.toXML()+ '\n');
      isOK=false;
    }
 else {
      log.info("String_Node_Str");
      isOK=true;
    }
  }
 catch (  TransportException e) {
    log.error(e.getMessage());
    isOK=true;
  }
}

Fixed version (ground truth):
public void run(){
  try {
    log.info("String_Node_Str");
    Reply reply=netconfSession.sendSyncQuery(query);
    if (reply.containsErrors()) {
      log.error("String_Node_Str" + '\n' + reply.toXML()+ '\n');
      netconfSession.disconnect();
    }
 else {
      log.info("String_Node_Str");
    }
  }
 catch (  TransportException e) {
    log.error(e.getMessage());
  }
}
Program: 50042
Project: 50042
Buggy source:
public void receiveRPCElement(RPCElement element){
synchronized (monitor) {
    monitor.notifyAll();
  }
}

Fixed version (ground truth):
public void receiveRPCElement(RPCElement element){
  isReceived=true;
}
Program: 50043
Project: 50043
Buggy source:
@Test(timeout=10000) public void testSendAsyncQuery(){
  final Object monitor=new Object();
  Query query=QueryFactory.newKeepAlive();
  session.registerMessageQueueListener(new TestMessageQueueListener(monitor));
  try {
    session.sendAsyncQuery(query);
synchronized (monitor) {
      monitor.wait();
    }
  }
 catch (  TransportException e) {
    fail(e.getMessage());
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Test(timeout=2000) public void testSendAsyncQuery(){
  Query query=QueryFactory.newKeepAlive();
  TestMessageQueueListener testMsgQueueList=new TestMessageQueueListener();
  session.registerMessageQueueListener(testMsgQueueList);
  try {
    session.sendAsyncQuery(query);
    while (!testMsgQueueList.isReceived()) {
      Thread.sleep(1000);
    }
  }
 catch (  TransportException e) {
    fail(e.getMessage());
  }
catch (  InterruptedException e) {
    fail(e.getMessage());
  }
}
Program: 50044
Project: 50044
Buggy source:
public TestMessageQueueListener(Object monitor){
  this.monitor=monitor;
}

Fixed version (ground truth):
public TestMessageQueueListener(){
  this.isReceived=false;
}
Program: 50045
Project: 50045
Buggy source:
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      while (!closed) {
        try {
          log.debug("String_Node_Str");
          if (sessionContext.isLogRespXML()) {
            log.debug("String_Node_Str" + sessionContext.getLogFileXML());
            parser.parse(new InputSource(new TeeInputStream(session.getStdout(),new FileOutputStream(sessionContext.getLogFileXML()),true)));
          }
 else {
            parser.parse(new InputSource(session.getStdout()));
          }
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
          }
 else {
            log.error(e.getMessage());
            e.printStackTrace();
            disconnect();
          }
          log.info("String_Node_Str");
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}

Fixed version (ground truth):
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      while (!closed) {
        try {
          log.debug("String_Node_Str");
          String buffer="String_Node_Str";
          BufferedReader reader=new BufferedReader(new InputStreamReader(session.getStdout()));
          do {
            buffer+=reader.readLine();
          }
 while (!buffer.endsWith(delimiter));
          parser.parse(new InputSource(new StringReader(buffer)));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
          }
 else {
            log.error(e.getMessage());
            e.printStackTrace();
            disconnect();
          }
          log.info("String_Node_Str");
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}
Program: 50046
Project: 50046
Buggy source:
@Override public void run(){
  log.debug("String_Node_Str");
  while (!closed) {
    try {
      log.debug("String_Node_Str");
      if (sessionContext.isLogRespXML()) {
        log.debug("String_Node_Str" + sessionContext.getLogFileXML());
        parser.parse(new InputSource(new TeeInputStream(session.getStdout(),new FileOutputStream(sessionContext.getLogFileXML()),true)));
      }
 else {
        parser.parse(new InputSource(session.getStdout()));
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
catch (    SAXException e) {
      if (e.getMessage().contentEquals("String_Node_Str")) {
      }
 else {
        log.error(e.getMessage());
        e.printStackTrace();
        disconnect();
      }
      log.info("String_Node_Str");
    }
    log.debug("String_Node_Str");
  }
  log.debug("String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(){
  log.debug("String_Node_Str");
  while (!closed) {
    try {
      log.debug("String_Node_Str");
      String buffer="String_Node_Str";
      BufferedReader reader=new BufferedReader(new InputStreamReader(session.getStdout()));
      do {
        buffer+=reader.readLine();
      }
 while (!buffer.endsWith(delimiter));
      parser.parse(new InputSource(new StringReader(buffer)));
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
catch (    SAXException e) {
      if (e.getMessage().contentEquals("String_Node_Str")) {
      }
 else {
        log.error(e.getMessage());
        e.printStackTrace();
        disconnect();
      }
      log.info("String_Node_Str");
    }
    log.debug("String_Node_Str");
  }
  log.debug("String_Node_Str");
}
Program: 50048
Project: 50048
Buggy source:
/** 
 * Send a Netconf Query and return immediately. You will have to get the reply (if any) via a NetconfReplyHandler or polling receiveReply() for it. Don't set message-id, it will be ignored and overridden by the session.
 * @param querys
 * @throws TransportException
 */
public void sendAsyncQuery(Query query) throws TransportException {
  query.setMessageId(generateMessageId());
  transport.sendAsyncQuery(query);
}

Fixed version (ground truth):
/** 
 * Send a Netconf Query and return immediately. You will have to get the reply (if any) via a NetconfReplyHandler or polling receiveReply() for it. Don't set message-id, it will be ignored and overridden by the session.
 * @param querys
 * @throws TransportException
 */
public void sendAsyncQuery(Query query) throws TransportException {
  query.setMessageId(generateMessageId());
  timerKeepAlive.reset();
  transport.sendAsyncQuery(query);
}
Program: 50050
Project: 50050
Buggy source:
@Test public void testLoadConfiguration(){
  try {
    session.loadConfiguration(new PropertiesConfiguration("String_Node_Str"));
  }
 catch (  ConfigurationException e) {
    fail(e.getMessage());
  }
}

Fixed version (ground truth):
@Test public void testLoadConfiguration(){
  try {
    session.loadConfiguration(new PropertiesConfiguration("String_Node_Str"));
  }
 catch (  ConfigurationException e) {
    e.printStackTrace();
  }
}
Program: 50051
Project: 50051
Buggy source:
public String toXML(){
  String xml="String_Node_Str";
  xml+="String_Node_Str" + messageId + "String_Node_Str";
  if (operation.equals(Operation.EDIT_CONFIG)) {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str"+ editOperation+ "String_Node_Str";
  }
 else {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  }
  if (target != null)   xml+="String_Node_Str" + target + "String_Node_Str";
  if (source != null)   xml+="String_Node_Str" + source + "String_Node_Str";
  if (filter != null) {
    xml+="String_Node_Str";
    if (filterType != null)     xml+="String_Node_Str" + filterType;
    xml+="String_Node_Str" + filter + "String_Node_Str";
  }
  if (sessionId != null)   xml+="String_Node_Str" + sessionId + "String_Node_Str";
  if (defaultOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (editOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (testOption != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (errorOption != null)   xml+="String_Node_Str" + errorOption + "String_Node_Str";
  if (config != null)   xml+="String_Node_Str" + config + "String_Node_Str";
  xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  xml+="String_Node_Str";
  return xml;
}

Fixed version (ground truth):
public String toXML(){
  String xml="String_Node_Str";
  xml+="String_Node_Str" + messageId + "String_Node_Str";
  if (operation.equals(Operation.EDIT_CONFIG)) {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str"+ editOperation+ "String_Node_Str";
  }
 else {
    xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  }
  if (target != null)   xml+="String_Node_Str" + target + "String_Node_Str";
  if (source != null)   xml+="String_Node_Str" + source + "String_Node_Str";
  if (filter != null) {
    xml+="String_Node_Str";
    if (attrFilter != null)     xml+="String_Node_Str" + attrFilter;
    xml+="String_Node_Str" + filter + "String_Node_Str";
  }
  if (sessionId != null)   xml+="String_Node_Str" + sessionId + "String_Node_Str";
  if (defaultOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (editOperation != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (testOption != null)   xml+="String_Node_Str" + defaultOperation + "String_Node_Str";
  if (errorOption != null)   xml+="String_Node_Str" + errorOption + "String_Node_Str";
  if (config != null)   xml+="String_Node_Str" + config + "String_Node_Str";
  xml+="String_Node_Str" + operation.getName() + "String_Node_Str";
  xml+="String_Node_Str";
  return xml;
}
Program: 50052
Project: 50052
Buggy source:
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      while (!closed) {
        try {
          log.debug("String_Node_Str");
          if (sessionContext.isLogRespXML())           parser.parse(new InputSource(new TeeInputStream(inStream,new FileOutputStream(sessionContext.getLogFileXML()))));
 else           parser.parse(new InputSource(inStream));
        }
 catch (        InterruptedIOException ie) {
          log.warn("String_Node_Str");
        }
catch (        IOException e) {
          e.printStackTrace();
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
            log.debug("String_Node_Str");
          }
 else {
            log.error(e.getMessage());
            e.printStackTrace();
            disconnect();
          }
          log.info("String_Node_Str");
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}

Fixed version (ground truth):
private void startParsing(){
  parserThread=new Thread("String_Node_Str"){
    @Override public void run(){
      log.debug("String_Node_Str");
      while (!closed) {
        try {
          log.debug("String_Node_Str");
          if (sessionContext.isLogRespXML())           parser.parse(new InputSource(new TeeInputStream(inStream,new FileOutputStream(sessionContext.getLogFileXML()))));
 else {
            parser.parse(new InputSource(inStream));
          }
        }
 catch (        InterruptedIOException ie) {
          log.warn("String_Node_Str");
        }
catch (        IOException e) {
          e.printStackTrace();
        }
catch (        SAXException e) {
          if (e.getMessage().contentEquals("String_Node_Str")) {
            log.debug("String_Node_Str");
          }
 else {
            log.error(e.getMessage());
            e.printStackTrace();
            disconnect();
          }
          log.info("String_Node_Str");
        }
        log.debug("String_Node_Str");
      }
      log.debug("String_Node_Str");
    }
  }
;
  parserThread.start();
}