<commit_before>#!/bin/env python

from base import *

DEBUG = False
TEMPLATE_DEBUG = DEBUG

try:
    _user = os.environ['AGAGD_USER']
except KeyError:
    _user = getpass.getuser('Mysql user >')
    os.environ['AGAGD_USER'] = _user

try:
    _password = os.environ['MYSQL_PASS']
except KeyError:
    _password = getpass.getpass('Mysql password >')
    os.environ['MYSQL_PASS'] = _password

try:
    _key = os.environ['SECRET_KEY']
except KeyError:
    _key = getpass.getpass('random django key >')
    os.environ['SECRET_KEY'] = _key

SECRET_KEY = _key

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'agagd',                      # Or path to database file if using sqlite3.
        'USER': _user,                      # Not used with sqlite3.
        'PASSWORD': <PASSWORD>,                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}<commit_msg>clever prod settings not so clever.<commit_after>#!/bin/env python

from base import *

DEBUG = False
TEMPLATE_DEBUG = DEBUG

_user = os.environ['AGAGD_USER']
_password = os.environ['<PASSWORD>']
_key = os.environ['SECRET_KEY']

SECRET_KEY = _key

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'agagd',                      # Or path to database file if using sqlite3.
        'USER': _user,                      # Not used with sqlite3.
        'PASSWORD': _password,                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}
{'fraction_non_alphanumeric': 0.12278031456113647, 'fraction_numerical': 0.007102993404363267, 'mean_word_length': 2.175523349436393, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7458816', 'n_tokens_mistral': 641, 'n_tokens_neox': 624, 'n_words': 172}