<commit_before># --------------------------------------------------------------------------
# Unit tests for the int module. Run with pytest.
# --------------------------------------------------------------------------

import textwrap
import int


# --------------------------------------------------------------------------
# Helper functions.
# --------------------------------------------------------------------------


def parse(s):
    return int.parse_arg(s).strip()


def prep(s):
    return textwrap.dedent(s).strip()


# --------------------------------------------------------------------------
# Unprefixed (decimal) input tests.
# --------------------------------------------------------------------------

<commit_msg>Update unit tests<commit_after># --------------------------------------------------------------------------
# Unit tests for the int module. Run with pytest.
# --------------------------------------------------------------------------

import textwrap
import int


# --------------------------------------------------------------------------
# Helper functions.
# --------------------------------------------------------------------------


def parse(s):
    out = int.parse_arg(s)
    out = textwrap.dedent(out).strip().replace('\u001B[90m · \u001B[0m', ' · ')
    return out


def prep(s):
    return textwrap.dedent(s).strip()


# --------------------------------------------------------------------------
# Unprefixed (decimal) input tests.
# --------------------------------------------------------------------------


{'fraction_non_alphanumeric': 0.6291773778920309, 'fraction_numerical': 0.005784061696658098, 'mean_word_length': 0.4828571428571429, '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': '5120748', 'n_tokens_mistral': 271, 'n_tokens_neox': 259, 'n_words': 65}