<commit_before>package io.advantageous.qbit.vertx.bugs;

import io.advantageous.boon.core.Sys;
import io.advantageous.qbit.http.client.HttpClient;
import io.advantageous.qbit.http.client.HttpClientBuilder;
import io.advantageous.qbit.http.request.HttpRequestBuilder;
import org.junit.Test;

import java.util.concurrent.atomic.AtomicInteger;

import static io.advantageous.boon.core.IO.puts;
import static org.junit.Assert.assertEquals;

public class Bug660 {

    @Test
    public void test() throws Exception {
        final HttpClient httpClient = HttpClientBuilder.httpClientBuilder()
                .setHost("localhost")
                .setPort(9999)
                .buildAndStart();

        AtomicInteger codeRef = new AtomicInteger();


        httpClient.sendHttpRequest(HttpRequestBuilder
                .httpRequestBuilder()
                .setJsonBodyForPost("\"hi mob\"")
                .setResponse((code, contentType, body) -> {
                    puts(code, contentType, body);<commit_msg>Bug fix for 660<commit_after>package io.advantageous.qbit.vertx.bugs;

        import io.advantageous.boon.core.Sys;
        import io.advantageous.qbit.http.client.HttpClient;
        import io.advantageous.qbit.http.client.HttpClientBuilder;
        import io.advantageous.qbit.http.request.HttpRequestBuilder;
        import org.junit.Test;

        import java.util.concurrent.atomic.AtomicInteger;

        import static io.advantageous.boon.core.IO.puts;
        import static org.junit.Assert.assertEquals;

public class Bug660 {

    @Test
    public void test() throws Exception {
        final HttpClient httpClient = HttpClientBuilder.httpClientBuilder()
                .setHost("localhost")
                .setPort(9999)
                .buildAndStart();

        AtomicInteger codeRef = new AtomicInteger();


        httpClient.sendHttpRequest(HttpRequestBuilder
                .httpRequestBuilder()
                .setJsonBodyForPost("\"hi mob\"")
                .setResponse((code, contentType, body) -> {
                    puts(code, contentType, body);
{'fraction_non_alphanumeric': 0.09770114942528736, 'fraction_numerical': 0.008141762452107279, 'mean_word_length': 2.5648464163822524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '3228742', 'n_tokens_mistral': 610, 'n_tokens_neox': 568, 'n_words': 102}