<commit_before>﻿@using SFA.DAS.EAS.Web.Models
@using SFA.DAS.EAS.Web.Extensions

@model CommitmentViewModel
    
<div class="grid-row">
    <div class="column-full">
        <h1 class="heading-xlarge">Add apprentices</h1>

  
        <p><span class="strong">Training provider:</span> @Model.ProviderName</p>
        <p><span class="strong">Status:</span> @Model.Status.GetDescription()</p>

        <h2 class="heading-medium">@GetApprenticesCountText(Model.Apprenticeships)</h2>
        
        @{
            var finishEditingText = Model.ShowApproveOnlyOption ? "Continue to approval" : "Finish Editing";
        }

        <div class="emptyStateButton">
            <a href="@Url.Action("CreateApprenticeshipEntry")" class="button-secondary" aria-label="Add an apprentice">Add an apprentice</a>
            <a class="button finishEditingBtn" href="@Url.Action("FinishedEditing")" aria-label="@finishEditingText">@finishEditingText</a>
        </div>

        @functions {

            public string GetApprenticesCountText(IList<ApprenticeshipViewModel> apprenticeships)
            {
                if (apprenticeships.Count == 1)
                    return "1 Apprentice";

                return $"{apprenticeships.Count} Apprentices";
            }
        }

        @if (Model.Apprenticeships.Count == 0)
        {
            <div id="addApprenticesEmptyState" class="panel panel-filled">
                <p>        You haven't added any apprentices yet. Use the options on this page to add apprentices or finish editing.</p><commit_msg>Corrected casing of finish editing button<commit_after>﻿@using SFA.DAS.EAS.Web.Models
@using SFA.DAS.EAS.Web.Extensions

@model CommitmentViewModel
    
<div class="grid-row">
    <div class="column-full">
        <h1 class="heading-xlarge">Add apprentices</h1>

  
        <p><span class="strong">Training provider:</span> @Model.ProviderName</p>
        <p><span class="strong">Status:</span> @Model.Status.GetDescription()</p>

        <h2 class="heading-medium">@GetApprenticesCountText(Model.Apprenticeships)</h2>
        
        @{
            var finishEditingText = Model.ShowApproveOnlyOption ? "Continue to approval" : "Finish editing";
        }

        <div class="emptyStateButton">
            <a href="@Url.Action("CreateApprenticeshipEntry")" class="button-secondary" aria-label="Add an apprentice">Add an apprentice</a>
            <a class="button finishEditingBtn" href="@Url.Action("FinishedEditing")" aria-label="@finishEditingText">@finishEditingText</a>
        </div>

        @functions {

            public string GetApprenticesCountText(IList<ApprenticeshipViewModel> apprenticeships)
            {
                if (apprenticeships.Count == 1)
                    return "1 Apprentice";

                return $"{apprenticeships.Count} Apprentices";
            }
        }

        @if (Model.Apprenticeships.Count == 0)
        {
            <div id="addApprenticesEmptyState" class="panel panel-filled">
                <p>        You haven't added any apprentices yet. Use the options on this page to add apprentices or finish editing.</p>
{'fraction_non_alphanumeric': 0.12667946257197696, 'fraction_numerical': 0.004478566858605247, 'mean_word_length': 2.6962174940898347, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '2274297', 'n_tokens_mistral': 959, 'n_tokens_neox': 886, 'n_words': 176}