<commit_before>from django.test import TestCase
from django.contrib.auth.models import User
from django.core import serializers
from django.utils import timezone
#from demoapp.models import DatetimeModel


class SimpleTest(TestCase):
    fixtures = ["test_data.json"]

    def test_serialization(self):
        user = User.objects.all()[0]
        user.last_joined = timezone.now()
        user.save()

        msgpack_serializer = serializers.get_serializer("msgpack")()
        data = msgpack_serializer.serialize([user])
        objs = [i for i in serializers.deserialize('msgpack', data)]
        self.assertEqual(objs[0].object, user)
<commit_msg>removed spurious comment<commit_after>from django.test import TestCase
from django.contrib.auth.models import User
from django.core import serializers
from django.utils import timezone


class SimpleTest(TestCase):
    fixtures = ["test_data.json"]

    def test_serialization(self):
        user = User.objects.all()[0]
        user.last_joined = timezone.now()
        user.save()

        msgpack_serializer = serializers.get_serializer("msgpack")()
        data = msgpack_serializer.serialize([user])
        objs = [i for i in serializers.deserialize('msgpack', data)]
        self.assertEqual(objs[0].object, user)

{'fraction_non_alphanumeric': 0.10526315789473684, 'fraction_numerical': 0.003142183817753339, 'mean_word_length': 3.7185185185185183, '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': '5258613', 'n_tokens_mistral': 369, 'n_tokens_neox': 364, 'n_words': 86}