<commit_before>#include "PosixFileSystem.hpp"
#include "../File.hpp"
#include "../InputStream.hpp"
#include "../OutputStream.hpp"
#include "../EmptyFile.hpp"
#include "../PartFile.hpp"
#include "../Exception.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <stdlib.h>

BEGIN_INANITY_PLATFORM

class PosixFile : public File
{
private:
	void* data;
	size_t size;

public:
	PosixFile(void* data, size_t size)
	: data(data), size(size) {}

	~PosixFile()
	{
		munmap(data, size);
	}

	void* GetData() const
	{<commit_msg>fix PosixFileSystem.cpp build<commit_after>#include "PosixFileSystem.hpp"
#include "../File.hpp"
#include "../InputStream.hpp"
#include "../OutputStream.hpp"
#include "../EmptyFile.hpp"
#include "../PartFile.hpp"
#include "../Exception.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <stdlib.h>
#include <climits>

BEGIN_INANITY_PLATFORM

class PosixFile : public File
{
private:
	void* data;
	size_t size;

public:
	PosixFile(void* data, size_t size)
	: data(data), size(size) {}

	~PosixFile()
	{
		munmap(data, size);
	}

	void* GetData() const
	{
{'fraction_non_alphanumeric': 0.18337218337218336, 'fraction_numerical': 0.0, 'mean_word_length': 4.649122807017544, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '638400', 'n_tokens_mistral': 518, 'n_tokens_neox': 506, 'n_words': 110}