<commit_before>module ActiveInteraction
  class Base
    # Creates accessors for the attributes and ensures that values passed to
    #   the attributes are Arrays. The String `"1"` is converted to `true` and
    #   `"0"` is converted to `false`.
    #
    # @macro attribute_method_params
    #
    # @example
    #   boolean :subscribed
    #
    # @method self.boolean(*attributes, options = {})
  end

  # @private
  class BooleanFilter < Filter
    def self.prepare(key, value, options = {}, &block)
      case value
        when TrueClass, FalseClass
          value
        when '0'
          false
        when '1'
          true
        else
          super
      end
    end
  end
end<commit_msg>Fix typo<commit_after>module ActiveInteraction
  class Base
    # Creates accessors for the attributes and ensures that values passed to
    #   the attributes are Booleans. The String `"1"` is converted to `true`
    #   and `"0"` is converted to `false`.
    #
    # @macro attribute_method_params
    #
    # @example
    #   boolean :subscribed
    #
    # @method self.boolean(*attributes, options = {})
  end

  # @private
  class BooleanFilter < Filter
    def self.prepare(key, value, options = {}, &block)
      case value
        when TrueClass, FalseClass
          value
        when '0'
          false
        when '1'
          true
        else
          super
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08079376328844791, 'fraction_numerical': 0.005669737774627924, 'mean_word_length': 1.978902953586498, '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': '5443905', 'n_tokens_mistral': 400, 'n_tokens_neox': 397, 'n_words': 136}