<commit_before><#include "citation.ftl" />
<#macro amendmentNotice amendmentGroup title linkText>
<div class="amendment amendment-${amendmentGroup.type} toc-section">
  <#assign tocTitle>
    <#t/>${title}<#if amendmentGroup.amendments?size gt 1> (${amendmentGroup.amendments?size})</#if>
  </#assign>
  <a data-toc="amendment-${amendmentGroup.type}" title="${tocTitle}" id="amendment-${amendmentGroup.type}" name="amendment-${amendmentGroup.type}"></a>

  <h2>${title}</h2>
  <#list amendmentGroup.amendments as amendment>
    <#if amendment.body??>
      <div class="amendment-body">
      ${amendment.body}
      </div>
    </#if>
    <div class="amendment-citation">
      <p>
        <#if amendment.date??>
          <span class="amendment-date">
            <@formatJsonDate date="${amendment.date}" format="d MMM yyyy" />:
          </span>
        </#if>

        <@displayCitation amendment false />

        <#if amendment.doi??>

          <@siteLink path="article?id=" ; path>
            <span class="link-separator"> </span>
            <a href="${path + amendment.doi}" class="amendment-link">
            ${linkText}</a>
          </@siteLink>
        </#if>
      </p>
    </div>
  </#list>
</div>
</#macro>

<#list amendments as amendmentGroup>
  <#if amendmentGroup.type == 'correction'>
    <@amendmentNotice amendmentGroup,
    (amendmentGroup.amendments?size == 1)?string("Correction", "Corrections"),
    "View correction" />
  </#if>
  <#if amendmentGroup.type == 'eoc'>
    <@amendmentNotice amendmentGroup "Expression of Concern" "View expression of concern" />
  </#if>
  <#if amendmentGroup.type == 'retraction'>
    <@amendmentNotice amendmentGroup "Retraction" "View retraction" />
  </#if>
</#list><commit_msg>DPRO-2559: Debug non-unique anchors on amendment group boxes<commit_after><#include "citation.ftl" />
<#macro amendmentNotice amendmentGroup title linkText index>
<div class="amendment amendment-${amendmentGroup.type} toc-section">
  <#assign tocTitle>
    <#t/>${title}<#if amendmentGroup.amendments?size gt 1> (${amendmentGroup.amendments?size})</#if>
  </#assign>
  <a data-toc="amendment-${index?c}" title="${tocTitle}" id="amendment-${index?c}" name="amendment-${index?c}"></a>

  <h2>${title}</h2>
  <#list amendmentGroup.amendments as amendment>
    <#if amendment.body??>
      <div class="amendment-body">
      ${amendment.body}
      </div>
    </#if>
    <div class="amendment-citation">
      <p>
        <#if amendment.date??>
          <span class="amendment-date">
            <@formatJsonDate date="${amendment.date}" format="d MMM yyyy" />:
          </span>
        </#if>

        <@displayCitation amendment false />

        <#if amendment.doi??>

          <@siteLink path="article?id=" ; path>
            <span class="link-separator"> </span>
            <a href="${path + amendment.doi}" class="amendment-link">
            ${linkText}</a>
          </@siteLink>
        </#if>
      </p>
    </div>
  </#list>
</div>
</#macro>

<#list amendments as amendmentGroup>
  <#if amendmentGroup.type == 'correction'>
    <@amendmentNotice amendmentGroup,
    (amendmentGroup.amendments?size == 1)?string("Correction", "Corrections"),
    "View correction" amendmentGroup_index />
  </#if>
  <#if amendmentGroup.type == 'eoc'>
    <@amendmentNotice amendmentGroup "Expression of Concern" "View expression of concern" amendmentGroup_index />
  </#if>
  <#if amendmentGroup.type == 'retraction'>
    <@amendmentNotice amendmentGroup "Retraction" "View retraction" amendmentGroup_index />
  </#if>
</#list>
{'fraction_non_alphanumeric': 0.1810780460415497, 'fraction_numerical': 0.003368893879842785, 'mean_word_length': 3.3292831105710814, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '1889771', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1144, 'n_words': 232}