<commit_before>{% macro node(children, environment, key = 0) %}
    {% import _self as toc %}
    {% for node in children %}
        {% if key == node.position %}
        <li data-pm-block-id="{{ node.id }}" data-pm-block-owner-id="{{ node.owner.id|default("0") }}" {% if node is block_pointer %}data-pm-block-pointer="true" data-pm-block-reference-id="{{ node.reference.id|default }}"{% endif %}>
            <span class="node-block {% if node is block_pointer %}node-pointer{% endif %} {% if environment.object.id != node.owner.id|default("0") and node.owner.id|default("0") != "0" %}node-inherited{% endif %}">
                {% if environment.getTool(node).name == 'Section' %}
                    {% if node.properties.sectionName is not empty %}
                        <i class="material-icons md-18">{{ environment.getTool(node).icon }}</i> {{ node.properties.sectionName }}
                    {% else %}
                        <i class="material-icons md-18">{{ environment.getTool(node).icon }}</i> {{ environment.getTool(node).name }}
                    {% endif %}
                {% endif %}
                {% spaceless %}
                <div class="pm-btn-group">
                    {% if  environment.object.id == node.owner.id|default("0") %}<i data-pm-block-id="{{ node.id }}" class="pm-btn pm-btn-drag material-icons">drag_handle</i>{% endif %}
                    <i data-pm-block-id="{{ node.id }}" class="pm-btn pm-btn-localize material-icons">location_searching</i>
                    {% if  environment.object.id == node.owner.id|default("0") %}<i data-pm-block-id="{{ (node is block_pointer and node.reference.id|default) ? node.reference.id : node.id }}" class="pm-btn pm-btn-edit material-icons">edit</i>{% endif %}
                </div>
                {% endspaceless %}
            </span>
            {% if node is block_pointer and node.reference.id|default %}
                {% set node = node.reference %}<commit_msg>Added condition not to look for sectonName when creating new section<commit_after>{% macro node(children, environment, key = 0) %}
    {% import _self as toc %}
    {% for node in children %}
        {% if key == node.position %}
        <li data-pm-block-id="{{ node.id }}" data-pm-block-owner-id="{{ node.owner.id|default("0") }}" {% if node is block_pointer %}data-pm-block-pointer="true" data-pm-block-reference-id="{{ node.reference.id|default }}"{% endif %}>
            <span class="node-block {% if node is block_pointer %}node-pointer{% endif %} {% if environment.object.id != node.owner.id|default("0") and node.owner.id|default("0") != "0" %}node-inherited{% endif %}">
                {% if environment.getTool(node).name == 'Section' %}
                    {% if node.properties.sectionName|default and node.properties.sectionName is not empty %}
                        <i class="material-icons md-18">{{ environment.getTool(node).icon }}</i> {{ node.properties.sectionName }}
                    {% else %}
                        <i class="material-icons md-18">{{ environment.getTool(node).icon }}</i> {{ environment.getTool(node).name }}
                    {% endif %}
                {% endif %}
                {% spaceless %}
                <div class="pm-btn-group">
                    {% if  environment.object.id == node.owner.id|default("0") %}<i data-pm-block-id="{{ node.id }}" class="pm-btn pm-btn-drag material-icons">drag_handle</i>{% endif %}
                    <i data-pm-block-id="{{ node.id }}" class="pm-btn pm-btn-localize material-icons">location_searching</i>
                    {% if  environment.object.id == node.owner.id|default("0") %}<i data-pm-block-id="{{ (node is block_pointer and node.reference.id|default) ? node.reference.id : node.id }}" class="pm-btn pm-btn-edit material-icons">edit</i>{% endif %}
                </div>
                {% endspaceless %}
            </span>
            {% if node is block_pointer and node.reference.id|default %}
                {% set node = node.reference %}
{'fraction_non_alphanumeric': 0.18107098381070985, 'fraction_numerical': 0.005479452054794521, 'mean_word_length': 2.2783673469387753, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '2365344', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1127, 'n_words': 244}