<commit_before><?php
    /**
    *-------------------------- [ CONTROLLERS ROUTING ] ------------------------------------------\
    * The default controller is the default controller for your project.
    * By another words, it's the main home page for your MVC project.
    * @param DEFAULT_CONTROLLER : is the main controller name in (Controllers) folder.
    * @param DEFAULT_METHOD : is the default function in your home controller that will
    * @param DEFAULT_ROUTE_PARAM : This is your default MVC route Callback.
    * be automatically Initialized by default when the controller being called.
    *--------------------------------------------------------------------------------------------*/
    $Routes["CONFIG"]["DEFAULT_ROUTE_PARAM"] = "SYSCALLBACK"; // DO NOT CHANGE THIS.
    $Routes["CONFIG"]["DEFAULT_CONTROLLER"] = "Home"; // -> The main controller.
    $Routes["CONFIG"]["DEFAULT_METHOD"] = "index"; // -> the main method.

    /**
     * @param INIT_DEFALUT_METHOD_AUTOMATICALLY
     * If TRUE, The Framework will automatically Initialize the default method which defined in
     * the DEFAULT_METHOD option for each controller if the request goes to the controller it self.
     * eg. : localhost/YOURCONTROLLER will react like localhost/YOURCONTROLLER/index (DEFAULT_METHOD)
     * @see : BY TURNING THIS METHOD TO (TRUE) YOUR FUNCTION SHOULD'NT CONTAINS AN ARGUMENTS,
     * OR YOU HAVE TO SET THE DEFAULT VALUES FOR YOUR DEFAULT METHOD'S ARGUMENTS.
     */
    $Routes["CONFIG"]["INIT_DEFALUT_METHOD_AUTOMATICALLY"] = TRUE;


    /**
     * @param AUTO_RESOLVE_HCM
     * If TRUE, The Framework will automatically search for a methods inside the default
     * controller in case of the Url doesn't contains the controller name.
     * eg. : localhost/method - the internal call will be associated for the home Controller
     * so it will be : localhost/home/method.
     * @warning : THIS ROUTE IS ONLY APPLIED WHEN THE FINAL URL BEING ROUTED WITH 404 RESULTS.
     * WHICH MEANS, IF THE SYSTEM DOESN'T FOUND ANY RESULTS, THE SF WILL USE THIS FUNCTION.
     * AND START TO SEARCH FOR THE METHOD INSIDE THE DEFAULT CONTROLLER WHICH DEFINED
     * IN THE (DEFAULT_CONTROLLER) OPTION.
     */
    $Routes["CONFIG"]["AUTO_RESOLVE_HCM"] = FALSE;





    /**
     * ---------------------------- [ Static Routing ] ---------------------------------------------
     * Map a route to a target
     *
     * @param string $method One of 5 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PATCH|PUT|DELETE)
     * @param string $route The route regex, custom regex must start with an @. You can use multiple pre-set regex filters, like [i:id]
     * @param mixed $target The target where this route should point to. Can be anything.
     * @param string $name Optional name of this route. Supply if you want to reverse route this url in your application.
     */
     /**  (*)             // Match all request URIs
     * [i]                  // Match an integer
     * [i:id]               // Match an integer as 'id'
     * [a:action]           // Match alphanumeric characters as 'action'
     * [h:key]              // Match hexadecimal characters as 'key'
     * [:action]            // Match anything up to the next / or end of the URI as 'action'
     * [create|edit:action] // Match either 'create' or 'edit' as 'action'
     * [*]                  // Catch all (lazy, stops at the next trailing slash)
     * [*:trailing]         // Catch all as 'trailing' (lazy)
     * [**:trailing]        // Catch all (possessive - will match the rest of the URI)
     * .[:format]?          // Match an optional parameter 'format' - a / or . before the block is also optional
     * --------------------------------------------------------------------------------------*/

     #  Router::map('GET|POST', "/new_route", function($args) { Boot::Controller('Home', 'index', $args); });
     #  Router::assign('/testAssignment', 'Home@index', ['arg1', 'arg2']);<commit_msg>Update Routes.php<commit_after><?php
    /**
    *-------------------------- [ CONTROLLERS ROUTING ] ------------------------------------------\
    * The default controller is the default controller for your project.
    * By another words, it's the main home page for your MVC project.
    * @param DEFAULT_CONTROLLER : is the main controller name in (Controllers) folder.
    * @param DEFAULT_METHOD : is the default function in your home controller that will
    * @param DEFAULT_ROUTE_PARAM : This is your default MVC route Callback.
    * be automatically Initialized by default when the controller being called.
    *--------------------------------------------------------------------------------------------*/
    $Routes["CONFIG"]["DEFAULT_ROUTE_PARAM"] = "SYSCALLBACK"; // DO NOT CHANGE THIS.
    $Routes["CONFIG"]["DEFAULT_CONTROLLER"] = "Home"; // -> The main controller.
    $Routes["CONFIG"]["DEFAULT_METHOD"] = "index"; // -> the main method.

    /**
     * @param INIT_DEFALUT_METHOD_AUTOMATICALLY
     * If TRUE, The Framework will automatically Initialize the default method which defined in
     * the DEFAULT_METHOD option for each controller if the request goes to the controller it self.
     * eg. : localhost/YOURCONTROLLER will react like localhost/YOURCONTROLLER/index (DEFAULT_METHOD)
     * @see : BY TURNING THIS METHOD TO (TRUE) YOUR FUNCTION SHOULD'NT CONTAINS AN ARGUMENTS,
     * OR YOU HAVE TO SET THE DEFAULT VALUES FOR YOUR DEFAULT METHOD'S ARGUMENTS.
     */
    $Routes["CONFIG"]["INIT_DEFALUT_METHOD_AUTOMATICALLY"] = TRUE;


    /**
     * @param AUTO_RESOLVE_HCM
     * If TRUE, The Framework will automatically search for a methods inside the default
     * controller in case of the Url doesn't contains the controller name.
     * eg. : localhost/method - the internal call will be associated for the home Controller
     * so it will be : localhost/home/method.
     * @warning : THIS ROUTE IS ONLY APPLIED WHEN THE FINAL URL BEING ROUTED WITH 404 RESULTS.
     * WHICH MEANS, IF THE SYSTEM DOESN'T FOUND ANY RESULTS, THE SF WILL USE THIS FUNCTION.
     * AND START TO SEARCH FOR THE METHOD INSIDE THE DEFAULT CONTROLLER WHICH DEFINED
     * IN THE (DEFAULT_CONTROLLER) OPTION.
     */
    $Routes["CONFIG"]["AUTO_RESOLVE_HCM"] = FALSE;





    /**
     * ---------------------------- [ Static Routing ] ---------------------------------------------
     * Map a route to a target
     *
     * @param string $method One of 5 HTTP Methods, or a pipe-separated list of multiple HTTP Methods (GET|POST|PATCH|PUT|DELETE)
     * @param string $route The route regex, custom regex must start with an @. You can use multiple pre-set regex filters, like [i:id]
     * @param mixed $target The target where this route should point to. Can be anything.
     * @param string $name Optional name of this route. Supply if you want to reverse route this url in your application.
     */
     /**  (*)             // Match all request URIs
     * [i]                  // Match an integer
     * [i:id]               // Match an integer as 'id'
     * [a:action]           // Match alphanumeric characters as 'action'
     * [h:key]              // Match hexadecimal characters as 'key'
     * [:action]            // Match anything up to the next / or end of the URI as 'action'
     * [create|edit:action] // Match either 'create' or 'edit' as 'action'
     * [*]                  // Catch all (lazy, stops at the next trailing slash)
     * [*:trailing]         // Catch all as 'trailing' (lazy)
     * [**:trailing]        // Catch all (possessive - will match the rest of the URI)
     * .[:format]?          // Match an optional parameter 'format' - a / or . before the block is also optional
     * --------------------------------------------------------------------------------------*/

     #  Router::map('GET|POST', "/new_route", function($args) { Boot::Controller('Home', 'index', $args); });
     #  Router::assign('/testAssignment', 'Home@index', ['arg1', 'arg2']);
     #  Router::assign(['/route1', '/route2'], 'Home@index', ['arg1', 'arg2']);
{'fraction_non_alphanumeric': 0.17477166131819305, 'fraction_numerical': 0.001974821031843989, 'mean_word_length': 2.07981755986317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2471294', 'n_tokens_mistral': 2237, 'n_tokens_neox': 2139, 'n_words': 839}