<commit_before>module Withings
  module Api
    # Encapsulates a consumer app key/secret pair
    class ConsumerToken
      attr_accessor :key, :secret

      # Multiple variations
      #
      # - #initialize()
      # - #initialize(key, secret)
      def initialize(*arguments)
        if arguments.length == 0
        elsif arguments.length == 2
          self.key = arguments.shift
          self.secret = arguments.shift
        else
          raise ArgumentError
        end
      end

    end

    class RequestToken < ConsumerToken

    end

    class AccessToken < ConsumerToken

    end<commit_msg>Update create_request_token to take either [key,secret,url] or [token obj, url]<commit_after>module Withings
  module Api
    # Encapsulates a consumer app key/secret pair
    class ConsumerToken
      attr_accessor :key, :secret

      # Multiple variations
      #
      # - #initialize()
      # - #initialize(key, secret)
      def initialize(*arguments)
        if arguments.length == 0
        elsif arguments.length == 2
          self.key = arguments.shift
          self.secret = arguments.shift
        else
          raise ArgumentError
        end
      end

      def to_a
        [key, secret]
      end

    end

    class RequestToken < ConsumerToken

    end

    class AccessToken < ConsumerToken

    end
{'fraction_non_alphanumeric': 0.06456456456456457, 'fraction_numerical': 0.003003003003003003, 'mean_word_length': 1.9622222222222223, 'pattern_counts': {'":': 0, '<': 7, '<?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': '486789', 'n_tokens_mistral': 365, 'n_tokens_neox': 341, 'n_words': 105}