<commit_before>{% assign articleIndex = '0' %}
{% assign incrementIndex = true %}
{% for p in page.parent.parent.articles[page.parent.parent.id] %}
{% if p.id == page.collection %}
{% for guide in page.articles[page.collection] %}
{% if incrementIndex == true %}
{% assign articleIndex = articleIndex | plus: 1 %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}

{% if articleIndex != '0'%}{% if articleIndex != 1 %}
<div class="container-medium">
  <div class="next-lessons themed--background" data-current-lesson="0{{articleIndex}}">
    <h3><i class="icon icon-lessons"></i> Next Sections</h3>
    <ol class="list-lessons list-links">
  {% for p in page.parent.parent.articles[page.parent.parent.id] %}{% if p.id == page.collection %}{% for guide in page.articles[page.collection] %}{% if guide.is_localized != true or guide.langcode == page.langcode %}<li{% if guide.url == page.url %} class="current"{% endif %} title="{{guide.title}}"><a {% if guide.url != page.url %} href="{{site.baseurl}}{{guide.url | clean}}"{% endif %}>{{guide.title}} {% if guide.url == page.url %} <i class="icon icon-tick"></i>{% endif %}</a></li>{%endif%}
  {% endfor %}{% endif %}{% endfor %}</ol>
  </div>
</div>
{% endif %}{% endif %}<commit_msg>#744 - adding further changes to list next sections correctly<commit_after>{% assign articleIndex = '0' %}
{% assign incrementIndex = true %}
{% for p in page.parent.parent.articles[page.parent.parent.id] %}
{% if p.id == page.collection %}
{% for guide in page.articles[page.collection] %}
{% if incrementIndex == true %}
{% assign articleIndex = articleIndex | plus: 1 %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}

{% if articleIndex != '0'%}{% if articleIndex != 1 %}
<div class="container-medium">
  <div class="next-lessons themed--background" data-current-lesson="0{{articleIndex}}">
    <h3><i class="icon icon-lessons"></i> Next Sections</h3>
    <ol class="list-lessons list-links">
  {% for p in page.parent.parent.articles[page.parent.parent.id] %}{% if p.id == page.collection and p.langcode == page.langcode %}{% for guide in page.articles[page.collection] %}{% if guide.is_localized != true or guide.langcode == page.langcode %}<li{% if guide.url == page.url %} class="current"{% endif %} title="{{guide.title}}"><a {% if guide.url != page.url %} href="{{site.baseurl}}{{guide.url | clean}}"{% endif %}>{{guide.title}} {% if guide.url == page.url %} <i class="icon icon-tick"></i>{% endif %}</a></li>{%endif%}
  {% endfor %}{% endif %}{% endfor %}</ol>
  </div>
</div>
{% endif %}{% endif %}
{'fraction_non_alphanumeric': 0.22780832678711704, 'fraction_numerical': 0.006677140612725845, 'mean_word_length': 4.622516556291391, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '6951545', 'n_tokens_mistral': 939, 'n_tokens_neox': 826, 'n_words': 205}