<commit_before><div>
    <p>TOPICS
        <button type="button" class="btn btn-xs collapseToggle all" id="lhn-collapse">
            <span class="glyphicon glyphicon-chevron-up"></span>
        </button>
    </p>
</div>

{% assign ancestors = "" | split:"|"  %}

{% if sorted == blank %}
    {% assign sorted = site.pages  | sort: "path"  %}

    {% for node in sorted %}
        {% if node.url contains 'scss'             or
              node.url contains 'search_data.json' or
              node.url contains 'index'            or
              node.url contains 'code'             or
              node.url contains 'credits'          or
              node.url contains 'hierarchy-template.html' %}
            {% continue %}
        {% endif %}

        {% assign parts = node.url  | split: '/' %}
        {% capture depth %}{{ parts.size | minus:1 }}{% endcapture %}

        {% for part in parts limit:{{depth}}  %}
            {% if forloop.rindex == 1 %}
                {% capture ancestor %}{{ part }}{% endcapture %}
            {% endif %}
        {% endfor %}

        {% if ancestors contains ancestor %}
        {% else %}
            {% assign shiftLeft = ancestors.size | plus:1 | minus:depth %}
            {% for i in (0..shiftLeft) %}
                </ul></li>
                {% assign ancestors = ancestors | pop %}
            {% endfor %}

            {% assign ancestors = ancestors | push: ancestor %}

            <li><span class="glyphicon glyphicon-triangle-right Collapsable"> {{ ancestor }}</span>
                <ul style="list-style-type: none;" id="{{ ancestor }}">
        {% endif %}

        {% assign construction = "" %}

        {% if node.status == 'underConstruction' %}
            {% assign construction = "glyphicon glyphicon-alert underConstruction" %}
        {% endif %}

        <li style="list-style-type: disc;">
            <span><a href="{{ site.github.url }}{{ node.url }}">
                <span class="{{construction}}"></span> {{ node.breadcrumb }}</a></span>
    {% endfor %}
{% endif %}

<script type="text/javascript">
    $(".Collapsable").click(function () {
    });
    $("#lhn-collapse").click(function () {
        var collapsed = true;
        if (this.collapsed === true) this.collapsed = false;
        else this.collapsed = true;<commit_msg>simplified how hierarchy generation is being processed by Liquid.<commit_after><div>
    <p>TOPICS
        <button type="button" class="btn btn-xs collapseToggle all" id="lhn-collapse">
            <span class="glyphicon glyphicon-chevron-up"></span>
        </button>
    </p>
</div>

{% assign ancestors = "" | split:"|"  %}

{% if sorted == blank %}
    {% assign sorted = site.pages  | sort: "path"  %}

    {% for node in sorted %}
        {% if node.url contains '1_SquirrelU' %}

            {% if node.url contains 'code'  %}
                {% continue %}
            {% endif %}

            {% assign parts = node.url  | split: '/' %}
            {% capture depth %}{{ parts.size | minus:1 }}{% endcapture %}

            {% for part in parts limit:{{depth}}  %}
                {% if forloop.rindex == 1 %}
                    {% capture ancestor %}{{ part }}{% endcapture %}
                {% endif %}
            {% endfor %}

            {% if ancestors contains ancestor %}
            {% else %}
                {% assign shiftLeft = ancestors.size | plus:1 | minus:depth %}
                {% for i in (0..shiftLeft) %}
                    </ul></li>
                    {% assign ancestors = ancestors | pop %}
                {% endfor %}

                {% assign ancestors = ancestors | push: ancestor %}

                <li><span class="glyphicon glyphicon-triangle-right Collapsable"> {{ ancestor }}</span>
                    <ul style="list-style-type: none;" id="{{ ancestor }}">
            {% endif %}

            {% assign construction = "" %}

            {% if node.status == 'underConstruction' %}
                {% assign construction = "glyphicon glyphicon-alert underConstruction" %}
            {% endif %}

            <li style="list-style-type: disc;">
                <span><a href="{{ site.github.url }}{{ node.url }}">
                    <span class="{{construction}}"></span> {{ node.breadcrumb }}</a></span>

        {% endif %}
    {% endfor %}
{% endif %}

<script type="text/javascript">
    $(".Collapsable").click(function () {
    });
    $("#lhn-collapse").click(function () {
        var collapsed = true;
        if (this.collapsed === true) this.collapsed = false;
        else this.collapsed = true;
{'fraction_non_alphanumeric': 0.16612021857923498, 'fraction_numerical': 0.0019672131147540984, 'mean_word_length': 1.7750151607034566, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '2192421', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1202, 'n_words': 302}