<commit_before>"""
Staging settings and globals.
"""
import sys
import os
from .base import *

# Import secrets
secrets_path = os.path.normpath(os.path.join(PROJECT_ROOT, '../secrets/storymapjs/stg'))
sys.path.append(secrets_path)

from secrets import *

# Set Flask configuration
os.environ['FLASK_CONFIG_MODULE'] = os.path.join(secrets_path, 'flask_config.py')
    
STATIC_URL = 'http://media.knilab.com/StoryMapJS/'

CDN_URL = 'https://s3.amazonaws.com/cdn.knightlab.com/libs/storymapjs/dev/'

DATABASES = {
    'default': {
        'ENGINE': 'mongo',
        'NAME': 'storymapjs',
        'HOST': 'stg-mongo1.knilab.com',
        'PORT': 27017,
    }
}

# name of user storage bucket on S3
AWS_STORAGE_BUCKET_NAME = 'uploads.knilab.com'

# User storage bucket url on S3
AWS_STORAGE_BUCKET_URL = '//s3.amazonaws.com/uploads.knilab.com/'

# Application key name within storage bucket
AWS_STORAGE_BUCKET_KEY = 'storymapjs'<commit_msg>try protocol-relative HTTPS-able CDN URL<commit_after>"""
Staging settings and globals.
"""
import sys
import os
from .base import *

# Import secrets
secrets_path = os.path.normpath(os.path.join(PROJECT_ROOT, '../secrets/storymapjs/stg'))
sys.path.append(secrets_path)

from secrets import *

# Set Flask configuration
os.environ['FLASK_CONFIG_MODULE'] = os.path.join(secrets_path, 'flask_config.py')
    
STATIC_URL = 'http://media.knilab.com/StoryMapJS/'

CDN_URL = '//s3.amazonaws.com/cdn.knightlab.com/libs/storymapjs/dev/'

DATABASES = {
    'default': {
        'ENGINE': 'mongo',
        'NAME': 'storymapjs',
        'HOST': 'stg-mongo1.knilab.com',
        'PORT': 27017,
    }
}

# name of user storage bucket on S3
AWS_STORAGE_BUCKET_NAME = 'uploads.knilab.com'

# User storage bucket url on S3
AWS_STORAGE_BUCKET_URL = '//s3.amazonaws.com/uploads.knilab.com/'

# Application key name within storage bucket
AWS_STORAGE_BUCKET_KEY = 'storymapjs'
{'fraction_non_alphanumeric': 0.13802221047065044, 'fraction_numerical': 0.010576414595452142, 'mean_word_length': 4.018567639257294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1736266', 'n_tokens_mistral': 738, 'n_tokens_neox': 721, 'n_words': 135}