<commit_before><%=
  breadcrumbs(
    { 'Providers' => providers_path },
    { @provider.name => provider_path(@provider) },
    'API Accounts'
  )
%>

<%= page_header(@provider.name, 'API Access') %>

<%- if @api_subjects.empty? -%>
  <%= info_message('No API Accounts') do -%>
    <strong><%= @provider.name %></strong> does not yet have any API accounts
    created.
  <%- end -%>
<%- else -%>
  <table class="ui basic compact table">
    <thead>
      <tr>
        <th>X.509 CN</th>
        <th>Description</th>
        <th/>
      </tr>
    </thead>
    <tbody>
      <%- @api_subjects.each do |api_subject| -%>
        <tr>
          <td><%= api_subject.x509_cn %></td>
          <td><%= api_subject.description %></td>
          <td>
            <%= button_link_to([:edit, @provider, api_subject], class: 'tiny icon') do -%><commit_msg>Indicate if APISubject is functioning<commit_after><%=
  breadcrumbs(
    { 'Providers' => providers_path },
    { @provider.name => provider_path(@provider) },
    'API Accounts'
  )
%>

<%= page_header(@provider.name, 'API Access') %>

<%- if @api_subjects.empty? -%>
  <%= info_message('No API Accounts') do -%>
    <strong><%= @provider.name %></strong> does not yet have any API accounts
    created.
  <%- end -%>
<%- else -%>
  <table class="ui basic compact table">
    <thead>
      <tr>
        <th>X.509 CN</th>
        <th>Description</th>
        <th>Functioning</th>
        <th/>
      </tr>
    </thead>
    <tbody>
      <%- @api_subjects.each do |api_subject| -%>
        <tr>
          <td><%= api_subject.x509_cn %></td>
          <td><%= api_subject.description %></td>
          <td>
            <%- if api_subject.functioning? -%>
              <%= icon_tag('green checkmark') %> Yes
            <%- else -%>
              <%= icon_tag('yellow warning sign') %> No
            <%- end -%>
          </td>
          <td>
            <%= button_link_to([:edit, @provider, api_subject], class: 'tiny icon') do -%>
{'fraction_non_alphanumeric': 0.19635627530364372, 'fraction_numerical': 0.006072874493927126, 'mean_word_length': 2.1784565916398715, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 76, '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': '1350419', 'n_tokens_mistral': 733, 'n_tokens_neox': 688, 'n_words': 142}