<commit_before>module OAuth2
  class AccessToken
    attr_reader :client, :token, :refresh_token

    def initialize(client, token, refresh_token = nil)
      @client = client
      @token = token
      @refresh_token = refresh_token
    end
    
    def request(verb, path, params = {}, headers = {})
      @client.request(verb, path, params.merge('access_token' => @token), headers)
    end
    
    def get(path, params = {}, headers = {})
      request(:get, path, params, headers)
    end<commit_msg>Added the authorization request header in §§ 5-1:5-2 of draft-ietf-oauth-v2-05<commit_after>module OAuth2
  class AccessToken
    attr_reader :client, :token, :refresh_token

    def initialize(client, token, refresh_token = nil)
      @client = client
      @token = token
      @refresh_token = refresh_token
    end
    
    def request(verb, path, params = {}, headers = {})
      @client.request(verb, path, params.merge('access_token' => @token), headers.merge('Authorization' => "Token token=\"#{@token}\""))
    end
    
    def get(path, params = {}, headers = {})
      request(:get, path, params, headers)
    end
{'fraction_non_alphanumeric': 0.13197519929140833, 'fraction_numerical': 0.007971656333038087, 'mean_word_length': 3.1544117647058822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3365182', 'n_tokens_mistral': 342, 'n_tokens_neox': 341, 'n_words': 90}