<commit_before>def rad_sort(ins_list):
    if not hasattr(ins_list, "__iter__"):
        raise TypeError("Please insert an iterable")
    <commit_msg>working on radix<commit_after>def rad_sort(ins_list):
    if not hasattr(ins_list, "__iter__"):
        raise TypeError("Please insert an iterable")
    bucket_count = 10
    maxlength = False
    temp = -1
    placement = 1

    while not maxlength:
        maxlength = True
        buckets = [[] for _ in range(bucket_count)]

        for num in ins_list:
            temp = 1 // placement
            buckets[temp % bucket_count].append(num)
            if maxlength and temp > 0:
                maxlength = False

        val = 0
        for num2 in range(bucket_count):
            bucket = buckets[num2]
            for item in bucket:
                ins_list[val] = item
                val += 1

        placement *= bucket_count
    return ins_list


print(rad_sort([1,2,4,33,11,6,4,2,8,53,2]))
{'fraction_non_alphanumeric': 0.09424083769633508, 'fraction_numerical': 0.025130890052356022, 'mean_word_length': 2.0445859872611467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2428184', 'n_tokens_mistral': 304, 'n_tokens_neox': 288, 'n_words': 78}