<commit_before>module Warp
  class Matcher
    # Composable matchers are new in RSpec 3.
    # Define basic helpers in their absence.
    if defined?(RSpec::Matchers::Composable)
      include RSpec::Matchers::Composable
    else
      def description_of(object)
        object.inspect
      end

      def values_match?(expected, actual)
        expected === actual || actual == expected
      end
    end

    # RSpec 2
    if RSpec::Version::STRING[0] == "2"
      def failure_message_for_should
        failure_message
      end

      def failure_message_for_should_not
        failure_message_when_negated
      end
    end
  end
end<commit_msg>Clarify comment regarding RSpec 2 and 3.<commit_after>module Warp
  class Matcher
    # Composable matchers are new in RSpec 3.
    # Define basic helpers in their absence.
    if defined?(RSpec::Matchers::Composable)
      include RSpec::Matchers::Composable
    else
      def description_of(object)
        object.inspect
      end

      def values_match?(expected, actual)
        expected === actual || actual == expected
      end
    end

    # RSpec 2 and 3 have different methods
    # that they call on matcher to get the
    # failure messages.
    if RSpec::Version::STRING[0] == "2"
      def failure_message_for_should
        failure_message
      end

      def failure_message_for_should_not
        failure_message_when_negated
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06315789473684211, 'fraction_numerical': 0.0077192982456140355, 'mean_word_length': 2.5297029702970297, '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': '875601', 'n_tokens_mistral': 424, 'n_tokens_neox': 408, 'n_words': 122}