Program: 79534
Project: 79534
Buggy source:
private String getPublicHostnameAws(HostAndPort sshHostAndPort,ConfigBag setup){
  SshMachineLocation sshLocByIp=null;
  try {
    ConfigBag sshConfig=extractSshConfig(setup,new ConfigBag());
    if (isManaged()) {
      sshLocByIp=getManagementContext().getLocationManager().createLocation(LocationSpec.create(SshMachineLocation.class).configure("String_Node_Str",sshHostAndPort.getHostText()).configure("String_Node_Str",sshHostAndPort.getPort()).configure("String_Node_Str",getUser(setup)).configure(sshConfig.getAllConfig()));
    }
 else {
      MutableMap<Object,Object> locationProps=MutableMap.builder().put("String_Node_Str",sshHostAndPort.getHostText()).put("String_Node_Str",sshHostAndPort.getPort()).put("String_Node_Str",getUser(setup)).putAll(sshConfig.getAllConfig()).build();
      sshLocByIp=new SshMachineLocation(locationProps);
    }
    ByteArrayOutputStream outStream=new ByteArrayOutputStream();
    ByteArrayOutputStream errStream=new ByteArrayOutputStream();
    int exitcode=sshLocByIp.execCommands(MutableMap.of("String_Node_Str",outStream,"String_Node_Str",errStream),"String_Node_Str",ImmutableList.of(BashCommands.INSTALL_CURL,"String_Node_Str"));
    String outString=new String(outStream.toByteArray());
    String[] outLines=outString.split("String_Node_Str");
    for (    String line : outLines) {
      if (line.startsWith("String_Node_Str"))       return line.trim();
    }
    throw new IllegalStateException("String_Node_Str" + sshHostAndPort + "String_Node_Str"+ exitcode+ "String_Node_Str"+ outString+ "String_Node_Str"+ new String(errStream.toByteArray()));
  }
  finally {
    Closeables.closeQuietly(sshLocByIp);
  }
}

Fixed version (ground truth):
private String getPublicHostnameAws(HostAndPort sshHostAndPort,ConfigBag setup){
  SshMachineLocation sshLocByIp=null;
  try {
    ConfigBag sshConfig=extractSshConfig(setup,new ConfigBag());
    if (isManaged()) {
      sshLocByIp=getManagementContext().getLocationManager().createLocation(LocationSpec.create(SshMachineLocation.class).configure("String_Node_Str",sshHostAndPort.getHostText()).configure("String_Node_Str",sshHostAndPort.getPort()).configure("String_Node_Str",getUser(setup)).configure(sshConfig.getAllConfig()));
    }
 else {
      MutableMap<Object,Object> locationProps=MutableMap.builder().put("String_Node_Str",sshHostAndPort.getHostText()).put("String_Node_Str",sshHostAndPort.getPort()).put("String_Node_Str",getUser(setup)).putAll(sshConfig.getAllConfig()).build();
      sshLocByIp=new SshMachineLocation(locationProps);
    }
    ByteArrayOutputStream outStream=new ByteArrayOutputStream();
    ByteArrayOutputStream errStream=new ByteArrayOutputStream();
    int exitcode=sshLocByIp.execCommands(MutableMap.of("String_Node_Str",outStream,"String_Node_Str",errStream),"String_Node_Str",ImmutableList.of(BashCommands.INSTALL_CURL,"String_Node_Str"));
    String outString=new String(outStream.toByteArray());
    String[] outLines=outString.split("String_Node_Str");
    for (    String line : outLines) {
      if (line.startsWith("String_Node_Str"))       return line.trim();
    }
    throw new IllegalStateException("String_Node_Str" + sshHostAndPort + "String_Node_Str"+ exitcode+ "String_Node_Str"+ outString+ "String_Node_Str"+ new String(errStream.toByteArray()));
  }
  finally {
    Streams.closeQuietly(sshLocByIp);
  }
}