<commit_before>/*
    JAMLIB - A JAM subroutine library
    Copyright (C) 1999 <NAME>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    Changes made by <NAME> 2000-04-16:

    - Added #defines for JAM_NO_MESSAGE and JAM_CORRUPT_MSG
    - Added #ifndef linux around typedefs for ushort, ulong and uchar
    - Added prototype for JAM_AddEmptyMessage()

    Changes made by <NAME> 2001-12-08:

    - Added prototype for JAM_DeleteMessage()
*/

/***********************************************************************
**
**  JAM Definitions
**
***********************************************************************/

#ifndef __JAM_H__
#define __JAM_H__

#if (defined(__unix__) || defined(unix)) && !defined(USG)
#include <sys/param.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>

#if !defined(linux)
#if !((defined(__FreeBSD__) && __FreeBSD_version >= 470000))
typedef unsigned short ushort;   /* must be 16 bits wide */
#endif
typedef unsigned long  ulong;    /* must be 32 bits wide */
#endif
typedef unsigned char  uchar;    /* must be  8 bits wide */

/*
**  Error codes {{{
*/
#define JAM_BAD_PARAM   1  /* one or more parameters are wrong */
#define JAM_IO_ERROR	2  /* i/o error. check JAM_Errno() for details */
#define JAM_LOCK_FAILED 3  /* lock could not be set */
#define JAM_NOT_LOCKED  4  /* the message base was not locked before writing */
#define JAM_NO_MEMORY   5  /* out of memory! */
#define JAM_NO_USER	6  /* user not found */
#define JAM_NO_MESSAGE  7  /* message has been deleted */
#define JAM_CORRUPT_MSG 8  /* message header is corrupt */
/*
** }}}
*/

/*
**  CRC definitions {{{
*/
#define JAM_NO_CRC	0xffffffff
/*
** }}}<commit_msg>Downgraded FreeBSD version check to 4.4-Release<commit_after>/*
    JAMLIB - A JAM subroutine library
    Copyright (C) 1999 <NAME>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    Changes made by <NAME> 2000-04-16:

    - Added #defines for JAM_NO_MESSAGE and JAM_CORRUPT_MSG
    - Added #ifndef linux around typedefs for ushort, ulong and uchar
    - Added prototype for JAM_AddEmptyMessage()

    Changes made by <NAME> 2001-12-08:

    - Added prototype for JAM_DeleteMessage()
*/

/***********************************************************************
**
**  JAM Definitions
**
***********************************************************************/

#ifndef __JAM_H__
#define __JAM_H__

#if (defined(__unix__) || defined(unix)) && !defined(USG)
#include <sys/param.h>
#endif

#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>

#if !defined(linux)
#if !((defined(__FreeBSD__) && __FreeBSD_version >= 440000))
typedef unsigned short ushort;   /* must be 16 bits wide */
#endif
typedef unsigned long  ulong;    /* must be 32 bits wide */
#endif
typedef unsigned char  uchar;    /* must be  8 bits wide */

/*
**  Error codes {{{
*/
#define JAM_BAD_PARAM   1  /* one or more parameters are wrong */
#define JAM_IO_ERROR	2  /* i/o error. check JAM_Errno() for details */
#define JAM_LOCK_FAILED 3  /* lock could not be set */
#define JAM_NOT_LOCKED  4  /* the message base was not locked before writing */
#define JAM_NO_MEMORY   5  /* out of memory! */
#define JAM_NO_USER	6  /* user not found */
#define JAM_NO_MESSAGE  7  /* message has been deleted */
#define JAM_CORRUPT_MSG 8  /* message header is corrupt */
/*
** }}}
*/

/*
**  CRC definitions {{{
*/
#define JAM_NO_CRC	0xffffffff
/*
** }}}
{'fraction_non_alphanumeric': 0.14776490066225165, 'fraction_numerical': 0.02359271523178808, 'mean_word_length': 3.6471153846153848, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6846263', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1417, 'n_words': 577}