<commit_before># Signet

<dl>
  <dt>Homepage</dt><dd><a href="http://signet.rubyforge.org/">signet.rubyforge.org</a></dd>
  <dt>Author</dt><dd><a href="mailto:<EMAIL>"><NAME></a></dd>
  <dt>Copyright</dt><dd>Copyright © 2010 Google, Inc.</dd>
  <dt>License</dt><dd>Apache 2.0</dd>
</dl>

## Description

Signet is an OAuth 1.0 / OAuth 2.0 implementation.

## Reference

- {Signet::OAuth1}
- {Signet::OAuth1::Client}
- {Signet::OAuth1::Credential}
- {Signet::OAuth2}
- {Signet::OAuth2::Client}

## Example Usage for Google

    require 'signet/oauth_1/client'
    client = Signet::OAuth1::Client.new(
      :temporary_credential_uri =>
        'https://www.google.com/accounts/OAuthGetRequestToken',
      :authorization_uri =>
        'https://www.google.com/accounts/OAuthAuthorizeToken',
      :token_credential_uri =>
        'https://www.google.com/accounts/OAuthGetAccessToken',
      :client_credential_key => 'anonymous',
      :client_credential_secret => 'anonymous'
    )
    client.fetch_temporary_credential!(:additional_parameters => {
      :scope => 'https://mail.google.com/mail/feed/atom'
    })
    # Send the user to client.authorization_uri, obtain verifier
    client.fetch_token_credential!(:verifier => '12345')
    response = client.fetch_protected_resource(
      :uri => 'https://mail.google.com/mail/feed/atom'
    )
    # The Rack response format is used here
    status, headers, body = response

## Install

`sudo gem install signet`

Be sure http://rubygems.org/ is in your gem sources.<commit_msg>Fixed to use code block.<commit_after># Signet

<dl>
  <dt>Homepage</dt><dd><a href="http://signet.rubyforge.org/">signet.rubyforge.org</a></dd>
  <dt>Author</dt><dd><a href="mailto:<EMAIL>"><NAME></a></dd>
  <dt>Copyright</dt><dd>Copyright © 2010 Google, Inc.</dd>
  <dt>License</dt><dd>Apache 2.0</dd>
</dl>

## Description

Signet is an OAuth 1.0 / OAuth 2.0 implementation.

## Reference

- {Signet::OAuth1}
- {Signet::OAuth1::Client}
- {Signet::OAuth1::Credential}
- {Signet::OAuth2}
- {Signet::OAuth2::Client}

## Example Usage for Google

    require 'signet/oauth_1/client'
    client = Signet::OAuth1::Client.new(
      :temporary_credential_uri =>
        'https://www.google.com/accounts/OAuthGetRequestToken',
      :authorization_uri =>
        'https://www.google.com/accounts/OAuthAuthorizeToken',
      :token_credential_uri =>
        'https://www.google.com/accounts/OAuthGetAccessToken',
      :client_credential_key => 'anonymous',
      :client_credential_secret => 'anonymous'
    )
    client.fetch_temporary_credential!(:additional_parameters => {
      :scope => 'https://mail.google.com/mail/feed/atom'
    })
    # Send the user to client.authorization_uri, obtain verifier
    client.fetch_token_credential!(:verifier => '<PASSWORD>')
    response = client.fetch_protected_resource(
      :uri => 'https://mail.google.com/mail/feed/atom'
    )
    # The Rack response format is used here
    status, headers, body = response

## Install

`sudo gem install signet`

Be sure `http://rubygems.org/` is in your gem sources.
{'fraction_non_alphanumeric': 0.1641742522756827, 'fraction_numerical': 0.012678803641092327, 'mean_word_length': 3.822884012539185, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 70, 'https://': 10, 'lorem ipsum': 0, 'www.': 6, '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': '5138155', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1061, 'n_words': 179}