<commit_before>from __future__ import absolute_import

from sys import modules
from os import environ as __env

from .settings import ENV_FORCE_STUB
from .exceptions import UwsgiconfException as __DummyException


if False:  # pragma: nocover
    # Give IDEs a chance load stub symbols.
    from .uwsgi_stub import *


try:  # pragma: nocover
    if __env.get(ENV_FORCE_STUB, False):
        raise __DummyException('`UWSGI_FORCE_STUB` is found in env.')

    is_stub = False  # type: bool
    """Indicates whether stub is used instead of real `uwsgi` module."""

    ####################################################################

    import uwsgi

    # The following allows proper dynamic attributes (e.g. ``env``) addressing.
    modules[__name__] = uwsgi

except (ImportError, __DummyException):

    is_stub = True  # type: bool
    """Indicates whether stub is used instead of real `uwsgi` module."""

    ####################################################################

    import uwsgi_stub

    modules[__name__] = uwsgi_stub<commit_msg>Stub import fix.<commit_after>from __future__ import absolute_import

from sys import modules
from os import environ as __env

from .settings import ENV_FORCE_STUB
from .exceptions import UwsgiconfException as __DummyException


if False:  # pragma: nocover
    # Give IDEs a chance load stub symbols.
    from .uwsgi_stub import *


try:  # pragma: nocover
    if __env.get(ENV_FORCE_STUB, False):
        raise __DummyException('`UWSGI_FORCE_STUB` is found in env.')

    is_stub = False  # type: bool
    """Indicates whether stub is used instead of real `uwsgi` module."""

    ####################################################################

    import uwsgi

    # The following allows proper dynamic attributes (e.g. ``env``) addressing.
    modules[__name__] = uwsgi

except (ImportError, __DummyException):

    is_stub = True  # type: bool
    """Indicates whether stub is used instead of real `uwsgi` module."""

    ####################################################################

    from . import uwsgi_stub

    modules[__name__] = uwsgi_stub
{'fraction_non_alphanumeric': 0.1958568738229755, 'fraction_numerical': 0.0, 'mean_word_length': 4.120481927710843, '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': '3174152', 'n_tokens_mistral': 631, 'n_tokens_neox': 605, 'n_words': 198}