<commit_before>class Admin::BansController < Admin::ApplicationController

  def new
    @member = Member.find(member_id)
    @ban = Ban.new
  end

  def create
    @member = Member.find(member_id)

    @ban = @member.bans.build(ban_params)
    puts @ban.inspect
    @ban.added_by = current_user

    if @ban.save
      redirect_to [:admin, @member], notice: 'The user has been baned'
    else
      render 'new'
    end
  end<commit_msg>spelling mistake on the banned page<commit_after>class Admin::BansController < Admin::ApplicationController

  def new
    @member = Member.find(member_id)
    @ban = Ban.new
  end

  def create
    @member = Member.find(member_id)

    @ban = @member.bans.build(ban_params)
    puts @ban.inspect
    @ban.added_by = current_user

    if @ban.save
      redirect_to [:admin, @member], notice: 'The user has been banned'
    else
      render 'new'
    end
  end
{'fraction_non_alphanumeric': 0.10233592880978866, 'fraction_numerical': 0.0, 'mean_word_length': 3.017857142857143, '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': '6633014', 'n_tokens_mistral': 304, 'n_tokens_neox': 297, 'n_words': 76}