<commit_before>#pragma once

#include <Eigen/Dense>
#include <Eigen/Sparse>

namespace smurff {
   typedef FLOAT_TYPE float_type;

#if FLOAT_TYPE == float
   const double APPROX_EPSILON = std::numeric_limits<float>::epsilon()*10000;
#elif FLOAT_TYPE == double
   const double APPROX_EPSILON = std::numeric_limits<float>::epsilon()*100;
#else
   const double APPROX_EPSILON = std::numeric_limits<FLOAT_TYPE>::epsilon()*100;
#endif

   typedef Eigen::Matrix<float_type, Eigen::Dynamic, Eigen::Dynamic> Matrix;<commit_msg>WIP: allow 1% difference in results for float<commit_after>#pragma once

#include <Eigen/Dense>
#include <Eigen/Sparse>

namespace smurff {
   typedef FLOAT_TYPE float_type;

#if FLOAT_TYPE == float
   const double APPROX_EPSILON = 0.01; // allow 1% difference
#elif FLOAT_TYPE == double
   const double APPROX_EPSILON = std::numeric_limits<float>::epsilon()*100;
#else
   const double APPROX_EPSILON = std::numeric_limits<FLOAT_TYPE>::epsilon()*100;
#endif

   typedef Eigen::Matrix<float_type, Eigen::Dynamic, Eigen::Dynamic> Matrix;
{'fraction_non_alphanumeric': 0.12239089184060721, 'fraction_numerical': 0.020872865275142316, 'mean_word_length': 6.589928057553957, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4514230', 'n_tokens_mistral': 389, 'n_tokens_neox': 363, 'n_words': 81}