<commit_before>#ifndef CVD_ABS_H
#define CVD_ABS_H

namespace CVD
{
	/// Local version of abs. Returns the absolute value of a variable.
	/// We provide our own version so that we can produce instantiations
	/// that correctly work for unsigned datatypes
	/// @param T The type of the variable
	/// @param t The input parameter
	/// @ingroup gCPP
	template <class T> 
	inline T abs(T t) { return t<0 ? -t : t; }
	/// Instantiation of abs for unsigned char, which returns an unsigned.
	/// @param b The input parameter
	/// @ingroup gCPP
	inline unsigned char abs(unsigned char b) { return b; }
	/// Instantiation of abs for unsigned short, which returns an unsigned.
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned short abs(unsigned short u) { return u; }
	/// Instantiation of abs for unsigned int, which returns an unsigned.
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned int abs(unsigned int u) { return u; }
	/// Instantiation of abs for unsigned long, which returns an unsigned.
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned long abs(unsigned long u) { return u; }
}
#endif
<commit_msg>Updated documentation<commit_after>#ifndef CVD_ABS_H
#define CVD_ABS_H

namespace CVD
{
	/// Local templated version of abs. Returns the absolute value of a variable.
	/// @param T The type of the variable
	/// @param t The input parameter
	/// @ingroup gCPP
	template <class T> 
	inline T abs(T t) { return t<0 ? -t : t; }
	/// Fast instantiation for unsigned datatype which avoids a comparison
	/// @param b The input parameter
	/// @ingroup gCPP
	inline unsigned char abs(unsigned char b) { return b; }
	/// Fast instantiation for unsigned datatype which avoids a comparison
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned short abs(unsigned short u) { return u; }
	/// Fast instantiation for unsigned datatype which avoids a comparison
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned int abs(unsigned int u) { return u; }
	/// Fast instantiation for unsigned datatype which avoids a comparison
	/// @param u The input parameter
	/// @ingroup gCPP
	inline unsigned long abs(unsigned long u) { return u; }
}
#endif

{'fraction_non_alphanumeric': 0.0963096309630963, 'fraction_numerical': 0.0009000900090009, 'mean_word_length': 3.226235741444867, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3450678', 'n_tokens_mistral': 649, 'n_tokens_neox': 633, 'n_words': 301}