<commit_before>%p.back= link_to "Back to application list", :applications
%h2= @application.name

%ul.nav
  %li= link_to "Notifications", [@application, :notifications]
  %li= link_to "Edit application", [:edit, @application]
  %li= link_to "Delete application", @application, :method => :delete, :data => {:confirm => "Are you sure you wish to remove this application?"}
  

%h3 Environments
%table.data
  %thead
    %td Name
    %td APNS Env.
  %tbody
    - if @environments.empty?
      %tr
        %td.empty{:colspan => 1} There are no environments configured for this application.
    - else
      - @environments.each do |environment|
        %tr
          %td= link_to environment.name, [:edit, @application, environment]
          %td= environment.apns_environment.humanize
%p.add= link_to "Add an environment", [:new, @application, :environment], :class => 'button'


%h3 Auth Keys
%table.data
  %thead
    %tr
      %td Name
      %td Key
      %td Environment
  %tbody
    - if @auth_keys.empty?
      %tr
        %td.empty{:colspan => 3} There are no auth keys configured for this application.
    - else
      - @auth_keys.each do |auth_key|
        %tr
          %td= link_to auth_key.name, [:edit, @application, auth_key]
          %td= auth_key.key
          %td= auth_key.environment.try(:name) || 'None'
%p.add= link_to "Add an auth key", [:new, @application, :auth_key], :class => 'button'
<commit_msg>devices button<commit_after>%p.back= link_to "Back to application list", :applications
%h2= @application.name

%ul.nav
  %li= link_to "Notifications", [@application, :notifications]
  %li= link_to "Devices", [@application, :devices]
  %li= link_to "Edit application", [:edit, @application]
  %li= link_to "Delete application", @application, :method => :delete, :data => {:confirm => "Are you sure you wish to remove this application?"}
  

%h3 Environments
%table.data
  %thead
    %td Name
    %td APNS Env.
  %tbody
    - if @environments.empty?
      %tr
        %td.empty{:colspan => 1} There are no environments configured for this application.
    - else
      - @environments.each do |environment|
        %tr
          %td= link_to environment.name, [:edit, @application, environment]
          %td= environment.apns_environment.humanize
%p.add= link_to "Add an environment", [:new, @application, :environment], :class => 'button'


%h3 Auth Keys
%table.data
  %thead
    %tr
      %td Name
      %td Key
      %td Environment
  %tbody
    - if @auth_keys.empty?
      %tr
        %td.empty{:colspan => 3} There are no auth keys configured for this application.
    - else
      - @auth_keys.each do |auth_key|
        %tr
          %td= link_to auth_key.name, [:edit, @application, auth_key]
          %td= auth_key.key
          %td= auth_key.environment.try(:name) || 'None'
%p.add= link_to "Add an auth key", [:new, @application, :auth_key], :class => 'button'

{'fraction_non_alphanumeric': 0.13614374568071874, 'fraction_numerical': 0.0034554250172771253, 'mean_word_length': 3.0264255910987483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '655090', 'n_tokens_mistral': 959, 'n_tokens_neox': 941, 'n_words': 284}