<commit_before>"""
Tests for L{eliot._output}.
"""

from __future__ import unicode_literals

from unittest import TestCase, skipIf

from six import PY3, text_type as unicode

from zope.interface.verify import verifyClass

from .._output import (
    MemoryLogger, ILogger, Destinations, Logger, json
    )
from .._validation import ValidationError, Field, _MessageSerializer
from .._traceback import writeTraceback
from ..testing import assertContainsFields


class MemoryLoggerTests(TestCase):<commit_msg>Make pyflakes happy.<commit_after>"""
Tests for L{eliot._output}.
"""

from __future__ import unicode_literals

from unittest import TestCase, skipIf

from six import PY3

from zope.interface.verify import verifyClass

from .._output import (
    MemoryLogger, ILogger, Destinations, Logger, json
    )
from .._validation import ValidationError, Field, _MessageSerializer
from .._traceback import writeTraceback
from ..testing import assertContainsFields


class MemoryLoggerTests(TestCase):
{'fraction_non_alphanumeric': 0.07221664994984955, 'fraction_numerical': 0.0020060180541624875, 'mean_word_length': 5.438709677419355, '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': '2981122', 'n_tokens_mistral': 276, 'n_tokens_neox': 270, 'n_words': 94}