<commit_before>
define :go_service_deploy do
	settings	= params[:settings]
	key			= params[:key]

	service_name = settings[:service_name]
	user = settings[:user]
	group = settings[:group]
	shell = settings[:shell]
	home = settings[:home]
	deploy_to = settings[:deploy_to]

	user = service_name unless !user.to_s.empty?
	group = user unless !group.to_s.empty?
	deploy_to = '/opt' unless !deploy_to.to_s.empty?

	kn_deploy_user do
		user user
		group group
		shell shell
		home home
	end

	kn_deploy_app_dir do
		user user
		group group
		path deploy_to
	end

	kn_go_build do
		service_settings settings
		deploy_key key
	end
end
<commit_msg>rename<commit_after>
define :go_service_deploy do
	settings	= params[:settings]
	key			= params[:key]

	service_name = settings[:service_name]
	user = settings[:user]
	group = settings[:group]
	shell = settings[:shell]
	home = settings[:home]
	deploy_to = settings[:deploy_to]

	user = service_name unless !user.to_s.empty?
	group = user unless !group.to_s.empty?
	deploy_to = '/opt' unless !deploy_to.to_s.empty?

	go_service_user do
		user user
		group group
		shell shell
		home home
	end

	go_service_directories do
		user user
		group group
		path deploy_to
	end

	go_service_build do
		service_settings settings
		deploy_key key
	end
end

{'fraction_non_alphanumeric': 0.08411214953271028, 'fraction_numerical': 0.0, 'mean_word_length': 4.331950207468879, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5694440', 'n_tokens_mistral': 494, 'n_tokens_neox': 450, 'n_words': 120}