<commit_before>class VerbsController < ApplicationController

  before_filter :authenticate_admin!, :only => [:destroy]
  before_filter :authenticate_user!, :except => [:index]

  def index
    @verbs = Verb.order(:name)
    respond_to do |format|
      format.html
      format.xml
      format.json { render :json => @verbs }
    end
  end

  def show
    @verb = Verb.find_by_name(params[:id].gsub('_',' '))
    respond_to do |format|
      format.html
      format.xml
      format.json { render :json => @verb }
    end
  end

  def new
    @verb = Verb.new
  end

  def create
    @verb = Verb.new(params[:verb])
    if @verb.save
      redirect_to verb_path(@verb)
    else
      render :new
    end
  end

  # DELETE /verbs/1
  def destroy
    @verb = Verb.find params[:id]
    @verb.destroy
    redirect_to verbs_path
  end

end
<commit_msg>Fixed verb create submit params<commit_after>class VerbsController < ApplicationController

  before_filter :authenticate_admin!, :only => [:destroy]
  before_filter :authenticate_user!, :except => [:index]

  def index
    @verbs = Verb.order(:name)
    respond_to do |format|
      format.html
      format.xml
      format.json { render :json => @verbs }
    end
  end

  def show
    @verb = Verb.find_by_name(params[:id].gsub('_',' '))
    respond_to do |format|
      format.html
      format.xml
      format.json { render :json => @verb }
    end
  end

  def new
    @verb = Verb.new
  end

  def create
    @verb = Verb.new(verb_params)
    if @verb.save
      redirect_to verb_path(@verb)
    else
      render :new
    end
  end

  # DELETE /verbs/1
  def destroy
    @verb = Verb.find params[:id]
    @verb.destroy
    redirect_to verbs_path
  end

  private

    def verb_params
      params.require(:verb).permit(
        :name,
      )
    end

end

{'fraction_non_alphanumeric': 0.1068870523415978, 'fraction_numerical': 0.0011019283746556473, 'mean_word_length': 2.452471482889734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7570312', 'n_tokens_mistral': 636, 'n_tokens_neox': 611, 'n_words': 152}