<commit_before>"""
Pyconfig
========

"""
from __future__ import print_function, unicode_literals
import os
import sys
import runpy
import logging
import pkg_resources

import six
import pytool
from pytool.lang import Namespace


__version__ = '3.0.0-dev'


# Helpful logging is helpful
if not logging.root.handlers:
    logging.basicConfig()


log = logging.getLogger(__name__)


class Setting(object):
    """ Setting descriptor. Allows class property style access of setting
        values that are always up to date.

        If it is set with `allow_default` as `False`, calling the
        attribute when its value is not set will raise a :exc:`LookupError`

        :param str name: Setting key name
        :param default: default value of setting.  Defaults to None.
        :param bool allow_default: If true, use the parameter default as
                        default if the key is not set, else raise
                        :exc:`LookupError`
    """
    def __init__(self, name, default=None, allow_default=True):
        self.name = name<commit_msg>Don't bootstrap logging it's a bad idea.<commit_after>"""
Pyconfig
========

"""
from __future__ import print_function, unicode_literals
import os
import sys
import runpy
import logging
import pkg_resources

import six
import pytool
from pytool.lang import Namespace


__version__ = '3.0.0-dev'


log = logging.getLogger(__name__)


class Setting(object):
    """ Setting descriptor. Allows class property style access of setting
        values that are always up to date.

        If it is set with `allow_default` as `False`, calling the
        attribute when its value is not set will raise a :exc:`LookupError`

        :param str name: Setting key name
        :param default: default value of setting.  Defaults to None.
        :param bool allow_default: If true, use the parameter default as
                        default if the key is not set, else raise
                        :exc:`LookupError`
    """
    def __init__(self, name, default=None, allow_default=True):
        self.name = name
{'fraction_non_alphanumeric': 0.07528957528957529, 'fraction_numerical': 0.0028957528957528956, 'mean_word_length': 2.8966165413533833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1508363', 'n_tokens_mistral': 562, 'n_tokens_neox': 537, 'n_words': 233}