<commit_before><?php

require_once (__DIR__ . '/Frame.php');
require_once (__DIR__ . '/EndFrame.php');

$frame = new EndFrame();

$frame->roll(3);
$frame->roll(7);
$frame->roll(10);

var_dump ($frame->isFinished());
echo PHP_EOL;


// $game = new Game();

// $game->run();<commit_msg>Adding tests in bowling script.<commit_after><?php

require_once (__DIR__ . '/Game.php');
require_once (__DIR__ . '/Frame.php');
require_once (__DIR__ . '/EndFrame.php');

// $frame = new EndFrame();
//
// $frame->roll(3);
// $frame->roll(7);
// $frame->roll(10);

$game = new Game();

$game->roll(1);
$game->roll(3);

$game->roll(10);

$game->roll(9);
$game->roll(0);

$game->roll(10);

$game->roll(10);

$game->roll(10);

$game->roll(10);

$game->roll(10);

$game->roll(10);

$game->roll(9);
$game->roll(1);
$game->roll(1);

var_dump ($game->isFinished());
echo PHP_EOL;
{'fraction_non_alphanumeric': 0.2675233644859813, 'fraction_numerical': 0.03387850467289719, 'mean_word_length': 4.675496688741722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '5340431', 'n_tokens_mistral': 362, 'n_tokens_neox': 351, 'n_words': 61}