<commit_before><div id="print-dialog" class="modal modal-primary fade" tabindex="-1" role="dialog">
  <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">Print Options</h4>
      </div>
      <div class="modal-body">
        <table class="table">
          <% Printer.order(:name).each do |p| 
              icon = (p.name.downcase.include?('zebra') ? 'fa-barcode' : 'fa-print') %>
          <tr class="<%= p.preferred_format %>">
            <td><a href="#" printer_id="<%= p.id %>"><i class="fa fa-fw <%= icon %>"></i> <%= p.name %></a></td>
            <td class="light"><%= p.model %></td>
            <td class="light"><%= p.location%></td>
          </tr>
          <% end %>
        </table>
        <div class="processing">
          <div class="loader"></div>
          <h4>Processing, please wait...</h4>
        </div>
      </div>
      <div class="modal-footer">
        <a type="button" class="btn btn-default pull-left"><i class="fa fa-download"></i> Download</a>
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<script type="text/javascript">
    $(document).ready(function () {
      
        function reset_print_dialog() {
          $("#print-dialog tr").hide();
          $("#print-dialog .table").show();
          $("#print-dialog .processing").hide();
          $("#print-dialog .modal-footer").show();
        }
      <commit_msg>change download to PDF<commit_after><div id="print-dialog" class="modal modal-primary fade" tabindex="-1" role="dialog">
  <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">Print Options</h4>
      </div>
      <div class="modal-body">
        <table class="table">
          <% Printer.order(:name).each do |p| 
              icon = (p.name.downcase.include?('zebra') ? 'fa-barcode' : 'fa-print') %>
          <tr class="<%= p.preferred_format %>">
            <td><a href="#" printer_id="<%= p.id %>"><i class="fa fa-fw <%= icon %>"></i> <%= p.name %></a></td>
            <td class="light"><%= p.model %></td>
            <td class="light"><%= p.location%></td>
          </tr>
          <% end %>
        </table>
        <div class="processing">
          <div class="loader"></div>
          <h4>Processing, please wait...</h4>
        </div>
      </div>
      <div class="modal-footer">
        <a type="button" class="btn btn-default pull-left"><i class="fa fa-download"></i> PDF</a>
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<script type="text/javascript">
    $(document).ready(function () {
      
        function reset_print_dialog() {
          $("#print-dialog tr").hide();
          $("#print-dialog .table").show();
          $("#print-dialog .processing").hide();
          $("#print-dialog .modal-footer").show();
        }
      
{'fraction_non_alphanumeric': 0.2291183294663573, 'fraction_numerical': 0.002900232018561485, 'mean_word_length': 2.3880157170923377, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1986', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1063, 'n_words': 209}