<commit_before>CFLAGS += -g --pedantic
CFLAGS += -fPIC

MULTIFAST_AHO := ../../multifast-v1.0.0/ahocorasick
CFLAGS += -I $(MULTIFAST_AHO)
LIBS   += -L $(MULTIFAST_AHO) -lahocorasick

OUT := lahocorasick.so

all: $(OUT)

$(OUT): lahocorasick.o
	$(CC) -shared $(CFLAGS) -o $@ $^  $(LIBS)

clean:
	rm -f *.so *.o

.PHONY: clean<commit_msg>ahocorasick/Makefile: Add install target<commit_after>CFLAGS += -g --pedantic
CFLAGS += -fPIC

MULTIFAST_AHO := ../../multifast-v1.0.0/ahocorasick
CFLAGS += -I $(MULTIFAST_AHO)
LIBS   += -L $(MULTIFAST_AHO) -lahocorasick

OUT := lahocorasick.so
PREFIX   := /usr
LUA_CDIR := $(PREFIX)/lib/lua/5.1/

all: $(OUT)

$(OUT): lahocorasick.o
	$(CC) -shared $(CFLAGS) -o $@ $^  $(LIBS)

install:
	install $(OUT) $(LUA_CDIR)

clean:
	rm -f *.so *.o

.PHONY: install clean
{'fraction_non_alphanumeric': 0.205771643663739, 'fraction_numerical': 0.010037641154328732, 'mean_word_length': 3.534090909090909, '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': '7179435', 'n_tokens_mistral': 388, 'n_tokens_neox': 367, 'n_words': 75}