<commit_before># -*- coding: utf-8 -*-
import pytest

from cheetah_lint import five


@pytest.yield_fixture(autouse=True)
def no_warnings(recwarn):
    yield
    ret = len(tuple(
        warning for warning in recwarn
        # cheetah raises this warning when compiling a trivial file
        if not (
            isinstance(warning.message, UserWarning) and
            five.text(warning.message) == (
                'You supplied an empty string for the source!'
            )
        )
    ))
    assert ret == 0<commit_msg>Replace deprecated yield_fixture with fixture<commit_after># -*- coding: utf-8 -*-
import pytest

from cheetah_lint import five


@pytest.fixture(autouse=True)
def no_warnings(recwarn):
    yield
    ret = len(tuple(
        warning for warning in recwarn
        # cheetah raises this warning when compiling a trivial file
        if not (
            isinstance(warning.message, UserWarning) and
            five.text(warning.message) == (
                'You supplied an empty string for the source!'
            )
        )
    ))
    assert ret == 0
{'fraction_non_alphanumeric': 0.08302583025830258, 'fraction_numerical': 0.0036900369003690036, 'mean_word_length': 2.1818181818181817, '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': '4847661', 'n_tokens_mistral': 306, 'n_tokens_neox': 301, 'n_words': 95}