<commit_before>from flake8_class_newline import new_line_checker
from unittest import TestCase


class TestChecks(TestCase):
    def check_file(self, lines, filename):
        errors = []
        for line_number, line in enumerate(lines):
            errors.append(
                new_line_checker(
                    physical_line=line,
                    line_number=line_number + 1,
                    filename=filename
                )
            )

        return errors

    def test_checks_class_new_lines(self):
        expected_errors = [
            None,
            (0, 'CNL100: Class definition does not have a new line.'),
            None,
            None,
            None,
            None,
            None,
            None,
            None,
            None<commit_msg>Updated a test that I'd forgotten to update<commit_after>from flake8_class_newline import new_line_checker
from unittest import TestCase


class TestChecks(TestCase):
    def check_file(self, lines, filename):
        errors = []
        for line_number, line in enumerate(lines):
            errors.append(
                new_line_checker(
                    physical_line=line,
                    line_number=line_number + 1,
                    filename=filename
                )
            )

        return errors

    def test_checks_class_new_lines(self):
        expected_errors = [
            None,
            (0, 'CNL100: Class definition does not have a new line.'),
            None,
            None,
            None,
            None,
            None,
            None,
            None,
            None,
            None,
            None,
            None
{'fraction_non_alphanumeric': 0.06197854588796186, 'fraction_numerical': 0.007151370679380214, 'mean_word_length': 1.322268326417704, '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': '6397662', 'n_tokens_mistral': 444, 'n_tokens_neox': 416, 'n_words': 109}