<commit_before><?php 

class Route
{
	/***********************************************
	| string : call the controller if this is hit
	| controller :- 
	| 	homepage@main_form where
	|	@main_form : is the method
	***********************************************/
static function set($string , $controller_method)
	{
		$broken_url = explode('/', io::get('url'));
		$broken_string = explode('/', $string);

		$data_to_pass = array();
		$error = 0;

if(count($broken_url) == count($broken_string))
	{
		for ($i=0; $i < count($broken_url); $i++) 
		{ 
			if(strpos($broken_string[$i], '$') !== false) 
			{  
					// array_push($data_to_pass, $broken_url[$i] );
					$broken_string[$i] = str_replace('$', '', $broken_string[$i]);
					$data_to_pass[ $broken_string[$i] ] = $broken_url[$i];  
			}
			else
			{
				if($broken_string[$i] != $broken_url[$i])
				{
					$error++;
				}<commit_msg>Prevented Route::set execution on post request<commit_after><?php 

class Route
{
	/***********************************************
	| string : call the controller if this is hit
	| controller :- 
	| 	homepage@main_form where
	|	@main_form : is the method
	***********************************************/
static function set($string , $controller_method)
	{
		$broken_url = explode('/', io::get('url'));
		$broken_string = explode('/', $string);

		$data_to_pass = array();
		$error = 0;

if(count($broken_url) == count($broken_string) && count($_POST) == 0 )
	{
		for ($i=0; $i < count($broken_url); $i++) 
		{ 
			if(strpos($broken_string[$i], '$') !== false) 
			{  
					// array_push($data_to_pass, $broken_url[$i] );
					$broken_string[$i] = str_replace('$', '', $broken_string[$i]);
					$data_to_pass[ $broken_string[$i] ] = $broken_url[$i];  
			}
			else
			{
				if($broken_string[$i] != $broken_url[$i])
				{
					$error++;
				}
{'fraction_non_alphanumeric': 0.2843886462882096, 'fraction_numerical': 0.0027292576419213972, 'mean_word_length': 4.1344537815126055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5427403', 'n_tokens_mistral': 753, 'n_tokens_neox': 632, 'n_words': 113}