<commit_before>{% if showCore %}
    {% include 'core.twig' %}
{% endif %}
<p>&nbsp;</p>
<!-- start of accordion -->
<div class="panel-group" role="tablist" aria-multiselectable="true" id="accordion_update" >
{% if showThemes %}
	{% set nbMaj = 0 %}
	{% set exts = themes %}
	{% for ext in exts %}
		{% if ext.updateAvailable and ext.installed %}
			{% set nbMaj = nbMaj + 1 %}
		{% endif %}
	{% endfor %}
	<!-- start of panel -->
	{% if nbMaj > 0 %}
		<div class="panel panel-warning"  >
	{% else %}
		<div class="panel panel-default"  >
	{% endif %}
		<div class="panel-heading" role="tab" id="headingThemes" role="button" data-toggle="collapse" data-parent="#accordion_update" href="#collapseThemes" aria-expanded="true" aria-controls="collapseThemes">
			<h2 class="panel-title">Thèmes
				{% if nbMaj > 0 %}
					<span style="float: right;">Vous avez {{nbMaj}} thèmes à mettre à jour</span>
				{% endif %}
			</h2>
		</div>
		<div id="collapseThemes" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThemes">
			{% set exts = themes %}
			{% include 'exts.twig' %}
		</div>
	 </div> <!-- end of panel -->
{% endif %}

{% if showTools %}
	{% set nbMaj = 0 %}
	{% set exts = tools %}
	{% for ext in exts %}
		{% if ext.updateAvailable and ext.installed %}
			{% set nbMaj = nbMaj + 1 %}
		{% endif %}
	{% endfor %}
	<!-- start of panel -->
	{% if nbMaj > 0 %}
		<div class="panel panel-warning"  >
	{% else %}
		<div class="panel panel-default"  >
	{% endif %}
		<div class="panel-heading" role="tab" id="headingTools" role="button" data-toggle="collapse" data-parent="#accordion_update" href="#collapseTools" aria-expanded="true" aria-controls="collapseTools">
			<h2 class="panel-title">Tools (extensions)
				{% if nbMaj > 0 %}
					<span style="float: right;">Vous avez {{nbMaj}} extensions à mettre à jour</span>
				{% endif %}
			</h2>
		</div>
		<div id="collapseTools" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTools">
			{% set exts = tools %}
			{% include 'exts.twig' %}
		</div>
	</div> <!-- end of panel -->
{% endif %}
</div><!-- end of accordion --><commit_msg>Handling of singular when there is only on update<commit_after>{% if showCore %}
    {% include 'core.twig' %}
{% endif %}
<p>&nbsp;</p>
<!-- start of accordion -->
<div class="panel-group" role="tablist" aria-multiselectable="true" id="accordion_update" >
{% if showThemes %}
	{% set nbMaj = 0 %}
	{% set exts = themes %}
	{% for ext in exts %}
		{% if ext.updateAvailable and ext.installed %}
			{% set nbMaj = nbMaj + 1 %}
		{% endif %}
	{% endfor %}
	<!-- start of panel -->
	{% if nbMaj > 0 %}
		<div class="panel panel-warning"  >
	{% else %}
		<div class="panel panel-default"  >
	{% endif %}
		<div class="panel-heading" role="tab" id="headingThemes" role="button" data-toggle="collapse" data-parent="#accordion_update" href="#collapseThemes" aria-expanded="true" aria-controls="collapseThemes">
			<h2 class="panel-title">Thèmes
				{% if nbMaj > 0 %}
					{% set alerte = '' %}
					{% if nbMaj > 1 %}
						{% set alerte = 'Vous avez {{nbMaj}} thèmes à mettre à jour' %}
					{% else %}
						{% set alerte = 'Vous avez 1 thème à mettre à jour' %}
					{% endif %}
					<span style="float: right;">{{alerte}}</span>
				{% endif %}
			</h2>
		</div>
		<div id="collapseThemes" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThemes">
			{% set exts = themes %}
			{% include 'exts.twig' %}
		</div>
	 </div> <!-- end of panel -->
{% endif %}

{% if showTools %}
	{% set nbMaj = 0 %}
	{% set exts = tools %}
	{% for ext in exts %}
		{% if ext.updateAvailable and ext.installed %}
			{% set nbMaj = nbMaj + 1 %}
		{% endif %}
	{% endfor %}
	<!-- start of panel -->
	{% if nbMaj > 0 %}
		<div class="panel panel-warning"  >
	{% else %}
		<div class="panel panel-default"  >
	{% endif %}
		<div class="panel-heading" role="tab" id="headingTools" role="button" data-toggle="collapse" data-parent="#accordion_update" href="#collapseTools" aria-expanded="true" aria-controls="collapseTools">
			<h2 class="panel-title">Tools (extensions)
				{% if nbMaj > 0 %}
					{% set alerte = '' %}
					{% if nbMaj > 1 %}
						{% set alerte = 'Vous avez {{nbMaj}} extensions à mettre à jour' %}
					{% else %}
						{% set alerte = 'Vous avez 1 extension à mettre à jour' %}
					{% endif %}
					<span style="float: right;">{{alerte}}</span>
				{% endif %}
			</h2>
		</div>
		<div id="collapseTools" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTools">
			{% set exts = tools %}
			{% include 'exts.twig' %}
		</div>
	</div> <!-- end of panel -->
{% endif %}
</div><!-- end of accordion -->
{'fraction_non_alphanumeric': 0.2011125374411639, 'fraction_numerical': 0.00599058622165169, 'mean_word_length': 3.373246024321796, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 77, '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': '2487188', 'n_tokens_mistral': 2011, 'n_tokens_neox': 1628, 'n_words': 412}