<commit_before>class UsersController < ApplicationController
  before_action :authorize, except: [:new, :create]

  def new
    @user = User.new
  end

  def create
    @user = User.new(user_params)
    if @user.save
      redirect_to root_url, notice: "Thank you for signing up!"
    else
      render "new"
    end
  end

  private
    def user_params
      params.require(:user).permit(:username, :password, :password_confirmation, :password_digest)
    end
end<commit_msg>Changed strong params<commit_after>class UsersController < ApplicationController
  before_action :authorize, except: [:new, :create]

  def new
    @user = User.new
  end

  def create
    @user = User.new(user_params)
    if @user.save
      redirect_to root_url, notice: "Thank you for signing up!"
    else
      render "new"
    end
  end

  private
    def user_params
      params.require(:user).permit(:username, :password)
    end
end
{'fraction_non_alphanumeric': 0.08932461873638345, 'fraction_numerical': 0.0, 'mean_word_length': 3.1963470319634704, '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': '4720630', 'n_tokens_mistral': 289, 'n_tokens_neox': 281, 'n_words': 81}