<commit_before>class @Collapsible

  # Set of library functions that provide a simple way to add collapsible
  # functionality to elements. 

  # setCollapsibles:
  #   Scan element's content for generic collapsible containers
  @setCollapsibles: (el) =>
    ###
    el: container
    ###
    el.find('.longform').hide()
    el.find('.shortform').append('<a href="#" class="full">See full output</a>')
    el.find('.collapsible section').hide()
    el.find('.full').click @toggleFull
    el.find('.collapsible header a').click @toggleHint

  @toggleFull: (event) =>
    $(event.target).parent().siblings().slideToggle()
    $(event.target).parent().parent().toggleClass('open')
    if $(event.target).text() == 'See full output'
      new_text = 'Hide output'
    else<commit_msg>tweaked collapsible selector to target the proper section; functionality like this should have its own class to avoid selector conflicts, but it may be too late to fix this now<commit_after>class @Collapsible

  # Set of library functions that provide a simple way to add collapsible
  # functionality to elements. 

  # setCollapsibles:
  #   Scan element's content for generic collapsible containers
  @setCollapsibles: (el) =>
    ###
    el: container
    ###
    el.find('.longform').hide()
    el.find('.shortform').append('<a href="#" class="full">See full output</a>')
    el.find('.collapsible header + section').hide()
    el.find('.full').click @toggleFull
    el.find('.collapsible header a').click @toggleHint

  @toggleFull: (event) =>
    $(event.target).parent().siblings().slideToggle()
    $(event.target).parent().parent().toggleClass('open')
    if $(event.target).text() == 'See full output'
      new_text = 'Hide output'
    else
{'fraction_non_alphanumeric': 0.15069284064665128, 'fraction_numerical': 0.0, 'mean_word_length': 3.813888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '3828781', 'n_tokens_mistral': 512, 'n_tokens_neox': 499, 'n_words': 141}