<commit_before>/*
 * Copyright 2013 Jive Software, Inc
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.jivesoftware.os.routing.bird.http.client;

import java.io.OutputStream;
import java.util.Map;

public interface HttpClient {

    HttpResponse get(String path, Map<String, String> headers) throws HttpClientException;

    HttpResponse delete(String path, Map<String, String> headers) throws HttpClientException;

    HttpResponse postBytes(String path, byte[] postBytes, Map<String, String> headers) throws HttpClientException;

    HttpResponse postJson(String path, String postJsonBody, Map<String, String> headers) throws HttpClientException;

    HttpStreamResponse streamingPost(String path, String postJsonBody, Map<String, String> headers) throws HttpClientException;

    HttpStreamResponse streamingPostStreamableRequest(String path, StreamableRequest streamableRequest, Map<String, String> headers) throws
        HttpClientException;

    HttpResponse postStreamableRequest(String path, StreamableRequest streamableRequest, Map<String, String> headers) throws HttpClientException;

    public static interface StreamableRequest {

        void writeRequest(OutputStream out) throws Exception;

    }

}<commit_msg>Fixed excpetion miss-alignment.<commit_after>/*
 * Copyright 2013 Jive Software, Inc
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.jivesoftware.os.routing.bird.http.client;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;

public interface HttpClient {

    HttpResponse get(String path, Map<String, String> headers) throws HttpClientException;

    HttpResponse delete(String path, Map<String, String> headers) throws HttpClientException;

    HttpResponse postBytes(String path, byte[] postBytes, Map<String, String> headers) throws HttpClientException;

    HttpResponse postJson(String path, String postJsonBody, Map<String, String> headers) throws HttpClientException;

    HttpStreamResponse streamingPost(String path, String postJsonBody, Map<String, String> headers) throws HttpClientException;

    HttpStreamResponse streamingPostStreamableRequest(String path, StreamableRequest streamableRequest, Map<String, String> headers) throws
        HttpClientException;

    HttpResponse postStreamableRequest(String path, StreamableRequest streamableRequest, Map<String, String> headers) throws HttpClientException;

    public static interface StreamableRequest {

        void writeRequest(OutputStream out) throws IOException;

    }

}
{'fraction_non_alphanumeric': 0.06961668545659526, 'fraction_numerical': 0.004509582863585118, 'mean_word_length': 5.066666666666666, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1896474', 'n_tokens_mistral': 880, 'n_tokens_neox': 849, 'n_words': 340}