<commit_before>ifeq ($(KERNELRELEASE),)

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

.PHONY: all build clean

all: transact.ko mktransact

transact.ko: transact.c | transact.h
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

mktransact: mktransact.c | transact.h
	gcc -O2 -o $@ $^

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c *.order *.symvers

install:
	insmod transact.ko

else

$(info Building with KERNELRELEASE = ${KERNELRELEASE})
obj-m := transact.o

endif<commit_msg>Fixing the install step for the kernel module<commit_after>ifeq ($(KERNELRELEASE),)

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

.PHONY: all build clean install

all: transact.ko mktransact

transact.ko: transact.c | transact.h
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

mktransact: mktransact.c | transact.h
	gcc -O2 -o $@ $^

clean:
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c *.order *.symvers

install: transact.ko mktransact
	insmod transact.ko
	cp mktransact /usr/bin/mktransact

else

$(info Building with KERNELRELEASE = ${KERNELRELEASE})
obj-m := transact.o

endif
{'fraction_non_alphanumeric': 0.15855855855855855, 'fraction_numerical': 0.0018018018018018018, 'mean_word_length': 3.937777777777778, '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': '57979', 'n_tokens_mistral': 447, 'n_tokens_neox': 420, 'n_words': 118}