<commit_before>import json

from django.test import TestCase, Client

# Create your tests here.

from login.models import myuser

from rest_framework.authtoken.models import Token


class APITestCase(TestCase):
    test_schema = 'schema1'
    test_table = 'population2'

    @classmethod
    def setUpClass(cls):
        super(APITestCase, cls).setUpClass()
        cls.user = myuser.objects.create(name='MrTest')
        cls.user.save()
        cls.token = Token.objects.get(user=cls.user)
        cls.client = Client()


    def assertDictEqualKeywise(self, d1, d2, excluded=None):
        if not excluded:
            excluded = []
<commit_msg>Add another user for permission testing<commit_after>import json

from django.test import TestCase, Client

# Create your tests here.

from login.models import myuser

from rest_framework.authtoken.models import Token


class APITestCase(TestCase):
    test_schema = 'schema1'
    test_table = 'population2'

    @classmethod
    def setUpClass(cls):
        super(APITestCase, cls).setUpClass()
        cls.user = myuser.objects.create(name='MrTest', mail_address='<EMAIL>')
        cls.user.save()
        cls.token = Token.objects.get(user=cls.user)

        cls.other_user = myuser.objects.create(name='NotMrTest', mail_address='<EMAIL>')
        cls.other_user.save()
        cls.other_token = Token.objects.get(user=cls.other_user)

        cls.client = Client()


    def assertDictEqualKeywise(self, d1, d2, excluded=None):
        if not excluded:
            excluded = []

{'fraction_non_alphanumeric': 0.1065359477124183, 'fraction_numerical': 0.00522875816993464, 'mean_word_length': 3.160326086956522, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4513968', 'n_tokens_mistral': 481, 'n_tokens_neox': 472, 'n_words': 104}