<commit_before><?
	# $Id: search.php,v 1.1.2.20 2002-05-18 18:22:36 dan Exp $
	#
	# Copyright (c) 1998-2001 DVL Software Limited

	require("./include/common.php");
	require("./include/freshports.php");
	require("./include/databaselogin.php");
	require("./include/getvalues.php");

	require("../classes/ports.php");

	// avoid nasty problems by adding slashes
	$query		= AddSlashes($_POST["query"]);
	$stype		= AddSlashes($_POST["stype"]);
	$num		= AddSlashes($_POST["num"]);
	$category	= AddSlashes($_POST["category"]);
	$port		= AddSlashes($_POST["port"]);
	$method		= AddSlashes($_POST["method"]);

	if ($stype == 'messageid') {
		header("Location: http://$HTTP_HOST/commit.php?message_id=$query");
		exit;
	}

	freshports_Start("Search",
					"freshports - new ports, applications",
					"FreeBSD, index, applications, ports");

	$Debug = 0;
?>
<TABLE WIDTH="<? echo $TableWidth; ?>" BORDER="0" ALIGN="center">
<tr><td valign="top" width="100%">                    
<table width="100%" border="0">                       
  <tr>
	<? freshports_PageBannerText("Search"); ?>
  </tr>
<tr><td valign="top">
<tr><td>
<?

if ($Debug) {
	echo "$query && $stype && $num && $method\n<BR>";

	if ($query && $stype && $num) {
		echo "yes, we have parameters\n<BR>";
	}
}

#<commit_msg>use $_SERVER["HTTP_HOST"]<commit_after><?
	# $Id: search.php,v 1.1.2.21 2002-05-18 18:27:13 dan Exp $
	#
	# Copyright (c) 1998-2001 DVL Software Limited

	require("./include/common.php");
	require("./include/freshports.php");
	require("./include/databaselogin.php");
	require("./include/getvalues.php");

	require("../classes/ports.php");

	// avoid nasty problems by adding slashes
	$query		= AddSlashes($_POST["query"]);
	$stype		= AddSlashes($_POST["stype"]);
	$num		= AddSlashes($_POST["num"]);
	$category	= AddSlashes($_POST["category"]);
	$port		= AddSlashes($_POST["port"]);
	$method		= AddSlashes($_POST["method"]);

	if ($stype == 'messageid') {
		header("Location: http://" . $_SERVER["HTTP_HOST"] . "/commit.php?message_id=$query");
		exit;
	}

	freshports_Start("Search",
					"freshports - new ports, applications",
					"FreeBSD, index, applications, ports");

	$Debug = 0;
?>
<TABLE WIDTH="<? echo $TableWidth; ?>" BORDER="0" ALIGN="center">
<tr><td valign="top" width="100%">                    
<table width="100%" border="0">                       
  <tr>
	<? freshports_PageBannerText("Search"); ?>
  </tr>
<tr><td valign="top">
<tr><td>
<?

if ($Debug) {
	echo "$query && $stype && $num && $method\n<BR>";

	if ($query && $stype && $num) {
		echo "yes, we have parameters\n<BR>";
	}
}

#
{'fraction_non_alphanumeric': 0.22260936895083236, 'fraction_numerical': 0.027874564459930314, 'mean_word_length': 3.9692307692307693, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7469173', 'n_tokens_mistral': 1042, 'n_tokens_neox': 951, 'n_words': 179}