Program: 58169
Project: 58169
Buggy source:
/** 
 * @return
 */
public static HashMap<String,HashMap<PlotId,Plot>> getPlots(){
  try {
    DatabaseMetaData data=connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    boolean execute=rs.next();
    if (execute) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  HashMap<String,HashMap<PlotId,Plot>> plots=new HashMap<String,HashMap<PlotId,Plot>>();
  new HashMap<String,World>();
  Statement stmt=null;
  try {
    stmt=connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      String worldname=r.getString("String_Node_Str");
      HashMap<String,Object> settings=getSettings(id);
      UUID owner=UUID.fromString(r.getString("String_Node_Str"));
      Biome plotBiome=Biome.valueOf((String)settings.get("String_Node_Str"));
      if (plotBiome == null) {
        plotBiome=Biome.FOREST;
      }
      String[] flags_string;
      if (settings.get("String_Node_Str") == null) {
        flags_string=new String[]{};
      }
 else {
        flags_string=((String)settings.get("String_Node_Str")).split("String_Node_Str");
      }
      Flag[] flags=new Flag[flags_string.length];
      for (int i=0; i < flags.length; i++) {
        if (flags_string[i].contains("String_Node_Str")) {
          String[] split=flags_string[i].split("String_Node_Str");
          flags[i]=new Flag(FlagManager.getFlag(split[0],true),split[1]);
        }
 else {
          flags[i]=new Flag(FlagManager.getFlag(flags_string[i],true),"String_Node_Str");
        }
      }
      ArrayList<UUID> helpers=plotHelpers(id);
      ArrayList<UUID> denied=plotDenied(id);
      long time=8000l;
      boolean rain=false;
      String alias=(String)settings.get("String_Node_Str");
      if ((alias == null) || alias.equalsIgnoreCase("String_Node_Str")) {
        alias="String_Node_Str";
      }
      PlotHomePosition position=null;
      for (      PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
        if (plotHomePosition.isMatching((String)settings.get("String_Node_Str"))) {
          position=plotHomePosition;
        }
      }
      if (position == null) {
        position=PlotHomePosition.DEFAULT;
      }
      p=new Plot(plot_id,owner,plotBiome,helpers,denied,false,time,rain,alias,position,flags,worldname);
      if (plots.containsKey(worldname)) {
        plots.get(worldname).put((plot_id),p);
      }
 else {
        HashMap<PlotId,Plot> map=new HashMap<PlotId,Plot>();
        map.put((plot_id),p);
        plots.put(worldname,map);
      }
    }
    stmt.close();
  }
 catch (  SQLException e) {
    Logger.add(LogLevel.WARNING,"String_Node_Str");
    e.printStackTrace();
  }
  return plots;
}

Fixed version (ground truth):
/** 
 * @return
 */
public static HashMap<String,HashMap<PlotId,Plot>> getPlots(){
  try {
    DatabaseMetaData data=connection.getMetaData();
    ResultSet rs=data.getColumns(null,null,"String_Node_Str","String_Node_Str");
    boolean execute=rs.next();
    if (execute) {
      Statement statement=connection.createStatement();
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.addBatch("String_Node_Str");
      statement.executeBatch();
      statement.close();
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  HashMap<String,HashMap<PlotId,Plot>> plots=new HashMap<String,HashMap<PlotId,Plot>>();
  new HashMap<String,World>();
  Statement stmt=null;
  try {
    stmt=connection.createStatement();
    ResultSet r=stmt.executeQuery("String_Node_Str");
    PlotId plot_id;
    int id;
    Plot p;
    while (r.next()) {
      plot_id=new PlotId(r.getInt("String_Node_Str"),r.getInt("String_Node_Str"));
      id=r.getInt("String_Node_Str");
      String worldname=r.getString("String_Node_Str");
      HashMap<String,Object> settings=getSettings(id);
      UUID owner=UUID.fromString(r.getString("String_Node_Str"));
      Biome plotBiome=Biome.FOREST;
      String[] flags_string;
      if (settings.get("String_Node_Str") == null) {
        flags_string=new String[]{};
      }
 else {
        flags_string=((String)settings.get("String_Node_Str")).split("String_Node_Str");
      }
      Flag[] flags=new Flag[flags_string.length];
      for (int i=0; i < flags.length; i++) {
        if (flags_string[i].contains("String_Node_Str")) {
          String[] split=flags_string[i].split("String_Node_Str");
          flags[i]=new Flag(FlagManager.getFlag(split[0],true),split[1]);
        }
 else {
          flags[i]=new Flag(FlagManager.getFlag(flags_string[i],true),"String_Node_Str");
        }
      }
      ArrayList<UUID> helpers=plotHelpers(id);
      ArrayList<UUID> denied=plotDenied(id);
      long time=8000l;
      boolean rain=false;
      String alias=(String)settings.get("String_Node_Str");
      if ((alias == null) || alias.equalsIgnoreCase("String_Node_Str")) {
        alias="String_Node_Str";
      }
      PlotHomePosition position=null;
      for (      PlotHomePosition plotHomePosition : PlotHomePosition.values()) {
        if (settings.get("String_Node_Str") == null) {
          position=PlotHomePosition.DEFAULT;
          break;
        }
        if (plotHomePosition.isMatching((String)settings.get("String_Node_Str"))) {
          position=plotHomePosition;
        }
      }
      if (position == null) {
        position=PlotHomePosition.DEFAULT;
      }
      p=new Plot(plot_id,owner,plotBiome,helpers,denied,false,time,rain,alias,position,flags,worldname);
      if (plots.containsKey(worldname)) {
        plots.get(worldname).put((plot_id),p);
      }
 else {
        HashMap<PlotId,Plot> map=new HashMap<PlotId,Plot>();
        map.put((plot_id),p);
        plots.put(worldname,map);
      }
    }
    stmt.close();
  }
 catch (  SQLException e) {
    Logger.add(LogLevel.WARNING,"String_Node_Str");
    e.printStackTrace();
  }
  return plots;
}