<commit_before>class AgenciesController < ApplicationController
  before_action :set_agency, only: [:show, :edit, :update, :destroy]
  before_action :authenticate_user!

  def index
    @agencies = Agency.order(:name)
  end

  def show
    @agency = Agency.find(params[:id])
  end

  def new
    @agency = Agency.new
  end

  def edit
  end

  def create
    @agency = Agency.new(agency_params)

    if @agency.save
      redirect_to @agency
    else
      render :new
    end
  end

  def update
    if @agency.update(agency_params)
      redirect_to @agency
    else
      render :edit
    end
  end

  def destroy
    @agency.destroy
    redirect_to agencies_url
  end

  private

  def set_agency
    @agency = Agency.find(params[:id])
  end

  def agency_params
    params.require(:agency).permit(
     :name,
     :phone,
     :fax,
     :email,
     :address,
     :city,
     :state,
     :zip,
    )
  end
end
<commit_msg>Fix indentation level<commit_after>class AgenciesController < ApplicationController
  before_action :set_agency, only: [:show, :edit, :update, :destroy]
  before_action :authenticate_user!

  def index
    @agencies = Agency.order(:name)
  end

  def show
    @agency = Agency.find(params[:id])
  end

  def new
    @agency = Agency.new
  end

  def edit
  end

  def create
    @agency = Agency.new(agency_params)

    if @agency.save
      redirect_to @agency
    else
      render :new
    end
  end

  def update
    if @agency.update(agency_params)
      redirect_to @agency
    else
      render :edit
    end
  end

  def destroy
    @agency.destroy
    redirect_to agencies_url
  end

  private

  def set_agency
    @agency = Agency.find(params[:id])
  end

  def agency_params
    params.require(:agency).permit(
      :name,
      :phone,
      :fax,
      :email,
      :address,
      :city,
      :state,
      :zip,
    )
  end
end

{'fraction_non_alphanumeric': 0.08839190628328009, 'fraction_numerical': 0.0, 'mean_word_length': 2.3734290843806103, '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': '5699615', 'n_tokens_mistral': 670, 'n_tokens_neox': 617, 'n_words': 160}