<commit_before>﻿@model ShowFeed.ViewModels.SeriesDetailsViewModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = Model.Name;
}

<div class="page-header">
    <h3><strong>@Model.Name</strong></h3>
    <small>
        Links:
        <a class="act act-primary" href="http://thetvdb.com/?tab=series&id=@Model.SeriesId" target="_blank">TheTVDB.com</a>
        @if (!string.IsNullOrEmpty(Model.ImdbId))
        {
            <text>, </text>
            <a class="act act-primary" href="http://imdb.com/title/@Model.ImdbId" target="_blank">IMDB.com</a>
        }
    </small>
</div>

@Model.Description

<h4>Seasons</h4>

@{
    var seasons = Model.Episodes.GroupBy(x => x.SeasonNumber).OrderBy(x => x.Key);
}

<ul class="nav nav-tabs">
    @foreach (var seasonNumber in seasons.Select(x => x.Key))
    {
        <li class="@(seasonNumber == 1 ? "active" : string.Empty)">
            <a href="#s@(seasonNumber == 0 ? "pecials" : seasonNumber.ToString())" data-toggle="tab">
                @(seasonNumber == 0 ? "Specials" : seasonNumber.ToString())
            </a>
        </li>
    }
</ul>

<div class="tab-content">
    @foreach (var season in seasons)
    {
        <div id="s@(season.Key == 0 ? "pecials" : season.Key.ToString())" class="tab-pane @(season.Key == 1 ? "active" : string.Empty)">
            @foreach (var episode in season)
            {
                <text>@episode.Name</text><br />
            }
        </div>
    }
</div><commit_msg>Better episode listing.<commit_after>﻿@model ShowFeed.ViewModels.SeriesDetailsViewModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = Model.Name;
}

<div class="page-header">
    <h3><strong>@Model.Name</strong></h3>
    <small>
        Links:
        <a class="act act-primary" href="http://thetvdb.com/?tab=series&id=@Model.SeriesId" target="_blank">TheTVDB.com</a>
        @if (!string.IsNullOrEmpty(Model.ImdbId))
        {
            <text>, </text>
            <a class="act act-primary" href="http://imdb.com/title/@Model.ImdbId" target="_blank">IMDB.com</a>
        }
    </small>
</div>

@Model.Description

<h4>Seasons</h4>

@{
    var seasons = Model.Episodes.GroupBy(x => x.SeasonNumber).OrderBy(x => x.Key);
}

<ul class="nav nav-tabs">
    @foreach (var seasonNumber in seasons.Select(x => x.Key))
    {
        <li class="@(seasonNumber == 1 ? "active" : string.Empty)">
            <a href="#s@(seasonNumber == 0 ? "pecials" : seasonNumber.ToString())" data-toggle="tab">
                @(seasonNumber == 0 ? "Specials" : seasonNumber.ToString())
            </a>
        </li>
    }
</ul>

<div class="tab-content">
    @foreach (var season in seasons)
    {
        <div id="s@(season.Key == 0 ? "pecials" : season.Key.ToString())" class="tab-pane @(season.Key == 1 ? "active" : string.Empty)">
            <br />
            <table class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th style="width: 3em; text-align: center">No.</th>
                        <th style="text-align: center">Title</th>
                        <th style="width: 12em; text-align: center">Original airdate</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var episode in season)
                    {
                        <tr>
                            <td style="text-align: center">@episode.EpisodeNumber</td>
                            <td>
                                @episode.Name
                            </td>
                            <td style="text-align: center">
                                @if (episode.FirstAired.HasValue)
                                {
                                    <text>@episode.FirstAired.Value.ToString("MMMM d, yyyy", new System.Globalization.CultureInfo("en-US"))</text>
                                }
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="border-bottom-width: 3px">@episode.Description</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    }
</div>
{'fraction_non_alphanumeric': 0.1667851220090026, 'fraction_numerical': 0.00544894574745321, 'mean_word_length': 1.6603654694391934, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 93, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6947333', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1283, 'n_words': 223}