<commit_before>module Openlogi
  class Client
    attr_accessor :last_response

    def configure
      yield configuration
    end

    def configuration
      @configuration ||= Openlogi::Configuration.new
    end

    def test_mode?
      !!test_mode
    end

    def endpoint
      test_mode? ? "https://api-demo.openlogi.com" : "https://api.openlogi.com"
    end

    def items
      @items ||= Api::Items.new(self)
    end

    def warehousings
      @warehousings ||= Api::Warehousings.new(self)
    end

    def shipments
      @shipments ||= Api::Shipments.new(self)
    end

    extend Forwardable
    def_delegators :configuration, :access_token, :test_mode
  end
end<commit_msg>Add validations method for shortcut<commit_after>module Openlogi
  class Client
    attr_accessor :last_response

    def configure
      yield configuration
    end

    def configuration
      @configuration ||= Openlogi::Configuration.new
    end

    def test_mode?
      !!test_mode
    end

    def endpoint
      test_mode? ? "https://api-demo.openlogi.com" : "https://api.openlogi.com"
    end

    def items
      @items ||= Api::Items.new(self)
    end

    def warehousings
      @warehousings ||= Api::Warehousings.new(self)
    end

    def shipments
      @shipments ||= Api::Shipments.new(self)
    end

    def validations
      @validations ||= Api::Validations.new(self)
    end

    extend Forwardable
    def_delegators :configuration, :access_token, :test_mode
  end
end
{'fraction_non_alphanumeric': 0.0925050641458474, 'fraction_numerical': 0.0, 'mean_word_length': 2.6592592592592594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4855282', 'n_tokens_mistral': 482, 'n_tokens_neox': 470, 'n_words': 106}