<commit_before>{% if children %}
{% for child in this.getChildrenSortedByScore()  %}
	{{ child.getHtmlRevert() | raw }}
{% endfor %}
{% endif %}

{% if children %}
{# FIXME: getDepth doit etre fait par rapport au max de l'arbre global, pas de l'arbre courant! #}
{% for i in 1..this.getRevertDepth() %}
<div class="pad {{ loop.last?"arrow":"" }}">
{% endfor %}
{% endif %}

{% if not replacementNode %}
	<div class='item {{ type }}'>
		<div class='className'><a href="class?q={{ name | url_encode }}">{{ name }}</a>
		{% spaceless %}
		<div class="stars-container">
		{% if this.getNbStars() %}
		{% for i in 1..this.getNbStars() %}
		<span class="glyphicon glyphicon-star"></span>
		{% endfor %}
		{% endif %}
		</div>
		{% endspaceless %}
		</div>
		{% for packageName, versions in this.getImportantPackages() %}
		<div class='package small'>
		{{ packageName }}
		<span class="versions">
		{% for version in versions%}
		<span class="version badge"><a href="{{ constant("ROOT_URL") }}package?name={{ packageName }}&version={{ version }}">{{ version }}</a></span>
		{% endfor %}
		</span>
		</div>
		{% endfor %}
		
		{% if this.getNotImportantPackages()  %}
		<div class="otherpackagescontainer">
			<a class="otherpackageslink" href="#">View more packages</a>
			<div class="otherpackages"> 
				{% for packageName, versions in this.getNotImportantPackages() %}
				<div class='package small'>
				{{ packageName }}
				<span class="versions">
				{% for version in versions%}
				<span class="version badge"><a href="{{ constant("ROOT_URL") }}package?name={{ packageName }}&version={{ version }}">{{ version }}</a></span>
				{% endfor %}
				</span>
				</div>
				{% endfor %}
			</div>
		</div>
		{% endif %}
		
		
	</div>
{% else %}
	{{ toHtml(replacementNode) }}
{% endif %}

{% if children %}
{% for i in 1..this.getRevertDepth() %}
</div>
{% endfor %}
{% endif %}<commit_msg>Fixing bug in type hierarchy display<commit_after>{% if children %}
{% for child in this.getChildrenSortedByScore()  %}
	{{ child.getHtmlRevert() | raw }}
{% endfor %}
{% endif %}

{% if this.getRevertDepth() != 0 %}
{# FIXME: getDepth doit etre fait par rapport au max de l'arbre global, pas de l'arbre courant! #}
{% for i in 1..this.getRevertDepth() %}
<div class="pad {{ (loop.last and children)?"arrow":"" }}">
{% endfor %}
{% endif %}

{% if not replacementNode %}
	<div class='item {{ type }}'>
		<div class='className'><a href="class?q={{ name | url_encode }}">{{ name }}</a>
		{% spaceless %}
		<div class="stars-container">
		{% if this.getNbStars() %}
		{% for i in 1..this.getNbStars() %}
		<span class="glyphicon glyphicon-star"></span>
		{% endfor %}
		{% endif %}
		</div>
		{% endspaceless %}
		</div>
		{% for packageName, versions in this.getImportantPackages() %}
		<div class='package small'>
		{{ packageName }}
		<span class="versions">
		{% for version in versions%}
		<span class="version badge"><a href="{{ constant("ROOT_URL") }}package?name={{ packageName }}&version={{ version }}">{{ version }}</a></span>
		{% endfor %}
		</span>
		</div>
		{% endfor %}
		
		{% if this.getNotImportantPackages()  %}
		<div class="otherpackagescontainer">
			<a class="otherpackageslink" href="#">View more packages</a>
			<div class="otherpackages"> 
				{% for packageName, versions in this.getNotImportantPackages() %}
				<div class='package small'>
				{{ packageName }}
				<span class="versions">
				{% for version in versions%}
				<span class="version badge"><a href="{{ constant("ROOT_URL") }}package?name={{ packageName }}&version={{ version }}">{{ version }}</a></span>
				{% endfor %}
				</span>
				</div>
				{% endfor %}
			</div>
		</div>
		{% endif %}
		
		
	</div>
{% else %}
	{{ toHtml(replacementNode) }}
{% endif %}

{% if this.getRevertDepth() != 0 %}
{% for i in 1..this.getRevertDepth() %}
</div>
{% endfor %}
{% endif %}
{'fraction_non_alphanumeric': 0.21413721413721415, 'fraction_numerical': 0.002079002079002079, 'mean_word_length': 3.9094387755102042, 'pattern_counts': {'":': 2, '<': 71, '<?xml version=': 0, '>': 71, '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': '3868672', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1290, 'n_words': 319}