<commit_before>class UsersController < ApplicationController

	skip_before_filter :verify_authenticity_token

	def show
		@user = User.find(session[:user_id])
    @questions = Question.where(user_id: @user.id)
    @answers = Answer.where(user_id: @user.id)
	end

	def login
		@user = User.new
	end

	def new    #signup form
		@user = User.new
	end

end<commit_msg>modified users#show to function for loggedin user as well as post author<commit_after>class UsersController < ApplicationController

	skip_before_filter :verify_authenticity_token

	def show
		@user = current_user || User.find(params[:id])
    @questions = Question.where(user_id: @user.id)
    @answers = Answer.where(user_id: @user.id)
	end

	def login
		@user = User.new
	end

	def new    #signup form
		@user = User.new
	end

end
{'fraction_non_alphanumeric': 0.09410288582183186, 'fraction_numerical': 0.0, 'mean_word_length': 4.181818181818182, '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': '4804963', 'n_tokens_mistral': 287, 'n_tokens_neox': 266, 'n_words': 69}