<commit_before><?php
/**
 * @author h.woltersdorf
 */

namespace Fortuneglobe\IceHawk;

require_once __DIR__ . '/../../vendor/autoload.php';

use Fortuneglobe\IceHawk\Responses\Page;

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

$icehawk = IceHawk::fromSky();
$icehawk->init();

$request_handler = $icehawk->getRequestHandler();
$request_handler->handle();

$page = new Page( 'Test.twig', [ 'world' => 'Welt' ] );
$page->respond();<commit_msg>Added example index.php<commit_after><?php
/**
 * @author h.woltersdorf
 */

namespace Fortuneglobe\IceHawk;

require_once __DIR__ . '/../../vendor/autoload.php';

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

$icehawk = IceHawk::fromSky( new IceHawkDelegate() );
$icehawk->init();

$request_handler = $icehawk->getRequestHandler();
$request_handler->handle();
{'fraction_non_alphanumeric': 0.19036144578313252, 'fraction_numerical': 0.0024096385542168677, 'mean_word_length': 5.4921875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5591578', 'n_tokens_mistral': 317, 'n_tokens_neox': 311, 'n_words': 50}