<commit_before>module Veritas
  class Attribute
    class Boolean < Object
      include Logic::Connective::Methods

      def self.primitive
        TrueClass
      end

      def valid_value?(value)
        valid_or_optional?(value) { super || FalseClass === value }
      end

    end # class Boolean
  end # class Attribute
end # module Veritas<commit_msg>Do not use FalseClass#=== to test the value type<commit_after>module Veritas
  class Attribute
    class Boolean < Object
      include Logic::Connective::Methods

      def self.primitive
        TrueClass
      end

      def valid_value?(value)
        valid_or_optional?(value) { super || value.kind_of?(FalseClass) }
      end

    end # class Boolean
  end # class Attribute
end # module Veritas
{'fraction_non_alphanumeric': 0.07227332457293036, 'fraction_numerical': 0.0, 'mean_word_length': 2.735294117647059, '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': '4129911', 'n_tokens_mistral': 209, 'n_tokens_neox': 205, 'n_words': 64}