<commit_before>class StatusesController < ApplicationController

  # GET /statuses
  # GET /statuses.json
  def index
    @statuses = Status.all
  end

  # POST /statuses
  def create
    @status = Status.new(keyword: params[:keyword])
      if @status.save
        redirect_to '/is/'+params[:keyword], notice: "チーム名『#{params[:keyword]}』が登録されました。またのご利用をお待ちしています。"
      else
        redirect_to root_path
      end
  end

  def result
    @name = params[:name]
    render :layout => 'result'
  end<commit_msg>Modify status controller URI encode<commit_after>class StatusesController < ApplicationController

  # GET /statuses
  # GET /statuses.json
  def index
    @statuses = Status.all
  end

  # POST /statuses
  def create
    @status = Status.new(keyword: params[:keyword])
      if @status.save
        redirect_to '/is/'+CGI.escape(params[:keyword]), notice: "チーム名『#{params[:keyword]}』が登録されました。またのご利用をお待ちしています。"
      else
        redirect_to root_path
      end
  end

  def result
    @name = params[:name]
    render :layout => 'result'
  end
{'fraction_non_alphanumeric': 0.1112167300380228, 'fraction_numerical': 0.0, 'mean_word_length': 3.11328125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5510624', 'n_tokens_mistral': 369, 'n_tokens_neox': 358, 'n_words': 79}