<commit_before>#include <cerrno>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <limits>

#ifdef _WIN32
#  define NOMINMAX
#  include <windows.h>
#  include <io.h>
#else
#  include <unistd.h>
#  include <fcntl.h>
#  include <sys/stat.h>
#  include <sys/mman.h>
#  include <sys/file.h> // BSD / Linux flock()
#  ifdef _GNU_SOURCE
#    include <sys/mman.h> // mremap()
#  endif
#endif

#include <tightdb/assert.hpp>
#include <tightdb/exceptions.hpp>
#include <tightdb/safe_int_ops.hpp>
#include <tightdb/string_buffer.hpp>
#include <tightdb/file.hpp>

using namespace std;
using namespace tightdb;


namespace {


string get_errno_msg(const char* prefix, int err)
{
    StringBuffer buffer;
    buffer.append_c_str(prefix);<commit_msg>Update file.cpp<commit_after>#include <cerrno>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <limits>

#ifdef _WIN32
#  define NOMINMAX
#  include <windows.h>
#  include <io.h>
#  include <dirent>
#else
#  include <unistd.h>
#  include <fcntl.h>
#  include <sys/stat.h>
#  include <sys/mman.h>
#  include <sys/file.h> // BSD / Linux flock()
#  ifdef _GNU_SOURCE
#    include <sys/mman.h> // mremap()
#  endif
#endif

#include <tightdb/assert.hpp>
#include <tightdb/exceptions.hpp>
#include <tightdb/safe_int_ops.hpp>
#include <tightdb/string_buffer.hpp>
#include <tightdb/file.hpp>

using namespace std;
using namespace tightdb;


namespace {


string get_errno_msg(const char* prefix, int err)
{
    StringBuffer buffer;
    buffer.append_c_str(prefix);
{'fraction_non_alphanumeric': 0.14304461942257218, 'fraction_numerical': 0.0026246719160104987, 'mean_word_length': 4.465949820788531, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '7109658', 'n_tokens_mistral': 614, 'n_tokens_neox': 585, 'n_words': 132}