<commit_before>arr = []
size = 10
s=[]
def buble(bad_list):
	length = len(bad_list)-1
	sorteda = False
	while not sorteda:
		sorteda = True
		for i in range(length):
			if bad_list[i]>bad_list[i+1]:
				sorteda = False
				bad_list[i], bad_list[i+1] = bad_list[i+1], bad_list[i]
def median(array):
	half = len(array)//2
	if not len(arr)%2:
		print ((arr[half-1]+arr[half])/2)
	else:
		print (arr[half])
while True:
	print("What do you want, input values from keybord or from file?(1/2): ")
	inp = input()
	if inp == 1:
		 for i in range(size):
			  arr.append(int(input()))
	elif inp == 2:
		ifile=input("Please, input the file name(with extention and ''): ")
		with open(ifile) as f:
			arr = f.read().splitlines()
			arr = (list(map(int,arr)))
	else:
		pass
	print (arr)
	sort=input("Do you want to sort u array?(1/2): ")
	if sort == 1:
		for i in arr:
			if  i not in s:
				s.append(i)
		buble(s)
		print (s)
	elif sort == 2:
		pass
	else:
		print("What is this?")
		pass
	buble(arr)
	cont = input("Do u wanna find average?(1/2): ")
	if cont == 1:
		print (sum(arr)/float(len(arr)))
	else:
		pass
	nextstep = input("Do u wanna find median number?(1/2): ")
	if nextstep == 1:
		median(arr)
		choice = (input('Do u want to repeat this programm? 1/2\n'))
	else:
		choice = (input('Do u want to repeat this programm? 1/2\n'))
	if choice == 1:
		continue
	elif choice == 2:
		break
	else:
		exit
<commit_msg>Nyaaaaa<commit_after>import gc as gc
arr = []
size = 10
s=[]
def buble(bad_list):
	length = len(bad_list)-1
	sorteda = False
	while not sorteda:
		sorteda = True
		for i in range(length):
			if bad_list[i]>bad_list[i+1]:
				sorteda = False
				bad_list[i], bad_list[i+1] = bad_list[i+1], bad_list[i]
def median(array):
	half = len(array)//2
	if not len(arr)%2:
		print ((arr[half-1]+arr[half])/2)
	else:
		print (arr[half])
while True:
	print("What do you want, input values from keybord or from file?(1/2): ")
	inp = input()
	if inp == 1:
		 for i in range(size):
			  arr.append(int(input("Pleas input values")))
	elif inp == 2:
		ifile=input("Please, input the file name(with extention and ''): ")
		with open(ifile) as f:
			arr = f.read().splitlines()
			arr = (list(map(int,arr)))
	else:
		pass
	print (arr)
	sort=input("Do you want to sort u array?(1/2): ")
	if sort == 1:
		for i in arr:
			if  i not in s:
				s.append(i)
		buble(s)
		print (s)
	elif sort == 2:
		pass
	else:
		print("What is this?")
		pass
	buble(arr)
	cont = input("Do u wanna find average?(1/2): ")
	if cont == 1:
		print (sum(arr)/float(len(arr)))
	else:
		pass
	nextstep = input("Do u wanna find median number?(1/2): ")
	if nextstep == 1:
		median(arr)
		choice = (input('Do u want to repeat this programm? 1/2\n'))
	else:
		choice = (input('Do u want to repeat this programm? 1/2\n'))
	if choice == 1:
		arr[:] = []
		s[:] = []
		continue
	elif choice == 2:
		break
	else:
		exit

{'fraction_non_alphanumeric': 0.1672473867595819, 'fraction_numerical': 0.020905923344947737, 'mean_word_length': 3.383206106870229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2568642', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1175, 'n_words': 352}