<commit_before><!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<!-- ===========================Project setup select address=========================== -->

<div th:fragment="select-address">
    <fieldset>
        <legend class="visuallyhidden">Operating address</legend>
        <div class="form-block">
            <label class="block-label" for="address-use-org">
                <input id="address-use-org" type="radio" name="project-address-group" value="address-use-org" th:field="*{projectAddressGroup}"/>
                Use organisation address (<strong>BS1 4NT</strong>)
            </label>
        </div>
        <div class="form-block">
            <label class="block-label" for="address-use-operating">
                <input id="address-use-operating" type="radio" name="project-address-group" value="address-use-operating" th:field="*{projectAddressGroup}"/>
                Use operating address (<strong>SN1 2UE</strong>)
            </label>
        </div>
        <div class="form-block">
            <label class="block-label" for="address-add-project">
                <input id="address-add-project" type="radio" name="project-address-group" value="address-add-project" th:field="*{projectAddressGroup}"/>
                Enter an alternative project address
            </label>
        </div>
    </fieldset> 


    <div id="selected-address" class="boxed extra-margin" style="display: none;">
        <h3 class="heading-medium no-margin-top" th:text="${(address != null and address == 'bankDetails' ? 'Confirm organisation address' : 'Confirm project location')}">LOCATION TITLE</h3>
        <p><span class="street">Street</span> <br />
            <span class="street2"></span> <br />
            <span class="street3"></span> <br />
            <span class="town">Town</span><br />
            <span class="county">County</span><br />
            <span class="postcode">Postcode</span>
        </p>
    </div>

    <div th:class="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch} ? 'form-group error' : 'form-group'">
        <label class="form-label" for="postcode-check">
            <span class="form-label-bold">Postcode</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.postcodeInput')}" th:text="${err}" />
                    </span>
        </label>
        <input class="form-control" th:field="*{addressForm.postcodeInput}" th:classappend="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch} ? 'field-error' : ''" type="text" />
        <button type="submit" id="postcode-lookup" class="button" name="search-address">Find UK address</button>
        <div th:if='${form.addressForm.postcodeInput != ""} and ${form.addressForm.postcodeOptions.size()}==0'>No results were found</div>
    </div>

    <div class="form-group" id="select-address-block" th:if="${form.addressForm.postcodeOptions != null and form.addressForm.postcodeOptions.size() != 0}">
        <label class="form-label" for="select-address">
            <span class="form-label-bold">Select your address</span>
        </label>
        <select class="form-control" th:field="*{addressForm.selectedPostcodeIndex}">
            <option th:value="${status.index}" th:each="address,status : ${form.addressForm.postcodeOptions}" th:text="${address.combinedString}"></option>
        </select>
        <button type="submit" class="button" name="select-address">Use selected address</button>
    </div>
    <button type="submit" class="buttonlink" name="manual-address">Enter address manually</button>

    <fieldset id="address-details" class="extra-margin" th:if="${form.addressForm.selectedPostcodeIndex != null or form.addressForm.manualAddress}">
        <input type="hidden" th:field="*{addressForm.manualAddress}" />
        <legend class="visuallyhidden">Address details</legend>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="street">
                <span class="form-label-bold">Street</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine1')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine1}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label visuallyhidden" for="street-2">
                <span class="form-label-bold">Street line 2</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine2')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine2}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave} ? 'field-error' : ''"   type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="street-2">
                <span class="form-label-bold visuallyhidden">Street line 3</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine3')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine3}"  th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="town">
                <span class="form-label-bold">Town</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.town')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.town}"  th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="county">
                <span class="form-label-bold">County</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.county')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.county}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave} ? 'field-error' : ''"  type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="postcode">
                <span class="form-label-bold">Postcode</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.postcode')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.postcode}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
    </fieldset>
</div>

</html><commit_msg>Showing op add if it exist<commit_after><!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<!-- ===========================Project setup select address=========================== -->

