<commit_before>//      © <NAME>
//      All rights reserved
#ifndef MATH_HPP
#define MATH_HPP

#include <cstdlib>
#include <cmath>

namespace {

double const pi = 3.1415926535;

double spow(double y, double p)
{ return (y >= 0) ? std::pow(y, p) : -std::pow(-y, p); }

double rnd(double a, double b)
{ return a + std::rand() * (b - a) / RAND_MAX; }

double linear(double a, double b, double r)
{ return a * (1 - r) + b * r; }

}
<commit_msg>work-around warn unused<commit_after>//      © <NAME>
//      All rights reserved
#ifndef MATH_HPP
#define MATH_HPP

#include <cstdlib>
#include <cmath>

#define pi (3.1415926535)
#define spow(y, p) ((y >= 0) ? std::pow(y, p) : -std::pow(-y, p))
#define rnd(a, b) (a + std::rand() * (b - a) / RAND_MAX)
#define linear(a, b, r) (a * (1 - r) + b * r)

{'fraction_non_alphanumeric': 0.1926489226869455, 'fraction_numerical': 0.032953105196451206, 'mean_word_length': 3.2934782608695654, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4361363', 'n_tokens_mistral': 350, 'n_tokens_neox': 328, 'n_words': 100}