<commit_before>{% if contacts | length > 0 or report.reasonForNoContacts != "" %}
    <div class="section" id="contacts-section">
        <h2 class="section-heading">People you consulted</h2>
                        
        {% if contacts | length == 0 %}
            <div class="box contact-item no-contact" id="no-contact">
                <dl class="labelvalue">
                    <dt class="label">Check this box if you did not consult anyone and use the box below to tell us why.</dt>
                    <dd class="value checkbox">X</dd>
                    <dd class="value textarea">{{ report.reasonForNoContacts }}</dd>
                </dl>
            </div>
        {% else %}
            <div class="box">
                <ul class="box-list">
                    {% for contact in contacts %}
                        <li class="box-item">
                            <dl class="labelvalue half-width first">
                                <dt class="label">Full name</dt>
                                <dd class="value">{{ contact.contactName }}</dd>
             
                                <dt class="label">Address</dt>
                                <dd class="value textarea">
                                    {{ contact.address }}<br/>
                                    {{ contact.address2 }}<br/>
                                    {{ contact.county }}<br/>
                                    {{ contact.postcode }}<br/>
                                    {{ contact.country | country_name }}
                                </dd>
                            </dl>
                            <dl class="labelvalue half-width">
                                <dt class="label">Relationship to client</dt>
                                <dd class="value">{{ contact.relationship }}</dd>
        
                                <dt class="label">Why did you consult them?</dt>
                                <dd class="value textarea">{{ contact.explanation }}</dd>
                            </dl>
                        </li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
    </div>
{% endif %}
<commit_msg>dd-1338 fix to layout for contacts<commit_after>{% if contacts | length > 0 or report.reasonForNoContacts != "" %}
    <div class="section" id="contacts-section">
        <h2 class="section-heading">People you consulted</h2>
                        
        {% if contacts | length == 0 %}
            <div class="box contact-item no-contact" id="no-contact">
                <dl class="labelvalue">
                    <dt class="label">Check this box if you did not consult anyone and use the box below to tell us why.</dt>
                    <dd class="value checkbox">X</dd>
                    <dd class="value textarea">{{ report.reasonForNoContacts }}</dd>
                </dl>
            </div>
        {% else %}
            <div class="box">
                <ul class="box-list">
                    {% for contact in contacts %}
                        <li class="box-list-item">
                            <dl class="labelvalue half-width first">
                                <dt class="label">Full name</dt>
                                <dd class="value">{{ contact.contactName }}</dd>
             
                                <dt class="label">Address</dt>
                                <dd class="value textarea">
                                    {{ contact.address }}<br/>
                                    {{ contact.address2 }}<br/>
                                    {{ contact.county }}<br/>
                                    {{ contact.postcode }}<br/>
                                    {{ contact.country | country_name }}
                                </dd>
                            </dl>
                            <dl class="labelvalue half-width">
                                <dt class="label">Relationship to client</dt>
                                <dd class="value">{{ contact.relationship }}</dd>
        
                                <dt class="label">Why did you consult them?</dt>
                                <dd class="value textarea">{{ contact.explanation }}</dd>
                            </dl>
                        </li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
    </div>
{% endif %}

{'fraction_non_alphanumeric': 0.1250564334085779, 'fraction_numerical': 0.003160270880361174, 'mean_word_length': 0.9693333333333334, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1218810', 'n_tokens_mistral': 1079, 'n_tokens_neox': 982, 'n_words': 251}