<commit_before>import os
import os.path
import json
import dj_database_url
import dotenv
from .base import *

dotenv.read_dotenv(os.path.join(ROOT_DIR, '.env'))

ALLOWED_HOSTS = ['*']
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

DEBUG = os.environ.get('DJANGO_DEBUG', 'True') == 'True'
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

DATABASES = {
    'default': dj_database_url.config(default='postgres://flash:password@127.0.0.1:5432/flash')
}

MEDIA_STORE_BACKEND = os.environ.get("MEDIA_STORE_BACKEND")
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", None)
AWS_ACCESS_SECRET_KEY = os.environ.get("AWS_ACCESS_SECRET_KEY", None)
AWS_S3_BUCKET  = os.environ.get("AWS_S3_BUCKET", None)

LIT_OAUTH_CREDENTIALS = {}
if os.environ.get('LTI_OAUTH_CREDENTIALS', None):
    LTI_OAUTH_CREDENTIALS = json.loads(os.environ.get('LTI_OAUTH_CREDENTIALS'))
<commit_msg>modified static_root for heroku<commit_after>import os
import os.path
import json
import dj_database_url
import dotenv
from .base import *

dotenv.read_dotenv(os.path.join(ROOT_DIR, '.env'))

ALLOWED_HOSTS = ['*']
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

DEBUG = os.environ.get('DJANGO_DEBUG', 'True') == 'True'
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

DATABASES = {
    'default': dj_database_url.config(default='postgres://flash:password@127.0.0.1:5432/flash')
}

STATIC_ROOT = 'staticfiles'

MEDIA_STORE_BACKEND = os.environ.get("MEDIA_STORE_BACKEND")
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID", None)
AWS_ACCESS_SECRET_KEY = os.environ.get("AWS_ACCESS_SECRET_KEY", None)
AWS_S3_BUCKET  = os.environ.get("AWS_S3_BUCKET", None)

LIT_OAUTH_CREDENTIALS = {}
if os.environ.get('LTI_OAUTH_CREDENTIALS', None):
    LTI_OAUTH_CREDENTIALS = json.loads(os.environ.get('LTI_OAUTH_CREDENTIALS'))

{'fraction_non_alphanumeric': 0.14049586776859505, 'fraction_numerical': 0.013223140495867768, 'mean_word_length': 7.18018018018018, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '948073', 'n_tokens_mistral': 770, 'n_tokens_neox': 782, 'n_words': 95}