Program: 94573
Project: 94573
Buggy source:
public HttpURLConnection HTTPRequest(String url_,String data_) throws IOException {
  this.log.debug("String_Node_Str" + url_ + "String_Node_Str");
  HttpURLConnection connection=null;
  URL url=new URL(url_);
  connection=(HttpURLConnection)url.openConnection();
  connection.setDoInput(true);
  connection.setDoOutput(true);
  connection.setRequestMethod("String_Node_Str");
  for (  String cookie : this.cookies) {
    connection.setRequestProperty("String_Node_Str",cookie);
  }
  if (url_.startsWith("String_Node_Str")) {
    try {
      SSLContext sc;
      sc=SSLContext.getInstance("String_Node_Str");
      sc.init(null,new TrustManager[]{this},null);
      SSLSocketFactory factory=sc.getSocketFactory();
      ((HttpsURLConnection)connection).setSSLSocketFactory(factory);
      ((HttpsURLConnection)connection).setHostnameVerifier(this);
    }
 catch (    NoSuchAlgorithmException e) {
      e.printStackTrace();
      return null;
    }
catch (    KeyManagementException e) {
      e.printStackTrace();
      return null;
    }
  }
  if (data_ != null) {
    connection.setRequestProperty("String_Node_Str","String_Node_Str");
    connection.setRequestMethod("String_Node_Str");
    OutputStreamWriter out=new OutputStreamWriter(connection.getOutputStream());
    out.write(data_);
    out.flush();
    out.close();
  }
  String headerName=null;
  for (int i=1; (headerName=connection.getHeaderFieldKey(i)) != null; i++) {
    if (headerName.equals("String_Node_Str")) {
      String cookie=connection.getHeaderField(i);
      boolean cookieIsPresent=false;
      for (      String value : this.cookies) {
        if (value.equalsIgnoreCase(cookie))         cookieIsPresent=true;
      }
      if (!cookieIsPresent)       this.cookies.add(cookie);
    }
  }
  this.lastRequestTime=new Date().getTime();
  return connection;
}

Fixed version (ground truth):
public HttpURLConnection HTTPRequest(String url_,String data_) throws IOException {
  this.log.debug("String_Node_Str" + url_ + "String_Node_Str");
  HttpURLConnection connection=null;
  URL url=new URL(url_);
  connection=(HttpURLConnection)url.openConnection();
  connection.setDoInput(true);
  connection.setDoOutput(true);
  connection.setRequestMethod("String_Node_Str");
  for (  String cookie : this.cookies) {
    connection.setRequestProperty("String_Node_Str",cookie);
  }
  if (url_.startsWith("String_Node_Str")) {
    try {
      SSLContext sc;
      sc=SSLContext.getInstance("String_Node_Str");
      sc.init(null,new TrustManager[]{this},null);
      SSLSocketFactory factory=sc.getSocketFactory();
      ((HttpsURLConnection)connection).setSSLSocketFactory(factory);
      ((HttpsURLConnection)connection).setHostnameVerifier(this);
    }
 catch (    NoSuchAlgorithmException e) {
      e.printStackTrace();
      return null;
    }
catch (    KeyManagementException e) {
      e.printStackTrace();
      return null;
    }
  }
  if (data_ != null) {
    connection.setRequestProperty("String_Node_Str","String_Node_Str");
    connection.setRequestMethod("String_Node_Str");
    OutputStreamWriter out=new OutputStreamWriter(connection.getOutputStream());
    out.write(data_);
    out.flush();
    out.close();
  }
  String headerName=null;
  for (int i=1; (headerName=connection.getHeaderFieldKey(i)) != null; i++) {
    if (headerName.equals("String_Node_Str")) {
      String cookie=connection.getHeaderField(i);
      boolean cookieIsPresent=false;
      for (      String value : this.cookies) {
        if (value.equalsIgnoreCase(cookie))         cookieIsPresent=true;
      }
      if (!cookieIsPresent)       this.cookies.add(cookie);
    }
  }
  connection.getResponseCode();
  this.lastRequestTime=new Date().getTime();
  return connection;
}