<commit_before>BUILD_DIR:=build

.PHONY: all clean build ${BUILD_DIR}/Makefile derp

all: project test

clean:
	@([ -d ${BUILD_DIR} ] && make --directory=${BUILD_DIR} clean && rm -rf ${BUILD_DIR}/*) || echo Nothing to clean

project: ${BUILD_DIR}/Makefile
	@make --directory=${BUILD_DIR}

test: ${BUILD_DIR}/Makefile
	@make --directory=${BUILD_DIR} test ARGS='-V'

${BUILD_DIR}/Makefile:
	@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
	@[ -f ${BUILD_DIR}/Makefile ] || (cd ${BUILD_DIR} && cmake ${CMAKE_OPTS} ..)
<commit_msg>Make: add a format target for running ClangFormat<commit_after>BUILD_DIR:=build

.PHONY: all clean build ${BUILD_DIR}/Makefile derp

all: format project test

clean:
	@([ -d ${BUILD_DIR} ] && make --directory=${BUILD_DIR} clean && rm -rf ${BUILD_DIR}/*) || echo Nothing to clean

project: ${BUILD_DIR}/Makefile
	@make --directory=${BUILD_DIR}

test: ${BUILD_DIR}/Makefile
	@make --directory=${BUILD_DIR} test ARGS='-V'

format:
	@make --directory=${BUILD_DIR} clangformat

${BUILD_DIR}/Makefile:
	@[ -d ${BUILD_DIR} ] || mkdir -p ${BUILD_DIR}
	@[ -f ${BUILD_DIR}/Makefile ] || (cd ${BUILD_DIR} && cmake ${CMAKE_OPTS} ..)

{'fraction_non_alphanumeric': 0.19633507853403143, 'fraction_numerical': 0.0, 'mean_word_length': 4.822335025380711, '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': '2413153', 'n_tokens_mistral': 430, 'n_tokens_neox': 425, 'n_words': 102}