<commit_before>package jp.toastkid.yobidashi.libs.network

import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

/**
 * Common HTTP client factory.
 *
 * @author toastkidjp
 */
object HttpClientFactory {

    fun withTimeout(seconds: Long): OkHttpClient =
            OkHttpClient.Builder()
                    .cookieJar(WebViewCookieHandler)
                    .connectTimeout(seconds, TimeUnit.SECONDS)
                    .readTimeout(seconds, TimeUnit.SECONDS)
                    .writeTimeout(seconds, TimeUnit.SECONDS)
                    .build()
}<commit_msg>refactor #433 Modify usage.<commit_after>package jp.toastkid.yobidashi.libs.network

import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

/**
 * Common HTTP client factory.
 *
 * @author toastkidjp
 */
object HttpClientFactory {

    fun withTimeout(seconds: Long): OkHttpClient =
            OkHttpClient.Builder()
                    .cookieJar(WebViewCookieHandler())
                    .connectTimeout(seconds, TimeUnit.SECONDS)
                    .readTimeout(seconds, TimeUnit.SECONDS)
                    .writeTimeout(seconds, TimeUnit.SECONDS)
                    .build()
}
{'fraction_non_alphanumeric': 0.09152542372881356, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 2.2896935933147633, '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': '6891149', 'n_tokens_mistral': 343, 'n_tokens_neox': 319, 'n_words': 57}