<commit_before><% if measure.has_measure_conditions? %>
<div class='conditions' id='<%= measure.id %>' data-popup='<%= measure.destination %>-<%= measure.id %>-conditions'>
  <article>
    <table class="small-table">
      <caption>
        <h2 class="heading-medium"><%= measure.measure_type.description %> for <%= measure.geographical_area.description %></h2>
      </caption>
      <thead>
        <tr>
          <th>Condition</th>
          <th>Document code</th>
          <th>Requirement</th>
          <th>Action</th>
          <th>Duty expression</th>
        </tr>
      </thead>
      <tbody>
        <%= render partial: "measure_conditions/measure_condition", collection: measure.measure_conditions, locals: { measure: measure } %>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<% if measure.legal_act.present? %>
<div class='regulations' id='<%= measure.legal_act.url_safe_code %>' data-popup='<%= measure.destination %>-<%= measure.legal_act.url_safe_code %>-regulations'>
  <article>
    <table class="small-table">
      <caption>
        <h2>Council Regulation (EEC)</h2>
      </caption>
      <thead>
        <tr>
          <th>Regulation No.</th>
          <th>Start date</th>
          <th>End date</th>
          <th>Publication date</th>
          <th>Journal No.</th>
          <th>Journal page</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td><%= measure.legal_act.generating_regulation_code %></td>
          <td><%= measure.legal_act.validity_start_date %></td>
          <td><%= measure.legal_act.validity_end_date %></td>
          <td><%= measure.legal_act.published_date %></td>
          <td><%= measure.legal_act.officialjournal_number %></td>
          <td><%= measure.legal_act.officialjournal_page %></td>
          <td>
            <%= link_to "eurlex", measure.legal_act.url, target: '_blank', rel: 'external', class: 'print-link-without-description' %>
          </td>
        </tr>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<% measure.footnotes.each do |footnote| %>
<div class='footnotes' id='<%= footnote.id %>' data-popup='<%= footnote.id %>'>
  <article>
    <table class="small-table">
      <caption>
        <h2 class="heading-medium">Footnote for measure</h2>
      </caption>
      <thead>
        <tr>
          <th>Code</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <%= render footnote %>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<%= render measure.additional_code if measure.has_additional_code? %><commit_msg>put EU link into a first column on popup<commit_after><% if measure.has_measure_conditions? %>
<div class='conditions' id='<%= measure.id %>' data-popup='<%= measure.destination %>-<%= measure.id %>-conditions'>
  <article>
    <table class="small-table">
      <caption>
        <h2 class="heading-medium"><%= measure.measure_type.description %> for <%= measure.geographical_area.description %></h2>
      </caption>
      <thead>
        <tr>
          <th>Condition</th>
          <th>Document code</th>
          <th>Requirement</th>
          <th>Action</th>
          <th>Duty expression</th>
        </tr>
      </thead>
      <tbody>
        <%= render partial: "measure_conditions/measure_condition", collection: measure.measure_conditions, locals: { measure: measure } %>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<% if measure.legal_act.present? %>
<div class='regulations' id='<%= measure.legal_act.url_safe_code %>' data-popup='<%= measure.destination %>-<%= measure.legal_act.url_safe_code %>-regulations'>
  <article>
    <table class="small-table">
      <caption>
        <h2>Council Regulation (EEC)</h2>
      </caption>
      <thead>
        <tr>
          <th>Regulation No.</th>
          <th>Start date</th>
          <th>End date</th>
          <th>Publication date</th>
          <th>Journal No.</th>
          <th>Journal page</th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            <%= link_to measure.legal_act.generating_regulation_code, measure.legal_act.url, target: '_blank', rel: 'external', class: 'print-link-without-description' %>
          </td>
          <td><%= measure.legal_act.validity_start_date %></td>
          <td><%= measure.legal_act.validity_end_date %></td>
          <td><%= measure.legal_act.published_date %></td>
          <td><%= measure.legal_act.officialjournal_number %></td>
          <td><%= measure.legal_act.officialjournal_page %></td>
        </tr>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<% measure.footnotes.each do |footnote| %>
<div class='footnotes' id='<%= footnote.id %>' data-popup='<%= footnote.id %>'>
  <article>
    <table class="small-table">
      <caption>
        <h2 class="heading-medium">Footnote for measure</h2>
      </caption>
      <thead>
        <tr>
          <th>Code</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <%= render footnote %>
      </tbody>
    </table>
  </article>
</div>
<% end %>

<%= render measure.additional_code if measure.has_additional_code? %>
{'fraction_non_alphanumeric': 0.18479938271604937, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 2.39554682383759, 'pattern_counts': {'":': 0, '<': 236, '<?xml version=': 0, '>': 236, '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': '363035', 'n_tokens_mistral': 1779, 'n_tokens_neox': 1663, 'n_words': 315}