<commit_before>#ifndef REFLEXION_STRUCT2_HPP
#define REFLEXION_STRUCT2_HPP


#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/variadic/to_seq.hpp>
#include <boost/preprocessor/cat.hpp>


#define RXN_GENERATE_FIELDS(r, fields, generator) generator(fields)

#define RXN_REFLECT(generators, ...) \
	BOOST_PP_SEQ_FOR_EACH(RXN_GENERATE_FIELDS, BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__), generators)

#define RXN_IDENTITY(...) __VA_ARGS__

#define RXN_HEAD(head, ...) head
#define RXN_TAIL(head, ...) __VA_ARGS__

#define RXN_IGNORE(...)

#define RXN_ADD_PARENS(...) ((__VA_ARGS__))
#define RXN_REMOVE_PARENS(...) RXN_IDENTITY __VA_ARGS__

#define ADD_PAREN_1(...) ((__VA_ARGS__)) ADD_PAREN_2
#define ADD_PAREN_2(...) ((__VA_ARGS__)) ADD_PAREN_1
#define ADD_PAREN_1_END
#define ADD_PAREN_2_END
#define OUTPUT BOOST_PP_CAT(ADD_PAREN_1 INPUT,_END)

#define RXN_NORMALIZE_FIELD(field) BOOST_PP_CAT(ADD_PAREN_1 field, _END)<commit_msg>remove unused macro<commit_after>#ifndef REFLEXION_STRUCT2_HPP
#define REFLEXION_STRUCT2_HPP


#include <boost/preprocessor/seq/for_each.hpp>
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/variadic/to_seq.hpp>
#include <boost/preprocessor/cat.hpp>


#define RXN_GENERATE_FIELDS(r, fields, generator) generator(fields)

#define RXN_REFLECT(generators, ...) \
	BOOST_PP_SEQ_FOR_EACH(RXN_GENERATE_FIELDS, BOOST_PP_VARIADIC_TO_SEQ(__VA_ARGS__), generators)

#define RXN_IDENTITY(...) __VA_ARGS__

#define RXN_HEAD(head, ...) head
#define RXN_TAIL(head, ...) __VA_ARGS__

#define RXN_IGNORE(...)

#define RXN_REMOVE_PARENS(...) RXN_IDENTITY __VA_ARGS__

#define ADD_PAREN_1(...) ((__VA_ARGS__)) ADD_PAREN_2
#define ADD_PAREN_2(...) ((__VA_ARGS__)) ADD_PAREN_1
#define ADD_PAREN_1_END
#define ADD_PAREN_2_END
#define OUTPUT BOOST_PP_CAT(ADD_PAREN_1 INPUT,_END)

#define RXN_NORMALIZE_FIELD(field) BOOST_PP_CAT(ADD_PAREN_1 field, _END)
{'fraction_non_alphanumeric': 0.12474437627811862, 'fraction_numerical': 0.010224948875255624, 'mean_word_length': 7.327659574468085, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '309960', 'n_tokens_mistral': 874, 'n_tokens_neox': 798, 'n_words': 120}