<commit_before># -- GLOBALS
$.datepicker.setDefaults($.datepicker.regional['de'])
$.datepicker.setDefaults({
      changeYear: true,
      changeMonth: true,
      dateFormat: "yy-mm-dd",
      yearRange: '2000:2099',
})

ready = ->
  $('.dataTable tfoot th').each  (idx) ->
    title = $('.dataTable thead th').eq( $(this).index() ).text()
    $(this).html( '<input type="text" placeholder="<%= I18n.t('lackmus.search') %>" name="idx'+idx+'" />' )

  table = $(".dataTable").DataTable(
    pagingType: "full_numbers"
    dom: "<'row'<'col-md-3'l><'col-md-5'BC><'col-md-4'f>>t<'row'<'col-md-6'ir><'col-md-6'p>>"
    stateSave: true
    responsive: true
    buttons: [
      {
        extend: 'copy',
        className: 'btn-sm btn-outline-secondary',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      {
        extend: 'excel',
        className: 'btn-sm btn-outline-secondary',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      {
        extend: 'pdf',
        className: 'btn-sm btn-outline-secondary',
        orientation: 'landscape',
        pageSize: 'A4',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      { 
        extend: 'print',
        className: 'btn-sm btn-outline-secondary',
      },
      {
        extend: 'colvis',
        className: 'btn-sm btn-outline-secondary',
        text: "<%= I18n.t('lackmus.change_columns') %>",
        columns: ':gt(0)'
      }
    ]
    columnDefs: [
      { "targets": "nosort", "orderable": false },
      { "targets": "notvisible", "visible": false }
    ]
    language:
      url: "<%= asset_path('dataTable.german.txt') %>"
  )
<commit_msg>update for bootstrap >= 4.1<commit_after># -- GLOBALS
$.datepicker.setDefaults($.datepicker.regional['de'])
$.datepicker.setDefaults({
      changeYear: true,
      changeMonth: true,
      dateFormat: "yy-mm-dd",
      yearRange: '2000:2099',
})

DataTable = $.fn.dataTable
$.extend( true, DataTable.Buttons.defaults, {
  dom:
    button:
      className: 'btn btn-outline-secondary btn-sm'
})

ready = ->
  $('.dataTable tfoot th').each  (idx) ->
    title = $('.dataTable thead th').eq( $(this).index() ).text()
    $(this).html( '<input type="text" placeholder="<%= I18n.t('lackmus.search') %>" name="idx'+idx+'" />' )

  table = $(".dataTable").DataTable(
    pagingType: "full_numbers"
    dom: "<'row'<'col-md-3'l><'col-md-5'BC><'col-md-4'f>>t<'row'<'col-md-6'ir><'col-md-6'p>>"
    stateSave: true
    responsive: true
    buttons: [
      {
        extend: 'copy',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      {
        extend: 'excel',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      {
        extend: 'pdf',
        orientation: 'landscape',
        pageSize: 'A4',
        exportOptions: {
          columns: ':visible',
          search: ':applied'
        }
      },
      { 
        extend: 'print',
      },
      {
        extend: 'colvis',
        text: "<%= I18n.t('lackmus.change_columns') %>",
        columns: ':gt(0)'
      }
    ]
    columnDefs: [
      { "targets": "nosort", "orderable": false },
      { "targets": "notvisible", "visible": false }
    ]
    language:
      url: "<%= asset_path('dataTable.german.txt') %>"
  )

{'fraction_non_alphanumeric': 0.1949667341625687, 'fraction_numerical': 0.011570726063060458, 'mean_word_length': 2.1237579042457093, 'pattern_counts': {'":': 8, '<': 25, '<?xml version=': 0, '>': 30, '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': '4656773', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1160, 'n_words': 199}