<commit_before><?php

/*
 * This file is part of the XhProf package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code
 */

namespace XhProf;

require_once __DIR__.'/../src/Profiler.php';
require_once __DIR__.'/../src/Trace.php';
require_once __DIR__.'/../src/Storage/FileStorage.php';
require_once __DIR__.'/../src/Storage/StorageInterface.php';
require_once __DIR__.'/../src/Storage/StorageException.php';

use XhProf\Storage\FileStorage;

$profiler = new Profiler();
$profiler->setShutdownFunction(function (Trace $trace) {
    $storage = new FileStorage();
    $storage->store($trace);
});
<commit_msg>Fixed prepend file<commit_after><?php

/*
 * This file is part of the XhProf package
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code
 */

namespace XhProf;

require_once __DIR__.'/../src/Profiler.php';
require_once __DIR__.'/../src/Trace.php';
require_once __DIR__.'/../src/Storage/FileStorage.php';
require_once __DIR__.'/../src/Storage/StorageInterface.php';
require_once __DIR__.'/../src/Storage/StorageException.php';

use XhProf\Storage\FileStorage;

$profiler = new Profiler();
$profiler->setShutdownFunction(function (Trace $trace) {
    $storage = new FileStorage();
    $storage->store($trace);
});
$profiler->start();
{'fraction_non_alphanumeric': 0.15491009681881052, 'fraction_numerical': 0.0, 'mean_word_length': 4.43984962406015, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '7342119', 'n_tokens_mistral': 464, 'n_tokens_neox': 468, 'n_words': 113}