<commit_before># To run / debug locally
%.bin: %.asm
	nasm -felf32 -o $@.o $<; ld -g $@.o -m elf_i386 -o $@

# To use as a multiboot kernel image for v86
%.img: %.asm
	nasm -felf32 -o $@.o $<; ld -g $@.o -m elf_i386 --section-start=.text=0x8000 -o $@

clean:
	rm -f *.o *.bin *.img<commit_msg>Let nasm Makefile generate fixtures and add "all" target<commit_after>source_files := $(wildcard *.asm)
host_executables := $(patsubst %.asm,%.bin,$(source_files))
v86_executables := $(patsubst %.asm,%.img,$(source_files))
host_fixtures := $(patsubst %.asm,%.fixture,$(source_files))

all: $(host_executables) $(v86_executables) $(host_fixtures)
.PHONY: all

# To run / debug locally
%.bin: %.asm
	nasm -felf32 -o $@.o $<; ld -g $@.o -m elf_i386 -o $@

# To generate a fixture using gdb
%.fixture: %.bin
	gdb -quiet -batch -x gdbauto $< > $@

# To use as a multiboot kernel image for v86
%.img: %.asm
	nasm -felf32 -o $@.o $<; ld -g $@.o -m elf_i386 --section-start=.text=0x8000 -o $@

clean:
	rm -f *.o *.bin *.img *.fixture
{'fraction_non_alphanumeric': 0.1994106090373281, 'fraction_numerical': 0.03732809430255403, 'mean_word_length': 3.411255411255411, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 4, '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': '2055079', 'n_tokens_mistral': 468, 'n_tokens_neox': 414, 'n_words': 128}