<commit_before>﻿@model MatchResultViewModel

<div class="row">
    <div class="span8">
        <h2>Resultat @Model.SeasonStart&minus;@Model.SeasonEnd</h2>
    </div>
</div>
@if (Request.IsAuthenticated)
{
    <div class="row">
        <div class="span6 admin">
            <a href="@Url.Action("Register", "MatchResultAdmin")">
                <i class="sprite-glyphicons_030_pencil"></i>
                Registrera matchresultat
            </a>
            <a href="@Url.Action("RegisterBits", "MatchResultAdmin")">
                <i class="sprite-glyphicons_358_file_import"></i>
                Registrera från BITS
            </a>
        </div>
    </div>
}
@foreach (var turn in Model.Turns.Keys.OrderByDescending(x => x))
{
    <div class="row">
        <div class="span12">
            @{
                var minDate = Model.Turns[turn].Select(x => x.Date)
                    .Min();
                var maxDate = Model.Turns[turn].Select(x => x.Date)
                    .Max();
            }
            <h4>
                Omgång @turn
                <em>
                    (<time datetime="@minDate.ToString("s")">@minDate.ToString("d MMM")</time>
                    &minus;
                    <time datetime="@maxDate.ToString("s")">@maxDate.ToString("d MMM")</time>)
                </em>
            </h4>
            <table class="table table-condensed table-striped result-header-table">
                <tr>
                    <th>Plats</th>
                    <th>Lag</th>
                    <th>Motståndare</th>
                    <th>Resultat</th>
                    <th></th>
                </tr>
                @{
                    var matchResults = Model.Turns[turn];
                }
                @foreach (var result in matchResults)
                {
                    <tr>
                        <td>@result.Location</td>
                        <td>@Content.TeamLabel(result.TeamLevel, result.Team)</td>
                        <td>@result.Opponent</td>
                        <td>@result.TeamScore&minus;@result.OpponentScore</td>
                        <td>@Html.ActionLink("Visa", "Details", new {
                                                                        id = result.BitsMatchId
                                                                    })</td>
                    </tr>
                }
            </table>
        </div>
    </div>
}
<commit_msg>Fixes #232, fixes #222<commit_after>﻿@model MatchResultViewModel

@if (Request.IsAuthenticated)
{
    <div class="row">
        <div class="span6 admin">
            <a class="pull-left" href="@Url.Action("RegisterBits", "MatchResultAdmin")">
                <i class="sprite-glyphicons_358_file_import"></i>
                Från BITS
            </a>
            <a class="pull-right" href="@Url.Action("Register", "MatchResultAdmin")">
                <i class="sprite-glyphicons_030_pencil"></i>
                Manuellt resultat
            </a>
            <div class="clearfix"></div>
        </div>
    </div>
}
@foreach (var turn in Model.Turns.Keys.OrderByDescending(x => x))
{
    <div class="row">
        <div class="span12">
            @{
                var minDate = Model.Turns[turn].Select(x => x.Date)
                    .Min();
                var maxDate = Model.Turns[turn].Select(x => x.Date)
                    .Max();
            }
            <h4>
                Omgång @turn
                <em>
                    (<time datetime="@minDate.ToString("s")">@minDate.ToString("d MMM")</time>
                    &minus;
                    <time datetime="@maxDate.ToString("s")">@maxDate.ToString("d MMM")</time>)
                </em>
            </h4>
            <table class="table table-condensed table-striped result-header-table">
                <tr>
                    <th>Plats</th>
                    <th>Lag</th>
                    <th>Motståndare</th>
                    <th>Resultat</th>
                    <th></th>
                </tr>
                @{
                    var matchResults = Model.Turns[turn];
                }
                @foreach (var result in matchResults)
                {
                    <tr>
                        <td>@result.Location</td>
                        <td>@Content.TeamLabel(result.TeamLevel, result.Team)</td>
                        <td>@result.Opponent</td>
                        <td>@result.TeamScore&minus;@result.OpponentScore</td>
                        <td>@Html.ActionLink("Visa", "Details", new {
                                                                        id = result.BitsMatchId
                                                                    })</td>
                    </tr>
                }
            </table>
        </div>
    </div>
}

{'fraction_non_alphanumeric': 0.13433137770584666, 'fraction_numerical': 0.006271495043495853, 'mean_word_length': 1.0438197602315007, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7656154', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1277, 'n_words': 208}