<commit_before>class UsersController < ApplicationController
  before_filter :authenticate_user!

  def show
    @user = User.find(params[:id])
  end
end<commit_msg>Controller finds questions asked and answered<commit_after>class UsersController < ApplicationController
  before_filter :authenticate_user!

  def show
    @user = User.find(params[:id])
    @questions_asked = @user.questions.page(params[:page]).per(3)
    @questions_answered = Question.includes({:answers => :user}).where(:answers => {:user_id => @user.id}).page(params[:page]).per(3)
  end
end
{'fraction_non_alphanumeric': 0.13167259786476868, 'fraction_numerical': 0.0035587188612099642, 'mean_word_length': 5.865853658536586, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '7230252', 'n_tokens_mistral': 178, 'n_tokens_neox': 165, 'n_words': 33}