Program: 33255
Project: 33255
Buggy source:
protected String request(String inputText,String requestUrl) throws GerbilException {
  String parameters;
  try {
    parameters="String_Node_Str" + URLEncoder.encode(inputText,"String_Node_Str");
  }
 catch (  UnsupportedEncodingException e) {
    LOGGER.error("String_Node_Str",e);
    throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
  }
  HttpPost request=annotator.createPostRequest(requestUrl);
  HttpEntity entity=new StringEntity(parameters,"String_Node_Str");
  request.addHeader("String_Node_Str","String_Node_Str");
  request.addHeader("String_Node_Str","String_Node_Str");
  request.setEntity(entity);
  entity=null;
  CloseableHttpResponse response=null;
  InputStream is=null;
  try {
    try {
      response=annotator.getClient().execute(request);
    }
 catch (    java.net.SocketException e) {
      if (e.getMessage().contains(AbstractHttpBasedAnnotator.CONNECTION_ABORT_INDICATING_EXCPETION_MSG)) {
        LOGGER.error("String_Node_Str");
        throw new GerbilException("String_Node_Str",e,ErrorTypes.ANNOTATOR_NEEDED_TOO_MUCH_TIME);
      }
 else {
        LOGGER.error("String_Node_Str",e);
        throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
      }
    }
catch (    Exception e) {
      LOGGER.error("String_Node_Str",e);
      throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
    }
    StatusLine status=response.getStatusLine();
    if ((status.getStatusCode() < 200) || (status.getStatusCode() >= 300)) {
      LOGGER.error("String_Node_Str" + status.toString());
      throw new GerbilException("String_Node_Str" + status.toString(),ErrorTypes.UNEXPECTED_EXCEPTION);
    }
    entity=response.getEntity();
    try {
      return IOUtils.toString(entity.getContent(),"String_Node_Str");
    }
 catch (    Exception e) {
      LOGGER.error("String_Node_Str",e);
      throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
    }
  }
  finally {
    IOUtils.closeQuietly(is);
    if (entity != null) {
      try {
        EntityUtils.consume(entity);
      }
 catch (      IOException e1) {
      }
    }
    if (response != null) {
      try {
        response.close();
      }
 catch (      IOException e) {
      }
    }
    annotator.closeRequest(request);
  }
}

Fixed version (ground truth):
protected String request(String inputText,String requestUrl) throws GerbilException {
  String parameters;
  try {
    parameters="String_Node_Str" + URLEncoder.encode(inputText,"String_Node_Str");
  }
 catch (  UnsupportedEncodingException e) {
    LOGGER.error("String_Node_Str",e);
    throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
  }
  HttpPost request=annotator.createPostRequest(requestUrl);
  HttpEntity entity=new StringEntity(parameters,"String_Node_Str");
  request.addHeader(HttpHeaders.CONTENT_TYPE,"String_Node_Str");
  request.addHeader(HttpHeaders.ACCEPT,"String_Node_Str");
  request.addHeader(HttpHeaders.ACCEPT_CHARSET,"String_Node_Str");
  request.setEntity(entity);
  entity=null;
  CloseableHttpResponse response=null;
  InputStream is=null;
  try {
    try {
      response=annotator.getClient().execute(request);
    }
 catch (    java.net.SocketException e) {
      if (e.getMessage().contains(AbstractHttpBasedAnnotator.CONNECTION_ABORT_INDICATING_EXCPETION_MSG)) {
        LOGGER.error("String_Node_Str");
        throw new GerbilException("String_Node_Str",e,ErrorTypes.ANNOTATOR_NEEDED_TOO_MUCH_TIME);
      }
 else {
        LOGGER.error("String_Node_Str",e);
        throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
      }
    }
catch (    Exception e) {
      LOGGER.error("String_Node_Str",e);
      throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
    }
    StatusLine status=response.getStatusLine();
    if ((status.getStatusCode() < 200) || (status.getStatusCode() >= 300)) {
      LOGGER.error("String_Node_Str" + status.toString());
      throw new GerbilException("String_Node_Str" + status.toString(),ErrorTypes.UNEXPECTED_EXCEPTION);
    }
    entity=response.getEntity();
    try {
      return IOUtils.toString(entity.getContent(),"String_Node_Str");
    }
 catch (    Exception e) {
      LOGGER.error("String_Node_Str",e);
      throw new GerbilException("String_Node_Str",e,ErrorTypes.UNEXPECTED_EXCEPTION);
    }
  }
  finally {
    IOUtils.closeQuietly(is);
    if (entity != null) {
      try {
        EntityUtils.consume(entity);
      }
 catch (      IOException e1) {
      }
    }
    if (response != null) {
      try {
        response.close();
      }
 catch (      IOException e) {
      }
    }
    annotator.closeRequest(request);
  }
}