<commit_before># encoding: utf-8

require "amq/client/entity"
require "amq/client/mixins/anonymous_entity"

module AMQ
  module Client
    class Exchange < Entity
      include AnonymousEntityMixin

      TYPES ||= [:fanout, :direct, :topic]

      class IncompatibleExchangeTypeError < StandardError
        def initialize(types, given)
          super("Exchange types are #{TYPES.inspect}, #{given.inspect} given.")
        end
      end

      attr_reader :name, :type<commit_msg>1.8.7 compatibility<commit_after># encoding: utf-8

require "amq/client/entity"
require "amq/client/mixins/anonymous_entity"

module AMQ
  module Client
    class Exchange < Entity
      include AnonymousEntityMixin

      TYPES = [:fanout, :direct, :topic].freeze

      class IncompatibleExchangeTypeError < StandardError
        def initialize(types, given)
          super("Exchange types are #{TYPES.inspect}, #{given.inspect} given.")
        end
      end

      attr_reader :name, :type
{'fraction_non_alphanumeric': 0.09723643807574207, 'fraction_numerical': 0.00511770726714432, 'mean_word_length': 3.1617021276595745, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3722101', 'n_tokens_mistral': 297, 'n_tokens_neox': 286, 'n_words': 74}