<commit_before>﻿@model GRA.Controllers.ViewModel.Challenges.ChallengesListViewModel

<div class="row">
    <div class="col-xs-12">
        <span class="h2">Challenges</span>
    </div>
</div>

<form asp-controller="Challenges" asp-action="Index" asp-route-search="@Model.Search" method="get" role="form">
    <div class="row" style="padding: 10px 0;">
        <div class="col-xs-8">
            <input asp-for="Search" class="form-control" />
        </div>
        <div class="col-xs-4">
            <input type="submit" value="Search" class="btn btn-default" style="margin-right: 8px;" />
            <a asp-action="Index" class="btn btn-default">Clear</a>
        </div>
    </div>
</form>

<div class="row" style="padding: 10px 0;">
    <div class="col-xs-12">
        @if (Model.Challenges.Count() == 0)
        {
            <div class="alert alert-warning">No Challenges</div>
        }
        else
        {
            <div>
                <table class="table table-condensed table-bordered table-striped">
                    <thead>
                        <tr>
                            <th>Name</th>
                            <th>Points you'll earn</th>
                            <th>Badge</th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var challenge in Model.Challenges)
                        {
                            <tr>
                                <td><a asp-action="Detail" asp-route-id="@challenge.Id">@challenge.Name</a></td>
                                <td>@challenge.PointsAwarded</td>
                                <td>
                                    @if (!string.IsNullOrEmpty(challenge.BadgeFilename))
                                    {
                                        <img src="~/@challenge.BadgeFilename" asp-append-version="true" width="75" />
                                    }
                                    else
                                    {
                                        @: &nbsp;
                                    }
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>
            </div>
            @if (Model.PaginateModel.MaxPage > 1)
            {
                <paginate paginateModel="@Model.PaginateModel"></paginate>
            }
        }
    </div>
</div><commit_msg>Add container around challenges (#102)<commit_after>﻿@model GRA.Controllers.ViewModel.Challenges.ChallengesListViewModel

<div class="row">
    <div class="col-xs-12 col-sm-10 col-sm-offset-1">
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="lead">Challenges</span>
            </div>
            <div class="panel-body">
                <form asp-controller="Challenges" asp-action="Index" method="post" role="form">
                    <div class="row row-spacing">
                        <div class="col-xs-10">
                            <input asp-for="Search"
                                   class="form-control"
                                   placeholder="Enter text to search for a challenge here" />
                        </div>
                        <div class="col-xs-2">
                            <input type="submit"
                                   value="Search"
                                   class="btn btn-default btn-block" />
                        </div>
                    </div>
                </form>

                <div class="row">
                    <div class="col-xs-12">
                        @if (Model.Challenges.Count() == 0)
                        {
                            <div class="alert alert-warning">No Challenges</div>
                        }
                        else
                        {
                            <div>
                                <table class="table table-condensed table-bordered table-striped">
                                    <thead>
                                        <tr>
                                            <th>Name</th>
                                            <th>Points you'll earn</th>
                                            <th>Badge</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        @foreach (var challenge in Model.Challenges)
                                        {
                                            <tr>
                                                <td><a asp-action="Detail" asp-route-id="@challenge.Id">@challenge.Name</a></td>
                                                <td>@challenge.PointsAwarded</td>
                                                <td>
                                                    @if (!string.IsNullOrEmpty(challenge.BadgeFilename))
                                                    {
                                                        <img src="~/@challenge.BadgeFilename" asp-append-version="true" width="75" />
                                                    }
                                                    else
                                                    {
                                                        @: &nbsp;
                                    }
                                                </td>
                                            </tr>
                                        }
                                    </tbody>
                                </table>
                            </div>
                            @if (Model.PaginateModel.MaxPage > 1)
                            {
                                <paginate paginateModel="@Model.PaginateModel"></paginate>
                            }
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.10861670518322879, 'fraction_numerical': 0.005777484318256851, 'mean_word_length': 0.7101326559412927, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 56, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5204892', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1268, 'n_words': 222}