<commit_before>//
// Copyright (C) 2011-15 DyND Developers
// BSD 2-Clause License, see LICENSE.txt
//

#pragma once

#include <Python.h>

#include "config.hpp"

template <typename T>
struct DyND_PyWrapperObject {
  PyObject_HEAD;
  T v;
};

template <typename T>
PyTypeObject *&DyND_PyWrapper_Type();

template <typename T>
void DyND_PyWrapper_Type(PyObject *obj)
{
  DyND_PyWrapper_Type<T>() = reinterpret_cast<PyTypeObject *>(obj);
}

template <typename T>
PyObject *DyND_PyWrapper_New(const T &v)
{<commit_msg>Update wrapper.hpp<commit_after>//
// Copyright (C) 2011-15 DyND Developers
// BSD 2-Clause License, see LICENSE.txt
//

#pragma once

#include <Python.h>

#include "config.hpp"

template <typename T>
struct DyND_PyWrapperObject {
  PyObject_HEAD;
  T v;
};

template <typename T>
inline PyTypeObject *&DyND_PyWrapper_Type();

template <typename T>
inline void DyND_PyWrapper_Type(PyObject *obj)
{
  DyND_PyWrapper_Type<T>() = reinterpret_cast<PyTypeObject *>(obj);
}

template <typename T>
PyObject *DyND_PyWrapper_New(const T &v)
{
{'fraction_non_alphanumeric': 0.1251193887297039, 'fraction_numerical': 0.013371537726838587, 'mean_word_length': 5.351515151515152, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7186728', 'n_tokens_mistral': 392, 'n_tokens_neox': 387, 'n_words': 95}