<commit_before>package app.visual.log.batch.es

import app.visual.log.config.AppConfig
import org.elasticsearch.client.transport.TransportClient
import org.elasticsearch.common.settings.Settings
import org.elasticsearch.transport.client.PreBuiltTransportClient

/**
 * Elasticsearch接続クライアントクラスです。
 */
class ElasticsearchClient(
        val appConfig: AppConfig
): PreBuiltTransportClient(settings:Settings) {
    
    init {
settings = Settings.builder().put("cluster.name", appConfig.elasticsearch.clusterName).build()
        super(settings)
    }
}<commit_msg>ビルドエラー解消<commit_after>package app.visual.log.batch.es

import app.visual.log.config.AppConfig
import org.elasticsearch.common.settings.Settings
import org.elasticsearch.common.transport.InetSocketTransportAddress
import org.elasticsearch.transport.client.PreBuiltTransportClient
import org.springframework.stereotype.Component
import java.net.InetAddress

/**
 * Elasticsearch接続クライアントクラスです。
 */
@Component
class ElasticsearchClient(
        val appConfig: AppConfig
) : PreBuiltTransportClient(Settings.EMPTY) {

    init {
        addTransportAddress(InetSocketTransportAddress(InetAddress.getByName(appConfig.elasticsearch.transportHost), appConfig.elasticsearch.transportPort))
    }
}
{'fraction_non_alphanumeric': 0.09432454036770584, 'fraction_numerical': 0.0, 'mean_word_length': 5.695187165775401, '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': '1694601', 'n_tokens_mistral': 358, 'n_tokens_neox': 365, 'n_words': 47}