<commit_before>from google.appengine.ext import ndb
import datetime
import json
import logging
import re
from consts.event_type import EventType


class Event(ndb.Model):
    """
    Events represent FIRST Robotics Competition events, both official and unofficial.
    key_name is like '2010ct'
    """
    name = ndb.StringProperty()
    event_type = ndb.StringProperty(indexed=False) # From USFIRST, depreciated
    event_type_enum = ndb.IntegerProperty()
    short_name = ndb.StringProperty(indexed=False) # Should not contain "Regional" or "Division", like "Hartford"
    event_short = ndb.StringProperty(required=True, indexed=False) # Smaller abbreviation like "CT"
    year = ndb.IntegerProperty(required=True)
    start_date = ndb.DateTimeProperty()
    end_date = ndb.DateTimeProperty()
    venue = ndb.StringProperty(indexed=False)
    venue_address = ndb.StringProperty(indexed=False) # We can scrape this.
    location = ndb.StringProperty(indexed=False)
    official = ndb.BooleanProperty(default=False) # Is the event FIRST-official?
    first_eid = ndb.StringProperty() #from USFIRST<commit_msg>remove depreciated event_type. helps #660<commit_after>from google.appengine.ext import ndb
import datetime
import json
import logging
import re
from consts.event_type import EventType


class Event(ndb.Model):
    """
    Events represent FIRST Robotics Competition events, both official and unofficial.
    key_name is like '2010ct'
    """
    name = ndb.StringProperty()
    event_type_enum = ndb.IntegerProperty()
    short_name = ndb.StringProperty(indexed=False) # Should not contain "Regional" or "Division", like "Hartford"
    event_short = ndb.StringProperty(required=True, indexed=False) # Smaller abbreviation like "CT"
    year = ndb.IntegerProperty(required=True)
    start_date = ndb.DateTimeProperty()
    end_date = ndb.DateTimeProperty()
    venue = ndb.StringProperty(indexed=False)
    venue_address = ndb.StringProperty(indexed=False) # We can scrape this.
    location = ndb.StringProperty(indexed=False)
    official = ndb.BooleanProperty(default=False) # Is the event FIRST-official?
    first_eid = ndb.StringProperty() #from USFIRST
{'fraction_non_alphanumeric': 0.09082526509912402, 'fraction_numerical': 0.005071461502996773, 'mean_word_length': 4.7105263157894735, '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': '6294406', 'n_tokens_mistral': 681, 'n_tokens_neox': 635, 'n_words': 166}