Program: 60343
Project: 60343
Buggy source:
private Snippet _get(String name,String extension,boolean prettyFail){
  Snippet template=getFromCache(name,extension);
  String filename=null;
  if (template == null) {
    String stub=truncateNameToStub(name);
    filename=getTemplatePath(name,extension);
    char fs=System.getProperty("String_Node_Str").charAt(0);
    filename=filename.replace('\\',fs);
    filename=filename.replace('/',fs);
    try {
      File templateFile=new File(filename);
      if (templateFile.exists()) {
        FileReader in=new FileReader(templateFile);
        BufferedReader brTemp=new BufferedReader(in);
        readAndCacheTemplate(stub,extension,brTemp);
        in.close();
        template=getFromCache(name,extension);
      }
 else {
        String resourcePath=filename;
        if (resourcePath.charAt(0) != '/') {
          resourcePath='/' + resourcePath;
        }
        InputStream inJar=null;
        if (classInJar != null)         inJar=classInJar.getResourceAsStream(resourcePath);
        if (inJar == null)         inJar=fishForTemplate(resourcePath);
        if (inJar != null) {
          BufferedReader brTemp=new BufferedReader(new InputStreamReader(inJar));
          readAndCacheTemplate(stub,extension,brTemp);
          inJar.close();
          template=getFromCache(name,extension);
        }
      }
    }
 catch (    java.io.IOException e) {
      if (!prettyFail)       return null;
      StringBuilder errmsg=new StringBuilder("String_Node_Str");
      errmsg.append(extension);
      errmsg.append("String_Node_Str");
      errmsg.append(name);
      errmsg.append("String_Node_Str");
      StringWriter w=new StringWriter();
      e.printStackTrace(new PrintWriter(w));
      errmsg.append(w.toString());
      errmsg.append("String_Node_Str");
      template=new Snippet(errmsg.toString());
    }
  }
  if (template == null) {
    if (prettyFail) {
      StringBuilder errmsg=new StringBuilder();
      errmsg.append("String_Node_Str");
      errmsg.append(extension);
      errmsg.append("String_Node_Str");
      errmsg.append(name);
      errmsg.append("String_Node_Str");
      errmsg.append(filename);
      errmsg.append("String_Node_Str");
      template=new Snippet(errmsg.toString());
    }
 else {
      return null;
    }
  }
  return template;
}

Fixed version (ground truth):
private Snippet _get(String name,String extension,boolean prettyFail){
  Snippet template=getFromCache(name,extension);
  String filename=null;
  if (template == null) {
    String stub=truncateNameToStub(name);
    filename=getTemplatePath(name,extension);
    char fs=System.getProperty("String_Node_Str").charAt(0);
    filename=filename.replace('\\',fs);
    filename=filename.replace('/',fs);
    try {
      File templateFile=new File(filename);
      if (templateFile.exists()) {
        FileReader in=new FileReader(templateFile);
        BufferedReader brTemp=new BufferedReader(in);
        readAndCacheTemplate(stub,extension,brTemp);
        in.close();
        template=getFromCache(name,extension);
      }
 else {
        String resourcePath=getResourcePath(name,extension);
        InputStream inJar=null;
        if (classInJar != null)         inJar=classInJar.getResourceAsStream(resourcePath);
        if (inJar == null)         inJar=fishForTemplate(resourcePath);
        if (inJar != null) {
          BufferedReader brTemp=new BufferedReader(new InputStreamReader(inJar));
          readAndCacheTemplate(stub,extension,brTemp);
          inJar.close();
          template=getFromCache(name,extension);
        }
      }
    }
 catch (    java.io.IOException e) {
      if (!prettyFail)       return null;
      StringBuilder errmsg=new StringBuilder("String_Node_Str");
      errmsg.append(extension);
      errmsg.append("String_Node_Str");
      errmsg.append(name);
      errmsg.append("String_Node_Str");
      StringWriter w=new StringWriter();
      e.printStackTrace(new PrintWriter(w));
      errmsg.append(w.toString());
      errmsg.append("String_Node_Str");
      template=new Snippet(errmsg.toString());
    }
  }
  if (template == null) {
    if (prettyFail) {
      StringBuilder errmsg=new StringBuilder();
      errmsg.append("String_Node_Str");
      errmsg.append(extension);
      errmsg.append("String_Node_Str");
      errmsg.append(name);
      errmsg.append("String_Node_Str");
      errmsg.append(filename);
      errmsg.append("String_Node_Str");
      template=new Snippet(errmsg.toString());
    }
 else {
      return null;
    }
  }
  return template;
}