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

#include <expreval.h>

int main(int argc, char *argv[])
{
        
        compiler c = compiler_New();
        compiler_SetConstant(c, "pi", 3.14159265358979);
        compiler_SetConstant(c, "phi", (1+sqrt(5.0))/2);
        compiler_MapArgument(c, "x", 0);
        compiler_RegisterFunction(c, "sqrt", sqrt, 1);
        compiler_RegisterFunction(c, "sin", sin, 1);
        compiler_RegisterFunction(c, "cos", cos, 1);
        compiler_RegisterFunction(c, "pow", pow, 2);

        // Magia!
        cfunction1 cf = compiler_CompileFunction(c, "1/(2+cos(x))");
        double result = cf(3.4);
        
        
        printf("%f\n", result);
        
        return EXIT_SUCCESS;
}
<commit_msg>I will add function support later<commit_after>#include <stdio.h>
#include <math.h>
#include <stdlib.h>

#include <expreval.h>

int main(int argc, char *argv[])
{

        compiler c = compiler_New();
        compiler_SetConstant(c, "pi", 3.14159265358979);
        compiler_SetConstant(c, "phi", (1+sqrt(5.0))/2);
        compiler_MapArgument(c, "x", 0);
        compiler_RegisterFunction(c, "sqrt", sqrt, 1);
        compiler_RegisterFunction(c, "sin", sin, 1);
        compiler_RegisterFunction(c, "cos", cos, 1);
        compiler_RegisterFunction(c, "pow", pow, 2);

        // Magia!
        cfunction1 cf = compiler_CompileFunction(c, "1/(2+3*x)");
        double result = cf(3.4);


        printf("%f\n", result);

        return EXIT_SUCCESS;
}
{'fraction_non_alphanumeric': 0.15965834428383704, 'fraction_numerical': 0.03876478318002628, 'mean_word_length': 2.798004987531172, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5239817', 'n_tokens_mistral': 554, 'n_tokens_neox': 510, 'n_words': 111}