<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include "libround.h"

int main(int argc, char **argv)
{
        double rf;

        if (argc < 3)
                return -1;

        rf = get_rounding_factor(atoi(argv[2]));

        printf("Rounding factor  : %f\n", rf);
        printf("ceil0            : %f --> %f\n", atof(argv[1]),
                                                ceil0(atof(argv[1]), rf));
        printf("floor0           : %f --> %f\n", atof(argv[1]),
                                                floor0(atof(argv[1]), rf));
        printf("round            : %f --> %f\n", atof(argv[1]),
                                        round(atof(argv[1]) * rf) / rf);
        printf("round_half_up    : %f --> %f\n", atof(argv[1]),
                                        round_half_up(atof(argv[1]), rf));
        printf("round_half_up0   : %f --> %f\n", atof(argv[1]),
                                        round_half_up0(atof(argv[1]), rf));
        printf("round_half_down  : %f --> %f\n", atof(argv[1]),
                                        round_half_down(atof(argv[1]), rf));
        printf("round_half_down0 : %f --> %f\n", atof(argv[1]),
                                        round_half_down0(atof(argv[1]), rf));
        printf("round_half_even  : %f --> %f\n", atof(argv[1]),
                                        round_half_even(atof(argv[1]), rf));

        return 0;
}
<commit_msg>Add ceil() and floor() output to libroundtest.c<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include "libround.h"

int main(int argc, char **argv)
{
        double rf;

        if (argc < 3)
                return -1;

        rf = get_rounding_factor(atoi(argv[2]));

        printf("Rounding factor  : %f\n", rf);
	printf("ceil             : %f --> %f\n", atof(argv[1]),
						ceil(atof(argv[1]) * rf) / rf);
        printf("ceil0            : %f --> %f\n", atof(argv[1]),
                                                ceil0(atof(argv[1]), rf));
	printf("floor            : %f --> %f\n", atof(argv[1]),
						floor(atof(argv[1]) * rf) / rf);
        printf("floor0           : %f --> %f\n", atof(argv[1]),
                                                floor0(atof(argv[1]), rf));
        printf("round            : %f --> %f\n", atof(argv[1]),
                                        round(atof(argv[1]) * rf) / rf);
        printf("round_half_up    : %f --> %f\n", atof(argv[1]),
                                        round_half_up(atof(argv[1]), rf));
        printf("round_half_up0   : %f --> %f\n", atof(argv[1]),
                                        round_half_up0(atof(argv[1]), rf));
        printf("round_half_down  : %f --> %f\n", atof(argv[1]),
                                        round_half_down(atof(argv[1]), rf));
        printf("round_half_down0 : %f --> %f\n", atof(argv[1]),
                                        round_half_down0(atof(argv[1]), rf));
        printf("round_half_even  : %f --> %f\n", atof(argv[1]),
                                        round_half_even(atof(argv[1]), rf));

        return 0;
}

{'fraction_non_alphanumeric': 0.17899455651617036, 'fraction_numerical': 0.01921229586935639, 'mean_word_length': 1.3296047725577926, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1402893', 'n_tokens_mistral': 1028, 'n_tokens_neox': 998, 'n_words': 174}