<commit_before>﻿@using BatteryCommander.Common;

@model BatteryCommander.Web.Models.BattleRosterModel

@{
    ViewBag.Title = "Battle Roster";
}

<h2>@ViewBag.Title</h2>

<div class="table-responsive">
    <table class="table table-bordered table-striped table-responsive">
        <tr>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Group)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Rank)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().LastName)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().FirstName)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().ETSDate)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().MOS)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().IsDutyMOSQualified)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().EducationLevelCompleted)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().SecurityClearance)</th>

            @foreach (var qualification in Model.Qualifications)
            {
                <th>@Html.DisplayFor(m => qualification)</th>
            }

            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Notes)</th>
        </tr>

        @foreach (var soldier in Model.Soldiers)
        {
            <tr>
                <td>@Html.DisplayFor(m => soldier.Group)</td>
                <td>@Html.DisplayFor(m => soldier.Rank, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.LastName)</td>
                <td>@Html.DisplayFor(m => soldier.FirstName)</td>
                <td>@Html.DisplayFor(m => soldier.ETSDate)</td>
                <td>@Html.DisplayFor(m => soldier.MOS, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.IsDutyMOSQualified)</td>
                <td>@Html.DisplayFor(m => soldier.EducationLevelCompleted, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.SecurityClearance, new { UseShortName = true })</td>

                @foreach (var qualification in Model.Qualifications)
                {
                    var soldier_qual = soldier.Qualifications.SingleOrDefault(q => q.QualificationId == qualification.Id);

                    <td>@Html.DisplayFor(m => soldier_qual)</td>
                }

                <td>@Html.DisplayFor(m => soldier.Notes)</td>
            </tr>
        }
    </table>

</div>

<commit_msg>Show position on battle roster<commit_after>﻿@using BatteryCommander.Common;

@model BatteryCommander.Web.Models.BattleRosterModel

@{
    ViewBag.Title = "Battle Roster";
}

<h2>@ViewBag.Title</h2>

<div class="table-responsive">
    <table class="table table-bordered table-striped table-responsive">
        <tr>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Group)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Position)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Rank)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().LastName)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().FirstName)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().ETSDate)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().MOS)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().IsDutyMOSQualified)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().EducationLevelCompleted)</th>
            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().SecurityClearance)</th>

            @foreach (var qualification in Model.Qualifications)
            {
                <th>@Html.DisplayFor(m => qualification)</th>
            }

            <th>@Html.DisplayNameFor(m => m.Soldiers.FirstOrDefault().Notes)</th>
        </tr>

        @foreach (var soldier in Model.Soldiers)
        {
            <tr>
                <td>@Html.DisplayFor(m => soldier.Group)</td>
                <td>@Html.DisplayFor(m => soldier.Position, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.Rank, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.LastName)</td>
                <td>@Html.DisplayFor(m => soldier.FirstName)</td>
                <td>@Html.DisplayFor(m => soldier.ETSDate)</td>
                <td>@Html.DisplayFor(m => soldier.MOS, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.IsDutyMOSQualified)</td>
                <td>@Html.DisplayFor(m => soldier.EducationLevelCompleted, new { UseShortName = true })</td>
                <td>@Html.DisplayFor(m => soldier.SecurityClearance, new { UseShortName = true })</td>

                @foreach (var qualification in Model.Qualifications)
                {
                    var soldier_qual = soldier.Qualifications.SingleOrDefault(q => q.QualificationId == qualification.Id);

                    <td>@Html.DisplayFor(m => soldier_qual)</td>
                }

                <td>@Html.DisplayFor(m => soldier.Notes)</td>
            </tr>
        }
    </table>

</div>


{'fraction_non_alphanumeric': 0.15879017013232513, 'fraction_numerical': 0.0007561436672967864, 'mean_word_length': 2.3765156349712826, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 163, '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': '3102015', 'n_tokens_mistral': 1655, 'n_tokens_neox': 1631, 'n_words': 214}