<commit_before>package Diversion::ElasticSearchConnector {
    use Moo::Role;
    use ElasticSearch;

    has elasticsearch => (
        is => "lazy",
        # isa => "ElasticSearch"
    );

    sub _build_elasticsearch {
        my ($self) = @_;
        return ElasticSearch->new( transport => "httptiny" );
    }

};

1;<commit_msg>now replace with Elastijk.<commit_after>package Diversion::ElasticSearchConnector {
    use Moo::Role;
    use Elastijk;

    has elasticsearch => (
        is => "lazy",
    );

    sub _build_elasticsearch {
        my ($self) = @_;
        return Elastijk->new(host => '127.0.0.1', port => 9200);
    }
};

1;
{'fraction_non_alphanumeric': 0.14219474497681608, 'fraction_numerical': 0.01854714064914992, 'mean_word_length': 2.4838709677419355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7235126', 'n_tokens_mistral': 223, 'n_tokens_neox': 216, 'n_words': 43}