<commit_before>- summary = local_assigns.fetch :summary, false

%article.article
  .page-header
    %h1.article-title= link_to article.title, article
    = article.byline

  .article-body
    - if summary
      = article.rendered_summary
    - else
      = article.rendered_body

  - if summary
    %ul.list-inline
      %li
        =link_to article, class: 'btn btn-primary' do
          Read the full article
      %li
        = link_to article_path(article, anchor: 'comment-area'), class: 'btn btn-default' do
          Read the comments (#{article.comments.count})

<commit_msg>Display the summary links as a navbar.<commit_after>- summary = local_assigns.fetch :summary, false

%article.article
  .page-header
    %h1.article-title= link_to article.title, article
    = article.byline

  .article-body
    - if summary
      = article.rendered_summary
    - else
      = article.rendered_body

  - if summary
    = nav as: :pills do
      =link_to article do
        Read the full article
      = link_to article_path(article, anchor: 'comment-area') do
        Read the comments (#{article.comments.count})


{'fraction_non_alphanumeric': 0.09775784753363229, 'fraction_numerical': 0.0017937219730941704, 'mean_word_length': 2.576923076923077, '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': '7317119', 'n_tokens_mistral': 345, 'n_tokens_neox': 333, 'n_words': 91}