<commit_before>%h1 feedcellar-web
%p= "Powered by Groonga #{groonga_version} and Rroonga #{rroonga_version}."
%form{:action => url("/search", false, true), :method => :get}
  %input{:type => "textarea", :name => "word", :size => 20, :value => params[:word]}
  %input{:type => "submit", :value => "Search"}
- if @feeds
  %p
    - grouping(@feeds).each do |resource|
      = link_to(drilled_label(resource), drilled_url(resource))
  = paginate(@paginated_feeds)
  %ul
    - @paginated_feeds.each do |feed|
      %li
        %p
          = link_to("#{feed.title} - #{feed.resource.title}", feed.link)
  = paginate(@paginated_feeds)
  %p
    - @feeds.group("year").each do |group|
      - year = group.key
      = link_to("#{"%04d" % year} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&year=#{year}"))
  %p
    - @feeds.group("month").each do |group|
      - month = group.key
      = link_to("#{"%02d" % month} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&month=#{month}"))
  %p
    - @feeds.group(["year", "month"]).each do |group|
      - sub_record = group.sub_records.first
      - year = sub_record.year
      - month = sub_record.month
      = link_to("#{"%04d" % year}-#{"%02d" % month} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&year=#{year}&month=#{month}"))<commit_msg>Sort by month<commit_after>%h1 feedcellar-web
%p= "Powered by Groonga #{groonga_version} and Rroonga #{rroonga_version}."
%form{:action => url("/search", false, true), :method => :get}
  %input{:type => "textarea", :name => "word", :size => 20, :value => params[:word]}
  %input{:type => "submit", :value => "Search"}
- if @feeds
  %p
    - grouping(@feeds).each do |resource|
      = link_to(drilled_label(resource), drilled_url(resource))
  = paginate(@paginated_feeds)
  %ul
    - @paginated_feeds.each do |feed|
      %li
        %p
          = link_to("#{feed.title} - #{feed.resource.title}", feed.link)
  = paginate(@paginated_feeds)
  %p
    - @feeds.group("year").each do |group|
      - year = group.key
      = link_to("#{"%04d" % year} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&year=#{year}"))
  %p
    - @feeds.group("month").sort_by {|record| record.key}.each do |group|
      - month = group.key
      = link_to("#{"%02d" % month} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&month=#{month}"))
  %p
    - @feeds.group(["year", "month"]).each do |group|
      - sub_record = group.sub_records.first
      - year = sub_record.year
      - month = sub_record.month
      = link_to("#{"%04d" % year}-#{"%02d" % month} (#{group.n_sub_records})",
                url("/search?word=#{params[:word]}&year=#{year}&month=#{month}"))
{'fraction_non_alphanumeric': 0.21926671459381739, 'fraction_numerical': 0.007907979870596693, 'mean_word_length': 3.2749615975422426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '347516', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1013, 'n_words': 169}