<commit_before>default: build

build:
	docker build -t rootfs-builder .

all: build amd64 i386 arm64 armhf mips

amd64: build
	docker run --rm -e BUILD_ARCH=amd64 -v $(shell pwd):/data --privileged rootfs-builder

i386: build
	docker run --rm -e BUILD_ARCH=i386 -v $(shell pwd):/data --privileged rootfs-builder

arm64: build
	docker run --rm -e BUILD_ARCH=arm64 -e QEMU_ARCH=aarch64 -v $(shell pwd):/data --privileged rootfs-builder

armhf: build
	docker run --rm -e BUILD_ARCH=armhf -e QEMU_ARCH=arm -v $(shell pwd):/data --privileged rootfs-builder

mips: build
	docker run --rm -e BUILD_ARCH=mips -e QEMU_ARCH=mips -v $(shell pwd):/data --privileged rootfs-builder

shell: build
	docker run --rm -ti -v $(shell pwd):/data --privileged rootfs-builder bash

test: build
	docker run --rm -ti -e BUILD_ARCH=amd64 -v $(shell pwd):/data --privileged rootfs-builder /test.sh

testshell: build
	docker run --rm -ti -v $(shell pwd):/data -v $(shell pwd)/test:/test --privileged rootfs-builder bash<commit_msg>Fix using BUILD_ARCH env in make test<commit_after>default: build

build:
	docker build -t rootfs-builder .

all: build amd64 i386 arm64 armhf mips

amd64: build
	docker run --rm -e BUILD_ARCH=amd64 -v $(shell pwd):/data --privileged rootfs-builder

i386: build
	docker run --rm -e BUILD_ARCH=i386 -v $(shell pwd):/data --privileged rootfs-builder

arm64: build
	docker run --rm -e BUILD_ARCH=arm64 -e QEMU_ARCH=aarch64 -v $(shell pwd):/data --privileged rootfs-builder

armhf: build
	docker run --rm -e BUILD_ARCH=armhf -e QEMU_ARCH=arm -v $(shell pwd):/data --privileged rootfs-builder

mips: build
	docker run --rm -e BUILD_ARCH=mips -e QEMU_ARCH=mips -v $(shell pwd):/data --privileged rootfs-builder

shell: build
	docker run --rm -ti -v $(shell pwd):/data --privileged rootfs-builder bash

test: build
	docker run --rm -ti -e BUILD_ARCH=$(BUILD_ARCH) -v $(shell pwd):/data --privileged rootfs-builder /test.sh

testshell: build
	docker run --rm -ti -v $(shell pwd):/data -v $(shell pwd)/test:/test --privileged rootfs-builder bash
{'fraction_non_alphanumeric': 0.1338235294117647, 'fraction_numerical': 0.023529411764705882, 'mean_word_length': 3.6492027334851938, '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': '1603810', 'n_tokens_mistral': 819, 'n_tokens_neox': 767, 'n_words': 247}