<commit_before>$ = jQuery

$("#list input.checkbox.toggle").live "click", ->
  checked_status = $(this).is(":checked")
  $("td.action.select input.checkbox[name='bulk_ids[]']").each ->
    $(this).attr "checked", checked_status
    if checked_status
      $(this).parent().addClass "checked"
    else
      $(this).parent().removeClass "checked"

$("#list a, #list form").live "ajax:complete", (xhr, data, status) ->
  $("#list").replaceWith data.responseText

$("table#history th.header").live "click", ->
  if $(this).data("link")
    window.location = $(this).data("link")

$(document).ready ->
  $('.pjax').pjax('[data-pjax-container]')
  $('.pjax-form').live 'submit', (event) ->
    event.preventDefault()
    $.pjax
      container: '[data-pjax-container]'
      url: this.action + (if (this.action.indexOf('?') != -1) then '&' else '?') + $(this).serialize()
  $('.animate-width-to').each ->
    length = $(this).data("animate-length")
    width = $(this).data("animate-width-to")
    $(this).animate(width: width, length, 'easeOutQuad')
    
  // bootstrap init
  $('[rel=tooltip]').tooltip(delay: { show: 500, hide: 100 });<commit_msg>fix coffeescript syntax error due to wrong comment syntax<commit_after>$ = jQuery

$("#list input.checkbox.toggle").live "click", ->
  checked_status = $(this).is(":checked")
  $("td.action.select input.checkbox[name='bulk_ids[]']").each ->
    $(this).attr "checked", checked_status
    if checked_status
      $(this).parent().addClass "checked"
    else
      $(this).parent().removeClass "checked"

$("#list a, #list form").live "ajax:complete", (xhr, data, status) ->
  $("#list").replaceWith data.responseText

$("table#history th.header").live "click", ->
  if $(this).data("link")
    window.location = $(this).data("link")

$(document).ready ->
  $('.pjax').pjax('[data-pjax-container]')
  $('.pjax-form').live 'submit', (event) ->
    event.preventDefault()
    $.pjax
      container: '[data-pjax-container]'
      url: this.action + (if (this.action.indexOf('?') != -1) then '&' else '?') + $(this).serialize()
  $('.animate-width-to').each ->
    length = $(this).data("animate-length")
    width = $(this).data("animate-width-to")
    $(this).animate(width: width, length, 'easeOutQuad')
    
  # bootstrap init
  $('[rel=tooltip]').tooltip(delay: { show: 500, hide: 100 });
{'fraction_non_alphanumeric': 0.23189027003857693, 'fraction_numerical': 0.006000857265323617, 'mean_word_length': 3.93446088794926, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 17, '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': '3623448', 'n_tokens_mistral': 785, 'n_tokens_neox': 769, 'n_words': 146}