<commit_before>@(player: models.Player)
@import play.i18n._

@gameLine(score: models.Score) = {
    <tr>
        <td>
            <a href="@routes.GameController.indexWithName(score.game, score.game.getEscapedTitle)">@score.game.title</a>
        </td>
        <td>
            @if(score.mode != null) {
                <span class="label label-default" style="vertical-align: middle;">@score.mode.name</span>
            }
            @if(score.difficulty != null) {
                <span class="label label-warning">@score.difficulty.name</span>
            }
        </td>
        <td>
            @score.stage
        </td>
        <td style="text-align: right;">
            <a href="@routes.ScoreController.read(score)">@score.formattedValue</a>
        </td>
        <td style="text-align: right;">
            @score.formattedRank
        </td>
    </tr>
}

@main() {
   <h2>@player.name</h2>
   <table class="table table-condensed table-hover table-bordered">
       <thead>
           <th>@Messages.get("Game")</th>
           <th>@Messages.get("Mode") / @Messages.get("Difficulty")</th>
           <th style="text-align: center;">@Messages.get("Stage")</th>
           <th style="text-align: center;">@Messages.get("Score")</th>
           <th style="text-align: center; width: 50px;">@Messages.get("Rank")</th>
       </thead>
       @player.bestScores.map(gameLine(_))
   </table>
}<commit_msg>Separation mode et difficulte dans page d un joueur<commit_after>@(player: models.Player)
@import play.i18n._

@gameLine(score: models.Score) = {
    <tr>
        <td>
            <a href="@routes.GameController.indexWithName(score.game, score.game.getEscapedTitle)">@score.game.title</a>
        </td>
        <td>
            @if(score.mode != null) {
                <span class="label label-default" style="vertical-align: middle;">@score.mode.name</span>
            }
        </td>
        <td>
            @if(score.difficulty != null) {
                <span class="label label-warning">@score.difficulty.name</span>
            }
        </td>
        <td>
            @score.stage
        </td>
        <td style="text-align: right;">
            <a href="@routes.ScoreController.read(score)">@score.formattedValue</a>
        </td>
        <td style="text-align: right;">
            @score.formattedRank
        </td>
    </tr>
}

@main() {
   <h2>@player.name</h2>
   <table class="table table-condensed table-hover table-bordered">
       <thead>
           <th>@Messages.get("Game")</th>
           <th>@Messages.get("Mode")</th>
           <th>@Messages.get("Difficulty")</th>
           <th style="text-align: center;">@Messages.get("Stage")</th>
           <th style="text-align: center;">@Messages.get("Score")</th>
           <th style="text-align: center; width: 50px;">@Messages.get("Rank")</th>
       </thead>
       @player.bestScores.map(gameLine(_))
   </table>
}
{'fraction_non_alphanumeric': 0.18467380048325854, 'fraction_numerical': 0.004142216085605799, 'mean_word_length': 2.15, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '3691048', 'n_tokens_mistral': 968, 'n_tokens_neox': 936, 'n_words': 142}