<commit_before><section id="submissions" class="tab-content section-homeworksubmissions">
    <table class="table table-hover">
        {{#if teamSubmissions}}
            <thead>
                <tr>
                    <th>Team</th>
                    <th></th>
                    <th>Abgegeben <span>{{@root.stats.submissionCount}}/{{@root.stats.userCount}}</span></th>
                    <th>{{$t "homework.label.rating_comment" }} {{#if @root.stats.averageGrade}}<span>{{@root.stats.averageGrade}}%</span>{{/if}}</th>
                    <th/>
                </tr>
            </thead>
            {{#each @root.submissions}}
                <tbody class="usersubmission">
                    <tr class="userinfo">
                        <td class="groupNames">
                            {{#if this.submission.courseGroupId}}
                                <b>{{this.submission.courseGroupId.name}}: </b>
                                {{#each this.submission.courseGroupMembers}}
                                    <span>{{this.firstName}} {{this.lastName}}</span>
                                {{/each}}
                            {{else}}
                                {{#each this.submission.teamMembers}}
                                    <span>{{this.firstName}} {{this.lastName}}</span>
                                {{/each}}
                            {{/if}}
                        </td>
                        <td></td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-check green" aria-hidden="true"/>
                            {{else}}
                                <i class="fa fa-times red" aria-hidden="true"/>
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission.grade}}
                                {{this.submission.grade}}%
                            {{else}}
                                {{#if submission.gradeComment}}
                                    {{#ifneq this.submission.gradeComment ''}}
                                        <i class="fa fa-check green" aria-hidden="true"></i>
                                    {{/ifneq}}
                                {{/if}}
                            {{/if}}
                        </td>
                        <td><i class="fa fa-chevron-left" aria-hidden="true"/></td>
                    </tr>
                    <tr class="evaluation">
                        <td colSpan="6">{{>"homework/evaluation"}}</td>
                    </tr>
                </tbody>
            {{/each}}
        {{else}}
            <thead>
                <tr>
                    <th>Vorname</th>
                    <th>Nachname</th>
                    <th>Abgegeben <span>{{@root.stats.submissionCount}}/{{@root.stats.userCount}}</span></th>
                    <th>{{$t "homework.label.rating_comment" }} {{#if @root.stats.averageGrade}}<span>{{@root.stats.averageGrade}}%</span>{{/if}}</th>
                    <th/>
                </tr>
            </thead>
            {{#each @root.studentSubmissions}}
                <tbody class="usersubmission">
                    <tr class="userinfo">
                        <td>{{this.student.firstName}}</td>
                        <td>{{this.student.lastName}}</td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-check green" aria-hidden="true"/>
                            {{else}}
                                <i class="fa fa-times red" aria-hidden="true"/>
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission.grade}}
                                {{this.submission.grade}}%
                            {{else}}
                                {{#if submission.gradeComment}}
                                    {{#ifneq this.submission.gradeComment ''}}
                                        <i class="fa fa-check green" aria-hidden="true"></i>
                                    {{/ifneq}}
                                {{/if}}
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-chevron-left" aria-hidden="true"/>
                            {{/if}}
                        </td>
                    </tr>
                    <tr class="evaluation">
                        {{#if this.submission}}
                            <td colSpan="6">{{>"homework/evaluation"}}</td>
                        {{/if}}
                    </tr>
                </tbody>
            {{/each}}
        {{/if}}
    </table>
    {{#if teamSubmissions}}
        {{#ifArray @root.submissions}}
            {{#unless (arrayLength @root.submissions)}}
                <div class="alert alert-info">
                    <strong>Keine Abgaben vorhanden.</strong>
                </div>
            {{/unless}}
        {{/ifArray}}
        {{#ifArray @root.studentsWithoutSubmission}}
            <hr>
            <div class="alert alert-warning">
                <strong>Bisher keine Abgabe von:</strong></br>
                <div class="groupNames">
                    {{#each @root.studentsWithoutSubmission}}
                        <span>{{this.firstName}} {{this.lastName}}</span>
                    {{/each}}
                </div>
            </div>
        {{/ifArray}}
    {{/if}}

    <button
        type="button"
        class="btn btn-secondary multi-download"
        id="submissions-download-ungraded-files"
        {{#ifeq 0 @root.ungradedFileSubmissions.length}}disabled="disabled"{{/ifeq}}

        data-files="{{@root.ungradedFileSubmissions.urls}}"
    >
        {{$t "homework.button.downloadUngradedFiles"}}
    </button>
</section>
<commit_msg>Align the button to the right<commit_after><section id="submissions" class="tab-content section-homeworksubmissions">
    <table class="table table-hover">
        {{#if teamSubmissions}}
            <thead>
                <tr>
                    <th>Team</th>
                    <th></th>
                    <th>Abgegeben <span>{{@root.stats.submissionCount}}/{{@root.stats.userCount}}</span></th>
                    <th>{{$t "homework.label.rating_comment" }} {{#if @root.stats.averageGrade}}<span>{{@root.stats.averageGrade}}%</span>{{/if}}</th>
                    <th/>
                </tr>
            </thead>
            {{#each @root.submissions}}
                <tbody class="usersubmission">
                    <tr class="userinfo">
                        <td class="groupNames">
                            {{#if this.submission.courseGroupId}}
                                <b>{{this.submission.courseGroupId.name}}: </b>
                                {{#each this.submission.courseGroupMembers}}
                                    <span>{{this.firstName}} {{this.lastName}}</span>
                                {{/each}}
                            {{else}}
                                {{#each this.submission.teamMembers}}
                                    <span>{{this.firstName}} {{this.lastName}}</span>
                                {{/each}}
                            {{/if}}
                        </td>
                        <td></td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-check green" aria-hidden="true"/>
                            {{else}}
                                <i class="fa fa-times red" aria-hidden="true"/>
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission.grade}}
                                {{this.submission.grade}}%
                            {{else}}
                                {{#if submission.gradeComment}}
                                    {{#ifneq this.submission.gradeComment ''}}
                                        <i class="fa fa-check green" aria-hidden="true"></i>
                                    {{/ifneq}}
                                {{/if}}
                            {{/if}}
                        </td>
                        <td><i class="fa fa-chevron-left" aria-hidden="true"/></td>
                    </tr>
                    <tr class="evaluation">
                        <td colSpan="6">{{>"homework/evaluation"}}</td>
                    </tr>
                </tbody>
            {{/each}}
        {{else}}
            <thead>
                <tr>
                    <th>Vorname</th>
                    <th>Nachname</th>
                    <th>Abgegeben <span>{{@root.stats.submissionCount}}/{{@root.stats.userCount}}</span></th>
                    <th>{{$t "homework.label.rating_comment" }} {{#if @root.stats.averageGrade}}<span>{{@root.stats.averageGrade}}%</span>{{/if}}</th>
                    <th/>
                </tr>
            </thead>
            {{#each @root.studentSubmissions}}
                <tbody class="usersubmission">
                    <tr class="userinfo">
                        <td>{{this.student.firstName}}</td>
                        <td>{{this.student.lastName}}</td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-check green" aria-hidden="true"/>
                            {{else}}
                                <i class="fa fa-times red" aria-hidden="true"/>
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission.grade}}
                                {{this.submission.grade}}%
                            {{else}}
                                {{#if submission.gradeComment}}
                                    {{#ifneq this.submission.gradeComment ''}}
                                        <i class="fa fa-check green" aria-hidden="true"></i>
                                    {{/ifneq}}
                                {{/if}}
                            {{/if}}
                        </td>
                        <td>
                            {{#if this.submission}}
                                <i class="fa fa-chevron-left" aria-hidden="true"/>
                            {{/if}}
                        </td>
                    </tr>
                    <tr class="evaluation">
                        {{#if this.submission}}
                            <td colSpan="6">{{>"homework/evaluation"}}</td>
                        {{/if}}
                    </tr>
                </tbody>
            {{/each}}
        {{/if}}
    </table>
    {{#if teamSubmissions}}
        {{#ifArray @root.submissions}}
            {{#unless (arrayLength @root.submissions)}}
                <div class="alert alert-info">
                    <strong>Keine Abgaben vorhanden.</strong>
                </div>
            {{/unless}}
        {{/ifArray}}
        {{#ifArray @root.studentsWithoutSubmission}}
            <hr>
            <div class="alert alert-warning">
                <strong>Bisher keine Abgabe von:</strong></br>
                <div class="groupNames">
                    {{#each @root.studentsWithoutSubmission}}
                        <span>{{this.firstName}} {{this.lastName}}</span>
                    {{/each}}
                </div>
            </div>
        {{/ifArray}}
    {{/if}}

    <div class="text-xs-right">
        <button
            type="button"
            class="btn btn-secondary multi-download"
            id="submissions-download-ungraded-files"
            {{#ifeq 0 @root.ungradedFileSubmissions.length}}disabled="disabled"{{/ifeq}}

            data-files="{{@root.ungradedFileSubmissions.urls}}"
        >
            {{$t "homework.button.downloadUngradedFiles"}}
        </button>
    </div>
</section>

{'fraction_non_alphanumeric': 0.14650260137088117, 'fraction_numerical': 0.0004954992154595756, 'mean_word_length': 0.9222222222222223, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 221, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6589017', 'n_tokens_mistral': 3125, 'n_tokens_neox': 2862, 'n_words': 454}