<commit_before><% if person.has_announcements? %>
  <section id="announcements">
    <%= render "govuk_publishing_components/components/heading", {
        text: "Announcements",
        id: "announcements",
        margin_bottom: 5,
    } %>

    <%= render "govuk_publishing_components/components/subscription-links", {
        email_signup_link: person.email_signup,
        feed_link: person.subscribe_to_feed,
        margin_bottom: 5,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
        items: person.announcement_items
    } %>

    <div class="read-more">
      <%= link_to "View all announcements", person.redirect_to_news_and_communications, class: "govuk-link" %>
    </div>
  </section>
<% end %>
<commit_msg>Fix link to all announcements<commit_after><% if person.has_announcements? %>
  <section id="announcements">
    <%= render "govuk_publishing_components/components/heading", {
        text: "Announcements",
        id: "announcements",
        margin_bottom: 5,
    } %>

    <%= render "govuk_publishing_components/components/subscription-links", {
        email_signup_link: person.email_signup,
        feed_link: person.subscribe_to_feed,
        margin_bottom: 5,
    } %>

    <%= render "govuk_publishing_components/components/document_list", {
        items: person.announcement_items
    } %>

    <div class="read-more">
      <%= link_to "View all announcements", person.link_to_news_and_communications, class: "govuk-link" %>
    </div>
  </section>
<% end %>

{'fraction_non_alphanumeric': 0.13185378590078328, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 3.4178674351585014, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5987956', 'n_tokens_mistral': 512, 'n_tokens_neox': 476, 'n_words': 78}