<commit_before>{extends "designs/site.tpl"}

{block title}{if $.request.q}{$.request.q|escape} &mdash;{/if} Search &mdash; {$dwoo.parent}{/block}

{block "breadcrumbs"}
    <a href="/search">Search</a>
	{if $.request.q}
		<a href="/search?q={$.request.q|escape}">{$.request.q|escape}</a>
	{/if}
{/block}


{block content}
	
	{if !array_filter($data)}
		<p>Your search found no results.</p>
	{else}	
		<ul class="search-results">
    		{foreach key=className item=results from=array_filter($data)}
    			{$count = count($results)}
    			<section class="results-group">
    				<h1 id="results-{$className}">{$count|number_format} {Inflector::pluralizeRecord($className, $count)}</h1>
    				{foreach item=result from=$results}
    					<li class="search-result">{contextLink $result}</li>
    				{/foreach}
    			</section>
    		{/foreach}
		</ul>
	{/if}

{/block}<commit_msg>pulled improved search tpl from skeleton-v2<commit_after>{extends "designs/site.tpl"}

{block title}{if $.request.q}“{$.request.q|escape}” &mdash;{/if} {$dwoo.parent}{/block}

{block content}
    <header class="page-header">
        <h2 class="header-title">Search {if $.request.q}for “{$.request.q|escape}”{/if}</h2>
    </header>
    
	{if !array_filter($data)}
		<p class="empty-text">No results found.</p>
	{else}
	    <div class="full-search-results">
    		{foreach key=className item=results from=array_filter($data)}
    			{$count = count($results)}
    			<section class="page-section">
    			    <header class="section-header">
        				<h3 class="header-title" id="results-{$className}">{$count|number_format} {Inflector::pluralizeRecord($className, $count)}</h3>
    			    </header>
    				<ul>
    				{foreach item=result from=$results}
    					<li>{contextLink $result}</li>
    				{/foreach}
    				</ul>
    			</section>
    		{/foreach}
	    </div>
	{/if}

{/block}
{'fraction_non_alphanumeric': 0.20213333333333333, 'fraction_numerical': 0.0037333333333333333, 'mean_word_length': 3.3934426229508197, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4088643', 'n_tokens_mistral': 736, 'n_tokens_neox': 696, 'n_words': 114}