<commit_before>class TosController < ApplicationController

  before_filter :authenticate_user!
  layout "frontend"

  def show
    authorize! :read_tos, current_user
  end

  def update
    authorize! :sign_tos, current_user

    agrees_tos      = (params[:user][:agrees_tos].to_i == 1) ? true : false
    agrees_tos_name = params[:user][:agrees_tos_name]

    if current_user.sign_tos(agrees_tos,agrees_tos_name)
      redirect_to user_profile_path(current_user)
    else
      render :show
    end
  end

end<commit_msg>Added space<commit_after>class TosController < ApplicationController

  before_filter :authenticate_user!
  layout "frontend"

  def show
    authorize! :read_tos, current_user
  end

  def update
    authorize! :sign_tos, current_user

    agrees_tos      = (params[:user][:agrees_tos].to_i == 1) ? true : false
    agrees_tos_name = params[:user][:agrees_tos_name]

    if current_user.sign_tos(agrees_tos, agrees_tos_name)
      redirect_to user_profile_path(current_user)
    else
      render :show
    end
  end

end
{'fraction_non_alphanumeric': 0.08038277511961722, 'fraction_numerical': 0.0019138755980861245, 'mean_word_length': 3.9107981220657275, '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': '7644453', 'n_tokens_mistral': 361, 'n_tokens_neox': 368, 'n_words': 71}