<commit_before># -*- coding: utf-8 -*-
'''Example settings/local.py file.
These settings override what's in website/settings/defaults.py

NOTE: local.py will not be added to source control.
'''

from . import defaults

DEV_MODE = True
DEBUG_MODE = True  # Sets app to debug mode, turns off template caching, etc.
SECURE_MODE = not DEBUG_MODE  # Disable osf cookie secure

# NOTE: Internal Domains/URLs have been added to facilitate docker development environments
#       when localhost inside a container != localhost on the client machine/docker host.

PROTOCOL = 'https://' if SECURE_MODE else 'http://'
DOMAIN = PROTOCOL + 'localhost:5000/'
INTERNAL_DOMAIN = DOMAIN
API_DOMAIN = PROTOCOL + 'localhost:8000/'

#WATERBUTLER_URL = 'http://localhost:7777'
#WATERBUTLER_INTERNAL_URL = WATERBUTLER_URL

LIVE_RELOAD_DOMAIN = 'http://localhost:4200'
PREPRINT_PROVIDER_DOMAINS = {
    'enabled': False,
    'prefix': 'http://local.',
    'suffix': ':4200/'
}
USE_EXTERNAL_EMBER = True
PROXY_EMBER_APPS = False
EXTERNAL_EMBER_APPS = {
    'preprints': {
        'url': '/preprints/',
        'server': 'http://192.168.168.167:4200/',
        'path': '/preprints/'
    },
    'registries': {
        'url': '/registries/',
        'server': 'http://192.168.168.167:4300',
        'path': '/registries/'
    },
    'quickfiles': {
        'url': '/quickfiles/',
        'server': 'http://localhost:4201',
        'path': '/quickfiles/'
    }
    # 'meetings': {
    #     'url': '/meetings/',
    #     'server': 'http://localhost:4201',
    #     'path': '../osf-meetings/dist/'
    # },
}

SEARCH_ENGINE = 'elastic'
ELASTIC_TIMEOUT = 10

# Comment out to use celery in development
USE_CELERY = False

# Email
USE_EMAIL = False
MAIL_SERVER = 'localhost:1025'  # For local testing
MAIL_USERNAME = 'osf-smtp'
MAIL_PASSWORD = '<PASSWORD>'

# Mailchimp email subscriptions
ENABLE_EMAIL_SUBSCRIPTIONS = False

# Session
COOKIE_NAME = 'osf'
OSF_COOKIE_DOMAIN = None
SECRET_KEY = 'CHANGEME'
SESSION_COOKIE_SECURE = SECURE_MODE
OSF_SERVER_KEY = None
OSF_SERVER_CERT = None<commit_msg>Update local-dist with quickfiles/ember-osf-web info [skip ci]<commit_after># -*- coding: utf-8 -*-
'''Example settings/local.py file.
These settings override what's in website/settings/defaults.py

NOTE: local.py will not be added to source control.
'''

from . import defaults

DEV_MODE = True
DEBUG_MODE = True  # Sets app to debug mode, turns off template caching, etc.
SECURE_MODE = not DEBUG_MODE  # Disable osf cookie secure

# NOTE: Internal Domains/URLs have been added to facilitate docker development environments
#       when localhost inside a container != localhost on the client machine/docker host.

PROTOCOL = 'https://' if SECURE_MODE else 'http://'
DOMAIN = PROTOCOL + 'localhost:5000/'
INTERNAL_DOMAIN = DOMAIN
API_DOMAIN = PROTOCOL + 'localhost:8000/'

#WATERBUTLER_URL = 'http://localhost:7777'
#WATERBUTLER_INTERNAL_URL = WATERBUTLER_URL

LIVE_RELOAD_DOMAIN = 'http://localhost:4200'
PREPRINT_PROVIDER_DOMAINS = {
    'enabled': False,
    'prefix': 'http://local.',
    'suffix': ':4200/'
}
USE_EXTERNAL_EMBER = True
PROXY_EMBER_APPS = False
EXTERNAL_EMBER_APPS = {
    'preprints': {
        'url': '/preprints/',
        'server': 'http://192.168.168.167:4200/',
        'path': '/preprints/'
    },
    'registries': {
        'url': '/registries/',
        'server': 'http://192.168.168.167:4300',
        'path': '/registries/'
    },
    'quickfiles': {
        'url': '/ember_osf_web/',
        'server': 'http://localhost:4201',
        'path': '/ember_osf_web/'
    }
    # 'meetings': {
    #     'url': '/meetings/',
    #     'server': 'http://localhost:4201',
    #     'path': '../osf-meetings/dist/'
    # },
}

SEARCH_ENGINE = 'elastic'
ELASTIC_TIMEOUT = 10

# Comment out to use celery in development
USE_CELERY = False

# Email
USE_EMAIL = False
MAIL_SERVER = 'localhost:1025'  # For local testing
MAIL_USERNAME = 'osf-smtp'
MAIL_PASSWORD = '<PASSWORD>'

# Mailchimp email subscriptions
ENABLE_EMAIL_SUBSCRIPTIONS = False

# Session
COOKIE_NAME = 'osf'
OSF_COOKIE_DOMAIN = None
SECRET_KEY = 'CHANGEME'
SESSION_COOKIE_SECURE = SECURE_MODE
OSF_SERVER_KEY = None
OSF_SERVER_CERT = None
{'fraction_non_alphanumeric': 0.13927975196756498, 'fraction_numerical': 0.03195802528022895, 'mean_word_length': 3.514531754574812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1054534', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1471, 'n_words': 345}