Program: 143252
Project: 143252
Buggy source:
public void execute() throws Exception {
  checkToken();
  Pair<String,String> p=new Pair<String,String>("String_Node_Str",U.getTenantName());
  Vector<Pair<String,String>> v=new Vector<Pair<String,String>>();
  v.add(p);
  String data="String_Node_Str" + serverName + "String_Node_Str"+ imageID+ "String_Node_Str"+ (keyName != null ? "String_Node_Str" + keyName : "String_Node_Str")+ "String_Node_Str"+ flavorID+ "String_Node_Str"+ count+ "String_Node_Str"+ count+ "String_Node_Str";
  JSONObject obj=null;
  String[] secgrpIDs=securityGroupID.split("String_Node_Str");
  try {
    obj=new JSONObject(data);
    JSONArray secgs=new JSONArray();
    JSONArray nets=new JSONArray();
    if (securityGroupID.length() != 0)     for (int i=0; i < secgrpIDs.length; ++i)     secgs.put(new JSONObject("String_Node_Str" + secgrpIDs[i] + "String_Node_Str"));
    Iterator<Pair<String,String>> it=netID_to_netIP.keySet().iterator();
    while (it.hasNext()) {
      Pair<String,String> thisNet=it.next();
      String netID=thisNet.first;
      String netIP=netID_to_netIP.get(thisNet);
      if (netIP != null && netIP.length() != 0)       nets.put(new JSONObject("String_Node_Str" + netID + "String_Node_Str"+ netIP+ "String_Node_Str"));
 else {
        nets.put(new JSONObject("String_Node_Str" + netID + "String_Node_Str"));
      }
    }
    obj.getJSONObject("String_Node_Str").put("String_Node_Str",secgs);
    obj.getJSONObject("String_Node_Str").put("String_Node_Str",nets);
  }
 catch (  JSONException je) {
    throw new RuntimeException("String_Node_Str" + je.getMessage());
  }
  data=obj.toString();
  RESTClient.sendPOSTRequest(U.useSSL(),U.getNovaEndpoint() + "String_Node_Str",U.getToken(),data,v);
}

Fixed version (ground truth):
public void execute() throws Exception {
  checkToken();
  Pair<String,String> p=new Pair<String,String>("String_Node_Str",U.getTenantName());
  Vector<Pair<String,String>> v=new Vector<Pair<String,String>>();
  v.add(p);
  JSONObject data=new JSONObject();
  JSONObject serverDesc=new JSONObject();
  serverDesc.put("String_Node_Str",serverName).put("String_Node_Str",imageID);
  if (keyName != null)   serverDesc.put("String_Node_Str",keyName);
  serverDesc.put("String_Node_Str",flavorID).put("String_Node_Str",count).put("String_Node_Str",count);
  String[] secgrpIDs=securityGroupID.split("String_Node_Str");
  Log.d("String_Node_Str","String_Node_Str" + data);
  try {
    JSONArray secgs=new JSONArray();
    JSONArray nets=new JSONArray();
    if (securityGroupID.length() != 0)     for (int i=0; i < secgrpIDs.length; ++i)     secgs.put(new JSONObject("String_Node_Str" + secgrpIDs[i] + "String_Node_Str"));
    Iterator<Pair<String,String>> it=netID_to_netIP.keySet().iterator();
    while (it.hasNext()) {
      Pair<String,String> thisNet=it.next();
      String netID=thisNet.first;
      String netIP=netID_to_netIP.get(thisNet);
      if (netIP != null && netIP.length() != 0)       nets.put(new JSONObject("String_Node_Str" + netID + "String_Node_Str"+ netIP+ "String_Node_Str"));
 else {
        nets.put(new JSONObject("String_Node_Str" + netID + "String_Node_Str"));
      }
    }
    serverDesc.put("String_Node_Str",secgs).put("String_Node_Str",nets);
  }
 catch (  JSONException je) {
    throw new RuntimeException("String_Node_Str" + je.getMessage());
  }
  data.put("String_Node_Str",serverDesc);
  Log.d("String_Node_Str","String_Node_Str" + data.toString());
  RESTClient.sendPOSTRequest(U.useSSL(),U.getNovaEndpoint() + "String_Node_Str",U.getToken(),data.toString(),v);
}