<commit_before><?php
require_once( __DIR__ . '/../src/AmidaMVC/bootstrap.php');

/**
 * TODO: demo as test site.
 *  before eating dog food, make test/demo site.
 */
//class Debug extends AmidaMVC\Component\Debug {}
$data = array();
$ctrl = new AmidaMVC\Framework\Controller();
$ctrl
    ->loadDebug()
    ->addModel( 'Loader', 'load' )
    ->addModel( 'Viewer', 'view' )
;

$ctrl->start( $data );


<commit_msg>added a routes info for Router.<commit_after><?php
require_once( __DIR__ . '/../src/AmidaMVC/bootstrap.php');

/**
 * TODO: demo as test site.
 *  before eating dog food, make test/demo site.
 */

$routes = array(
    '/route/:action' => array( 'file' => 'route/_App.php', 'action' => 'index' ),
);
AmidaMVC\Component\Router::set( $routes );

$data = array();
$ctrl = new AmidaMVC\Framework\Controller();
$ctrl
    ->loadDebug()
    ->addModel( 'Router', 'route' )
    ->addModel( 'Loader', 'load' )
    ->addModel( 'Viewer', 'view' )
;

$ctrl->start( $data );



{'fraction_non_alphanumeric': 0.20512820512820512, 'fraction_numerical': 0.0, 'mean_word_length': 3.5185185185185186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1148944', 'n_tokens_mistral': 348, 'n_tokens_neox': 349, 'n_words': 84}