Program: 154791
Project: 154791
Buggy source:
public StandaloneDb(Args args,RmiLocation location) throws Exception {
  super();
  storeDir=args.get("String_Node_Str",null);
  out=new PrintStream(new File(new File(storeDir),"String_Node_Str")){
    public void println(    String x){
      super.println(new SimpleDateFormat("String_Node_Str").format(new Date()) + "String_Node_Str" + x);
    }
  }
;
  System.setOut(out);
  System.setErr(out);
  try {
    int tempMachineId;
    System.out.println("String_Node_Str");
    HighlyAvailableGraphDatabase haDb=null;
    System.out.println(args.asMap().toString());
    if (args.has(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID)) {
      new EmbeddedGraphDatabase(storeDir).shutdown();
      tempMachineId=args.getNumber(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,null).intValue();
      Map<String,String> config=MapUtil.stringMap(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,"String_Node_Str" + tempMachineId,HighlyAvailableGraphDatabase.CONFIG_KEY_HA_ZOO_KEEPER_SERVERS,args.get(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_ZOO_KEEPER_SERVERS,null),HighlyAvailableGraphDatabase.CONFIG_KEY_HA_SERVER,args.get(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_SERVER,null),"String_Node_Str",args.get("String_Node_Str",null));
      haDb=new HighlyAvailableGraphDatabase(storeDir,config);
      System.out.println("String_Node_Str");
    }
 else {
      boolean isMaster=args.getBoolean("String_Node_Str",false).booleanValue();
      tempMachineId=args.getNumber("String_Node_Str",null).intValue();
      Number masterId=args.getNumber("String_Node_Str",null);
      Master master=new MasterClient("String_Node_Str",CommunicationProtocol.PORT,storeDir);
      AbstractBroker broker=isMaster ? new FakeMasterBroker(tempMachineId,storeDir) : new FakeSlaveBroker(master,masterId.intValue(),tempMachineId,storeDir);
      haDb=new HighlyAvailableGraphDatabase(storeDir,MapUtil.stringMap(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,"String_Node_Str" + tempMachineId,"String_Node_Str",args.get("String_Node_Str",null)),AbstractBroker.wrapSingleBroker(broker));
      System.out.println("String_Node_Str");
    }
    this.location=location;
    this.location.ensureRegistryCreated();
    Thread.sleep(5000);
    this.location.bind(this);
    this.machineId=tempMachineId;
    this.db=haDb;
    System.out.println("String_Node_Str");
  }
 catch (  Exception e) {
    println("String_Node_Str",e);
    throw e;
  }
}

Fixed version (ground truth):
public StandaloneDb(Args args,RmiLocation location) throws Exception {
  super();
  storeDir=args.get("String_Node_Str",null);
  out=new PrintStream(new File(new File(storeDir),"String_Node_Str")){
    public void println(    String x){
      super.println(new SimpleDateFormat("String_Node_Str").format(new Date()) + "String_Node_Str" + x);
    }
  }
;
  System.setOut(out);
  System.setErr(out);
  try {
    int tempMachineId;
    System.out.println("String_Node_Str");
    HighlyAvailableGraphDatabase haDb=null;
    System.out.println(args.asMap().toString());
    if (args.has(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID)) {
      new EmbeddedGraphDatabase(storeDir).shutdown();
      tempMachineId=args.getNumber(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,null).intValue();
      Map<String,String> config=MapUtil.stringMap(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,"String_Node_Str" + tempMachineId,HighlyAvailableGraphDatabase.CONFIG_KEY_HA_ZOO_KEEPER_SERVERS,args.get(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_ZOO_KEEPER_SERVERS,null),HighlyAvailableGraphDatabase.CONFIG_KEY_HA_SERVER,args.get(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_SERVER,null),"String_Node_Str",args.get("String_Node_Str",null));
      haDb=new HighlyAvailableGraphDatabase(storeDir,config);
      System.out.println("String_Node_Str");
    }
 else {
      boolean isMaster=args.getBoolean("String_Node_Str",false).booleanValue();
      tempMachineId=args.getNumber("String_Node_Str",null).intValue();
      Number masterId=args.getNumber("String_Node_Str",null);
      Master master=new MasterClient("String_Node_Str",CommunicationProtocol.PORT,storeDir);
      AbstractBroker broker=isMaster ? new FakeMasterBroker(tempMachineId,storeDir) : new FakeSlaveBroker(master,masterId.intValue(),tempMachineId,storeDir);
      haDb=new HighlyAvailableGraphDatabase(storeDir,MapUtil.stringMap(HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID,"String_Node_Str" + tempMachineId,"String_Node_Str",args.get("String_Node_Str",null)),AbstractBroker.wrapSingleBroker(broker));
      System.out.println("String_Node_Str");
    }
    this.location=location;
    this.location.ensureRegistryCreated();
    this.location.bind(this);
    this.machineId=tempMachineId;
    this.db=haDb;
    System.out.println("String_Node_Str");
  }
 catch (  Exception e) {
    println("String_Node_Str",e);
    throw e;
  }
}