<commit_before><div ui-tree-handle>
    <a ng-click="toggle(this)" ng-if="parent.children && parent.children.length > 0" class="expandable-toggle"><span class="fa fa-fw" ng-class="{ 'fa-chevron-right': collapsed, 'fa-chevron-down': !collapsed}" aria-hidden="true"></span></a>
    <span ng-if="!parent.children || parent.children.length == 0" class="fa fa-fw">
    </span>
    <span ng-click="onClickCallback({target:parent, elem: element})" ng-class="{ 'selected-leaf': element.id == parent.id }">
        <i class="fa fa-university fa-fw fa-light fa-small" aria-hidden="true" ng-if="parent.typeid == 0"></i>
        <i class="fa fa-tag fa-fw fa-light fa-small" aria-hidden="true" ng-if="parent.typeid == 1"></i>
        <span ng-if="parent[prefixAttribute]" class="contextPrefix">{{ parent[prefixAttribute]}}</span> <span ng-style="getColorForId(parent[typeAttribute])" ng-class="{ 'selected-leaf-child': element.id == parent.id }">{{ parent[displayAttribute] }}</span>
    </span>
    <span ng-if="getRecLength(parent) > 0" class="badge" style="float: right;">
        {{ getRecLength(parent) }}
    </span>
</div>
<ul ui-tree-nodes="" ng-model="parent.children" ng-class="{ hidden: collapsed }">
    <li ng-repeat="parent in parent.children" ui-tree-node data-collapsed="true" ng-include="'includes/new-tree-child.html'" context-menu="setContextMenu">
    </li>
</ul><commit_msg>only add expanded elements to the DOM<commit_after><div ui-tree-handle>
    <a ng-click="toggle(this)" ng-if="parent.children && parent.children.length > 0" class="expandable-toggle"><span class="fa fa-fw" ng-class="{ 'fa-chevron-right': collapsed, 'fa-chevron-down': !collapsed}" aria-hidden="true"></span></a>
    <span ng-if="!parent.children || parent.children.length == 0" class="fa fa-fw">
    </span>
    <span ng-click="onClickCallback({target:parent, elem: element})" ng-class="{ 'selected-leaf': element.id == parent.id }">
        <i class="fa fa-university fa-fw fa-light fa-small" aria-hidden="true" ng-if="parent.typeid == 0"></i>
        <i class="fa fa-tag fa-fw fa-light fa-small" aria-hidden="true" ng-if="parent.typeid == 1"></i>
        <span ng-if="parent[prefixAttribute]" class="contextPrefix">{{ parent[prefixAttribute]}}</span> <span ng-style="getColorForId(parent[typeAttribute])" ng-class="{ 'selected-leaf-child': element.id == parent.id }">{{ parent[displayAttribute] }}</span>
    </span>
    <span ng-if="getRecLength(parent) > 0" class="badge" style="float: right;">
        {{ getRecLength(parent) }}
    </span>
</div>
<ul ui-tree-nodes="" ng-model="parent.children" ng-class="{ hidden: collapsed }">
    <li ng-repeat="parent in parent.children" ng-if="!collapsed" ui-tree-node data-collapsed="true" ng-include="'includes/new-tree-child.html'" context-menu="setContextMenu">
    </li>
</ul>
{'fraction_non_alphanumeric': 0.2119700748129676, 'fraction_numerical': 0.003562522265764161, 'mean_word_length': 4.672727272727273, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 55, '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': '1049230', 'n_tokens_mistral': 952, 'n_tokens_neox': 921, 'n_words': 180}