<commit_before>class HomeController < ApplicationController
	def index
		if user_signed_in?
			@user_status = {
				:status => 1,
				:email => current_user.email,
				:logouturl => destroy_user_session_path
			}.to_json
		else 
			@user_status = {
				:status => 0,
				:signupurl => new_user_registration_path,
				:loginurl => new_user_session_path
			}.to_json
		end
	end
end<commit_msg>Tidied up home controller - doesnt make unnecessary db calls anymore<commit_after>class HomeController < ApplicationController
	def index
		# if user_signed_in?
		# 	@user_status = {
		# 		:status => 1,
		# 		:email => current_user.email,
		# 		:logouturl => destroy_user_session_path
		# 	}.to_json
		# else 
		# 	@user_status = {
		# 		:status => 0,
		# 		:signupurl => new_user_registration_path,
		# 		:loginurl => new_user_session_path
		# 	}.to_json
		# end
	end
end
{'fraction_non_alphanumeric': 0.10428736964078796, 'fraction_numerical': 0.004634994206257242, 'mean_word_length': 3.4307692307692306, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7639638', 'n_tokens_mistral': 369, 'n_tokens_neox': 312, 'n_words': 62}