<commit_before>-# If data_source isn't specified in locals, then default to "navigation"
-#
-# Example for custom data_source:
-#
-#   = partial :navbar, locals: { data_source: "navigation" }
-#
- data_source ||= "navigation"

-# Additional classes are also supported on the navbar
-#
-# Example:
-#
-#   = partial :navbar, locals: { nav_class: "navbar_inverse" }
-#
- nav_class ||= "navbar-default"

-# Unless specified, the link for any brand used is /
-#
- brand_link ||= "/"


-# Navigation is automatically rendered from ../../data/{DATA_SOURCE}.yml
-# There is support for one-level depth.
-# Top level items should start with a "-"; second-level should be indented.
-#
-# Exmaple:
-#
-# - Foo: "foo_link"
-# - Bar: "optional_fallback_link_for_nojavascript"
-#   Baz: "baz_link"
-#   Baz2: "baz2_link"
-#
-# Foo is a normal link.
-# Bar is a dropdown title (with an optional link — it can be empty), as it has children
-# Baz and Baz2 are children links to Bar.

- if data.has_key? data_source

  %nav.navbar(role="navigation" class="#{nav_class}")
    .navbar-header
      %button.navbar-toggle(data-toggle="collapse" data-target=".navbar-ex1-collapse")
        %span.sr-only
          Toggle navigation

        - 3.times do 
          %span.icon-bar

      - if defined? brand

        %a.navbar-brand(href=brand_link)
          = brand

    .collapse.navbar-collapse.navbar-ex1-collapse
      - data[data_source].each do |item|

        %ul.nav.navbar-nav

          - if item.is_a?(String)

            %p.navbar-text= item.parameterize

          - elsif item.count == 1
            
            - item.each do |text, link|

              - if link
                %li= link_to text, link, class: text.parameterize

              - else
                %p.navbar-text{class: text.parameterize}= text

          - else

            %li.dropdown
              %a.dropdown-toggle(data-toggle="dropdown" href="#{item.first[1] || '#'}" class="#{item.first[0].parameterize}")<commit_msg>whitespace trimming<commit_after>-# If data_source isn't specified in locals, then default to "navigation"
-#
-# Example for custom data_source:
-#
-#   = partial :navbar, locals: { data_source: "navigation" }
-#
- data_source ||= "navigation"

-# Additional classes are also supported on the navbar
-#
-# Example:
-#
-#   = partial :navbar, locals: { nav_class: "navbar_inverse" }
-#
- nav_class ||= "navbar-default"

-# Unless specified, the link for any brand used is /
-#
- brand_link ||= "/"


-# Navigation is automatically rendered from ../../data/{DATA_SOURCE}.yml
-# There is support for one-level depth.
-# Top level items should start with a "-"; second-level should be indented.
-#
-# Exmaple:
-#
-# - Foo: "foo_link"
-# - Bar: "optional_fallback_link_for_nojavascript"
-#   Baz: "baz_link"
-#   Baz2: "baz2_link"
-#
-# Foo is a normal link.
-# Bar is a dropdown title (with an optional link — it can be empty), as it has children
-# Baz and Baz2 are children links to Bar.

- if data.has_key? data_source

  %nav.navbar(role="navigation" class="#{nav_class}")
    .navbar-header
      %button.navbar-toggle(data-toggle="collapse" data-target=".navbar-ex1-collapse")
        %span.sr-only
          Toggle navigation

        - 3.times do
          %span.icon-bar

      - if defined? brand

        %a.navbar-brand(href=brand_link)
          = brand

    .collapse.navbar-collapse.navbar-ex1-collapse
      - data[data_source].each do |item|

        %ul.nav.navbar-nav

          - if item.is_a?(String)

            %p.navbar-text= item.parameterize

          - elsif item.count == 1

            - item.each do |text, link|

              - if link
                %li= link_to text, link, class: text.parameterize

              - else
                %p.navbar-text{class: text.parameterize}= text

          - else

            %li.dropdown
              %a.dropdown-toggle(data-toggle="dropdown" href="#{item.first[1] || '#'}" class="#{item.first[0].parameterize}")
{'fraction_non_alphanumeric': 0.14174415682332245, 'fraction_numerical': 0.004523749685850716, 'mean_word_length': 2.370025402201524, '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': '5188028', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1266, 'n_words': 326}