<commit_before>!!!
%html
  %head
    %title= page.title

    %meta(charset='UTF-8')
    -# Use the latest IE engine, or Chrome frame.
    %meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')

    -# Mobile viewport optimization. j.mp/bplateviewport
    %meta(name='viewport' content='width=device-width, initial-scale=1.0')

    -# Standard SEO meta
    - if page.meta.keywords
      %meta{:name => 'keywords', :content => page.meta.keywords}
    - if page.meta.description
      %meta{:name => 'description', :content => page.meta.description}

    %link{:rel => 'stylesheet', :href => rel('/style.css')+"?#{File.mtime(Proton::Page['/style.css'].file).to_i}"}

  %body
    #top
      %a#logo{href: rel('/')}
        = Hyde::Page['/'].title

    #area
      #content
        %div.c
          #crumbs
            - page.breadcrumbs[0..-2].each do |p|
              %a{href: rel(p.path)}= p
              %span.gt!= "&rarr;"

            %strong= page

          %hgroup
            - if page.meta.layout
              %p.type= page.meta.layout.capitalize
            %h1= page.title
            - if page.meta.brief
              %h5= page.meta.brief

          .content
            != yield

            - children = page_children(page)
            - page_types.each do |type|
              - if children[type] && children[type].any?
                %h3= type.to_s.gsub('_', ' ').capitalize

                %ul.section
                  - children[type].each do |method|
                    %li
                      %a{href: rel(method.path)}= method.title
                      - unless method.meta.brief.to_s.empty?
                        %span.brief= method.meta.brief

        %nav#nav
          - parent   = (page.children.any? ? page : (page.parent || page))
          - children = parent.children.select { |p| p.html? }
          - groups   = children.group_by { |p| p.meta.page_type }

          - if parent && !parent.root?
            %nav.parents
              %ul
                - parent.breadcrumbs.each do |pp|
                  %li
                    %a{href: rel(pp.path), class: ('active' if pp.path == page.path)}
                      - unless pp.path == page.path
                        %span.back!= "&lsaquo;"

                      %em= pp.meta.page_type
                      = pp

          - if groups.any?
            - groups.each do |name, pages|
              - name = name ? Inflector[name].pluralize.capitalize : parent.to_s
              %nav
                - if name
                  %h4= name
                %ul
                  - pages.each do |pp|
                    %li
                      - classes = []
                      - classes << 'active'  if pp.path == page.path
                      - classes << 'more'    if pp.children.any?

                      %a{href: rel(pp.path), class: classes.join(' ')}
                        = pp


    %script{src: 'http://cachedcommons.org/cache/prettify/1.0.0/javascripts/prettify-min.js', type: 'text/javascript'}
    %script{src: 'http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.2/jquery.min.js', type: 'text/javascript'}
    :javascript
      $(function () {
        $("pre").each(function() {
          var r = /\[(.*?)\s*\((.*?)\)\]\n*/;
          var m = $(this).text().match(r);

          $(this).addClass('prettyprint');

          if (m) {
            var file = m[1];
            var type = m[2];
            $(this).addClass('lang-'+type);

            if (file.length) {
              $(this).addClass('has-caption');
              $(this).prepend($("<h5 class='caption'>").text(file));
            }

            $(this).html($(this).html().replace(r, ''));
          }

          if ($(this).text().match(/^\s*\$ /)) {
            $(this).addClass('terminal');
            $(this).removeClass('prettyprint');
            $(this).html($(this).html().replace(/(\$ )(.*?)[\r\n$]/g, "<strong><em>$1</em>$2</strong>\n"));
          }
        });

        prettyPrint();
      });
  <commit_msg>Better terminal thing.<commit_after>!!!
%html
  %head
    %title= page.title

    %meta(charset='UTF-8')
    -# Use the latest IE engine, or Chrome frame.
    %meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')

    -# Mobile viewport optimization. j.mp/bplateviewport
    %meta(name='viewport' content='width=device-width, initial-scale=1.0')

    -# Standard SEO meta
    - if page.meta.keywords
      %meta{:name => 'keywords', :content => page.meta.keywords}
    - if page.meta.description
      %meta{:name => 'description', :content => page.meta.description}

    %link{:rel => 'stylesheet', :href => rel('/style.css')+"?#{File.mtime(Proton::Page['/style.css'].file).to_i}"}

  %body
    #top
      %a#logo{href: rel('/')}
        = Hyde::Page['/'].title

    #area
      #content
        %div.c
          #crumbs
            - page.breadcrumbs[0..-2].each do |p|
              %a{href: rel(p.path)}= p
              %span.gt!= "&rarr;"

            %strong= page

          %hgroup
            - if page.meta.layout
              %p.type= page.meta.layout.capitalize
            %h1= page.title
            - if page.meta.brief
              %h5= page.meta.brief

          .content
            != yield

            - children = page_children(page)
            - page_types.each do |type|
              - if children[type] && children[type].any?
                %h3= type.to_s.gsub('_', ' ').capitalize

                %ul.section
                  - children[type].each do |method|
                    %li
                      %a{href: rel(method.path)}= method.title
                      - unless method.meta.brief.to_s.empty?
                        %span.brief= method.meta.brief

        %nav#nav
          - parent   = (page.children.any? ? page : (page.parent || page))
          - children = parent.children.select { |p| p.html? }
          - groups   = children.group_by { |p| p.meta.page_type }

          - if parent && !parent.root?
            %nav.parents
              %ul
                - parent.breadcrumbs.each do |pp|
                  %li
                    %a{href: rel(pp.path), class: ('active' if pp.path == page.path)}
                      - unless pp.path == page.path
                        %span.back!= "&lsaquo;"

                      %em= pp.meta.page_type
                      = pp

          - if groups.any?
            - groups.each do |name, pages|
              - name = name ? Inflector[name].pluralize.capitalize : parent.to_s
              %nav
                - if name
                  %h4= name
                %ul
                  - pages.each do |pp|
                    %li
                      - classes = []
                      - classes << 'active'  if pp.path == page.path
                      - classes << 'more'    if pp.children.any?

                      %a{href: rel(pp.path), class: classes.join(' ')}
                        = pp


    %script{src: 'http://cachedcommons.org/cache/prettify/1.0.0/javascripts/prettify-min.js', type: 'text/javascript'}
    %script{src: 'http://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.2/jquery.min.js', type: 'text/javascript'}
    :javascript
      $(function () {
        $("pre").each(function() {
          var r = /\[(.*?)\s*\((.*?)\)\]\n*/;
          var m = $(this).text().match(r);

          $(this).addClass('prettyprint');

          if (m) {
            var file = m[1];
            var type = m[2];
            $(this).addClass('lang-'+type);

            if (file.length) {
              $(this).addClass('has-caption');
              $(this).prepend($("<h5 class='caption'>").text(file));
            }

            $(this).html($(this).html().replace(r, ''));
          }

          if ($(this).text().match(/^\s*([a-zA-Z_~\/]*)\$ /)) {
            $(this).addClass('terminal');
            $(this).removeClass('prettyprint');
            $(this).html($(this).html().replace(/([a-zA-Z_~\/]*\$ )(.*?)[\r\n$]/g, "<strong><em>$1</em>$2</strong>\n"));
          }
        });

        prettyPrint();
      });
  
{'fraction_non_alphanumeric': 0.17533192703809405, 'fraction_numerical': 0.005211564710261819, 'mean_word_length': 1.4059701492537313, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, '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': '4731361', 'n_tokens_mistral': 2548, 'n_tokens_neox': 2417, 'n_words': 424}