<commit_before><?
/**
 * Belgian Police Web Platform - Districts Component
 *
 * @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.police.be
 */
?>

<div class="page-header">
    <h1><?= @text('Find your districts officer') ?></h1>
</div>

<?= @template('default_search.html'); ?>

<? if ($state->street && $state->number) : ?>

    <? foreach ($districts as $district) : ?>
        <?= @template('com:districts.view.district.default.html', array('district' => $district)); ?>
    <? endforeach; ?>
    <? if(!count($districts)) : ?>
        <h2><?= @text('No neighbourhood officer found') ?></h2>
        <h3><?= @text('Try again or get in touch with one of our locations') ?></h3>
        <?= @template('com:districts.view.locations.default.html', array('locations' => @object('com:zone.model.locations')->getRowset())); ?>
    <? endif ?>
<? endif ?><commit_msg>Using proper page header re #1<commit_after><?
/**
 * Belgian Police Web Platform - Districts Component
 *
 * @copyright	Copyright (C) 2012 - 2013 Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://www.police.be
 */
?>

<div class="page-header">
    <h1><?= @escape($params->get('page_title')); ?></h1>
</div>

<?= @template('default_search.html'); ?>

<? if ($state->street && $state->number) : ?>

    <? foreach ($districts as $district) : ?>
        <?= @template('com:districts.view.district.default.html', array('district' => $district)); ?>
    <? endforeach; ?>
    <? if(!count($districts)) : ?>
        <h2><?= @text('No neighbourhood officer found') ?></h2>
        <h3><?= @text('Try again or get in touch with one of our locations') ?></h3>
        <?= @template('com:districts.view.locations.default.html', array('locations' => @object('com:zone.model.locations')->getRowset())); ?>
    <? endif ?>
<? endif ?>
{'fraction_non_alphanumeric': 0.2279449260581336, 'fraction_numerical': 0.01580826109127996, 'mean_word_length': 3.7853658536585364, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 58, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '1222208', 'n_tokens_mistral': 688, 'n_tokens_neox': 645, 'n_words': 136}