<commit_before>import pytest


@pytest.hookspec
def pytest_lab_configure(envmanager):
    """pytestlab startup"""


@pytest.hookspec(historic=True)
def pytest_lab_addroles(config, rolemanager):
    """new role registered"""


# TODO: Hook for publishing new role **should not** be historic - this
# no longer makes sense. Roles can now disappear before the historic
# hook can be triggered. Any plugin that cares about having a complete
# canonical list of roles should talk directly to the role manager
# instead.
@pytest.hookspec(historic=True)
def pytest_lab_role_created(config, ctl):
    """Called when a new role controller is created (and loaded) at a
    location.
    """


@pytest.hookspec
def pytest_lab_role_destroyed(config, ctl):
    """Called when a role controller is destroyed.
    """


@pytest.hookspec
def pytest_lab_add_providers(config, providermanager):
    """Called to enable adding addtional/external environment providers.
    """
<commit_msg>Add a location destroyed hook<commit_after>import pytest


@pytest.hookspec
def pytest_lab_configure(envmanager):
    """pytestlab startup"""


@pytest.hookspec(historic=True)
def pytest_lab_addroles(config, rolemanager):
    """new role registered"""


# TODO: Hook for publishing new role **should not** be historic - this
# no longer makes sense. Roles can now disappear before the historic
# hook can be triggered. Any plugin that cares about having a complete
# canonical list of roles should talk directly to the role manager
# instead.
@pytest.hookspec(historic=True)
def pytest_lab_role_created(config, ctl):
    """Called when a new role controller is created (and loaded) at a
    location.
    """


@pytest.hookspec
def pytest_lab_role_destroyed(config, ctl):
    """Called when a role controller is destroyed.
    """


@pytest.hookspec
def pytest_lab_location_destroyed(config, location):
    """Called when a location is released by the environment manager.
    """


@pytest.hookspec
def pytest_lab_add_providers(config, providermanager):
    """Called to enable adding addtional/external environment providers.
    """

{'fraction_non_alphanumeric': 0.08974358974358974, 'fraction_numerical': 0.0, 'mean_word_length': 4.756830601092896, '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': '5851741', 'n_tokens_mistral': 615, 'n_tokens_neox': 632, 'n_words': 216}