<commit_before><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <th:block th:insert="fragments/layout :: head" th:with="pageTitle='Finance Checks'"/>
</head>
<body class="govuk-template__body ">
<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:if="${model.internal}" th:insert="fragments/layout :: header-sub" th:with="linkTitle='Eligibility',linkUrl=@{/project/{projectId}/finance-check/organisation/{orgId}/eligibility(projectId=${model.projectId},orgId=${model.organisationId})}" />
    <th:block th:unless="${model.internal}" th:insert="fragments/layout :: header-sub" th:with="linkTitle='Eligibility',linkUrl=@{/project/{projectId}/finance-checks/eligibility(projectId=${model.projectId})}"  />

    <main class="govuk-main-wrapper" id="main-content" role="main">
        <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Changes to finances',subTitle=|${model.applicationId}: ${model.projectName}|,size='govuk-heading-xl'" />
        <hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible" />

        <th:block th:with="summaryModel=${model.financeCheckEligibility}">
            <h2 class="govuk-heading-m">Project finances</h2>
            <div class="table-overflow">
                <table class="govuk-table table-overview" id="project-finance-changes-total">
                    <thead class="govuk-table__head">
                    <tr class="govuk-table__row">
                        <th class="govuk-table__header" scope="col">Total costs</th>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Funding level (%)</th>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Funding sought (&pound;)</th>
                        <th:block th:unless="${model.loanCompetition}">
                            <th class="govuk-table__header govuk-table__header--numeric" scope="col">Other public sector funding (&pound;)</th>
                        </th:block>
                        <th:block th:if="${model.loanCompetition}">
                            <th class="govuk-table__header govuk-table__header--numeric" scope="col">Other funding (&pound;)</th>
                        </th:block>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Contribution to project (&pound;)</th>
                    </tr>
                    </thead>
                    <tbody class="govuk-table__body">
                    <tr class="govuk-table__row">
                        <td class="govuk-table__cell govuk-table__cell--numeric">&pound;<th:block th:text="${#numbers.formatInteger(summaryModel.totalCost,1,'DEFAULT')}"/></td>
                        <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.percentageGrant,1,'NONE')+'%'}">30&percnt;</td>
                        <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.fundingSought,1,'DEFAULT')}">57,803</td>
                        <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.otherPublicSectorFunding,1,'DEFAULT')}">2,468</td>
                        <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.contributionToProject,1,'DEFAULT')}">140,632</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </th:block>

        <th:block th:with="sectionDiffs=${model.sectionDifferences}">
            <h2 class="govuk-heading-m">Section changes</h2>
            <div class="table-overflow">
                <table class="govuk-table table-overview" id="project-finance-changes-section">
                    <thead class="govuk-table__head">
                    <tr class="govuk-table__row">
                        <th:block th:each="rowType : ${sectionDiffs.keySet()}">
                            <th th:unless="${#strings.isEmpty(rowType.name)}" scope="col" class="govuk-table__header govuk-table__header--numeric">
                                <th:block th:text="${rowType.name}" /> (&pound;)</th>
                        </th:block>
                    </tr>
                    </thead>
                    <tbody class="govuk-table__body">
                    <tr class="govuk-table__row">
                        <th:block th:each="rowType : ${sectionDiffs.keySet()}">
                            <td th:unless="${#strings.isEmpty(rowType.name)}" class="govuk-table__cell govuk-table__cell--numeric">
                                <th:block th:text="${#numbers.formatInteger(sectionDiffs.get(rowType),1,'DEFAULT')}"/>
                            </td>
                        </th:block>
                    </tr>
                    </tbody>
                </table>
            </div>
        </th:block>

        <h2 class="govuk-heading-m">Changes from submitted finances</h2>
        <div class="table-overflow">
            <table class="govuk-table project-changes" id="project-finance-changes-submitted">
                <thead class="govuk-table__head">
                    <tr class="govuk-table__row">
                        <th class="govuk-table__header width-15-percent" scope="col">Action</th>
                        <th class="govuk-table__header width-15-percent" scope="col">Section</th>
                        <th class="govuk-table__header width-15-percent" scope="col">Detail</th>
                        <th class="govuk-table__header width-20-percent" scope="col">Submitted</th>
                        <th class="govuk-table__header width-20-percent" scope="col">Updated</th>
                        <th class="govuk-table__header govuk-table__header--numeric width-15-percent" scope="col">Cost</th>
                    </tr>
                </thead>
                <tfoot class="govuk-table__foot">
                <tr class="govuk-table__row">
                    <th class="govuk-table__header" scope="col">Overall</th>
                    <th colspan="5" class="govuk-table__header govuk-table__header--numeric" th:text="${#numbers.formatInteger(model.getDifferenceInTotalCostsAfterChanges(),1,'DEFAULT')}"></th>
                </tr>
                </tfoot>
                <tbody class="govuk-table__body">

                <th:block th:each="rowType : ${model.changes.keySet()}">
                    <th:block th:if="${rowType.cost}" th:each="changePairLst : ${model.changes.get(rowType)}">
                        <th:block th:each="changePair : ${changePairLst}" th:with="typeOfChange=${changePair.typeOfChange.typeName},rowTypeName=${rowType.name},workingDays=${model.projectWorkingDaysPerYearCostItem.labourDays}">
                            <th:block th:insert="project/financecheck/fragments/changes :: ${rowType.type}"/>
                        </th:block>
                    </th:block>
                </th:block>

                </tbody>
            </table>
        </div>

        <th:block th:each="rowType : ${model.changes.keySet()}">
            <th:block th:unless="${rowType.cost}" th:each="changePairLst : ${model.changes.get(rowType)}">
                <th:block th:each="changePair : ${changePairLst}" th:with="typeOfChange=${changePair.typeOfChange.typeName},rowTypeName=${rowType.name}">
                    <th:block th:insert="project/financecheck/fragments/changes :: ${rowType.type}"/>
                </th:block>
            </th:block>
        </th:block>


        <a th:if="${model.internal}" class="button-secondary" th:href="@{/project/{projectId}/finance-check/organisation/{orgId}/eligibility(projectId=${model.projectId},orgId=${model.organisationId})}">Return to eligibility</a>
        <a th:unless="${model.internal}" class="button-secondary" th:href="@{/project/{projectId}/finance-checks/eligibility(projectId=${model.projectId})}">Return to eligibility</a>

        <th:block th:insert="fragments/layout :: main-content-end"/>
    </main>
