<commit_before>class WelcomeController < ApplicationController

  def index
  	if logged_in?
  	  @user = current_user
      @invitation = Invitation.new
      @active_invitations = @user.received_invitations.where(seen: false).pluck('DISTINCT sender_id').map{|sender_id| Invitation.find_by(recipient_id: @user.id, sender_id: sender_id) }.reverse
  	  @available_users = User.all.includes(:level, :country, :native_language, :study_language)<commit_msg>Update available users to show only available users that are not the current user<commit_after>class WelcomeController < ApplicationController

  def index
  	if logged_in?
  	  @user = current_user
      @invitation = Invitation.new
      @active_invitations = @user.received_invitations.where(seen: false).pluck('DISTINCT sender_id').map{|sender_id| Invitation.find_by(recipient_id: @user.id, sender_id: sender_id) }.reverse
  	  # @available_users = User.all.includes(:level, :country, :native_language, :study_language)
     @available_users =  User.all.includes(:level, :country, :native_language,
      :study_language).where("last_seen_at > ? and id != ?", 10.minutes.ago, current_user.id)
{'fraction_non_alphanumeric': 0.1122715404699739, 'fraction_numerical': 0.0017406440382941688, 'mean_word_length': 5.3535911602209945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4652994', 'n_tokens_mistral': 372, 'n_tokens_neox': 354, 'n_words': 71}