<commit_before>from pylibs.test import Test, Player, BwChange, DelayChange

server_url = 'http://192.168.100.10:3000/static'
bipbop_url = server_url + '/bb/bipbop_4x3_variant_onlyvideo.m3u8' # rates: 232370 649879 991714 1927833, duration (s): ~1800
tearsofsteel_url = server_url + '/ts/vM7nH0Kl.m3u8' # rates: 380000 670000 1710000 3400000, duration (s): ~734
bigbuckbunny_url = server_url + '/bbb/bigbuckbunny.m3u8' # rates: 290400 510400 1170400 2820400, duration (s): ~597


if __name__ == "__main__":
	algorithms = ('classic', 'bba0')
	delay = '200ms'
	buffer_size = 200

	bandwidths = ('300kbit', '650kbit', '950kbit', '1mbit', '1.5mbit', '2mbit', '5mbit', '10mbit')
	collection = 'constant_single_bipbop_{0}_{1}p'.format(delay, buffer_size)
	for algo in algorithms:
		player = Player(delay=1, host='client0', algo=algo, url=bipbop_url, kill_after=2330)
		num = 1
		for bw in bandwidths:
			bwchange = BwChange(bw=bw, buffer_size=buffer_size)
			t = Test(name='c{0:02d}_bipbop_{1}_{2}'.format(num, bw, algo), collection=collection, player=player, init_bw=bwchange, packet_delay=delay)
			t.generate_schedule()
			num += 1

	#bandwidths = ('950kbit', '1mbit', '1.5mbit', '3mbit', '5mbit', '10mbit')
	#collection = 'constant_single_tearsofsteel_{0}_{1}p'.format(delay, buffer_size)
	#for algo in algorithms:
	#	player = Player(delay=1, host='client0', algo=algo, url=tearsofsteel_url, kill_after=1130)
	#	num = 1
	#	for bw in bandwidths:
	#		bwchange = BwChange(bw=bw, buffer_size=buffer_size)
	#		t = Test(name='c{0:02d}_tearsofsteel_{1}_{2}'.format(num, bw, algo), collection=collection, player=player, init_bw=bwchange, packet_delay=delay)
	#		t.generate_schedule()
	#		num += 1

	bandwidths = ('650kbit', '950kbit', '1mbit', '1.5mbit', '2mbit', '5mbit', '10mbit')<commit_msg>added some more bandwidths for constant two clients<commit_after>from pylibs.test import Test, Player, BwChange, DelayChange

server_url = 'http://192.168.100.10:3000/static'
bipbop_url = server_url + '/bb/bipbop_4x3_variant_onlyvideo.m3u8' # rates: 232370 649879 991714 1927833, duration (s): ~1800
tearsofsteel_url = server_url + '/ts/vM7nH0Kl.m3u8' # rates: 380000 670000 1710000 3400000, duration (s): ~734
bigbuckbunny_url = server_url + '/bbb/bigbuckbunny.m3u8' # rates: 290400 510400 1170400 2820400, duration (s): ~597


if __name__ == "__main__":
	algorithms = ('classic', 'bba0')
	delay = '200ms'
	buffer_size = 200

	bandwidths = ('300kbit', '650kbit', '950kbit', '1mbit', '1.5mbit', '2mbit', '5mbit', '10mbit')
	collection = 'constant_single_bipbop_{0}_{1}p'.format(delay, buffer_size)
	for algo in algorithms:
		player = Player(delay=1, host='client0', algo=algo, url=bipbop_url, kill_after=2330)
		num = 1
		for bw in bandwidths:
			bwchange = BwChange(bw=bw, buffer_size=buffer_size)
			t = Test(name='c{0:02d}_bipbop_{1}_{2}'.format(num, bw, algo), collection=collection, player=player, init_bw=bwchange, packet_delay=delay)
			t.generate_schedule()
			num += 1

	#bandwidths = ('950kbit', '1mbit', '1.5mbit', '3mbit', '5mbit', '10mbit')
	#collection = 'constant_single_tearsofsteel_{0}_{1}p'.format(delay, buffer_size)
	#for algo in algorithms:
	#	player = Player(delay=1, host='client0', algo=algo, url=tearsofsteel_url, kill_after=1130)
	#	num = 1
	#	for bw in bandwidths:
	#		bwchange = BwChange(bw=bw, buffer_size=buffer_size)
	#		t = Test(name='c{0:02d}_tearsofsteel_{1}_{2}'.format(num, bw, algo), collection=collection, player=player, init_bw=bwchange, packet_delay=delay)
	#		t.generate_schedule()
	#		num += 1

	bandwidths = ('650kbit', '950kbit', '1mbit', '1.5mbit', '2mbit', '2.5mbit', '3mbit', '3.5mbit', '4mbit', '5mbit', '10mbit')
{'fraction_non_alphanumeric': 0.16245883644346873, 'fraction_numerical': 0.10482985729967069, 'mean_word_length': 6.175196850393701, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7265246', 'n_tokens_mistral': 1774, 'n_tokens_neox': 1518, 'n_words': 294}