<commit_before>class SessionsController < ApplicationController

  def create
    @user = User.new
    user = User.find_by_login(params[:login])
    if user && user.authenticate(params[:password])
      session[:user_id] = user.id
      redirect_to summary_path
    else
      redirect_to home_login_path
    end
  end

  def destroy
    session[:user_id] = nil
    redirect_to root_url
  end

  def new
  @user = User.new
  end
end<commit_msg>raising the stakes<commit_after>class SessionsController < ApplicationController

  def create
    @user = User.new
    user = User.find_by_login(params[:login])
    if user && user.authenticate(params[:password])
      session[:user_id] = user.id
      redirect_to "filter"
    else
      redirect_to "fail"
    end
  end

  def destroy
    session[:user_id] = nil
    redirect_to root_url
  end

  def new
  @user = User.new
  end
end
{'fraction_non_alphanumeric': 0.08181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 3.0228310502283104, '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': '7233760', 'n_tokens_mistral': 286, 'n_tokens_neox': 274, 'n_words': 69}