<commit_before>$('document').ready ->
  $('tbody.review_history').hide()
  $('.toggle_history').on 'click', ->
    expandable_class = $(this).parent('td').attr('class')
    $('tbody.review_history.' + expandable_class).slideToggle('slow')<commit_msg>toggle button text<commit_after>toggleButtonText = (button_text, button_class) ->
  parent = $('#' + button_class)
  button = $('.toggle_history', parent)
  if button_text == "Show"
    button.text('Hide')
  else
    button.text('Show')

$('document').ready ->
  $('tbody.review_history').hide()
  $('.toggle_history').on 'click', ->
    expandable_class = $(this).parent('td').attr('class')
    $('tbody.review_history.' + expandable_class).slideToggle('slow')
    button_text = this.textContent.trim()
{'fraction_non_alphanumeric': 0.21115537848605578, 'fraction_numerical': 0.0, 'mean_word_length': 5.080645161290323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3740842', 'n_tokens_mistral': 242, 'n_tokens_neox': 237, 'n_words': 33}