<commit_before># OmniAuth Stable

This is the official OmniAuth strategy for authenticating to Stable. To
use it, you'll need to sign up for an OAuth2 Application ID and Secret
on the [Stable OAuth Applications Page](https://stable.bignerdranch.com/oauth/applications).

## Basic Rails Usage

In your `Gemfile`:

    gem 'omniauth-stable', github: 'bignerdranch/omniauth-stable'

Then add an in our Omniauth initializer add:

    Rails.application.config.middleware.use OmniAuth::Builder do
      provider :stable, ENV['STABLE_KEY'], ENV['STABLE_SECRET']
    end

And add the callback route to your `routes.rb`:

    get '/auth/:provider/callback', to: 'sessions#create'


Finally implement the `sessions#create` endpoint or whatever endpoint you decide to point the callback to setup your user's session.


## Development

New features or bug fixes are accepted via Pull Requests on GitHub. Please add test coverage for bugs and features and be sure the test suite is passing by running the tests:

    bundle exec rspec


## License

Copyright (c) 2013 <NAME>.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<commit_msg>fixes a typo<commit_after># OmniAuth Stable

This is the official OmniAuth strategy for authenticating to Stable. To
use it, you'll need to sign up for an OAuth2 Application ID and Secret
on the [Stable OAuth Applications Page](https://stable.bignerdranch.com/oauth/applications).

## Basic Rails Usage

In your `Gemfile`:

    gem 'omniauth-stable', github: 'bignerdranch/omniauth-stable'

Then in your OmniAuth initializer add:

    Rails.application.config.middleware.use OmniAuth::Builder do
      provider :stable, ENV['STABLE_KEY'], ENV['STABLE_SECRET']
    end

And add the callback route to your `routes.rb`:

    get '/auth/:provider/callback', to: 'sessions#create'


Finally implement the `sessions#create` endpoint or whatever endpoint you decide to point the callback to setup your user's session.


## Development

New features or bug fixes are accepted via Pull Requests on GitHub. Please add test coverage for bugs and features and be sure the test suite is passing by running the tests:

    bundle exec rspec


## License

Copyright (c) 2013 <NAME>.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
{'fraction_non_alphanumeric': 0.06248085758039816, 'fraction_numerical': 0.0030627871362940277, 'mean_word_length': 4.6407599309153715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6375861', 'n_tokens_mistral': 876, 'n_tokens_neox': 819, 'n_words': 435}