<commit_before>
CMAKE_BUILD_TYPE ?= Debug
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)

.PHONY: all clean test libptab

all: libptab

libptab: build/.ran-cmake
	@make -C build --no-print-directory

build/.ran-cmake:
	@mkdir -p build
	@cd build && cmake $(CMAKE_FLAGS) ..
	@touch $@

test:
	@make -C build --no-print-directory test

clean:
	@rm -r build >/dev/null 2>&1
<commit_msg>Conditionally remove build folder on clean<commit_after>
CMAKE_BUILD_TYPE ?= Debug
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)

.PHONY: all clean test libptab

all: libptab

libptab: build/.ran-cmake
	@make -C build --no-print-directory

build/.ran-cmake:
	@mkdir -p build
	@cd build && cmake $(CMAKE_FLAGS) ..
	@touch $@

test:
	@make -C build --no-print-directory test

clean:
	@test ! -d build || rm -r build >/dev/null 2>&1; fi

{'fraction_non_alphanumeric': 0.14302884615384615, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 3.815028901734104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '542860', 'n_tokens_mistral': 347, 'n_tokens_neox': 330, 'n_words': 87}