<commit_before>#include "c4-internal.h"
#include "types/agg_funcs.h"

static Datum
count_init_f(Datum v)
{
    Datum state;

    state.i8 = 0;
    return state;
}

static Datum
count_fw_trans_f(Datum state, Datum v)
{
    state.i8++;
    return state;
}

static Datum
count_bw_trans_f(Datum state, Datum v)
{
    state.i8--;
    return state;
}

static Datum
sum_fw_trans_f(Datum state, Datum v)
{
    state.i8 += v.i8;
    return state;
}

static Datum<commit_msg>Bug fix for count<> agg.<commit_after>#include "c4-internal.h"
#include "types/agg_funcs.h"

static Datum
count_init_f(Datum v)
{
    Datum state;

    state.i8 = 1;
    return state;
}

static Datum
count_fw_trans_f(Datum state, Datum v)
{
    state.i8++;
    return state;
}

static Datum
count_bw_trans_f(Datum state, Datum v)
{
    state.i8--;
    return state;
}

static Datum
sum_fw_trans_f(Datum state, Datum v)
{
    state.i8 += v.i8;
    return state;
}

static Datum
{'fraction_non_alphanumeric': 0.11583421891604676, 'fraction_numerical': 0.01487778958554729, 'mean_word_length': 3.3211009174311927, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6931184', 'n_tokens_mistral': 402, 'n_tokens_neox': 395, 'n_words': 91}