<commit_before>﻿@using Gamedalf.Infrastructure

@model Game

@Html.Partial("_Item", Model)

@{
    var artImages = GameImagesHandler.ArtImagesOf(Model.Id);
}

@if (artImages.Any())
{
    <h2>Artwork</h2>
    <div class="row">
        @foreach (var image in artImages)
        {
            <div class="col-md-6 game-artwork">
                <img src="@Url.Content(image)" alt="Artwork image" class="img-rounded img-responsive">
            </div>
        }
    </div>
}

@if (Model.Playings.Any(p => p.IsEvaluated))
{
    <h2>Reviews</h2>

    foreach (var evaluation in Model.Playings.Where(p => p.IsEvaluated))
    {
        <div class="row">
            <div class="col-sm-2">
                <img src="@Url.Content("~/Images/player-profile-picture.min.jpg")" alt="Profile picture" class="img-rounded img-responsive">
            </div>
            <div class="col-sm-10">
                <h2>
                    <a href="@Url.Action("Details", "Players", new { id = evaluation.PlayerId })">@evaluation.Player.Email</a>
                    <small>
                        @evaluation.ReviewDateCreated
                    </small>
                </h2>
                <p>
                    <span class="label label-default">Score: @evaluation.Score / 5</span>
                </p>
                <p>
                    <strong>Me:</strong> "@evaluation.Review"
                </p>
            </div>
        </div>

    }
}<commit_msg>Add carousel to display games' artworks<commit_after>﻿@using Gamedalf.Infrastructure

@model Game

@Html.Partial("_Item", Model)

@{
    var artImages = GameImagesHandler.ArtImagesOf(Model.Id);
}

@if (artImages.Any())
{
    <h2>Artwork</h2>


    <div id="carousel-artimages" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-artimages" data-slide-to="0" class="active"></li>

            @for (int i = 1; i < artImages.Count; i++)
            {
                <li data-target="#carousel-artimages" data-slide-to="@i"></li>
            }
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
            <div class="item active">
                <img src="@Url.Content(artImages.First())" alt="Artwork image">
                <div class="carousel-caption">
                    Artwork #0
                </div>
            </div>

            @for (int i = 1; i < artImages.Count; i++)
            {
                <div class="item">
                    <img src="@Url.Content(artImages.ElementAt(i))" alt="Artwork image">
                    <div class="carousel-caption">
                        Artwork #@i
                    </div>
                </div>
            }
        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-artimages" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-artimages" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>
}
<br />

@if (Model.Playings.Any(p => p.IsEvaluated))
{
    <h2>Reviews</h2>

    foreach (var evaluation in Model.Playings.Where(p => p.IsEvaluated))
    {
        <div class="row">
            <div class="col-sm-2">
                <img src="@Url.Content("~/Images/player-profile-picture.min.jpg")" alt="Profile picture" class="img-rounded img-responsive">
            </div>
            <div class="col-sm-10">
                <h2>
                    <a href="@Url.Action("Details", "Players", new { id = evaluation.PlayerId })">@evaluation.Player.Email</a>
                    <small>
                        @evaluation.ReviewDateCreated
                    </small>
                </h2>
                <p>
                    <span class="label label-default">Score: @evaluation.Score / 5</span>
                </p>
                <p>
                    <strong>Me:</strong> "@evaluation.Review"
                </p>
            </div>
        </div>

    }
}
<br />
{'fraction_non_alphanumeric': 0.16147176001874852, 'fraction_numerical': 0.0058589172720881185, 'mean_word_length': 1.620012277470841, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 99, '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': '5513622', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1249, 'n_words': 233}