<commit_before><div class="js-tabs nav-tabs">
  <ul>
    <li class='active'>
      <a href="#overview">Overview</a>
    </li>
    <li>
      <a href="#import">Import</a>
    </li>
    <li>
      <a href="#export">Export</a>
    </li>
  </ul>
</div>

<div class="js-tab-content tab-content">
<!-- Overview tab -->
  <article class="js-tab-pane tab-pane active" id="overview">
    <%= render partial: 'declarables/consigned', locals: { declarable: declarable } %>
    <%= render partial: 'declarables/filtered', locals: { search: @search } %>
    <div class="inner">
      <h1 class="visuallyhidden">Overview</h1>
      <div class="grid-row import-and-export-boxes">
        <div class="column-one-half">
          <div class="import box">
            <h2 class="heading-medium">Import</h2>
            <p>The commodity code for importing is <strong><%= declarable.code %></strong>.</p>
            <% national_vat = declarable.import_measures.vat.national.to_a %>
            <% if national_vat.count > 0 %>
              <p>
                Goods are subject to
                <%= national_vat.map{ |m| "<strong>#{m.measure_type.description}</strong>" }.join(' and ').html_safe + (national_vat.count > 1 ? ',' : '.') %>
                <% if national_vat.count > 1 %>
                  <%= link_to 'please see related guidance as to when zero VAT applies', 'https://www.gov.uk/guidance/rates-of-vat-on-different-goods-and-services#introduction', target: :_blank %>.
                <% end %>
              </p>
            <% else %>
              <p>We are temporarily unable to display the VAT rate, please refer to the paper tariff.</p>
            <% end %>
            <% if declarable.basic_duty_rate.present? %>
              <p>Importing from outside the EU is subject to a third country duty of <strong><%= declarable.basic_duty_rate.html_safe %></strong> unless subject to other measures.</p>
            <% else %>
              <p>Importing from outside the EU is subject to <strong>variable</strong> third country duty.</p>
            <% end %>
            <p> Import measures and restrictions for specific countries can be found under the <a href="#import">import</a> tab.</p>
          </div>
        </div>

        <div class="column-one-half">
          <div class="export box">
            <h2 class="heading-medium">Export</h2>
            <p>The commodity code for exporting and intrastat reporting is <strong><%= declarable.display_export_code %></strong>.</p>

            <% if declarable.all_footnotes.compact.select(&:eco?).any? %>
              <p>
                <%= link_to 'You may need to apply for a licence from the Export Control Organisation (ECO) as your goods may be controlled under the Export Control Order 2008, or under EU Council Regulation 428/2009.',
                            'https://www.gov.uk/guidance/uk-strategic-export-control-lists-the-consolidated-list-of-strategic-military-and-dual-use-items',
                            target: :_blank %>.
              </p>
            <% end %>

            <p>Export measures and restrictions for specific countries can be found under the <a href="#export">export</a> tab.</p>
          </div>
        </div>
      </div>
    <%= render 'headings/footnote', footnotes: declarable.footnotes %>
    <% if declarable.meursing_code? %>
      <h2 class="heading-medium">This commodity has a meursing code</h2>
      <p>Use the <%= link_to "Look up Meursing code", "https://www.gov.uk/additional-commodity-code", rel: "external", target: "_blank", title: "Opens in a new window" %> tool to find the additional code required for importing and exporting. To calculate the duty rate, enter the meursing code (without the 7 at the start) into the <%= link_to "meursing calculator", declarable.meursing_tool_link_for(@search.date.to_taric_date), rel: "external", target: "_blank", title: "Opens in a new window" %>.</p>
    <% end %><commit_msg>fix double fullstops in copy<commit_after><div class="js-tabs nav-tabs">
  <ul>
    <li class='active'>
      <a href="#overview">Overview</a>
    </li>
    <li>
      <a href="#import">Import</a>
    </li>
    <li>
      <a href="#export">Export</a>
    </li>
  </ul>
</div>

<div class="js-tab-content tab-content">
<!-- Overview tab -->
  <article class="js-tab-pane tab-pane active" id="overview">
    <%= render partial: 'declarables/consigned', locals: { declarable: declarable } %>
    <%= render partial: 'declarables/filtered', locals: { search: @search } %>
    <div class="inner">
      <h1 class="visuallyhidden">Overview</h1>
      <div class="grid-row import-and-export-boxes">
        <div class="column-one-half">
          <div class="import box">
            <h2 class="heading-medium">Import</h2>
            <p>The commodity code for importing is <strong><%= declarable.code %></strong>.</p>
            <% national_vat = declarable.import_measures.vat.national.to_a %>
            <% if national_vat.count > 0 %>
              <p>
                Goods are subject to
                <%= national_vat.map{ |m| "<strong>#{m.measure_type.description}</strong>" }.join(' and ').html_safe + (national_vat.count > 1 ? ',' : '.') %>
                <% if national_vat.count > 1 %>
                  <%= link_to 'please see related guidance as to when zero VAT applies', 'https://www.gov.uk/guidance/rates-of-vat-on-different-goods-and-services#introduction', target: :_blank %>.
                <% end %>
              </p>
            <% else %>
              <p>We are temporarily unable to display the VAT rate, please refer to the paper tariff.</p>
            <% end %>
            <% if declarable.basic_duty_rate.present? %>
              <p>Importing from outside the EU is subject to a third country duty of <strong><%= declarable.basic_duty_rate.html_safe %></strong> unless subject to other measures.</p>
            <% else %>
              <p>Importing from outside the EU is subject to <strong>variable</strong> third country duty.</p>
            <% end %>
            <p> Import measures and restrictions for specific countries can be found under the <a href="#import">import</a> tab.</p>
          </div>
        </div>

        <div class="column-one-half">
          <div class="export box">
            <h2 class="heading-medium">Export</h2>
            <p>The commodity code for exporting and intrastat reporting is <strong><%= declarable.display_export_code %></strong>.</p>

            <% if declarable.all_footnotes.compact.select(&:eco?).any? %>
              <p>
                <%= link_to 'You may need to apply for a licence from the Export Control Organisation (ECO) as your goods may be controlled under the Export Control Order 2008, or under EU Council Regulation 428/2009',
                            'https://www.gov.uk/guidance/uk-strategic-export-control-lists-the-consolidated-list-of-strategic-military-and-dual-use-items',
                            target: :_blank %>.
              </p>
            <% end %>

            <p>Export measures and restrictions for specific countries can be found under the <a href="#export">export</a> tab.</p>
          </div>
        </div>
      </div>
    <%= render 'headings/footnote', footnotes: declarable.footnotes %>
    <% if declarable.meursing_code? %>
      <h2 class="heading-medium">This commodity has a meursing code</h2>
      <p>Use the <%= link_to "Look up Meursing code", "https://www.gov.uk/additional-commodity-code", rel: "external", target: "_blank", title: "Opens in a new window" %> tool to find the additional code required for importing and exporting. To calculate the duty rate, enter the meursing code (without the 7 at the start) into the <%= link_to "meursing calculator", declarable.meursing_tool_link_for(@search.date.to_taric_date), rel: "external", target: "_blank", title: "Opens in a new window" %>.</p>
    <% end %>
{'fraction_non_alphanumeric': 0.1468274111675127, 'fraction_numerical': 0.0058375634517766496, 'mean_word_length': 2.4748677248677247, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 201, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, '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': '113407', 'n_tokens_mistral': 2474, 'n_tokens_neox': 2260, 'n_words': 656}