<commit_before>{% extends 'KorobiWebBundle::layout.html.twig' %}

{% set page_title = channel_name ~ " on " ~ network_name ~ " - CAH Game " ~ game_id %}

{% block body %}
    <h1>Cards Against Humanity game {{ game_id }}</h1>
    <h3>in {{ channel_name }} on {{ network_name }}</h3>
    <div class="cah-stats">
        <dl class="game-state">
            <dt>Game state</dt>
            <dd>{{ game_state }}</dd>
        </dl>

        <dl class="game-times">
            <dt>Start Time</dt>
            <dd>{{ game.startTime|date('F j, Y h:i:s A') }}</dd>
            <dt>End Time</dt>
            <dd>{{ game.endTime|date('F j, Y h:i:s A') }}</dd>
        </dl>

        <dl class="game-packs">
            <dt>Packs</dt>
            <dd>
                {% for pack in game.cardPacks %}
                    {{ pack }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>

        <dl class="game-house-rules">
            <dt>House Rules</dt>
            <dd>
                {% for rule in game.houseRules %}
                    {{ rule }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>

        <dl class="game-details">
            <dt>Host</dt>
            <dd>{{ game.host }}</dd>

            <dt>Lifetime Hosts</dt>
            <dd>
                {% for host in game.hostsLifetime %}
                    {{ host }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>

            <dt>Players</dt>
            <dd>
                {% for player in game.players|sort %}
                    {{ player }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>

            <dt>Lifetime Players</dt>
            <dd>
                {% for player in game.playersLifetime|sort %}
                    {{ player }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>


        <strong>End Scores</strong>
        <table>
            <thead>
            <tr>
                <th>Nick</th>
                <th>Score</th>
            </tr>
            </thead>
            <tbody>
            {% for user, score in game.endScores|arsort %}
                <tr>
                    <td>{{ user }}</td>
                    <td>{{ score }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>

        <strong>Card Counts:</strong>
        <table>
            <thead>
            <tr>
                <th>Nick</th>
                <th>Score</th>
            </tr>
            </thead>
            <tbody>
            {% for type, count in card_counts %}
                <tr>
                    {% if type == "Unused Black" %}
                        <td>{{ type }} (used {{ percents.used_black|number_format }}%)</td>
                    {% elseif type == "Unused White" %}
                        <td>{{ type }} (used {{ percents.used_white|number_format }}%)</td>
                    {% else %}
                        <td>{{ type }}</td>
                    {% endif %}

                    <td>{{ count }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>

        <br><strong>Rounds</strong>
        <ol>
            {% for round in game.rounds|arsort %}
                <li>
                    <table>
                        <thead>
                        <tr>
                            <th>Czar</th>
                            <th>Black Card</th>
                            <th>Winner</th>
                            <th>Plays</th>
                        </tr>
                        </thead>
                        <body>
                        <tr>
                            <td>{{ round.czar }}</td>
                            <td>{{ round.black_card }}</td>
                            <td><abbr title="{{ cahFullCard(round.black_card, round.plays[round.winner.id]) }}" rel="tooltip">{{ round.winner.player }}</abbr></td>
                            <td><abbr title="{{ cahPlays(round.black_card, round.plays) }}" rel="tooltip">(hover)</abbr></td>
                        </tr>
                        </body>
                    </table>
                </li>
            {% endfor %}
        </ol>
    </div><commit_msg>*insert turt2live complaints here*: fixed<commit_after>{% extends 'KorobiWebBundle::layout.html.twig' %}

{% set page_title = channel_name ~ " on " ~ network_name ~ " - CAH Game " ~ game_id %}

{% block body %}
    <h1>Cards Against Humanity game {{ game_id }}</h1>
    <h3>in {{ channel_name }} on {{ network_name }}</h3>
    <div class="cah-stats">
        <dl class="game-state">
            <dt>Game state</dt>
            <dd>{{ game_state }}</dd>
        </dl>

        <dl class="game-times">
            <dt>Start Time</dt>
            <dd>{{ game.startTime|date('F j, Y h:i:s A') }}</dd>
            <dt>End Time</dt>
            <dd>{{ game.endTime|date('F j, Y h:i:s A') }}</dd>
        </dl>

        <dl class="game-packs">
            <dt>Packs</dt>
            <dd>
                {% for pack in game.cardPacks %}
                    {{ pack }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>

        <dl class="game-house-rules">
            <dt>House Rules</dt>
            <dd>
                {% for rule in game.houseRules %}
                    {{ rule }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>

        <dl class="game-details">
            <dt>Host</dt>
            <dd>{{ game.host }}</dd>

            <dt>Lifetime Hosts</dt>
            <dd>
                {% for host in game.hostsLifetime %}
                    {{ host }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>

            <dt>Players</dt>
            <dd>
                {% for player in game.players|sort %}
                    {{ player }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>

            <dt>Lifetime Players</dt>
            <dd>
                {% for player in game.playersLifetime|sort %}
                    {{ player }}{% if not loop.last %}, {% endif %}
                {% endfor %}
            </dd>
        </dl>


        <strong>End Scores</strong>
        <table>
            <thead>
            <tr>
                <th>Nick</th>
                <th>Score</th>
            </tr>
            </thead>
            <tbody>
            {% for user, score in game.endScores|arsort %}
                <tr>
                    <td>{{ user }}</td>
                    <td>{{ score }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>

        <strong>Card Counts:</strong>
        <table>
            <thead>
            <tr>
                <th>Card</th>
                <th>Count</th>
            </tr>
            </thead>
            <tbody>
            {% for type, count in card_counts %}
                <tr>
                    {% if type == "Unused Black" %}
                        <td>{{ type }} (used {{ percents.used_black|number_format }}%)</td>
                    {% elseif type == "Unused White" %}
                        <td>{{ type }} (used {{ percents.used_white|number_format }}%)</td>
                    {% else %}
                        <td>{{ type }}</td>
                    {% endif %}

                    <td>{{ count }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>

        <br><strong>Rounds</strong>
        <ul>
            {% for round in game.rounds|arsort %}
                <li>
                    <table>
                        <thead>
                        <tr>
                            <th>#</th>
                            <th>Czar</th>
                            <th>Black Card</th>
                            <th>Winner</th>
                            <th>Plays</th>
                        </tr>
                        </thead>
                        <body>
                        <tr>
                            <td>{{ loop.index }}</td>
                            <td>{{ round.czar }}</td>
                            <td>{{ round.black_card }}</td>
                            <td><abbr title="{{ cahFullCard(round.black_card, round.plays[round.winner.id]) }}" rel="tooltip">{{ round.winner.player }}</abbr></td>
                            <td><abbr title="{{ cahPlays(round.black_card, round.plays) }}" rel="tooltip">(hover)</abbr></td>
                        </tr>
                        </body>
                    </table>
                </li>
            {% endfor %}
        </ul>
    </div>
{'fraction_non_alphanumeric': 0.1623072529982867, 'fraction_numerical': 0.0010279840091376355, 'mean_word_length': 0.9527207850133809, 'pattern_counts': {'":': 0, '<': 273, '<?xml version=': 0, '>': 273, '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': '1920785', 'n_tokens_mistral': 2700, 'n_tokens_neox': 2400, 'n_words': 511}