<commit_before>@(game: models.game.Game, quiz: models.question.derivative.Quiz, teacher: service.User)(implicit user: service.User, session: play.api.db.slick.Config.driver.simple.Session)

@import controllers.game.routes.GamesController
@import controllers.game.GameRequest
@import helper._
@import models.user.UserPimped
@import views.html.tag.percent
@import views.html.tag.gameLink
@import views.html.tag.datetimeOp

@mainWithBorder("Student Game Score", tag.courseOpLink(game.course)) {

    <h2> Student Game Score </h2>

    <section>
        You played a [@tag.gameLink("game", game)] with @teacher.name on @tag.datetimeOp(game.finishedDate)
    </section>

    <section>
        Your results for each question:<br>
        @defining(quiz.results(user)) { quizResults =>
        <table>
            <tr><th>question</th><th>correct</th></tr>
            @for(result <- quizResults.results) {
            <tr>
                <td> @mathml.mathmlContent(result.question) </td>
                <td> @mathml.correct(result.correct) </td>
            </tr>
            }
        </table>

        Your score for this quiz: @tag.percent(quizResults.studentScore)<br>
        }<commit_msg>clean up for student points in a game review<commit_after>@(game: models.game.Game, quiz: models.question.derivative.Quiz, teacher: service.User)(implicit user: service.User, session: play.api.db.slick.Config.driver.simple.Session)

@import models.user.UserPimped

@mainWithBorder("Student Game Score", tag.courseOpLink(game.course), tag.gameLink("game", game)) {

    <h2> Student Game Score @tag.icon("icon-help", 'data_ot -> "Players get two scores. One as a Student and one as a teacher. Your student score is based on how many questions you got right.")</h2>

    <section>
        You played a @tag.gameLink("game", game) with @teacher.name on @tag.datetimeOp(game.finishedDate)
    </section>

    <section>
        Your results for each question:<br>
        @defining(quiz.results(user)) { quizResults =>
        <table class="pure-table pure-table-striped extra-border">
            <tr>
                <th>question</th>
                <th>correct</th>
            </tr>
            @for(result <- quizResults.results) {
            <tr>
                <td> @mathml.mathmlContent(result.question) </td>
                <td> @mathml.correct(result.correct) </td>
            </tr>
            }
        </table>

        Your score for this quiz: @tag.percent(quizResults.studentScore)<br>
        }
{'fraction_non_alphanumeric': 0.13634546181527388, 'fraction_numerical': 0.001599360255897641, 'mean_word_length': 2.701183431952663, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 48, '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': '6336767', 'n_tokens_mistral': 781, 'n_tokens_neox': 749, 'n_words': 172}