<commit_before>module Cbr
  class ExchangeRate
    module Valutes
      def valutes
        get_valutes
      end

      private

      def get_valutes
        @valutes ||= generate_valutes
      end

      def generate_valutes
        valutes = []
        response['ValCurs']['Valute'].each do |valute|
          valutes << Valute.new(valute)
        end
        valutes
      end
    end
  end
end<commit_msg>Refactoring Valutes module<commit_after>module Cbr
  class ExchangeRate
    module Valutes
      def valutes
        get_valutes
      end

      private

      def get_valutes
        @valutes ||= generate_valutes
      end

      def generate_valutes
        response['ValCurs']['Valute'].map(& -> (valute) { Valute.new(valute) } )
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06994818652849741, 'fraction_numerical': 0.0, 'mean_word_length': 1.906015037593985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4604134', 'n_tokens_mistral': 238, 'n_tokens_neox': 231, 'n_words': 56}