<commit_before>import pytest
from insertion import insertion


def test_merge():
    input = [54, 26, 93, 17, 71, 31, 44, 55, 20]
    assert insertion(input)[0] == [17, 20, 26, 31, 44, 54, 55, 71, 93]


def test_merge():
    input = range(10000)
    assert insertion(input)[0] == range(10000)


def test_merge_big_floats():
    input = [x*0.01 for x in range(0, 100)]
    assert insertion(input)[0] == [x*0.01 for x in range(0, 100)]


def test_wrong_type():
    input = 'x'
    with pytest.raises(TypeError):
        insertion(input)[0]


def test_wrong_type_in_list():
    input = [1, 2, 'a']
    with pytest.raises(TypeError):
        insertion(input)[0]


def test_merge_big_reverse():
    input = range(10000)[::-1]
    assert insertion(input)[0] == range(10000)


def test_merge_big_increase_decrease():
    input = range(5000)+range(5000)[::-1]
    expected = range(5000)*2
    expected.sort()
    assert insertion(input)[0] == expected


def test_merge_duplicates():
    input = (range(100)+range(100))[::-1]
    expected = range(100)+range(100)
    expected.sort()
    assert insertion(input)[0] == expected


def test_merge_all_duplicates():
    input = [100]*20
    assert insertion(input)[0] == [100]*20<commit_msg>Change variable name in test_merge.<commit_after>import pytest
from merge import MergeSort


def test_merge():
    input = [54, 26, 93, 17, 71, 31, 44, 55, 20]
    assert MergeSort(input)[0] == [17, 20, 26, 31, 44, 54, 55, 71, 93]


def test_merge():
    input = range(10000)
    assert MergeSort(input)[0] == range(10000)


def test_merge_big_floats():
    input = [x*0.01 for x in range(0, 100)]
    assert MergeSort(input)[0] == [x*0.01 for x in range(0, 100)]


def test_wrong_type():
    input = 'x'
    with pytest.raises(TypeError):
        MergeSort(input)[0]


def test_wrong_type_in_list():
    input = [1, 2, 'a']
    with pytest.raises(TypeError):
        MergeSort(input)[0]


def test_merge_big_reverse():
    input = range(10000)[::-1]
    assert MergeSort(input)[0] == range(10000)


def test_merge_big_increase_decrease():
    input = range(5000)+range(5000)[::-1]
    expected = range(5000)*2
    expected.sort()
    assert MergeSort(input)[0] == expected


def test_merge_duplicates():
    input = (range(100)+range(100))[::-1]
    expected = range(100)+range(100)
    expected.sort()
    assert MergeSort(input)[0] == expected


def test_merge_all_duplicates():
    input = [100]*20
    assert MergeSort(input)[0] == [100]*20
{'fraction_non_alphanumeric': 0.15898058252427186, 'fraction_numerical': 0.09627831715210355, 'mean_word_length': 3.8681102362204722, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7078525', 'n_tokens_mistral': 1086, 'n_tokens_neox': 888, 'n_words': 209}