<commit_before>#ifndef __BASIC_H
#define __BASIC_H


inline int32_t bound_int32(int32_t val, int32_t min, int32_t max)
{
	return val < min ? min : (val < max ? val : max);
}


#endif<commit_msg>Finish every types of bound functions<commit_after>#ifndef __BASIC_H
#define __BASIC_H

#include <stdint.h>

inline int16_t bound_int16(int16_t val, int16_t min, int16_t max)
{
	return val < min ? min : (val < max ? val : max);
}

inline uint16_t bound_uint16(uint16_t val, uint16_t min, uint16_t max)
{
	return val < min ? min : (val < max ? val : max);
}

inline int32_t bound_int32(int32_t val, int32_t min, int32_t max)
{
	return val < min ? min : (val < max ? val : max);
}

inline uint32_t bound_uint32(uint32_t val, uint32_t min, uint32_t max)
{
	return val < min ? min : (val < max ? val : max);
}

inline int64_t bound_int64(int64_t val, int64_t min, int64_t max)
{
	return val < min ? min : (val < max ? val : max);
}

inline uint64_t bound_uint64(uint64_t val, uint64_t min, uint64_t max)
{
	return val < min ? min : (val < max ? val : max);
}


inline float bound_float(float val, float min, float max)
{
	return val < min ? min : (val < max ? val : max);
}


#endif
{'fraction_non_alphanumeric': 0.11604095563139932, 'fraction_numerical': 0.059726962457337884, 'mean_word_length': 4.056034482758621, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 4, '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': '2851872', 'n_tokens_mistral': 517, 'n_tokens_neox': 472, 'n_words': 144}