<div th:fragment="select-address">
    <fieldset>
        <legend class="visuallyhidden">Operating address</legend>
        <div class="form-block" th:if="${model.registeredAddress}">
            <label class="block-label" for="address-use-org">
                <input id="address-use-org" type="radio" name="project-address-group" value="address-use-org" th:field="*{projectAddressGroup}"/>
                Use organisation address (<strong th:text="${model.registeredAddress.postcode}">BS1 4NT</strong>)
            </label>
        </div>
        <div class="form-block" th:if="${model.operatingAddress}">
            <label class="block-label" for="address-use-operating">
                <input id="address-use-operating" type="radio" name="project-address-group" value="address-use-operating" th:field="*{projectAddressGroup}"/>
                Use operating address (<strong th:text="${model.operatingAddress?.postcode}">SN1 2UE</strong>)
            </label>
        </div>
        <div class="form-block">
            <label class="block-label" for="address-add-project">
                <input id="address-add-project" type="radio" name="project-address-group" value="address-add-project" th:field="*{projectAddressGroup}"/>
                Enter an alternative project address
            </label>
        </div>
    </fieldset> 


    <div id="selected-address" class="boxed extra-margin" style="display: none;">
        <h3 class="heading-medium no-margin-top" th:text="${(address != null and address == 'bankDetails' ? 'Confirm organisation address' : 'Confirm project location')}">LOCATION TITLE</h3>
        <p><span class="street">Street</span> <br />
            <span class="street2"></span> <br />
            <span class="street3"></span> <br />
            <span class="town">Town</span><br />
            <span class="county">County</span><br />
            <span class="postcode">Postcode</span>
        </p>
    </div>

    <div th:class="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch} ? 'form-group error' : 'form-group'">
        <label class="form-label" for="postcode-check">
            <span class="form-label-bold">Postcode</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.postcodeInput')}" th:text="${err}" />
                    </span>
        </label>
        <input class="form-control" th:field="*{addressForm.postcodeInput}" th:classappend="${#fields.hasErrors('*{addressForm.postcodeInput}') and form.addressForm.triedToSearch} ? 'field-error' : ''" type="text" />
        <button type="submit" id="postcode-lookup" class="button" name="search-address">Find UK address</button>
        <div th:if='${form.addressForm.postcodeInput != ""} and ${form.addressForm.postcodeOptions.size()}==0'>No results were found</div>
    </div>

    <div class="form-group" id="select-address-block" th:if="${form.addressForm.postcodeOptions != null and form.addressForm.postcodeOptions.size() != 0}">
        <label class="form-label" for="select-address">
            <span class="form-label-bold">Select your address</span>
        </label>
        <select class="form-control" th:field="*{addressForm.selectedPostcodeIndex}">
            <option th:value="${status.index}" th:each="address,status : ${form.addressForm.postcodeOptions}" th:text="${address.combinedString}"></option>
        </select>
        <button type="submit" class="button" name="select-address">Use selected address</button>
    </div>
    <button type="submit" class="buttonlink" name="manual-address">Enter address manually</button>

    <fieldset id="address-details" class="extra-margin" th:if="${form.addressForm.selectedPostcodeIndex != null or form.addressForm.manualAddress}">
        <input type="hidden" th:field="*{addressForm.manualAddress}" />
        <legend class="visuallyhidden">Address details</legend>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="street">
                <span class="form-label-bold">Street</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine1')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine1}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine1}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label visuallyhidden" for="street-2">
                <span class="form-label-bold">Street line 2</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine2')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine2}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine2}') and form.addressForm.triedToSave} ? 'field-error' : ''"   type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="street-2">
                <span class="form-label-bold visuallyhidden">Street line 3</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.addressLine3')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.addressLine3}"  th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.addressLine3}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="town">
                <span class="form-label-bold">Town</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.town')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.town}"  th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.town}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="county">
                <span class="form-label-bold">County</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave}" th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.county')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.county}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.county}') and form.addressForm.triedToSave} ? 'field-error' : ''"  type="text" />
        </div>
        <div th:class="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave} ? 'form-group error' : 'form-group'">
            <label class="form-label" for="postcode">
                <span class="form-label-bold">Postcode</span>
                    <span th:if="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave}"  th:remove="tag">
                          <span class="error-message"  th:each="err : ${#fields.errors('addressForm.selectedPostcode.postcode')}" th:text="${err}" />
                    </span>
            </label>
            <input class="form-control" th:field="*{addressForm.selectedPostcode.postcode}" th:classappend="${#fields.hasErrors('*{addressForm.selectedPostcode.postcode}') and form.addressForm.triedToSave} ? 'field-error' : ''" type="text" />
        </div>
    </fieldset>
</div>

</html>
{'fraction_non_alphanumeric': 0.18389901529436414, 'fraction_numerical': 0.0035617012361198407, 'mean_word_length': 3.286708576560395, 'pattern_counts': {'":': 0, '<': 293, '<?xml version=': 0, '>': 293, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2148770', 'n_tokens_mistral': 5642, 'n_tokens_neox': 5485, 'n_words': 832}