Program: 9577
Project: 9577
Buggy source:
public void create_Sparql_query(String question) throws JWNLException, IOException {
  ArrayList<String> lstquery=new ArrayList<String>();
  lstquery=getQuery(question);
  for (  String query : lstquery) {
    if (getIterationdepth() == -1) {
      String tmp=new String();
      String s=null;
      BufferedReader in=null;
      try {
        in=new BufferedReader(new InputStreamReader(new FileInputStream("String_Node_Str")));
        while (null != (s=in.readLine())) {
          tmp=tmp + "String_Node_Str" + s;
        }
      }
 catch (      FileNotFoundException ex) {
      }
catch (      Exception ex) {
        System.out.println(ex);
      }
 finally {
        if (in != null)         try {
          in.close();
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
      String out=null;
      if (query == "String_Node_Str" || query == "String_Node_Str")       query="String_Node_Str";
      out=tmp + "String_Node_Str" + question+ "String_Node_Str"+ query+ "String_Node_Str";
      BufferedWriter outfile=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("String_Node_Str")));
      outfile.write(out);
      outfile.close();
    }
    if (getIterationdepth() == 0) {
      String tmp=new String();
      String s=null;
      BufferedReader in=null;
      try {
        in=new BufferedReader(new InputStreamReader(new FileInputStream("String_Node_Str")));
        while (null != (s=in.readLine())) {
          tmp=tmp + "String_Node_Str" + s;
        }
      }
 catch (      FileNotFoundException ex) {
      }
catch (      Exception ex) {
        System.out.println(ex);
      }
 finally {
        if (in != null)         try {
          in.close();
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
      String answer;
      answer=sendServerQuestionRequest(query);
      System.out.println("String_Node_Str" + answer);
      String out=tmp + "String_Node_Str" + question+ "String_Node_Str"+ answer+ "String_Node_Str";
      BufferedWriter outfile=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("String_Node_Str")));
      outfile.write(out);
      outfile.close();
    }
    if (getIterationdepth() == 1) {
    }
    if (getIterationdepth() == 2) {
    }
  }
}

Fixed version (ground truth):
public void create_Sparql_query(String question) throws JWNLException, IOException {
  ArrayList<String> lstquery=new ArrayList<String>();
  lstquery=getQuery(question);
  for (  String query : lstquery) {
    if (getIterationdepth() == -1) {
      String tmp=new String();
      String s=null;
      BufferedReader in=null;
      try {
        in=new BufferedReader(new InputStreamReader(new FileInputStream("String_Node_Str")));
        while (null != (s=in.readLine())) {
          tmp=tmp + "String_Node_Str" + s;
        }
      }
 catch (      FileNotFoundException ex) {
      }
catch (      Exception ex) {
        System.out.println(ex);
      }
 finally {
        if (in != null)         try {
          in.close();
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
      String out=null;
      if (query == "String_Node_Str" || query == "String_Node_Str")       query="String_Node_Str";
      out=tmp + "String_Node_Str" + question+ "String_Node_Str"+ query+ "String_Node_Str";
      BufferedWriter outfile=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("String_Node_Str")));
      outfile.write(out);
      outfile.close();
    }
    if (getIterationdepth() == 0) {
      String tmp=new String();
      String s=null;
      BufferedReader in=null;
      try {
        in=new BufferedReader(new InputStreamReader(new FileInputStream("String_Node_Str")));
        while (null != (s=in.readLine())) {
          tmp=tmp + "String_Node_Str" + s;
        }
      }
 catch (      FileNotFoundException ex) {
      }
catch (      Exception ex) {
        System.out.println(ex);
      }
 finally {
        if (in != null)         try {
          in.close();
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
      String answer;
      answer=sendServerQuestionRequest(query);
      System.out.println(query);
      System.out.println("String_Node_Str" + answer);
      String out=tmp + "String_Node_Str" + "String_Node_Str"+ question+ "String_Node_Str"+ "String_Node_Str"+ query+ "String_Node_Str"+ answer+ "String_Node_Str";
      BufferedWriter outfile=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("String_Node_Str")));
      outfile.write(out);
      outfile.close();
    }
    if (getIterationdepth() == 1) {
    }
    if (getIterationdepth() == 2) {
    }
  }
}