<commit_before><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| File Category: Core Rewrite Modules
| Author: Hien (<NAME>)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$regex = array(
	"%article_id%" => "([0-9]+)", 
	"%comment_id%" => "([0-9]+)", 
	"%rowstart%" => "([0-9]+)", 
	"%article_title%" => "([0-9a-zA-Z._\W]+)",
);

$pattern = array(
	"articles" => "articles.php",
	"articles/%article_id%/article/%article_title%" => "infusions/articles/articles.php?article_id=%article_id%",
	"articles/%article_id%-%rowstart%/article/%article_title%" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%",
	"articles/%article_id%/article/%article_title%#comments" => "infusions/articles/articles.php?article_id=%article_id%#comments",
	"articles/%article_id%-%rowstart%/article/%article_title%#comments" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%#comments",
	"articles/%article_id%/article/%article_title%/edit-comments/%comment_id%#edit_comment" => "infusions/articles/articles.php?article_id=%article_id%&amp;c_action=edit&amp;comment_id=%comment_id%#edit_comment",
	"articles/%article_id%-%rowstart%/article/%article_title%/edit-comments/%comment_id%#edit_comment" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%&amp;c_action=edit&amp;comment_id=%comment_id%#edit_comment",
	"articles/%article_id%/article/%article_title%/delete-comments/%comment_id%" => "infusions/articles/articles.php?article_id=%article_id%&amp;c_action=delete&amp;comment_id=%comment_id%",
	"articles/%article_id%-%rowstart%/article/%article_title%/delete-comments/%comment_id%" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%&amp;c_action=delete&amp;comment_id=%comment_id%",
);

$dbname = DB_ARTICLES;
$dbid = array("%article_id%" => "article_id");
$dbinfo = array("%article_title%" => "article_subject");<commit_msg>rewrite fix<commit_after><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| File Category: Core Rewrite Modules
| Author: Hien (<NAME>)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$regex = array(
	"%article_id%" => "([0-9]+)", 
	"%comment_id%" => "([0-9]+)", 
	"%rowstart%" => "([0-9]+)", 
	"%article_title%" => "([0-9a-zA-Z._\W]+)",
);

$pattern = array(
	"articles" => "infusions/articles/articles.php",
	"articles/%article_id%/article/%article_title%" => "infusions/articles/articles.php?article_id=%article_id%",
	"articles/%article_id%-%rowstart%/article/%article_title%" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%",
	"articles/%article_id%/article/%article_title%#comments" => "infusions/articles/articles.php?article_id=%article_id%#comments",
	"articles/%article_id%-%rowstart%/article/%article_title%#comments" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%#comments",
	"articles/%article_id%/article/%article_title%/edit-comments/%comment_id%#edit_comment" => "infusions/articles/articles.php?article_id=%article_id%&amp;c_action=edit&amp;comment_id=%comment_id%#edit_comment",
	"articles/%article_id%-%rowstart%/article/%article_title%/edit-comments/%comment_id%#edit_comment" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%&amp;c_action=edit&amp;comment_id=%comment_id%#edit_comment",
	"articles/%article_id%/article/%article_title%/delete-comments/%comment_id%" => "infusions/articles/articles.php?article_id=%article_id%&amp;c_action=delete&amp;comment_id=%comment_id%",
	"articles/%article_id%-%rowstart%/article/%article_title%/delete-comments/%comment_id%" => "infusions/articles/articles.php?article_id=%article_id%&amp;rowstart=%rowstart%&amp;c_action=delete&amp;comment_id=%comment_id%",
);

$dbname = DB_ARTICLES;
$dbid = array("%article_id%" => "article_id");
$dbinfo = array("%article_title%" => "article_subject");
{'fraction_non_alphanumeric': 0.2544412607449857, 'fraction_numerical': 0.0030563514804202484, 'mean_word_length': 4.3428571428571425, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 35, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '4661048', 'n_tokens_mistral': 1711, 'n_tokens_neox': 1637, 'n_words': 226}