<commit_before>class UsersController < ApplicationController
  load_and_authorize_resource
  before_action { @navbar = "Users" }

  def index
    @q = User.ransack(params[:q])
    @users = @q.result.page(params[:page])
  end

  def new
  end

  def create
    @user.save
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

  def show
  end

  def edit
  end

  def update
    @user.update(user_params)
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

  def destroy
    @user.delete
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

  protected

  def user_params
    params.fetch(:user, {}).permit(:email, :password, :password_confirmation)
  end

end
<commit_msg>indentation of protected<commit_after>class UsersController < ApplicationController
  load_and_authorize_resource
  before_action { @navbar = "Users" }

  def index
    @q = User.ransack(params[:q])
    @users = @q.result.page(params[:page])
  end

  def new
  end

  def create
    @user.save
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

  def show
  end

  def edit
  end

  def update
    @user.update(user_params)
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

  def destroy
    @user.delete
    respond_with @user, location: -> { ok_url_or_default([User]) }
  end

protected

  def user_params
    params.fetch(:user, {}).permit(:email, :password, :password_confirmation)
  end

end


{'fraction_non_alphanumeric': 0.11351351351351352, 'fraction_numerical': 0.0, 'mean_word_length': 3.434131736526946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3379863', 'n_tokens_mistral': 522, 'n_tokens_neox': 499, 'n_words': 114}