<commit_before>#pragma once

//#include "UT4WebAdmin.h"
#include "Core.h"
#include "UnrealTournament.h"
#include "UTBaseGameMode.h"
#include "UTLobbyGameMode.h"
#include "UT4WebAdminUtils.h"
#include "UT4WebAdminSQLite.h"
#include "ThirdParty/Libmicrohttpd/include/microhttpd.h"
#include <io.h> // only work on windows FIX ME Linux
#include <fcntl.h>

#include "UT4WebAdminHttpServer.generated.h"

UCLASS(Config=UT4WebAdmin)
class UUT4WebAdminHttpServer : public UObject, public FTickableGameObject
{
	GENERATED_UCLASS_BODY()

	void Start();
	void StartWithTLS(uint32 httpPort);
	void StartWithoutTLS(uint32 httpPort);
	void Stop();

	virtual void Tick(float DeltaTime) override;
	virtual TStatId GetStatId() const override;
	virtual bool IsTickable() const override
	{
		return true;
	}
	virtual bool IsTickableWhenPaused() const override
	{
		return true;
	}

	// Main administrator username<commit_msg>fix io.h linux<commit_after>#pragma once

#if PLATFORM_WINDOWS
#include "WindowsHWrapper.h"
#include "AllowWindowsPlatformTypes.h"
#endif
#include "Core.h"
#include "UnrealTournament.h"
#include "UTBaseGameMode.h"
#include "UTLobbyGameMode.h"
#include "UT4WebAdminUtils.h"
#include "UT4WebAdminSQLite.h"
#include "ThirdParty/Libmicrohttpd/include/microhttpd.h"

#if PLATFORM_WINDOWS
#include <io.h>
#endif

#if PLATFORM_LINUX
#include <sys/io.h>
#endif
#include <fcntl.h>

#include "UT4WebAdminHttpServer.generated.h"

UCLASS(Config=UT4WebAdmin)
class UUT4WebAdminHttpServer : public UObject, public FTickableGameObject
{
	GENERATED_UCLASS_BODY()

	void Start();
	void StartWithTLS(uint32 httpPort);
	void StartWithoutTLS(uint32 httpPort);
	void Stop();

	virtual void Tick(float DeltaTime) override;
	virtual TStatId GetStatId() const override;
	virtual bool IsTickable() const override
	{
		return true;
	}
	virtual bool IsTickableWhenPaused() const override
	{
		return true;
	}

	// Main administrator username
{'fraction_non_alphanumeric': 0.10422094841063054, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 6.2180451127819545, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5612555', 'n_tokens_mistral': 703, 'n_tokens_neox': 671, 'n_words': 159}