<commit_before>TARGET = coholos.so
LIBS =
CC = clang
CFLAGS = -Wall -msse2 -msse4.1 -mpclmul -O3

.PHONY: default all clean test bench

default: $(TARGET)
all: default

OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
TESTS = $(wildcard tests/*.c)
BENCHMARKS = $(wildcard bench/*.c)

%.o: %.c $(HEADERS)
	$(CC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJECTS)
	$(CC) -shared $(OBJECTS) -Wall $(LIBS) -o $@

test: $(OBJECTS) $(TESTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(TESTS) -o test
	./test

bench: $(OBJECTS) $(TESTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(BENCHMARKS) -o benchmark
	./benchmark

clean:
	-rm -f *.o
	-rm -f $(TARGET)
	-rm -f test
<commit_msg>makefile: do not run tests and bench directly<commit_after>TARGET = coholos.so
LIBS =
CC = clang
CFLAGS = -Wall -msse2 -msse4.1 -mpclmul -O3

.PHONY: default all clean test bench

default: $(TARGET)
all: default

OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
TESTS = $(wildcard tests/*.c)
BENCHMARKS = $(wildcard bench/*.c)

%.o: %.c $(HEADERS)
	$(CC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJECTS)
	$(CC) -shared $(OBJECTS) -Wall $(LIBS) -o $@

test: $(OBJECTS) $(TESTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(TESTS) -o test

bench: $(OBJECTS) $(TESTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(BENCHMARKS) -o benchmark

clean:
	-rm -f *.o
	-rm -f $(TARGET)
	-rm -f test

{'fraction_non_alphanumeric': 0.22561429635145197, 'fraction_numerical': 0.005956813104988831, 'mean_word_length': 3.6344827586206896, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2520511', 'n_tokens_mistral': 601, 'n_tokens_neox': 578, 'n_words': 167}