<commit_before>window.App ||= {}

App.init = ->
  pymChild = new pym.Child()

  $(document).foundation()

  if $('ladda').length
    $('.ladda').ladda('bind')

  # disable children checkboxes
  $('[data-behavior~=form-with-children-checkboxes] input[type=checkbox]').click ->
    childrenCheckboxes = $(document).find('.children[data-for=' + $(this).attr('id') + ']').find('input[type=checkbox]')
    childrenCheckboxes.attr 'disabled', $(this).is(':checked')
    childrenCheckboxes.attr 'checked', $(this).is(':checked')

$(document).on 'turbolinks:load', ->
  App.init()
<commit_msg>send page height on Turbolinks page load<commit_after>window.App ||= {}

App.init = ->
  pymChild = new pym.Child()
  pymChild.sendHeight()

  $(document).foundation()

  if $('ladda').length
    $('.ladda').ladda('bind')

  # disable children checkboxes
  $('[data-behavior~=form-with-children-checkboxes] input[type=checkbox]').click ->
    childrenCheckboxes = $(document).find('.children[data-for=' + $(this).attr('id') + ']').find('input[type=checkbox]')
    childrenCheckboxes.attr 'disabled', $(this).is(':checked')
    childrenCheckboxes.attr 'checked', $(this).is(':checked')

$(document).on 'turbolinks:load', ->
  App.init()

{'fraction_non_alphanumeric': 0.2203112203112203, 'fraction_numerical': 0.0, 'mean_word_length': 4.9609756097560975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2639438', 'n_tokens_mistral': 418, 'n_tokens_neox': 400, 'n_words': 61}