<commit_before>from __future__ import division
from common import *

from secret_settings import OBFUSCATION_KEY, AWS_ACCESS_KEY_ID, AWS_SECRET_KEY

DEV_BOX = True

EARLY_BADGE_PRICE = 40
LATE_BADGE_PRICE  = 45
DOOR_BADGE_PRICE  = 55

EARLY_GROUP_PRICE = 30
LATE_GROUP_PRICE  = 35

class State:
    SEND_EMAILS = True
    AUTO_EMAILS = False
    
    AT_THE_CON = False
    POST_CON = False
    UBER_SHUT_DOWN = False
    HIDE_SCHEDULE = True
    
    PREREG_CLOSED = False
    PREREG_NOT_OPEN_YET = True
    SUP_REG_OPEN = True
    GROUP_REG_OPEN = True
    DEALER_REG_OPEN = True
    ETCHED_BADGES_ORDERED = False
    
    STAFFERS_IMPORTED  = datetime(2012, 5, 29)
    SHIFTS_CREATED     = datetime(2012, 10, 1)
    PRICE_BUMP         = datetime(2012, 10, 31, 23, 59)
    DEALER_PAYMENT_DUE = datetime(2012, 11, 30, 23, 59)
    UBER_TAKEDOWN      = datetime(2013, 12, 30, 23, 59)
    EPOCH              = datetime(2013, 1, 3, 10)
    ESCHATON           = datetime(2013, 1, 6, 22)
    
    PATH     = "/magfest"
    HOSTNAME = "magfestubersystem.com"
    
    @property
    def URL_BASE(self):
        return "http://" + self.HOSTNAME + self.PATH
    
    @property
    def BADGE_PRICE(self):
        if datetime.now() < self.PRICE_BUMP:
            return EARLY_BADGE_PRICE
        elif state.AT_THE_CON:
            return DOOR_BADGE_PRICE
        else:
            return LATE_BADGE_PRICE
    
    @property
    def GROUP_PRICE(self):
        if datetime.now() < state.PRICE_BUMP:
            return EARLY_GROUP_PRICE
        else:<commit_msg>changed dealer reg open to a date-triggered property instead of a boolean field<commit_after>from __future__ import division
from common import *

from secret_settings import OBFUSCATION_KEY, AWS_ACCESS_KEY_ID, AWS_SECRET_KEY

DEV_BOX = True

EARLY_BADGE_PRICE = 40
LATE_BADGE_PRICE  = 45
DOOR_BADGE_PRICE  = 55

EARLY_GROUP_PRICE = 30
LATE_GROUP_PRICE  = 35

class State:
    SEND_EMAILS = True
    AUTO_EMAILS = False
    
    AT_THE_CON = False
    POST_CON = False
    UBER_SHUT_DOWN = False
    HIDE_SCHEDULE = True
    
    PREREG_CLOSED = False
    PREREG_NOT_OPEN_YET = True
    SUP_REG_OPEN = True
    GROUP_REG_OPEN = True
    DEALER_REG_OPEN = True
    ETCHED_BADGES_ORDERED = False
    
    STAFFERS_IMPORTED  = datetime(2012,  5, 29)
    SHIFTS_CREATED     = datetime(2012, 10,  1)
    PRICE_BUMP         = datetime(2012, 10, 31, 23, 59)
    DEALER_REG_START   = datetime(2012,  7, 27, 11, 59)
    DEALER_PAYMENT_DUE = datetime(2012, 11, 30, 23, 59)
    UBER_TAKEDOWN      = datetime(2013, 12, 30, 23, 59)
    EPOCH              = datetime(2013,  1,  3, 10)
    ESCHATON           = datetime(2013,  1,  6, 22)
    
    PATH     = "/magfest"
    HOSTNAME = "mag<EMAIL>.<EMAIL>"
    
    @property
    def URL_BASE(self):
        return "http://" + self.HOSTNAME + self.PATH
    
    @property
    def DEALER_REG_OPEN(self):
        return datetime.now() > self.DEALER_REG_START
    
    @property
    def BADGE_PRICE(self):
        if datetime.now() < self.PRICE_BUMP:
            return EARLY_BADGE_PRICE
        elif state.AT_THE_CON:
            return DOOR_BADGE_PRICE
        else:
            return LATE_BADGE_PRICE
    
    @property
    def GROUP_PRICE(self):
        if datetime.now() < state.PRICE_BUMP:
            return EARLY_GROUP_PRICE
        else:
{'fraction_non_alphanumeric': 0.07428571428571429, 'fraction_numerical': 0.04902255639097745, 'mean_word_length': 2.4077868852459017, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 6, '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': '4571577', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1243, 'n_words': 267}