<commit_before>#include "test_stage.h"
#include "registry.h"

using namespace Halley;

void TestStage::init()
{
	world = createWorld("sample_test_world", createSystem);
	statsView = std::make_unique<WorldStatsView>(*getAPI().core);
	auto stolen = world.release();
	world.reset(stolen);
	statsView->setWorld(stolen);<commit_msg>Entity test: use unique_ptr::get instead of stealing the underlying.<commit_after>#include "test_stage.h"
#include "registry.h"

using namespace Halley;

void TestStage::init()
{
	world = createWorld("sample_test_world", createSystem);
	statsView = std::make_unique<WorldStatsView>(*getAPI().core);
	statsView->setWorld(world.get());
{'fraction_non_alphanumeric': 0.1484848484848485, 'fraction_numerical': 0.0, 'mean_word_length': 8.180555555555555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5882437', 'n_tokens_mistral': 214, 'n_tokens_neox': 212, 'n_words': 41}