<commit_before>---
layout: guide-base
---
- page.javascripts = [ '/javascripts/jquery-scroll.js', 'http://apis.google.com/js/plusone.js' ]
#content
  ~ content

- if page.guide
  #sidebar
    #toc
      %h3.chapter_header Chapters
      %ol.chapters
        - for chapter in page.guide.chapters
          %li
            %a{ :id=>"#{chapter.link_id}_link", :href=>"##{chapter.link_id}" }
              =chapter.text
  :javascript
    $(window).load(function() {
      var $toc = $('#toc');
      $toc.localScroll();
      var sections = [ #{page.guide.chapters.map{|x| '\'' + x.link_id + '\''}.join(',')} ];
      var currentSection = false;
      var sectionOffsets = {};
      $.each(sections, function(idx, section) {<commit_msg>update hash when scrolling to section<commit_after>---
layout: guide-base
---
- page.javascripts = [ '/javascripts/jquery-scroll.js', 'http://apis.google.com/js/plusone.js' ]
#content
  ~ content

- if page.guide
  #sidebar
    #toc
      %h3.chapter_header Chapters
      %ol.chapters
        - for chapter in page.guide.chapters
          %li
            %a{ :id=>"#{chapter.link_id}_link", :href=>"##{chapter.link_id}" }
              =chapter.text
  :javascript
    $(window).load(function() {
      var $toc = $('#toc');
      $toc.localScroll({hash: true});
      var sections = [ #{page.guide.chapters.map{|x| '\'' + x.link_id + '\''}.join(',')} ];
      var currentSection = false;
      var sectionOffsets = {};
      $.each(sections, function(idx, section) {
{'fraction_non_alphanumeric': 0.18866666666666668, 'fraction_numerical': 0.0013333333333333333, 'mean_word_length': 2.5152224824355973, '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': '6055906', 'n_tokens_mistral': 519, 'n_tokens_neox': 497, 'n_words': 92}