<commit_before>
class ElasticsearchClientConfigurationError(Exception):
    def __init__(self, value=None):
        self.value = value

    def __str__(self):
        if self.value:
            return repr('Invalid client configuration: {0}'.format(self.value))
        return 'Invalid client configuration'


class ElasticsearchClientNotConnectedError(Exception):
    def __str__(self):
        return 'Elasticsearch client is not connected.'<commit_msg>Added `InvalidElasticsearchOperationError` exception.<commit_after>
class ElasticsearchClientConfigurationError(Exception):
    def __init__(self, value=None):
        self.value = value

    def __str__(self):
        if self.value:
            return repr('Invalid client configuration: {0}'.format(self.value))
        return 'Invalid client configuration'


class ElasticsearchClientNotConnectedError(Exception):
    def __str__(self):
        return 'Elasticsearch client is not connected.'


class InvalidElasticsearchOperationError(Exception):
    def __init__(self, value=None):
        self.value = value

    def __str__(self):
        if self.value:
            return repr('Invalid ES backend operation: {0}'.format(self.value))
        return 'Invalid ES backend operation'
{'fraction_non_alphanumeric': 0.0894439967767929, 'fraction_numerical': 0.0024174053182917004, 'mean_word_length': 3.6343283582089554, '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': '5188999', 'n_tokens_mistral': 314, 'n_tokens_neox': 312, 'n_words': 85}