<commit_before># Build paths inside the project like this: os.path.join(BASE_DIR, ...)
from datetime import timedelta
import os
import sys
from django.utils.translation import ugettext_lazy as _
import dj_database_url

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]

SITE_ID = 1
SITE_DOMAIN = os.environ.get("DOMAIN", os.environ.get("SITE_DOMAIN", "127.0.0.1:8000"))
SITE_DOMAIN_WITH_PROTOCOL = "https://" + SITE_DOMAIN

SITE_THEMES = {
    'florida': {
        "HASHTAG": u"FLOpenDebate",
        "HEADER_TITLE": _(u"WELCOME TO THE\nFLORIDA OPEN DEBATE"),
        "HEADER_COPY": _(
            u"Ask <NAME> and <NAME> about the issues that are most important "
            "to you -- then vote and tell others! Watch the Florida Open Debate for U.S. "
            "Senate on [TBD] or right here on Monday, April 25, at 8:00 pm EDT. All questions "
            "will be chosen from among those that receive the most votes online."),
        "TWITTER_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_TW-1024x512-FODUrl.png",
        "TWITTER_SITE_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_SITE_TITLE":
            u"U.S. Senate candidates answer YOUR questions!",
        "TWITTER_SITE_DESCRIPTION":
            u"Mon 4/25 @8pm EDT on [TBD]: Voters set the agenda for groundbreaking #OpenDebate. "
            "Submit & vote here!",
        "TWITTER_QUESTION_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_QUESTION_TITLE":
            u"Click here to vote on this question for U.S. Senate candidates to answer at "
            "the #OpenDebate in Florida!",
        "TWITTER_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, '
            'Progressive Change Institute',

        "FACEBOOK_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_FB-1200x717-FODUrl.png",
        "FACEBOOK_SITE_TITLE":
            u"HISTORIC: Florida U.S. Senate Candidates answer YOUR top-voted questions!",
        "FACEBOOK_SITE_DESCRIPTION":
            u"Groundbreaking bottom-up #OpenDebate to take place Mon 4/25 @7pm EDT, hosted "
            "by Open Debate Coalition, Progressive Change Institute, & [MEDIA PARTNER]. All "
            "questions will be chosen from top vote-getters online. Submit & vote here!",
        "FACEBOOK_QUESTION_TITLE":
            u'Click here to vote on this question for U.S. Senate candidates to answer at the '
            '#OpenDebate in Florida!',
        "FACEBOOK_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, Progressive '
            'Change Institute',
    },
    'testing': {  # Presidential Debate
        "HASHTAG": "DemOpenForum",
        "HEADER_TITLE": _("WELCOME TO THE\nDEMOCRATIC OPEN FORUM"),
        "HEADER_COPY": _(
            u"Ask <NAME> and <NAME> about the issues that are most important "
            "to you -- then vote and tell others! Watch the Democratic Open Forum on CNN "
            "or right here on Monday, April 25, at 8:00 pm EDT. All questions will be chosen from "
            "among those that receive the most votes online."),

        # FIXME: Twitter & Facebook settings for Presidential debate
        "TWITTER_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_TW-1024x512-FODUrl.png",
        "TWITTER_SITE_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_SITE_TITLE":
            u"U.S. Senate candidates answer YOUR questions!",
        "TWITTER_SITE_DESCRIPTION":
            u"Mon 4/25 @8pm EDT on [TBD]: Voters set the agenda for groundbreaking #OpenDebate. "
            "Submit & vote here!",
        "TWITTER_QUESTION_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_QUESTION_TITLE":
            u"Click here to vote on this question for U.S. Senate candidates to answer at "
            "the #OpenDebate in Florida!",
        "TWITTER_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, '
            'Progressive Change Institute',

        "FACEBOOK_IMAGE":
            u"https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_FB-1200x717-FODUrl.png",
        "FACEBOOK_SITE_TITLE":
            u"HISTORIC: Florida U.S. Senate Candidates answer YOUR top-voted questions!",
        "FACEBOOK_SITE_DESCRIPTION":
            u"Groundbreaking bottom-up #OpenDebate to take place Mon 4/25 @7pm EDT, hosted "
            "by Open Debate Coalition, Progressive Change Institute, & [MEDIA PARTNER]. All "
            "questions will be chosen from top vote-getters online. Submit & vote here!",
        "FACEBOOK_QUESTION_TITLE":
            u'Click here to vote on this question for U.S. Senate candidates to answer at the '
            '#OpenDebate in Florida!',
        "FACEBOOK_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, Progressive '
            'Change Institute',
    },
}
SITE_THEME_NAME = 'florida'
SITE_THEME = SITE_THEMES[SITE_THEME_NAME]
# SITE_THEME_NAME and SITE_THEME get overriden in local_settings

# SECRET_KEY is overriden in deploy settings
SECRET_KEY = 'secret-key-for-local-use-only'

TEST = 'test' in sys.argv
if TEST:
    # https://docs.djangoproject.com/en/1.8/topics/testing/overview/#other-test-conditions
    # DEBUG is False for tests no matter what we set, so set it up properly for
    # use later in this file
    DEBUG = False
else:
    DEBUG = 'DJANGO_DEBUG' in os.environ<commit_msg>Themed text is now unicode, so it can be formatted with text from models safely. (2)<commit_after># Build paths inside the project like this: os.path.join(BASE_DIR, ...)
from datetime import timedelta
import os
import sys
from django.utils.translation import ugettext_lazy as _
import dj_database_url

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
FIXTURE_DIRS = [os.path.join(BASE_DIR, 'fixtures')]

SITE_ID = 1
SITE_DOMAIN = os.environ.get("DOMAIN", os.environ.get("SITE_DOMAIN", "127.0.0.1:8000"))
SITE_DOMAIN_WITH_PROTOCOL = "https://" + SITE_DOMAIN

