<commit_before>package org.innovateuk.ifs.competition.resource;

import org.innovateuk.ifs.user.resource.Authority;
import org.innovateuk.ifs.user.resource.UserResource;

import java.util.*;

import static java.util.Arrays.asList;
import static java.util.Collections.*;
import static java.util.Collections.emptyList;
import static org.innovateuk.ifs.competition.resource.CompetitionSetupSubsection.*;
import static org.innovateuk.ifs.competition.resource.CompetitionStatus.PROJECT_SETUP;
import static org.innovateuk.ifs.util.CollectionFunctions.combineLists;
import static org.innovateuk.ifs.util.CollectionFunctions.simpleFindFirst;

/**
 * This enum defines all sections of competition setup.
 * It is used when recording which sections are marked as complete during the competition setup process.
 */
public enum CompetitionSetupSection {

    HOME(1L, "home", "Home Page", emptyList(), false, false),
    INITIAL_DETAILS(2L, "initial", "Initial details", emptyList(), true, true),
    TERMS_AND_CONDITIONS(9L, "terms-and-conditions", "Terms and conditions", emptyList(), false, false),
    ADDITIONAL_INFO(3L, "additional", "Funding information", emptyList(), true, true),
    PROJECT_ELIGIBILITY(4L, "project-eligibility", "Project eligibility", emptyList(), false, false),
    COMPLETION_STAGE(11L, "completion-stage", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_SUBMISSION(15L, "application-submission", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_EXPRESSION_OF_INTEREST(18L, "application-expression-of-interest", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_ASSESSMENT(16L, "application-assessment", "Milestones", emptyList(), false, emptyList(), false),
    MILESTONES(5L, "milestones", "Milestones", emptyList(), true, asList(COMPLETION_STAGE, APPLICATION_SUBMISSION, APPLICATION_EXPRESSION_OF_INTEREST, APPLICATION_ASSESSMENT), true),
    APPLICATION_FORM(6L, "application", "Application", asList(PROJECT_DETAILS, QUESTIONS, FINANCES, APPLICATION_DETAILS, KTP_ASSESSMENT), false, true),
    ASSESSORS(7L, "assessors", "Assessors", emptyList(), true, true),
    CONTENT(8L, "content", "Public content", emptyList(), true, true),
    PROJECT_DOCUMENT(10L, "project-document", "Documents in project setup", emptyList(), false, false),
    ORGANISATIONAL_ELIGIBILITY(12L, "organisational-eligibility", "Organisational eligibility", emptyList(), false, false),
    FUNDING_ELIGIBILITY(13L, "funding-eligibility", "Funding eligibility", emptyList(), false, false),
    FUNDING_LEVEL_PERCENTAGE(14L, "funding-level-percentage", "Funding level percentage", emptyList(), false, singletonList(FUNDING_ELIGIBILITY), false),
    FUNDING_AMOUNT_SOUGHT(17L, "funding-amount-sought", "Funding amount sought", emptyList(), false, singletonList(FUNDING_LEVEL_PERCENTAGE), false),
    PROJECT_IMPACT(18L, "project-impact", "Project impact", emptyList(), false, false);
<commit_msg>IFS-12942 PK corrected<commit_after>package org.innovateuk.ifs.competition.resource;

import org.innovateuk.ifs.user.resource.Authority;
import org.innovateuk.ifs.user.resource.UserResource;

import java.util.*;

import static java.util.Arrays.asList;
import static java.util.Collections.*;
import static java.util.Collections.emptyList;
import static org.innovateuk.ifs.competition.resource.CompetitionSetupSubsection.*;
import static org.innovateuk.ifs.competition.resource.CompetitionStatus.PROJECT_SETUP;
import static org.innovateuk.ifs.util.CollectionFunctions.combineLists;
import static org.innovateuk.ifs.util.CollectionFunctions.simpleFindFirst;

/**
 * This enum defines all sections of competition setup.
 * It is used when recording which sections are marked as complete during the competition setup process.
 */
public enum CompetitionSetupSection {

    HOME(1L, "home", "Home Page", emptyList(), false, false),
    INITIAL_DETAILS(2L, "initial", "Initial details", emptyList(), true, true),
    TERMS_AND_CONDITIONS(9L, "terms-and-conditions", "Terms and conditions", emptyList(), false, false),
    ADDITIONAL_INFO(3L, "additional", "Funding information", emptyList(), true, true),
    PROJECT_ELIGIBILITY(4L, "project-eligibility", "Project eligibility", emptyList(), false, false),
    COMPLETION_STAGE(11L, "completion-stage", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_SUBMISSION(15L, "application-submission", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_EXPRESSION_OF_INTEREST(18L, "application-expression-of-interest", "Milestones", emptyList(), false, emptyList(), false),
    APPLICATION_ASSESSMENT(16L, "application-assessment", "Milestones", emptyList(), false, emptyList(), false),
    MILESTONES(5L, "milestones", "Milestones", emptyList(), true, asList(COMPLETION_STAGE, APPLICATION_SUBMISSION, APPLICATION_EXPRESSION_OF_INTEREST, APPLICATION_ASSESSMENT), true),
    APPLICATION_FORM(6L, "application", "Application", asList(PROJECT_DETAILS, QUESTIONS, FINANCES, APPLICATION_DETAILS, KTP_ASSESSMENT), false, true),
    ASSESSORS(7L, "assessors", "Assessors", emptyList(), true, true),
    CONTENT(8L, "content", "Public content", emptyList(), true, true),
    PROJECT_DOCUMENT(10L, "project-document", "Documents in project setup", emptyList(), false, false),
    ORGANISATIONAL_ELIGIBILITY(12L, "organisational-eligibility", "Organisational eligibility", emptyList(), false, false),
    FUNDING_ELIGIBILITY(13L, "funding-eligibility", "Funding eligibility", emptyList(), false, false),
    FUNDING_LEVEL_PERCENTAGE(14L, "funding-level-percentage", "Funding level percentage", emptyList(), false, singletonList(FUNDING_ELIGIBILITY), false),
    FUNDING_AMOUNT_SOUGHT(17L, "funding-amount-sought", "Funding amount sought", emptyList(), false, singletonList(FUNDING_LEVEL_PERCENTAGE), false),
    PROJECT_IMPACT(19L, "project-impact", "Project impact", emptyList(), false, false);

{'fraction_non_alphanumeric': 0.13025848960973138, 'fraction_numerical': 0.010643689812468323, 'mean_word_length': 7.222222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5017713', 'n_tokens_mistral': 1938, 'n_tokens_neox': 1798, 'n_words': 404}