<commit_before>class UserSessionsController < ApplicationController

  def new
    if current_user
      redirect_to root_url
      return
    end
    @user_session = UserSession.new
  end

  def create
    @user_session = UserSession.new(params[:user_session])
    if @user_session.save
      flash[:notice] = t('login_correctly')
      if session[:requested_url].present?
        requested_url = session[:requested_url]
        session[:requested_url] = nil
        redirect_to requested_url
      else<commit_msg>Drop unnecessary successful login info<commit_after>class UserSessionsController < ApplicationController

  def new
    if current_user
      redirect_to root_url
      return
    end
    @user_session = UserSession.new
  end

  def create
    @user_session = UserSession.new(params[:user_session])
    if @user_session.save
      if session[:requested_url].present?
        requested_url = session[:requested_url]
        session[:requested_url] = nil
        redirect_to requested_url
      else
{'fraction_non_alphanumeric': 0.06712734452122408, 'fraction_numerical': 0.0, 'mean_word_length': 3.225, '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': '241659', 'n_tokens_mistral': 287, 'n_tokens_neox': 284, 'n_words': 63}