SITE_THEMES = {
    'florida': {
        "HASHTAG": u"FLOpenDebate",
        "HEADER_TITLE": _(u"WELCOME TO THE\nFLORIDA OPEN DEBATE"),
        "HEADER_COPY": _(
            u"Ask <NAME> and <NAME> about the issues that are most important "
            "to you -- then vote and tell others! Watch the Florida Open Debate for U.S. "
            "Senate on [TBD] or right here on Monday, April 25, at 8:00 pm EDT. All questions "
            "will be chosen from among those that receive the most votes online."),
        "TWITTER_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_TW-1024x512-FODUrl.png",
        "TWITTER_SITE_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_SITE_TITLE":
            u"U.S. Senate candidates answer YOUR questions!",
        "TWITTER_SITE_DESCRIPTION":
            u"Mon 4/25 @8pm EDT on [TBD]: Voters set the agenda for groundbreaking #OpenDebate. "
            "Submit & vote here!",
        "TWITTER_QUESTION_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_QUESTION_TITLE":
            u"Click here to vote on this question for U.S. Senate candidates to answer at "
            "the #OpenDebate in Florida!",
        "TWITTER_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, '
            'Progressive Change Institute',

        "FACEBOOK_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_FB-1200x717-FODUrl.png",
        "FACEBOOK_SITE_TITLE":
            u"HISTORIC: Florida U.S. Senate Candidates answer YOUR top-voted questions!",
        "FACEBOOK_SITE_DESCRIPTION":
            u"Groundbreaking bottom-up #OpenDebate to take place Mon 4/25 @7pm EDT, hosted "
            "by Open Debate Coalition, Progressive Change Institute, & [MEDIA PARTNER]. All "
            "questions will be chosen from top vote-getters online. Submit & vote here!",
        "FACEBOOK_QUESTION_TITLE":
            u'Click here to vote on this question for U.S. Senate candidates to answer at the '
            '#OpenDebate in Florida!',
        "FACEBOOK_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, Progressive '
            'Change Institute',
    },
    'testing': {  # Presidential Debate
        "HASHTAG": "DemOpenForum",
        "HEADER_TITLE": _("WELCOME TO THE\nDEMOCRATIC OPEN FORUM"),
        "HEADER_COPY": _(
            u"Ask <NAME> and <NAME> about the issues that are most important "
            "to you -- then vote and tell others! Watch the Democratic Open Forum on CNN "
            "or right here on Monday, April 25, at 8:00 pm EDT. All questions will be chosen from "
            "among those that receive the most votes online."),

        # FIXME: Twitter & Facebook settings for Presidential debate
        "TWITTER_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_TW-1024x512-FODUrl.png",
        "TWITTER_SITE_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_SITE_TITLE":
            u"U.S. Senate candidates answer YOUR questions!",
        "TWITTER_SITE_DESCRIPTION":
            u"Mon 4/25 @8pm EDT on [TBD]: Voters set the agenda for groundbreaking #OpenDebate. "
            "Submit & vote here!",
        "TWITTER_QUESTION_TEXT":
            u"Submit & vote on questions for FL-Sen #OpenDebate between @DavidJollyFL "
            "& @AlanGrayson hosted by Open Debate Coalition, Progressive Change Inst.",
        "TWITTER_QUESTION_TITLE":
            u"Click here to vote on this question for U.S. Senate candidates to answer at "
            "the #OpenDebate in Florida!",
        "TWITTER_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, <NAME> answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, '
            'Progressive Change Institute',

        "FACEBOOK_IMAGE":
            "https://s3.amazonaws.com/s3.boldprogressives.org/images/"
            "OpenDebates_VOTE-NOW_FB-1200x717-FODUrl.png",
        "FACEBOOK_SITE_TITLE":
            u"HISTORIC: Florida U.S. Senate Candidates answer YOUR top-voted questions!",
        "FACEBOOK_SITE_DESCRIPTION":
            u"Groundbreaking bottom-up #OpenDebate to take place Mon 4/25 @7pm EDT, hosted "
            "by Open Debate Coalition, Progressive Change Institute, & [MEDIA PARTNER]. All "
            "questions will be chosen from top vote-getters online. Submit & vote here!",
        "FACEBOOK_QUESTION_TITLE":
            u'Click here to vote on this question for U.S. Senate candidates to answer at the '
            '#OpenDebate in Florida!',
        "FACEBOOK_QUESTION_DESCRIPTION":
            u'"{idea}" At 8pm EDT on 4/25, Jolly & Grayson answer top vote-getting questions '
            'at bottom-up #OpenDebate hosted by [TBD], Open Debate Coalition, Progressive '
            'Change Institute',
    },
}
SITE_THEME_NAME = 'florida'
SITE_THEME = SITE_THEMES[SITE_THEME_NAME]
# SITE_THEME_NAME and SITE_THEME get overriden in local_settings

# SECRET_KEY is overriden in deploy settings
SECRET_KEY = 'secret-key-for-local-use-only'

TEST = 'test' in sys.argv
if TEST:
    # https://docs.djangoproject.com/en/1.8/topics/testing/overview/#other-test-conditions
    # DEBUG is False for tests no matter what we set, so set it up properly for
    # use later in this file
    DEBUG = False
else:
    DEBUG = 'DJANGO_DEBUG' in os.environ
{'fraction_non_alphanumeric': 0.09520624303233, 'fraction_numerical': 0.013600891861761426, 'mean_word_length': 2.62207267833109, 'pattern_counts': {'":': 60, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7114242', 'n_tokens_mistral': 4445, 'n_tokens_neox': 4102, 'n_words': 1259}