<commit_before>module Oauthio
  class AccessToken < OAuth2::AccessToken
    attr_reader :provider, :oauth_token, :oauth_token_secret

    class << self
      # Initializes an AccessToken from a Hash
      #
      # @param [Client] the OAuth2::Client instance
      # @param [Hash] a hash of AccessToken property values
      # @return [AccessToken] the initalized AccessToken
      def from_hash(client, hash)
        # new(client, hash.delete('access_token') || hash.delete(:access_token), hash)
        new(client,
            hash.delete('provider') || hash.delete(:provider),
            hash.delete('access_token') || hash.delete(:access_token),
            hash.delete('oauth_token') || hash.delete(:oauth_token),
            hash.delete('oauth_token_secret') || hash.delete(:oauth_token_secret),
            hash)
      end
    end

    def initialize(client, provider, token, oauth_token, oauth_token_secret, opts = {})
      super client, token, opts
      @provider = provider
      @oauth_token = oauth_token.to_s
      @oauth_token_secret = oauth_token_secret.to_s
    end

    def me()<commit_msg>Removes unused code<commit_after>module Oauthio
  class AccessToken < OAuth2::AccessToken
    attr_reader :provider, :oauth_token, :oauth_token_secret

    class << self
      # Initializes an AccessToken from a Hash
      #
      # @param [Client] the OAuth2::Client instance
      # @param [Hash] a hash of AccessToken property values
      # @return [AccessToken] the initalized AccessToken
      def from_hash(client, hash)
        new(client,
            hash.delete('provider') || hash.delete(:provider),
            hash.delete('access_token') || hash.delete(:access_token),
            hash.delete('oauth_token') || hash.delete(:oauth_token),
            hash.delete('oauth_token_secret') || hash.delete(:oauth_token_secret),
            hash)
      end
    end

    def initialize(client, provider, token, oauth_token, oauth_token_secret, opts = {})
      super client, token, opts
      @provider = provider
      @oauth_token = oauth_token.to_s
      @oauth_token_secret = oauth_token_secret.to_s
    end

    def me()
{'fraction_non_alphanumeric': 0.10565684899485742, 'fraction_numerical': 0.0018700327255726976, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6315370', 'n_tokens_mistral': 636, 'n_tokens_neox': 631, 'n_words': 145}