<commit_before>#ifndef HIBERDEFS_H_INCLUDED
#define HIBERDEFS_H_INCLUDED

#define HIBERLITE_NVP(Field) hiberlite::sql_nvp< typeof(Field) >(#Field,Field)
#define HIBERLITE_BASE_CLASS(ClName) hiberlite::sql_nvp< ClName >(#ClName,*((ClName*)this) )

#define HIBERLITE_EXPORT_CLASS(ClName) 			\
namespace hiberlite{							\
template<>										\
std::string Database::getClassName<ClName>()	\
{	return #ClName;	}}

//#define HIBERLITE_COLLECTION(Field) hiberlite::collection_nvp<typeof(Field),typeof(Field.begin())>(#Field, Field, Field.begin(), Field.end())
//#define HIBERLITE_ARRAY(Field,N) hiberlite::collection_nvp<typeof(Field),typeof(Field[0])>(#Field,  *Field, *(Field+N))

#define HIBERLITE_PRIMARY_KEY_COLUMN "hiberlite_id"
#define HIBERLITE_PARENTID_COLUMN "hiberlite_parent_id"
#define HIBERLITE_ENTRY_INDEX_COLUMN "hiberlite_entry_indx"
#define HIBERLITE_ID_STORAGE_CLASS "INTEGER"

#define HIBERLITE_PRIMARY_KEY_STORAGE_TYPE "PRIMARYKEY"

#endif // HIBERDEFS_H_INCLUDED
<commit_msg>portability<commit_after>#ifndef HIBERDEFS_H_INCLUDED
#define HIBERDEFS_H_INCLUDED

#if (defined _MSC_VER && _MSC_VER< 1600)
#include <boost/typeof/typeof.hpp>
#define HIBERLITE_NVP(Field) hiberlite::sql_nvp< BOOST_TYPEOF(Field) >(#Field,Field)
#else
#define HIBERLITE_NVP(Field) hiberlite::sql_nvp< decltype(Field) >(#Field,Field)
#endif
#define HIBERLITE_BASE_CLASS(ClName) hiberlite::sql_nvp< ClName >(#ClName,*((ClName*)this) )

#define HIBERLITE_EXPORT_CLASS(ClName) 			\
namespace hiberlite{							\
template<>										\
std::string Database::getClassName<ClName>()	\
{	return #ClName;	}}

//#define HIBERLITE_COLLECTION(Field) hiberlite::collection_nvp<typeof(Field),typeof(Field.begin())>(#Field, Field, Field.begin(), Field.end())
//#define HIBERLITE_ARRAY(Field,N) hiberlite::collection_nvp<typeof(Field),typeof(Field[0])>(#Field,  *Field, *(Field+N))

#define HIBERLITE_PRIMARY_KEY_COLUMN "hiberlite_id"
#define HIBERLITE_PARENTID_COLUMN "hiberlite_parent_id"
#define HIBERLITE_ENTRY_INDEX_COLUMN "hiberlite_entry_indx"
#define HIBERLITE_ID_STORAGE_CLASS "INTEGER"

#define HIBERLITE_PRIMARY_KEY_STORAGE_TYPE "PRIMARYKEY"

#endif // HIBERDEFS_H_INCLUDED

{'fraction_non_alphanumeric': 0.13484708063021317, 'fraction_numerical': 0.0027803521779425394, 'mean_word_length': 9.136150234741784, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 17, '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': '1734122', 'n_tokens_mistral': 943, 'n_tokens_neox': 883, 'n_words': 116}