<commit_before>import pytest  # type: ignore
from hypothesis import given

from ppb_vector import Vector
from utils import vector_likes, vectors


def test_addition_vectors():
    test_vector1 = Vector(1, 0)
    test_vector2 = Vector(0, 1)
    result = test_vector1 + test_vector2
    assert result == Vector(1, 1)


def test_addition_vector_tuple():
    test_vector = Vector(1, 1)
    test_tuple = (2, 4)
    result = test_vector + test_tuple
    assert result == Vector(3, 5)


def test_addition_vector_list():
    test_vector = Vector(1, 1)
    test_list = [1, 3]
    result = test_vector + test_list
    assert result == Vector(2, 4)


def test_addition_vector_dict():
    test_vector = Vector(1, 1)
    test_dict = {"x": 3, "y": 5}
    result = test_vector + test_dict
    assert result == Vector(4, 6)


data = [
    ([Vector(1, 1), (2, 2)], Vector(3, 3)),
    ([Vector(1, 2), [2, 2]], Vector(3, 4)),
    ([Vector(1, 2), {"x": 2, "y": 2}], Vector(3, 4)),
    ([Vector(10, 16), Vector(2, 2)], Vector(12, 18)),
    ([Vector(25, 22), (12, 92)], Vector(37, 114)),
    ([Vector(25, 22), Vector(22, 61)], Vector(47, 83)),
    ([Vector(39, 43), Vector(92, -12)], Vector(131, 31)),
    ([Vector(42, 12), (-5, 23)], Vector(37, 35)),
    ([Vector(51, 28), [72, 31]], Vector(123, 59)),
]


@pytest.mark.parametrize("test_input, expected", data)<commit_msg>tests/addition: Remove tests obsoleted by tests/typing<commit_after>import pytest  # type: ignore
from hypothesis import given

from ppb_vector import Vector
from utils import vector_likes, vectors


data = [
    ([Vector(1, 0), (0, 1)], Vector(1, 1)),
    ([Vector(1, 1), (2, 2)], Vector(3, 3)),
    ([Vector(1, 2), [2, 2]], Vector(3, 4)),
    ([Vector(10, 16), Vector(2, 2)], Vector(12, 18)),
    ([Vector(25, 22), (12, 92)], Vector(37, 114)),
    ([Vector(25, 22), Vector(22, 61)], Vector(47, 83)),
    ([Vector(39, 43), Vector(92, -12)], Vector(131, 31)),
    ([Vector(42, 12), (-5, 23)], Vector(37, 35)),
    ([Vector(51, 28), [72, 31]], Vector(123, 59)),
]


@pytest.mark.parametrize("test_input, expected", data)
{'fraction_non_alphanumeric': 0.20048309178743962, 'fraction_numerical': 0.10048309178743961, 'mean_word_length': 4.026699029126213, 'pattern_counts': {'":': 4, '<': 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': '3478162', 'n_tokens_mistral': 939, 'n_tokens_neox': 760, 'n_words': 218}