<commit_before><div class="modal fade" id="modal-info-sample" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title"><%= t('samples.modal_info.head_title', sample: @sample.name) %></h4>
      </div>

      <div class="modal-body">
        <p>
          <span>
            <%= t "samples.modal_info.sample_type" %>
            <% if @sample.sample_type.present? %>
              <%= @sample.sample_type.name %>
            <% else %>
              <em><%= t "samples.modal_info.no_type" %></em>
            <% end %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.sample_group" %>
            <span class="glyphicon glyphicon-asterisk" style="<%= "color: #{@sample.sample_group.color}" if @sample.sample_group.present? %>"></span>
            <% if @sample.sample_group.present? %>
              <%= @sample.sample_group.name %>
            <% else %>
              <em><%= t "samples.modal_info.no_group" %></em>
            <% end %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.added_on" %>
            <%= l @sample.created_at, format: :full %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.added_by" %>
            <%= @sample.user.full_name %>
          </span>
          <% @sample.sample_custom_fields.each do |sample_custom_field| %>
            <br>
            <span>
              <%= t "samples.modal_info.custom_field", cf: sample_custom_field.custom_field.name %>
              <%= sample_custom_field.value %>
            </span>
          <% end %>
        </p>

      <% if @sample.my_modules.count > 0 %>
        <div>
          <%= t("samples.modal_info.title", nr: @sample.my_modules.count) %>
        </div>
        <div class="linked-children-datatable">
          <table id="sample-info-table" class="table dataTable no-footer" role="grid">
            <tbody><commit_msg>Add smart annotations in sample info modal [SCI-960]<commit_after><div class="modal fade" id="modal-info-sample" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title"><%= t('samples.modal_info.head_title', sample: @sample.name) %></h4>
      </div>

      <div class="modal-body">
        <p>
          <span>
            <%= t "samples.modal_info.sample_type" %>
            <% if @sample.sample_type.present? %>
              <%= @sample.sample_type.name %>
            <% else %>
              <em><%= t "samples.modal_info.no_type" %></em>
            <% end %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.sample_group" %>
            <span class="glyphicon glyphicon-asterisk" style="<%= "color: #{@sample.sample_group.color}" if @sample.sample_group.present? %>"></span>
            <% if @sample.sample_group.present? %>
              <%= @sample.sample_group.name %>
            <% else %>
              <em><%= t "samples.modal_info.no_group" %></em>
            <% end %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.added_on" %>
            <%= l @sample.created_at, format: :full %>
          </span>
          <br>
          <span>
            <%= t "samples.modal_info.added_by" %>
            <%= @sample.user.full_name %>
          </span>
          <% @sample.sample_custom_fields.each do |sample_custom_field| %>
            <br>
            <span>
              <%= t "samples.modal_info.custom_field", cf: sample_custom_field.custom_field.name %>
              <%= custom_auto_link(sample_custom_field.value, simple_format: false, team: @team) %>
            </span>
          <% end %>
        </p>

      <% if @sample.my_modules.count > 0 %>
        <div>
          <%= t("samples.modal_info.title", nr: @sample.my_modules.count) %>
        </div>
        <div class="linked-children-datatable">
          <table id="sample-info-table" class="table dataTable no-footer" role="grid">
            <tbody>
{'fraction_non_alphanumeric': 0.17578994214508234, 'fraction_numerical': 0.002447708055184691, 'mean_word_length': 1.963085036255768, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 131, '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': '6977639', 'n_tokens_mistral': 1468, 'n_tokens_neox': 1360, 'n_words': 232}