<commit_before>LUA_DIR=$(HOME)/local/lua-5.1.5-js
BUILD_TYPE=debug

all: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE)

build/$(BUILD_TYPE):
	mkdir -p build/$(BUILD_TYPE)
	current="$$(pwd -P)" && cd build/$(BUILD_TYPE) && cd "$$(pwd -P)" && cmake \
		-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
		-DCMAKE_VERBOSE_MAKEFILE=On \
		"$${current}"

.DEFAULT: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE) $@

test: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE)
	$(MAKE) -C build/$(BUILD_TYPE) $@ CTEST_OUTPUT_ON_FAILURE=TRUE

web:
	@echo "Warning: for this target to work, resource files have to be disabled in emscripten's toolchain file!"
	mkdir -p build/web
	current="$$(pwd -P)" && cd build/web && cd "$$(pwd -P)" && emsdk construct_env && source emsdk_set_env.sh && emcmake cmake \
		-DCLINGO_ENABLE_WEB=On \
		-DCLINGO_ENABLE_PYTHON=Off \
		-DCLINGO_ENABLE_LUA=On \
		-DCLASP_BUILD_TEST=Off \
		-DBUILD_CLINGO_LIB_SHARED=Off \
		-DCLASP_BUILD_WITH_THREADS=Off \
		-DCMAKE_VERBOSE_MAKEFILE=On \
		-DCMAKE_BUILD_TYPE=release \<commit_msg>some color for the warning<commit_after>LUA_DIR=$(HOME)/local/lua-5.1.5-js
BUILD_TYPE=debug

all: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE)

build/$(BUILD_TYPE):
	mkdir -p build/$(BUILD_TYPE)
	current="$$(pwd -P)" && cd build/$(BUILD_TYPE) && cd "$$(pwd -P)" && cmake \
		-DCMAKE_BUILD_TYPE=$(BUILD_TYPE) \
		-DCMAKE_VERBOSE_MAKEFILE=On \
		"$${current}"

.DEFAULT: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE) $@

test: build/$(BUILD_TYPE)
	cd build/$(BUILD_TYPE) && cd $$(pwd -P) && cmake .
	$(MAKE) -C build/$(BUILD_TYPE)
	$(MAKE) -C build/$(BUILD_TYPE) $@ CTEST_OUTPUT_ON_FAILURE=TRUE

web:
	@echo -e '\033[0;31m* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *'
	@echo -e           '*                                                                             *'
	@echo -e           '*   Warning: for this target to work, resource files have to be disabled in   *'
	@echo -e           "*            emscripten's toolchain file!                                     *"
	@echo -e           '*                                                                             *'
	@echo -e           '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\033[0m'
	mkdir -p build/web
	current="$$(pwd -P)" && cd build/web && cd "$$(pwd -P)" && emsdk construct_env && source emsdk_set_env.sh && emcmake cmake \
		-DCLINGO_ENABLE_WEB=On \
		-DCLINGO_ENABLE_PYTHON=Off \
		-DCLINGO_ENABLE_LUA=On \
		-DCLASP_BUILD_TEST=Off \
		-DBUILD_CLINGO_LIB_SHARED=Off \
		-DCLASP_BUILD_WITH_THREADS=Off \
		-DCMAKE_VERBOSE_MAKEFILE=On \
		-DCMAKE_BUILD_TYPE=release \
{'fraction_non_alphanumeric': 0.19070403280929596, 'fraction_numerical': 0.005468215994531784, 'mean_word_length': 2.5608272506082725, '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': 21, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '27081', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1158, 'n_words': 209}