<commit_before>- @title = "Authorize '#{@client["name"]}'"

#login.dialog
  form.panel-body method="post" action="/oauth/authorize"
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    fieldset
      .field
        h1 Authorize #{@client["name"]}?

        - if @client["description"].present?
          p #{@client["description"]}

        p
          strong #{@client["name"]}
          | &nbsp;is requesting the following access:
          / The is_a array thing is a temporary safeguard against old cookies.
          ul
            - if @scope && @scope.is_a?(Array)
              - @scope.each do |scope|
                - if scope == "global"
                  li Read and write access to <strong>all</strong> your apps and your account.
                - elsif scope == "identity"
                  li Read and write access to your account (but none of your apps).
                - elsif scope == "read"
                  li Read access to <strong>all</strong> your apps.
                - elsif scope == "read-protected"
                  li Read access to the <strong>config vars</strong> of <strong>all</strong> your apps.
                - elsif scope == "write"
                  li Write access to <strong>all</strong> your apps.
                - elsif scope == "write-protected"
                  li Write access to the <strong>config vars</strong> of <strong>all</strong> your apps.
                - else
                  li Unknown scope: <strong>#{scope}</strong>.
            - else
              li Read and write access to <strong>all</strong> your apps and your account.

        p
          | You can revoke this authorization at any time from your <a href="http://dashboard.heroku.com/account">Dashboard account page</a> or using the <a href="https://github.com/heroku/heroku-oauth">heroku-oauth</a> CLI plugin.

    fieldset.submit
      p
        a href=Identity::Config.dashboard_url Deny Access
      input.submit type="submit" name="authorize" value="Allow Access"
<commit_msg>Add "read and write" instead of just "write"<commit_after>- @title = "Authorize '#{@client["name"]}'"

#login.dialog
  form.panel-body method="post" action="/oauth/authorize"
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    fieldset
      .field
        h1 Authorize #{@client["name"]}?

        - if @client["description"].present?
          p #{@client["description"]}

        p
          strong #{@client["name"]}
          | &nbsp;is requesting the following access:
          / The is_a array thing is a temporary safeguard against old cookies.
          ul
            - if @scope && @scope.is_a?(Array)
              - @scope.each do |scope|
                - if scope == "global"
                  li Read and write access to <strong>all</strong> your apps and your account.
                - elsif scope == "identity"
                  li Read and write access to your account (but none of your apps).
                - elsif scope == "read"
                  li Read access to <strong>all</strong> your apps.
                - elsif scope == "read-protected"
                  li Read access to the <strong>config vars</strong> of <strong>all</strong> your apps.
                - elsif scope == "write"
                  li Read and write access to <strong>all</strong> your apps.
                - elsif scope == "write-protected"
                  li Read and write access to the <strong>config vars</strong> of <strong>all</strong> your apps.
                - else
                  li Unknown scope: <strong>#{scope}</strong>.
            - else
              li Read and write access to <strong>all</strong> your apps and your account.

        p
          | You can revoke this authorization at any time from your <a href="http://dashboard.heroku.com/account">Dashboard account page</a> or using the <a href="https://github.com/heroku/heroku-oauth">heroku-oauth</a> CLI plugin.

    fieldset.submit
      p
        a href=Identity::Config.dashboard_url Deny Access
      input.submit type="submit" name="authorize" value="Allow Access"

{'fraction_non_alphanumeric': 0.11604758436513717, 'fraction_numerical': 0.00048555474629764507, 'mean_word_length': 1.968299711815562, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 2, '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': '3717939', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1103, 'n_words': 365}