<commit_before>DIR=$(shell pwd)

.PHONY : default build_container manual container build push local

default: container

build_container:
	docker build -t initrd meta

manual: build_container
	./meta/launch /bin/bash || true

container: build_container
	./meta/launch

build:
	cp -R /opt/initrd/initcpio/* /usr/lib/initcpio/
	mkdir -p build /lib/modules/kernel
	mkinitcpio -c /dev/null -A base,udev,lvm2,dock0 -g build/initrd.img -k kernel

push:
	@echo $$(sed -r 's/[0-9]+$$//' version)$$(($$(sed -r 's/.*\.//' version) + 1)) > version
	ssh -oStrictHostKeyChecking=no git@github.com &>/dev/null || true
	git tag -f "$$(cat version)"
	git push origin ":$$(cat version)" || true
	git push --tags origin master
	targit -a .github -c -f dock0/initrd $$(cat version) build/initrd.img
	targit -a .github -c -f dock0/initrd latest build/initrd.img

local: build push
<commit_msg>fix version commits<commit_after>DIR=$(shell pwd)

.PHONY : default build_container manual container build push local

default: container

build_container:
	docker build -t initrd meta

manual: build_container
	./meta/launch /bin/bash || true

container: build_container
	./meta/launch

build:
	cp -R /opt/initrd/initcpio/* /usr/lib/initcpio/
	mkdir -p build /lib/modules/kernel
	mkinitcpio -c /dev/null -A base,udev,lvm2,dock0 -g build/initrd.img -k kernel

push:
	@echo $$(sed -r 's/[0-9]+$$//' version)$$(($$(sed -r 's/.*\.//' version) + 1)) > version
	git commit -am "$$(cat version)"
	ssh -oStrictHostKeyChecking=no git@github.com &>/dev/null || true
	git tag -f "$$(cat version)"
	git push origin ":$$(cat version)" || true
	git push --tags origin master
	targit -a .github -c -f dock0/initrd $$(cat version) build/initrd.img
	targit -a .github -c -f dock0/initrd latest build/initrd.img

local: build push

{'fraction_non_alphanumeric': 0.15733482642777155, 'fraction_numerical': 0.007838745800671893, 'mean_word_length': 3.6536458333333335, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5403403', 'n_tokens_mistral': 679, 'n_tokens_neox': 654, 'n_words': 199}