<commit_before>- page_title "Applications"
%h3.page-title
  = page_title
%p.light
  - if user_oauth_applications?
    Manage applications that can use GitLab as an OAuth provider, 
    and applications that you've authorized to use your account.
  - else
    Manage applications that you've authorized to use your account.
%hr

- if user_oauth_applications?
  .oauth-applications
    %h3
      Your applications
      .pull-right
        = link_to 'New Application', new_oauth_application_path, class: 'btn btn-success'
    - if @applications.any?
      %table.table.table-striped
        %thead
          %tr
            %th Name
            %th Callback URL
            %th Clients
            %th
            %th
        %tbody
          - @applications.each do |application|
            %tr{:id => "application_#{application.id}"}
              %td= link_to application.name, oauth_application_path(application)
              %td
                - application.redirect_uri.split.each do |uri|
                  %div= uri
              %td= application.access_tokens.count
              %td= link_to 'Edit', edit_oauth_application_path(application), class: 'btn btn-link btn-sm'
              %td= render 'doorkeeper/applications/delete_form', application: application

.oauth-authorized-applications.prepend-top-20
  - if user_oauth_applications?
    %h3
      Authorized applications

  - if @authorized_tokens.any?
    %table.table.table-striped
      %thead
        %tr
          %th Name
          %th Authorized At
          %th Scope
          %th
      %tbody
        - @authorized_apps.each do |app|
          - token = app.authorized_tokens.order('created_at desc').first
          %tr{:id => "application_#{app.id}"}
            %td= app.name
            %td= token.created_at
            %td= token.scopes
            %td= render 'doorkeeper/authorized_applications/delete_form', application: app
        - @authorized_anonymous_tokens.each do |token|
          %tr
            %td
              Anonymous
              %div.help-block
                %em Authorization was granted by entering your username and password in the application.
            %td= token.created_at
            %td= token.scopes
            %td= render 'doorkeeper/authorized_applications/delete_form', token: token
  - else
    %p.light You dont have any authorized applications<commit_msg>dont -> don't<commit_after>- page_title "Applications"
%h3.page-title
  = page_title
%p.light
  - if user_oauth_applications?
    Manage applications that can use GitLab as an OAuth provider, 
    and applications that you've authorized to use your account.
  - else
    Manage applications that you've authorized to use your account.
%hr

- if user_oauth_applications?
  .oauth-applications
    %h3
      Your applications
      .pull-right
        = link_to 'New Application', new_oauth_application_path, class: 'btn btn-success'
    - if @applications.any?
      %table.table.table-striped
        %thead
          %tr
            %th Name
            %th Callback URL
            %th Clients
            %th
            %th
        %tbody
          - @applications.each do |application|
            %tr{:id => "application_#{application.id}"}
              %td= link_to application.name, oauth_application_path(application)
              %td
                - application.redirect_uri.split.each do |uri|
                  %div= uri
              %td= application.access_tokens.count
              %td= link_to 'Edit', edit_oauth_application_path(application), class: 'btn btn-link btn-sm'
              %td= render 'doorkeeper/applications/delete_form', application: application

.oauth-authorized-applications.prepend-top-20
  - if user_oauth_applications?
    %h3
      Authorized applications

  - if @authorized_tokens.any?
    %table.table.table-striped
      %thead
        %tr
          %th Name
          %th Authorized At
          %th Scope
          %th
      %tbody
        - @authorized_apps.each do |app|
          - token = app.authorized_tokens.order('created_at desc').first
          %tr{:id => "application_#{app.id}"}
            %td= app.name
            %td= token.created_at
            %td= token.scopes
            %td= render 'doorkeeper/authorized_applications/delete_form', application: app
        - @authorized_anonymous_tokens.each do |token|
          %tr
            %td
              Anonymous
              %div.help-block
                %em Authorization was granted by entering your username and password in the application.
            %td= token.created_at
            %td= token.scopes
            %td= render 'doorkeeper/authorized_applications/delete_form', token: token
  - else
    %p.light You don't have any authorized applications
{'fraction_non_alphanumeric': 0.08730325288562435, 'fraction_numerical': 0.002098635886673662, 'mean_word_length': 1.9824780976220275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3735491', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1329, 'n_words': 346}