<commit_before>class ObjectNotFound(Exception):
    """ Base exception for queries returning no result. """

    object_type = 'Object'

    def __init__(self, **args):
        self.args = args

    def __unicode__(self):
        attribute_list = [u'%s=%s' % (arg.key, arg.value) for arg in self.args]
        attributes = u', '.join(attribute_list)

        return u'%s not found with query attributes %s' % (
            self.object_type, attributes
        )


class NodeNotFound(ObjectNotFound):
    """ Exception raised when a queried node could not be found. """
    object_type = 'Node'<commit_msg>Added forgotten EdgeNotFound.<commit_after>class ObjectNotFound(Exception):
    """ Base exception for queries returning no result. """

    object_type = 'Object'

    def __init__(self, **args):
        self.args = args

    def __unicode__(self):
        attribute_list = [u'%s=%s' % (arg.key, arg.value) for arg in self.args]
        attributes = u', '.join(attribute_list)

        return u'%s not found with query attributes %s' % (
            self.object_type, attributes
        )


class NodeNotFound(ObjectNotFound):
    """ Exception raised when a queried node could not be found. """
    object_type = 'Node'


class EdgeNotFound(ObjectNotFound):
    """ Exception raised when a queried edge could not be found. """
    object_type = 'Edge'
{'fraction_non_alphanumeric': 0.11487481590574374, 'fraction_numerical': 0.0, 'mean_word_length': 2.973684210526316, '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': '1037780', 'n_tokens_mistral': 387, 'n_tokens_neox': 373, 'n_words': 121}