<commit_before><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.thymeleaf.org">
<head th:with="pageTitle=${model.general.currentSectionIsHome() ? 'Competition details' : #messages.msg('ifs.competition.setup.' + model.general.currentSectionFragment)}">
    <th:block th:if="${competitionSetupForm != null}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=${pageTitle},hasFormErrors=${#fields.hasErrors('${competitionSetupForm.*}')}" />
    </th:block>
    <th:block th:if="${competitionSetupForm == null}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=${pageTitle}" />
    </th:block>
</head>
<body class="govuk-template__body competition-management competition-setup" th:with="currentSectionIsHome=${model.general.currentSectionIsHome()}">
<th:block th:insert="fragments/modals :: modal-overlay" />
<th:block th:insert="fragments/competition-setup :: comp-setup-complete-modal" th:if="${currentSectionIsHome}"/>
<th:block th:insert="fragments/competition-setup :: comp-setup-delete-modal (${model.general.competition}, ${competitionSetupForm})" th:if="${currentSectionIsHome}"/>
<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='All competitions', linkUrl=@{/dashboard},currentApplication=${currentApplication}" th:if="${model.general.currentSectionIsHome()} and ${model.general.getState().getCompetitionStatus() == model.general.getCompetitionSetupStatus()" />
    <th:block th:insert="fragments/layout :: header-sub" th:with="linkTitle='Competition', linkUrl=@{/competition/{competitionId}/(competitionId=${model.general.competition.id})}" th:if="${model.general.currentSectionIsHome()} and ${model.general.getState().getCompetitionStatus() != T(org.innovateuk.ifs.competition.resource.CompetitionStatus).COMPETITION_SETUP}" />
    <th:block th:insert="fragments/layout :: header-sub" th:with="linkTitle='Back to competition details',linkUrl=@{/competition/setup/{competitionId}/(competitionId=${model.general.competition.id})}" th:unless="${model.general.currentSectionIsHome()}" />

    <main class="govuk-main-wrapper" id="main-content" role="main">
        <th:block th:if="${currentSectionIsHome}">
            <div class="govuk-error-summary" th:if="${#fields.hasErrors('${competitionSetupForm}')}" 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 an error on this page.</h2>
                <div class="govuk-error-summary__body">
                    <ul class="govuk-list govuk-error-summary__list">
                        <li th:each="err : ${#fields.errors('${competitionSetupForm}')}" th:text="${err}"></li>
                    </ul>
                </div>
            </div>
            <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Competition details',size='govuk-heading-xl'" />
        </th:block>

        <th:block th:insert="fragments/competition-setup :: comp-setup-navigation(
                ${model.general.publishSections},
                ${model.general.competitionSetupSections},
                ${model.general.assessmentSections},
                ${model.general.currentSection},
                ${model.general.competition},
                ${readyToOpen})" th:if="${currentSectionIsHome}" />

        <th:block th:if="${model.general.currentSectionFragment != null}">
            <th:block th:replace="fragments/competition-setup-sections :: ${model.general.currentSectionFragment}" />
        </th:block>

        <th:block th:insert="fragments/competition-setup :: setup-home" th:unless="${currentSectionIsHome}" />

        <th:block th:insert="fragments/layout :: main-content-end" /><commit_msg>IFS-10298: fixed setup.html<commit_after><!DOCTYPE html>
<html lang="en" class="govuk-template" xmlns:th="http://www.thymeleaf.org">
<head th:with="pageTitle=${model.general.currentSectionIsHome() ? 'Competition details' : #messages.msg('ifs.competition.setup.' + model.general.currentSectionFragment)}">
    <th:block th:if="${competitionSetupForm != null}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=${pageTitle},hasFormErrors=${#fields.hasErrors('${competitionSetupForm.*}')}" />
    </th:block>
    <th:block th:if="${competitionSetupForm == null}">
        <th:block th:insert="fragments/layout :: head" th:with="pageTitle=${pageTitle}" />
    </th:block>
</head>
<body class="govuk-template__body competition-management competition-setup" th:with="currentSectionIsHome=${model.general.currentSectionIsHome()}">
<th:block th:insert="fragments/modals :: modal-overlay" />
<th:block th:insert="fragments/competition-setup :: comp-setup-complete-modal" th:if="${currentSectionIsHome}"/>
<th:block th:insert="fragments/competition-setup :: comp-setup-delete-modal (${model.general.competition}, ${competitionSetupForm})" th:if="${currentSectionIsHome}"/>
<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='All competitions', linkUrl=@{/dashboard},currentApplication=${currentApplication}" th:if="${model.general.currentSectionIsHome()} and ${model.general.getState().getCompetitionStatus() == model.general.getCompetitionSetupStatus()}" />
    <th:block th:insert="fragments/layout :: header-sub" th:with="linkTitle='Competition', linkUrl=@{/competition/{competitionId}/(competitionId=${model.general.competition.id})}" th:if="${model.general.currentSectionIsHome()} and ${model.general.getState().getCompetitionStatus() != T(org.innovateuk.ifs.competition.resource.CompetitionStatus).COMPETITION_SETUP}" />
    <th:block th:insert="fragments/layout :: header-sub" th:with="linkTitle='Back to competition details',linkUrl=@{/competition/setup/{competitionId}/(competitionId=${model.general.competition.id})}" th:unless="${model.general.currentSectionIsHome()}" />

    <main class="govuk-main-wrapper" id="main-content" role="main">
        <th:block th:if="${currentSectionIsHome}">
            <div class="govuk-error-summary" th:if="${#fields.hasErrors('${competitionSetupForm}')}" 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 an error on this page.</h2>
                <div class="govuk-error-summary__body">
                    <ul class="govuk-list govuk-error-summary__list">
                        <li th:each="err : ${#fields.errors('${competitionSetupForm}')}" th:text="${err}"></li>
                    </ul>
                </div>
            </div>
            <th:block th:insert="fragments/layout :: page-title" th:with="pageTitle='Competition details',size='govuk-heading-xl'" />
        </th:block>

        <th:block th:insert="fragments/competition-setup :: comp-setup-navigation(
                ${model.general.publishSections},
                ${model.general.competitionSetupSections},
                ${model.general.assessmentSections},
                ${model.general.currentSection},
                ${model.general.competition},
                ${readyToOpen})" th:if="${currentSectionIsHome}" />

        <th:block th:if="${model.general.currentSectionFragment != null}">
            <th:block th:replace="fragments/competition-setup-sections :: ${model.general.currentSectionFragment}" />
        </th:block>

        <th:block th:insert="fragments/competition-setup :: setup-home" th:unless="${currentSectionIsHome}" />

        <th:block th:insert="fragments/layout :: main-content-end" />
{'fraction_non_alphanumeric': 0.1832610043397396, 'fraction_numerical': 0.0013639181649101053, 'mean_word_length': 4.566597653554175, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '2410155', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2369, 'n_words': 300}