<commit_before>/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Written (W) 1999-2008 <NAME>
 * Written (W) 1999-2008 <NAME>
 * Written (W) 2006 <NAME>
 * Written (W) 2006 <NAME>
 * Written (W) 2006-2008 <NAME>
 * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
 */

#ifndef __COMMON_H__
#define __COMMON_H__

#include <stdlib.h>
#include <stdio.h>
#include "lib/config.h"
#include "lib/memory.h"

#ifdef SUNOS
#define bool int
#define false 0
#define true 1
#endif

#ifndef LINUX
#define RANDOM_MAX 2147483647
#else
#define RANDOM_MAX RAND_MAX
#endif

/**@name Standard Types 
 * Definition of Platform independent Types
*/
//@{

/// Type SHORT is 2 bytes in size
typedef short int SHORT;

/// Type WORD is 2 bytes in size
typedef unsigned short int WORD;

/// Type INT is 4 bytes in size
typedef int INT;

/// Type INT is 4 bytes in size
typedef unsigned int UINT;

/// Type LONG is 8 bytes in size
/// Type ULONG is 8 bytes in size
#ifndef SUNOS
#include <stdint.h>
typedef int64_t LONG;
typedef uint64_t ULONG;
#else
typedef long LONG;
typedef unsigned long ULONG;
typedef unsigned short uint8_t;
#endif


/// Type SHORTREAL is 4 bytes in size
typedef float SHORTREAL;

/// Type DREAL is 8 bytes in size
typedef double DREAL;

/// Type LONGREAL is 16 bytes in size
typedef long double LONGREAL;

#ifdef USE_SHORTREAL_KERNELCACHE
	typedef SHORTREAL KERNELCACHE_ELEM;
#else
	typedef DREAL KERNELCACHE_ELEM;
#endif

typedef LONG KERNELCACHE_IDX;

//@}

//#define TMP_DIR "/tmp/"

#endif
<commit_msg>- Fixed wrongly defined uint8_t for SUN OS.<commit_after>/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Written (W) 1999-2008 <NAME>
 * Written (W) 1999-2008 <NAME>
 * Written (W) 2006 <NAME>
 * Written (W) 2006 <NAME>
 * Written (W) 2006-2008 <NAME>
 * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
 */

#ifndef __COMMON_H__
#define __COMMON_H__

#include <stdlib.h>
#include <stdio.h>
#include "lib/config.h"
#include "lib/memory.h"

#ifdef SUNOS
#define bool int
#define false 0
#define true 1
#endif

#ifndef LINUX
#define RANDOM_MAX 2147483647
#else
#define RANDOM_MAX RAND_MAX
#endif

/**@name Standard Types 
 * Definition of Platform independent Types
*/
//@{

/// Type SHORT is 2 bytes in size
typedef short int SHORT;

/// Type WORD is 2 bytes in size
typedef unsigned short int WORD;

/// Type INT is 4 bytes in size
typedef int INT;

/// Type INT is 4 bytes in size
typedef unsigned int UINT;

/// Type LONG is 8 bytes in size
/// Type ULONG is 8 bytes in size
#ifndef SUNOS
#include <stdint.h>
typedef int64_t LONG;
typedef uint64_t ULONG;
#else
typedef long LONG;
typedef unsigned long ULONG;
typedef unsigned char uint8_t;
#endif


/// Type SHORTREAL is 4 bytes in size
typedef float SHORTREAL;

/// Type DREAL is 8 bytes in size
typedef double DREAL;

/// Type LONGREAL is 16 bytes in size
typedef long double LONGREAL;

#ifdef USE_SHORTREAL_KERNELCACHE
	typedef SHORTREAL KERNELCACHE_ELEM;
#else
	typedef DREAL KERNELCACHE_ELEM;
#endif

typedef LONG KERNELCACHE_IDX;

//@}

//#define TMP_DIR "/tmp/"

#endif

{'fraction_non_alphanumeric': 0.09072753209700428, 'fraction_numerical': 0.039087018544935806, 'mean_word_length': 3.8694444444444445, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4392950', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1153, 'n_words': 489}