<commit_before>require "bandcamp/request"
require "bandcamp/getter"
require "bandcamp/track"
require "bandcamp/configuration"
require "bandcamp/version"

module BandCamp

  def self.config
    @configuration ||= Configuration.new
  end

  def self.get
    @getter ||= Getter.new(config.api_key)
  end

  def self.search params
    puts params.map{|k,v| "&#{Rack::Utils.escape(k.to_s)}=#{v}"}.join
  end
end
<commit_msg>Passing in a Request object<commit_after>require "bandcamp/request"
require "bandcamp/getter"
require "bandcamp/track"
require "bandcamp/configuration"
require "bandcamp/version"

module BandCamp

  def self.config
    @configuration ||= Configuration.new
  end

  def self.get
    Getter.new(Request.new config.api_key)
  end

  def self.search params
    puts params.map{|k,v| "&#{Rack::Utils.escape(k.to_s)}=#{v}"}.join
  end
end

{'fraction_non_alphanumeric': 0.13028169014084506, 'fraction_numerical': 0.0, 'mean_word_length': 4.503225806451613, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2919820', 'n_tokens_mistral': 300, 'n_tokens_neox': 293, 'n_words': 64}