<commit_before># frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Rabbit
      module Publisher
        # Define a super class for all errors in Rabbit::BaseEvent
        class BaseErrorPublisher < BaseRabbit
          def initialize(message, level = :fatal)
            super "[Publisher] #{message}", level
          end
        end

        module Base
          # Error for Rabbit::BaseEvent#initialize
          class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error in initializer'
            end
          end

          class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error for publishing message'
            end
          end
        end
      end
    end
  end
end
<commit_msg>Add missing error class<commit_after># frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Rabbit
      module Publisher
        # Define a super class for all errors in Rabbit::BaseEvent
        class BaseErrorPublisher < BaseRabbit
          def initialize(message, level = :fatal)
            super "[Publisher] #{message}", level
          end
        end

        module Base
          # Error for Rabbit::BaseEvent#initialize
          class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error in initializer'
            end
          end

          class Publish < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize
              super 'Error for publishing message'
            end
          end

          class TestCorrelation < RubyRabbitmqJanus::Errors::Rabbit::Publisher::BaseErrorPublisher
            def initialize(message, propertie)
              super "Correlation doesn't equal (msg: #{message}) != (prp: #{propertie})"
            end
          end
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.06109481915933529, 'fraction_numerical': 0.0, 'mean_word_length': 2.0325925925925925, 'pattern_counts': {'":': 0, '<': 10, '<?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': '3505527', 'n_tokens_mistral': 535, 'n_tokens_neox': 479, 'n_words': 151}