<commit_before><form class="form-inline" id="search-bar">

    <input #searchInput
           [(ngModel)]="q"
           (keyup)="emitQueryStringWithTimeout()"
           name="searchInput"
           type="text"
           class="form-control"
           id="object-search"
           placeholder="Suchen...">

    <span class="input-group-btn" id="filter-button" *ngIf="showFiltersMenu">
        <button class="btn btn-primary"
                id="searchfilter"
                type="button"
                [ngbPopover]="filterMenu"
                #p="ngbPopover"
                placement="bottom">
            <span *ngIf="!types || types.length == 0" class="mdi mdi-filter"></span>
            <span *ngIf="types && types.length > 0">
                <type-icon [type]="types[0]" size="30"></type-icon>
            </span>
        </button>

        <ng-template #filterMenu>
            <div class="filtermenu">
                <div class="popover-custom-title">Nach Ressourcentyp filtern:</div>
                <ul class="list-group">
                    <li id="choose-type-filter-option-all"
                        class="list-group-item popover-item"
                        (click)="chooseTypeFilter(undefined); p.close();"
                        [ngClass]="{ 'selected-filter': !types || types.length == 0 }">
                        <i>Alle Typen</i>
                    </li>

                    <li *ngFor="let parentType of filterOptions; let index = index"
                        id="choose-type-filter-option-{{index}}"
                        class="list-group-item popover-item"
                        (click)="chooseTypeFilter(parentType); p.close();"
                        [ngClass]="{ 'selected-filter': types && types.indexOf(parentType.name) > -1 }">
                        <div>
                            <type-icon [type]="parentType.name" size="30"></type-icon>
                            <div class="type-label">{{parentType.label}}</div>
                        </div>
                        <ul *ngIf="parentType.children" style="padding: 0;">
                            <li *ngFor="let childType of parentType.children; let childIndex = index"
                                id="choose-type-filter-option-{{index}}-{{childIndex}}"
                                class="list-group-item popover-item"
                                (click)="chooseTypeFilter(childType); p.close();"
                                [ngClass]="{ 'selected-filter': types && types.indexOf(childType.name) > -1 }">
                                <div>
                                    <type-icon [type]="childType.name" size="30"></type-icon>
                                    <div class="type-label">{{childType.label}}</div>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </ng-template>
    </span>
</form><commit_msg>move type filter item ids to divs to make filter items selectable in e2e tests<commit_after><form class="form-inline" id="search-bar">

    <input #searchInput
           [(ngModel)]="q"
           (keyup)="emitQueryStringWithTimeout()"
           name="searchInput"
           type="text"
           class="form-control"
           id="object-search"
           placeholder="Suchen...">

    <span class="input-group-btn" id="filter-button" *ngIf="showFiltersMenu">
        <button class="btn btn-primary"
                id="searchfilter"
                type="button"
                [ngbPopover]="filterMenu"
                #p="ngbPopover"
                placement="bottom">
            <span *ngIf="!types || types.length == 0" class="mdi mdi-filter"></span>
            <span *ngIf="types && types.length > 0">
                <type-icon [type]="types[0]" size="30"></type-icon>
            </span>
        </button>

        <ng-template #filterMenu>
            <div class="filtermenu">
                <div class="popover-custom-title">Nach Ressourcentyp filtern:</div>
                <ul class="list-group">
                    <li id="choose-type-filter-option-all"
                        class="list-group-item popover-item"
                        (click)="chooseTypeFilter(undefined); p.close();"
                        [ngClass]="{ 'selected-filter': !types || types.length == 0 }">
                        <i>Alle Typen</i>
                    </li>

                    <li *ngFor="let parentType of filterOptions; let index = index"
                        class="list-group-item popover-item"
                        (click)="chooseTypeFilter(parentType); p.close();"
                        [ngClass]="{ 'selected-filter': types && types.indexOf(parentType.name) > -1 }">
                        <div id="choose-type-filter-option-{{index}}">
                            <type-icon [type]="parentType.name" size="30"></type-icon>
                            <div class="type-label">{{parentType.label}}</div>
                        </div>
                        <ul *ngIf="parentType.children" style="padding: 0;">
                            <li *ngFor="let childType of parentType.children; let childIndex = index"
                                class="list-group-item popover-item"
                                (click)="chooseTypeFilter(childType); p.close();"
                                [ngClass]="{ 'selected-filter': types && types.indexOf(childType.name) > -1 }">
                                <div id="choose-type-filter-option-{{index}}-{{childIndex}}">
                                    <type-icon [type]="childType.name" size="30"></type-icon>
                                    <div class="type-label">{{childType.label}}</div>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </ng-template>
    </span>
</form>
{'fraction_non_alphanumeric': 0.14856951647983938, 'fraction_numerical': 0.004517316379454576, 'mean_word_length': 1.3342444357672785, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '340413', 'n_tokens_mistral': 1639, 'n_tokens_neox': 1522, 'n_words': 263}