<commit_before>from urllib.parse import urlparse
import os

# Extract information from environment.
get = lambda v, default: os.environ.get(v, default)

database_url = get('DATABASE_URL', 'mysql://root:root@localhost/queue')
url = urlparse(database_url)
config = {
    'NAME': url.path[1:],
    'USERNAME': url.username,
    'PASSWORD': <PASSWORD>,
    'HOST': url.hostname,
    'PORT': int(os.environ.get('PORT', url.port or 5000)),
    'DATABASE': database_url.split('/')[3].split('?')[0],
    'SECRET_KEY': get('SECRET_KEY', 'dEf@u1t$eCRE+KEY'),
    'DEBUG': get('DEBUG', 'False'),
    'WHITELIST': get('WHITELIST', ''),
    'GOOGLECLIENTID': get('GOOGLECLIENTID', None),
    'ALLOWED_NETLOCS': get('ALLOWED_NETLOCS', 'piipod.com'),
    'DOMAIN': get('DOMAIN', 'piipod.com')<commit_msg>fixed default config<commit_after>from urllib.parse import urlparse
import os

# Extract information from environment.
get = lambda v, default: os.environ.get(v, default)

database_url = get('DATABASE_URL', 'mysql://root:root@localhost/queue')
url = urlparse(database_url)
config = {
    'NAME': url.path[1:],
    'USERNAME': url.username,
    'PASSWORD': <PASSWORD>,
    'HOST': url.hostname,
    'PORT': int(os.environ.get('PORT', url.port or 5000)),
    'DATABASE': database_url.split('/')[3].split('?')[0],
    'SECRET_KEY': get('SECRET_KEY', 'dEf@u1t$eCRE+KEY'),
    'DEBUG': get('DEBUG', 'False'),
    'WHITELIST': get('WHITELIST', ''),
    'GOOGLECLIENTID': get('GOOGLECLIENTID', None),
    'ALLOWED_NETLOCS': get('ALLOWED_NETLOCS', 'http://piipod.com'),
    'DOMAIN': get('DOMAIN', 'http://piipod.com')
{'fraction_non_alphanumeric': 0.2026266416510319, 'fraction_numerical': 0.010006253908692933, 'mean_word_length': 5.083650190114068, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7012149', 'n_tokens_mistral': 609, 'n_tokens_neox': 604, 'n_words': 109}