<commit_before>{% macro articles(_articles) %}
    {% for item in _articles %}
        <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path and not item.external %}data-path="{{ item.path|contentLink }}"{% endif %}>
            {% if item.path and item.exists %}
                {% if not item.external %}
                    <a href="{{ basePath }}/{{ item.path|contentLink }}">
                        <i class="fa fa-check"></i>
                        {% if item.level != "0" %}
                            <b>{{ item.level }}.</b>
                        {% endif %}
                        {{ item.title }}
                    </a>
                {% else %}
                    <a target="_blank" href="{{ item.path }}">
                        <i class="fa fa-check"></i>
                        {% if item.level != "0" %}
                            <b>{{ item.level }}.</b>
                        {% endif %}
                        {{ item.title }}
                    </a>
                {% endif %}
            {% else %}
            <span><b>{{ item.level }}.</b> {{ item.title }}</span>
            {% endif %}
            {% if item.articles.length > 0 %}
            <ul class="articles">
                {{ articles(item.articles) }}
            </ul>
            {% endif %}
        </li>
    {% endfor %}
{% endmacro %}

<div class="book-summary">
    <div class="book-search">
        <input type="text" placeholder="{{ __("SEARCH_PLACEHOLDER") }}" class="form-control" />
    </div>
    <ul class="summary">
        {% set _divider = false %}
        {% if options.links.sidebar %}
        {% for linkTitle, link in options.links.sidebar %}
            {% set _divider = true %}
            <li>
                <a href="{{ link }}" target="blank" class="custom-link">{{ linkTitle }}</a>
            </li>
        {% endfor %}
        {% endif %}

        {% if _divider %}
        <li class="divider"></li>
        {% endif %}

        {{ articles(summary.chapters) }}

        {% if options.links.gitbook != false %}
        <li class="divider"></li>
        <li>
            <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                {{ __("GITBOOK_LINK") }}
            </a>
        </li>
        {% endif %}
    </ul>
</div>
<commit_msg>Simpler template for summary<commit_after>{% macro articles(_articles) %}
    {% for item in _articles %}
        <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path and not item.external %}data-path="{{ item.path|contentLink }}"{% endif %}>
            {% if item.path and item.exists %}
                {% if not item.external %}
                    <a href="{{ basePath }}/{{ item.path|contentLink }}">
                {% else %}
                    <a target="_blank" href="{{ item.path }}">
                {% endif %}
                        <i class="fa fa-check"></i>
                        {% if item.level != "0" %}
                            <b>{{ item.level }}.</b>
                        {% endif %}
                        {{ item.title }}
                    </a>
            {% else %}
            <span><b>{{ item.level }}.</b> {{ item.title }}</span>
            {% endif %}
            {% if item.articles.length > 0 %}
            <ul class="articles">
                {{ articles(item.articles) }}
            </ul>
            {% endif %}
        </li>
    {% endfor %}
{% endmacro %}

<div class="book-summary">
    <div class="book-search">
        <input type="text" placeholder="{{ __("SEARCH_PLACEHOLDER") }}" class="form-control" />
    </div>
    <ul class="summary">
        {% set _divider = false %}
        {% if options.links.sidebar %}
        {% for linkTitle, link in options.links.sidebar %}
            {% set _divider = true %}
            <li>
                <a href="{{ link }}" target="blank" class="custom-link">{{ linkTitle }}</a>
            </li>
        {% endfor %}
        {% endif %}

        {% if _divider %}
        <li class="divider"></li>
        {% endif %}

        {{ articles(summary.chapters) }}

        {% if options.links.gitbook != false %}
        <li class="divider"></li>
        <li>
            <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                {{ __("GITBOOK_LINK") }}
            </a>
        </li>
        {% endif %}
    </ul>
</div>

{'fraction_non_alphanumeric': 0.1861976249159758, 'fraction_numerical': 0.001120322652924042, 'mean_word_length': 1.3556728232189974, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 78, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5003224', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1203, 'n_words': 273}