<commit_before>package org.deviceconnect.android.deviceplugin.theta.core.osc;


import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;

import java.io.IOException;

class HttpClient {

    private static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");

    private final OkHttpClient mOkHttpClient = new OkHttpClient();

    public HttpClient() {
    }

    public HttpResponse execute(final HttpRequest request) throws IOException {
        switch (request.getMethod()) {
            case GET:
                return get(request);
            case POST:
                return post(request);
            default:
                throw new IllegalStateException();<commit_msg>Each timeout is 60 seconds.<commit_after>package org.deviceconnect.android.deviceplugin.theta.core.osc;


import com.squareup.okhttp.MediaType;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;

import java.io.IOException;
import java.util.concurrent.TimeUnit;

class HttpClient {

    private static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");

    private final OkHttpClient mOkHttpClient = new OkHttpClient();

    public HttpClient() {
        mOkHttpClient.setConnectTimeout(60, TimeUnit.SECONDS);
        mOkHttpClient.setWriteTimeout(60, TimeUnit.SECONDS);
        mOkHttpClient.setReadTimeout(60, TimeUnit.SECONDS);
    }

    public HttpResponse execute(final HttpRequest request) throws IOException {
        switch (request.getMethod()) {
            case GET:
                return get(request);
            case POST:
                return post(request);
            default:
                throw new IllegalStateException();
{'fraction_non_alphanumeric': 0.08924843423799582, 'fraction_numerical': 0.005219206680584551, 'mean_word_length': 3.1947483588621446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1701301', 'n_tokens_mistral': 535, 'n_tokens_neox': 509, 'n_words': 115}