<commit_before>/**
 * Copyright (C) 2015 <NAME>.
 *
 * This license must be preserved.
 * Any applications, libraries, or code which make any use of any
 * component of this program must not be commercial, unless explicit
 * permission is granted from the original author. The use of this
 * program for non-profit purposes is permitted.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * In the event that this license restricts you from making desired use of this program, contact the original author.
 * Written by <NAME> <<EMAIL>>
 */

#include "Jupiter/String.h"
#include "RenX_Core.h"
#include "RenX_Server.h"
#include "RenX_PlayerInfo.h"
#include "RenX_Functions.h"
#include "RenX_HybridUUID.h"

Jupiter::StringS calc_uuid(RenX::PlayerInfo *player)
{
	if (player->steamid != 0U)
		return Jupiter::StringS::Format("S%.16llX", player->steamid);
	return Jupiter::StringS::Format("N%.*s", player->name.size(), player->name.ptr());;
}

RenX_HybridUUIDPlugin::RenX_HybridUUIDPlugin()
{
	RenX::Core &core = *RenX::getCore();
	size_t index = core.getServerCount();
	while (index != 0)
		core.getServer(--index)->setUUIDFunction(calc_uuid);
}

RenX_HybridUUIDPlugin::~RenX_HybridUUIDPlugin()
{
	RenX::Core &core = *RenX::getCore();
	size_t index = core.getServerCount();
	while (index != 0)
		core.getServer(--index)->setUUIDFunction(RenX::default_uuid_func);
}
<commit_msg>Removed redundant semicolon.<commit_after>/**
 * Copyright (C) 2015 <NAME>.
 *
 * This license must be preserved.
 * Any applications, libraries, or code which make any use of any
 * component of this program must not be commercial, unless explicit
 * permission is granted from the original author. The use of this
 * program for non-profit purposes is permitted.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * In the event that this license restricts you from making desired use of this program, contact the original author.
 * Written by <NAME> <<EMAIL>>
 */

#include "Jupiter/String.h"
#include "RenX_Core.h"
#include "RenX_Server.h"
#include "RenX_PlayerInfo.h"
#include "RenX_Functions.h"
#include "RenX_HybridUUID.h"

Jupiter::StringS calc_uuid(RenX::PlayerInfo *player)
{
	if (player->steamid != 0U)
		return Jupiter::StringS::Format("S%.16llX", player->steamid);
	return Jupiter::StringS::Format("N%.*s", player->name.size(), player->name.ptr());
}

RenX_HybridUUIDPlugin::RenX_HybridUUIDPlugin()
{
	RenX::Core &core = *RenX::getCore();
	size_t index = core.getServerCount();
	while (index != 0)
		core.getServer(--index)->setUUIDFunction(calc_uuid);
}

RenX_HybridUUIDPlugin::~RenX_HybridUUIDPlugin()
{
	RenX::Core &core = *RenX::getCore();
	size_t index = core.getServerCount();
	while (index != 0)
		core.getServer(--index)->setUUIDFunction(RenX::default_uuid_func);
}

{'fraction_non_alphanumeric': 0.1290956749672346, 'fraction_numerical': 0.005897771952817824, 'mean_word_length': 5.256147540983607, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '1767249', 'n_tokens_mistral': 1019, 'n_tokens_neox': 968, 'n_words': 296}