<commit_before>"""
@author: <NAME>
@email: <EMAIL>
@date: 24/6/17

Worst Case Analysis: Merge Sort -> O(nlog n)
"""
from random import randint
from timeit import Timer, default_timer


def merge_sort(data):
    if len(data) == 1:
        return data
    n = len(data)
    mid = n // 2

    # Divide and sort the sub lists
    left = merge_sort(data[:mid])<commit_msg>Update MergeSort.py<commit_after>"""
@author: <NAME>
@email: <EMAIL>
@date: 24/6/17

Worst Case Analysis: Merge Sort -> O(nlog n)
"""
from timeit import Timer, default_timer


def merge_sort(data):
    if len(data) == 1:
        return data
    n = len(data)
    mid = n // 2

    # Divide and sort the sub lists
    left = merge_sort(data[:mid])
{'fraction_non_alphanumeric': 0.13604488078541374, 'fraction_numerical': 0.019635343618513323, 'mean_word_length': 3.1271676300578033, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4194885', 'n_tokens_mistral': 274, 'n_tokens_neox': 257, 'n_words': 82}