<commit_before>module Bcx
  class Client < Rapidash::Client
    extension :json

    raise_errors

    resource :projects, class_name: 'Bcx::Resources::Project'
    resource :todolists, class_name: 'Bcx::Resources::Todolist'

    def initialize(auth_method, options = {})
      @account = Bcx.configuration.account
      @api_version = Bcx.configuration.api_version

      self.class.site("https://basecamp.com/#{@account}/api/#{@api_version}/")
      self.class.method(auth_method)

      super(options)
    end

  end
end<commit_msg>Allow Bcx::Client to set client_id and client_secret<commit_after>module Bcx
  class Client < Rapidash::Client
    extension :json

    raise_errors

    resource :projects, class_name: 'Bcx::Resources::Project'
    resource :todolists, class_name: 'Bcx::Resources::Todolist'

    def initialize(auth_method, options = {})
      @account = Bcx.configuration.account
      @api_version = Bcx.configuration.api_version

      self.class.site("https://basecamp.com/#{@account}/api/#{@api_version}/")
      self.class.method(auth_method)

      options[:uid] ||= options[:client_id]
      options[:secret] ||= options[:client_secret]

      super(options)
    end

  end
end
{'fraction_non_alphanumeric': 0.12780082987551866, 'fraction_numerical': 0.0, 'mean_word_length': 3.824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2437485', 'n_tokens_mistral': 385, 'n_tokens_neox': 371, 'n_words': 67}