<commit_before>class UsersController < ApplicationController
skip_before_action :require_signin, only: [:new, :create]
 
  def index
    @users = User.all
  end

  def new
    @user = User.new
  end

  def create
    @user = User.new(users_params)
    if @user.save
      sign_in @user
      redirect_to @user #goes to user - show.html.erb
    else 
      render :new     #rails will look in views folder for new.html.erb
    end
  end

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

  def edit
    @user = User.find(params[:id])
    if @user.update(users_params)
      redirect_to @user
      flash[:notice] = "Updated Successfully!"
    else
      render :edit
    end
  end

  def update
  end

  def destroy
  end

<commit_msg>Updates works!!!!! WOOOOO!!!!<commit_after>class UsersController < ApplicationController
skip_before_action :require_signin, only: [:new, :create]
 
  def index
    @users = User.all
  end

  def new
    @user = User.new
  end

  def create
    @user = User.new(users_params)
    if @user.save
      sign_in @user
      redirect_to @user #goes to user - show.html.erb
    else 
      render :new     #rails will look in views folder for new.html.erb
    end
  end

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

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

  def update
    @user = User.find(params[:id])
    if @user.update(users_params)
      redirect_to @user
      flash[:notice] = "Updated Successfully!"
    else
      render :edit
    end
  end

  def destroy
  end


{'fraction_non_alphanumeric': 0.09508196721311475, 'fraction_numerical': 0.0, 'mean_word_length': 2.4760820045558085, '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': '5385579', 'n_tokens_mistral': 527, 'n_tokens_neox': 505, 'n_words': 148}