<commit_before>class HomeController < ApplicationController

	#before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :user_profile
	#before_filter CASClient::Frameworks::Rails::Filter, :except => :index

	def index
		

		if session[:cas_user]!=nil
			#redirect_to user_account_path
			authenticated_user = User.find_by_cid(session[:cas_user])
			redirect_to group_db_show_url authenticated_user.group_id
		end
<commit_msg>Fixed a bug with redirection<commit_after>class HomeController < ApplicationController

	#before_filter CASClient::Frameworks::Rails::GatewayFilter, :only => :user_profile
	#before_filter CASClient::Frameworks::Rails::Filter, :except => :index

	def index
		if session[:cas_user]!=nil
			#redirect_to user_account_path
			authenticated_user = User.find_by_cid(session[:cas_user])
			unless authenticated_user.nil?
				redirect_to group_db_show_url authenticated_user.group.id
			end
		end

{'fraction_non_alphanumeric': 0.09405405405405405, 'fraction_numerical': 0.0, 'mean_word_length': 7.052173913043478, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5305034', 'n_tokens_mistral': 322, 'n_tokens_neox': 287, 'n_words': 53}