<commit_before>"""Test parsing of COUNTER 4 JR2 report (turnaways)"""

import datetime


def test_metric(jr2_report):
    assert jr2_report.metric is None  # Multiple metrics per report


def test_type(jr2_report):
    assert jr2_report.report_type == u"JR2"


def test_data(jr2_report):
    i = iter(jr2_report)
    row = next(i)
    item = next(iter(row))
    assert item == (
        datetime.date(2011, 1, 1),
        u"Access denied: concurrent/simultaneous user license limit exceeded",
        3,
    )<commit_msg>py3-only pyupgrade for PR#91<commit_after>"""Test parsing of COUNTER 4 JR2 report (turnaways)"""

import datetime


def test_metric(jr2_report):
    assert jr2_report.metric is None  # Multiple metrics per report


def test_type(jr2_report):
    assert jr2_report.report_type == "JR2"


def test_data(jr2_report):
    i = iter(jr2_report)
    row = next(i)
    item = next(iter(row))
    assert item == (
        datetime.date(2011, 1, 1),
        "Access denied: concurrent/simultaneous user license limit exceeded",
        3,
    )
{'fraction_non_alphanumeric': 0.10426540284360189, 'fraction_numerical': 0.03317535545023697, 'mean_word_length': 3.418410041841004, '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': '1045272', 'n_tokens_mistral': 392, 'n_tokens_neox': 354, 'n_words': 95}