<commit_before>def run_ci(num_of_packages)
	packages = []
	Package.order { [category, lower(name), version] }.each do |package|
		packages << package[:identifier]
	end

	if num_of_packages == :all
		packages = packages
	elsif num_of_packages == :daily
		packages_per_day = ((packages.length.to_f / 7).ceil)
		packages = packages[(Time.now.wday * packages_per_day)..((Time.now.wday * packages_per_day) + packages_per_day)]
	elsif num_of_packages == 0
		packages = packages.sample(5)
	elsif num_of_packages == :untested
		packages = []
		Package.exclude(tested: true).order { [category, lower(name), version] }.each do |package|
			packages << package[:identifier]
		end
	else
		packages = packages.sample(num_of_packages)
	end

	begin
		instance, key_pair = start_instance
		file_path = File.dirname(File.dirname(File.expand_path(File.dirname(__FILE__))))

		Net::SCP.start(instance.ip_address, 'ec2-user', key_data: [key_pair.private_key]) do |scp|
			scp.upload!(file_path + '/conf', '/home/ec2-user', recursive: true)
			scp.upload!(file_path + '/tinder.sh', '/home/ec2-user/tinder.sh')
		end

		Net::SSH.start(instance.ip_address, 'ec2-user', key_data: [key_pair.private_key]) do |ssh|<commit_msg>Don't send slot values to tinder.sh<commit_after>def run_ci(num_of_packages)
	packages = []
	Package.order { [category, lower(name), version] }.each do |package|
		packages << package[:identifier].split(':')[0]
	end

	if num_of_packages == :all
		packages = packages
	elsif num_of_packages == :daily
		packages_per_day = ((packages.length.to_f / 7).ceil)
		packages = packages[(Time.now.wday * packages_per_day)..((Time.now.wday * packages_per_day) + packages_per_day)]
	elsif num_of_packages == 0
		packages = packages.sample(5)
	elsif num_of_packages == :untested
		packages = []
		Package.exclude(tested: true).order { [category, lower(name), version] }.each do |package|
			packages << package[:identifier]
		end
	else
		packages = packages.sample(num_of_packages)
	end

	begin
		instance, key_pair = start_instance
		file_path = File.dirname(File.dirname(File.expand_path(File.dirname(__FILE__))))

		Net::SCP.start(instance.ip_address, 'ec2-user', key_data: [key_pair.private_key]) do |scp|
			scp.upload!(file_path + '/conf', '/home/ec2-user', recursive: true)
			scp.upload!(file_path + '/tinder.sh', '/home/ec2-user/tinder.sh')
		end

		Net::SSH.start(instance.ip_address, 'ec2-user', key_data: [key_pair.private_key]) do |ssh|
{'fraction_non_alphanumeric': 0.15024630541871922, 'fraction_numerical': 0.006157635467980296, 'mean_word_length': 5.062189054726368, 'pattern_counts': {'":': 0, '<': 11, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '293273', 'n_tokens_mistral': 926, 'n_tokens_neox': 859, 'n_words': 164}