<commit_before>
enum disir_status
basic_keyval(struct disir_mold **mold)
{
    enum disir_status status;
    struct disir_context *context;


    status = dc_mold_begin (&context);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_documentation (context, "test_doc", strlen ("test_doc"));
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_string (context, "key_string", "string_value", "k1value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_integer (context, "key_integer", 42, "k2value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_float (context, "key_float", 3.14, "k3value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_mold_finalize (&context, mold);
    if (status != DISIR_STATUS_OK)
        goto error;

    return DISIR_STATUS_OK;
error:
    return status;
}
<commit_msg>test: update basic_keyval with key_boolean<commit_after>
enum disir_status
basic_keyval(struct disir_mold **mold)
{
    enum disir_status status;
    struct disir_context *context;


    status = dc_mold_begin (&context);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_documentation (context, "test_doc", strlen ("test_doc"));
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_string (context, "key_string", "string_value", "k1value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_integer (context, "key_integer", 42, "k2value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_float (context, "key_float", 3.14, "k3value doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_add_keyval_boolean (context, "key_boolean", 1, "key boolean doc", NULL);
    if (status != DISIR_STATUS_OK)
        goto error;

    status = dc_mold_finalize (&context, mold);
    if (status != DISIR_STATUS_OK)
        goto error;

    return DISIR_STATUS_OK;
error:
    return status;
}

{'fraction_non_alphanumeric': 0.10902255639097744, 'fraction_numerical': 0.007988721804511278, 'mean_word_length': 3.472689075630252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2855903', 'n_tokens_mistral': 740, 'n_tokens_neox': 711, 'n_words': 186}