<commit_before>#pragma once

#ifndef DCGAL_USE_GMP
#define DCGAL_USE_GMP
#endif
#ifndef DCGAL_USE_MPFR
#define DCGAL_USE_MPFR
#endif

#include <cstddef>

#include <CGAL/Cartesian_d.h>
#include <CGAL/Delaunay_d.h>

#include <R.h>
#include <Rinternals.h>
#include <R_ext/BLAS.h>
#include <R_ext/Lapack.h>

typedef CGAL::Cartesian_d<double> R;
typedef CGAL::Delaunay_d<R>       Delaunay;
typedef Delaunay::Point_d         Point;
typedef Delaunay::Vertex_handle   Vertex_handle;

extern "C"
{
  //vector<double>
  SEXP linear_interpolate_d(SEXP dimentions, //unsigned
                            SEXP points,     //vector<Point>
                            SEXP values,     //vector<double>
                            SEXP xi,         //vector<Point>
                            SEXP fill_value); //double

  std::vector<double> find_barycentric_coords(std::size_t size,
                                              point_t const & point,
                                              std::vector<point_t> const & simplex);

  void make_toroidal(std::size_t size,
                     std::vector<Point> & points,
                     std::vector<double> & values);
}<commit_msg>Fix merge<commit_after>#pragma once

#ifndef DCGAL_USE_GMP
#define DCGAL_USE_GMP
#endif
#ifndef DCGAL_USE_MPFR
#define DCGAL_USE_MPFR
#endif

#include <cstddef>

#include <CGAL/Cartesian_d.h>
#include <CGAL/Delaunay_d.h>

#include <R.h>
#include <Rinternals.h>
#include <R_ext/BLAS.h>
#include <R_ext/Lapack.h>

typedef CGAL::Cartesian_d<double> R;
typedef CGAL::Delaunay_d<R>       Delaunay;
typedef Delaunay::Point_d         Point;
typedef Delaunay::Vertex_handle   Vertex_handle;

extern "C"
{
  //vector<double>
  SEXP linear_interpolate_d(SEXP dimentions,  //unsigned
                            SEXP points,      //vector<Point>
                            SEXP values,      //vector<double>
                            SEXP xi,          //vector<Point>
                            SEXP fill_value); //double

  std::vector<double> find_barycentric_coords(std::size_t size,
                                              Point const & point,
                                              std::vector<Point> const & simplex);

  void make_toroidal(std::size_t size,
                     std::vector<Point> & points,
                     std::vector<double> & values);
}
{'fraction_non_alphanumeric': 0.10382978723404256, 'fraction_numerical': 0.0, 'mean_word_length': 1.9609571788413098, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1181426', 'n_tokens_mistral': 801, 'n_tokens_neox': 747, 'n_words': 147}