<commit_before>/*********************************
** Tsunagari Tile Engine        **
** python.h                     **
** Copyright 2011-2012 OmegaSDG **
*********************************/

#ifndef PYTHON_H
#define PYTHON_H

// In this file.
#include <boost/python/errors.hpp>
#include <boost/python/import.hpp>
#include <boost/python/object.hpp>
#include <boost/python/ptr.hpp>
#include <boost/python/scope.hpp>

// For bindings.
#include <boost/python/class.hpp>
#include <boost/python/operators.hpp>
#include <boost/python/other.hpp>
#include <boost/python/self.hpp>

//! Initialize Python libraries for use.
bool pythonInit();

//! Free resourcers used by Python libraries and uninitialize them.
void pythonFinalize();

//! Print last error received within Python.
void pythonErr();


//! Access to global namespace shared by all Python scripts.
boost::python::object pythonGlobals();

//! Convenience function for binding a C++ object into the global Python
//! namespace.
template<class T><commit_msg>Fix compiling on G++ 4.7.0<commit_after>/*********************************
** Tsunagari Tile Engine        **
** python.h                     **
** Copyright 2011-2012 OmegaSDG **
*********************************/

#ifndef PYTHON_H
#define PYTHON_H

// In this file.
#include <boost/python/def.hpp>
#include <boost/python/errors.hpp>
#include <boost/python/import.hpp>
#include <boost/python/object.hpp>
#include <boost/python/ptr.hpp>
#include <boost/python/scope.hpp>

// For bindings.
#include <boost/python/class.hpp>
#include <boost/python/operators.hpp>
#include <boost/python/other.hpp>
#include <boost/python/self.hpp>

//! Initialize Python libraries for use.
bool pythonInit();

//! Free resourcers used by Python libraries and uninitialize them.
void pythonFinalize();

//! Print last error received within Python.
void pythonErr();


//! Access to global namespace shared by all Python scripts.
boost::python::object pythonGlobals();

//! Convenience function for binding a C++ object into the global Python
//! namespace.
template<class T>
{'fraction_non_alphanumeric': 0.18922852983988356, 'fraction_numerical': 0.009218825812712276, 'mean_word_length': 4.260204081632653, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '563444', 'n_tokens_mistral': 629, 'n_tokens_neox': 588, 'n_words': 177}