<commit_before>%p= "「#{params[:word]}」で検索、 #{@paginated_books.n_records} 件ヒット [#{@paginated_books.start_offset}-#{@paginated_books.end_offset}件を表示]#{params_to_description}"
- unless @books.empty?
  %p.visible-xs
    [
    = link_to("NDC等で絞り込み", "#conditions")
    ]
    [
    = link_to("著者で絞り込み", "#authors")
    ]
- if @paginated_books.total_pages > 1
  = paginate(@paginated_books)
%ul
  - @paginated_books.each do |book|
    %li
      %h4
        = link_to(book.title, book.card_url)
      %h5
        %p.author
          - authors = book.authors.map(&:name).join(" ")
          - unless authors.blank?
            = authors
        %p.bookmark
          %a{"v-if": "book_ids['#{book._key}']", "v-on:click": "removeBookmark('#{book._key}');", href: "javascript:void(0)", "v-cloak": true} ★
          %a{"v-else": true, "v-on:click": "addBookmark('#{book._key}');", href: "javascript:void(0)", "v-cloak": true} ☆
      - if params["word"] && book.content
        %p
          = @snippet.execute(book.content).collect {|snippet| "...#{snippet}..."}.join(" / ").html_safe
      %p
        [
        = link_to("いますぐXHTML版で読む", book.html_url)
        ]
        [
        = link_to("青空 in Browsersで縦書き表示", "http://aozora.binb.jp/reader/main.html?cid=#{book._key.to_i}")
        ]
      %br
- if @paginated_books.total_pages > 1
  = paginate(@paginated_books)<commit_msg>use airzoshi (えあ草子) instead of BinB<commit_after>%p= "「#{params[:word]}」で検索、 #{@paginated_books.n_records} 件ヒット [#{@paginated_books.start_offset}-#{@paginated_books.end_offset}件を表示]#{params_to_description}"
- unless @books.empty?
  %p.visible-xs
    [
    = link_to("NDC等で絞り込み", "#conditions")
    ]
    [
    = link_to("著者で絞り込み", "#authors")
    ]
- if @paginated_books.total_pages > 1
  = paginate(@paginated_books)
%ul
  - @paginated_books.each do |book|
    %li
      %h4
        = link_to(book.title, book.card_url)
      %h5
        %p.author
          - authors = book.authors.map(&:name).join(" ")
          - unless authors.blank?
            = authors
        %p.bookmark
          %a{"v-if": "book_ids['#{book._key}']", "v-on:click": "removeBookmark('#{book._key}');", href: "javascript:void(0)", "v-cloak": true} ★
          %a{"v-else": true, "v-on:click": "addBookmark('#{book._key}');", href: "javascript:void(0)", "v-cloak": true} ☆
      - if params["word"] && book.content
        %p
          = @snippet.execute(book.content).collect {|snippet| "...#{snippet}..."}.join(" / ").html_safe
      %p
        [
        = link_to("いますぐXHTML版で読む", book.html_url)
        ]
        [
        = link_to("えあ草紙・青空図書館で表示", "https://www.satokazzz.com/airzoshi/reader.php?action=aozora&id=#{book._key.to_i}")
        ]
      %br
- if @paginated_books.total_pages > 1
  = paginate(@paginated_books)
{'fraction_non_alphanumeric': 0.20115565185987722, 'fraction_numerical': 0.004333694474539545, 'mean_word_length': 2.7841530054644807, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '916354', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1134, 'n_words': 142}