<commit_before># frozen_string_literal: true
# Copyright (C) 2015 Twitter, Inc.

module TwitterAds

  API_VERSION = '3'.freeze

  # The Ads API Client class which functions as a
  # container for basic API consumer information.
  class Client

    attr_accessor :consumer_key,
                  :consumer_secret,
                  :access_token,
                  :access_token_secret,
                  :options,
                  :logger

    # Creates a new Ads API client instance.
    #
    # @param consumer_key nil [String] The application consumer key value.
    # @param consumer_secret nil [String] The application consumer secret value.
    # @param access_token nil [String] The access token value.
    # @param access_token_secret nil [String] The access token secret value.
    #
    # @param opts [Hash] An optional Hash of extended options.
    # @option opts [Boolean] :sandbox When true, enables sandbox mode for all requests.
    # @option opts [Boolean] :trace When true, enables verbose request tracing for all requests.
    #
    # @since 0.1.0
    #
    # @return [Client] The newly created client instance.
    def initialize(consumer_key, consumer_secret, access_token, access_token_secret, opts = {})
      @consumer_key        = consumer_key
      @consumer_secret     = consumer_secret<commit_msg>Bump version to v4 (#186)<commit_after># frozen_string_literal: true
# Copyright (C) 2015 Twitter, Inc.

module TwitterAds

  API_VERSION = '4'.freeze

  # The Ads API Client class which functions as a
  # container for basic API consumer information.
  class Client

    attr_accessor :consumer_key,
                  :consumer_secret,
                  :access_token,
                  :access_token_secret,
                  :options,
                  :logger

    # Creates a new Ads API client instance.
    #
    # @param consumer_key nil [String] The application consumer key value.
    # @param consumer_secret nil [String] The application consumer secret value.
    # @param access_token nil [String] The access token value.
    # @param access_token_secret nil [String] The access token secret value.
    #
    # @param opts [Hash] An optional Hash of extended options.
    # @option opts [Boolean] :sandbox When true, enables sandbox mode for all requests.
    # @option opts [Boolean] :trace When true, enables verbose request tracing for all requests.
    #
    # @since 0.1.0
    #
    # @return [Client] The newly created client instance.
    def initialize(consumer_key, consumer_secret, access_token, access_token_secret, opts = {})
      @consumer_key        = consumer_key
      @consumer_secret     = consumer_secret
{'fraction_non_alphanumeric': 0.07250187828700225, 'fraction_numerical': 0.007513148009015778, 'mean_word_length': 2.7140864714086472, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3363225', 'n_tokens_mistral': 742, 'n_tokens_neox': 697, 'n_words': 265}