<commit_before>
define :configure_site do
	site_domain = params[:site_domain] # api.woah.com
	template_cookbook = params[:template_cookbook]
	hosts = params[:hosts] # gets passed to template
	ssh_cert = params[:ssh_cert] # chained cert
	ssh_key = params[:ssh_key] # private key

	runit_service "nginx" do
		supports :restart => true, :status => true 
		action :nothing # only define so that it can be restarted if the config changed
	end

	template "#{node[:nginx][:conf_dir]}/sites-enabled/#{site_domain}" do
		cookbook	"#{template_cookbook}"
		source		"#{site_domain}.erb"
		owner		node[:nginx][:user]
		group		node[:nginx][:group]
		mode		"644"
		variables({
			:hosts => hosts,
		})
		notifies :restart, "runit_service[nginx]"
	end
<commit_msg>removed hosts<commit_after>
define :configure_site do
	site_domain = params[:site_domain] # api.woah.com
	template_cookbook = params[:template_cookbook]
	ssh_cert = params[:ssh_cert] # chained cert
	ssh_key = params[:ssh_key] # private key

	runit_service "nginx" do
		supports :restart => true, :status => true 
		action :nothing # only define so that it can be restarted if the config changed
	end

	template "#{node[:nginx][:conf_dir]}/sites-enabled/#{site_domain}" do
		cookbook	"#{template_cookbook}"
		source		"#{site_domain}.erb"
		owner		node[:nginx][:user]
		group		node[:nginx][:group]
		mode		"644"
		notifies :restart, "runit_service[nginx]"
	end

{'fraction_non_alphanumeric': 0.12864250177683015, 'fraction_numerical': 0.0042643923240938165, 'mean_word_length': 5.095238095238095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3490490', 'n_tokens_mistral': 542, 'n_tokens_neox': 499, 'n_words': 124}