<commit_before>{% extends "base.html" %}
{% load thumbnail compress %}
{% block breadcrumbs %}{{ block.super }}Search{% endblock %}
{% block pagetitle %}Search: {{ query }}{% endblock %}
{% block pageheading_override %}{% endblock %}
{% block content %}
<div class="focus" id="main_search_controls">
	<noscript>
		<form method="get" action="."><div>
			<input type="text" id="page_searchbox" name="q" value="{{ query }}"><input type="submit" class="btn" id="searchbutton" value="Search">
		</div></form>
	</noscript>
	<div id="visual_search"></div>
	<p class="search_options jsonly">Refine by <a data-add-facet="MP" href="#">MP</a>, <a data-add-facet="Party" href="#">party</a>, <a data-add-facet="Committee" href="#">committee</a>, <a data-add-facet="Province" href="#">province</a>, or <a data-add-facet="Type" href="#">result type</a>.</p>
</div><div class="clear"></div>
<div class="context" id="search_leftbar">
<div id="add_alert" style="display:none;padding-bottom: 20px;"><p><strong>Get email</strong> when new items match this search:</p> <div style="text-align: center"><button class="btn btn-success">Create an alert</button></div></div>
</div>
<div class="focus" id="search_content">
    {% if not page or not page.paginator.count %}
		<div id="paginated">
       {% if query %}<div class="focus"><h3>No results found.</h3></div>{% endif %}
		</div>
	{% else %}
        <div id="paginated">
{% include "search/search_results.inc" %}
        </div>
	{% endif %}
</div>
{% endblock %}
{% block headextra %}
	{% compress css %}
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/jquery-ui-aristo.css">
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/datefilter.css">
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/facets.css">
	{% endcompress %}

	{% include "search/visualsearch-jsdeps.html.inc" %}
	<script type="text/javascript">
	$(function() {
		OP.search.init("{{ query|escapejs }}");
	});
	</script>
{% endblock headextra %}
{% block bodyclass %}search{% endblock %}
{% block navbar_search %}{# Suppress top-of-the-page search box #}{% endblock %}
{% block notifications %}{% include "beggary.inc" %}{% endblock %}
{% block breadcrumbs_all %}{% endblock %}<commit_msg>some duplication in the search template<commit_after>{% extends "base.html" %}
{% load thumbnail compress %}
{% block breadcrumbs %}{{ block.super }}Search{% endblock %}
{% block pagetitle %}Search: {{ query }}{% endblock %}
{% block pageheading_override %}{% endblock %}
{% block content %}
<div class="focus" id="main_search_controls">
	<noscript>
		<form method="get" action="."><div>
			<input type="text" id="page_searchbox" name="q" value="{{ query }}"><input type="submit" class="btn" id="searchbutton" value="Search">
		</div></form>
	</noscript>
	<div id="visual_search"></div>
	<p class="search_options jsonly">Refine by <a data-add-facet="MP" href="#">MP</a>, <a data-add-facet="Party" href="#">party</a>, <a data-add-facet="Committee" href="#">committee</a>, <a data-add-facet="Province" href="#">province</a>, or <a data-add-facet="Type" href="#">result type</a>.</p>
</div><div class="clear"></div>
<div class="context" id="search_leftbar">
<div id="add_alert" style="display:none;padding-bottom: 20px;"><p><strong>Get email</strong> when new items match this search:</p> <div style="text-align: center"><button class="btn btn-success">Create an alert</button></div></div>
</div>
<div class="focus" id="search_content">
        <div id="paginated">
{% include "search/search_results.inc" %}
        </div>
</div>
{% endblock %}
{% block headextra %}
	{% compress css %}
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/jquery-ui-aristo.css">
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/datefilter.css">
	<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/facets.css">
	{% endcompress %}

	{% include "search/visualsearch-jsdeps.html.inc" %}
	<script type="text/javascript">
	$(function() {
		OP.search.init("{{ query|escapejs }}");
	});
	</script>
{% endblock headextra %}
{% block bodyclass %}search{% endblock %}
{% block navbar_search %}{# Suppress top-of-the-page search box #}{% endblock %}
{% block notifications %}{% include "beggary.inc" %}{% endblock %}
{% block breadcrumbs_all %}{% endblock %}
{'fraction_non_alphanumeric': 0.224286045971674, 'fraction_numerical': 0.0013930810308799629, 'mean_word_length': 5.658423493044822, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '5093964', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1433, 'n_words': 323}