<commit_before>Dropbox
=======

Dropbox supports both OAuth 1 and 2.

- Register a new application at `Dropbox Developers`_, and follow the
  instructions below for the version of OAuth for which you are adding
  support.

OAuth1
------

Add the Dropbox OAuth backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social_core.backends.dropbox.DropboxOAuth',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_KEY = ''
      SOCIAL_AUTH_DROPBOX_SECRET = ''

OAuth2
------

Add the Dropbox OAuth2 backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social_core.backends.dropbox.DropboxOAuth2',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_OAUTH2_KEY = ''
      SOCIAL_AUTH_DROPBOX_OAUTH2_SECRET = ''

.. _Dropbox Developers: https://www.dropbox.com/developers/apps
<commit_msg>Port PR #1018 from illing2005<commit_after>Dropbox
=======

Dropbox supports both OAuth 1 and 2.

- Register a new application at `Dropbox Developers`_, and follow the
  instructions below for the version of OAuth for which you are adding
  support.


OAuth2 Api V2
------

Add the Dropbox OAuth2 backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social.backends.dropbox.DropboxOAuth2V2',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_OAUTH2_KEY = ''
      SOCIAL_AUTH_DROPBOX_OAUTH2_SECRET = ''

OAuth1
------

.. deprecated:: V1 api is deprecated.
https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/
Add the Dropbox OAuth backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social_core.backends.dropbox.DropboxOAuth',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_KEY = ''
      SOCIAL_AUTH_DROPBOX_SECRET = ''

OAuth2
------

.. deprecated:: V1 api is deprecated.
https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/

Add the Dropbox OAuth2 backend to your settings page::

    SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
        ...
        'social_core.backends.dropbox.DropboxOAuth2',
        ...
    )

- Fill ``App Key`` and ``App Secret`` values in the settings::

      SOCIAL_AUTH_DROPBOX_OAUTH2_KEY = ''
      SOCIAL_AUTH_DROPBOX_OAUTH2_SECRET = ''

.. _Dropbox Developers: https://www.dropbox.com/developers/apps

{'fraction_non_alphanumeric': 0.11246081504702195, 'fraction_numerical': 0.01841692789968652, 'mean_word_length': 2.8623298033282905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1327543', 'n_tokens_mistral': 875, 'n_tokens_neox': 843, 'n_words': 206}