<commit_before><?php 
# $Id: search.php,v 1.17 2004/01/20 23:37:41 frabcus Exp $

# The Public Whip, Copyright (C) 2003 <NAME> and <NAME>
# This is free software, and you are welcome to redistribute it under
# certain conditions.  However, it comes with ABSOLUTELY NO WARRANTY.
# For details see the file LICENSE.html in the top level of the source.

    include "db.inc";
    $prettyquery = html_scrub(trim($_GET["query"]));
    $query = strtoupper(db_scrub(trim($_GET["query"])));
    $title = "Search for '$prettyquery'"; 
    if ($prettyquery == "")
    {
        $onload = "givefocus()";
        $title = "Search";
    }
    include "header.inc";
    include "render.inc";
    include "parliaments.inc";
    include "postcode.inc";

;    $db = new DB(); 

    $postcode = is_postcode($query);

    if ($query <> "")
    {
        $found = false;

        if (!$postcode)
        {<commit_msg>Postcode disabled for now<commit_after><?php 
# $Id: search.php,v 1.18 2004/01/20 23:38:35 frabcus Exp $

# The Public Whip, Copyright (C) 2003 <NAME> and <NAME>
# This is free software, and you are welcome to redistribute it under
# certain conditions.  However, it comes with ABSOLUTELY NO WARRANTY.
# For details see the file LICENSE.html in the top level of the source.

    include "db.inc";
    $prettyquery = html_scrub(trim($_GET["query"]));
    $query = strtoupper(db_scrub(trim($_GET["query"])));
    $title = "Search for '$prettyquery'"; 
    if ($prettyquery == "")
    {
        $onload = "givefocus()";
        $title = "Search";
    }
    include "header.inc";
    include "render.inc";
    include "parliaments.inc";
    include "postcode.inc";

;    $db = new DB(); 

    $postcode = is_postcode($query);
    $postcode = null; # disabled for now

    if ($query <> "")
    {
        $found = false;

        if (!$postcode)
        {
{'fraction_non_alphanumeric': 0.14943151055766107, 'fraction_numerical': 0.02273957769355712, 'mean_word_length': 2.8905263157894736, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '1831340', 'n_tokens_mistral': 651, 'n_tokens_neox': 596, 'n_words': 180}