<commit_before>import os

try:
    from local_config import *

except ImportError:

    twilio_sid = os.environ.get('TWILIO_SID', '')
    twilio_token = os.environ.get('TWILIO_TOKEN', '')
    twilio_number = os.environ.get('TWILIO_NUMBER', '')

    fieldbook_user = os.environ.get('FIELDBOOK_USER', '')
    fieldbook_pass = <PASSWORD>('<PASSWORD>OK_PASS', '')
    fieldbook_url = os.environ.get('FIELDBOOK_URL', '')

    website_user = os.environ.get('WEBSITE_USER', 'user')
    website_pass = os.environ.get('WEBSITE_PASS', '<PASSWORD>')

    CACHE_REDIS_URL = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
    CACHE_DEFAULT_TIMEOUT = int(os.getenv('CACHE_DEFAULT_TIMEOUT', '300'))

    # We need the following variables to be boolean so we just check for a value against the environment variable
    # to mean True and then take absence of either a value or the variable to mean False

    demo_mode = bool(os.environ.get('DEMO_MODE', False))

    debug_mode = bool(os.environ.get('DEBUG_MODE', False))<commit_msg>Add REDIS_URL parameter to config file<commit_after>import os

try:
    from local_config import *

except ImportError:

    twilio_sid = os.environ.get('TWILIO_SID', '')
    twilio_token = os.environ.get('TWILIO_TOKEN', '')
    twilio_number = os.environ.get('TWILIO_NUMBER', '')

    fieldbook_user = os.environ.get('FIELDBOOK_USER', '')
    fieldbook_pass = os.environ.get('FIELDBOOK_PASS', '')
    fieldbook_url = os.environ.get('FIELDBOOK_URL', '')

    website_user = os.environ.get('WEBSITE_USER', 'user')
    website_pass = os.environ.get('WEBSITE_PASS', '<PASSWORD>')

    CACHE_REDIS_URL = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
    CACHE_DEFAULT_TIMEOUT = int(os.getenv('CACHE_DEFAULT_TIMEOUT', '300'))

    REDIS_URL = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')

    # We need the following variables to be boolean so we just check for a value against the environment variable
    # to mean True and then take absence of either a value or the variable to mean False

    demo_mode = bool(os.environ.get('DEMO_MODE', False))

    debug_mode = bool(os.environ.get('DEBUG_MODE', False))
{'fraction_non_alphanumeric': 0.13211951447245565, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 4.494871794871795, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '7333381', 'n_tokens_mistral': 744, 'n_tokens_neox': 724, 'n_words': 155}