<commit_before><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block
        th:with="applicationName=${#strings.isEmpty(model.applicationName)} ? #{ifs.application.no_title} : ${model.applicationName}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=|Your funding - ${applicationName}|"/>
    </th:block>
</head>
<body class="govuk-template__body finance-row-form">
<th:block th:insert="fragments/layout :: body-start"/>
<th:block th:insert="fragments/layout :: global-header"/>

<div class="govuk-width-container">
    <th:block th:insert="fragments/layout :: phase-banner"/>

    <th:block th:insert="fragments/layout :: header-sub"
              th:with="linkTitle='Your project finances',linkClass='link-back',linkUrl=${model.financesUrl}"/>

    <main class="govuk-main-wrapper" id="main-content" role="main">

        <div th:if="${#fields.hasErrors('${form.*}')}" class="govuk-error-summary"
             aria-labelledby="error-summary-title"
             role="alert"
             tabindex="-1"
             data-module="govuk-error-summary">
            <h2 class="govuk-error-summary__title" id="error-summary-title">There is a problem</h2>
            <th:block th:insert="fragments/elements :: error-summary-list(form)"/>
        </div>

        <th:block th:insert="fragments/layout :: page-title"
                  th:with="pageTitle='Your funding',subTitle=${model.applicationName},size='govuk-heading-xl'"/>

        <th:block th:if="${model.fundingSectionLocked}">
            <p class="govuk-body" th:if="${model.leadApplicant}">
                Before you can supply your funding details you must:
            </p>
            <p class="govuk-body" th:unless="${model.leadApplicant}">
                Before you can supply your funding details:
            </p>
            <ul class="govuk-list govuk-list--bullet">
                <li th:if="${model.researchCategoryRequired and model.leadApplicant}">
                    mark the
                    <a th:href="@{/application/{id}/form/question/{questionId}(id=${model.applicationId}, questionId=${model.researchCategoryQuestionId})}"
                       class="govuk-link">
                        research category
                    </a>
                    page as complete
                </li>
                <li th:if="${model.yourOrganisationRequired}">
                    <th:block th:unless="${model.leadApplicant}">you must</th:block>mark the
                    <a th:href="@{/application/{id}/form/section/{sectionId}(id=${model.applicationId}, sectionId=${model.yourOrganisationSectionId})}"
                       class="govuk-link">
                        your organisation
                    </a>
                    page as complete
                </li>
                <li th:if="${model.researchCategoryRequired and !model.leadApplicant}">
                    the lead applicant must mark the research category page as complete
                </li>
            </ul>
        </th:block>
        <th:block th:unless="${model.fundingSectionLocked}">
            <form th:object="${form}"
                  th:action="@{${#ifsUtil.formPostUri(#httpServletRequest)}}"
                  th:attr="data-autosave=@{/application/{applicationId}/form/your-funding/organisation/{organisationId}/section/{sectionId}/auto-save(applicationId=${model.applicationId},sectionId=${model.sectionId},organisationId=${model.organisationId})},
                           data-application-id=${model.applicationId},
                           data-section-id=${model.sectionId},
                           data-row-operation-url=@{/application/{applicationId}/form/your-funding/organisation/{organisationId}/section/{sectionId}(applicationId=${model.applicationId},sectionId=${model.sectionId},organisationId=${model.organisationId})}"
                  enctype="multipart/form-data"
                  novalidate="novalidate"
                  method="POST">

                <input th:if="${model.ktpFundingType}" type="hidden" name="previous" value="previous" />

                <th:block th:insert="application/your-funding-fragments :: form(
                                form=${form},
                               readOnly=${model.readOnly},
                               guidanceFragment=${model.business ? 'applicant-business' : 'applicant-non-business'},
                               maximumFundingLevel=${model.maximumFundingLevel},
                               hideAreYouRequestingFunding=${model.ktpFundingType && !model.knowledgeBaseOrganisation}
                                               )"/>

                <div class="form-footer" th:if="${model.open}">
                    <div class="form-footer__actions">
                        <button id="mark-all-as-complete" th:unless="${model.complete}" type="submit" name="complete"
                                class="button-clear" value="true">Mark as complete
                        </button>
                        <button th:if="${model.complete}" type="submit" name="edit" class="button-clear" value="true">
                            Edit your funding
                        </button>
                    </div>
                </div>
                <div>
                    <a th:href="${model.financesUrl}"
                       th:if="${model.readOnly}"
                       class="govuk-!-margin-top-6 govuk-button govuk-button--secondary">Return to finances
                    </a>
                    <button type="submit" th:unless="${model.readOnly}"
                            class="govuk-!-margin-top-6 govuk-button">
                        Save and return to project finances<commit_msg>IFS-7956 removing guidance text for ktp<commit_after><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block
        th:with="applicationName=${#strings.isEmpty(model.applicationName)} ? #{ifs.application.no_title} : ${model.applicationName}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=|Your funding - ${applicationName}|"/>
    </th:block>
