<commit_before>TOP_DIR:=../../sys
SRC_DIR:=$(TOP_DIR)/dev/ebpf

ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_vm.o
ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_loader.o
ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_verifer.o
ebpf-objs += ./ebpf_osx_user.o

ifeq ($(shell arch), x86_64)
	ebpf-objs += $(TOP_DIR)/amd64/amd64/ebpf_jit_x86_64.o
endif

CFLAGS += \
	-I $(SRC_DIR) \
	-I $(TOP_DIR) \
	-I $(CURDIR) \
	-D user \
	-Wall \
	-g \
	-std=gnu11 -Wno-declaration-after-statement \

all: libebpf.a

libebpf.a: $(ebpf-objs)
	ar rc $@ $^

clean:
	rm libebpf.a $(SRC_DIR)/*.o ebpf_osx_user.o
<commit_msg>MacOSX uses name i386 for x86_64 or amd64<commit_after>TOP_DIR:=../../sys
SRC_DIR:=$(TOP_DIR)/dev/ebpf

ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_vm.o
ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_loader.o
ebpf-objs += $(TOP_DIR)/dev/ebpf/ebpf_verifer.o
ebpf-objs += ./ebpf_osx_user.o

ifeq ($(shell arch), i386)
	ebpf-objs += $(TOP_DIR)/amd64/amd64/ebpf_jit_x86_64.o
endif

CFLAGS += \
	-I $(SRC_DIR) \
	-I $(TOP_DIR) \
	-I $(CURDIR) \
	-D user \
	-Wall \
	-g \
	-std=gnu11 -Wno-declaration-after-statement \

all: libebpf.a

libebpf.a: $(ebpf-objs)
	ar rc $@ $^

clean:
	rm libebpf.a $(SRC_DIR)/*.o ebpf_osx_user.o

{'fraction_non_alphanumeric': 0.20608108108108109, 'fraction_numerical': 0.030405405405405407, 'mean_word_length': 3.388888888888889, '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': '6051339', 'n_tokens_mistral': 623, 'n_tokens_neox': 595, 'n_words': 89}