<commit_before><div>
    <div class="row">
        <div class="col-12 col-sm">
            <h4 id="course-page-heading" jhiTranslate="artemisApp.course.home.title">Courses</h4>
        </div>
        <div class="col-12 col-sm-auto d-flex">
            <label class="d-flex align-items-center mb-0 mr-2">
                <input type="checkbox" [checked]="showOnlyActive" (change)="toggleShowOnlyActive()" />
                <span class="ml-2" jhiTranslate="artemisApp.course.showActive">Show only active courses</span>
            </label>
            <button
                jhiOrionFilter
                [showInOrionWindow]="false"
                *jhiHasAnyAuthority="'ROLE_ADMIN'"
                class="btn btn-primary jh-create-entity create-course"
                [routerLink]="['/course-management/new']"
            >
                <fa-icon [icon]="'plus'"></fa-icon>
                <span class="hidden-sm-down" jhiTranslate="artemisApp.course.home.createLabel"> Create new Course </span>
            </button>
        </div>
    </div>
    <jhi-alert></jhi-alert>
    <div class="row"></div>
    <br />
    <div class="table-responsive" *ngIf="courses">
        <table class="table table-striped">
            <thead>
                <tr jhiSort [(predicate)]="predicate" [(ascending)]="reverse" [callback]="sortRows.bind(this)">
                    <th class="d-none d-md-table-cell"></th>
                    <th class="d-none d-md-table-cell" jhiSortBy="id">
                        <span>{{ 'global.field.id' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>

                    <th jhiSortBy="title">
                        <span>{{ 'artemisApp.course.title' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell">
                        <span>{{ 'artemisApp.course.accessGroups' | translate }}</span>
                    </th>
                    <th jhiSortBy="startDate">
                        <span>{{ 'artemisApp.course.startDate' | translate }}</span
                        ><fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th jhiSortBy="endDate">
                        <span>{{ 'artemisApp.course.endDate' | translate }}</span
                        ><fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell" jhiSortBy="onlineCourse">
                        <span>{{ 'artemisApp.course.onlineCourse' | translate }}</span
                        ><fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell" jhiSortBy="presentationScore">
                        <span>{{ 'artemisApp.course.presentationScoreEnabled.title' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let course of courses; trackBy: trackId">
                    <ng-container *ngIf="!showOnlyActive || !course.endDate || (course.endDate | amIsAfter: today:'second')">
                        <td class="d-none d-md-table-cell">
                            <div [ngStyle]="{ backgroundColor: course.color || ARTEMIS_DEFAULT_COLOR, width: '15px', height: '20px' }">&nbsp;</div>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <a [routerLink]="['/course-management', course.id, 'view']">{{ course.id }}</a>
                        </td>
                        <td>
                            <span class="bold">{{ course.title }}</span
                            ><br />
                            <span *ngIf="course.shortName">
                                <span class="bold">{{ 'artemisApp.course.shortName' | translate }} :</span> {{ course.shortName }}
                            </span>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <div *ngIf="course.isAtLeastInstructor">
                                <span class="bold">{{ 'artemisApp.course.students' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'students']"> {{ course.studentGroupName }} ({{ course.numberOfStudents }}) </a>
                                <br />
                                <span class="bold">{{ 'artemisApp.course.tutors' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'tutors']">
                                    {{ course.teachingAssistantGroupName }} ({{ course.numberOfTeachingAssistants }})
                                </a>
                                <br />
                                <span class="bold">{{ 'artemisApp.course.instructors' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'instructors']">
                                    {{ course.instructorGroupName }} ({{ course.numberOfInstructors }})
                                </a>
                            </div>
                            <div *ngIf="!course.isAtLeastInstructor">
                                <span class="bold">{{ 'artemisApp.course.students' | translate }}:</span>
                                {{ course.studentGroupName }} ({{ course.numberOfStudents }})
                                <br />
                                <span class="bold">{{ 'artemisApp.course.tutors' | translate }}:</span>
                                {{ course.teachingAssistantGroupName }} ({{ course.numberOfTeachingAssistants }})
                                <br />
                                <span class="bold">{{ 'artemisApp.course.instructors' | translate }}:</span>
                                {{ course.instructorGroupName }} ({{ course.numberOfInstructors }})
                            </div>
                        </td>
                        <td>{{ course.startDate | artemisDate }}</td>
                        <td>{{ course.endDate | artemisDate }}</td>
                        <td class="d-none d-md-table-cell">
                            <span *ngIf="course.onlineCourse">{{ 'artemisApp.course.onlineCourseTrue' | translate }}</span>
                            <span *ngIf="!course.onlineCourse">{{ 'artemisApp.course.onlineCourseFalse' | translate }}</span>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <span *ngIf="course.presentationScore !== 0">{{ 'global.generic.yes' | translate }}</span>
                            <span *ngIf="course.presentationScore === 0">{{ 'global.generic.no' | translate }}</span>
                        </td>
                        <td jhiOrionFilter [showInOrionWindow]="true">
                            <button
                                *ngIf="course.isAtLeastTutor"
                                type="submit"
                                [routerLink]="['/course-management', course.id, 'exercises']"
                                class="btn btn-primary btn-sm mr-1 mb-1"
                                id="exercises-ide-button-{{ course.id }}"
                            >
                                <fa-icon [icon]="'list-alt'"></fa-icon>
                                <span>{{ 'entity.action.exercise' | translate }}</span>
                            </button>
                        </td>
                        <td jhiOrionFilter [showInOrionWindow]="false" class="text-right">
                            <div class="btn-group flex-btn-group-container">
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        *ngIf="course.isAtLeastTutor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'exercises']"
                                        class="btn btn-primary btn-sm mr-1 mb-1 exercise-button"
                                        [class.guided-tour]="course === courseForGuidedTour"
                                        id="exercises-button-{{ course.id }}"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.exercise' | translate }}</span>
                                    </button>
                                    <button
                                        *ngIf="course.isAtLeastInstructor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'lectures']"
                                        class="btn btn-primary btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.lecture' | translate }}</span>
                                    </button>
                                </div>
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'scores']"
                                        class="btn btn-info btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'eye'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.scores' | translate }}</span>
                                    </button>
                                    <button
                                        *ngIf="showExamButton && course.isAtLeastTutor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'exams']"
                                        class="btn btn-info btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">Exams</span>
                                    </button>
                                </div>
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastTutor"
                                        [routerLink]="['/course-management', course.id, 'tutor-dashboard']"
                                        class="btn btn-info btn-sm mr-1 mb-1 tutor-dashboard"
                                        [class.guided-tour]="course === courseForGuidedTour"
                                    >
                                        <fa-icon [icon]="'th-list'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.tutorCourseDashboard' | translate }}</span>
                                    </button>
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'instructor-dashboard']"
                                        class="btn btn-info btn-sm mr-1 mb-1 instructor-dashboard"
                                    >
                                        <fa-icon [icon]="'th-list'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'artemisApp.course.instructorDashboard' | translate }}</span>
                                    </button>
                                </div>
                                <div class="d-flex flex-column mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'edit']"
                                        class="btn btn-primary btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'pencil-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.edit' | translate }}</span>
                                    </button>

                                    <button
                                        *jhiHasAnyAuthority="['ROLE_ADMIN']"
                                        jhiDeleteButton
                                        [entityTitle]="course.title"
                                        deleteQuestion="artemisApp.course.delete.question"
                                        deleteConfirmationText="artemisApp.course.delete.typeNameToConfirm"
                                        (delete)="deleteCourse(course.id)"
                                        [dialogError]="dialogError$"
                                    >
                                        <fa-icon [icon]="'times'"></fa-icon>
                                    </button>
                                </div>
                            </div>
                        </td>
                    </ng-container>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<commit_msg>Fix the online courses column name (#2210)<commit_after><div>
    <div class="row">
        <div class="col-12 col-sm">
            <h4 id="course-page-heading" jhiTranslate="artemisApp.course.home.title">Courses</h4>
        </div>
        <div class="col-12 col-sm-auto d-flex">
            <label class="d-flex align-items-center mb-0 mr-2">
                <input type="checkbox" [checked]="showOnlyActive" (change)="toggleShowOnlyActive()" />
                <span class="ml-2" jhiTranslate="artemisApp.course.showActive">Show only active courses</span>
            </label>
            <button
                jhiOrionFilter
                [showInOrionWindow]="false"
                *jhiHasAnyAuthority="'ROLE_ADMIN'"
                class="btn btn-primary jh-create-entity create-course"
                [routerLink]="['/course-management/new']"
            >
                <fa-icon [icon]="'plus'"></fa-icon>
                <span class="hidden-sm-down" jhiTranslate="artemisApp.course.home.createLabel"> Create new Course </span>
            </button>
        </div>
    </div>
    <jhi-alert></jhi-alert>
    <div class="row"></div>
    <br />
    <div class="table-responsive" *ngIf="courses">
        <table class="table table-striped">
            <thead>
                <tr jhiSort [(predicate)]="predicate" [(ascending)]="reverse" [callback]="sortRows.bind(this)">
                    <th class="d-none d-md-table-cell"></th>
                    <th class="d-none d-md-table-cell" jhiSortBy="id">
                        <span>{{ 'global.field.id' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>

                    <th jhiSortBy="title">
                        <span>{{ 'artemisApp.course.title' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell">
                        <span>{{ 'artemisApp.course.accessGroups' | translate }}</span>
                    </th>
                    <th jhiSortBy="startDate">
                        <span>{{ 'artemisApp.course.startDate' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th jhiSortBy="endDate">
                        <span>{{ 'artemisApp.course.endDate' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell" jhiSortBy="onlineCourse">
                        <span>{{ 'artemisApp.course.onlineCourse.title' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th class="d-none d-md-table-cell" jhiSortBy="presentationScore">
                        <span>{{ 'artemisApp.course.presentationScoreEnabled.title' | translate }}</span>
                        <fa-icon [icon]="'sort'"></fa-icon>
                    </th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr *ngFor="let course of courses; trackBy: trackId">
                    <ng-container *ngIf="!showOnlyActive || !course.endDate || (course.endDate | amIsAfter: today:'second')">
                        <td class="d-none d-md-table-cell">
                            <div [ngStyle]="{ backgroundColor: course.color || ARTEMIS_DEFAULT_COLOR, width: '15px', height: '20px' }">&nbsp;</div>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <a [routerLink]="['/course-management', course.id, 'view']">{{ course.id }}</a>
                        </td>
                        <td>
                            <span class="bold">{{ course.title }}</span
                            ><br />
                            <span *ngIf="course.shortName">
                                <span class="bold">{{ 'artemisApp.course.shortName' | translate }} :</span> {{ course.shortName }}
                            </span>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <div *ngIf="course.isAtLeastInstructor">
                                <span class="bold">{{ 'artemisApp.course.students' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'students']"> {{ course.studentGroupName }} ({{ course.numberOfStudents }}) </a>
                                <br />
                                <span class="bold">{{ 'artemisApp.course.tutors' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'tutors']">
                                    {{ course.teachingAssistantGroupName }} ({{ course.numberOfTeachingAssistants }})
                                </a>
                                <br />
                                <span class="bold">{{ 'artemisApp.course.instructors' | translate }}:</span>
                                <a [routerLink]="['/course-management', course.id, 'groups', 'instructors']">
                                    {{ course.instructorGroupName }} ({{ course.numberOfInstructors }})
                                </a>
                            </div>
                            <div *ngIf="!course.isAtLeastInstructor">
                                <span class="bold">{{ 'artemisApp.course.students' | translate }}:</span>
                                {{ course.studentGroupName }} ({{ course.numberOfStudents }})
                                <br />
                                <span class="bold">{{ 'artemisApp.course.tutors' | translate }}:</span>
                                {{ course.teachingAssistantGroupName }} ({{ course.numberOfTeachingAssistants }})
                                <br />
                                <span class="bold">{{ 'artemisApp.course.instructors' | translate }}:</span>
                                {{ course.instructorGroupName }} ({{ course.numberOfInstructors }})
                            </div>
                        </td>
                        <td>{{ course.startDate | artemisDate }}</td>
                        <td>{{ course.endDate | artemisDate }}</td>
                        <td class="d-none d-md-table-cell">
                            <span *ngIf="course.onlineCourse">{{ 'artemisApp.course.onlineCourseTrue' | translate }}</span>
                            <span *ngIf="!course.onlineCourse">{{ 'artemisApp.course.onlineCourseFalse' | translate }}</span>
                        </td>
                        <td class="d-none d-md-table-cell">
                            <span *ngIf="course.presentationScore !== 0">{{ 'global.generic.yes' | translate }}</span>
                            <span *ngIf="course.presentationScore === 0">{{ 'global.generic.no' | translate }}</span>
                        </td>
                        <td jhiOrionFilter [showInOrionWindow]="true">
                            <button
                                *ngIf="course.isAtLeastTutor"
                                type="submit"
                                [routerLink]="['/course-management', course.id, 'exercises']"
                                class="btn btn-primary btn-sm mr-1 mb-1"
                                id="exercises-ide-button-{{ course.id }}"
                            >
                                <fa-icon [icon]="'list-alt'"></fa-icon>
                                <span>{{ 'entity.action.exercise' | translate }}</span>
                            </button>
                        </td>
                        <td jhiOrionFilter [showInOrionWindow]="false" class="text-right">
                            <div class="btn-group flex-btn-group-container">
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        *ngIf="course.isAtLeastTutor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'exercises']"
                                        class="btn btn-primary btn-sm mr-1 mb-1 exercise-button"
                                        [class.guided-tour]="course === courseForGuidedTour"
                                        id="exercises-button-{{ course.id }}"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.exercise' | translate }}</span>
                                    </button>
                                    <button
                                        *ngIf="course.isAtLeastInstructor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'lectures']"
                                        class="btn btn-primary btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.lecture' | translate }}</span>
                                    </button>
                                </div>
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'scores']"
                                        class="btn btn-info btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'eye'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.scores' | translate }}</span>
                                    </button>
                                    <button
                                        *ngIf="showExamButton && course.isAtLeastTutor"
                                        type="submit"
                                        [routerLink]="['/course-management', course.id, 'exams']"
                                        class="btn btn-info btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'list-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">Exams</span>
                                    </button>
                                </div>
                                <div class="btn-group-vertical mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_TA', 'ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastTutor"
                                        [routerLink]="['/course-management', course.id, 'tutor-dashboard']"
                                        class="btn btn-info btn-sm mr-1 mb-1 tutor-dashboard"
                                        [class.guided-tour]="course === courseForGuidedTour"
                                    >
                                        <fa-icon [icon]="'th-list'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.tutorCourseDashboard' | translate }}</span>
                                    </button>
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'instructor-dashboard']"
                                        class="btn btn-info btn-sm mr-1 mb-1 instructor-dashboard"
                                    >
                                        <fa-icon [icon]="'th-list'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'artemisApp.course.instructorDashboard' | translate }}</span>
                                    </button>
                                </div>
                                <div class="d-flex flex-column mr-1 mb-1" *jhiHasAnyAuthority="['ROLE_ADMIN', 'ROLE_INSTRUCTOR']">
                                    <button
                                        type="submit"
                                        *ngIf="course.isAtLeastInstructor"
                                        [routerLink]="['/course-management', course.id, 'edit']"
                                        class="btn btn-primary btn-sm mr-1 mb-1"
                                    >
                                        <fa-icon [icon]="'pencil-alt'"></fa-icon>
                                        <span class="d-none d-md-inline">{{ 'entity.action.edit' | translate }}</span>
                                    </button>

                                    <button
                                        *jhiHasAnyAuthority="['ROLE_ADMIN']"
                                        jhiDeleteButton
                                        [entityTitle]="course.title"
                                        deleteQuestion="artemisApp.course.delete.question"
                                        deleteConfirmationText="artemisApp.course.delete.typeNameToConfirm"
                                        (delete)="deleteCourse(course.id)"
                                        [dialogError]="dialogError$"
                                    >
                                        <fa-icon [icon]="'times'"></fa-icon>
                                    </button>
                                </div>
                            </div>
                        </td>
                    </ng-container>
                </tr>
            </tbody>
        </table>
    </div>
</div>

{'fraction_non_alphanumeric': 0.1334356363129076, 'fraction_numerical': 0.002859833292644648, 'mean_word_length': 0.9764267990074442, 'pattern_counts': {'":': 0, '<': 425, '<?xml version=': 0, '>': 425, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 170, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5325725', 'n_tokens_mistral': 7051, 'n_tokens_neox': 6589, 'n_words': 1078}