<commit_before>
{{* important notes: The frio theme hides under certain conditions some parts of the templates through css.
Some parts of this template will be moved by js to other places (see theme.js) - E.g. the save-search button *}}

<div id="{{$id}}" {{* class="input-group" *}}>
	<div id="search-wrapper">
		<form action="{{$action_url}}" method="get" >
			<div class="row">
				<div class="col-md-2"></div>
				<div class="col-md-8 ">

					<div class="form-group form-group-search">
						<input type="text" name="search" id="search-text" class="search-input form-control form-search" data-toggle="tooltip" title="{{$search_hint}}" placeholder="{{$search_label}}" value="{{$s}}" />
						<button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit">{{$search_label}}</button>
					</div>

					<div class="col-md-4"></div>
					<div class="col-md-8">
						{{* The button to save searches *}}
						{{if $savedsearch}}
						<button class="btn btn-primary btn-small pull-right" type="submit" name="save" value="{{$save_label}}">{{$save_label}}</button>
						{{/if}}

						{{* The select popup menu to select what kind of results the user would like to search for *}}
						{{if $searchoption}}
						<div class="col-md-6 pull-right">
							<div class="form-group field select">
								<select name="search-option" id="search-options" class="form-control form-control-sm">
									<option value="fulltext">{{$searchoption.0}}</option>
									<option value="tags">{{$searchoption.1}}</option>
									<option value="contacts">{{$searchoption.2}}</option>
									{{if $searchoption.3}}<option value="forums">{{$searchoption.3}}</option>{{/if}}
								</select>

							</div>
						</div>
						{{/if}}
						
					</div>
				</div>
				<div class="col-md-2"></div>

				<div class="clearfix"></div>

			</div>
			
		</form>
	</div>
	{{* This form is inserted as experiment to move the search-save button to the second navbar with js *}}
	{{if $savedsearch}}
	<form id="search-save-form" action="{{$action_url}}" method="get" >
		<input type="hidden" name="search" value="{{$s}}" />
		{{* In dependence of the search content we show different buttons *}}
		{{if $mode == "tag"}}
		<button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" title="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip"><i class="fa fa-plus fa-2x" aria-hidden="true"></i></button>
		{{else}}
		<button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" title="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip"><i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i></button>
		{{/if}}
	</form>
	{{/if}}
</div><commit_msg>[frio] Remove .btn-primary from saved search button<commit_after>
{{* important notes: The frio theme hides under certain conditions some parts of the templates through css.
Some parts of this template will be moved by js to other places (see theme.js) - E.g. the save-search button *}}

<div id="{{$id}}" {{* class="input-group" *}}>
	<div id="search-wrapper">
		<form action="{{$action_url}}" method="get" >
			<div class="row">
				<div class="col-md-2"></div>
				<div class="col-md-8 ">

					<div class="form-group form-group-search">
						<input type="text" name="search" id="search-text" class="search-input form-control form-search" data-toggle="tooltip" title="{{$search_hint}}" placeholder="{{$search_label}}" value="{{$s}}" />
						<button id="search-submit" class="btn btn-default btn-sm form-button-search" type="submit">{{$search_label}}</button>
					</div>

					<div class="col-md-4"></div>
					<div class="col-md-8">
						{{* The button to save searches *}}
						{{if $savedsearch}}
						<button class="btn btn-primary btn-small pull-right" type="submit" name="save" value="{{$save_label}}">{{$save_label}}</button>
						{{/if}}

						{{* The select popup menu to select what kind of results the user would like to search for *}}
						{{if $searchoption}}
						<div class="col-md-6 pull-right">
							<div class="form-group field select">
								<select name="search-option" id="search-options" class="form-control form-control-sm">
									<option value="fulltext">{{$searchoption.0}}</option>
									<option value="tags">{{$searchoption.1}}</option>
									<option value="contacts">{{$searchoption.2}}</option>
									{{if $searchoption.3}}<option value="forums">{{$searchoption.3}}</option>{{/if}}
								</select>

							</div>
						</div>
						{{/if}}
						
					</div>
				</div>
				<div class="col-md-2"></div>

				<div class="clearfix"></div>

			</div>
			
		</form>
	</div>

{{if $savedsearch}}
	<form id="search-save-form" action="{{$action_url}}" method="get" >
		<input type="hidden" name="search" value="{{$s}}" />
		<button class="btn btn-sm btn-main pull-right" type="submit" name="save" id="search-save" title="{{$save_label}}" aria-label="{{$save_label}}" value="{{$save_label}}" data-toggle="tooltip">
	{{if $mode == "tag"}}
			<i class="fa fa-plus fa-2x" aria-hidden="true"></i>
	{{else}}
			<i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i>
	{{/if}}
			<span class="sr-only">{{$save_label}}</span>
		</button>
	</form>
{{/if}}
</div>
{'fraction_non_alphanumeric': 0.2126972058544003, 'fraction_numerical': 0.004942026230754609, 'mean_word_length': 3.770625566636446, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '659170', 'n_tokens_mistral': 2088, 'n_tokens_neox': 1711, 'n_words': 415}