<commit_before># coding:utf-8

# author:JiangKun
# Function: Insert sort

num_list = [88,0,1,2,3,123,11,123,421,-124,-2,3,4,5,6]
# num_list = range(3000)[::-1]

sorted_list = []

for i in num_list:
    if len(sorted_list) == 0:
        sorted_list.append(i)
    else:
        for j in sorted_list:
            if i <= j:
                pass
            elif i > j and 
<commit_msg>done insert sort<commit_after># coding:utf-8

# author:JiangKun
# Function: Insert sort

# num_list = [88,0,1,2,3,123,11,123,421,-124,-2,3,4,5,6]
# num_list = [88,0,1,2,3,123,11,123,421,-124,-2,3,4,5,6,0,0,0]
# num_list = [1,1,1,1,1,1,1]
num_list = range(10000)[::-1]
# num_list = range(-100, 100, 2)[::-1]
# num_list = [1]

sorted_list = []

for i in range(len(num_list)):
    if len(sorted_list) == 0:
        sorted_list.append(num_list[i])
    else:
        for j in range(len(sorted_list)):
            if num_list[i] <= sorted_list[j]:
                sorted_list.insert(j, num_list[i])
                break
            elif j == len(sorted_list) - 1:
                sorted_list.insert(j+1, num_list[i])
                break

print sorted_list
{'fraction_non_alphanumeric': 0.17019400352733685, 'fraction_numerical': 0.09788359788359788, 'mean_word_length': 2.6031746031746033, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3800950', 'n_tokens_mistral': 522, 'n_tokens_neox': 472, 'n_words': 83}