<commit_before>require 'uri'

class ApiUri
   VENDOR_HOST = "api.replicated.com"
   VENDOR_BASE_PATH = "/vendor/v1"

   def self.build_uri(endpoint, params = nil)
      uri_base = "https://" << VENDOR_HOST
      uri = URI(uri_base)

      uri.path = VENDOR_BASE_PATH << "/" << endpoint

      if params
         uri.query = URI.encode_www_form(params)
      end

      return uri
   end
end<commit_msg>Don't use shovel in apiuri<commit_after>require 'uri'

class ApiUri
   VENDOR_HOST = "api.replicated.com"
   VENDOR_BASE_PATH = "/vendor/v1"

   def self.build_uri(endpoint, params = nil)
      uri_base = "https://" + VENDOR_HOST
      uri = URI(uri_base)

      uri.path = VENDOR_BASE_PATH + "/" + endpoint

      if params
         uri.query = URI.encode_www_form(params)
      end

      return uri
   end
end
{'fraction_non_alphanumeric': 0.10810810810810811, 'fraction_numerical': 0.002457002457002457, 'mean_word_length': 2.558951965065502, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3258868', 'n_tokens_mistral': 290, 'n_tokens_neox': 288, 'n_words': 61}