<commit_before>import unittest2

from models.event import Event
from helpers.event_helper import EventHelper

class TestUsfirstEventTypeParser(unittest2.TestCase):
    def test_parse(self):
        self.assertEqual(EventHelper.parseEventType("Regional"), Event.REGIONAL)
        self.assertEqual(EventHelper.parseEventType("regional"), Event.REGIONAL)
        
        self.assertEqual(EventHelper.parseEventType("District"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("district"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("MI District"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("District Event"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("Qualifying Event"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("Qualifier"), Event.DISTRICT)
        
        self.assertEqual(EventHelper.parseEventType("District Championship"), Event.DISTRICT_CMP)
        self.assertEqual(EventHelper.parseEventType("MI FRC State Championship"), Event.DISTRICT_CMP)
        self.assertEqual(EventHelper.parseEventType("Qualifying Championship"), Event.DISTRICT_CMP)
        
        self.assertEqual(EventHelper.parseEventType("Championship Division"), Event.CMP_DIVISION)
        self.assertEqual(EventHelper.parseEventType("Division"), Event.CMP_DIVISION)
        
        self.assertEqual(EventHelper.parseEventType("Championship Finals"), Event.CMP_FINALS)
        self.assertEqual(EventHelper.parseEventType("Championship"), Event.CMP_FINALS)<commit_msg>add offseason event type test<commit_after>import unittest2

from models.event import Event
from helpers.event_helper import EventHelper

class TestUsfirstEventTypeParser(unittest2.TestCase):
    def test_parse(self):
        self.assertEqual(EventHelper.parseEventType("Regional"), Event.REGIONAL)
        self.assertEqual(EventHelper.parseEventType("regional"), Event.REGIONAL)
        
        self.assertEqual(EventHelper.parseEventType("District"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("district"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("MI District"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("District Event"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("Qualifying Event"), Event.DISTRICT)
        self.assertEqual(EventHelper.parseEventType("Qualifier"), Event.DISTRICT)
        
        self.assertEqual(EventHelper.parseEventType("District Championship"), Event.DISTRICT_CMP)
        self.assertEqual(EventHelper.parseEventType("MI FRC State Championship"), Event.DISTRICT_CMP)
        self.assertEqual(EventHelper.parseEventType("Qualifying Championship"), Event.DISTRICT_CMP)
        
        self.assertEqual(EventHelper.parseEventType("Championship Division"), Event.CMP_DIVISION)
        self.assertEqual(EventHelper.parseEventType("Division"), Event.CMP_DIVISION)
        
        self.assertEqual(EventHelper.parseEventType("Championship Finals"), Event.CMP_FINALS)
        self.assertEqual(EventHelper.parseEventType("Championship"), Event.CMP_FINALS)
        
        self.assertEqual(EventHelper.parseEventType("Offseason"), Event.OFFSEASON)

{'fraction_non_alphanumeric': 0.10299105766265804, 'fraction_numerical': 0.0012334258402713536, 'mean_word_length': 4.855595667870036, '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': '3818640', 'n_tokens_mistral': 878, 'n_tokens_neox': 845, 'n_words': 113}