<commit_before># Quiet compile, unset for verbose output
Q	= @
OS 	= $(shell uname)

CC	= gcc

CWARNS	= -Wformat=2 -Wextra -Wmissing-noreturn -Wwrite-strings -Wshadow \
	  -Wno-unused-parameter -Wmissing-format-attribute -fno-builtin \
	  -Wswitch-default -Wmissing-prototypes \
	  -Wmissing-declarations
CFLAGS  = -D_GNU_SOURCE -Wall -Werror -fno-strict-aliasing $(CWARNS) \
	  -g -O3

# Build Exim with our tweaked libdb
DBMDIR  = $(abspath ../libdb/db4.7-mod)
#DBMDIR  = $(abspath ../libdb/db4.6-mod)
#DBMDIR = /home/rtm/bdb

# Build Exim with MOSBENCH modifications
# Unused options: -DMOSBENCH_DELIVER_SAME_CORE
EXIM_DEFINES = \
	-DMOSBENCH_FAKE_LOADAVG -DMOSBENCH_WAIT_DELIVERY \
	-DMOSBENCH_NO_TZ_LOCK \
	-DMOSBENCH_SPLIT_BY_PID -DMOSBENCH_NO_J_FILE \
	-DMOSBENCH_CPU_BIND

ifeq ($(OS), Linux)
LIBS = 
endif
ifeq ($(OS), SunOS)
LIBS = -lsocket -lnsl
endif

all: smtpbm exim-mod

smtpbm: smtpbm.c
	@echo "CC	$@"<commit_msg>Use journal files and don't pin<commit_after># Quiet compile, unset for verbose output
Q	= @
OS 	= $(shell uname)

CC	= gcc

CWARNS	= -Wformat=2 -Wextra -Wmissing-noreturn -Wwrite-strings -Wshadow \
	  -Wno-unused-parameter -Wmissing-format-attribute -fno-builtin \
	  -Wswitch-default -Wmissing-prototypes \
	  -Wmissing-declarations
CFLAGS  = -D_GNU_SOURCE -Wall -Werror -fno-strict-aliasing $(CWARNS) \
	  -g -O3

# Build Exim with our tweaked libdb
DBMDIR  = $(abspath ../libdb/db4.7-mod)
#DBMDIR  = $(abspath ../libdb/db4.6-mod)
#DBMDIR = /home/rtm/bdb

# Build Exim with MOSBENCH modifications
# Unused options: -DMOSBENCH_DELIVER_SAME_CORE -DMOSBENCH_NO_J_FILE
# -DMOSBENCH_CPU_BIND
EXIM_DEFINES = \
	-DMOSBENCH_FAKE_LOADAVG -DMOSBENCH_WAIT_DELIVERY \
	-DMOSBENCH_NO_TZ_LOCK \
	-DMOSBENCH_SPLIT_BY_PID

ifeq ($(OS), Linux)
LIBS = 
endif
ifeq ($(OS), SunOS)
LIBS = -lsocket -lnsl
endif

all: smtpbm exim-mod

smtpbm: smtpbm.c
	@echo "CC	$@"
{'fraction_non_alphanumeric': 0.1264, 'fraction_numerical': 0.0064, 'mean_word_length': 3.7373737373737375, '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': '2585730', 'n_tokens_mistral': 871, 'n_tokens_neox': 841, 'n_words': 167}