<commit_before>require 'json'

module Cb
  module Clients
    class Resumes
      class << self
        attr_reader :api_args

        def get_resume_by_hash(args)
          @api_args = args
          Cb::Responses::Resumes::ResumeGet.new(get_resume_by_hash_response)
        end

        private

        def get_resume_by_hash_response
          api_client.cb_get(uri, query: query)
        end
        
        def uri
          Cb.configuration.uri_resume_get.gsub(':resume_hash', @api_args[:resume_hash])
        end

        def query
          { :externalUserID => @api_args[:externalUserID] }
        end

        def api_client
          @api ||= Cb::Utils::Api.instance
        end

      end
    end
  end
end<commit_msg>removing sprout method to make more readable.<commit_after>require 'json'

module Cb
  module Clients
    class Resumes
      class << self
        attr_reader :api_args

        def get_resume_by_hash(args)
          response = api_client.cb_get(uri, query: query)
          Cb::Responses::Resumes::ResumeGet.new(response)
        end

        private
        
        def uri
          Cb.configuration.uri_resume_get.gsub(':resume_hash', @api_args[:resume_hash])
        end

        def query
          { :externalUserID => @api_args[:externalUserID] }
        end

        def api_client
          @api ||= Cb::Utils::Api.instance
        end

      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08096590909090909, 'fraction_numerical': 0.0, 'mean_word_length': 1.941544885177453, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2327902', 'n_tokens_mistral': 442, 'n_tokens_neox': 439, 'n_words': 89}