<commit_before>package com.yammer.metrics.reporting;

import org.apache.http.entity.ContentType;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import static org.apache.http.client.fluent.Request.*;

public class HttpTransport implements Transport {
    private final String seriesUrl;

    public HttpTransport(String apiKey) {
        this.seriesUrl = String.format("https://app.datadoghq.com/api/v1/series?api_key=%s", apiKey);
    }

    public Request prepare() throws IOException {
        return new HttpRequest(this);
    }

    public static class HttpRequest implements Transport.Request {
        private final HttpTransport transport;
        private final ByteArrayOutputStream out;

        public HttpRequest(HttpTransport transport) throws IOException {
            this.transport = transport;
            this.out = new ByteArrayOutputStream();
        }

        public OutputStream getBodyWriter() {
            return out;
        }

        public void send() throws Exception {
            this.out.flush();
            this.out.close();
            Post(this.transport.seriesUrl).useExpectContinue()
                    .bodyString(out.toString("UTF-8"), ContentType.APPLICATION_JSON)
                    .execute().discardContent();
        }
    }
}<commit_msg>Formatting fix<commit_after>package com.yammer.metrics.reporting;

import org.apache.http.entity.ContentType;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import static org.apache.http.client.fluent.Request.*;

public class HttpTransport implements Transport {
    private final String seriesUrl;

    public HttpTransport(String apiKey) {
        this.seriesUrl = String.format("https://app.datadoghq.com/api/v1/series?api_key=%s", apiKey);
    }

    public Request prepare() throws IOException {
        return new HttpRequest(this);
    }

    public static class HttpRequest implements Transport.Request {
        private final HttpTransport transport;
        private final ByteArrayOutputStream out;

        public HttpRequest(HttpTransport transport) throws IOException {
            this.transport = transport;
            this.out = new ByteArrayOutputStream();
        }

        public OutputStream getBodyWriter() {
            return out;
        }

        public void send() throws Exception {
            this.out.flush();
            this.out.close();
            Post(this.transport.seriesUrl)
                    .useExpectContinue()
                    .bodyString(out.toString("UTF-8"), ContentType.APPLICATION_JSON)
                    .execute().discardContent();
        }
    }
}
{'fraction_non_alphanumeric': 0.09205642167780252, 'fraction_numerical': 0.0014847809948032665, 'mean_word_length': 2.5695364238410594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '2402754', 'n_tokens_mistral': 687, 'n_tokens_neox': 660, 'n_words': 154}