<commit_before>class Admin::BudgetHeadingsController < Admin::BaseController
  include FeatureFlags
  feature_flag :budgets

  def create
    @budget = Budget.find params[:budget_id]
    @budget_group = @budget.groups.find params[:budget_group_id]
    @budget_group.headings.create(budget_heading_params)
    @headings = @budget_group.headings
  end

  private

    def budget_heading_params
      params.require(:budget_heading).permit(:name, :price, :geozone_id)
    end

end<commit_msg>Add population to allowed params on admin budget heading controller<commit_after>class Admin::BudgetHeadingsController < Admin::BaseController
  include FeatureFlags
  feature_flag :budgets

  def create
    @budget = Budget.find params[:budget_id]
    @budget_group = @budget.groups.find params[:budget_group_id]
    @budget_group.headings.create(budget_heading_params)
    @headings = @budget_group.headings
  end

  private

    def budget_heading_params
      params.require(:budget_heading).permit(:name, :price, :population)
    end

end
{'fraction_non_alphanumeric': 0.08527131782945736, 'fraction_numerical': 0.0, 'mean_word_length': 4.936781609195402, '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': '6196652', 'n_tokens_mistral': 333, 'n_tokens_neox': 321, 'n_words': 62}