<commit_before>
import datetime
from django.test import TestCase
from django.core.exceptions import (ValidationError, NON_FIELD_ERRORS)

from .models import Organizer, Event

TODAY = datetime.date.today()
YESTERDAY = TODAY - datetime.timedelta(days=1)
TOMORROW = TODAY + datetime.timedelta(days=1)


class EventTestCase(TestCase):
    def setUp(self):
        self.active = Organizer(name='Active')
        self.active.save()
        self.inactive = Organizer(name='In Active', is_active=False)
        self.inactive.save()
<commit_msg>Invoke model system check in tests.<commit_after>
import datetime
from django.test import TestCase
from django.core.exceptions import (ValidationError, NON_FIELD_ERRORS)

from .models import Organizer, Event

TODAY = datetime.date.today()
YESTERDAY = TODAY - datetime.timedelta(days=1)
TOMORROW = TODAY + datetime.timedelta(days=1)


class EventTestCase(TestCase):
    def setUp(self):
        self.active = Organizer(name='Active')
        self.active.save()
        self.inactive = Organizer(name='In Active', is_active=False)
        self.inactive.save()

    def test_model_check(self):
        self.assertEqual(Event.check(), [])

{'fraction_non_alphanumeric': 0.11016225448334757, 'fraction_numerical': 0.0034158838599487617, 'mean_word_length': 4.232142857142857, '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': '6296584', 'n_tokens_mistral': 372, 'n_tokens_neox': 356, 'n_words': 82}