<commit_before><template>
    <div class="row">
        <div class="col-md-4">
            <img class="img-responsive" :src="'https://github.com/' + user.username + '.png'" :alt="user.username" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/Placeholder_no_text.svg/2000px-Placeholder_no_text.svg.png'">
            <h1>{{ user.username }}</h1>

            <p>{{ user.level }} at {{ user.organization }}</p>
        </div>
        <div class="col-md-8">
            <section>
                <h2>Stats Summary</h2>
                <p v-if="user.tier"><b>{{ user.tier }}</b> player</p>
                <p><b>Points:</b> {{ Math.round(user.score * 100) / 100 }}</p>
                <p v-if="user.rank"><b>Rank:</b> {{ user.rank }}</p>
                <p><b>Games Played:</b>  {{ user.num_games }}</p>
                <p><b>Submissions:</b>  {{ user.num_submissions }}</p>
                <p v-for="bot in bots">
                    Bot version {{ bot.version_number }} rank {{ bot.rank }} written in {{ bot.language }} with {{ bot.games_played }} games played
                    <span v-if="bot.compilation_status">(latest version compilation status: {{ bot.compilation_status }})</span>
                </p>
            </section>
            <section>
                <h2>Game Feed</h2>

                <template v-if="is_my_page">
                    <input type="checkbox" v-bind:checked="only_timed_out" id="only-timed-out" v-on:change="toggle_filter" />
                    <label for="only-timed-out">Only show games where I timed out</label>
                </template>

                <table class="table">
                    <thead>
                        <tr>
                            <th>Played On</th>
                            <th>Opponents</th>
                            <th>Map Size</th>
                            <th>Watch</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-for="game in games">
                            <td>
                                <time :datetime="game.time_played"
                                      :title="game.time_played">
                                    {{ game.time_played | moment("calendar") }}
                                </time>
                            </td>
                            <td>
                                <a v-for="player in Object.keys(game.players)"
                                   :href="'user?user_id=' + player"
                                   class="game-participant"
                                   v-bind:class="{ 'timed-out': game.players[player].timed_out }"
                                   :title="game.players[player].timed_out ? 'This player timed out or errored in this game. See the log for details.' : ''">
                                    <img :alt="player" :src="profile_images[player]" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/Placeholder_no_text.svg/2000px-Placeholder_no_text.svg.png'" />
                                    <span class="rank">
                                        {{ game.players[player].rank }}
                                    </span>
                                </a>
                            </td>
                            <td>{{ game.map_width }}x{{ game.map_height }}</td>
                            <td>
                                <a :href="'play?game_id=' + game.game_id">
                                    {{ game.game_id }}<commit_msg>Fix links on user profile page<commit_after><template>
    <div class="row">
        <div class="col-md-4">
            <img class="img-responsive" :src="'https://github.com/' + user.username + '.png'" :alt="user.username" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/Placeholder_no_text.svg/2000px-Placeholder_no_text.svg.png'">
            <h1>{{ user.username }}</h1>

            <p>{{ user.level }} at {{ user.organization }}</p>
        </div>
        <div class="col-md-8">
            <section>
                <h2>Stats Summary</h2>
                <p v-if="user.tier"><b>{{ user.tier }}</b> player</p>
                <p><b>Points:</b> {{ Math.round(user.score * 100) / 100 }}</p>
                <p v-if="user.rank"><b>Rank:</b> {{ user.rank }}</p>
                <p><b>Games Played:</b>  {{ user.num_games }}</p>
                <p><b>Submissions:</b>  {{ user.num_submissions }}</p>
                <p v-for="bot in bots">
                    Bot version {{ bot.version_number }} rank {{ bot.rank }} written in {{ bot.language }} with {{ bot.games_played }} games played
                    <span v-if="bot.compilation_status">(latest version compilation status: {{ bot.compilation_status }})</span>
                </p>
            </section>
            <section>
                <h2>Game Feed</h2>

                <template v-if="is_my_page">
                    <input type="checkbox" v-bind:checked="only_timed_out" id="only-timed-out" v-on:change="toggle_filter" />
                    <label for="only-timed-out">Only show games where I timed out</label>
                </template>

                <table class="table">
                    <thead>
                        <tr>
                            <th>Played On</th>
                            <th>Opponents</th>
                            <th>Map Size</th>
                            <th>Watch</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr v-for="game in games">
                            <td>
                                <time :datetime="game.time_played"
                                      :title="game.time_played">
                                    {{ game.time_played | moment("calendar") }}
                                </time>
                            </td>
                            <td>
                                <a v-for="player in Object.keys(game.players)"
                                   :href="'/user?user_id=' + player"
                                   class="game-participant"
                                   v-bind:class="{ 'timed-out': game.players[player].timed_out }"
                                   :title="game.players[player].timed_out ? 'This player timed out or errored in this game. See the log for details.' : ''">
                                    <img :alt="player" :src="profile_images[player]" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/Placeholder_no_text.svg/2000px-Placeholder_no_text.svg.png'" />
                                    <span class="rank">
                                        {{ game.players[player].rank }}
                                    </span>
                                </a>
                            </td>
                            <td>{{ game.map_width }}x{{ game.map_height }}</td>
                            <td>
                                <a :href="'/play?game_id=' + game.game_id">
                                    {{ game.game_id }}
{'fraction_non_alphanumeric': 0.14643707125857483, 'fraction_numerical': 0.006159876802463951, 'mean_word_length': 1.1325373134328358, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7650184', 'n_tokens_mistral': 2034, 'n_tokens_neox': 1867, 'n_words': 329}