<commit_before>class FilterController < ApplicationController
	check_authorization
	load_and_authorize_resource
	
	rescue_from CanCan::AccessDenied do |exception|
		flash[:error] = exception.message
		redirect_to new_user_session_path
	end
end<commit_msg>Added code for hackful issue request #16<commit_after>class FilterController < ApplicationController
	check_authorization
	load_and_authorize_resource
	
	rescue_from CanCan::AccessDenied do |exception|
		flash[:error] = exception.message
		session[:user_return_to] = request.url
		redirect_to new_user_session_path
	end
end
{'fraction_non_alphanumeric': 0.05536332179930796, 'fraction_numerical': 0.0034602076124567475, 'mean_word_length': 7.641791044776119, 'pattern_counts': {'":': 0, '<': 5, '<?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': '231259', 'n_tokens_mistral': 179, 'n_tokens_neox': 168, 'n_words': 37}