<commit_before># -*- encoding: utf-8 -*-
# ! python2

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

"""Tests for django-custom-500's decorators"""

import unittest
import requests
from django.test import TestCase, LiveServerTestCase


class NormalViewTestCase(TestCase):
    def test_normal_view(self):
        ok_response = self.client.get('/normal-view-that-returns-data')

        self.assertTrue('42' in ok_response.content)

<commit_msg>Fix for 3.3 and 3.4<commit_after># -*- encoding: utf-8 -*-
# ! python2

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

"""Tests for django-custom-500's decorators"""

import unittest
import requests
from django.test import TestCase, LiveServerTestCase


class NormalViewTestCase(TestCase):
    def test_normal_view(self):
        ok_response = self.client.get('/normal-view-that-returns-data')

        self.assertIn('42', ok_response.content)


{'fraction_non_alphanumeric': 0.09805825242718447, 'fraction_numerical': 0.017475728155339806, 'mean_word_length': 4.727777777777778, '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': '2398414', 'n_tokens_mistral': 311, 'n_tokens_neox': 294, 'n_words': 79}