<commit_before>module Bellbro
  module Pool
    def self.included(klass)
      klass.extend(self)

      class << klass
        def pool(pool_name)
          @pool_name = pool_name
        end
      end
    end

    def with_connection(pool_name: nil, &block)
      retryable(sleep: 0.5) do
        connection_pool(pool_name: pool_name).with &block
      end
    end

    def connection_pool(pool_name: nil)
      Bellbro::Settings.connection_pools[pool_name || @pool_name]
    end
  end

end<commit_msg>Fix for conneciton pool class method<commit_after>module Bellbro
  module Pool

    def with_connection(pool_name: nil, &block)
      retryable(sleep: 0.5) do
        connection_pool(pool_name: pool_name).with &block
      end
    end

    def connection_pool(pool_name: nil)
      self.class.connection_pool(pool_name: pool_name)
    end

    def self.included(klass)
      klass.extend(self)

      class << klass
        def pool(pool_name)
          @pool_name = pool_name
        end

        def connection_pool(pool_name: nil)
          Bellbro::Settings.connection_pools[pool_name || @pool_name]
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07672188317349608, 'fraction_numerical': 0.0034873583260680036, 'mean_word_length': 2.4682779456193353, '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': '1635384', 'n_tokens_mistral': 371, 'n_tokens_neox': 366, 'n_words': 82}