<commit_before>#include "Fletcher64.h"

uint64_t Fletcher64 (long * record)
{
	uint64_t sum1 = 0;
	uint64_t sum2 = 0;

	// mod_value is the max value of 2^32 so that I avoid 0 checksums
	uint64_t mod_value = 4294967296;

	for(int i = IND_THREAD_ID; i < IND_TAIL_CHECKSUM; i++)
	{
		sum1 = (sum1 + record[i]) % mod_value;
		sum2 = (sum2 + sum1) % mod_value;
	}

	return (sum2 << 32) | sum1;
}<commit_msg>Fletcher 64 bug<commit_after>#include "Fletcher64.h"

uint64_t Fletcher64 (long * record)
{
	uint64_t sum1 = 0;
	uint64_t sum2 = 0;

	// mod_value is the max value of 2^32-1 so that I avoid 0 checksums
	uint64_t mod_value = 4294967295;

	for(int i = IND_THREAD_ID; i < IND_TAIL_CHECKSUM; i++)
	{
		sum1 = (sum1 + record[i]) % mod_value;
		sum2 = (sum2 + sum1) % mod_value;
	}

	return (sum2 << 32) | sum1;
}
{'fraction_non_alphanumeric': 0.1271604938271605, 'fraction_numerical': 0.1, 'mean_word_length': 3.7705882352941176, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1633617', 'n_tokens_mistral': 415, 'n_tokens_neox': 346, 'n_words': 94}