<commit_before>#include "pumakernel.h"

#include "internal/valgrind.h"
#include "internal/pumautil.h"
#include "internal/pumanode.h"
#include "internal/pumabalance.h"
#include "internal/pumathreadlist.h"
#include "internal/profiling.h"
#include "pumathreadpool.h"

#include <assert.h>

static void _runKernelOnNode(struct pumaNode* node,
		pumaKernel kernel, void* extraData)
{
	size_t skippedElements = 0;
	size_t originalElements = node->numElements;

	for(size_t i = 0; i - skippedElements < originalElements; ++i)
	{
		if(pumaBitmaskGet(node->freeMask, i) == MASKFREE)
		{
			++skippedElements;
			continue;
		}

		void* currentElement = _getElement(node, i);
		kernel(currentElement, extraData);<commit_msg>Extra condition in kernel run<commit_after>#include "pumakernel.h"

#include "internal/valgrind.h"
#include "internal/pumautil.h"
#include "internal/pumanode.h"
#include "internal/pumabalance.h"
#include "internal/pumathreadlist.h"
#include "internal/profiling.h"
#include "pumathreadpool.h"

#include <assert.h>

static void _runKernelOnNode(struct pumaNode* node,
		pumaKernel kernel, void* extraData)
{
	size_t skippedElements = 0;
	size_t originalElements = node->numElements;

	for(size_t i = 0; i - skippedElements < originalElements && i < node->capacity; ++i)
	{
		if(pumaBitmaskGet(node->freeMask, i) == MASKFREE)
		{
			++skippedElements;
			continue;
		}

		void* currentElement = _getElement(node, i);
		kernel(currentElement, extraData);
{'fraction_non_alphanumeric': 0.13064295485636115, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 5.59009009009009, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '62064', 'n_tokens_mistral': 561, 'n_tokens_neox': 524, 'n_words': 107}