<commit_before># encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

module MsRest
  #
  # Class which represents a point of access to the REST API.
  #
  class ServiceClient

    # @return [MsRest::ServiceClientCredentials] the credentials object.
    attr_accessor :credentials

    # @return [Hash{String=>String}] default middlewares configuration for requests.
    attr_accessor :middlewares

    # @return [Hash{String=>String}] default request headers for requests.
    attr_accessor :request_headers

    # @return [Array] strings to be appended to the user agent in the request
    attr_accessor :user_agent_extended

    #
    # Creates and initialize new instance of the ServiceClient class.
    #
    # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize
    # HTTP requests made by the service client.
    # @param options additional parameters for the HTTP request (not implemented yet).
    #
    def initialize(credentials, options = nil)
      @credentials = credentials
      @request_headers = {}
      @middlewares = {middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]]}
      @user_agent_extended = []
      @user_agent_extended.push("ms_rest/#{MsRest::VERSION}")
    end

    #
    # @param base_url [String] the base url for the request.
    # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
    # @param path [String] the path, relative to {base_url}.
    # @param options [Hash{String=>String}] specifying any request options like :credentials, :body, etc.<commit_msg>Make credentials nil by default<commit_after># encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

module MsRest
  #
  # Class which represents a point of access to the REST API.
  #
  class ServiceClient

    # @return [MsRest::ServiceClientCredentials] the credentials object.
    attr_accessor :credentials

    # @return [Hash{String=>String}] default middlewares configuration for requests.
    attr_accessor :middlewares

    # @return [Hash{String=>String}] default request headers for requests.
    attr_accessor :request_headers

    # @return [Array] strings to be appended to the user agent in the request
    attr_accessor :user_agent_extended

    #
    # Creates and initialize new instance of the ServiceClient class.
    #
    # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize
    # HTTP requests made by the service client.
    # @param options additional parameters for the HTTP request (not implemented yet).
    #
    def initialize(credentials = nil, options = nil)
      @credentials = credentials
      @request_headers = {}
      @middlewares = {middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]]}
      @user_agent_extended = []
      @user_agent_extended.push("ms_rest/#{MsRest::VERSION}")
    end

    #
    # @param base_url [String] the base url for the request.
    # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
    # @param path [String] the path, relative to {base_url}.
    # @param options [Hash{String=>String}] specifying any request options like :credentials, :body, etc.
{'fraction_non_alphanumeric': 0.09109311740890688, 'fraction_numerical': 0.002891844997108155, 'mean_word_length': 3.8649789029535864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5891393', 'n_tokens_mistral': 950, 'n_tokens_neox': 927, 'n_words': 348}