<commit_before>CFLAGS=-c -std=c99 -O0 -g -ggdb -Wall -pedantic -Wall
# Remove after I translate the code from Polish
CFLAGS+=-Wno-invalid-source-encoding

kmnsim:			\
	all.o		\
	strdup.o	\
	strsep.o	\
	strlcat.o	\
	strlcpy.o
	$(CC) -g -ggdb -o kmnsim	\
	all.o		\
	strdup.o	\
	strsep.o	\
	strlcat.o	\
	strlcpy.o

# 
# Helper routines. Shouldn't touch UNIX, but must get enabled
# on Windows. Thus, every file has _WIN32 #ifdef'ed.
#
all.o: all.c queue.h kmnsim.h Makefile
	$(CC) $(CFLAGS) -o all.o all.c
strdup.o: subr/strdup.c
	$(CC) $(CFLAGS) -o strdup.o subr/strdup.c
strsep.o: subr/strsep.c
	$(CC) $(CFLAGS) -o strsep.o subr/strsep.c
strlcpy.o: subr/strlcpy.c
	$(CC) $(CFLAGS) -o strlcpy.o subr/strlcpy.c
strlcat.o: subr/strlcat.c
	$(CC) $(CFLAGS) -o strlcat.o subr/strlcat.c

t:
	./kmnsim -a -dd -v ../conf/spec.1
#	./kmnsim -a -dd -v ../conf/spec.5
	./kmnsim -a -dd -v ../conf/spec.6
	./kmnsim -a -dd -v ../conf/spec.7
	./kmnsim -a -dd -v ../conf/spec.8
	./kmnsim -a -dd -v ../conf/spec.9
	./kmnsim -a -dd -v ../conf/spec.10
	./kmnsim -a -dd -v ../conf/spec.11

clean:
	rm -rf kmnsim *.o<commit_msg>Bring LLVM scan analyzer to the build.<commit_after>CFLAGS=-c -std=c99 -O0 -g -ggdb -Wall -pedantic -Wall
# Remove after I translate the code from Polish
CFLAGS+=-Wno-invalid-source-encoding

kmnsim:			\
	all.o		\
	strdup.o	\
	strsep.o	\
	strlcat.o	\
	strlcpy.o
	$(CC) -g -ggdb -o kmnsim	\
	all.o		\
	strdup.o	\
	strsep.o	\
	strlcat.o	\
	strlcpy.o

# 
# Helper routines. Shouldn't touch UNIX, but must get enabled
# on Windows. Thus, every file has _WIN32 #ifdef'ed.
#
all.o: all.c queue.h kmnsim.h Makefile
	$(CC) $(CFLAGS) -o all.o all.c
strdup.o: subr/strdup.c
	$(CC) $(CFLAGS) -o strdup.o subr/strdup.c
strsep.o: subr/strsep.c
	$(CC) $(CFLAGS) -o strsep.o subr/strsep.c
strlcpy.o: subr/strlcpy.c
	$(CC) $(CFLAGS) -o strlcpy.o subr/strlcpy.c
strlcat.o: subr/strlcat.c
	$(CC) $(CFLAGS) -o strlcat.o subr/strlcat.c

analyze:
	 scan-build -o /tmp/_.kmnsim make -j4

t:
	./kmnsim -a -dd -v ../conf/spec.1
#	./kmnsim -a -dd -v ../conf/spec.5
	./kmnsim -a -dd -v ../conf/spec.6
	./kmnsim -a -dd -v ../conf/spec.7
	./kmnsim -a -dd -v ../conf/spec.8
	./kmnsim -a -dd -v ../conf/spec.9
	./kmnsim -a -dd -v ../conf/spec.10
	./kmnsim -a -dd -v ../conf/spec.11

clean:
	rm -rf kmnsim *.o
{'fraction_non_alphanumeric': 0.19193689745836984, 'fraction_numerical': 0.013584574934268186, 'mean_word_length': 2.2754662840746054, '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': '597532', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1125, 'n_words': 279}