<commit_before>from django.conf.urls import url
from django.http import HttpResponse
from django.views import View
from request_logging.decorators import no_logging


class TestView(View):
    @no_logging()
    def post(self, request):
        return HttpResponse(status=200)


@no_logging()
def view_func(request):
    return HttpResponse(status=200)


@no_logging('Custom message')
def view_msg(request):
    return HttpResponse(status=200)


urlpatterns = [
    url(r'^test_class$', TestView.as_view()),
    url(r'^test_func$', view_func),
    url(r'^test_msg$', view_msg),
]
<commit_msg>Proves non-empty response bodies are logged<commit_after>from django.conf.urls import url
from django.http import HttpResponse
from django.views import View
from request_logging.decorators import no_logging


class TestView(View):
    @no_logging()
    def post(self, request):
        return HttpResponse(status=200)


@no_logging()
def view_func(request):
    return HttpResponse(status=200, "view_func with no logging")


@no_logging('Custom message')
def view_msg(request):
    return HttpResponse(status=200, "view_msg with no logging with a custom reason why")


urlpatterns = [
    url(r'^test_class$', TestView.as_view()),
    url(r'^test_func$', view_func),
    url(r'^test_msg$', view_msg),
]

{'fraction_non_alphanumeric': 0.1151468315301391, 'fraction_numerical': 0.013910355486862442, 'mean_word_length': 5.166666666666667, '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': '5672543', 'n_tokens_mistral': 432, 'n_tokens_neox': 407, 'n_words': 102}