<commit_before>/// @file py_coord_zcorn_tools.cpp
/// @brief Python bindnings for COORD & ZCORN tools
/// @author uentity
/// @date 10.05.2011
/// @copyright This source code is released under the terms of
///            the BSD License. See LICENSE for more details.

#include "coord_zcorn_tools.h"
#include "export_python_wrapper.h"
#include "py_pair_converter.h"
#include <boost/python/tuple.hpp>

#ifdef BSPY_EXPORTING_PLUGIN
using namespace boost::python;
namespace czt = blue_sky::coord_zcorn_tools;

namespace {

typedef t_long int_t;
typedef t_double fp_t;
typedef t_float fp_stor_t;
typedef spv_float spfp_storarr_t;
typedef spv_long spi_arr_t;
typedef typename spi_arr_t::pure_pointed_t int_arr_t;
typedef std::pair< spv_float, spv_float > coord_zcorn_pair;

// refine_mesh_deltas with overloads
static tuple refine_mesh_deltas_s(int_t nx, int_t ny, fp_stor_t max_dx, fp_stor_t max_dy,
		fp_stor_t len_x, fp_stor_t len_y,
		spfp_storarr_t points_pos, spfp_storarr_t points_param)
{
	std::pair< spfp_storarr_t, spfp_storarr_t > r = czt::refine_mesh_deltas_s(nx, ny, max_dx, max_dy, len_x, len_y, points_pos, points_param);
	return make_tuple(r.first, r.second, nx, ny);
}

}

namespace blue_sky { namespace python {

void py_export_czt() {
	def("refine_mesh_deltas_s", &refine_mesh_deltas_s);
}

}} 	// eof blue_sky::python

#endif<commit_msg>CZT: further fix the same error<commit_after>/// @file py_coord_zcorn_tools.cpp
/// @brief Python bindnings for COORD & ZCORN tools
/// @author uentity
/// @date 10.05.2011
/// @copyright This source code is released under the terms of
///            the BSD License. See LICENSE for more details.

#include "coord_zcorn_tools.h"
#include "export_python_wrapper.h"
#include "py_pair_converter.h"
#include <boost/python/tuple.hpp>

#ifdef BSPY_EXPORTING_PLUGIN
using namespace boost::python;
namespace czt = blue_sky::coord_zcorn_tools;

namespace {

typedef t_long int_t;
typedef t_double fp_t;
typedef t_float fp_stor_t;
typedef spv_float spfp_storarr_t;
typedef spv_long spi_arr_t;
typedef spi_arr_t::pure_pointed_t int_arr_t;
typedef std::pair< spv_float, spv_float > coord_zcorn_pair;

// refine_mesh_deltas with overloads
static tuple refine_mesh_deltas_s(int_t nx, int_t ny, fp_stor_t max_dx, fp_stor_t max_dy,
		fp_stor_t len_x, fp_stor_t len_y,
		spfp_storarr_t points_pos, spfp_storarr_t points_param)
{
	std::pair< spfp_storarr_t, spfp_storarr_t > r = czt::refine_mesh_deltas_s(nx, ny, max_dx, max_dy, len_x, len_y, points_pos, points_param);
	return make_tuple(r.first, r.second, nx, ny);
}

}

namespace blue_sky { namespace python {

void py_export_czt() {
	def("refine_mesh_deltas_s", &refine_mesh_deltas_s);
}

}} 	// eof blue_sky::python

#endif
{'fraction_non_alphanumeric': 0.09841503870254331, 'fraction_numerical': 0.005897530409141172, 'mean_word_length': 5.508393285371703, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '231418', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1087, 'n_words': 247}