<commit_before>TARGET := x86_64-linux
RELEASE := debug
MODULENAME := rustyvisor
obj-m += $(MODULENAME).o
$(MODULENAME)-objs += loader/linux.o target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a src/interrupts.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CARGO := cargo
XARGO := xargo
RUSTFILES := libs/*/src/*.rs src/*.rs
RUSTFLAGS='-C relocation-model=static'
CARFOFEATURES="runtime_tests"

all: $(MODULENAME).ko

$(MODULENAME).ko: loader/linux.c target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a: $(RUSTFILES) Cargo.toml
	RUSTFLAGS=$(RUSTFLAGS) $(XARGO) build --target=$(TARGET) --verbose --features "$(CARFOFEATURES)"

test:
	cd libs/allocator && $(CARGO) test --verbose
	$(CARGO) test --verbose


clean:
	rm -f *.o *.ko *.ko.unsigned modules.order Module.symvers *.mod.c .*.cmd
	rm -rf .tmp_versions
	$(XARGO) clean

.PHONY: all clean test<commit_msg>Clean up all object files<commit_after>TARGET := x86_64-linux
RELEASE := debug
MODULENAME := rustyvisor
obj-m += $(MODULENAME).o
$(MODULENAME)-objs += loader/linux.o target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a src/interrupts.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CARGO := cargo
XARGO := xargo
RUSTFILES := libs/*/src/*.rs src/*.rs
RUSTFLAGS='-C relocation-model=static'
CARFOFEATURES="runtime_tests"

all: $(MODULENAME).ko

$(MODULENAME).ko: loader/linux.c target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

target/$(TARGET)/$(RELEASE)/lib$(MODULENAME).a: $(RUSTFILES) Cargo.toml
	RUSTFLAGS=$(RUSTFLAGS) $(XARGO) build --target=$(TARGET) --verbose --features "$(CARFOFEATURES)"

test:
	cd libs/allocator && $(CARGO) test --verbose
	$(CARGO) test --verbose

clean:
	rm -f *.o *.ko *.ko.unsigned modules.order Module.symvers *.mod.c .*.cmd $($(MODULENAME)-objs)
	rm -rf .tmp_versions
	rm -f $($(MODULENAME)-objs)
	$(XARGO) clean

.PHONY: all clean test
{'fraction_non_alphanumeric': 0.20232088799192735, 'fraction_numerical': 0.004036326942482341, 'mean_word_length': 4.798245614035087, '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': '27232', 'n_tokens_mistral': 801, 'n_tokens_neox': 725, 'n_words': 161}