<commit_before>{% extends "layout.html.twig" %}

{% import _self as macros %}

{% block title %}{% if title is not empty %}{{ title }} - {% endif %}{{ parent() }}{% endblock %}

{% block content %}

    <div id="searchbar" class="clearfix">
      <input id="docsearch" type="text" placeholder="Search documentation">
    </div>

    {% if toc|length %}
        <ul class="toc">
            {{ macros.tocTree(toc|length > 3 ? toc : toc.1) }}
        </ul>
    {% endif %}
    {{ doc|raw }}

    <p class="fork-and-edit">
        Found a typo? Something is wrong in this documentation? Just <a href="https://github.com/composer/composer/edit/master/doc/{{ file }}">fork and edit</a> it!
    </p>
{% endblock %}

{% macro tocTree(tree) %}
    {% import _self as macros %}

    {% for key, node in tree if (key not in ['title', 'id', 'desc']) %}
        <li>
            <a href="#{{ node.id }}">{{ node.title }}</a> {{ node.desc }}
            {% if node|length > 3 %}
                <ul>
                    {{ macros.tocTree(node) }}
                </ul>
            {% endif %}
        </li>
    {% endfor %}
{% endmacro %}<commit_msg>don't use 'just' in documentation footer<commit_after>{% extends "layout.html.twig" %}

{% import _self as macros %}

{% block title %}{% if title is not empty %}{{ title }} - {% endif %}{{ parent() }}{% endblock %}

{% block content %}

    <div id="searchbar" class="clearfix">
      <input id="docsearch" type="text" placeholder="Search documentation">
    </div>

    {% if toc|length %}
        <ul class="toc">
            {{ macros.tocTree(toc|length > 3 ? toc : toc.1) }}
        </ul>
    {% endif %}
    {{ doc|raw }}

    <p class="fork-and-edit">
        Found a typo? Something is wrong in this documentation? <a href="https://github.com/composer/composer/edit/master/doc/{{ file }}">Fork and edit</a> it!
    </p>
{% endblock %}

{% macro tocTree(tree) %}
    {% import _self as macros %}

    {% for key, node in tree if (key not in ['title', 'id', 'desc']) %}
        <li>
            <a href="#{{ node.id }}">{{ node.title }}</a> {{ node.desc }}
            {% if node|length > 3 %}
                <ul>
                    {{ macros.tocTree(node) }}
                </ul>
            {% endif %}
        </li>
    {% endfor %}
{% endmacro %}
{'fraction_non_alphanumeric': 0.1990418118466899, 'fraction_numerical': 0.002613240418118467, 'mean_word_length': 2.1422708618331052, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, 'https://': 2, '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': '6781788', 'n_tokens_mistral': 826, 'n_tokens_neox': 722, 'n_words': 196}