<commit_before>= f.referenced_association :activity, as: :hidden
= f.referenced_association :campaign, as: :hidden

= hidden_field_tag(:supports_quantity, resource.productions_size.to_f, id: 'supports-quantity')
= hidden_field_tag(:supports_count, resource.productions_count, id: 'supports-count')

- if Rails.env.development? && f.object.errors.any?
  = f.object.errors.inspect

:ruby
  currency = Nomen::Currency.find(Preference[:currency])
  precision = currency.precision
  currency_symbol = currency.symbol
  computation_methods = f.object.computation_methods.map do |m|
    [ActivityBudgetItem.computation_method.human_value_name(m), m]
  end

= field_set(ActivityBudget.human_attribute_name(:items)) do
  .items
    %table.table
      %thead
        %tr
          %th= ActivityBudgetItem.human_attribute_name(:variant)
          %th= ActivityBudgetItem.human_attribute_name(:quantity)
          %th= ActivityBudgetItem.human_attribute_name(:computation_method)
          %th= ActivityBudgetItem.human_attribute_name(:unit_price)
          %th= ActivityBudgetItem.human_attribute_name(:amount)
          %th.with-some-supports
            %span= ActivityBudgetItem.human_attribute_name(:amount)
            %span= "/"
            - unit = f.object.size_unit<commit_msg>Fix activity budgets controller test<commit_after>= f.referenced_association :activity, as: :hidden
= f.referenced_association :campaign, as: :hidden

= hidden_field_tag(:supports_quantity, resource.productions_size.to_f, id: 'supports-quantity')
= hidden_field_tag(:supports_count, resource.productions_count, id: 'supports-count')

- if Rails.env.development? && f.object.errors.any?
  = f.object.errors.inspect

:ruby
  currency = Nomen::Currency.find(Preference[:currency])
  precision = currency.precision
  currency_symbol = currency.symbol
  computation_methods = f.object.computation_methods.map do |m|
    [ActivityBudgetItem.computation_method.human_value_name(m), m]
  end

= field_set(ActivityBudget.human_attribute_name(:items)) do
  .items
    %table.table
      %thead
        %tr
          %th= ActivityBudgetItem.human_attribute_name(:variant)
          %th= ActivityBudgetItem.human_attribute_name(:quantity)
          %th= ActivityBudgetItem.human_attribute_name(:computation_method)
          %th= ActivityBudgetItem.human_attribute_name(:unit_price)
          %th= ActivityBudgetItem.human_attribute_name(:amount)
          %th.with-some-supports
            %span= ActivityBudgetItem.human_attribute_name(:amount)
            %span= "/"
            - unit = f.object.size_unit unless f.object.activity.nil?
{'fraction_non_alphanumeric': 0.10910487898578564, 'fraction_numerical': 0.0, 'mean_word_length': 4.187250996015936, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3101501', 'n_tokens_mistral': 819, 'n_tokens_neox': 801, 'n_words': 119}