<commit_before>%section#content
  %h1= t ".title"
  %p= t ".overview_description_html"
  %p= t ".overview_usage"
  %h2= t ".latest"
  %ul.library-list
    - @items.each do |item|
      %li
        = item.icon
        .lib-content
          = item.link
          - if item.location
            - map_id = "leaflet-#{dom_id(item)}"
            .tinyermap{id: map_id}
            .hidden
              .map-data{"data-center" => location_to_geojson(item.location),
                "data-opts" => { domid: map_id, hidelayers: true, feature: item_to_geojson(item), hidezoom: true }.to_json}
        .meta
          = formatted_created_at item

%aside#sidebar
  = link_to t(".new_library_item"), "#", rel: "#new-library-item-selector", class: "open-dialog btn-green"

#new-library-item-selector.dialog.dialog-content.hide
  %h1= t(".new_item_title")
  %p= t(".new_item_description_html")
  %ul.library-selector
    %li
      = link_to new_library_note_path do
        %span.icon.library_note
      = link_to new_library_note_path do
        .name= t(".new_note")
      .description
        = t(".new_note_description_html")
    %li
      = link_to new_library_document_path do
        %span.icon.library_document
      = link_to new_library_document_path do
        .name= t(".new_document")
      .description<commit_msg>Paginate library items<commit_after>%section#content
  %h1= t ".title"
  %p= t ".overview_description_html"
  %p= t ".overview_usage"
  %h2= t ".latest"
  %ul.library-list
    - @items.each do |item|
      %li
        = item.icon
        .lib-content
          = item.link
          - if item.location
            - map_id = "leaflet-#{dom_id(item)}"
            .tinyermap{id: map_id}
            .hidden
              .map-data{"data-center" => location_to_geojson(item.location),
                "data-opts" => { domid: map_id, hidelayers: true, feature: item_to_geojson(item), hidezoom: true }.to_json}
        .meta
          = formatted_created_at item
  = paginate @items

%aside#sidebar
  = link_to t(".new_library_item"), "#", rel: "#new-library-item-selector", class: "open-dialog btn-green"

#new-library-item-selector.dialog.dialog-content.hide
  %h1= t(".new_item_title")
  %p= t(".new_item_description_html")
  %ul.library-selector
    %li
      = link_to new_library_note_path do
        %span.icon.library_note
      = link_to new_library_note_path do
        .name= t(".new_note")
      .description
        = t(".new_note_description_html")
    %li
      = link_to new_library_document_path do
        %span.icon.library_document
      = link_to new_library_document_path do
        .name= t(".new_document")
      .description
{'fraction_non_alphanumeric': 0.13152950018789927, 'fraction_numerical': 0.002254791431792559, 'mean_word_length': 2.4392764857881137, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1765800', 'n_tokens_mistral': 909, 'n_tokens_neox': 901, 'n_words': 163}