<commit_before>#ifndef __NPY_MATH_C99_H_
#define __NPY_MATH_C99_H_

#include <math.h>
#include <numpy/npy_common.h>
<commit_msg>Add portable equivalent of NAN/INFINITY.<commit_after>#ifndef __NPY_MATH_C99_H_
#define __NPY_MATH_C99_H_

#include <math.h>
#include <numpy/npy_common.h>

/*
 * NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99
 * for INFINITY)
 *
 * XXX: I should test whether INFINITY and NAN are available on the platform
 */
#define NPY_INFINITYF \
        ((union { npy_uint32 __i; float __f;}) {__i: 0x7f800000L}).__f

#define NPY_INFINITY ((npy_double)NPY_INFINITYF)
#define NPY_INFINITYL ((npy_longdouble)NPY_INFINITYF)

#define NPY_NANF \
        ((union { npy_uint32 __i; float __f;}) {__i: 0x7fc00000L}).__f

#define NPY_NAN ((npy_double)NPY_NANF)
#define NPY_NANL ((npy_longdouble)NPY_NANF)

{'fraction_non_alphanumeric': 0.10727056019070322, 'fraction_numerical': 0.03456495828367104, 'mean_word_length': 5.412213740458015, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2119425', 'n_tokens_mistral': 387, 'n_tokens_neox': 364, 'n_words': 79}