<commit_before><?php

/**
 * @package gypcms
 */

error_reporting(E_ALL);
ini_set("display_errors", 1);

require_once dirname(__FILE__).'/../src/Autoloader.php';

$l = new gypcms\Autoloader();
$l->load();

$site = new gypcms\Site();

$settingsArr = sfYaml::load(dirname(__FILE__).'/../config/settings.yml');

$first = sfYaml::load(dirname(__FILE__).'/../data/'.str_replace('.html', '.yml', $_REQUEST['url']).'');

$loader = new Twig_Loader_Filesystem(dirname(__FILE__).'/../templates/'.$settingsArr['settings']['theme']);

$twig = new Twig_Environment($loader, array(
//  'cache' => dirname(__FILE__).'/../cache/twigCache/',
));

$template = $twig->loadTemplate('article.html');
$template->display(array_merge(array_pop($settingsArr), array_pop($first)));<commit_msg>Using the site class to administer the dispatching<commit_after><?php

/**
 * @package gypcms
 */

error_reporting(E_ALL);
ini_set("display_errors", 1);

require_once dirname(__FILE__).'/../src/Autoloader.php';

$l = new gypcms\Autoloader();
$l->load();

$site = new gypcms\Site();

$site->dispatch();

exit;

//$settingsArr = sfYaml::load(dirname(__FILE__).'/../config/settings.yml');
//
//$first = sfYaml::load(dirname(__FILE__).'/../data/'.str_replace('.html', '.yml', $_REQUEST['url']).'');
//
//$loader = new Twig_Loader_Filesystem(dirname(__FILE__).'/../templates/'.$settingsArr['settings']['theme']);
//
//$twig = new Twig_Environment($loader, array(
////  'cache' => dirname(__FILE__).'/../cache/twigCache/',
//));
//
//$template = $twig->loadTemplate('article.html');
//$template->display(array_merge(array_pop($settingsArr), array_pop($first)));
{'fraction_non_alphanumeric': 0.24475955610357583, 'fraction_numerical': 0.0012330456226880395, 'mean_word_length': 5.46613545816733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '6385404', 'n_tokens_mistral': 595, 'n_tokens_neox': 574, 'n_words': 76}