<commit_before>require "faraday"
require "faraday_middleware"
require "guidestar/version"
require "guidestar/client"
require "guidestar/error"
require "guidestar/result"

module Guidestar
  class << self
    attr_accessor :username
    attr_accessor :password
    attr_accessor :proxy
    attr_accessor :default_endpoint

    def configure
      yield self
      true
    end

    def method_missing(method_name, *args)
      Guidestar::Client.new.send(method_name.to_sym, *args)
    end
  end

  Faraday.register_middleware :response,
    :raise_guidestar_error => lambda { Faraday::Response::RaiseGuidestarError }
end<commit_msg>use Guidestar::Chain to skip some building<commit_after>require "faraday"
require "faraday_middleware"
require "guidestar/version"
require "guidestar/client"
require "guidestar/error"
require "guidestar/result"

module Guidestar
  class << self
    attr_accessor :username
    attr_accessor :password
    attr_accessor :proxy
    attr_accessor :default_endpoint

    def configure
      yield self
      true
    end

    def method_missing(method_name, *args)
      Guidestar::Chain.new.send(method_name.to_sym, *args)
    end
  end

  Faraday.register_middleware :response,
    :raise_guidestar_error => lambda { Faraday::Response::RaiseGuidestarError }
end
{'fraction_non_alphanumeric': 0.07906976744186046, 'fraction_numerical': 0.0, 'mean_word_length': 4.3347107438016526, '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': '5766795', 'n_tokens_mistral': 427, 'n_tokens_neox': 407, 'n_words': 90}