<commit_before>from random import randint


def partition(unsorted, start, end, pivot):
    pass


def choose_pivot(start, end):
    pass


def quicksort(unsorted, start=0, end=None):
    pass


if __name__ == '__main__':
    unsorted = [3,345,456,7,879,970,7,4,23,123,45,467,578,78,6,4,324,145,345,3456,567,5768,6589,69,69]
    sorted = quicksort(unsorted)

    print '%r <-- unsorted' % unsorted
    print '%r <-- sorted' % sorted
<commit_msg>complete choose_pivot(), complete with docstring<commit_after>from random import randint


def partition(unsorted, start, end, pivot):
    pass


def choose_pivot(start, end):
    """Input start and end locations of list and return a random number between the 2."""
    pivot = randint(start, end)
    return pivot


def quicksort(unsorted, start=0, end=None):
    pass


if __name__ == '__main__':
    unsorted = [3,345,456,7,879,970,7,4,23,123,45,467,578,78,6,4,324,145,345,3456,567,5768,6589,69,69]
    sorted = quicksort(unsorted)

    print '%r <-- unsorted' % unsorted
    print '%r <-- sorted' % sorted

{'fraction_non_alphanumeric': 0.14407582938388624, 'fraction_numerical': 0.11848341232227488, 'mean_word_length': 4.333333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5880241', 'n_tokens_mistral': 476, 'n_tokens_neox': 389, 'n_words': 91}