Program: 141615
Project: 141615
Buggy source:
public static void addConfig(){
{
    File tempFile;
    try {
      tempFile=File.createTempFile("String_Node_Str","String_Node_Str");
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    try (FileOutputStream out=new FileOutputStream(tempFile)){
      tempFile.deleteOnExit();
      copy(Bukkit.getPluginManager().getPlugin("String_Node_Str").getResource("String_Node_Str"),out);
      out.close();
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
    }
catch (    Exception e) {
      r.log("String_Node_Str");
      r.log("String_Node_Str");
    }
    Config confL=new Config(tempFile);
    Config confS=r.getCnfg();
    for (    String s : confL.getKeys(true)) {
      if (!confS.contains(s) && !(confL.get(s) instanceof MemorySection)) {
        confS.set(s,confL.get(s));
      }
    }
    for (    String str : confL.getHeaders().keySet()) {
      confS.setHeader(str,confL.getHeaders().get(str));
    }
    confS.save();
    if (tempFile != null) {
      tempFile.delete();
    }
  }
  try {
    File tempFile;
    try {
      tempFile=File.createTempFile("String_Node_Str","String_Node_Str");
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    try (FileOutputStream out=new FileOutputStream(tempFile);InputStream in=r.getUC().getResource("String_Node_Str")){
      tempFile.deleteOnExit();
      copy(in,out);
      in.close();
      out.close();
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
    }
    ResourceBundle tempR;
    try {
      tempR=new PropertyResourceBundle(new FileInputStream(tempFile));
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    Enumeration<String> keys=tempR.getKeys();
    Properties propsEN=new Properties();
    Properties propsCU=new Properties();
    FileInputStream strEN=new FileInputStream(ENf);
    FileInputStream strCU=new FileInputStream(LANGf);
    propsEN.load(strEN);
    propsCU.load(strCU);
    strEN.close();
    strCU.close();
    Boolean rl=false;
    while (keys.hasMoreElements()) {
      String key=keys.nextElement();
      if (!r.en.containsKey(key)) {
        rl=true;
        propsEN.put(key,tempR.getString(key));
      }
      if (!r.cu.containsKey(key)) {
        rl=true;
        propsCU.put(key,tempR.getString(key));
      }
    }
    if (rl) {
      FileOutputStream ENo=StreamUtil.createOutputStream(ENf);
      FileOutputStream CUo=StreamUtil.createOutputStream(LANGf);
      propsEN.store(ENo,"String_Node_Str");
      propsCU.store(CUo,"String_Node_Str" + (FilenameUtils.removeExtension(LANGf.getName())));
      ENo.close();
      CUo.close();
    }
    if (tempFile != null) {
      tempFile.delete();
    }
    if (rl) {
      InputStream inA=new FileInputStream(UltimateFileLoader.ENf);
      InputStream inB=new FileInputStream(UltimateFileLoader.LANGf);
      r.en=new PropertyResourceBundle(inA);
      r.cu=new PropertyResourceBundle(inB);
      inA.close();
      inB.close();
    }
  }
 catch (  IOException|SecurityException ex) {
    ErrorLogger.log(ex,"String_Node_Str");
  }
}

Fixed version (ground truth):
public static void addConfig(){
{
    File tempFile;
    try {
      tempFile=File.createTempFile("String_Node_Str","String_Node_Str");
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    try (FileOutputStream out=new FileOutputStream(tempFile)){
      tempFile.deleteOnExit();
      copy(Bukkit.getPluginManager().getPlugin("String_Node_Str").getResource("String_Node_Str"),out);
      out.close();
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
    }
catch (    Exception e) {
      r.log("String_Node_Str");
      r.log("String_Node_Str");
    }
    Config confL=new Config(tempFile);
    Config confS=r.getCnfg();
    Boolean changed=false;
    for (    String s : confL.getKeys(true)) {
      if (!confS.contains(s) && !(confL.get(s) instanceof MemorySection)) {
        confS.set(s,confL.get(s));
        changed=true;
      }
    }
    if (changed) {
      for (      String str : confL.getHeaders().keySet()) {
        confS.setHeader(str,confL.getHeaders().get(str));
      }
      confS.save();
    }
    if (tempFile != null) {
      tempFile.delete();
    }
  }
  try {
    File tempFile;
    try {
      tempFile=File.createTempFile("String_Node_Str","String_Node_Str");
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    try (FileOutputStream out=new FileOutputStream(tempFile);InputStream in=r.getUC().getResource("String_Node_Str")){
      tempFile.deleteOnExit();
      copy(in,out);
      in.close();
      out.close();
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
    }
    ResourceBundle tempR;
    try {
      tempR=new PropertyResourceBundle(new FileInputStream(tempFile));
    }
 catch (    IOException ex) {
      ErrorLogger.log(ex,"String_Node_Str");
      return;
    }
    Enumeration<String> keys=tempR.getKeys();
    Properties propsEN=new Properties();
    Properties propsCU=new Properties();
    FileInputStream strEN=new FileInputStream(ENf);
    FileInputStream strCU=new FileInputStream(LANGf);
    propsEN.load(strEN);
    propsCU.load(strCU);
    strEN.close();
    strCU.close();
    Boolean rl=false;
    while (keys.hasMoreElements()) {
      String key=keys.nextElement();
      if (!r.en.containsKey(key)) {
        rl=true;
        propsEN.put(key,tempR.getString(key));
      }
      if (!r.cu.containsKey(key)) {
        rl=true;
        propsCU.put(key,tempR.getString(key));
      }
    }
    if (rl) {
      FileOutputStream ENo=StreamUtil.createOutputStream(ENf);
      FileOutputStream CUo=StreamUtil.createOutputStream(LANGf);
      propsEN.store(ENo,"String_Node_Str");
      propsCU.store(CUo,"String_Node_Str" + (FilenameUtils.removeExtension(LANGf.getName())));
      ENo.close();
      CUo.close();
    }
    if (tempFile != null) {
      tempFile.delete();
    }
    if (rl) {
      InputStream inA=new FileInputStream(UltimateFileLoader.ENf);
      InputStream inB=new FileInputStream(UltimateFileLoader.LANGf);
      r.en=new PropertyResourceBundle(inA);
      r.cu=new PropertyResourceBundle(inB);
      inA.close();
      inB.close();
    }
  }
 catch (  IOException|SecurityException ex) {
    ErrorLogger.log(ex,"String_Node_Str");
  }
}