<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = '<NAME>'

__all__ = ['NoServerAvailable',
           "QueryError",
           "NotFoundException",
           "AlreadyExistsException",
           "IndexMissingException",
           "SearchPhaseExecutionException",
           "InvalidQuery",
           "InvalidParameterQuery",
           "QueryParameterError",
           "ReplicationShardOperationFailedException",
           "ClusterBlockException",
           "ElasticSearchException",
          ]

class NoServerAvailable(Exception):
    pass


class InvalidQuery(Exception):
    pass

class InvalidParameterQuery(InvalidQuery):
    pass

class QueryError(Exception):
    pass

class QueryParameterError(Exception):
    pass


class ElasticSearchException(Exception):
    """Base class of exceptions raised as a result of parsing an error return
    from ElasticSearch.

    An exception of this class will be raised if no more specific subclass is
    appropriate.

    """
    def __init__(self, error, status=None):
        super(ElasticSearchException, self).__init__(error)
        self.status = status

class IndexMissingException(ElasticSearchException):
    pass

class NotFoundException(ElasticSearchException):
    pass

class AlreadyExistsException(ElasticSearchException):
    pass

class SearchPhaseExecutionException(ElasticSearchException):
    pass

class ReplicationShardOperationFailedException(ElasticSearchException):
    pass<commit_msg>Add the exception result object to exceptions<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = '<NAME>'

__all__ = ['NoServerAvailable',
           "QueryError",
           "NotFoundException",
           "AlreadyExistsException",
           "IndexMissingException",
           "SearchPhaseExecutionException",
           "InvalidQuery",
           "InvalidParameterQuery",
           "QueryParameterError",
           "ReplicationShardOperationFailedException",
           "ClusterBlockException",
           "ElasticSearchException",
          ]

class NoServerAvailable(Exception):
    pass


class InvalidQuery(Exception):
    pass

class InvalidParameterQuery(InvalidQuery):
    pass

class QueryError(Exception):
    pass

class QueryParameterError(Exception):
    pass


class ElasticSearchException(Exception):
    """Base class of exceptions raised as a result of parsing an error return
    from ElasticSearch.

    An exception of this class will be raised if no more specific subclass is
    appropriate.

    """
    def __init__(self, error, status=None, result=None):
        super(ElasticSearchException, self).__init__(error)
        self.status = status
        self.result = result

class IndexMissingException(ElasticSearchException):
    pass

class NotFoundException(ElasticSearchException):
    pass

class AlreadyExistsException(ElasticSearchException):
    pass

class SearchPhaseExecutionException(ElasticSearchException):
    pass

class ReplicationShardOperationFailedException(ElasticSearchException):
    pass
{'fraction_non_alphanumeric': 0.07732634338138926, 'fraction_numerical': 0.000655307994757536, 'mean_word_length': 3.411849710982659, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7615454', 'n_tokens_mistral': 756, 'n_tokens_neox': 737, 'n_words': 186}