<commit_before>class MambuAPIException(Exception):
    def __init__(self, message, code, status):
        msg = message + ', code: ' + str(code) + ', return code: ' + str(status['returnCode']) + ', return status: ' + str(status['returnStatus'])
        if 'errorSource' in status:
            msg += ', source: ' + str(status['errorSource'])
            self.error_source = status['errorSource']
            
        super(MambuAPIException, self).__init__(msg)
        self.code = code<commit_msg>Reformatted MambuException<commit_after>class MambuAPIException(Exception):
    def __init__(self, message, code, status):
        msg = '{}, code: {}, return code: {}, return status: {}'.format(
            message, code, status.get('returnCode', ''),
            status.get('returnStatus', ''))
        if 'errorSource' in status:
            msg += ', source: ' + str(status['errorSource'])
            self.error_source = status['errorSource']
            
        super(MambuAPIException, self).__init__(msg)
        self.code = code
{'fraction_non_alphanumeric': 0.15057915057915058, 'fraction_numerical': 0.0, 'mean_word_length': 2.8265682656826567, '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': '1955691', 'n_tokens_mistral': 288, 'n_tokens_neox': 287, 'n_words': 61}