<commit_before>module Egree
  class CaseEventSubscription
    attr_reader :events, :url

    def self.events
      [ "created", "sent", "recalled", "finished", "rejected", "expired", "deleted", "signatureadded", "approvalrequested" ]
    end

    def initialize(events, url)
      self.events = events
      @url = url
    end

    def events= events
      types = Array(events)

      unknown_events = events - CaseEventSubscription.events
      if unknown_events.any?
        raise unknown_event_error(unknown_events)
      end

      @events = events
    end

    private

    def unknown_event_error events
      ArgumentError.new("Unknown events: #{events.join(", ")}. Valid events are: #{CaseEventSubscription.events.join(", ")}")
    end
  end
end
<commit_msg>Remove unused variable<commit_after>module Egree
  class CaseEventSubscription
    attr_reader :events, :url

    def self.events
      [ "created", "sent", "recalled", "finished", "rejected", "expired", "deleted", "signatureadded", "approvalrequested" ]
    end

    def initialize(events, url)
      self.events = events
      @url = url
    end

    def events= events
      unknown_events = events - CaseEventSubscription.events
      if unknown_events.any?
        raise unknown_event_error(unknown_events)
      end

      @events = events
    end

    private

    def unknown_event_error events
      ArgumentError.new("Unknown events: #{events.join(", ")}. Valid events are: #{CaseEventSubscription.events.join(", ")}")
    end
  end
end

{'fraction_non_alphanumeric': 0.10634081902245707, 'fraction_numerical': 0.0, 'mean_word_length': 3.0616621983914207, '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': '5984203', 'n_tokens_mistral': 436, 'n_tokens_neox': 436, 'n_words': 114}