<commit_before>
from dev_deployment import settings

from util.exceptions import exceptionRepr
from dev_deployment.debug import jab


class ExceptionsMiddleware:
    
    def process_exception(self, r, exception):
        
        if settings.DEBUG and settings.EXCEPTION_JABBER is not None:
            jab(
                    exceptionRepr(),
                    settings.EXCEPTION_JABBER['to_account'],
                    settings.EXCEPTION_JABBER['from_account'],
                    settings.EXCEPTION_JABBER['from_password'])
        
        # return HttpResponse ===> Django returns it to browser
        # else                ===> default exception handling
        return None

<commit_msg>commented out ExceptionsMiddleware<commit_after>
from dev_deployment import settings

#from util.exceptions import exceptionRepr
#from dev_deployment.debug import jab


class ExceptionsMiddleware:
    
    def process_exception(self, r, exception):
        
        #if settings.DEBUG and settings.EXCEPTION_JABBER is not None:
        #    jab(
        #            exceptionRepr(),
        #            settings.EXCEPTION_JABBER['to_account'],
        #            settings.EXCEPTION_JABBER['from_account'],
        #            settings.EXCEPTION_JABBER['from_password'])
        
        # return HttpResponse ===> Django returns it to browser
        # else                ===> default exception handling
        return None


{'fraction_non_alphanumeric': 0.06978367062107467, 'fraction_numerical': 0.0, 'mean_word_length': 2.165562913907285, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5165001', 'n_tokens_mistral': 373, 'n_tokens_neox': 354, 'n_words': 90}