<commit_before>---
---
<h1>What Else Do You Really Need?</h1>
<ul>
{% for content in site.content %}
<li><a href="{{site.baseurl}}{{content['url']}}">{% if content['title'] %}{{content['title']}}{% else %}{{content['url']}}{% endif %}</a></li>
{% endfor %}
</ul><commit_msg>Jekyll Collection API to Javascript Variables<commit_after>---
# Keep this to activate jekyll liquid templates for url names
---
<div class="content-list"></div>

<script src="//cdn.jsdelivr.net/g/d3js"></script>

<script>
  /** Extract pieces of the Jekyll Collection API 
  variables are loaded in as window.sitecontent
  **/
  // automatically happens because it is in the source
  // after jekyll parses it
  var sitecontent = [];
  {% for content in site.content %}
    sitecontent[ {{forloop.index}} ] = {
      title: "{{content.title}}",
      path: "{{content.relative_path}}",
      url: "{{content.url}}",
      type: "{{content.type}}",
      layout: "{{content.layout}}"
    };
  {% endfor %}
</script>

<script>
  // Display some of the information
  // Scale from the scraped Jekyll data
  ;( function(){
    
    d3.select('.content-list')
      .selectAll('li')
        .data( sitecontent )
        .call( function(s){
           s.enter()
            .append('li')
            .each( function(d){
              d3.select(this)
                .append('a')
                .attr('href', function(d){if(d){return  d['url'];};})
                .text(function(d){if(d){return d['title'].length > 0 ? d['title'] : d['url'];};});                    
            }); // each
        }); // call
  })(); // iife
</script>

{'fraction_non_alphanumeric': 0.2028624766645924, 'fraction_numerical': 0.00373366521468575, 'mean_word_length': 2.4805194805194803, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, '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': '1713053', 'n_tokens_mistral': 530, 'n_tokens_neox': 506, 'n_words': 125}