<commit_before>from clint.textui import colored


class DatacatsError(Exception):

    def __init__(self, message, format_args=(), parent_exception=None):
        self.message = message
        if parent_exception:
            self.message  += '\n\n' + '~' * 30 + \
                "\nTechnical Details:\n" + \
                parent_exception.__str__() + \
                '~' * 30  + '\n'
        self.format_args = format_args
        super(DatacatsError, self).__init__(message, format_args)

    def __str__(self):
        return self.message.format(*self.format_args)

    def pretty_print(self):
        """
        Print the error message to stdout with colors and borders
        """
        print colored.blue("-" * 40)
        print colored.red("DataCats: problem was encountered:")
        for line in self.message.format(*self.format_args).split('\n'):
            print "  ", line
        print colored.blue("-" * 40)
<commit_msg>Fix capitalization of datacats to match command name.<commit_after>from clint.textui import colored


class DatacatsError(Exception):

    def __init__(self, message, format_args=(), parent_exception=None):
        self.message = message
        if parent_exception:
            self.message  += '\n\n' + '~' * 30 + \
                "\nTechnical Details:\n" + \
                parent_exception.__str__() + \
                '~' * 30  + '\n'
        self.format_args = format_args
        super(DatacatsError, self).__init__(message, format_args)

    def __str__(self):
        return self.message.format(*self.format_args)

    def pretty_print(self):
        """
        Print the error message to stdout with colors and borders
        """
        print colored.blue("-" * 40)
        print colored.red("datacats: problem was encountered:")
        for line in self.message.format(*self.format_args).split('\n'):
            print "  ", line
        print colored.blue("-" * 40)

{'fraction_non_alphanumeric': 0.1229253112033195, 'fraction_numerical': 0.008298755186721992, 'mean_word_length': 2.199004975124378, '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': '63318', 'n_tokens_mistral': 573, 'n_tokens_neox': 540, 'n_words': 129}