Program: 105413
Project: 105413
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());
          if (bytesSent == null || bytesRcvd == null) {
            s_logger.debug("String_Node_Str" + publicIp);
          }
          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();
    }
    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;
}