<commit_before>Confuse: Painless Configuration
===============================

`Confuse`_ is a straightforward, full-featured configuration system
for Python.

.. _Confuse: https://github.com/beetbox/confuse


Using Confuse
-------------

Set up your Configuration object, which provides unified access to
all of your application’s config settings:

.. code-block:: python

    config = confuse.Configuration('MyGreatApp', __name__)

The first parameter is required; it’s the name of your application, which
will be used to search the system for a config file named ``config.yaml``.
See :ref:`Search Paths` for the specific locations searched.

The second parameter is optional: it’s the name of a module that will
guide the search for a *defaults* file. Use this if you want to include a
``config_default.yaml`` file inside your package. (The included<commit_msg>Fixing header collision in TOC (just a warning, but resolved now).<commit_after>Confuse: Painless Configuration
===============================

`Confuse`_ is a straightforward, full-featured configuration system
for Python.

.. _Confuse: https://github.com/beetbox/confuse


Basic Usage
-----------

Set up your Configuration object, which provides unified access to
all of your application’s config settings:

.. code-block:: python

    config = confuse.Configuration('MyGreatApp', __name__)

The first parameter is required; it’s the name of your application, which
will be used to search the system for a config file named ``config.yaml``.
See :ref:`Search Paths` for the specific locations searched.

The second parameter is optional: it’s the name of a module that will
guide the search for a *defaults* file. Use this if you want to include a
``config_default.yaml`` file inside your package. (The included
{'fraction_non_alphanumeric': 0.11691961776278809, 'fraction_numerical': 0.0, 'mean_word_length': 4.59748427672956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5850066', 'n_tokens_mistral': 458, 'n_tokens_neox': 444, 'n_words': 219}