<commit_before>/* custom checking allocators a la Electric Fence */
#include "psyco.h"
#ifdef HEAVY_MEM_CHECK


#include <assert.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define PAGESIZE 4096
#define MALLOC_BIGBUFFER   PAGESIZE*16384


struct _alloc_s {
  void* ptr;
  int npages;
};
static void* _na_start = NULL;
static char* _na_cur;

static struct _alloc_s* _na_find(void* data)
{
  int err;
  long data1;
  struct _alloc_s* s;
  assert(_na_start+PAGESIZE <= data &&
         data < _na_start+MALLOC_BIGBUFFER-PAGESIZE);<commit_msg>Needs the two include files to compile correctly on some systems<commit_after>/* custom checking allocators a la Electric Fence */
#include "psyco.h"
#ifdef HEAVY_MEM_CHECK
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define PAGESIZE 4096
#define MALLOC_BIGBUFFER   PAGESIZE*16384


struct _alloc_s {
  void* ptr;
  int npages;
};
static void* _na_start = NULL;
static char* _na_cur;

static struct _alloc_s* _na_find(void* data)
{
  int err;
  long data1;
  struct _alloc_s* s;
  assert(_na_start+PAGESIZE <= data &&
         data < _na_start+MALLOC_BIGBUFFER-PAGESIZE);
{'fraction_non_alphanumeric': 0.11624203821656051, 'fraction_numerical': 0.01592356687898089, 'mean_word_length': 4.63677130044843, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '6387430', 'n_tokens_mistral': 518, 'n_tokens_neox': 484, 'n_words': 127}