<commit_before>$(document).ready( ->
  require(['pagination', 'dropdown'], (Pagination, Dropdown) ->
    new Pagination($('.search-grid'), '.result')
    new Dropdown $('.btn-search-download')
  )
)<commit_msg>move filter bar when scrolling<commit_after>$(document).ready( ->
  require(['pagination', 'dropdown'], (Pagination, Dropdown) ->
    $searchGridEl = $('.search-grid')
    $filterBarEl = $('.filter-bar')
    new Pagination($searchGridEl, '.result')
    new Dropdown $('.btn-search-download')


    if $searchGridEl.length > 0 and $filterBarEl.length > 0
      searchGridTop = $searchGridEl.offset().top
      $(document).on('scroll', ->
        if($(this).scrollTop() >= searchGridTop)
          $filterBarEl.css(top: "3%", height: "90%")
        else
          $filterBarEl.css(top: "initial", height: "80%")
      )
  )
)
{'fraction_non_alphanumeric': 0.19687875150060025, 'fraction_numerical': 0.008403361344537815, 'mean_word_length': 3.4838709677419355, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4934496', 'n_tokens_mistral': 273, 'n_tokens_neox': 260, 'n_words': 50}