<commit_before>{% load i18n %}

<div class="form-group-wide{% if form.guilty.errors %} with-error{% endif %}" id="section_guilty_{{ forloop.counter }}">
    <fieldset>

        {% if form.case_data or form.guilty.errors or form_count > 1 %}
        <legend class="form-label-bold">
            <div class="label-line">
                <span class="label-text">
            {% if form.case_data %}
                {{ form.case_data.offence_short_title }}
            {% else %}
                {% if case.plea_made_by == "Defendant" %}
                    {% blocktrans with counter=forloop.counter %}Your plea for charge {{ counter }}{% endblocktrans %}
                {% else %}
                    {% blocktrans with counter=forloop.counter %}Plea for charge {{ counter }}{% endblocktrans %}
                {% endif %}
            {% endif %}
                </span>
            </div>

            {% if form.case_data %}
            <div class="charge-details js-Details" data-summary-open="{% trans "Hide charge information" %}">
                <a class="details-trigger" href="#charge-details-{{ forloop.counter }}"><span class="summary">{% trans "View charge information" %}</span></a>
                <div class="details-content" id="charge-details-{{ forloop.counter }}">
                    {{ form.case_data.offence_wording|linebreaks }}
                </div>
            </div>

            <h4>Your plea for this charge</h4><commit_msg>Display first charge as open by default<commit_after>{% load i18n %}

<div class="form-group-wide{% if form.guilty.errors %} with-error{% endif %}" id="section_guilty_{{ forloop.counter }}">
    <fieldset>

        {% if form.case_data or form.guilty.errors or form_count > 1 %}
        <legend class="form-label-bold">
            <div class="label-line">
                <span class="label-text">
            {% if form.case_data %}
                {{ form.case_data.offence_short_title }}
            {% else %}
                {% if case.plea_made_by == "Defendant" %}
                    {% blocktrans with counter=forloop.counter %}Your plea for charge {{ counter }}{% endblocktrans %}
                {% else %}
                    {% blocktrans with counter=forloop.counter %}Plea for charge {{ counter }}{% endblocktrans %}
                {% endif %}
            {% endif %}
                </span>
            </div>

            {% if form.case_data %}
            <div class="charge-details js-Details{% if forloop.counter == 1 %} open{% endif %}" data-summary-open="{% trans "Hide charge information" %}">
                <a class="details-trigger" href="#charge-details-{{ forloop.counter }}"><span class="summary">{% trans "View charge information" %}</span></a>
                <div class="details-content" id="charge-details-{{ forloop.counter }}">
                    {{ form.case_data.offence_wording|linebreaks }}
                </div>
            </div>

            <h4>Your plea for this charge</h4>
{'fraction_non_alphanumeric': 0.15351024521330198, 'fraction_numerical': 0.003694994961370507, 'mean_word_length': 1.9368836291913214, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '3956739', 'n_tokens_mistral': 906, 'n_tokens_neox': 792, 'n_words': 184}