<commit_before>/**
 * @file any.h
 * a class definition of linear::type::any
 */

#ifndef LINEAR_TYPE_ANY_H_
#define LINEAR_TYPE_ANY_H_

#include <algorithm>
#include <sstream>

#include "linear/binary.h"
#include "linear/optional.h"

namespace linear {

namespace type {

/**
 * @class any any.h "linear/any.h"
 * represent any type object
 */
class any {
 public:
  //! any type indicator
  enum Type {
    NIL              = msgpack::type::NIL,              //!< NIL
    BOOLEAN          = msgpack::type::BOOLEAN,          //!< BOOLEAN
    POSITIVE_INTEGER = msgpack::type::POSITIVE_INTEGER, //!< POSITIVE_INTEGER
    NEGATIVE_INTEGER = msgpack::type::NEGATIVE_INTEGER, //!< NEGATIVE_INTEGER
    FLOAT            = msgpack::type::FLOAT,            //!< FLOAT
#if MSGPACK_VERSION_MAJOR == 2 && MSGPACK_VERSION_MINOR >= 1 || MSGPACK_VERSION_MAJOR > 2
    FLOAT32          = msgpack::type::FLOAT32,          //!< FLOAT32
    FLOAT64          = msgpack::type::FLOAT64,          //!< FLOAT64 ( = FLOAT)
#endif
    STR              = msgpack::type::STR,              //!< STRING<commit_msg>Add any notice for using 8192 bytes.<commit_after>/**
 * @file any.h
 * a class definition of linear::type::any
 */

#ifndef LINEAR_TYPE_ANY_H_
#define LINEAR_TYPE_ANY_H_

#include <algorithm>
#include <sstream>

#include "linear/binary.h"
#include "linear/optional.h"

namespace linear {

namespace type {

/**
 * @class any any.h "linear/any.h"
 * represent any type object
 * An any object allocate more than 8192 bytes of memory.
 * This values is defined as MSGPACK_ZONE_CHUNK_SIZE in deps/msgpack/include/msgpack/zone.h.
 */
class any {
 public:
  //! any type indicator
  enum Type {
    NIL              = msgpack::type::NIL,              //!< NIL
    BOOLEAN          = msgpack::type::BOOLEAN,          //!< BOOLEAN
    POSITIVE_INTEGER = msgpack::type::POSITIVE_INTEGER, //!< POSITIVE_INTEGER
    NEGATIVE_INTEGER = msgpack::type::NEGATIVE_INTEGER, //!< NEGATIVE_INTEGER
    FLOAT            = msgpack::type::FLOAT,            //!< FLOAT
#if MSGPACK_VERSION_MAJOR == 2 && MSGPACK_VERSION_MINOR >= 1 || MSGPACK_VERSION_MAJOR > 2
    FLOAT32          = msgpack::type::FLOAT32,          //!< FLOAT32
    FLOAT64          = msgpack::type::FLOAT64,          //!< FLOAT64 ( = FLOAT)
#endif
    STR              = msgpack::type::STR,              //!< STRING
{'fraction_non_alphanumeric': 0.131175468483816, 'fraction_numerical': 0.016183986371379896, 'mean_word_length': 2.532330827067669, 'pattern_counts': {'":': 0, '<': 23, '<?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': '3786031', 'n_tokens_mistral': 836, 'n_tokens_neox': 788, 'n_words': 169}