<commit_before>from hypothesis import (
    given,
    settings,
)

from eth_abi import (
    encode_abi,
    decode_abi,
    encode_single,
    decode_single,
)

from tests.common.strategies import (
    multi_strs_values,
    single_strs_values,
)


@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversability(types_and_values):
    """
    Tests round trip encoding and decoding for basic types and lists of basic
    types.
    """
    types, values = types_and_values
    encoded_values = encode_abi(types, values)
    decoded_values = decode_abi(types, encoded_values)
    assert values == decoded_values


@settings(max_examples=1000)
@given(single_strs_values)
def test_single_abi_reversability(type_and_value):
    """
    Tests round trip encoding and decoding for basic types and lists of basic
    types.
    """
    _type, value = type_and_value
    encoded_value = encode_single(_type, value)
    decoded_value = decode_single(_type, encoded_value)
    assert value == decoded_value<commit_msg>Fix spelling errors in test names<commit_after>from hypothesis import (
    given,
    settings,
)

from eth_abi import (
    encode_abi,
    decode_abi,
    encode_single,
    decode_single,
)

from tests.common.strategies import (
    multi_strs_values,
    single_strs_values,
)


@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversibility(types_and_values):
    """
    Tests round trip encoding and decoding for basic types and lists of basic
    types.
    """
    types, values = types_and_values
    encoded_values = encode_abi(types, values)
    decoded_values = decode_abi(types, encoded_values)
    assert values == decoded_values


@settings(max_examples=1000)
@given(single_strs_values)
def test_single_abi_reversibility(type_and_value):
    """
    Tests round trip encoding and decoding for basic types and lists of basic
    types.
    """
    _type, value = type_and_value
    encoded_value = encode_single(_type, value)
    decoded_value = decode_single(_type, encoded_value)
    assert value == decoded_value
{'fraction_non_alphanumeric': 0.07361376673040153, 'fraction_numerical': 0.0076481835564053535, 'mean_word_length': 4.155172413793103, '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': '7313126', 'n_tokens_mistral': 677, 'n_tokens_neox': 643, 'n_words': 158}