<commit_before>module Repeatable
  module Expression
    class Difference < Base
      def initialize(included:, excluded:)
        @included = included
        @excluded = excluded
      end

      attr_reader :included, :excluded

      def include?(date)
        return false if excluded.include?(date)
        included.include?(date)
      end

      def to_h
        Hash[hash_key, { included: included.to_h, excluded: excluded.to_h }]
      end

      def ==(other)
        return false unless other.is_a?(self.class)
        included == other.included && excluded == other.excluded
      end<commit_msg>Make attr_readers protected in Difference<commit_after>module Repeatable
  module Expression
    class Difference < Base
      def initialize(included:, excluded:)
        @included = included
        @excluded = excluded
      end

      def include?(date)
        return false if excluded.include?(date)
        included.include?(date)
      end

      def to_h
        Hash[hash_key, { included: included.to_h, excluded: excluded.to_h }]
      end

      def ==(other)
        return false unless other.is_a?(self.class)
        included == other.included && excluded == other.excluded
      end

      protected

      attr_reader :included, :excluded
{'fraction_non_alphanumeric': 0.08537549407114625, 'fraction_numerical': 0.0, 'mean_word_length': 2.3941018766756033, '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': '5381588', 'n_tokens_mistral': 357, 'n_tokens_neox': 343, 'n_words': 94}