Program: 38064
Project: 38064
Buggy source:
protected static KloudlessResponse _request(APIResource.RequestMethod method,String path,Map<String,Object> params,Map<String,String> keys) throws AuthenticationException, InvalidRequestException, APIConnectionException, APIException {
  if (keys == null) {
    keys=new HashMap<String,String>();
  }
  if ((Kloudless.apiKey == null || Kloudless.apiKey.length() == 0) && (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0) && (Kloudless.developerKey == null || Kloudless.developerKey.length() == 0)&& (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0)&& (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0)) {
    throw new AuthenticationException("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  }
  if (Kloudless.apiKey != null) {
    keys.put("String_Node_Str",Kloudless.apiKey);
  }
 else   if (Kloudless.developerKey != null) {
    keys.put("String_Node_Str",Kloudless.developerKey);
  }
 else   if (Kloudless.bearerToken != null) {
    keys.put("String_Node_Str",Kloudless.bearerToken);
  }
  String query;
  String url=String.format("String_Node_Str",Kloudless.getApiBase(),Kloudless.apiVersion,path);
  try {
    query=createQuery(method,params);
  }
 catch (  UnsupportedEncodingException e) {
    throw new InvalidRequestException("String_Node_Str" + CHARSET + "String_Node_Str",null,e);
  }
  KloudlessResponse response;
  try {
    response=makeURLConnectionRequest(method,params,url,query,keys);
  }
 catch (  ClassCastException ce) {
    String appEngineEnv=System.getProperty("String_Node_Str",null);
    if (appEngineEnv != null) {
      response=makeAppEngineRequest(method,params,url,query,keys);
    }
 else {
      throw ce;
    }
  }
  return response;
}

Fixed version (ground truth):
protected static KloudlessResponse _request(APIResource.RequestMethod method,String path,Map<String,Object> params,Map<String,String> keys) throws AuthenticationException, InvalidRequestException, APIConnectionException, APIException {
  if (keys == null) {
    keys=new HashMap<String,String>();
  }
  if ((Kloudless.apiKey == null || Kloudless.apiKey.length() == 0) && (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0) && (Kloudless.developerKey == null || Kloudless.developerKey.length() == 0)&& (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0)&& (Kloudless.bearerToken == null || Kloudless.bearerToken.length() == 0)&& (keys.get("String_Node_Str") == null || keys.get("String_Node_Str").length() == 0)) {
    throw new AuthenticationException("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  }
  if (Kloudless.apiKey != null) {
    keys.put("String_Node_Str",Kloudless.apiKey);
  }
 else   if (Kloudless.developerKey != null) {
    keys.put("String_Node_Str",Kloudless.developerKey);
  }
 else   if (Kloudless.bearerToken != null) {
    keys.put("String_Node_Str",Kloudless.bearerToken);
  }
  String query;
  String url=String.format("String_Node_Str",Kloudless.getApiBase(),Kloudless.apiVersion,path);
  try {
    query=createQuery(method,params);
  }
 catch (  UnsupportedEncodingException e) {
    throw new InvalidRequestException("String_Node_Str" + CHARSET + "String_Node_Str",null,e);
  }
  KloudlessResponse response;
  try {
    response=makeURLConnectionRequest(method,params,url,query,keys);
  }
 catch (  ClassCastException ce) {
    String appEngineEnv=System.getProperty("String_Node_Str",null);
    if (appEngineEnv != null) {
      response=makeAppEngineRequest(method,params,url,query,keys);
    }
 else {
      throw ce;
    }
  }
  return response;
}