<commit_before>$ ->
  rememberedTab = localStorage.getItem('folioConsoleOpenTab')
  localStorage.removeItem('folioConsoleOpenTab')

  if rememberedTab
    $('.simple_form .nav-link')
      .filter -> @href == rememberedTab
      .click()

$(document).on 'shown.bs.tab', '.simple_form .nav-link', ->
  localStorage.setItem('folioConsoleOpenTab', @href)<commit_msg>fix console tabs / localStorage<commit_after>$ ->
  rememberedTab = localStorage.getItem('folioConsoleOpenTab')
  localStorage.removeItem('folioConsoleOpenTab')

  if rememberedTab
    $('.simple_form .nav-link')
      .filter -> @href.replace('/edit', '') is rememberedTab
      .click()

$(document).on 'shown.bs.tab', '.simple_form .nav-link', ->
  localStorage.setItem('folioConsoleOpenTab', @href.replace('/edit', ''))
{'fraction_non_alphanumeric': 0.1692111959287532, 'fraction_numerical': 0.0, 'mean_word_length': 4.542253521126761, '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': '6953664', 'n_tokens_mistral': 241, 'n_tokens_neox': 238, 'n_words': 39}