<commit_before>document.addEventListener 'turbolinks:load', ->
  $('select').select2
    theme: 'bootstrap'
    containerCssClass: ':all:'
  $('pre code').each (i, block) ->
    hljs.highlightBlock(block)
  $('#categories-list li:first').addClass("active")
  filterSchemas($('#categories-list li:first a').attr("data-category"))

$(document).on 'click', '#categories-list li a', (e) ->
  e.preventDefault()
  $parent = $(this).parent()
  filterSchemas($(this).data('category'))
  addClassToList($parent)

$(document).on 'fileselect', ':file', (event, numFiles, label) ->
  input = $(this).parents('.input-group').find(':text')
  log = if numFiles > 1 then numFiles + ' files selected' else label
  if input.length
    input.val log
    $('#input-file, #remove-file').show()
    $('#label-file').hide()
    return
<commit_msg>Add width:resolved option to select2<commit_after>document.addEventListener 'turbolinks:load', ->
  $('select').select2
    theme: 'bootstrap'
    containerCssClass: ':all:'
    width: 'resolve'
  $('pre code').each (i, block) ->
    hljs.highlightBlock(block)
  $('#categories-list li:first').addClass("active")
  filterSchemas($('#categories-list li:first a').attr("data-category"))

$(document).on 'click', '#categories-list li a', (e) ->
  e.preventDefault()
  $parent = $(this).parent()
  filterSchemas($(this).data('category'))
  addClassToList($parent)

$(document).on 'fileselect', ':file', (event, numFiles, label) ->
  input = $(this).parents('.input-group').find(':text')
  log = if numFiles > 1 then numFiles + ' files selected' else label
  if input.length
    input.val log
    $('#input-file, #remove-file').show()
    $('#label-file').hide()
    return

{'fraction_non_alphanumeric': 0.20425029515938606, 'fraction_numerical': 0.0029515938606847697, 'mean_word_length': 4.594059405940594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3730682', 'n_tokens_mistral': 547, 'n_tokens_neox': 538, 'n_words': 114}