<commit_before>window.bsat.utils.readyOrPageChange ->
  #
  # Setup sidebar open/close state when the user
  # clicks on sidebar toggle button. The sidebar
  # gets closed on small devices using media queries,
  # so we need to take this into account.
  #
  $('#sidebar-toggle-button').click (e) ->
    e.preventDefault()
    if $(window).width() < 768
      $('body').toggleClass('sidebar-open')
      $('body').removeClass('sidebar-close')
    else
      $('body').removeClass('sidebar-open')
      $('body').toggleClass('sidebar-close')

  #
  # Detect if there is no sidebar
  #
  unless $('#sidebar')[0]
    $('body').addClass('no-sidebar')

  #
  # Use IScroll for scrolling the sidebar
  #
  for selector in ['#sidebar']
    new IScroll(selector, {
      scrollbars: true,
      fadeScrollbars: true,
      mouseWheel: true
    }) if $(selector)[0]<commit_msg>We need to check for "smaller equals".<commit_after>window.bsat.utils.readyOrPageChange ->
  #
  # Setup sidebar open/close state when the user
  # clicks on sidebar toggle button. The sidebar
  # gets closed on small devices using media queries,
  # so we need to take this into account.
  #
  $('#sidebar-toggle-button').click (e) ->
    e.preventDefault()
    if $(window).width() <= 768
      $('body').toggleClass('sidebar-open')
      $('body').removeClass('sidebar-close')
    else
      $('body').removeClass('sidebar-open')
      $('body').toggleClass('sidebar-close')

  #
  # Detect if there is no sidebar
  #
  unless $('#sidebar')[0]
    $('body').addClass('no-sidebar')

  #
  # Use IScroll for scrolling the sidebar
  #
  for selector in ['#sidebar']
    new IScroll(selector, {
      scrollbars: true,
      fadeScrollbars: true,
      mouseWheel: true
    }) if $(selector)[0]
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 3.1533018867924527, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6122902', 'n_tokens_mistral': 547, 'n_tokens_neox': 534, 'n_words': 147}