</div>

<th:block th:insert="fragments/layout :: footer"/>
<th:block th:insert="fragments/layout :: body-end"/>

</body>
</html>
<commit_msg>6533 - Undo accidental whitespace change<commit_after><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <th:block th:insert="fragments/layout :: head" th:with="pageTitle='Finance Checks'"/>
</head>
<body class="govuk-template__body ">
<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:if="${model.internal}" th:insert="fragments/layout :: header-sub" th:with="linkTitle='Eligibility',linkUrl=@{/project/{projectId}/finance-check/organisation/{orgId}/eligibility(projectId=${model.projectId},orgId=${model.organisationId})}" />
    <th:block th:unless="${model.internal}" th:insert="fragments/layout :: header-sub" th:with="linkTitle='Eligibility',linkUrl=@{/project/{projectId}/finance-checks/eligibility(projectId=${model.projectId})}"  />

    <main class="govuk-main-wrapper" id="main-content" role="main">
        <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Changes to finances',subTitle=|${model.applicationId}: ${model.projectName}|,size='govuk-heading-xl'" />
        <hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible" />

        <th:block th:with="summaryModel=${model.financeCheckEligibility}">
            <h2 class="govuk-heading-m">Project finances</h2>
            <div class="table-overflow">
                <table class="govuk-table table-overview" id="project-finance-changes-total">
                    <thead class="govuk-table__head">
                    <tr class="govuk-table__row">
                        <th class="govuk-table__header" scope="col">Total costs</th>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Funding level (%)</th>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Funding sought (&pound;)</th>
                        <th:block th:unless="${model.loanCompetition}">
                            <th class="govuk-table__header govuk-table__header--numeric" scope="col">Other public sector funding (&pound;)</th>
                        </th:block>
                        <th:block th:if="${model.loanCompetition}">
                            <th class="govuk-table__header govuk-table__header--numeric" scope="col">Other funding (&pound;)</th>
                        </th:block>
                        <th class="govuk-table__header govuk-table__header--numeric" scope="col">Contribution to project (&pound;)</th>
                    </tr>
                    </thead>
                    <tbody class="govuk-table__body">
                    <tr class="govuk-table__row">
                    <td class="govuk-table__cell govuk-table__cell--numeric">&pound;<th:block th:text="${#numbers.formatInteger(summaryModel.totalCost,1,'DEFAULT')}"/></td>
                    <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.percentageGrant,1,'NONE')+'%'}">30&percnt;</td>
                    <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.fundingSought,1,'DEFAULT')}">57,803</td>
                    <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.otherPublicSectorFunding,1,'DEFAULT')}">2,468</td>
                    <td class="govuk-table__cell govuk-table__cell--numeric" th:text="${#numbers.formatInteger(summaryModel.contributionToProject,1,'DEFAULT')}">140,632</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </th:block>

        <th:block th:with="sectionDiffs=${model.sectionDifferences}">
            <h2 class="govuk-heading-m">Section changes</h2>
            <div class="table-overflow">
                <table class="govuk-table table-overview" id="project-finance-changes-section">
                    <thead class="govuk-table__head">
                    <tr class="govuk-table__row">
                        <th:block th:each="rowType : ${sectionDiffs.keySet()}">
                            <th th:unless="${#strings.isEmpty(rowType.name)}" scope="col" class="govuk-table__header govuk-table__header--numeric">
                                <th:block th:text="${rowType.name}" /> (&pound;)</th>
                        </th:block>
                    </tr>
                    </thead>
                    <tbody class="govuk-table__body">
                    <tr class="govuk-table__row">
                        <th:block th:each="rowType : ${sectionDiffs.keySet()}">
                            <td th:unless="${#strings.isEmpty(rowType.name)}" class="govuk-table__cell govuk-table__cell--numeric">
                                <th:block th:text="${#numbers.formatInteger(sectionDiffs.get(rowType),1,'DEFAULT')}"/>
                            </td>
                        </th:block>
                    </tr>
                    </tbody>
                </table>
            </div>
        </th:block>

        <h2 class="govuk-heading-m">Changes from submitted finances</h2>
        <div class="table-overflow">
            <table class="govuk-table project-changes" id="project-finance-changes-submitted">
                <thead class="govuk-table__head">
                <tr class="govuk-table__row">
                    <th class="govuk-table__header width-15-percent" scope="col">Action</th>
                    <th class="govuk-table__header width-15-percent" scope="col">Section</th>
                    <th class="govuk-table__header width-15-percent" scope="col">Detail</th>
                    <th class="govuk-table__header width-20-percent" scope="col">Submitted</th>
                    <th class="govuk-table__header width-20-percent" scope="col">Updated</th>
                    <th class="govuk-table__header govuk-table__header--numeric width-15-percent" scope="col">Cost</th>
                </tr>
                </thead>
                <tfoot class="govuk-table__foot">
                <tr class="govuk-table__row">
                    <th class="govuk-table__header" scope="col">Overall</th>
                    <th colspan="5" class="govuk-table__header govuk-table__header--numeric" th:text="${#numbers.formatInteger(model.getDifferenceInTotalCostsAfterChanges(),1,'DEFAULT')}"></th>
                </tr>
                </tfoot>
                <tbody class="govuk-table__body">

                <th:block th:each="rowType : ${model.changes.keySet()}">
                    <th:block th:if="${rowType.cost}" th:each="changePairLst : ${model.changes.get(rowType)}">
                        <th:block th:each="changePair : ${changePairLst}" th:with="typeOfChange=${changePair.typeOfChange.typeName},rowTypeName=${rowType.name},workingDays=${model.projectWorkingDaysPerYearCostItem.labourDays}">
                            <th:block th:insert="project/financecheck/fragments/changes :: ${rowType.type}"/>
                        </th:block>
                    </th:block>
                </th:block>

                </tbody>
            </table>
        </div>

        <th:block th:each="rowType : ${model.changes.keySet()}">
            <th:block th:unless="${rowType.cost}" th:each="changePairLst : ${model.changes.get(rowType)}">
                <th:block th:each="changePair : ${changePairLst}" th:with="typeOfChange=${changePair.typeOfChange.typeName},rowTypeName=${rowType.name}">
                    <th:block th:insert="project/financecheck/fragments/changes :: ${rowType.type}"/>
                </th:block>
            </th:block>
        </th:block>


        <a th:if="${model.internal}" class="button-secondary" th:href="@{/project/{projectId}/finance-check/organisation/{orgId}/eligibility(projectId=${model.projectId},orgId=${model.organisationId})}">Return to eligibility</a>
        <a th:unless="${model.internal}" class="button-secondary" th:href="@{/project/{projectId}/finance-checks/eligibility(projectId=${model.projectId})}">Return to eligibility</a>

        <th:block th:insert="fragments/layout :: main-content-end"/>
    </main>
</div>

<th:block th:insert="fragments/layout :: footer"/>
<th:block th:insert="fragments/layout :: body-end"/>

</body>
</html>

{'fraction_non_alphanumeric': 0.16622127204703366, 'fraction_numerical': 0.005938594928439931, 'mean_word_length': 2.430433896924017, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 285, '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': '1122136', 'n_tokens_mistral': 5100, 'n_tokens_neox': 4780, 'n_words': 622}