<commit_before>{% if slideshow %}
{{ slideshow_header or '' }}


<div id="the-carousel" class="carousel slide">
	<!-- Indicators -->
	<ol class="carousel-indicators">
		{% for slide in slides %}
			<li data-target="#the-carousel" data-slide-to="0"
				{%- if loop.index==0 %}class="active"{% endif %}></li>
		{% endfor %}
	</ol>

	<!-- Wrapper for slides -->
	<div class="carousel-inner">
		{% for slide in slides %}
		<div class="{% if slide.idx==1 %}active {% endif %}item">
			<img src="{{ slide.image }}" class="slide-image" />
			{% if slide.heading or slide.description %}
			<div class="carousel-caption">
				{% if slide.heading %}<h4>{{ slide.heading }}</h4>{% endif %}
				{% if slide.description %}<p>{{ slide.description }}</p>{% endif %}
			</div>
			{% endif %}
		</div>
		{% endfor %}
	</div>

	<!-- Controls -->
	<a class="left carousel-control" href="#the-carousel" data-slide="prev">
		<span class="fa fa-chevron-left icon"></span>
	</a>
	<a class="right carousel-control" href="#the-carousel" data-slide="next">
		<span class="fa fa-chevron-right icon"></span>
	</a>
</div>

<script>
frappe.ready(function() {
	$(".carousel").carousel();
});
</script>
{% endif %}
<commit_msg>fix: Show slideshow indicator if more than 1 image<commit_after>{% if slideshow %}
{{ slideshow_header or '' }}


<div id="the-carousel" class="carousel slide">
	{% if slides | len > 1 %}
	<!-- Indicators -->
	<ol class="carousel-indicators">
		{% for slide in slides %}
			<li data-target="#the-carousel" data-slide-to="0"
				{%- if loop.index==0 %}class="active"{% endif %}></li>
		{% endfor %}
	</ol>
	{% endif %}

	<!-- Wrapper for slides -->
	<div class="carousel-inner">
		{% for slide in slides %}
		<div class="{% if slide.idx==1 %}active {% endif %}item">
			<img src="{{ slide.image }}" class="slide-image" />
			{% if slide.heading or slide.description %}
			<div class="carousel-caption">
				{% if slide.heading %}<h4>{{ slide.heading }}</h4>{% endif %}
				{% if slide.description %}<p>{{ slide.description }}</p>{% endif %}
			</div>
			{% endif %}
		</div>
		{% endfor %}
	</div>

	<!-- Controls -->
	<a class="left carousel-control" href="#the-carousel" data-slide="prev">
		<span class="fa fa-chevron-left icon"></span>
	</a>
	<a class="right carousel-control" href="#the-carousel" data-slide="next">
		<span class="fa fa-chevron-right icon"></span>
	</a>
</div>

<script>
frappe.ready(function() {
	$(".carousel").carousel();
});
</script>
{% endif %}

{'fraction_non_alphanumeric': 0.23550871503850832, 'fraction_numerical': 0.004864207539521687, 'mean_word_length': 3.7099236641221376, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 64, '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': '7136929', 'n_tokens_mistral': 1009, 'n_tokens_neox': 859, 'n_words': 205}