<commit_before>//
// g++ test_FileLog.cpp -lg3logger -lpthread
//
#include "config.h"

#include <g3log/g3log.hpp>
#include <g3log/logworker.hpp>
#include "FileLogSink.hpp"
#include <iostream>

#include <string.h>

// the manpage of memfd_create says sys/mman.h, but the version of glibc
// installed on travis has it in sys/memfd.h
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifdef HAVE_MMAN
#include <sys/mman.h>
#endif
#ifdef HAVE_MEMFD
#include <sys/memfd.h><commit_msg>add forgotten #include s for open(2) (#88)<commit_after>//
// g++ test_FileLog.cpp -lg3logger -lpthread
//
#include "config.h"

#include <g3log/g3log.hpp>
#include <g3log/logworker.hpp>
#include "FileLogSink.hpp"
#include <iostream>

#include <string.h>
// for open(2):
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

// the manpage of memfd_create says sys/mman.h, but the version of glibc
// installed on travis has it in sys/memfd.h
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifdef HAVE_MMAN
#include <sys/mman.h>
#endif
#ifdef HAVE_MEMFD
#include <sys/memfd.h>
{'fraction_non_alphanumeric': 0.14393226716839136, 'fraction_numerical': 0.011288805268109126, 'mean_word_length': 4.62962962962963, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '4593962', 'n_tokens_mistral': 429, 'n_tokens_neox': 423, 'n_words': 111}