<commit_before># frozen_string_literal: true

module PermittedAttributes
  class TagRules
    def self.attributes
      [
        :id, :type, :preferred_customer_tags, :calculator_type,
        { calculator_attributes: [:id, :preferred_flat_percent] }
      ]
    end
  end
end<commit_msg>Fix tag_rules ForbiddenAttributes errors<commit_after># frozen_string_literal: true

module PermittedAttributes
  class TagRules
    def self.attributes
      [
        :id, :type, :priority, :is_default, :preferred_customer_tags, :preferred_exchange_tags,
        :preferred_matched_order_cycles_visibility, :preferred_shipping_method_tags,
        :preferred_matched_shipping_methods_visibility, :preferred_payment_method_tags,
        :preferred_matched_payment_methods_visibility, :preferred_variant_tags,
        :preferred_matched_variants_visibility, :calculator_type,
        { calculator_attributes: [:id, :preferred_flat_percent] }
      ]
    end
  end
end
{'fraction_non_alphanumeric': 0.07112970711297072, 'fraction_numerical': 0.0, 'mean_word_length': 4.5, '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': '7580810', 'n_tokens_mistral': 297, 'n_tokens_neox': 287, 'n_words': 50}