<commit_before>%h1 Newsletters

%div.row
  %ul.block-grid-md-4.block-grid-sm-2
    - @newsletters.each do |newsletter|
      %li
        = link_to newsletter do
          = image_tag attachment_url(newsletter, :featured_image, :fill, 300, 300, format: "jpg")
        %h2
          = link_to newsletter.name, newsletter
        = link_to 'Learn more', newsletter.url, class: 'btn btn-block btn-lg btn-primary'
        = newsletter.description
  %br

  = link_to 'New Newsletter', new_newsletter_path<commit_msg>Set up the newsletter set up<commit_after>%div.row
  %h1
    = params[:tag].capitalize.html_safe
    Newsletters

  %ul.block-grid-md-4.block-grid-sm-2
    - @newsletters.each do |newsletter|
      %li
        = link_to newsletter do
          = image_tag attachment_url(newsletter, :featured_image, :fill, 300, 300, format: "jpg")
        %h2
          = link_to newsletter.name, newsletter
        = link_to 'Learn more', newsletter.url, class: 'btn btn-block btn-lg btn-primary'
        = newsletter.description
  %br
  - if current_user && current_user.is_admin?
    = link_to 'New Newsletter', new_newsletter_path

{'fraction_non_alphanumeric': 0.112488928255093, 'fraction_numerical': 0.01771479185119575, 'mean_word_length': 2.856655290102389, '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': '3815332', 'n_tokens_mistral': 402, 'n_tokens_neox': 369, 'n_words': 84}