<commit_before>{% extends "FoosLeaderCoreBundle::layout.html.twig" %}

{% block content %}
<div class="page-header clearfix">
    <h1> {{ app.user.username }} vs {{ rival.username }} </h1>
    <h3> You have played {{ totalGames }} game{%- if totalGames > 1 -%}s{%- endif %} against each other</h3>
    <p>Here you can find a few statistics on your rivalry with {{ rival.username }}</p>
</div>
<div class="row">
    <div class="col-xs-8">
        <div class="row">
            <div class="col-xs-6">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">Rival</h3>
                    </div>
                    <div class="panel-body">
                        {{ rival.username }}
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">ELO Points</h3>
                    </div>
                    <div class="panel-body">
                        {{ rival.ELORanking }}
                    </div>
                </div>
            </div>

            <div class="col-xs-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">Goals</h3>
                    </div>
                    <table class="table table-hover table-striped">
                        <thead>
                        <tr>
                            <th>Scored</th>
                            <th>Conceded</th>
                            <th>Difference</th>
                            <th>Score ratio</th>
                            <th>Avg. score</th>
                            <th>Avg. conceded</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>{{ goalStatistics.scored }}</td>
                            <td>{{ goalStatistics.conceded }}</td>
                            <td>{{ goalStatistics.difference }}</td>
                            <td>{{ ScoreRatio|number_format(2, '.', ',') }}</td>
                            <td>{{ AvgScore|number_format(2, '.', ',') }}</td>
                            <td>{{ AvgConceded|number_format(2, '.', ',') }}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">Rivalry</h3>
                    </div>
                    <table class="table table-hover table-striped">
                        <thead>
                        <tr>
                            <th>Player</th>
                            <th>Games won</th>
                            <th>Goals scored</th>
                            <th>Games won ratio</th>
                            <th>Goals scored ratio</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>{{ app.user.username }}</td>
                            <td>{{ gamesUserWon }}</td>
                            <td>{{ goalsUserScored }}</td>
                            <td>{{ gamesUserWonRatio }}</td>
                            <td>{{ goalsUserScoredRatio }}</td>
                        </tr>
                        <tr>
                            <td>{{ rival.username }}</td>
                            <td>{{ gamesRivalWon }}</td>
                            <td>{{ goalsRivalScored }}</td>
                            <td>{{ gamesRivalWonRatio }}</td>
                            <td>{{ goalsRivalScoredRatio }}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">Games</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>Played</th>
                    <th>Won</th>
                    <th>Lost</th>
                    <th>Win Ratio</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ gameStatistics.games }}</td>
                    <td>{{ gameStatistics.won }}</td>
                    <td>{{ gameStatistics.lost }}</td>
                    <td>{{ winRatio|number_format(0, '.', ',') }}%</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">Possible changes</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>Result</th>
                    <th>Old ELO</th>
                    <th>New ELO</th>
                    <th>Changes</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ app.user.username }} wins</td>
                    <td>{{ possibleWinOutcome[app.user.id].currentELO }}</td>
                    <td>{{ possibleWinOutcome[app.user.id].newELO }}</td>
                    <td>{{ possibleWinOutcome[app.user.id].change }}</td>
                </tr>
                <tr>
                    <td>{{ rival.username }} loses</td>
                    <td>{{ possibleWinOutcome[rival.id].currentELO }}</td>
                    <td>{{ possibleWinOutcome[rival.id].newELO }}</td>
                    <td>{{ possibleWinOutcome[rival.id].change }}</td><commit_msg>Few cosmetic changes to the rivalry<commit_after>{% extends "FoosLeaderCoreBundle::layout.html.twig" %}

{% block content %}
<div class="page-header clearfix">
    <h1> {{ app.user.username }} vs {{ rival.username }} </h1>
    <h3> You have played {{ totalGames }} game{%- if totalGames > 1 -%}s{%- endif %} against each other</h3>
    <p>Here you can find a few statistics on {{ rival.username }} and your rivalry</p>
</div>
<div class="row">
    <div class="col-xs-8">
        <div class="row">
            <div class="col-xs-6">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">Rival</h3>
                    </div>
                    <div class="panel-body">
                        {{ rival.username }}
                    </div>
                </div>
            </div>
            <div class="col-xs-6">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">{{ rival.username }}'s ELO Points</h3>
                    </div>
                    <div class="panel-body">
                        {{ rival.ELORanking }}
                    </div>
                </div>
            </div>

            <div class="col-xs-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">{{ rival.username}}'s goals</h3>
                    </div>
                    <table class="table table-hover table-striped">
                        <thead>
                        <tr>
                            <th>Scored</th>
                            <th>Conceded</th>
                            <th>Difference</th>
                            <th>Score ratio</th>
                            <th>Avg. score</th>
                            <th>Avg. conceded</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>{{ goalStatistics.scored }}</td>
                            <td>{{ goalStatistics.conceded }}</td>
                            <td>{{ goalStatistics.difference }}</td>
                            <td>{{ ScoreRatio|number_format(2, '.', ',') }}</td>
                            <td>{{ AvgScore|number_format(2, '.', ',') }}</td>
                            <td>{{ AvgConceded|number_format(2, '.', ',') }}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h3 class="panel-title">Rivalry</h3>
                    </div>
                    <table class="table table-hover table-striped">
                        <thead>
                        <tr>
                            <th>Player</th>
                            <th>Games won</th>
                            <th>Goals scored</th>
                            <th>Games won ratio</th>
                            <th>Goals scored ratio</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>{{ app.user.username }}</td>
                            <td>{{ gamesUserWon }}</td>
                            <td>{{ goalsUserScored }}</td>
                            <td>{{ gamesUserWonRatio }}</td>
                            <td>{{ goalsUserScoredRatio }}</td>
                        </tr>
                        <tr>
                            <td>{{ rival.username }}</td>
                            <td>{{ gamesRivalWon }}</td>
                            <td>{{ goalsRivalScored }}</td>
                            <td>{{ gamesRivalWonRatio }}</td>
                            <td>{{ goalsRivalScoredRatio }}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">{{ rival.username }}'s games</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>Played</th>
                    <th>Won</th>
                    <th>Lost</th>
                    <th>Win Ratio</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ gameStatistics.games }}</td>
                    <td>{{ gameStatistics.won }}</td>
                    <td>{{ gameStatistics.lost }}</td>
                    <td>{{ winRatio|number_format(0, '.', ',') }}%</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">Possible ELO changes</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>Result</th>
                    <th>Old ELO</th>
                    <th>New ELO</th>
                    <th>Changes</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>{{ app.user.username }} wins</td>
                    <td>{{ possibleWinOutcome[app.user.id].currentELO }}</td>
                    <td>{{ possibleWinOutcome[app.user.id].newELO }}</td>
                    <td>{{ possibleWinOutcome[app.user.id].change }}</td>
                </tr>
                <tr>
                    <td>{{ rival.username }} loses</td>
                    <td>{{ possibleWinOutcome[rival.id].currentELO }}</td>
                    <td>{{ possibleWinOutcome[rival.id].newELO }}</td>
                    <td>{{ possibleWinOutcome[rival.id].change }}</td>
{'fraction_non_alphanumeric': 0.1467934650085345, 'fraction_numerical': 0.00487685930260912, 'mean_word_length': 0.9011124845488258, 'pattern_counts': {'":': 0, '<': 399, '<?xml version=': 0, '>': 401, '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': '7060996', 'n_tokens_mistral': 3397, 'n_tokens_neox': 3098, 'n_words': 606}