<commit_before>class UsersController < ApplicationController

  def show
    @user = User.find(user_params)
  end

  def new
    @user = User.new()
  end

  def create
    @user = User.new(user_params)

    if @user.save
      session[:user_id] = @user.id
      flash[:notice] = "You have signed up successfully."
      redirect_to genres_path
    else
      render :new
    end
  end

  private

  def user_params
    params.require(:user).permit(:username, :first_name, :last_name, :bio, :soundcloud_profile, :email_address, :password, :password_confirmation, :artist)
  end

end
<commit_msg>fixed user controller<commit_after>class UsersController < ApplicationController

  def show
    @user = User.find(params[:id])
  end

  def new
    @user = User.new()
  end

  def create
    @user = User.new(user_params)

    if @user.save
      session[:user_id] = @user.id
      flash[:notice] = "You have signed up successfully."
      redirect_to genres_path
    else
      render :new
    end
  end

  private

  def user_params
    params.require(:user).permit(:username, :first_name, :last_name, :bio, :soundcloud_profile, :email_address, :password, :password_confirmation, :artist)
  end

end

{'fraction_non_alphanumeric': 0.10117056856187291, 'fraction_numerical': 0.0, 'mean_word_length': 3.2597864768683276, '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': '6335146', 'n_tokens_mistral': 395, 'n_tokens_neox': 380, 'n_words': 98}