<commit_before>
version=0.1

CFLAGS+=-Wall -Wextra
CFLAGS+=-std=c11
CFLAGS+=-D_XOPEN_SOURCE=700
CFLAGS+=-DJB_VERSION=${version}

# For NetBSD build:
CFLAGS+=-I/usr/X11R6/include
CFLAGS+=-I/usr/X11R7/include
LDFLAGS+=-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
LDFLAGS+=-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib
# Libs:
LDFLAGS+=-lxcb
PREFIX=/usr
prog=xstatus
objs=util.o xcb.o

installdir=${DESTDIR}${PREFIX}

libjb.a: ${objs}
	ar rcs libjb.a ${objs}

*.h:
	make clean

${objs}: *.h

clean:
	rm -f libjb.a *.o

install:
	install -d /usr/lib
	install -d /usr/include/jb
	install libjb.a /usr/lib
	install *.h /usr/include/jb

check: libjb.a
	cc test.c libjb.a
	echo "The following will abort (intentionally)"
	./a.out

<commit_msg>Remove C standard specification to allow building on older compilers.<commit_after>
version=0.1

CFLAGS+=-Wall -Wextra
CFLAGS+=-D_XOPEN_SOURCE=700
CFLAGS+=-DJB_VERSION=${version}

# For NetBSD build:
CFLAGS+=-I/usr/X11R6/include
CFLAGS+=-I/usr/X11R7/include
LDFLAGS+=-L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib
LDFLAGS+=-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib
# Libs:
LDFLAGS+=-lxcb
PREFIX=/usr
prog=xstatus
objs=util.o xcb.o

installdir=${DESTDIR}${PREFIX}

libjb.a: ${objs}
	ar rcs libjb.a ${objs}

*.h:
	make clean

${objs}: *.h

clean:
	rm -f libjb.a *.o

install:
	install -d /usr/lib
	install -d /usr/include/jb
	install libjb.a /usr/lib
	install *.h /usr/include/jb

check: libjb.a
	cc test.c libjb.a
	echo "The following will abort (intentionally)"
	./a.out


{'fraction_non_alphanumeric': 0.1737660581473969, 'fraction_numerical': 0.032454361054766734, 'mean_word_length': 3.820846905537459, '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': '6968627', 'n_tokens_mistral': 734, 'n_tokens_neox': 686, 'n_words': 136}