Program: 83953
Project: 83953
Buggy source:
public void get(HttpExchange exchange,boolean internalCall,JSONObject internalResp){
  try {
    if (exchangeJSON.containsKey("String_Node_Str") && ((String)exchangeJSON.getString("String_Node_Str")).equalsIgnoreCase("String_Node_Str") && exchange.getRequestURI().toString().contains("String_Node_Str")) {
      logger.info("String_Node_Str");
      query(exchange,null,internalCall,internalResp);
    }
 else     if (exchangeJSON.containsKey("String_Node_Str") && exchangeJSON.containsKey("String_Node_Str")) {
      logger.info("String_Node_Str");
      boolean queryQ=exchangeJSON.containsKey("String_Node_Str");
      String queryVal=exchangeJSON.optString("String_Node_Str");
      queryQ&=(queryVal != null && queryVal.equalsIgnoreCase("String_Node_Str"));
      if (queryQ) {
        handleTSAggQuery(exchange,null,internalCall,internalResp);
      }
 else {
        String aggStr=exchangeJSON.getString("String_Node_Str");
        String units=exchangeJSON.getString("String_Node_Str");
        String queryRes=metadataGraph.queryAgg(URI,aggStr,units,null);
        if (queryRes != null) {
          JSONObject response=(JSONObject)JSONSerializer.toJSON(queryRes);
          sendResponse(exchange,200,response.toString(),internalCall,internalResp);
        }
 else {
          sendResponse(exchange,200,null,internalCall,internalResp);
        }
      }
    }
 else {
      logger.fine("String_Node_Str" + URI);
      JSONObject response=new JSONObject();
      JSONArray subResourceNames=((MySqlDriver)(DBAbstractionLayer.database)).rrGetChildren(URI);
      logger.fine(subResourceNames.toString());
      response.put("String_Node_Str","String_Node_Str");
      response.put("String_Node_Str",ResourceUtils.translateType(TYPE));
      response.put("String_Node_Str",database.rrGetProperties(URI));
      findSymlinks(subResourceNames);
      response.put("String_Node_Str",subResourceNames);
      sendResponse(exchange,200,response.toString(),internalCall,internalResp);
    }
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void get(HttpExchange exchange,boolean internalCall,JSONObject internalResp){
  try {
    if (exchangeJSON.containsKey("String_Node_Str") && ((String)exchangeJSON.getString("String_Node_Str")).equalsIgnoreCase("String_Node_Str") && exchangeJSON.getString("String_Node_Str").contains("String_Node_Str")) {
      logger.info("String_Node_Str");
      query(exchange,null,internalCall,internalResp);
    }
 else     if (exchangeJSON.containsKey("String_Node_Str") && exchangeJSON.containsKey("String_Node_Str")) {
      logger.info("String_Node_Str");
      boolean queryQ=exchangeJSON.containsKey("String_Node_Str");
      String queryVal=exchangeJSON.optString("String_Node_Str");
      queryQ&=(queryVal != null && queryVal.equalsIgnoreCase("String_Node_Str"));
      if (queryQ) {
        handleTSAggQuery(exchange,null,internalCall,internalResp);
      }
 else {
        String aggStr=exchangeJSON.getString("String_Node_Str");
        String units=exchangeJSON.getString("String_Node_Str");
        String queryRes=metadataGraph.queryAgg(URI,aggStr,units,null);
        if (queryRes != null) {
          JSONObject response=(JSONObject)JSONSerializer.toJSON(queryRes);
          sendResponse(exchange,200,response.toString(),internalCall,internalResp);
        }
 else {
          sendResponse(exchange,200,null,internalCall,internalResp);
        }
      }
    }
 else {
      logger.fine("String_Node_Str" + URI);
      JSONObject response=new JSONObject();
      JSONArray subResourceNames=((MySqlDriver)(DBAbstractionLayer.database)).rrGetChildren(URI);
      logger.fine(subResourceNames.toString());
      response.put("String_Node_Str","String_Node_Str");
      response.put("String_Node_Str",ResourceUtils.translateType(TYPE));
      response.put("String_Node_Str",database.rrGetProperties(URI));
      findSymlinks(subResourceNames);
      response.put("String_Node_Str",subResourceNames);
      sendResponse(exchange,200,response.toString(),internalCall,internalResp);
    }
  }
 catch (  Exception e) {
    logger.log(Level.WARNING,"String_Node_Str",e);
  }
}