<commit_before>LIBEVENT ?= /usr/local
TARGET ?= /usr/local
LIBSIMPLEHTTP ?= /usr/local

CFLAGS = -I. -I$(LIBSIMPLEHTTP)/include -I.. -I$(LIBEVENT)/include -g 
LIBS = -L. -L$(LIBSIMPLEHTTP)/lib -L../simplehttp -L$(LIBEVENT)/lib -levent -lsimplehttp -ljson -lpcre -lm -lpubsubclient -lcrypto

pubsub_filtered: pubsub_filtered.c md5.c
	$(CC) $(CFLAGS) -o $@ md5.c $< $(LIBS)

stream_filter: stream_filter.c md5.c
	$(CC) $(CFLAGS) -o $@ md5.c $< $(LIBS)

install:
	/usr/bin/install -d $(TARGET)/bin/
	/usr/bin/install pubsub_filtered $(TARGET)/bin/

install_stream_filter:
	/usr/bin/install -d $(TARGET)/bin/
	/usr/bin/install stream_filter $(TARGET)/bin/

clean:
	rm -rf *.o pubsub_filtered stream_filter *.dSYM<commit_msg>stream_filter: build without unnecessary LIBS<commit_after>LIBEVENT ?= /usr/local
TARGET ?= /usr/local
LIBSIMPLEHTTP ?= /usr/local

CFLAGS = -I. -I$(LIBSIMPLEHTTP)/include -I.. -I$(LIBEVENT)/include -g 
LIBS = -L. -L$(LIBSIMPLEHTTP)/lib -L../simplehttp -L$(LIBEVENT)/lib -levent -lsimplehttp -ljson -lpcre -lm -lpubsubclient -lcrypto

LIBS_STREAM_FILTER = -L. -L$(LIBSIMPLEHTTP)/lib -L../simplehttp -lsimplehttp -ljson

pubsub_filtered: pubsub_filtered.c md5.c
	$(CC) $(CFLAGS) -o $@ md5.c $< $(LIBS)

stream_filter: stream_filter.c md5.c
	$(CC) $(CFLAGS) -o $@ md5.c $< $(LIBS_STREAM_FILTER)

install:
	/usr/bin/install -d $(TARGET)/bin/
	/usr/bin/install pubsub_filtered $(TARGET)/bin/

install_stream_filter:
	/usr/bin/install -d $(TARGET)/bin/
	/usr/bin/install stream_filter $(TARGET)/bin/

clean:
	rm -rf *.o pubsub_filtered stream_filter *.dSYM
{'fraction_non_alphanumeric': 0.18014003819223426, 'fraction_numerical': 0.005092297899427116, 'mean_word_length': 3.897196261682243, 'pattern_counts': {'":': 0, '<': 7, '<?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': '888922', 'n_tokens_mistral': 648, 'n_tokens_neox': 626, 'n_words': 131}