<commit_before>{% extends "base.html" %}
{% block title %}Search | Results{% endblock %}
{% block head %}
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Who's On First Spelunker (a Mapzen gig)" />
<meta property="og:title" content="{% if query_string==None %}Search results for a thing someone asked Who's On First about{% else %}Search results for &#8220;{{ query_string.decode('utf-8') |e }}&#8221;{% endif %}" />
<meta property="og:description" content="{% if pagination.count == 0 %}Nothing matches this query. Sad trombone...{% elif pagination.total == 1 %}There is one match for this query{% else %}There are {{ pagination.total |number_format|e }} places that match this query{% endif %}" />
<meta property="og:image" content="https://whosonfirst.mapzen.com/images/wof-sq-pink.jpg" />

<meta property="twitter:card" value="summary" />
<meta property="twitter:site" content="@alloftheplaces" />
<meta property="twitter:creator" content="@alloftheplaces" />
<meta property="twitter:url" content="{{ pagination_url |e }}" />
<meta property="twitter:title" content="{% if query_string==None %}Search results for a thing someone asked Who's On First about{% else %}Search results for &#8220;{{ query_string.decode('utf-8') |e }}&#8221;{% endif %}" />
<meta property="twitter:description" content="{% if pagination.count == 0 %}Nothing matches this query. Sad trombone...{% elif pagination.total == 1 %}There is one match for this query{% else %}There are {{ pagination.total |number_format|e }} places that match this query{% endif %}" />
<meta property="twitter:image" content="https://whosonfirst.mapzen.com/images/wof-sq-pink.jpg" />
{% endblock %}
{% block content %}
{% if pagination.count == 0 %}

<div class="row">
<h2>😿  <small>can not find anything matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q></small></h2>
</div>

{% include "inc_query.html" %}

{% else %}

<div class="row"><h3>
{% if query_string %}

{% if pagination.total == 1 %}
There is <span class="hey-look">one place</span> matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q>
{% else %}
There are <span class="hey-look">{{ pagination.total |number_format|e }} places</span> matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q>
{% endif %}

{% else %}

{% if pagination.total == 1 %}
There are <span class="hey-look">one place</span> matching your query
{% else %}
There are <span class="hey-look">{{ pagination.total |number_format|e }} places</span> matching your query
{% endif %}

{% endif %}

{% if pagination.pages > 1 %}
and this is <span class="hey-look">page {{ pagination.page |number_format|e }}</span> of {{ pagination.pages |number_format|e }}

{% endif %}
</h3></div>

{% include "inc_docs.html" %}

{% endif %}

{% endblock %}
<commit_msg>ensure there is something to decode in search results header<commit_after>{% extends "base.html" %}
{% block title %}Search | Results{% endblock %}
{% block head %}
<meta property="og:type" content="article" />
<meta property="og:site_name" content="Who's On First Spelunker (a Mapzen gig)" />
<meta property="og:title" content="{% if query_string==None %}Search results for a thing someone asked Who's On First about{% else %}Search results for &#8220;{{ query_string.decode('utf-8') |e }}&#8221;{% endif %}" />
<meta property="og:description" content="{% if pagination.count == 0 %}Nothing matches this query. Sad trombone...{% elif pagination.total == 1 %}There is one match for this query{% else %}There are {{ pagination.total |number_format|e }} places that match this query{% endif %}" />
<meta property="og:image" content="https://whosonfirst.mapzen.com/images/wof-sq-pink.jpg" />

<meta property="twitter:card" value="summary" />
<meta property="twitter:site" content="@alloftheplaces" />
<meta property="twitter:creator" content="@alloftheplaces" />
<meta property="twitter:url" content="{{ pagination_url |e }}" />
<meta property="twitter:title" content="{% if query_string==None %}Search results for a thing someone asked Who's On First about{% else %}Search results for &#8220;{{ query_string.decode('utf-8') |e }}&#8221;{% endif %}" />
<meta property="twitter:description" content="{% if pagination.count == 0 %}Nothing matches this query. Sad trombone...{% elif pagination.total == 1 %}There is one match for this query{% else %}There are {{ pagination.total |number_format|e }} places that match this query{% endif %}" />
<meta property="twitter:image" content="https://whosonfirst.mapzen.com/images/wof-sq-pink.jpg" />
{% endblock %}
{% block content %}
{% if pagination.count == 0 %}

<div class="row">
{% if query_string %}
<h2>😿  <small>can not find anything matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q></small></h2>
{% else %}
<h2>😿  <small>can not find anything matching <span class="hey-look">your query</span></small></h2>
{% endif %}
</div>

{% include "inc_query.html" %}

{% else %}

<div class="row"><h3>
{% if query_string %}

{% if pagination.total == 1 %}
There is <span class="hey-look">one place</span> matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q>
{% else %}
There are <span class="hey-look">{{ pagination.total |number_format|e }} places</span> matching <q class="hey-look">{{ query_string.decode('utf-8') |e }}</q>
{% endif %}

{% else %}

{% if pagination.total == 1 %}
There are <span class="hey-look">one place</span> matching your query
{% else %}
There are <span class="hey-look">{{ pagination.total |number_format|e }} places</span> matching your query
{% endif %}

{% endif %}

{% if pagination.pages > 1 %}
and this is <span class="hey-look">page {{ pagination.page |number_format|e }}</span> of {{ pagination.pages |number_format|e }}

{% endif %}
</h3></div>

{% include "inc_docs.html" %}

{% endif %}

{% endblock %}

{'fraction_non_alphanumeric': 0.1975689094333162, 'fraction_numerical': 0.011641842150316727, 'mean_word_length': 5.41978021978022, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, 'https://': 4, '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': '5088549', 'n_tokens_mistral': 2059, 'n_tokens_neox': 1825, 'n_words': 540}