<commit_before>{{--
    Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@php
// input field name mappings for view recycling.
// pass in $fields to set; set a field to null to remove it.
// TODO: hopefully this can be temporary ಠ_ಠ.
$fieldDefaults = [
    'forumId' => 'forum_id',
    'topicId' => 'topic_id',
    'user' => 'username',
    'includeSubforums' => 'forum_children',
];

if (isset($fields)) {
    $fields = array_merge($fieldDefaults, $fields);
} else {
    $fields = $fieldDefaults;
}
@endphp

<div id="search-forum-options" data-turbolinks-permanent class="search-forum-options">
    @if ($fields['user'] !== null)
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.username') }}
            </div>

            <input
                name="{{ $fields['user'] }}"
                value="{{ request($fields['user']) }}"
                class="form-text"
            >
        </label>
    @endif

    {{-- FIXME: remove querystring check? --}}
    @if ($fields['topicId'] !== null && present(request($fields['topicId'])))
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.topic_id') }}
            </div>

            <input
                name="{{ $fields['topicId'] }}"
                value="{{ request($fields['topicId']) }}"
                class="search-forum-options__input search-forum-options__input--text"
            >
        </label>
    @elseif ($fields['forumId'] !== null)
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.forum') }}
            </div>

            <div class="form-select">
                <select
                    name="{{ $fields['forumId'] }}"<commit_msg>fix css class<commit_after>{{--
    Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
    See the LICENCE file in the repository root for full licence text.
--}}
@php
// input field name mappings for view recycling.
// pass in $fields to set; set a field to null to remove it.
// TODO: hopefully this can be temporary ಠ_ಠ.
$fieldDefaults = [
    'forumId' => 'forum_id',
    'topicId' => 'topic_id',
    'user' => 'username',
    'includeSubforums' => 'forum_children',
];

if (isset($fields)) {
    $fields = array_merge($fieldDefaults, $fields);
} else {
    $fields = $fieldDefaults;
}
@endphp

<div id="search-forum-options" data-turbolinks-permanent class="search-forum-options">
    @if ($fields['user'] !== null)
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.username') }}
            </div>

            <input
                name="{{ $fields['user'] }}"
                value="{{ request($fields['user']) }}"
                class="form-text"
            >
        </label>
    @endif

    {{-- FIXME: remove querystring check? --}}
    @if ($fields['topicId'] !== null && present(request($fields['topicId'])))
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.topic_id') }}
            </div>

            <input
                name="{{ $fields['topicId'] }}"
                value="{{ request($fields['topicId']) }}"
                class="form-text"
            >
        </label>
    @elseif ($fields['forumId'] !== null)
        <label class="search-forum-options__input-group">
            <div class="search-forum-options__label">
                {{ trans('home.search.forum_post.label.forum') }}
            </div>

            <div class="form-select">
                <select
                    name="{{ $fields['forumId'] }}"
{'fraction_non_alphanumeric': 0.1649659863945578, 'fraction_numerical': 0.0009718172983479105, 'mean_word_length': 2.2088854247856586, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 45, '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': '2492225', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1165, 'n_words': 263}