<commit_before><%
  items ||= []
  see_more_link ||= false
  small ||= false
  margin_bottom ||= false

  brand ||= false
  brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)

  ul_classes = %w[govuk-list app-c-topic-list]
  ul_classes << "app-c-topic-list--small" if small
  ul_classes << "app-c-topic-list--margin-bottom" if margin_bottom
  ul_classes << brand_helper.brand_class if brand
%>
<% if items.any? %>
  <%= tag.ul({ class: ul_classes, lang: "en" }) do %>
    <% items.each do |item| %>
      <li class="app-c-topic-list__item">
        <%=
          link_to(
            item[:text],
            item[:path],
            data: item[:data_attributes],
            "aria-label": item[:aria_label],
            class: "govuk-link govuk-link--no-underline app-c-topic-list__link #{brand_helper.color_class}"
          )
        %>
      </li>
    <% end %>
    <% if see_more_link %>
      <li class="app-c-topic-list__item">
        <%=
          link_to(
            see_more_link[:text],
            see_more_link[:path],
            data: see_more_link[:data_attributes],
            class: "govuk-link app-c-topic-list__link #{brand_helper.color_class}"
          )
        %>
      </li>
    <% end %>
  <% end %>
<% end %>
<commit_msg>Fix deprecation: last argument as keyword parameters<commit_after><%
  items ||= []
  see_more_link ||= false
  small ||= false
  margin_bottom ||= false

  brand ||= false
  brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)

  ul_classes = %w[govuk-list app-c-topic-list]
  ul_classes << "app-c-topic-list--small" if small
  ul_classes << "app-c-topic-list--margin-bottom" if margin_bottom
  ul_classes << brand_helper.brand_class if brand
%>
<% if items.any? %>
  <%= tag.ul(class: ul_classes, lang: "en") do %>
    <% items.each do |item| %>
      <li class="app-c-topic-list__item">
        <%=
          link_to(
            item[:text],
            item[:path],
            data: item[:data_attributes],
            "aria-label": item[:aria_label],
            class: "govuk-link govuk-link--no-underline app-c-topic-list__link #{brand_helper.color_class}"
          )
        %>
      </li>
    <% end %>
    <% if see_more_link %>
      <li class="app-c-topic-list__item">
        <%=
          link_to(
            see_more_link[:text],
            see_more_link[:path],
            data: see_more_link[:data_attributes],
            class: "govuk-link app-c-topic-list__link #{brand_helper.color_class}"
          )
        %>
      </li>
    <% end %>
  <% end %>
<% end %>

{'fraction_non_alphanumeric': 0.15874855156431056, 'fraction_numerical': 0.0, 'mean_word_length': 2.257861635220126, 'pattern_counts': {'":': 2, '<': 45, '<?xml version=': 0, '>': 33, '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': '6528036', 'n_tokens_mistral': 909, 'n_tokens_neox': 863, 'n_words': 147}