<commit_before>from django.shortcuts import *


def error404(request):
    return render_to_response('error.html',
                              {'id': 'SIGSEGV: page_out_of_bounds',
                               'description': 'bad page "%s"' % request.path,
                               'code': 404},
                              context_instance=RequestContext(request))


def error403(request):
    return render_to_response('error.html',
                              {'id': 'SIGINT: unautharized_access',
                               'description': 'bad page "%s"' % request.path,
                               'code': 403},
                              context_instance=RequestContext(request))


def error500(request):
    return render_to_response('error.html',
                              {'id': 'SIGILL: invalid_state',
                               'description': 'bad page "%s"' % request.path,
                               'code': 500},
                              context_instance=RequestContext(request))<commit_msg>Fancy error view<commit_after>from django.shortcuts import *


def error404(request):
    return render_to_response('error.html',
                              {'id': 'page_out_of_bounds',
                               'description': 'bad page "%s"' % request.path,
                               'code': 404},
                              context_instance=RequestContext(request))


def error403(request):
    return render_to_response('error.html',
                              {'id': 'unauthorized_access',
                               'description': 'no permission for "%s"' % request.path,
                               'code': 403},
                              context_instance=RequestContext(request))


def error500(request):
    return render_to_response('error.html',
                              {'id': 'invalid_state',
                               'description': 'corrupt page "%s"' % request.path,
                               'code': 500},
                              context_instance=RequestContext(request))
{'fraction_non_alphanumeric': 0.10695443645083932, 'fraction_numerical': 0.017266187050359712, 'mean_word_length': 1.3570621468926554, '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': '1637822', 'n_tokens_mistral': 517, 'n_tokens_neox': 477, 'n_words': 95}