<commit_before>require 'addressable/uri'

module Trello
  class Client
    class EnterYourPublicKey < StandardError; end
    class EnterYourSecret < StandardError; end

    class << self
      def get(path, params = {})
        api_version = 1
        uri = Addressable::URI.parse("https://api.trello.com/#{api_version}#{path}")
        uri.query_values = params

        request = Request.new uri, {}

        response = TInternet.get AuthPolicy.authorize(request)

        raise Error, response.message if response.code.to_i != 200

        response
      end

      private

      def query(api_version, path, options = { :method => :get, :params => {} })
        uri = Addressable::URI.parse("https://api.trello.com/#{api_version}#{path}")
        uri.query_values = options[:params]

        response = TInternet.send(options[:method], uri, {}, nil)

        raise Error, response.message if response.code.to_i != 200

        response
      end
    end
  end
end<commit_msg>Cleared out unused classes and methods<commit_after>require 'addressable/uri'

module Trello
  class Client
    class << self
      def get(path, params = {})
        api_version = 1
        uri = Addressable::URI.parse("https://api.trello.com/#{api_version}#{path}")
        uri.query_values = params

        request = Request.new uri, {}

        response = TInternet.get AuthPolicy.authorize(request)

        raise Error, response.message if response.code.to_i != 200

        response
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11348464619492657, 'fraction_numerical': 0.007343124165554072, 'mean_word_length': 2.5861244019138754, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 3, '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': '3668996', 'n_tokens_mistral': 456, 'n_tokens_neox': 429, 'n_words': 104}