<commit_before>import os
SECRET_KEY = 'random-secret-key'
SESSION_COOKIE_NAME = 'unshred_session'
DEBUG = False

MONGODB_SETTINGS = {
    'DB': os.environ.get("mongodb_db", "unshred"),
    'HOST': os.environ.get("mongodb_host", "localhost"),
    'USERNAME': os.environ.get("mongodb_username", None),
    'PASSWORD': os.environ.get("mongodb_password", None),
    'PORT': os.environ.get("mongodb_port", None),
}

DEBUG_TB_INTERCEPT_REDIRECTS = False
SESSION_PROTECTION = 'strong'


SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True

SOCIAL_AUTH_LOGIN_URL = '/'
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'

SOCIAL_AUTH_USER_MODEL = 'models.user.User'
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
    'social.backends.google.GoogleOAuth2',
    'social.backends.twitter.TwitterOAuth',
    'social.backends.facebook.FacebookOAuth2',
)

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ''
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''

SOCIAL_AUTH_TWITTER_KEY = ''
SOCIAL_AUTH_TWITTER_SECRET = ''

SOCIAL_AUTH_FACEBOOK_KEY = ''
SOCIAL_AUTH_FACEBOOK_SECRET = ''

SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']

JS_ASSETS = ['jquery.js', 'bootstrap.js', 'string_score.js',
             'jquery.hotkeys.js', 'textext.core.js', 'textext.plugin.tags.js',
             'textext.plugin.autocomplete.js', 'textext.plugin.prompt.js',
             'textext.plugin.arrow.js', 'textext.plugin.suggestions.js',
             'jquery.magnific-popup.min.js', 'base.js']
JS_ASSETS_OUTPUT = 'packed.js'
JS_ASSETS_FILTERS = 'yui_js'

CSS_ASSETS = ['bootstrap.css', 'textext.core.css', 'textext.plugin.tags.css',
              'textext.plugin.prompt.css', 'textext.plugin.arrow.css',
              'textext.plugin.autocomplete.css', 'jquery.magnific-popup.css',
              'style.css']
CSS_ASSETS_OUTPUT = 'packed.css'
CSS_ASSETS_FILTERS = 'yui_css'

S3_ENABLED = bool(os.environ.get("s3_enabled"))
S3_ACCESS_KEY_ID = os.environ.get("aws_access_key_id")
S3_SECRET_ACCESS_KEY = os.environ.get("aws_secret_access_key")
S3_SRC_BUCKET_NAME = 'kurchenko_pink'
S3_DST_BUCKET_NAME = 'kurchenko'

LOCAL_FS_SRC_DIR = '../cv/pink/'
LOCAL_FS_URL = 'http://localhost:5000/'
SPLIT_OUT_DIR = "static/out"

USERS_PER_SHRED = 2
<commit_msg>Fixing problems with mongohq settings<commit_after>import os
SECRET_KEY = 'random-secret-key'
SESSION_COOKIE_NAME = 'unshred_session'
DEBUG = False

MONGODB_SETTINGS = {
    'DB': os.environ.get("mongodb_db", "unshred"),
    'HOST': os.environ.get("mongodb_host", "localhost"),
    'USERNAME': os.environ.get("mongodb_username", None),
    'PASSWORD': os.environ.get("mongodb_password", None),
    'PORT': (int(os.environ.get("mongodb_port"))
             if os.environ.get("mongodb_port") else None)
}

DEBUG_TB_INTERCEPT_REDIRECTS = False
SESSION_PROTECTION = 'strong'


SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True

SOCIAL_AUTH_LOGIN_URL = '/'
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'

SOCIAL_AUTH_USER_MODEL = 'models.user.User'
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
    'social.backends.google.GoogleOAuth2',
    'social.backends.twitter.TwitterOAuth',
    'social.backends.facebook.FacebookOAuth2',
)

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ''
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''

SOCIAL_AUTH_TWITTER_KEY = ''
SOCIAL_AUTH_TWITTER_SECRET = ''

SOCIAL_AUTH_FACEBOOK_KEY = ''
SOCIAL_AUTH_FACEBOOK_SECRET = ''

SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']

JS_ASSETS = ['jquery.js', 'bootstrap.js', 'string_score.js',
             'jquery.hotkeys.js', 'textext.core.js', 'textext.plugin.tags.js',
             'textext.plugin.autocomplete.js', 'textext.plugin.prompt.js',
             'textext.plugin.arrow.js', 'textext.plugin.suggestions.js',
             'jquery.magnific-popup.min.js', 'base.js']
JS_ASSETS_OUTPUT = 'packed.js'
JS_ASSETS_FILTERS = 'yui_js'

CSS_ASSETS = ['bootstrap.css', 'textext.core.css', 'textext.plugin.tags.css',
              'textext.plugin.prompt.css', 'textext.plugin.arrow.css',
              'textext.plugin.autocomplete.css', 'jquery.magnific-popup.css',
              'style.css']
CSS_ASSETS_OUTPUT = 'packed.css'
CSS_ASSETS_FILTERS = 'yui_css'

S3_ENABLED = bool(os.environ.get("s3_enabled"))
S3_ACCESS_KEY_ID = os.environ.get("aws_access_key_id")
S3_SECRET_ACCESS_KEY = os.environ.get("aws_secret_access_key")
S3_SRC_BUCKET_NAME = 'kurchenko_pink'
S3_DST_BUCKET_NAME = 'kurchenko'

LOCAL_FS_SRC_DIR = '../cv/pink/'
LOCAL_FS_URL = 'http://localhost:5000/'
SPLIT_OUT_DIR = "static/out"

USERS_PER_SHRED = 2

{'fraction_non_alphanumeric': 0.14354285714285714, 'fraction_numerical': 0.006857142857142857, 'mean_word_length': 4.765480895915679, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2789248', 'n_tokens_mistral': 1757, 'n_tokens_neox': 1716, 'n_words': 195}