<commit_before>module ArtifactsHelper
  def temportal_facet_path(params, low, high)
    artifacts_path(params.dup.update(low_date: low, high_date: high))
  end

  def temporal_facet_menu_item(params, low, high, text=nil)
    puts params.inspect<commit_msg>Reset page to 0 when changing filter.<commit_after>module ArtifactsHelper
  def temportal_facet_path(params, low, high)
    artifacts_path(params.dup.update(low_date: low, high_date: high, page: 1))
  end

  def temporal_facet_menu_item(params, low, high, text=nil)
    puts params.inspect
{'fraction_non_alphanumeric': 0.08990825688073395, 'fraction_numerical': 0.003669724770642202, 'mean_word_length': 5.825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3604378', 'n_tokens_mistral': 187, 'n_tokens_neox': 186, 'n_words': 43}