<commit_before># frozen_string_literal: true

class LotteryDivisionsController < ApplicationController
  before_action :authenticate_user!
  before_action :set_organization
  before_action :set_lottery
  before_action :set_lottery_division, except: [:new, :create]
  after_action :verify_authorized

  # GET /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions/new
  def new
    @lottery_division = @lottery.divisions.new
    authorize @lottery_division
  end

  # GET /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions/:id/edit
  def edit
    authorize @lottery
  end

  # POST /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions
  def create
    @lottery_division = @lottery.divisions.new(permitted_params)<commit_msg>Fix typo in lottery divisions controller<commit_after># frozen_string_literal: true

class LotteryDivisionsController < ApplicationController
  before_action :authenticate_user!
  before_action :set_organization
  before_action :set_lottery
  before_action :set_lottery_division, except: [:new, :create]
  after_action :verify_authorized

  # GET /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions/new
  def new
    @lottery_division = @lottery.divisions.new
    authorize @lottery_division
  end

  # GET /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions/:id/edit
  def edit
    authorize @lottery_division
  end

  # POST /organizations/:organization_id/lotteries/:lottery_id/lottery_divisions
  def create
    @lottery_division = @lottery.divisions.new(permitted_params)
{'fraction_non_alphanumeric': 0.07644110275689223, 'fraction_numerical': 0.0, 'mean_word_length': 5.8247863247863245, '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': '4931392', 'n_tokens_mistral': 525, 'n_tokens_neox': 509, 'n_words': 86}