<commit_before>// Custom map implementations for K3
#ifndef __K3_RUNTIME_MAP_DATASPACE__
#define __K3_RUNTIME_MAP_DATASPACE__

#include <boost/serialization/array.hpp>
#include <boost/serialization/binary_object.hpp>
#include <boost/serialization/string.hpp>

#include "K3Config.hpp"

#ifdef HAS_LIBDYNAMIC

extern "C" {
#include <dynamic/mapi.h>
#include <dynamic/map_str.h>
}

namespace K3 { namespace Libdynamic {

template<class R>
class IntMap {
  using Key = typename R::KeyType;

public:
  using Container = shared_ptr<mapi>;

  // Default Constructor
  IntMap() {
    container = Container(mapi_new(sizeof(R)));
  }<commit_msg>mapDS: change #ifdef to #if<commit_after>// Custom map implementations for K3
#ifndef __K3_RUNTIME_MAP_DATASPACE__
#define __K3_RUNTIME_MAP_DATASPACE__

#include <boost/serialization/array.hpp>
#include <boost/serialization/binary_object.hpp>
#include <boost/serialization/string.hpp>

#include "K3Config.hpp"

#if HAS_LIBDYNAMIC

extern "C" {
#include <dynamic/mapi.h>
#include <dynamic/map_str.h>
}

namespace K3 { namespace Libdynamic {

template<class R>
class IntMap {
  using Key = typename R::KeyType;

public:
  using Container = shared_ptr<mapi>;

  // Default Constructor
  IntMap() {
    container = Container(mapi_new(sizeof(R)));
  }
{'fraction_non_alphanumeric': 0.11475409836065574, 'fraction_numerical': 0.0078064012490242, 'mean_word_length': 5.442211055276382, 'pattern_counts': {'":': 0, '<': 17, '<?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': '7234308', 'n_tokens_mistral': 467, 'n_tokens_neox': 449, 'n_words': 98}