<commit_before>- content_for :title do
  Open stories in Pivotal

%h2= pluralize(@stats.sum { |state, stories| stories.size }, 'open story', 'open stories')
%table.table.table-striped.table-hover.table-bordered.sortable
  %thead
    %tr
      %th{ data: { sort: 'string-ins' } } Type
      %th{ data: { sort: 'int' } } Count
  %tbody
    - @stats.each do |state, stories|
      %tr
        %td&= state
        %td= number_with_delimiter(stories.size)

- unless params[:summary_only]
  - @stats.each do |state, stories|
    %h3= pluralize(stories.size, "#{state} story", "#{state} stories")
    %table.table.table-striped.table-hover.table-bordered.sortable
      %thead
        %th{ data: { sort: 'string-ins' } } Name
        %th{ data: { sort: 'string-ins' } } Type
        %th{ data: { sort: 'string-ins' } } Owner
      %tbody
        - stories.each do |story|
          %tr
            %td
              %a{ href: story.url }&= story.name
            %td&= story.story_type
            %td
              - if story.owned_by
                %span{ title: story.owned_by['name'] }
                  &= story.owned_by['initials']
              - else
                &nbsp;<commit_msg>Turn author titles into real tooltips on /pivotal<commit_after>- content_for :title do
  Open stories in Pivotal

%h2= pluralize(@stats.sum { |state, stories| stories.size }, 'open story', 'open stories')
%table.table.table-striped.table-hover.table-bordered.sortable
  %thead
    %tr
      %th{ data: { sort: 'string-ins' } } Type
      %th{ data: { sort: 'int' } } Count
  %tbody
    - @stats.each do |state, stories|
      %tr
        %td&= state
        %td= number_with_delimiter(stories.size)

- unless params[:summary_only]
  - @stats.each do |state, stories|
    %h3= pluralize(stories.size, "#{state} story", "#{state} stories")
    %table.table.table-striped.table-hover.table-bordered.sortable
      %thead
        %th{ data: { sort: 'string-ins' } } Name
        %th{ data: { sort: 'string-ins' } } Type
        %th{ data: { sort: 'string-ins' } } Owner
      %tbody
        - stories.each do |story|
          %tr
            %td
              %a{ href: story.url }&= story.name
            %td&= story.story_type
            %td
              - if story.owned_by
                %span{ data: { toggle: 'tooltip' }, title: story.owned_by['name'] }
                  &= story.owned_by['initials']
              - else
                &nbsp;
{'fraction_non_alphanumeric': 0.14842148421484214, 'fraction_numerical': 0.0016400164001640015, 'mean_word_length': 2.01980198019802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3849598', 'n_tokens_mistral': 810, 'n_tokens_neox': 794, 'n_words': 189}