<commit_before>"""
This module manage configuration file.

    - /etc/openstack-lease-it/config.ini
    - $HOME/.lease-it.ini

This module also provide **GLOBAL_CONFIG** variable used to share configuration across module /
django apps.
"""
import ConfigParser
import os

BASE_CONFIG_DIR = '/etc/openstack-lease-it'
"""
To avoid some typo mistake, we use **BASE_CONFIG_DIR** to define the base directory for
configuration files
"""

CONFIG_FILES = (
    BASE_CONFIG_DIR + '/config.ini',
    os.path.expanduser('~') + '/.lease-it.ini',
)
"""
The list of configuration file we will parse to load openstack-lease-it configuration
"""

GLOBAL_CONFIG = {
    # Django parameters
    'DJANGO_DEBUG': 'False',
    'DJANGO_LOGDIR': '/var/log/openstack-lease-it/',
    'DJANGO_LOGLEVEL': 'INFO',
    'DJANGO_SECRET_KEY': 'Must_be_defined',  # Must be defined to allow sphinx to run

    # OpenStack parameters
    'OS_USERNAME': 'admin',
    'OS_TENANT_NAME': 'admin',
    'OS_PASSWORD': '<PASSWORD>',  # Must be defined to allow sphinx to run
    'OS_PROJECT_NAME': 'admin',
    'OS_AUTH_URL': 'https://keystone.example.com',  # Must be defined to allow sphinx to run
    'OS_IDENTITY_API_VERSION': '3',
    'OS_USER_DOMAIN_NAME': 'default',
    'OS_PROJECT_DOMAIN_NAME': 'default',

    # memcached parameter
    'MEMCACHED_HOST': '127.0.0.1',
    'MEMCACHED_PORT': '11211',

    # plugins parameter<commit_msg>Fix issue #72<commit_after>"""
This module manage configuration file.

    - /etc/openstack-lease-it/config.ini
    - $HOME/.lease-it.ini

This module also provide **GLOBAL_CONFIG** variable used to share configuration across module /
django apps.
"""
import ConfigParser
import os

BASE_CONFIG_DIR = '/etc/openstack-lease-it'
"""
To avoid some typo mistake, we use **BASE_CONFIG_DIR** to define the base directory for
configuration files
"""

CONFIG_FILES = (
    BASE_CONFIG_DIR + '/config.ini',
    os.path.expanduser('~') + '/.lease-it.ini',
)
"""
The list of configuration file we will parse to load openstack-lease-it configuration
"""

GLOBAL_CONFIG = {
    # Django parameters
    'DJANGO_DEBUG': 'False',
    'DJANGO_LOGDIR': '/var/log/openstack-lease-it/',
    'DJANGO_LOGLEVEL': 'INFO',
    'DJANGO_SECRET_KEY': 'Must_be_defined',  # Must be defined to allow sphinx to run

    # OpenStack parameters
    'OS_USERNAME': 'admin',
    'OS_TENANT_NAME': 'admin',
    'OS_PASSWORD': '<PASSWORD>',  # Must be defined to allow sphinx to run
    'OS_PROJECT_NAME': 'admin',
    'OS_AUTH_URL': 'https://keystone.example.com',  # Must be defined to allow sphinx to run
    'OS_IDENTITY_API_VERSION': '3',
    'OS_USER_DOMAIN_NAME': 'default',
    'OS_PROJECT_DOMAIN_NAME': 'default',
    'OS_CACERT': None,  # If certificate is signed by a legit CA, we don't need to define it

    # memcached parameter
    'MEMCACHED_HOST': '127.0.0.1',
    'MEMCACHED_PORT': '11211',

    # plugins parameter
{'fraction_non_alphanumeric': 0.13245946878233875, 'fraction_numerical': 0.008968609865470852, 'mean_word_length': 3.8739495798319328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4145320', 'n_tokens_mistral': 1005, 'n_tokens_neox': 967, 'n_words': 261}