Program: 105101
Project: 105101
Buggy source:
private DirectNetworkUsageAnswer getPublicIpBytesSentAndReceived(DirectNetworkUsageCommand cmd) throws ExecutionException {
  DirectNetworkUsageAnswer answer=new DirectNetworkUsageAnswer(cmd);
  try {
    URL trafficSentinel;
    if (_inclZones == null) {
      _inclZones=cmd.getIncludeZones();
    }
    if (_exclZones == null) {
      _exclZones=cmd.getExcludeZones();
    }
    try {
      trafficSentinel=new URL(_url + "String_Node_Str" + URLEncoder.encode(getScript(cmd.getPublicIps(),cmd.getStart(),cmd.getEnd()),"String_Node_Str")+ "String_Node_Str");
      BufferedReader in=new BufferedReader(new InputStreamReader(trafficSentinel.openStream()));
      String inputLine;
      while ((inputLine=in.readLine()) != null) {
        StringTokenizer st=new StringTokenizer(inputLine,"String_Node_Str");
        if (st.countTokens() == 3) {
          String publicIp=st.nextToken();
          Long bytesSent=new Long(st.nextToken());
          Long bytesRcvd=new Long(st.nextToken());
          long[] bytesSentAndReceived=new long[2];
          bytesSentAndReceived[0]=bytesSent;
          bytesSentAndReceived[1]=bytesRcvd;
          answer.put(publicIp,bytesSentAndReceived);
        }
      }
      in.close();
    }
 catch (    MalformedURLException e1) {
      s_logger.info("String_Node_Str",e1);
      throw new ExecutionException(e1.getMessage());
    }
catch (    IOException e) {
      s_logger.debug("String_Node_Str",e);
      throw new ExecutionException(e.getMessage());
    }
  }
 catch (  Exception e) {
    s_logger.debug(e);
    throw new ExecutionException(e.getMessage());
  }
  return answer;
}

Fixed version (ground truth):
private DirectNetworkUsageAnswer getPublicIpBytesSentAndReceived(DirectNetworkUsageCommand cmd) throws ExecutionException {
  DirectNetworkUsageAnswer answer=new DirectNetworkUsageAnswer(cmd);
  try {
    URL trafficSentinel;
    if (_inclZones == null) {
      _inclZones=cmd.getIncludeZones();
    }
    if (_exclZones == null) {
      _exclZones=cmd.getExcludeZones();
    }
    BufferedReader in=null;
    OutputStream os=null;
    try {
      trafficSentinel=new URL(_url + "String_Node_Str");
      String postData="String_Node_Str" + URLEncoder.encode(getScript(cmd.getPublicIps(),cmd.getStart(),cmd.getEnd()),"String_Node_Str") + "String_Node_Str";
      HttpURLConnection con=(HttpURLConnection)trafficSentinel.openConnection();
      con.setRequestMethod("String_Node_Str");
      con.setRequestProperty("String_Node_Str",String.valueOf(postData.length()));
      con.setDoOutput(true);
      os=con.getOutputStream();
      os.write(postData.getBytes("String_Node_Str"));
      in=new BufferedReader(new InputStreamReader(con.getInputStream()));
      String inputLine;
      while ((inputLine=in.readLine()) != null) {
        StringTokenizer st=new StringTokenizer(inputLine,"String_Node_Str");
        if (st.countTokens() == 3) {
          String publicIp=st.nextToken();
          Long bytesSent=new Long(st.nextToken());
          Long bytesRcvd=new Long(st.nextToken());
          long[] bytesSentAndReceived=new long[2];
          bytesSentAndReceived[0]=bytesSent;
          bytesSentAndReceived[1]=bytesRcvd;
          answer.put(publicIp,bytesSentAndReceived);
        }
      }
    }
 catch (    MalformedURLException e1) {
      s_logger.info("String_Node_Str",e1);
      throw new ExecutionException(e1.getMessage());
    }
catch (    IOException e) {
      s_logger.debug("String_Node_Str",e);
      throw new ExecutionException(e.getMessage());
    }
 finally {
      if (os != null) {
        os.close();
      }
      if (in != null) {
        in.close();
      }
    }
  }
 catch (  Exception e) {
    s_logger.debug(e);
    throw new ExecutionException(e.getMessage());
  }
  return answer;
}