</head>
<body class="govuk-template__body finance-row-form">
<th:block th:insert="fragments/layout :: body-start"/>
<th:block th:insert="fragments/layout :: global-header"/>

<div class="govuk-width-container">
    <th:block th:insert="fragments/layout :: phase-banner"/>

    <th:block th:insert="fragments/layout :: header-sub"
              th:with="linkTitle='Your project finances',linkClass='link-back',linkUrl=${model.financesUrl}"/>

    <main class="govuk-main-wrapper" id="main-content" role="main">

        <div th:if="${#fields.hasErrors('${form.*}')}" class="govuk-error-summary"
             aria-labelledby="error-summary-title"
             role="alert"
             tabindex="-1"
             data-module="govuk-error-summary">
            <h2 class="govuk-error-summary__title" id="error-summary-title">There is a problem</h2>
            <th:block th:insert="fragments/elements :: error-summary-list(form)"/>
        </div>

        <th:block th:insert="fragments/layout :: page-title"
                  th:with="pageTitle='Your funding',subTitle=${model.applicationName},size='govuk-heading-xl'"/>

        <th:block th:if="${model.fundingSectionLocked}">
            <p class="govuk-body" th:if="${model.leadApplicant}">
                Before you can supply your funding details you must:
            </p>
            <p class="govuk-body" th:unless="${model.leadApplicant}">
                Before you can supply your funding details:
            </p>
            <ul class="govuk-list govuk-list--bullet">
                <li th:if="${model.researchCategoryRequired and model.leadApplicant}">
                    mark the
                    <a th:href="@{/application/{id}/form/question/{questionId}(id=${model.applicationId}, questionId=${model.researchCategoryQuestionId})}"
                       class="govuk-link">
                        research category
                    </a>
                    page as complete
                </li>
                <li th:if="${model.yourOrganisationRequired}">
                    <th:block th:unless="${model.leadApplicant}">you must</th:block>mark the
                    <a th:href="@{/application/{id}/form/section/{sectionId}(id=${model.applicationId}, sectionId=${model.yourOrganisationSectionId})}"
                       class="govuk-link">
                        your organisation
                    </a>
                    page as complete
                </li>
                <li th:if="${model.researchCategoryRequired and !model.leadApplicant}">
                    the lead applicant must mark the research category page as complete
                </li>
            </ul>
        </th:block>
        <th:block th:unless="${model.fundingSectionLocked}">
            <form th:object="${form}"
                  th:action="@{${#ifsUtil.formPostUri(#httpServletRequest)}}"
                  th:attr="data-autosave=@{/application/{applicationId}/form/your-funding/organisation/{organisationId}/section/{sectionId}/auto-save(applicationId=${model.applicationId},sectionId=${model.sectionId},organisationId=${model.organisationId})},
                           data-application-id=${model.applicationId},
                           data-section-id=${model.sectionId},
                           data-row-operation-url=@{/application/{applicationId}/form/your-funding/organisation/{organisationId}/section/{sectionId}(applicationId=${model.applicationId},sectionId=${model.sectionId},organisationId=${model.organisationId})}"
                  enctype="multipart/form-data"
                  novalidate="novalidate"
                  method="POST">

                <input th:if="${model.ktpFundingType}" type="hidden" name="previous" value="previous" />

                <th:block th:unless="${model.ktpFundingType}" th:insert="application/your-funding-fragments :: form(
                                form=${form},
                               readOnly=${model.readOnly},
                               guidanceFragment=${model.business ? 'applicant-business' : 'applicant-non-business'},
                               maximumFundingLevel=${model.maximumFundingLevel},
                               hideAreYouRequestingFunding=${model.ktpFundingType && !model.knowledgeBaseOrganisation}
                                               )"/>

                <div class="form-footer" th:if="${model.open}">
                    <div class="form-footer__actions">
                        <button id="mark-all-as-complete" th:unless="${model.complete}" type="submit" name="complete"
                                class="button-clear" value="true">Mark as complete
                        </button>
                        <button th:if="${model.complete}" type="submit" name="edit" class="button-clear" value="true">
                            Edit your funding
                        </button>
                    </div>
                </div>
                <div>
                    <a th:href="${model.financesUrl}"
                       th:if="${model.readOnly}"
                       class="govuk-!-margin-top-6 govuk-button govuk-button--secondary">Return to finances
                    </a>
                    <button type="submit" th:unless="${model.readOnly}"
                            class="govuk-!-margin-top-6 govuk-button">
                        Save and return to project finances
{'fraction_non_alphanumeric': 0.14693701466781708, 'fraction_numerical': 0.0012079378774805867, 'mean_word_length': 2.0083052167142488, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5018281', 'n_tokens_mistral': 3123, 'n_tokens_neox': 2941, 'n_words': 449}