<commit_before>#include "mini_stdint.h"

#define WEAK __attribute__((weak))

extern "C" {

// To get at stdout/stderr, we need to know sizeof(FILE) on windows.
#ifdef BITS_64
#define FILE_SIZE 48<commit_msg>Redirect open, write, close on windows ...<commit_after>#include "mini_stdint.h"

#define WEAK __attribute__((weak))

extern "C" {

// The tracing module needs open, write, close
extern ssize_t _write(int fd, const void *buf, size_t count);
extern int _close(int fd);
extern int _open(const char *filename, int opts, int mode);
ssize_t write(int fd, const void *buf, size_t count) {return _write(fd, buf, count);}
int close(int fd) {return _close(fd);}
int open(const char *filename, int opts, int mode) {return _open(filename, opts, mode);}

// To get at stdout/stderr, we need to know sizeof(FILE) on windows.
#ifdef BITS_64
#define FILE_SIZE 48
{'fraction_non_alphanumeric': 0.12060889929742388, 'fraction_numerical': 0.00936768149882904, 'mean_word_length': 5.286764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3798783', 'n_tokens_mistral': 302, 'n_tokens_neox': 288, 'n_words': 109}