<commit_before>#include <acirc.h>

int main(void)
{
    acirc c;
    bool result;
    FILE *fp;

    acirc_verbose(true);
    acirc_init(&c);
    acirc_add_input(&c, 0, 0);
    acirc_add_input(&c, 1, 1);
    acirc_add_const(&c, 2, 5);
    acircref args[3] = {0, 1, 2};
    acirc_add_gate(&c, 3, OP_ADD, args, 3);
    acirc_add_output(&c, 3);
    char *test[2] = {"00", "5"};
    acirc_add_command(&c, ":test", test, 2);

    result = acirc_ensure(&c);

    fp = fopen("circuits/test_builder.acirc", "w");
    acirc_fwrite(&c, fp);
    fclose(fp);

    acirc_clear(&c);

    if (!result)
        return !result;

    fp = fopen("circuits/test_builder.acirc", "r");
    acirc_fread(&c, fp);
    fclose(fp);

    result = acirc_ensure(&c);

    acirc_clear(&c);

    return !result;
}
<commit_msg>fix test_builder<commit_after>#include <acirc.h>

int main(void)
{
    acirc c;
    bool result;
    FILE *fp;

    acirc_verbose(true);
    acirc_init(&c);
    acirc_add_input(&c, 0, 0);
    acirc_add_input(&c, 1, 1);
    acirc_add_const(&c, 2, 5);
    acircref args[3] = {0, 1, 2};
    acirc_add_gate(&c, 3, OP_ADD, args, 3);
    acirc_add_output(&c, 3);
    char *test[2] = {"00", "5"};
    acirc_add_command(&c, ":test", test, 2);

    result = acirc_ensure(&c);

    fp = fopen("circuits/test_builder.acirc", "w");
    acirc_fwrite(&c, fp);
    fclose(fp);

    acirc_clear(&c);

    if (!result)
        return !result;

    fp = fopen("circuits/test_builder.acirc", "r");
    acirc_init(&c);
    acirc_fread(&c, fp);
    fclose(fp);

    result = acirc_ensure(&c);

    acirc_clear(&c);

    return !result;
}

{'fraction_non_alphanumeric': 0.18373680943513346, 'fraction_numerical': 0.0223463687150838, 'mean_word_length': 3.0401002506265664, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '2599525', 'n_tokens_mistral': 756, 'n_tokens_neox': 668, 'n_words': 132}