<commit_before>CC := gcc -Wall -Wno-unused -pipe -std=gnu99 -march=nocona
DEFS :=
CFLAGS := -O3 -g0 -fomit-frame-pointer -frename-registers $(DEFS)
LDFLAGS := -Wl,-O2 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all


all: install prepare

install: swi.install jchr.install cchr.install c.install

prepare: swi.prepare jchr.prepare cchr.prepare c.prepare

clean: swi.clean jchr.clean cchr.clean c.clean

bench:
	./bench.pl


# SWI-Prolog

swi: swi.install swi.prepare

swi.install:
	apt-get install swi

swi.prepare:
	find swi/* -type f -name '*.pl' -exec swipl -O -L0 -G0 -T0 --nodebug --quiet -o "{}".qlf -c "{}" ";"

swi.clean:
	find swi/* -type f -name '*.qlf' -delete

swi.bench:
	./bench.pl swi


# JCHR

jchr: jchr.install jchr.prepare

jchr.preinstall: jchr.preinstall.mkdir jchr.preinstall.antlr jchr.preinstall.freemarker jchr.preinstall.args4j jchr.preinstall.jack

jchr.preinstall.mkdir:
	mkdir -p jchr/_jchr-libs
<commit_msg>Package name in apt is "swi-prolog"<commit_after>CC := gcc -Wall -Wno-unused -pipe -std=gnu99 -march=nocona
DEFS :=
CFLAGS := -O3 -g0 -fomit-frame-pointer -frename-registers $(DEFS)
LDFLAGS := -Wl,-O2 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all


all: install prepare

install: swi.install jchr.install cchr.install c.install

prepare: swi.prepare jchr.prepare cchr.prepare c.prepare

clean: swi.clean jchr.clean cchr.clean c.clean

bench:
	./bench.pl


# SWI-Prolog

swi: swi.install swi.prepare

swi.install:
	apt-get install swi-prolog

swi.prepare:
	find swi/* -type f -name '*.pl' -exec swipl -O -L0 -G0 -T0 --nodebug --quiet -o "{}".qlf -c "{}" ";"

swi.clean:
	find swi/* -type f -name '*.qlf' -delete

swi.bench:
	./bench.pl swi


# JCHR

jchr: jchr.install jchr.prepare

jchr.preinstall: jchr.preinstall.mkdir jchr.preinstall.antlr jchr.preinstall.freemarker jchr.preinstall.args4j jchr.preinstall.jack

jchr.preinstall.mkdir:
	mkdir -p jchr/_jchr-libs

{'fraction_non_alphanumeric': 0.15512753774076002, 'fraction_numerical': 0.009370119729307652, 'mean_word_length': 3.3881278538812785, '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': '2505998', 'n_tokens_mistral': 827, 'n_tokens_neox': 800, 'n_words': 185}