<commit_before>/* SPDX-License-Identifier: LGPL-2.1 */

/*
 * libround.h - Rounding algorithms API
 *
 * Copyright (C) 	2010, 2012, 2017
 * 			<NAME> <<EMAIL>>
 *
 * Inspired by rounding-algorithms.hpp in the Boost C++ library.
 */

#ifndef _LIBROUND_H_
#define _LIBROUND_H_

#ifdef __cplusplus
extern "C" {
#endif

#pragma GCC visibility push(default)
double lr_get_rounding_factor(int dp);
double lr_ceil0(double value, double rf);
double lr_floor0(double value, double rf);
double lr_round_half_up(double value, double rf);
double lr_round_half_up0(double value, double rf);
double lr_round_half_down(double value, double rf);
double lr_round_half_down0(double value, double rf);
double lr_round_half_even(double value, double rf);
#pragma GCC visibility pop

#ifdef __cplusplus
} /* extern "C" */
#endif
<commit_msg>libround.h: Explicitly mark functions as 'extern'<commit_after>/* SPDX-License-Identifier: LGPL-2.1 */

/*
 * libround.h - Rounding algorithms API
 *
 * Copyright (C) 	2010, 2012, 2017, 2020
 * 			<NAME> <<EMAIL>>
 *
 * Inspired by rounding-algorithms.hpp in the Boost C++ library.
 */

#ifndef _LIBROUND_H_
#define _LIBROUND_H_

#ifdef __cplusplus
extern "C" {
#endif

#pragma GCC visibility push(default)
extern double lr_get_rounding_factor(int dp);
extern double lr_ceil0(double value, double rf);
extern double lr_floor0(double value, double rf);
extern double lr_round_half_up(double value, double rf);
extern double lr_round_half_up0(double value, double rf);
extern double lr_round_half_down(double value, double rf);
extern double lr_round_half_down0(double value, double rf);
extern double lr_round_half_even(double value, double rf);
#pragma GCC visibility pop

#ifdef __cplusplus
} /* extern "C" */
#endif

{'fraction_non_alphanumeric': 0.10644418872266974, 'fraction_numerical': 0.023014959723820484, 'mean_word_length': 5.440740740740741, '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': '4168609', 'n_tokens_mistral': 665, 'n_tokens_neox': 614, 'n_words': 178}