<commit_before>class PlanCategoriesController < ApplicationController

  load_and_authorize_resource

  # GET /plan_categories
  def index
    @plan_categories = @plan_categories.yr(@year).order :name
  end

  # GET /plan_categories/1
  def show
    @plans = @plan_category.plans
    @show_availability = @plans.map{|p| p.inventory.present?}.reduce{|conj, n| conj || n}
  end

  # GET /plan_categories/new
  def new
  end

  # GET /plan_categories/1/edit
  def edit
  end

  # POST /plan_categories
  def create
    @plan_category.year = @year
    if @plan_category.save
      redirect_to(@plan_category, :notice => 'Plan category created.')
    else
      render :action => "new"
    end<commit_msg>actually, it's disjunction, not conjunction<commit_after>class PlanCategoriesController < ApplicationController

  load_and_authorize_resource

  # GET /plan_categories
  def index
    @plan_categories = @plan_categories.yr(@year).order :name
  end

  # GET /plan_categories/1
  def show
    @plans = @plan_category.plans
    @show_availability = @plans.map{|p| p.inventory.present?}.reduce{|disj, n| disj || n}
  end

  # GET /plan_categories/new
  def new
  end

  # GET /plan_categories/1/edit
  def edit
  end

  # POST /plan_categories
  def create
    @plan_category.year = @year
    if @plan_category.save
      redirect_to(@plan_category, :notice => 'Plan category created.')
    else
      render :action => "new"
    end
{'fraction_non_alphanumeric': 0.10139860139860139, 'fraction_numerical': 0.002797202797202797, 'mean_word_length': 3.403076923076923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1779955', 'n_tokens_mistral': 486, 'n_tokens_neox': 459, 'n_words': 109}