<commit_before><?php
/*
 * <NAME> 11/14/2014
 */

/* ******************************
 * Initialize Globals
 * **************************** */
$the_uri = filter_input(INPUT_SERVER, "REQUEST_URI", FILTER_SANITIZE_URL);
$matches = array();
preg_match("#(.*)web-raptor(/.*)#", $the_uri, $matches);

// important global variables
$MY_BASE = $matches[1] . "web-raptor";
$MY_URI = $matches[2];
$MY_METHOD = filter_input(INPUT_SERVER, "REQUEST_METHOD", FILTER_SANITIZE_STRING);
$URI_PARAMS = array(); // populated with URI parameters on URI match in routing
$VIEW_DATA = array(); // populated by controller, and used by view

// always start the session
session_start();

/* ****************************** 
 * Check Security based on URI
 * **************************** */
require 'security.php';

/* ****************************** 
 * Do Routing based on URI
 * **************************** */
require 'routing.php';<commit_msg>updated regex to use | delimiter<commit_after><?php
/*
 * <NAME> 11/14/2014
 */

/* ******************************
 * Initialize Globals
 * **************************** */
$the_uri = filter_input(INPUT_SERVER, "REQUEST_URI", FILTER_SANITIZE_URL);
$matches = array();
preg_match("|(.*)web-raptor(/.*)|", $the_uri, $matches);

// important global variables
$MY_BASE = $matches[1] . "web-raptor";
$MY_URI = $matches[2];
$MY_METHOD = filter_input(INPUT_SERVER, "REQUEST_METHOD", FILTER_SANITIZE_STRING);
$URI_PARAMS = array(); // populated with URI parameters on URI match in routing
$VIEW_DATA = array(); // populated by controller, and used by view

// always start the session
session_start();

/* ****************************** 
 * Check Security based on URI
 * **************************** */
require 'security.php';

/* ****************************** 
 * Do Routing based on URI
 * **************************** */
require 'routing.php';
{'fraction_non_alphanumeric': 0.3189887036040882, 'fraction_numerical': 0.010758472296933835, 'mean_word_length': 5.595744680851064, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5960954', 'n_tokens_mistral': 572, 'n_tokens_neox': 547, 'n_words': 133}